react-form-builder-more-flexibility 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -67,4 +67,4 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
67
67
  function r(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function o(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function i(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,o=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(c,l)),i}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}n.r(t),r.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},r.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},r.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,n=void 0,r=0;r<=10;r+=1){var o=r/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var s=i-t,c=a-n;e+=Math.sqrt(s*s+c*c)}t=i,n=a}return e},o.prototype._point=function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,o=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/o,a=n.height||this._canvas.height/o;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,i,a)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))}},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),o=this._data[this._data.length-1],i=o&&o[o.length-1],a=i&&r.distanceTo(i)<this.minDistance;if(!i||!a){var s=this._addPoint(r),c=s.curve,u=s.widths;c&&u&&this._drawCurve(c,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],o=r[r.length-1];n.equals(o)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n||(new Date).getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,r=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],n,r,t[2]),a=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:a}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,i=e.y-t.y,a=t.x-n.x,s=t.y-n.y,c=(e.x+t.x)/2,u=(e.y+t.y)/2,l=(t.x+n.x)/2,p=(t.y+n.y)/2,f=Math.sqrt(o*o+i*i),d=Math.sqrt(a*a+s*s),h=d/(f+d),m=l+(c-l)*h,g=p+(u-p)*h,y=t.x-m,v=t.y-g;return{c1:new r(c+y,u+v),c2:new r(l+y,p+v)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return r.start=this._lastWidth,r.end=i,this._lastVelocity=o,this._lastWidth=i,r},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,n){var r=this._ctx,o=n-t,i=Math.floor(e.length());r.beginPath();for(var a=0;a<i;a+=1){var s=a/i,c=s*s,u=c*s,l=1-s,p=l*l,f=p*l,d=f*e.startPoint.x;d+=3*p*s*e.control1.x,d+=3*l*c*e.control2.x,d+=u*e.endPoint.x;var h=f*e.startPoint.y;h+=3*p*s*e.control1.y,h+=3*l*c*e.control2.y,h+=u*e.endPoint.y;var m=t+u*o;this._drawPoint(d,h,m)}r.closePath(),r.fill()},i.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var a=0;a<i.length;a+=1){var s=i[a],c=new r(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(c);else if(a!==i.length-1){var l=this._addPoint(c),p=l.curve,f=l.widths;p&&f&&t(p,f,u)}}else this._reset(),n(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),o=n.width/r,i=n.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var r=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(t){var n=document.createElement("circle"),r="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",r),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',c=a.innerHTML;if(void 0===c){var u=document.createElement("dummy"),l=a.childNodes;u.innerHTML="";for(var p=0;p<l.length;p+=1)u.appendChild(l[p].cloneNode(!0));c=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},i.prototype.toData=function(){return this._data},t.default=i},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";function n(e,t,n,r){return function(e,t,n,r){return{red:r[4*(n*t+e)],green:r[4*(n*t+e)+1],blue:r[4*(n*t+e)+2],alpha:r[4*(n*t+e)+3]}}(e,t,n,r).alpha}function r(e,t,r,o){for(var i=e?1:-1,a=e?0:r-1;e?a<r:a>-1;a+=i)for(var s=0;s<t;s++)if(n(s,a,t,o))return a;return null}function o(e,t,r,o){for(var i=e?1:-1,a=e?0:t-1;e?a<t:a>-1;a+=i)for(var s=0;s<r;s++)if(n(a,s,t,o))return a;return null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getContext("2d"),n=e.width,i=e.height,a=t.getImageData(0,0,n,i).data,s=r(!0,n,i,a),c=r(!1,n,i,a),u=o(!0,n,i,a),l=o(!1,n,i,a)-u+1,p=c-s+1,f=t.getImageData(u,s,l,p);return e.width=l,e.height=p,t.clearRect(0,0,l,p),t.putImageData(f,0,0),e}}])},function(e,t,n){"use strict";var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="object"===("undefined"==typeof window?"undefined":a(window));
68
68
  /*! =======================================================
69
69
  VERSION 10.6.2
70
- ========================================================= */o=[n(232)],void 0===(i="function"==typeof(r=function(e){var t;return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(e){var t=Array.prototype.slice;function n(){}!function(e){if(e){var r="undefined"==typeof console?n:function(e){console.error(e)};e.bridget=function(n,o){!function(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}(o),function(n,o){e.fn[n]=function(i){if("string"==typeof i){for(var a=t.call(arguments,1),s=0,c=this.length;s<c;s++){var u=this[s],l=e.data(u,n);if(l)if(e.isFunction(l[i])&&"_"!==i.charAt(0)){var p=l[i].apply(l,a);if(void 0!==p&&p!==l)return p}else r("no such method '"+i+"' for "+n+" instance");else r("cannot call methods on "+n+" prior to initialization; attempted to call '"+i+"'")}return this}var f=this.map((function(){var t=e.data(this,n);return t?(t.option(i),t._init()):(t=new o(this,i),e.data(this,n,t)),e(this)}));return 1===f.length?f[0]:f}}(n,o)},e.bridget}}(e)}(e),function(e){var n=void 0,r=function(e){return"Invalid input value '"+e+"' passed in"},o={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,s=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],s=this.options.ticks_positions[c];break}t=r+(e-a)/(s-a)*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return o.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,o=0,i=0;i<this.options.ticks.length;i++)if(e<=this.options.ticks[i]){t=i>0?this.options.ticks[i-1]:0,r=i>0?this.options.ticks_positions[i-1]:0,n=this.options.ticks[i],o=this.options.ticks_positions[i];break}if(i>0)return r+(e-t)/(n-t)*(o-r)}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,o.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};function i(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n=n||{};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty("min"),a=n.hasOwnProperty("max"),s=0;s<r.length;s++){var c=r[s],u=n[c];u=null!==(u=void 0!==u?u:p(this.element,c))?u:this.defaultOptions[c],this.options||(this.options={}),this.options[c]=u}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var l=window.getComputedStyle(this.element);this.options.rtl=null!=l?"rtl"===l.direction:"rtl"===this.element.style.direction}function p(e,t){var n="data-slider-"+t.replace(/_/g,"-"),r=e.getAttribute(n);try{return JSON.parse(r)}catch(e){return r}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var f,d,h,m,g,y=this.element.style.width,v=!1,b=this.element.parentNode;if(this.sliderElem)v=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var w=document.createElement("div");w.className="slider-track",(d=document.createElement("div")).className="slider-track-low",(f=document.createElement("div")).className="slider-selection",(h=document.createElement("div")).className="slider-track-high",(m=document.createElement("div")).className="slider-handle min-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),(g=document.createElement("div")).className="slider-handle max-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),w.appendChild(d),w.appendChild(f),w.appendChild(h),this.rangeHighlightElements=[];var _=this.options.rangeHighlights;if(Array.isArray(_)&&_.length>0)for(var O=0;O<_.length;O++){var S=document.createElement("div"),E=_[O].class||"";S.className="slider-rangeHighlight slider-selection "+E,this.rangeHighlightElements.push(S),w.appendChild(S)}var k=Array.isArray(this.options.labelledby);if(k&&this.options.labelledby[0]&&m.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&g.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(m.setAttribute("aria-labelledby",this.options.labelledby),g.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",s=0;s<this.options.ticks.length;s++){var C=document.createElement("div");if(C.className="slider-tick",this.options.ticks_tooltip){var j=this._addTickListener(),M=j.addMouseEnter(this,C,s),x=j.addMouseLeave(this,C);this.ticksCallbackMap[s]={mouseEnter:M,mouseLeave:x}}this.ticks.push(C),this.ticksContainer.appendChild(C)}f.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",s=0;s<this.options.ticks_labels.length;s++){var D=document.createElement("div"),T=0===this.options.ticks_positions.length,I=this.options.reversed&&T?this.options.ticks_labels.length-(s+1):s;D.className="slider-tick-label",D.innerHTML=this.options.ticks_labels[I],this.tickLabels.push(D),this.tickLabelContainer.appendChild(D)}var N=function(e){var t=document.createElement("div");t.className="tooltip-arrow";var n=document.createElement("div");n.className="tooltip-inner",e.appendChild(t),e.appendChild(n)},A=document.createElement("div");A.className="tooltip tooltip-main",A.setAttribute("role","presentation"),N(A);var L=document.createElement("div");L.className="tooltip tooltip-min",L.setAttribute("role","presentation"),N(L);var P=document.createElement("div");P.className="tooltip tooltip-max",P.setAttribute("role","presentation"),N(P),this.sliderElem.appendChild(w),this.sliderElem.appendChild(A),this.sliderElem.appendChild(L),this.sliderElem.appendChild(P),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(m),this.sliderElem.appendChild(g),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),o[this.options.scale]&&(this.options.scale=o[this.options.scale]),!0===v&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach((function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)}),this),[this.handle1,this.handle2].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top"),this._removeClass(e,"right"),this._removeClass(e,"left"),this._removeClass(e,"top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=y,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=d||this.trackLow,this.trackSelection=f||this.trackSelection,this.trackHigh=h||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=m||this.handle1,this.handle2=g||this.handle2,!0===v)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),s=0;s<this.ticks.length;s++)this._removeClass(this.ticks[s],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),s=0;s<this.ticks.length;s++)this._addClass(this.ticks[s],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var R=this._addTickListener(),z=R.addMouseEnter(this,this.handle1),B=R.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:z,mouseLeave:B},z=R.addMouseEnter(this,this.handle2),B=R.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:z,mouseLeave:B}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(t=function(e,t){return i.call(this,e,t),this}).prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+" : "+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||(e=0);var r=this.getValue();this._state.value=this._validateInputValue(e);var o=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=o(this._state.value[0]),this._state.value[1]=o(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=o(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var i=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(i),!0===t&&this._trigger("slide",i),(Array.isArray(i)?r[0]!==i[0]||r[1]!==i[1]:r!==i)&&!0===n&&this._trigger("change",{oldValue:r,newValue:i}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),e&&(this._unbindJQueryEventHandlers(),"slider"===n&&this.$element.removeData(n),this.$element.removeData("bootstrapSlider"))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(t){var r=this.getValue();return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),t&&!0===t.useCurrentValue&&this.setValue(r),e&&("slider"===n?(e.data(this.element,"slider",this),e.data(this.element,"bootstrapSlider",this)):e.data(this.element,"bootstrapSlider",this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName("slider-tick"),t=0;t<e.length;t++)e[t].removeEventListener("mouseenter",this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener("mouseleave",this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(e,t){void 0===this.eventToCallbackMap[e]&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in")),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=o(e||this._state,this.options.reversed);function o(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),o=t===e.handle1?r.value[0]:r.value[1],i=void 0;void 0!==n?(o=e.options.ticks[n],i=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])):i=e._toPercentage(o),r.value[0]=o,r.percentage[0]=i,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var e,t,n;if(e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=e[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute("aria-valuetext",t):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=e[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute("aria-valuetext",t):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var r=0;r<this.options.rangeHighlights.length;r++){var o=this._toPercentage(this.options.rangeHighlights[r].start),i=this._toPercentage(this.options.rangeHighlights[r].end);if(this.options.reversed){var a=100-i;i=100-o,o=a}var s=this._createHighlightRange(o,i);s?"vertical"===this.options.orientation?(this.rangeHighlightElements[r].style.top=s.start+"%",this.rangeHighlightElements[r].style.height=s.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=s.start+"%":this.rangeHighlightElements[r].style.left=s.start+"%",this.rangeHighlightElements[r].style.width=s.size+"%"):this.rangeHighlightElements[r].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var c,u="vertical"===this.options.orientation?"height":"width";c="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var p=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[c]=-l/2+"px"),p=this.tickLabelContainer.offsetHeight;else for(f=0;f<this.tickLabelContainer.childNodes.length;f++)this.tickLabelContainer.childNodes[f].offsetHeight>p&&(p=this.tickLabelContainer.childNodes[f].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=p+"px")}for(var f=0;f<this.options.ticks.length;f++){var d=this.options.ticks_positions[f]||this._toPercentage(this.options.ticks[f]);this.options.reversed&&(d=100-d),this.ticks[f].style[this.stylePos]=d+"%",this._removeClass(this.ticks[f],"in-selection"),this.options.range?d>=e[0]&&d<=e[1]&&this._addClass(this.ticks[f],"in-selection"):("after"===this.options.selection&&d>=e[0]||"before"===this.options.selection&&d<=e[0])&&this._addClass(this.ticks[f],"in-selection"),this.tickLabels[f]&&(this.tickLabels[f].style[u]=l+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[f]?(this.tickLabels[f].style.position="absolute",this.tickLabels[f].style[this.stylePos]=d+"%",this.tickLabels[f].style[c]=-l/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[f].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[f].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[f],"label-in-selection label-is-selection"),this.options.range?d>=e[0]&&d<=e[1]&&(this._addClass(this.tickLabels[f],"label-in-selection"),(d===e[0]||e[1])&&this._addClass(this.tickLabels[f],"label-is-selection")):(("after"===this.options.selection&&d>=e[0]||"before"===this.options.selection&&d<=e[0])&&this._addClass(this.tickLabels[f],"label-in-selection"),d===e[0]&&this._addClass(this.tickLabels[f],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+"%";var h=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,h);var m=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,m),this.tooltip_min.style[this.stylePos]=e[0]+"%",this.tooltip_max.style[this.stylePos]=e[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=e[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(e[0],e[1])+"%",this.trackSelection.style.top=Math.min(e[0],e[1])+"%",this.trackSelection.style.height=Math.abs(e[0]-e[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(e[0],e[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(e[0],e[1])+"%":this.trackSelection.style.left=Math.min(e[0],e[1])+"%",this.trackSelection.style.width=Math.abs(e[0]-e[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";var g=this.tooltip_min.getBoundingClientRect(),y=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?g.right>y.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):g.right>y.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var o=this._calculateValue();return this._trigger("slideStart",o),this.setValue(o,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){0===e&&this.handle1.focus(),1===e&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1}if(n){if(this.options.natural_arrow_keys){var r="horizontal"===this.options.orientation,o="vertical"===this.options.orientation,i=this.options.rtl,a=this.options.reversed;r?i?a||(n=-n):a&&(n=-n):o&&(a||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;-1===(c=this.options.ticks.indexOf(this._state.value[e]))&&(c=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(u);var l=this._state.keyCtrl?this._state.value[0]:s,p=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,l)),Math.max(this.options.min,Math.min(this.options.max,p))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger("slideStart",s),this.setValue(s,!0,!0),this._trigger("slideStop",s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){void 0!==e.changedTouches&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger("slideStop",n),this._state.dragged=null,!1},_setValues:function(e,t){var n=0===e?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){!this.touchCapable||"touchstart"!==e.type&&"touchmove"!==e.type&&"touchend"!==e.type||(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(isNaN(+e)){if(Array.isArray(e))return this._validateArray(e),e;throw new Error(r(e))}return+e},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("number"!=typeof n)throw new Error(r(n))}},_setDataVal:function(e){this.element.setAttribute("data-value",e),this.element.setAttribute("value",e),this.element.value=e},_trigger:function(t,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var o=0;o<r.length;o++)(0,r[o])(n);e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)},_removeClass:function(e,t){for(var n=t.split(" "),r=e.className,o=0;o<n.length;o++){var i=n[o],a=new RegExp("(?:\\s|^)"+i+"(?:\\s|$)");r=r.replace(a," ")}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(" "),r=e.className,o=0;o<n.length;o++){var i=n[o];new RegExp("(?:\\s|^)"+i+"(?:\\s|$)").test(r)||(r+=" "+i)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,"BODY"!==e.tagName&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var o=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}));t.style[o]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var t,n="left"===(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";e.forEach(function(e){this._addClass(e,t),e.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?e.forEach(function(e){this._addClass(e,"bottom"),e.style.top="22px"}.bind(this)):e.forEach(function(e){this._addClass(e,"top"),e.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var o=Math.abs(e-this.options.ticks[r]);o<t&&(t=o,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),n="bootstrapSlider"):(e.bridget("slider",t),n="slider"),e.bridget("bootstrapSlider",t),e((function(){e("input[data-provide=slider]")[n]()})))}(e),t})?r.apply(t,o):r)||(e.exports=i)},function(e,t){e.exports=null},function(e,t,n){var r=n(148),o=n(234);n(149);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,s=t.safeAttrValue;return o(e,(function(e,t,o,c,u){var l=n[o],p=!1;if(!0===l?p=l:"function"==typeof l?p=l(c):l instanceof RegExp&&(p=l.test(c)),!0!==p&&(p=!1),c=s(o,c)){var f,d={position:t,sourcePosition:e,source:u,isWhite:p};return p?i(f=r(o,c,d))?o+":"+c:f:i(f=a(o,c,d))?void 0:f}}))},e.exports=a},function(e,t,n){var r=n(149);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(e.slice(i,a)),c=n.indexOf(":");if(-1!==c){var u=r.trim(n.slice(0,c)),l=r.trim(n.slice(c+1));if(u){var p=t(i,s.length,u,l,n);p&&(s+=p+"; ")}}}i=a+1}for(;a<n;a++){var u=e[a];if("/"===u&&"*"===e[a+1]){var l=e.indexOf("*/",a+2);if(-1===l)break;i=(a=l+1)+1,o=!1}else"("===u?o=!0:")"===u?o=!1:";"===u?o||c():"\n"===u&&c()}return r.trim(s)}},function(e,t,n){var r=n(105).FilterCSS,o=n(147),i=n(150),a=i.parseTag,s=i.parseAttr,c=n(106);function u(e){return null==e}function l(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=o.whiteList,e.onTag=e.onTag||o.onTag,e.onTagAttr=e.onTagAttr||o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||o.safeAttrValue,e.escapeHtml=e.escapeHtml||o.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}l.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,p=t.onIgnoreTagAttr,f=t.safeAttrValue,d=t.escapeHtml,h=this.cssFilter;t.stripBlankChar&&(e=o.stripBlankChar(e)),t.allowCommentTag||(e=o.stripCommentTag(e));var m=!1;t.stripIgnoreTagBody&&(m=o.StripTagBody(t.stripIgnoreTagBody,i),i=m.onIgnoreTag);var g=a(e,(function(e,t,o,a,m){var g={sourcePosition:e,position:t,isClosing:m,isWhite:Object.prototype.hasOwnProperty.call(n,o)},y=r(o,a,g);if(!u(y))return y;if(g.isWhite){if(g.isClosing)return"</"+o+">";var v=function(e){var t=c.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=c.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=c.trim(e.slice(0,-1))),{html:e,closing:n}}(a),b=n[o],w=s(v.html,(function(e,t){var n=-1!==c.indexOf(b,e),r=l(o,e,t,n);return u(r)?n?(t=f(o,e,t,h))?e+'="'+t+'"':e:u(r=p(o,e,t,n))?void 0:r:r}));return a="<"+o,w&&(a+=" "+w),v.closing&&(a+=" /"),a+=">"}return u(y=i(o,a,g))?d(a):y}),d);return m&&(g=m.remove(g)),g},e.exports=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(125),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(126),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(75),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(127),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(76),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(128),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getSeconds();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMinutes();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getHours();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getDay();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getDate();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMonth();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){return Object(o.a)(1,arguments),Object(r.default)(e).getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getTime();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setSeconds(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setMinutes(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setHours(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(12),o=n(3),i=n(132),a=n(1);function s(e,t){Object(a.a)(2,arguments);var n=Object(o.default)(e),s=Object(r.a)(t),c=Math.floor(n.getMonth()/3)+1,u=s-c;return Object(i.default)(n,n.getMonth()+3*u)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(28),o=n(3),i=n(1);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==Object(r.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(o.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(28),o=n(3),i=n(1);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==Object(r.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(o.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(45),o=n(59),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(o.default)(t),s=n.getTime()-Object(r.a)(n),c=a.getTime()-Object(r.a)(a);return Math.round((s-c)/864e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t),a=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth();return 12*a+s}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(66),o=n(45),i=n(1);function a(e,t,n){Object(i.a)(2,arguments);var a=Object(r.default)(e,n),s=Object(r.default)(t,n),c=a.getTime()-Object(o.a)(a),u=s.getTime()-Object(o.a)(s);return Math.round((c-u)/6048e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()-i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e);return t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(32),o=n(3),i=n(12),a=n(1);function s(e,t){var n,s,c,u,l,p,f,d;Object(a.a)(1,arguments);var h=Object(r.a)(),m=Object(i.a)(null!==(n=null!==(s=null!==(c=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t||null===(l=t.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==s?s:null===(f=h.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Object(o.default)(e),y=g.getDay(),v=6+(y<m?-7:0)-(y-m);return g.setDate(g.getDate()+v),g.setHours(23,59,59,999),g}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(59),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()===i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(97),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()>i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()<i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e).getTime(),i=Object(r.default)(t.start).getTime(),a=Object(r.default)(t.end).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return n>=i&&n<=a}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(49),o=n(1),i=n(12);function a(e,t){var n;Object(o.a)(1,arguments);var r=Object(i.a)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=p(e);if(s.date){var c=f(s.date,r);a=d(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,l=a.getTime(),h=0;if(s.time&&(h=m(s.time),isNaN(h)))return new Date(NaN);if(!s.timezone){var g=new Date(l+h),v=new Date(0);return v.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),v.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),v}return u=y(s.timezone),isNaN(u)?new Date(NaN):new Date(l+h+u)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=s.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function f(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function d(e,t){if(null===t)return new Date(NaN);var n=e.match(c);if(!n)return new Date(NaN);var r=!!n[4],o=h(n[1]),i=h(n[2])-1,a=h(n[3]),s=h(n[4]),u=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(v[t]||(b(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,o)?(l.setUTCFullYear(t,i,Math.max(o,a)),l):new Date(NaN)}function h(e){return e?parseInt(e):1}function m(e){var t=e.match(u);if(!t)return NaN;var n=g(t[1]),o=g(t[2]),i=g(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i)?n*r.a+o*r.b+1e3*i:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function y(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(o*r.a+i*r.b):NaN}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400==0||e%4==0&&e%100!=0}},function(e,t,n){"use strict";n.r(t),n.d(t,"IGNORE_CLASS_NAME",(function(){return h}));var r=n(0),o=n(27);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var c,u,l=(void 0===c&&(c=0),function(){return++c}),p={},f={},d=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n={};return-1!==d.indexOf(t)&&u&&(n.passive=!e.props.preventDefault),n}t.default=function(e,t){var n,c,d=e.displayName||e.name||"Component";return c=n=function(n){var c,h;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!f[r._uid]){void 0===u&&(u=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),f[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),p[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,p[r._uid],m(a(r),e))}))}},r.disableOnClickOutside=function(){delete f[r._uid];var e=p[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(a(r),t))})),delete p[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}h=n,(c=g).prototype=Object.create(h.prototype),c.prototype.constructor=c,i(c,h);var y=g.prototype;return y.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},y.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},y.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},y.componentWillUnmount=function(){this.disableOnClickOutside()},y.render=function(){var t=this.props;t.excludeScrollbar;var n=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,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},c}},function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(152),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(c)for(var v=function(e){if("undefined"==typeof window||!d)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(e,l[b])||f.push(l[b]);return f}}e.exports=r},function(e,t,n){"use strict";var r=n(107)(),o=n(154)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(153);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,a=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(o.call(arguments)))},c=Math.max(0,t.length-a.length),u=[],l=0;l<c;l++)u.push("$"+l);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n}},function(e,t,n){"use strict";var r=n(109);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(70),o=n(110),i=n(155),a=n(156),s=n(285),c=o(a(),Object);r(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=n(108)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,n){"use strict";var r=n(156),o=n(70);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,n){"use strict";var r,o,i,a,s=n(154),c=n(107)();if(c){r=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),i={};var u=function(){throw i};a={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var l=s("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===l(e)}},function(e,t,n){"use strict";var r=n(70),o=n(110),i=n(157),a=n(158),s=n(289),c=o(a());r(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=function(){return"string"==typeof function(){}.name},o=Object.getOwnPropertyDescriptor;if(o)try{o([],"length")}catch(e){o=null}r.functionsHaveConfigurableNames=function(){if(!r()||!o)return!1;var e=o((function(){}),"name");return!!e&&!!e.configurable};var i=Function.prototype.bind;r.boundFunctionsHaveNames=function(){return r()&&"function"==typeof i&&""!==function(){}.bind().name},e.exports=r},function(e,t,n){"use strict";var r=n(70).supportsDescriptors,o=n(158),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!r||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(u),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(107)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(a(r),a(n(23))),i=a(n(292));a(n(130));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,p="__create-react-context-"+(0,i.default)()+"__",f=function(e){function n(){var t,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=c(this,e.call.apply(e,[this].concat(i))),r.emitter=l(r.props.value),c(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):1073741823,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[p]=o.default.object.isRequired,n);var d=function(t){function n(){var e,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=c(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},c(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((a={})[p]=o.default.object,a),{Provider:f,Consumer:d}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(42))},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(71),a=n(38),s=n(52),c=n(39),u=n(33),l=n(24),p=n(43),f=n(50),d=n(20),h=n(309),m=f("draft_tree_data_support"),g=m?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(o,s,"backward"),f=c.getSelectionAfter(),d=u.splitBlock(c,f),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),w=a.create({entity:t}),_={key:p(),type:"atomic",text:n,characterList:y(v(w,n.length))},O={key:p(),type:"unstyled"};m&&(_=r({},_,{nextSibling:O.key}),O=r({},O,{prevSibling:_.key}));var S=[new g(_),new g(O)],E=i.createFromArray(S),k=u.replaceWithFragment(b,h,E),C=k.merge({selectionBefore:s,selectionAfter:k.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,t,s,r)}else{var c=u.removeRange(i,n,"backward"),p=c.getSelectionAfter(),f=c.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())o=h(c,t,f,"before");else if(p.getEndOffset()===f.getLength())o=h(c,t,f,"after");else{var d=u.splitBlock(c,p),m=d.getSelectionAfter(),g=d.getBlockForKey(m.getFocusKey());o=h(d,t,g,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,y,"move-block")}};e.exports=b},function(e,t,n){"use strict";var r=n(38),o=n(20).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var p,f=e.getCharacterList();o<a;)p=f.get(o),f=f.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:a.merge(p),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,n){"use strict";var r=n(297),o=n(20);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(e,t){var o=t===a?s:0,i=t===c?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},function(e,t,n){"use strict";var r=n(299),o=n(300),i=n(21);function a(e,t,n,a,s,c,u){var l=n.getStartOffset(),p=n.getEndOffset(),f=e.__get(s).getMutability(),d=u?l:p;if("MUTABLE"===f)return n;var h=o(t,s).filter((function(e){return d<=e.end&&d>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});c||(u?p=m.end:l=m.start);var g=r.getRemovalRange(l,p,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var p=a(e,t,l,o,c,!1,!0),f=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var p=r+n.length,f=c===r,d=u===p;return(!f&&d||f&&!d)&&("forward"===o?u!==p&&u++:c!==r&&c--),{start:c,end:u}}}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},function(e,t,n){"use strict";var r=n(71),o=n(39),i=n(20),a=n(161),s=n(21),c=n(159),u=i.List,l=function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),u=c.getText(),l=c.getCharacterList(),p=o,f=i+r.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=c.getType();u&&"unstyled"===h&&(h=r.getType());var m=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},p=function(e,t,n,i,a,s){var c=n.first()instanceof o,l=[],p=i.size,f=n.get(a),d=i.first(),h=i.last(),m=h.getLength(),g=h.getKey(),y=c&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,p-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)}));var v=r.createFromArray(l);return c&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],u(d))}}))}(v,0,f,d)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})};e.exports=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var i=e.getBlockMap(),a=c(n),u=t.getStartKey(),f=t.getStartOffset(),d=i.get(u);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1)),1===a.size?l(e,t,i,a.first(),u,f,r):p(e,t,i,a,u,f)}},function(e,t,n){"use strict";var r=n(20),o=n(161),i=n(21),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),p=c.get(u),f=p.getText(),d=p.merge({text:f.slice(0,l)+n+f.slice(l,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,d),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},function(e,t,n){"use strict";var r=n(39),o=n(163),i=n(20),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},p=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),c(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:l(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var p=a?e.get(a):null,f=p?p.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:f})}))})),null!=f){var d=e.get(f);s(f,i,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},f=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),d=t.getEndOffset(),h=i.get(s),m=i.get(l),g=h instanceof r,y=[];if(g){var v=m.getChildKeys(),b=c(l,i);m.getNextSiblingKey()&&(y=y.concat(b)),v.isEmpty()||(y=y.concat(b.concat([l]))),y=y.concat(c(o(m,i),i))}n=h===m?f(h.getCharacterList(),u,d):h.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(d));var w=h.merge({text:h.getText().slice(0,u)+m.getText().slice(d),characterList:n}),_=g&&0===u&&0===d&&m.getParentKey()===s&&null==m.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).filter((function(e,t){return-1===y.indexOf(t)})).concat(a([[l,null]])).map((function(e,t){return t===s?w:null})),O=i.merge(_).filter((function(e){return!!e}));return g&&h!==m&&(O=p(O,h,m,i)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(39),o=n(43),i=n(20),a=n(21),s=n(162),c=i.List,u=i.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=p.getCharacterList(),g=o(),y=p instanceof r,v=p.merge({text:f.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:f.slice(h),characterList:m.slice(h),data:u()}),w=i.toSeq().takeUntil((function(e){return e===p})),_=i.toSeq().skipUntil((function(e){return e===p})).rest(),O=w.concat([[n,v],[g,b]],_).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),O=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(O,v,b)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(72),i=n(164),a=n(20),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},p=u({start:null,end:null}),f=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new f({start:0,end:0,decoratorKey:null,leaves:s.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(c(null,r)),u=t.getCharacterList();return o(a,m,l,(function(e,t){i.push(new f({start:e,end:t,decoratorKey:a.get(e),leaves:h(u.slice(e,t).toList(),e)}))})),s(i)},fromJS:function(e){var t=e.leaves,n=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}(e,["leaves"]);return new f(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map((function(e){return p(e)})):null}))}};function h(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return o(r,m,l,(function(e,r){n.push(new p({start:e+t,end:r+t}))})),s(n)}function m(e,t){return e===t}e.exports=d},function(e,t,n){"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},function(e,t,n){"use strict";var r,o=n(308),i=n(20),a=n(34),s=i.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=s(n.keySeq().zip(c));return null!=t&&i.is(t,u)?t:u}};e.exports=c},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(112),i=n(84),a=n(21),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},function(e,t,n){"use strict";var r=n(39),o=n(163),i=n(20),a=n(21),s=i.OrderedMap,c=i.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),l=t.getParentKey(),p=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,m=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(f,e,(function(e){return e.merge({nextSibling:p})})),u(p,e,(function(e){return e.merge({prevSibling:f})})),u(h,e,(function(e){return e.merge({prevSibling:a})})),u(m,e,(function(e){return e.merge({nextSibling:a})})),u(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),u(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:d})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=t.getKey();u===c&&a(!1);var p=e.getBlockMap(),f=t instanceof r,d=[t],h=p.delete(u);f&&(d=[],h=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),o=t===u,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){d.push(t),e.delete(t.getKey())}))})));var m=h.toSeq().takeUntil((function(e){return e===n})),g=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=d.map((function(e){return[e.getKey(),e]})),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=m.concat([].concat(y,[[c,n]]),g).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=m.concat([[c,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:l(v,t,n,i,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},function(e,t,n){"use strict";var r=n(20).List,o=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},function(e,t,n){"use strict";(function(t){var r=n(54);function o(){return(o=r||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)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(113),l=n(167),p=n(312),f=n(320),d=n(337),h=n(340),m=n(375),g=n(376),y=n(179),v=n(24),b=n(0),w=n(116),_=n(88),O=n(35),S=n(53),E=n(43),k=n(195),C=n(89),j=n(50),M=n(21),x=n(73),D=n(34),T=O.isBrowser("IE"),I=!T,N={edit:h,composite:p,drag:d,cut:null,render:null},A=!1,L=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),P=function(e){function n(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=_.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;x(o)||M(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(t,t.getSelection()))}})),s(a(n),"blur",(function(){var e=n.editor;e&&(x(e)||M(!1),e.blur())})),s(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},N.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},N,{edit:s});n._handler=c[e]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(a(n),"setClipboard",(function(e){n._clipboard=e})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}c(n,e);var r=n.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(m?m((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(g,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,p=e.readOnly,d=e.textAlignment,h=e.textDirectionality,m=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),g=this.props.role||"textbox",y="combobox"===g?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:m},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:p?null:g,spellCheck:I&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(L,{editor:this,editorState:c}),b.createElement(f,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!A&&j("draft_ods_enabled")&&(A=!0,y.initODS()),this.setMode("edit"),T&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):t.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:k,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=P}).call(this,n(42))},function(e,t,n){"use strict";var r=n(313),o=n(33),i=n(47),a=n(24),s=n(87),c=n(35),u=n(170),l=n(172),p=n(173),f=n(114),d=n(34),h=c.isBrowser("IE"),m=!1,g=!1,y=null;var v={onCompositionStart:function(e){g=!0,function(e){y||(y=new r(l(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout((function(){m||v.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=d(y).stopAndFlushMutations();y=null,m=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,p=n.getBlockTree(c).getIn([u,"leaves",l]),d=p.start,h=p.end,m=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),g=f(r,m),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=p(n,l(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,r,"insert-characters"))}else e.update(n)}}};e.exports=v},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(35),i=n(85),a=n(169),s=n(20),c=n(21),u=n(34),l=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=l();var n=a(e);n.MutationObserver&&!f?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return f?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},function(e,t,n){"use strict";var r=n(315),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),c=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(s.browser.version),u={browserArchitecture:s.cpu.architecture||o,browserFullVersion:s.browser.version||o,browserMinorVersion:c.minor||o,browserName:s.browser.name||o,browserVersion:s.browser.major||o,deviceName:s.device.model||o,engineName:s.engine.name||o,engineVersion:s.engine.version||o,platformArchitecture:s.cpu.architecture||o,platformName:(a=s.os.name,i[a]||a||o),platformVersion:s.os.version||o,platformFullVersion:s.os.version||o};e.exports=u},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",c="type",u="vendor",l="version",p="mobile",f="tablet",d="smarttv",h=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},m=function(e,t){return"string"==typeof e&&-1!==g(t).indexOf(g(e))},g=function(e){return e.toLowerCase()},y=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,""),void 0===t?e:e.substring(0,350)},v=function(e,t){for(var n,r,o,i,a,s,c=0;c<t.length&&!a;){var u=t[c],l=t[c+1];for(n=r=0;n<u.length&&!a&&u[n];)if(a=u[n++].exec(e))for(o=0;o<l.length;o++)s=a[++r],"object"==typeof(i=l[o])&&i.length>0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3===i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4===i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},b=function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(m(t[n][r],e))return"?"===n?void 0:n}else if(m(t[n],e))return"?"===n?void 0:n;return e},w={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},_={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,b,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[s,l],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",g]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",g]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",g]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,"Samsung"],[c,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,"Samsung"],[c,p]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[u,"Apple"],[c,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,f]],[/(macintosh);/i],[a,[u,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,p]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,p]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,"OPPO"],[c,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,p]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,"Motorola"],[c,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,p]],[/(pixel c)\b/i],[a,[u,"Google"],[c,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,p]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[c,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,p]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,p]],[/(nexus 9)/i],[a,[u,"HTC"],[c,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,p]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,f]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,p]],[/(u304aa)/i],[a,[u,"AT&T"],[c,p]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,p]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,f]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,f]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,f]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,f]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,f]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,p]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,p]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,f]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,f]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,p]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,f]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,f]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,f]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,f]],[/(sprint) (\w+)/i],[u,a,[c,p]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,p]],[/smart-tv.+(samsung)/i],[u,[c,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[c,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,d]],[/(apple) ?tv/i],[u,[a,"Apple TV"],[c,d]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[c,d]],[/droid.+aft(\w)( bui|\))/i],[a,[u,"Amazon"],[c,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,"Sharp"],[c,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,"Sony"],[c,d]],[/(mitv-\w{5}) bui/i],[a,[u,"Xiaomi"],[c,d]],[/Hbbtv.*(technisat) (.*);/i],[u,a,[c,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,y],[a,y],[c,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,d]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,"console"]],[/droid.+; (shield) bui/i],[a,[u,"Nvidia"],[c,"console"]],[/(playstation [345portablevi]+)/i],[a,[u,"Sony"],[c,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,"Microsoft"],[c,"console"]],[/((pebble))app/i],[u,a,[c,"wearable"]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[u,"Apple"],[c,"wearable"]],[/droid.+; (glass) \d/i],[a,[u,"Google"],[c,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,"Zebra"],[c,"wearable"]],[/(quest( 2| pro)?)/i],[a,[u,"Facebook"],[c,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,"embedded"]],[/(aeobc)\b/i],[a,[u,"Amazon"],[c,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,f]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,p]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,b,w]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,b,w]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,"Chromium OS"],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,l]]},O=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof O))return new O(e,t).getResult();var n=void 0!==o&&o.navigator?o.navigator:void 0,r=e||(n&&n.userAgent?n.userAgent:""),i=n&&n.userAgentData?n.userAgentData:void 0,u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(_,t):_,d=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[s]=void 0,t[l]=void 0,v.call(t,r,u.browser),t.major="string"==typeof(e=t[l])?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&n&&n.brave&&"function"==typeof n.brave.isBrave&&(t[s]="Brave"),t},this.getCPU=function(){var e={architecture:void 0};return v.call(e,r,u.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return v.call(e,r,u.device),d&&!e[c]&&i&&i.mobile&&(e[c]=p),d&&"Macintosh"==e[a]&&n&&void 0!==n.standalone&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[a]="iPad",e[c]=f),e},this.getEngine=function(){var e={name:void 0,version:void 0};return v.call(e,r,u.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return v.call(e,r,u.os),d&&!e[s]&&i&&"Unknown"!=i.platform&&(e[s]=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"==typeof e&&e.length>350?y(e,350):e,this},this.setUA(r),this};O.VERSION="0.7.35",O.BROWSER=h([s,l,"major"]),O.CPU=h(["architecture"]),O.DEVICE=h([a,u,c,"console",p,d,f,"wearable","embedded"]),O.ENGINE=O.OS=h([s,l]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=O),t.UAParser=O):n(316)?void 0===(r=function(){return O}.call(t,n,t,e))||(e.exports=r):void 0!==o&&(o.UAParser=O);var S=void 0!==o&&(o.jQuery||o.Zepto);if(S&&!S.ua){var E=new O;S.ua=E.getResult(),S.ua.get=function(){return E.getUA()},S.ua.set=function(e){E.setUA(e);var t=E.getResult();for(var n in t)S.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(21),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return m(o)&&m(i)||r(!1),l(">="+o,t)&&l("<="+i,t)}(e=n[0].trim(),t)}function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=d(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return p(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return f(r,s);case">":return function(e,t){return 1===b(e,t)}(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return f(e,n)&&p(e,r)}(r,s);default:return function(e,t){return 0===b(e,t)}(r,s)}}function p(e,t){return-1===b(e,t)}function f(e,t){var n=b(e,t);return 1===n||0===n}function d(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function m(e){return!d(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?v(o,i):v(e,t)}function v(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=y(r[i],o[i]);if(a)return a}return 0}var w={contains:function(e,t){return u(e.trim(),t.trim())}};e.exports=w},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}},function(e,t,n){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){"use strict";var r=n(50)("draft_tree_data_support");e.exports=n(r?321:335)},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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 i=n(322),a=n(47),s=n(0),c=n(34),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,p=e.editorState,f=e.editorKey,d=e.textDirectionality,h=p.getCurrentContent(),m=p.getSelection(),g=p.mustForceSelection(),y=p.getDecorator(),v=c(p.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var _=w.getKey(),O={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:f,editorState:p,forceSelection:g,selection:m,block:w,direction:d||v.get(_),tree:p.getBlockTree(_)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:_},O)),wrapperTemplate:S,key:_,offsetKey:a.encode(_,0,0)});var E=w.getNextSiblingKey();w=E?h.getBlockForKey(E):null}for(var k=[],C=0;C<b.length;){var j=b[C];if(j.wrapperTemplate){var M=[];do{M.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===j.wrapperTemplate);var x=s.cloneElement(j.wrapperTemplate,{key:j.key+"-wrap","data-offset-key":j.offsetKey},M);k.push(x)}else k.push(j.block),C++}return s.createElement("div",{"data-contents":"true"},k)},r}(s.Component);e.exports=u},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(323),u=n(47),l=n(0),p=n(116),f=n(88),d=n(181),h=n(89),m=n(182),g=n(20),y=n(21),v=n(73),b=(g.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),w=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},_=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},O=function(e,t,n,r,o,i){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},c=r(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},S=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(i(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",l.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var g=r.prototype;return g.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection;return i||a},g.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{v(n)||y(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&p.setTop(o,p.getTop(o)+r+10)}}}},g.render=function(){var e=this,t=this.props,n=t.block,i=t.blockRenderMap,s=t.blockRendererFn,p=t.blockStyleFn,f=t.contentState,d=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,v=t.direction,S=t.forceSelection,E=t.selection,k=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var o=u.encode(n,0,0),c=f.getBlockForKey(n),d=_(c,s),g=d.CustomComponent||r,y=w(c,i),v=y.Element,b=y.wrapperTemplate,S=O(c,h,o,p,d,null),E=a({},e.props,{tree:m.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(l.createElement(v,S,l.createElement(g,E))),!b||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.reverse()[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var p=s.value;if(p.type!==t)break;r.push(p)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(l.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":u.encode(d,0,0)},f))}(b,v,t),t}),[]));var j=n.getKey(),M=u.encode(j,0,0),x=_(n,s),D=x.CustomComponent,T=null!=D?l.createElement(D,o({},this.props,{tree:m.getBlockTree(j),blockProps:x.customProps,offsetKey:M,block:n})):l.createElement(c,{block:n,children:C,contentState:f,customStyleFn:g,customStyleMap:y,decorator:d,direction:v,forceSelection:S,hasSelection:b(E,j),selection:E,tree:k});if(n.getParentKey())return T;var I=w(n,i).Element,N=O(n,h,M,p,x,this.wrapperRef);return l.createElement(I,N,T)},r}(l.Component);e.exports=S},function(e,t,n){"use strict";var r=n(324),o=n(177),i=n(47),a=n(20),s=n(0),c=n(53),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,p=e.direction,f=e.forceSelection,d=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),y=t.getText(),v=m.size-1,b=this.props.children||m.map((function(e,c){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,_=b.map((function(e,n){var r=i.encode(g,c,n),l=e.get("start"),p=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:l,selection:d?h:null,forceSelection:f,text:y.slice(l,p),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:m===v&&n===w})})).toArray();return m&&l?s.createElement(r,{block:t,children:_,contentState:n,decorator:l,decoratorKey:m,direction:p,leafSet:e,text:y,key:c}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(g,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));e.exports=u},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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 i=n(47),a=n(0),s=n(112),c=n(84),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,l=e.decoratorKey,p=e.direction,f=e.leafSet,d=e.text,h=t.getKey(),m=f.get("leaves"),g=u.getComponentForKey(l),y=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(m.first().get("start"),m.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),p);return a.createElement(g,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(f.get("start")),offsetKey:v}),n)},r}(a.Component);e.exports=u},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(0),a=n(35),s=n(21),c=n(55),u=a.isBrowser("IE <= 11");var l=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e=this;return""===this.props.children?this._forceFlag?function(e){return u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})}((function(t){return e._node=t})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);e.exports=l},function(e,t,n){"use strict";var r=n(179),o=n(171),i=n(35),a=n(115),s=n(180),c=n(86),u=n(21),l=n(55),p=i.isBrowser("IE");function f(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return c(t).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,s=0;s<a.length;s++)i.appendChild(e(a[s],n));return i}(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return f(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function h(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function m(e,t,n,r){var i=s();if(e.extend&&null!=t&&a(i,t)){n>h(t)&&o.logSelectionStateFailure({anonymizedDom:d(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:d(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,n),e.addRange(u.cloneRange())}}function g(e,t,n,i){var a=c(t).createRange();if(n>h(t)&&(o.logSelectionStateFailure({anonymizedDom:d(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),p)try{e.addRange(a)}catch(e){0}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),p=e.getFocusKey(),f=e.getFocusOffset(),d=e.getIsBackward();if(!s.extend&&d){var h=u,y=l;u=p,l=f,p=h,f=y,d=!1}var v=u===n&&r<=l&&o>=l,b=p===n&&r<=f&&o>=f;if(v&&b)return s.removeAllRanges(),g(s,t,l-r,e),void m(s,t,f-r,e);if(d){if(b&&(s.removeAllRanges(),g(s,t,f-r,e)),v){var w=s.focusNode,_=s.focusOffset;s.removeAllRanges(),g(s,t,l-r,e),m(s,w,_,e)}}else v&&(s.removeAllRanges(),g(s,t,l-r,e)),b&&m(s,t,f-r,e)}},addFocusToSelection:m}},function(e,t,n){"use strict";var r=n(328);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(330),o=n(331);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},function(e,t,n){"use strict";var r=/-(.)/g;e.exports=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(115);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(183),c=n(47),u=n(0),l=n(53),p=n(336),f=n(34),d=function(e,t,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),_=h.getDecorator(),O=f(h.getDirectionMap()),S=v.getBlocksAsArray(),E=[],k=null,C=null,j=0;j<S.length;j++){var M=S[j],x=M.getKey(),D=M.getType(),T=n(M),I=void 0,N=void 0,A=void 0;T&&(I=T.component,N=T.props,A=T.editable);var L=y||O.get(x),P=c.encode(x,0,0),R={contentState:v,block:M,blockProps:N,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:_,direction:L,forceSelection:w,offsetKey:P,preventScroll:g,selection:b,tree:h.getBlockTree(x)},z=t.get(D)||t.get("unstyled"),B=z.wrapper,F=z.element||t.get("unstyled").element,U=M.getDepth(),H="";if(r&&(H=r(M)),"li"===F)H=p(H,d(D,U,C!==B||null===k||U>k,L));var Y=I||s,K={className:H,"data-block":!0,"data-editor":m,"data-offset-key":P,key:x};void 0!==A&&(K=i({},K,{contentEditable:A,suppressContentEditableWarning:!0}));var V=u.createElement(F,K,u.createElement(Y,o({},R,{key:x})));E.push({block:V,wrapperTemplate:B,key:x,offsetKey:P}),k=B?M.getDepth():null,C=B}for(var W=[],q=0;q<E.length;){var G=E[q];if(G.wrapperTemplate){var Q=[];do{Q.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===G.wrapperTemplate);var Z=u.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Q);W.push(Z)}else W.push(G.block),q++}return u.createElement("div",{"data-contents":"true"},W)},r}(u.Component);e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},function(e,t,n){"use strict";var r=n(184),o=n(33),i=n(24),a=n(85),s=n(86),c=n(186),u=n(175),l=n(169),p=n(90),f=n(34);var d={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),l=e._latestEditorState,d=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=f(n),r=f(r);var c=f(a(n));return u(t,c,r,c,r)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&p(e.props.handleDroppedFiles(d,g)))return;c(g,(function(t){t&&e.update(m(l,d,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&p(e.props.handleDrop(d,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(l,d)):e.update(m(l,d,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},function(e,t,n){"use strict";var r=n(21);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},function(e,t,n){"use strict";var r=n(35),o=n(341),i=n(345),a=n(346),s=n(347),c=n(348),u=n(350),l=n(351),p=n(352),f=n(353),d=n(354),h=n(368),m=n(170),g=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=g||y?m:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:p,onInput:f,onKeyDown:d,onPaste:h,onSelect:m,onMouseUp:v,onKeyUp:v};e.exports=b},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(35),a=n(114),s=n(90),c=n(342),u=n(34),l=n(343),p=i.isBrowser("Firefox");function f(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,g=f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=g.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(y||(m=r,y=p&&("'"==m||"/"==m)),y||(y=u(g.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),y)return t.preventDefault(),g=o.set(g,{forceSelection:!0}),void e.update(g);g=o.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},function(e,t,n){"use strict";(function(t){n(344),e.exports=t.setImmediate}).call(this,n(42))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[c]=o,r(c),c++},f.clearImmediate=d}function d(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(42),n(144))},function(e,t,n){"use strict";var r=n(24),o=n(115),i=n(180);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(c,l))}}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(187);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(88),a=n(187),s=n(89),c=n(349);e.exports=function(e,t){var n,u=e._latestEditorState,l=u.getSelection(),p=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(p)){var f=p;n=s(i.getScrollParent(f))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},function(e,t,n){"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var r=n(24),o=n(35);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},function(e,t,n){"use strict";var r=n(33),o=n(47),i=n(24),a=n(35),s=n(176).notEmptyKey,c=n(85),u=n(188),l=n(34),p=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,f=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==a&&h.removeChild(m)}var g=a.textContent,y=e._latestEditorState,v=l(c(a)),b=o.decode(v),w=b.blockKey,_=b.decoratorKey,O=b.leafKey,S=y.getBlockTree(w).getIn([_,"leaves",O]),E=S.start,k=S.end,C=y.getCurrentContent(),j=C.getBlockForKey(w),M=j.getText().slice(E,k);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==M){var x,D,T,I,N=y.getSelection(),A=N.merge({anchorOffset:E,focusOffset:k,isBackward:!1}),L=j.getEntityAt(E),P=s(L)?C.getEntity(L):null,R="MUTABLE"===(null!=P?P.getMutability():null),z=R?"spellcheck-change":"apply-entity",B=r.replaceText(C,A,g,j.getInlineStyleAt(E),R?j.getEntityAt(E):null);if(p)x=n.anchorOffset,D=n.focusOffset,I=(T=E+Math.min(x,D))+Math.abs(x-D),x=T,D=I;else{var F=g.length-M.length;T=N.getStartOffset(),I=N.getEndOffset(),x=f?I+F:T,D=I+F}var U=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:x,focusOffset:D})});e.update(i.push(y,U,z))}else{var H=t.nativeEvent.inputType;if(H){var Y=function(e,t){switch(e){case"deleteContentBackward":return u(t)}return t}(H,y);if(Y!==y)return e.restoreEditorDOM(),void e.update(Y)}}}}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(119),a=n(87),s=n(356),c=n(35),u=n(90),l=n(357),p=n(359),f=n(361),d=n(362),h=n(363),m=n(364),g=n(188),y=n(365),v=n(366),b=n(367),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function c(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:_&&w(t)&&t.preventDefault()}var O=e.props.keyBindingFn(t);if(null!=O&&""!==O)if("undo"!==O){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(O,i,t.timeStamp))){var S=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return f(t);case"backspace":return g(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return l(t,n);case"split-block":return d(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(O,i,t);S!==i&&e.update(S)}}else b(t,i,e.update);else if(n===a.SPACE&&_&&w(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},function(e,t,n){"use strict";var r=n(87);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(81),a=n(34),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var p=t.getKeyAfter(u);if(null==p)return e;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(t,c);var f=r.removeRange(t,c,"forward");return f===t?e:o.push(e,f,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},function(e,t,n){"use strict";var r=n(24),o=n(358),i=n(174),a=n(117),s=n(74);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},function(e,t,n){"use strict";var r=n(56),o=n(86),i=n(189),a=n(21);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(t),u=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),n)&&(u=e.startContainer,l=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var p=u,f=l-1;;){for(var d=p.nodeValue,h=f;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(p,h),!s(i(e),n))break;u=p,l=h}if(-1===h||0===p.childNodes.length)break;f=c(p=p.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";var r=n(190),o=n(24),i=n(117),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(190),o=n(24),i=n(191),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(33),o=n(24);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(24),o=n(56),i=n(191),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(81);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(u,a),f=r.removeRange(u,a,"backward"),d=f.getSelectionAfter(),h=d.getAnchorOffset()-1,m=d.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(f,m,p),y=o.push(e,g,"insert-fragment");return o.acceptSelection(y,s)}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(e,t,n){"use strict";var r=n(71),o=n(38),i=n(184),a=n(33),s=n(369),c=n(24),u=n(194),l=n(114),p=n(186),f=n(90),d=n(374);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(m)))return;return void p(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=d(t),p=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=s.processText(i,p,f),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var _=e.props.formatPastedText(v,b);v=_.text,b=_.html}if(!e.props.handlePastedText||!f(e.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!e.props.stripPastedStyles){var O,S=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(O=b)||void 0===O?void 0:O.indexOf(e.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void e.update(h(e._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,S))return void e.update(h(e._latestEditorState,S));if(b){var E=s.processHTML(b,e.props.blockRenderMap);if(E){var k=E.contentBlocks,C=E.entityMap;if(k){var j=r.createFromArray(k);return void e.update(h(e._latestEditorState,j,C))}}}e.setClipboard(null)}if(y.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),x=u.getCurrentBlockType(w),D=s.processText(y,M,x),T=r.createFromArray(D);e.update(h(e._latestEditorState,T))}}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(52),i=n(39),a=n(192),s=n(43),c=n(193),u=n(50),l=n(20),p=n(166),f=l.List,d=l.Repeat,h=u("draft_tree_data_support"),m=h?i:o,g={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(t,o.length))};if(h&&0!==i){var u=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},c,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new m(c)),e}),[])}};e.exports=g},function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},function(e,t,n){"use strict";var r=n(55);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},function(e,t,n){"use strict";var r=n(55);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},function(e,t,n){"use strict";var r=n(27).unstable_flushControlled;e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(53),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},function(e,t,n){},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(52),i=n(39),a=n(196),s=n(379),c=n(380),u=n(21),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}},p=function(e,t,n,a){if(e instanceof o)n.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},s=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);i[o]||(i[o]=r,n[o]="".concat(s),s++)})),p(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t)}},function(e,t,n){"use strict";var r=n(196),o=n(56).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},function(e,t,n){"use strict";var r=n(56),o=n(72),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(52),a=n(39),s=n(111),c=n(82),u=n(382),l=(n(383),n(83)),p=n(384),f=n(385),d=n(386),h=n(43),m=n(50),g=n(20),y=n(21),v=m("draft_tree_data_support"),b=g.List,w=g.Map,_=g.OrderedMap,O=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(e,t)}},S=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return p(d(n,i||[]),f(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||h()})},k=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},C=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return v?function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(E),c=new a(r({},O(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var u=k([],s,c);u.length>0;){var l=u.pop(),p=l.parentRef,f=p.getChildKeys(),d=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var m=l.children.map(E),g=new a(r({},O(l,t),{parent:p.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(g.getKey(),g),u=k(u,m,g)}return n}),_())}(o,t):function(e,t){return _(e.map((function(e){var n=new i(O(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t)};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})})),n}(e),n=C(e,t),r=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(43),a=n(21),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=r({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,c=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?t.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)})),r({},e,{blocks:t})}};e.exports=c},function(e,t,n){"use strict";n(118);var r={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}};e.exports=r},function(e,t,n){"use strict";var r=n(38),o=n(20).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},function(e,t,n){"use strict";var r=n(56).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},function(e,t,n){"use strict";var r=n(56),o=n(20).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},function(e,t,n){"use strict";var r=n(388);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},function(e,t,n){"use strict";var r=n(189);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Collection",(function(){return v})),n.d(t,"Iterable",(function(){return pr})),n.d(t,"List",(function(){return qt})),n.d(t,"Map",(function(){return Et})),n.d(t,"OrderedMap",(function(){return cn})),n.d(t,"OrderedSet",(function(){return qn})),n.d(t,"PairSorting",(function(){return $n})),n.d(t,"Range",(function(){return Dn})),n.d(t,"Record",(function(){return Xn})),n.d(t,"Repeat",(function(){return ar})),n.d(t,"Seq",(function(){return z})),n.d(t,"Set",(function(){return Sn})),n.d(t,"Stack",(function(){return dn})),n.d(t,"fromJS",(function(){return sr})),n.d(t,"get",(function(){return Qe})),n.d(t,"getIn",(function(){return Tn})),n.d(t,"has",(function(){return Ge})),n.d(t,"hasIn",(function(){return Nn})),n.d(t,"hash",(function(){return re})),n.d(t,"is",(function(){return X})),n.d(t,"isAssociative",(function(){return y})),n.d(t,"isCollection",(function(){return h})),n.d(t,"isImmutable",(function(){return E})),n.d(t,"isIndexed",(function(){return g})),n.d(t,"isKeyed",(function(){return m})),n.d(t,"isList",(function(){return Wt})),n.d(t,"isMap",(function(){return Z})),n.d(t,"isOrdered",(function(){return C})),n.d(t,"isOrderedMap",(function(){return J})),n.d(t,"isOrderedSet",(function(){return bn})),n.d(t,"isPlainObject",(function(){return Ve})),n.d(t,"isRecord",(function(){return S})),n.d(t,"isSeq",(function(){return O})),n.d(t,"isSet",(function(){return vn})),n.d(t,"isStack",(function(){return fn})),n.d(t,"isValueObject",(function(){return $})),n.d(t,"merge",(function(){return lt})),n.d(t,"mergeDeep",(function(){return ft})),n.d(t,"mergeDeepWith",(function(){return dt})),n.d(t,"mergeWith",(function(){return pt})),n.d(t,"remove",(function(){return Je})),n.d(t,"removeIn",(function(){return nt})),n.d(t,"set",(function(){return $e})),n.d(t,"setIn",(function(){return et})),n.d(t,"update",(function(){return ot})),n.d(t,"updateIn",(function(){return Xe})),n.d(t,"version",(function(){return ur}));var r={};function o(e){e&&(e.value=!0)}function i(){}function a(e){return void 0===e.size&&(e.size=e.__iterate(c)),e.size}function s(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?a(e)+t:t}function c(){return!0}function u(e,t,n){return(0===e&&!d(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function l(e,t){return f(e,t,0)}function p(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:d(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function d(e){return e<0||0===e&&1/e==-1/0}function h(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function m(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function g(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function y(e){return m(e)||g(e)}var v=function(e){return h(e)?e:z(e)},b=function(e){function t(e){return m(e)?e:B(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),w=function(e){function t(e){return g(e)?e:F(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),_=function(e){function t(e){return h(e)&&!y(e)?e:U(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v);v.Keyed=b,v.Indexed=w,v.Set=_;function O(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function S(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function E(e){return h(e)||S(e)}var k="@@__IMMUTABLE_ORDERED__@@";function C(e){return Boolean(e&&e[k])}var j="function"==typeof Symbol&&Symbol.iterator,M=j||"@@iterator",x=function(e){this.next=e};function D(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function T(){return{value:void 0,done:!0}}function I(e){return!!Array.isArray(e)||!!L(e)}function N(e){return e&&"function"==typeof e.next}function A(e){var t=L(e);return t&&t.call(e)}function L(e){var t=e&&(j&&e[j]||e["@@iterator"]);if("function"==typeof t)return t}x.prototype.toString=function(){return"[Iterator]"},x.KEYS=0,x.VALUES=1,x.ENTRIES=2,x.prototype.inspect=x.prototype.toSource=function(){return this.toString()},x.prototype[M]=function(){return this};var P=Object.prototype.hasOwnProperty;function R(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var z=function(e){function t(e){return null==e?W():E(e)?e.toSeq():function(e){var t=Q(e);if(t)return(r=L(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=L(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new Y(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return D(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(v),B=function(e){function t(e){return null==e?W().toKeyedSeq():h(e)?m(e)?e.toSeq():e.fromEntrySeq():S(e)?e.toSeq():q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(z),F=function(e){function t(e){return null==e?W():h(e)?m(e)?e.entrySeq():e.toIndexedSeq():S(e)?e.toSeq().entrySeq():G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(z),U=function(e){function t(e){return(h(e)&&!y(e)?e:F(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(z);z.isSeq=O,z.Keyed=B,z.Set=U,z.Indexed=F,z.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var H=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return D(e,i,n[i])}))},t}(F),Y=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return P.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new x((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return D(e,a,n[a])}))},t}(B);Y.prototype[k]=!0;var K,V=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=A(this._collection),r=0;if(N(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=A(this._collection);if(!N(n))return new x(T);var r=0;return new x((function(){var t=n.next();return t.done?t:D(e,r++,t.value)}))},t}(F);function W(){return K||(K=new H([]))}function q(e){var t=Q(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new Y(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function G(e){var t=Q(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Q(e){return R(e)?new H(e):I(e)?new V(e):void 0}function Z(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function J(e){return Z(e)&&C(e)}function $(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function X(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!($(e)&&$(t)&&e.equals(t))}var ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function te(e){return e>>>1&1073741824|3221225471&e}var ne=Object.prototype.valueOf;function re(e){if(null==e)return oe(e);if("function"==typeof e.hashCode)return te(e.hashCode(e));var t,n=(t=e).valueOf!==ne&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return oe(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return te(t)}(n);case"string":return n.length>he?function(e){var t=ye[e];void 0===t&&(t=ie(e),ge===me&&(ge=0,ye={}),ge++,ye[e]=t);return t}(n):ie(n);case"object":case"function":return function(e){var t;if(le&&void 0!==(t=ue.get(e)))return t;if(void 0!==(t=e[de]))return t;if(!se){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[de]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ce(),le)ue.set(e,t);else{if(void 0!==ae&&!1===ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(se)Object.defineProperty(e,de,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[de]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[de]=t}}return t}(n);case"symbol":return function(e){var t=pe[e];if(void 0!==t)return t;return t=ce(),pe[e]=t,t}(n);default:if("function"==typeof n.toString)return ie(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function oe(e){return null===e?1108378658:1108378659}function ie(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return te(t)}var ae=Object.isExtensible,se=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ce(){var e=++fe;return 1073741824&fe&&(fe=0),e}var ue,le="function"==typeof WeakMap;le&&(ue=new WeakMap);var pe=Object.create(null),fe=0,de="__immutablehash__";"function"==typeof Symbol&&(de=Symbol(de));var he=16,me=255,ge=0,ye={},ve=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Ee(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Se(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(B);ve.prototype[k]=!0;var be=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&a(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&a(this),new x((function(){var i=r.next();return i.done?i:D(e,t?n.size-++o:o++,i.value,i)}))},t}(F),we=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new x((function(){var t=n.next();return t.done?t:D(e,t.value,t.value,t)}))},t}(U),_e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Le(t);var r=h(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new x((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Le(r);var o=h(r);return D(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(B);function Oe(e){var t=Re(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ze,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new x((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Se(e,t,n){var o=Re(e);return o.size=e.size,o.has=function(t){return e.has(t)},o.get=function(o,i){var a=e.get(o,r);return a===r?i:t.call(n,a,o,e)},o.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},o.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new x((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return D(r,s,t.call(n,a[1],s,e),o)}))},o}function Ee(e,t){var n=this,r=Re(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Oe(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=ze,r.__iterate=function(n,r){var o=this,i=0;return r&&a(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&a(e);var s=e.__iterator(2,!o);return new x((function(){var e=s.next();if(e.done)return e;var a=e.value;return D(r,t?a[0]:o?n.size-++i:i++,a[1],e)}))},r}function ke(e,t,n,o){var i=Re(e);return o&&(i.has=function(o){var i=e.get(o,r);return i!==r&&!!t.call(n,i,o,e)},i.get=function(o,i){var a=e.get(o,r);return a!==r&&t.call(n,a,o,e)?a:i}),i.__iterateUncached=function(r,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,r(e,o?i:s-1,a)}),i),s},i.__iteratorUncached=function(r,i){var a=e.__iterator(2,i),s=0;return new x((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return D(r,o?u:s++,l,i)}}))},i}function Ce(e,t,n,r){var o=e.size;if(u(t,n,o))return e;var i=l(t,o),a=p(n,o);if(i!=i||a!=a)return Ce(e.toSeq().cacheResult(),t,n,r);var c,f=a-i;f==f&&(c=f<0?0:f);var d=Re(e);return d.size=0===c?c:e.size&&c||void 0,!r&&O(e)&&c>=0&&(d.get=function(t,n){return(t=s(this,t))>=0&&t<c?e.get(t+i,n):n}),d.__iterateUncached=function(t,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==c})),u},d.__iteratorUncached=function(t,n){if(0!==c&&n)return this.cacheResult().__iterator(t,n);if(0===c)return new x(T);var o=e.__iterator(t,n),a=0,s=0;return new x((function(){for(;a++<i;)o.next();if(++s>c)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:D(t,s-1,0===t?void 0:e.value[1],e)}))},d}function je(e,t,n,r){var o=Re(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new x((function(){var e,i,l;do{if((e=s.next()).done)return r||1===o?e:D(o,u++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],l=p[1],c&&(c=t.call(n,l,i,a))}while(c);return 2===o?e:D(o,i,l,e)}))},o}function Me(e,t){var n=m(e),r=[e].concat(t).map((function(e){return h(e)?n&&(e=b(e)):e=n?q(e):G(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&m(o)||g(e)&&g(o))return o}var i=new H(r);return n?i=i.toKeyedSeq():g(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}function xe(e,t,n){var r=Re(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(c,u){c.__iterate((function(i,c){return(!t||u<t)&&h(i)?e(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new x((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(a.length<t)||!h(c))return n?e:D(r,s++,c,e);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function De(e,t,n){t||(t=Be);var r=m(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?B(i):g(e)?F(i):U(i)}function Te(e,t,n){if(t||(t=Be),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ie(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ie(t,e,n)?n:e}))}function Ie(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ne(e,t,n,r){var o=Re(e),i=new H(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=v(e),A(o?e.reverse():e)})),a=0,s=!1;return new x((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:D(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ae(e,t){return e===t?e:O(e)?t:e.constructor(t)}function Le(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pe(e){return m(e)?b:g(e)?w:_}function Re(e){return Object.create((m(e)?B:g(e)?F:U).prototype)}function ze(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Be(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Fe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function Ue(e,t){if(!e)throw new Error(t)}function He(e){Ue(e!==1/0,"Cannot perform this action with an infinite size.")}function Ye(e){if(R(e)&&"string"!=typeof e)return e;if(C(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}be.prototype.cacheResult=ve.prototype.cacheResult=we.prototype.cacheResult=_e.prototype.cacheResult=ze;var Ke=Object.prototype.toString;function Ve(e){if(!e||"object"!=typeof e||"[object Object]"!==Ke.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function We(e){return"object"==typeof e&&(E(e)||Array.isArray(e)||Ve(e))}function qe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Ge(e,t){return E(e)?e.has(t):We(e)&&P.call(e,t)}function Qe(e,t,n){return E(e)?e.get(t,n):Ge(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function Ze(e){if(Array.isArray(e))return Fe(e);var t={};for(var n in e)P.call(e,n)&&(t[n]=e[n]);return t}function Je(e,t){if(!We(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(E(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!P.call(e,t))return e;var n=Ze(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function $e(e,t,n){if(!We(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(E(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(P.call(e,t)&&n===e[t])return e;var r=Ze(e);return r[t]=n,r}function Xe(e,t,n,o){o||(o=n,n=void 0);var i=function e(t,n,o,i,a,s){var c=n===r;if(i===o.length){var u=c?a:n,l=s(u);return l===u?n:l}if(!c&&!We(n))throw new TypeError("Cannot update within non-data-structure value in path ["+o.slice(0,i).map(qe)+"]: "+n);var p=o[i],f=c?r:Qe(n,p,r),d=e(f===r?t:E(f),f,o,i+1,a,s);return d===f?n:d===r?Je(n,p):$e(c?t?Pt():{}:n,p,d)}(E(e),e,Ye(t),0,n,o);return i===r?n:i}function et(e,t,n){return Xe(e,t,r,(function(){return n}))}function tt(e,t){return et(this,e,t)}function nt(e,t){return Xe(e,t,(function(){return r}))}function rt(e){return nt(this,e)}function ot(e,t,n,r){return Xe(e,[t],n,r)}function it(e,t,n){return 1===arguments.length?e(this):ot(this,e,t,n)}function at(e,t,n){return Xe(this,e,t,n)}function st(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ut(this,e)}function ct(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return ut(this,t,e)}function ut(e,t,n){for(var o=[],i=0;i<t.length;i++){var a=b(t[i]);0!==a.size&&o.push(a)}return 0===o.length?e:0!==e.toSeq().size||e.__ownerID||1!==o.length?e.withMutations((function(e){for(var t=n?function(t,o){ot(e,o,r,(function(e){return e===r?t:n(e,t,o)}))}:function(t,n){e.set(n,t)},i=0;i<o.length;i++)o[i].forEach(t)})):e.constructor(o[0])}function lt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return mt(e,t)}function pt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return mt(t,n,e)}function ft(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ht(e,t)}function dt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ht(t,n,e)}function ht(e,t,n){return mt(e,t,function(e){return function t(n,r,o){return We(n)&&We(r)&&(i=r,a=z(n),s=z(i),g(a)===g(s)&&m(a)===m(s))?mt(n,[r],t):e?e(n,r,o):r;var i,a,s}}(n))}function mt(e,t,n){if(!We(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(E(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?w:b,a=r?function(t){o===e&&(o=Ze(o)),o.push(t)}:function(t,r){var i=P.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=Ze(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function gt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ht(this,e)}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ht(this,t,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Xe(this,e,Pt(),(function(e){return mt(e,t)}))}function bt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Xe(this,e,Pt(),(function(e){return ht(e,t)}))}function wt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function _t(){return this.__ownerID?this:this.__ensureOwner(new i)}function Ot(){return this.__ensureOwner()}function St(){return this.__altered}var Et=function(e){function t(t){return null==t?Pt():Z(t)&&!C(t)?t:Pt().withMutations((function(n){var r=e(t);He(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Pt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Rt(this,e,t)},t.prototype.remove=function(e){return Rt(this,e,r)},t.prototype.deleteAll=function(e){var t=v(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Pt()},t.prototype.sort=function(e){return cn(De(this,e))},t.prototype.sortBy=function(e,t){return cn(De(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new It(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Lt(this.size,this._root,e,this.__hash):0===this.size?Pt():(this.__ownerID=e,this.__altered=!1,this)},t}(b);Et.isMap=Z;var kt=Et.prototype;kt["@@__IMMUTABLE_MAP__@@"]=!0,kt.delete=kt.remove,kt.removeAll=kt.deleteAll,kt.setIn=tt,kt.removeIn=kt.deleteIn=rt,kt.update=it,kt.updateIn=at,kt.merge=kt.concat=st,kt.mergeWith=ct,kt.mergeDeep=gt,kt.mergeDeepWith=yt,kt.mergeIn=vt,kt.mergeDeepIn=bt,kt.withMutations=wt,kt.wasAltered=St,kt.asImmutable=Ot,kt["@@transducer/init"]=kt.asMutable=_t,kt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},kt["@@transducer/result"]=function(e){return e.asImmutable()};var Ct=function(e,t){this.ownerID=e,this.entries=t};Ct.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},Ct.prototype.update=function(e,t,n,a,s,c,u){for(var l=s===r,p=this.entries,f=0,d=p.length;f<d&&!X(a,p[f][0]);f++);var h=f<d;if(h?p[f][1]===s:l)return this;if(o(u),(l||!h)&&o(c),!l||1!==p.length){if(!h&&!l&&p.length>=Yt)return function(e,t,n,r){e||(e=new i);for(var o=new Dt(e,re(n),[n,r]),a=0;a<t.length;a++){var s=t[a];o=o.update(e,0,void 0,s[0],s[1])}return o}(e,p,a,s);var m=e&&e===this.ownerID,g=m?p:Fe(p);return h?l?f===d-1?g.pop():g[f]=g.pop():g[f]=[a,s]:g.push([a,s]),m?(this.entries=g,this):new Ct(e,g)}};var jt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};jt.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Ut(i&o-1)].get(e+5,t,n,r)},jt.prototype.update=function(e,t,n,o,i,a,s){void 0===n&&(n=re(o));var c=31&(0===t?n:n>>>t),u=1<<c,l=this.bitmap,p=0!=(l&u);if(!p&&i===r)return this;var f=Ut(l&u-1),d=this.nodes,h=p?d[f]:void 0,m=zt(h,e,t+5,n,o,i,a,s);if(m===h)return this;if(!p&&m&&d.length>=Kt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Mt(e,i+1,a)}(e,d,l,c,m);if(p&&!m&&2===d.length&&Bt(d[1^f]))return d[1^f];if(p&&m&&1===d.length&&Bt(m))return m;var g=e&&e===this.ownerID,y=p?m?l:l^u:l|u,v=p?m?Ht(d,f,m,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,f,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,f,m,g);return g?(this.bitmap=y,this.nodes=v,this):new jt(e,y,v)};var Mt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Mt.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Mt.prototype.update=function(e,t,n,o,i,a,s){void 0===n&&(n=re(o));var c=31&(0===t?n:n>>>t),u=i===r,l=this.nodes,p=l[c];if(u&&!p)return this;var f=zt(p,e,t+5,n,o,i,a,s);if(f===p)return this;var d=this.count;if(p){if(!f&&--d<Vt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new jt(e,o,a)}(e,l,d,c)}else d++;var h=e&&e===this.ownerID,m=Ht(l,c,f,h);return h?(this.count=d,this.nodes=m,this):new Mt(e,d,m)};var xt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};xt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},xt.prototype.update=function(e,t,n,i,a,s,c){void 0===n&&(n=re(i));var u=a===r;if(n!==this.keyHash)return u?this:(o(c),o(s),Ft(this,e,t,n,[i,a]));for(var l=this.entries,p=0,f=l.length;p<f&&!X(i,l[p][0]);p++);var d=p<f;if(d?l[p][1]===a:u)return this;if(o(c),(u||!d)&&o(s),u&&2===f)return new Dt(e,this.keyHash,l[1^p]);var h=e&&e===this.ownerID,m=h?l:Fe(l);return d?u?p===f-1?m.pop():m[p]=m.pop():m[p]=[i,a]:m.push([i,a]),h?(this.entries=m,this):new xt(e,this.keyHash,m)};var Dt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Dt.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},Dt.prototype.update=function(e,t,n,i,a,s,c){var u=a===r,l=X(i,this.entry[0]);return(l?a===this.entry[1]:u)?this:(o(c),u?void o(s):l?e&&e===this.ownerID?(this.entry[1]=a,this):new Dt(e,this.keyHash,[i,a]):(o(s),Ft(this,e,t,re(i),[i,a])))},Ct.prototype.iterate=xt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},jt.prototype.iterate=Mt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Dt.prototype.iterate=function(e,t){return e(this.entry)};var Tt,It=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&At(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Nt(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Nt(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Nt(e,i.entry);t=this._stack=At(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(x);function Nt(e,t){return D(e,t[0],t[1])}function At(e,t){return{node:e,index:0,__prev:t}}function Lt(e,t,n,r){var o=Object.create(kt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pt(){return Tt||(Tt=Lt(0))}function Rt(e,t,n){var o,i;if(e._root){var a={value:!1},s={value:!1};if(o=zt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;i=e.size+(a.value?n===r?-1:1:0)}else{if(n===r)return e;i=1,o=new Ct(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?Lt(i,o):Pt()}function zt(e,t,n,i,a,s,c,u){return e?e.update(t,n,i,a,s,c,u):s===r?e:(o(u),o(c),new Dt(t,i,[a,s]))}function Bt(e){return e.constructor===Dt||e.constructor===xt}function Ft(e,t,n,r,o){if(e.keyHash===r)return new xt(t,r,[e.entry,o]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n),c=a===s?[Ft(e,t,n+5,r,o)]:(i=new Dt(t,r,o),a<s?[e,i]:[i,e]);return new jt(t,1<<a|1<<s,c)}function Ut(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ht(e,t,n,r){var o=r?e:Fe(e);return o[t]=n,o}var Yt=8,Kt=16,Vt=8;function Wt(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var qt=function(e){function t(t){var n=en();if(null==t)return n;if(Wt(t))return t;var r=e(t),o=r.size;return 0===o?n:(He(o),o>0&&o<32?Xt(0,o,5,null,new Qt(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e<this.size){var n=rn(this,e+=this._origin);return n&&n.array[31&e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=s(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?on(e,t).set(0,n):on(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=an(e._capacity)?r=tn(r,e.__ownerID,0,t,n,i):o=tn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Xt(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):en()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){on(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return on(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){on(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return on(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&I(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return on(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return u(e,t,n)?this:on(this,l(e,n),p(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=$t(this,t);return new x((function(){var o=r();return o===Jt?{value:void 0,done:!0}:D(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=$t(this,t);(n=o())!==Jt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?en():(this.__ownerID=e,this.__altered=!1,this)},t}(w);qt.isList=Wt;var Gt=qt.prototype;Gt["@@__IMMUTABLE_LIST__@@"]=!0,Gt.delete=Gt.remove,Gt.merge=Gt.concat,Gt.setIn=tt,Gt.deleteIn=Gt.removeIn=rt,Gt.update=it,Gt.updateIn=at,Gt.mergeIn=vt,Gt.mergeDeepIn=bt,Gt.withMutations=wt,Gt.wasAltered=St,Gt.asImmutable=Ot,Gt["@@transducer/init"]=Gt.asMutable=_t,Gt["@@transducer/step"]=function(e,t){return e.push(t)},Gt["@@transducer/result"]=function(e){return e.asImmutable()};var Qt=function(e,t){this.array=e,this.ownerID=t};Qt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new Qt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=nn(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},Qt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=nn(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Zt,Jt={};function $t(e,t){var n=e._origin,r=e._capacity,o=an(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;u>32&&(u=32);return function(){if(c===u)return Jt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);l>32&&(l=32);return function(){for(;;){if(s){var e=s();if(e!==Jt)return e;s=null}if(u===l)return Jt;var n=t?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(e,s,c)}}function Xt(e,t,n,r,o,i,a){var s=Object.create(Gt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function en(){return Zt||(Zt=Xt(0,0,5))}function tn(e,t,n,r,i,a){var s,c=r>>>n&31,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var l=e&&e.array[c],p=tn(l,t,n-5,r,i,a);return p===l?e:((s=nn(e,t)).array[c]=p,s)}return u&&e.array[c]===i?e:(a&&o(a),s=nn(e,t),void 0===i&&c===s.array.length-1?s.array.pop():s.array[c]=i,s)}function nn(e,t){return t&&e&&t===e.ownerID?e:new Qt(e?e.array.slice():[],t)}function rn(e,t){if(t>=an(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function on(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new i,o=e._origin,a=e._capacity,s=o+t,c=void 0===n?a:n<0?a+n:o+n;if(s===o&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,l=e._root,p=0;s+p<0;)l=new Qt(l&&l.array.length?[void 0,l]:[],r),p+=1<<(u+=5);p&&(s+=p,o+=p,c+=p,a+=p);for(var f=an(a),d=an(c);d>=1<<u+5;)l=new Qt(l&&l.array.length?[l]:[],r),u+=5;var h=e._tail,m=d<f?rn(e,c-1):d>f?new Qt([],r):h;if(h&&d>f&&s<a&&h.array.length){for(var g=l=nn(l,r),y=u;y>5;y-=5){var v=f>>>y&31;g=g.array[v]=nn(g.array[v],r)}g.array[f>>>5&31]=h}if(c<a&&(m=m&&m.removeAfter(r,0,c)),s>=d)s-=d,c-=d,u=5,l=null,m=m&&m.removeBefore(r,0,s);else if(s>o||d<f){for(p=0;l;){var b=s>>>u&31;if(b!==d>>>u&31)break;b&&(p+=(1<<u)*b),u-=5,l=l.array[b]}l&&s>o&&(l=l.removeBefore(r,u,s-p)),l&&d<f&&(l=l.removeAfter(r,u,d-p)),p&&(s-=p,c-=p)}return e.__ownerID?(e.size=c-s,e._origin=s,e._capacity=c,e._level=u,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Xt(s,c,u,l,m)}function an(e){return e<32?0:e-1>>>5<<5}var sn,cn=function(e){function t(e){return null==e?ln():J(e)?e:ln().withMutations((function(t){var n=b(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ln()},t.prototype.set=function(e,t){return pn(this,e,t)},t.prototype.remove=function(e){return pn(this,e,r)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?un(t,n,e,this.__hash):0===this.size?ln():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Et);function un(e,t,n,r){var o=Object.create(cn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ln(){return sn||(sn=un(Pt(),en()))}function pn(e,t,n){var o,i,a=e._map,s=e._list,c=a.get(t),u=void 0!==c;if(n===r){if(!u)return e;s.size>=32&&s.size>=2*a.size?(o=(i=s.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=i.__ownerID=e.__ownerID)):(o=a.remove(t),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(n===s.get(c)[1])return e;o=a,i=s.set(c,[t,n])}else o=a.set(t,s.size),i=s.set(s.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=i,e.__hash=void 0,e.__altered=!0,e):un(o,i)}cn.isOrderedMap=J,cn.prototype[k]=!0,cn.prototype.delete=cn.prototype.remove;function fn(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var dn=function(e){function t(e){return null==e?yn():fn(e)?e:yn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=s(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):gn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&fn(t))return t;He(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):gn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):yn()},t.prototype.slice=function(t,n){if(u(t,n,this.size))return this;var r=l(t,this.size);if(p(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):gn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?gn(this.size,this._head,e,this.__hash):0===this.size?yn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new H(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new H(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new x((function(){if(r){var t=r.value;return r=r.next,D(e,n++,t)}return{value:void 0,done:!0}}))},t}(w);dn.isStack=fn;var hn,mn=dn.prototype;function gn(e,t,n,r){var o=Object.create(mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function yn(){return hn||(hn=gn(0))}mn["@@__IMMUTABLE_STACK__@@"]=!0,mn.shift=mn.pop,mn.unshift=mn.push,mn.unshiftAll=mn.pushAll,mn.withMutations=wt,mn.wasAltered=St,mn.asImmutable=Ot,mn["@@transducer/init"]=mn.asMutable=_t,mn["@@transducer/step"]=function(e,t){return e.unshift(t)},mn["@@transducer/result"]=function(e){return e.asImmutable()};function vn(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function bn(e){return vn(e)&&C(e)}function wn(e,t){if(e===t)return!0;if(!h(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||m(e)!==m(t)||g(e)!==g(t)||C(e)!==C(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!y(e);if(C(e)){var o=e.entries();return t.every((function(e,t){var r=o.next().value;return r&&X(r[1],e)&&(n||X(r[0],t))}))&&o.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var s=!0,c=t.__iterate((function(t,o){if(n?!e.has(t):i?!X(t,e.get(o,r)):!X(e.get(o,r),t))return s=!1,!1}));return s&&e.size===c}function _n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function On(e){if(!e||"object"!=typeof e)return e;if(!h(e)){if(!We(e))return e;e=z(e)}if(m(e)){var t={};return e.__iterate((function(e,n){t[n]=On(e)})),t}var n=[];return e.__iterate((function(e){n.push(On(e))})),n}var Sn=function(e){function t(t){return null==t?Mn():vn(t)&&!C(t)?t:Mn().withMutations((function(n){var r=e(t);He(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.intersect=function(e){return(e=v(e).toArray()).length?kn.intersect.apply(t(e.pop()),e):Mn()},t.union=function(e){return(e=v(e).toArray()).length?kn.union.apply(t(e.pop()),e):Mn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Cn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Cn(this,this._map.remove(e))},t.prototype.clear=function(){return Cn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Cn(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return qn(De(this,e))},t.prototype.sortBy=function(e,t){return qn(De(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(_);Sn.isSet=vn;var En,kn=Sn.prototype;function Cn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(kn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Mn(){return En||(En=jn(Pt()))}kn["@@__IMMUTABLE_SET__@@"]=!0,kn.delete=kn.remove,kn.merge=kn.concat=kn.union,kn.withMutations=wt,kn.asImmutable=Ot,kn["@@transducer/init"]=kn.asMutable=_t,kn["@@transducer/step"]=function(e,t){return e.add(t)},kn["@@transducer/result"]=function(e){return e.asImmutable()},kn.__empty=Mn,kn.__make=jn;var xn,Dn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ue(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(xn)return xn;xn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+s(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return u(e,n,this.size)?this:(e=l(e,this.size),(n=p(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new x((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,D(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:wn(this,e)},t}(F);function Tn(e,t,n){for(var o=Ye(t),i=0;i!==o.length;)if((e=Qe(e,o[i++],r))===r)return n;return e}function In(e,t){return Tn(this,e,t)}function Nn(e,t){return Tn(e,t,r)!==r}function An(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}v.isIterable=h,v.isKeyed=m,v.isIndexed=g,v.isAssociative=y,v.isOrdered=C,v.Iterator=x,_n(v,{toArray:function(){He(this.size);var e=new Array(this.size||0),t=m(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new be(this)},toJS:function(){return On(this)},toKeyedSeq:function(){return new ve(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:An,toOrderedMap:function(){return cn(this.toKeyedSeq())},toOrderedSet:function(){return qn(m(this)?this.valueSeq():this)},toSet:function(){return Sn(m(this)?this.valueSeq():this)},toSetSeq:function(){return new we(this)},toSeq:function(){return g(this)?this.toIndexedSeq():m(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return dn(m(this)?this.valueSeq():this)},toList:function(){return qt(m(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ae(this,Me(this,e))},includes:function(e){return this.some((function(t){return X(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Ae(this,ke(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=m(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=Pe(e);return o.map((function(t){return Ae(e,i(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ae(this,Se(this,e,t))},reduce:function(e,t,n){return Bn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Bn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Ae(this,Ee(this,!0))},slice:function(e,t){return Ae(this,Ce(this,e,t,!0))},some:function(e,t){return!this.every(Hn(e),t)},sort:function(e){return Ae(this,De(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return a(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Et().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return wn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new H(e._cache);var t=e.toSeq().map(Un).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Hn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(c,null,e)},flatMap:function(e,t){return Ae(this,function(e,t,n){var r=Pe(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ae(this,xe(this,e,!0))},fromEntrySeq:function(){return new _e(this)},get:function(e,t){return this.find((function(t,n){return X(n,e)}),void 0,t)},getIn:In,groupBy:function(e,t){return function(e,t,n){var r=m(e),o=(C(e)?cn():Et()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Pe(e);return o.map((function(t){return Ae(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,r)!==r},hasIn:function(e){return Nn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:v(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:v(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return X(t,e)}))},keySeq:function(){return this.toSeq().map(Fn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Te(this,e)},maxBy:function(e,t){return Te(this,t,e)},min:function(e){return Te(this,e?Yn(e):Vn)},minBy:function(e,t){return Te(this,t?Yn(t):Vn,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Ae(this,je(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Hn(e),t)},sortBy:function(e,t){return Ae(this,De(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Ae(this,function(e,t,n){var r=Re(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new x((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?2===r?e:D(r,c,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Hn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=C(e),n=m(e),r=t?1:0;return function(e,t){return t=ee(t,3432918353),t=ee(t<<15|t>>>-15,461845907),t=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Wn(re(e),re(t))|0}:function(e,t){r=r+Wn(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0}),r)}(this))}});var Ln=v.prototype;Ln["@@__IMMUTABLE_ITERABLE__@@"]=!0,Ln[M]=Ln.values,Ln.toJSON=Ln.toArray,Ln.__toStringMapper=qe,Ln.inspect=Ln.toSource=function(){return this.toString()},Ln.chain=Ln.flatMap,Ln.contains=Ln.includes,_n(b,{flip:function(){return Ae(this,Oe(this))},mapEntries:function(e,t){var n=this,r=0;return Ae(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ae(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Pn=b.prototype;Pn["@@__IMMUTABLE_KEYED__@@"]=!0,Pn[M]=Ln.entries,Pn.toJSON=An,Pn.__toStringMapper=function(e,t){return qe(t)+": "+qe(e)},_n(w,{toKeyedSeq:function(){return new ve(this,!1)},filter:function(e,t){return Ae(this,ke(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ae(this,Ee(this,!1))},slice:function(e,t){return Ae(this,Ce(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=l(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ae(this,1===n?r:r.concat(Fe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ae(this,xe(this,e,!1))},get:function(e,t){return(e=s(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ae(this,function(e,t){var n=Re(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new x((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?D(n,a++,t):D(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Fe(arguments)),t=Ne(this.toSeq(),F.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ae(this,n)},keySeq:function(){return Dn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Ae(this,je(this,e,t,!1))},zip:function(){var e=[this].concat(Fe(arguments));return Ae(this,Ne(this,Kn,e))},zipAll:function(){var e=[this].concat(Fe(arguments));return Ae(this,Ne(this,Kn,e,!0))},zipWith:function(e){var t=Fe(arguments);return t[0]=this,Ae(this,Ne(this,e,t))}});var Rn=w.prototype;Rn["@@__IMMUTABLE_INDEXED__@@"]=!0,Rn[k]=!0,_n(_,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var zn=_.prototype;function Bn(e,t,n,r,o,i){return He(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Fn(e,t){return t}function Un(e,t){return[t,e]}function Hn(e){return function(){return!e.apply(this,arguments)}}function Yn(e){return function(){return-e.apply(this,arguments)}}function Kn(){return Fe(arguments)}function Vn(e,t){return e<t?1:e>t?-1:0}function Wn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}zn.has=Ln.includes,zn.contains=zn.includes,zn.keys=zn.values,_n(B,Pn),_n(F,Rn),_n(U,zn);var qn=function(e){function t(e){return null==e?Jn():bn(e)?e:Jn().withMutations((function(t){var n=_(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Sn);qn.isOrderedSet=bn;var Gn,Qn=qn.prototype;function Zn(e,t){var n=Object.create(Qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Jn(){return Gn||(Gn=Zn(ln()))}Qn[k]=!0,Qn.zip=Rn.zip,Qn.zipWith=Rn.zipWith,Qn.zipAll=Rn.zipAll,Qn.__empty=Jn,Qn.__make=Zn;var $n={LeftThenRight:-1,RightThenLeft:1};var Xn=function(e,t){var n;!function(e){if(S(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(E(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),c=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u<s.length;u++){var l=s[u];c[l]=u,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+nr(this)+' with property "'+l+'" since that property name is part of the Record API.'):or(o,l)}}return this.__ownerID=void 0,this._values=qt().withMutations((function(e){e.setSize(a._keys.length),b(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(er);return o.constructor=r,t&&(r.displayName=t),r};Xn.prototype.toString=function(){for(var e,t=nr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+qe(this.get(e));return t+" }"},Xn.prototype.equals=function(e){return this===e||S(e)&&rr(this).equals(rr(e))},Xn.prototype.hashCode=function(){return rr(this).hashCode()},Xn.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Xn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Xn.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return tr(this,n)}return this},Xn.prototype.remove=function(e){return this.set(e)},Xn.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:tr(this,e)},Xn.prototype.wasAltered=function(){return this._values.wasAltered()},Xn.prototype.toSeq=function(){return rr(this)},Xn.prototype.toJS=function(){return On(this)},Xn.prototype.entries=function(){return this.__iterator(2)},Xn.prototype.__iterator=function(e,t){return rr(this).__iterator(e,t)},Xn.prototype.__iterate=function(e,t){return rr(this).__iterate(e,t)},Xn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?tr(this,t,e):(this.__ownerID=e,this._values=t,this)},Xn.isRecord=S,Xn.getDescriptiveName=nr;var er=Xn.prototype;function tr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function nr(e){return e.constructor.displayName||e.constructor.name||"Record"}function rr(e){return q(e._keys.map((function(t){return[t,e.get(t)]})))}function or(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ue(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}er["@@__IMMUTABLE_RECORD__@@"]=!0,er.delete=er.remove,er.deleteIn=er.removeIn=rt,er.getIn=In,er.hasIn=Ln.hasIn,er.merge=st,er.mergeWith=ct,er.mergeIn=vt,er.mergeDeep=gt,er.mergeDeepWith=yt,er.mergeDeepIn=bt,er.setIn=tt,er.update=it,er.updateIn=at,er.withMutations=wt,er.asMutable=_t,er.asImmutable=Ot,er[M]=er.entries,er.toJSON=er.toObject=Ln.toObject,er.inspect=er.toSource=function(){return this.toString()};var ir,ar=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(ir)return ir;ir=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return X(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return u(e,n,r)?this:new t(this._value,p(n,r)-l(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return X(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new x((function(){return o===r?{value:void 0,done:!0}:D(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?X(this._value,e._value):wn(e)},t}(F);function sr(e,t){return function e(t,n,r,o,i,a){if("string"!=typeof r&&!E(r)&&(R(r)||I(r)||Ve(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==o&&i.push(o);var s=n.call(a,o,z(r).map((function(o,a){return e(t,n,o,a,i,r)})),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}([],t||cr,e,"",t&&t.length>2?[]:void 0,{"":e})}function cr(e,t){return g(t)?t.toList():m(t)?t.toMap():t.toSet()}var ur="4.3.0",lr={version:ur,Collection:v,Iterable:v,Seq:z,Map:Et,OrderedMap:cn,List:qt,Stack:dn,Set:Sn,OrderedSet:qn,PairSorting:$n,Record:Xn,Range:Dn,Repeat:ar,is:X,fromJS:sr,hash:re,isImmutable:E,isCollection:h,isKeyed:m,isIndexed:g,isAssociative:y,isOrdered:C,isValueObject:$,isPlainObject:Ve,isSeq:O,isList:Wt,isMap:Z,isOrderedMap:J,isStack:fn,isSet:vn,isOrderedSet:bn,isRecord:S,get:Qe,getIn:Tn,has:Ge,hasIn:Nn,merge:lt,mergeDeep:ft,mergeWith:pt,mergeDeepWith:dt,remove:Je,removeIn:nt,set:$e,setIn:et,update:ot,updateIn:Xe},pr=v;t.default=lr},function(e,t,n){"use strict";var r=n(198),o=n(392),i=n(199),a=n(393),s=function(){function e(){this._subscriber=new o,this._currentSubscription=null}var t=e.prototype;return t.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new r(this._subscriber,t,n))},t.once=function(e,t,n){var r=this;return this.addListener(e,(function(){r.removeCurrentListener(),t.apply(n,arguments)}))},t.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},t.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},t.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(a.thatReturnsTrue).map((function(e){return e.listener})):[]},t.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},t.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();e.exports=s},function(e,t,n){"use strict";var r=function(){function e(e){this.subscriber=e}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=r},function(e,t,n){"use strict";var r=n(199),o=function(){function e(){this._subscriptionsForType={},this._currentSubscription=null}var t=e.prototype;return t.addSubscription=function(e,t){t.subscriber!==this&&r(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t},t.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},t.removeSubscription=function(e){var t=e.eventType,n=e.key,r=this._subscriptionsForType[t];r&&delete r[n]},t.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=o},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"ReactFormBuilder",(function(){return xc})),n.d(t,"ReactFormGenerator",(function(){return Dc})),n.d(t,"ElementStore",(function(){return Ge})),n.d(t,"Registry",(function(){return La.a}));var r={};n.r(r),n.d(r,"FILE",(function(){return I})),n.d(r,"URL",(function(){return N})),n.d(r,"TEXT",(function(){return A}));var o=n(19),i=n.n(o),a=n(13),s=n.n(a),c=n(14),u=n.n(c),l=n(6),p=n.n(l),f=n(15),d=n.n(f),h=n(22),m=n.n(h),g=n(17),y=n.n(g),v=n(0),b=n.n(v),w=n(403);function _(e){var t=null;return function(){return null==t&&(t=e()),t}}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&O(t.prototype,n),r&&O(t,r),e}(),E=_((function(){return/firefox/i.test(navigator.userAgent)})),k=_((function(){return Boolean(window.safari)}));function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,c=[],u=[],l=[],p=0;p<r-1;p++)a=t[p+1]-t[p],s=n[p+1]-n[p],u.push(a),c.push(s),l.push(s/a);for(var f=[l[0]],d=0;d<u.length-1;d++){var h=l[d],m=l[d+1];if(h*m<=0)f.push(0);else{a=u[d];var g=u[d+1],y=a+g;f.push(3*y/((y+g)/h+(y+a)/m))}}f.push(l[l.length-1]);for(var v,b=[],w=[],_=0;_<f.length-1;_++){v=l[_];var O=f[_],S=1/u[_],E=O+f[_+1]-v-v;b.push((v-O-E)*S),w.push(E*S*S)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,c=0,u=i.length-1;c<=u;){var l=t[s=Math.floor(.5*(c+u))];if(l<e)c=s+1;else{if(!(l>e))return n[s];u=s-1}}var p=e-t[a=Math.max(0,u)],f=p*p;return n[a]+r[a]*p+o[a]*f+i[a]*p*f}}])&&C(t.prototype,n),r&&C(t,r),e}();function M(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function x(e){return{x:e.clientX,y:e.clientY}}function D(e,t,n,r,o){var i,a,s,c="IMG"===(i=t).nodeName&&(E()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),u=M(c?e:t),l={x:n.x-u.x,y:n.y-u.y},p=e.offsetWidth,f=e.offsetHeight,d=r.anchorX,h=r.anchorY,m=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return k()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,t,p,f),g=m.dragPreviewWidth,y=m.dragPreviewHeight,v=o.offsetX,b=o.offsetY,w=0===b||b;return{x:0===v||v?v:new j([0,.5,1],[l.x,l.x/p*g,l.x+g-p]).interpolate(d),y:w?b:(s=new j([0,.5,1],[l.y,l.y/f*y,l.y+y-f]).interpolate(h),k()&&c&&(s+=(window.devicePixelRatio-1)*y),s)}}var T,I="__NATIVE_FILE__",N="__NATIVE_URL__",A="__NATIVE_TEXT__";function L(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=(P(T={},I,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),P(T,N,{exposeProperties:{urls:function(e,t){return L(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),P(T,A,{exposeProperties:{text:function(e,t){return L(e,t,"")}},matchesTypes:["Text","text/plain"]}),T);function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&z(t.prototype,n),r&&z(t,r),e}();function F(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(R).filter((function(e){return R[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var H=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&U(t.prototype,n),r&&U(t,r),e}();function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=r.sourceNodes.get(e);return t&&M(t)||null},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&r.document&&r.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=x(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=F(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),c=r.sourcePreviewNodes.get(a)||s;if(c){var u=r.getCurrentSourcePreviewNodeOptions(),l=D(s,c,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});o.setDragImage(c,l.x,l.y)}}try{null==o||o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=F(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,E()||r.actions.hover(t,{clientOffset:x(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:x(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem())&&(null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:x(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new H(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new S(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return K({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return K({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new B(R[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&W(t.prototype,n),o&&W(t,o),e}(),G=function(e,t){return new q(e,t)},Q=n(5),Z=n(92),J=n(37),$=n(399),X=n(400),ee=n(18),te=n(31);function ne(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object(Q.a)({timeZone:t},e[r]),n}),{})}function re(e,t){return Object.keys(Object(Q.a)(Object(Q.a)({},e),t)).reduce((function(n,r){return n[r]=Object(Q.a)(Object(Q.a)({},e[r]||{}),t[r]||{}),n}),{})}function oe(e,t){if(!t)return e;var n=X.a.formats;return Object(Q.a)(Object(Q.a)(Object(Q.a)({},n),e),{date:re(ne(n.date,t),ne(e.date||{},t)),time:re(ne(n.time,t),ne(e.time||{},t))})}function ie(e,t,n,r,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,p=e.onError,f=e.timeZone,d=e.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,m=n.defaultMessage;Object($.a)(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===te.a.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!d)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Object(Q.a)(Object(Q.a)({},d),r||{}),a=oe(a,f),u=oe(u,f),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&p(new ee.g(n,i)),m)try{return t.getMessageFormat(m,c,u,o).format(r)}catch(e){return p(new ee.e('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,n,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,Object(Q.a)({formatters:t},o||{})).format(r)}catch(e){p(new ee.e('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,n,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(r)}catch(e){p(new ee.e('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,n,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var ae=n(29),se=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ce(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&Object(ae.e)(o,"number",a,i)||{};return t(r,Object(ae.d)(n,se,s))}function ue(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).format(n)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function le(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).formatToParts(n)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting number.",t))}return[]}var pe=n(61),fe=["numeric","style"];function de(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new pe.b('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',pe.a.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&Object(ae.e)(o,"relative",a,i)||{};return t(r,Object(ae.d)(n,fe,s))}(e,t,o).format(n,r)}catch(t){e.onError(new ee.c("Error formatting relative time.",e.locale,t))}return String(n)}var he=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function me(e,t,n,r){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var c=r.format,u=Object(Q.a)(Object(Q.a)({},s&&{timeZone:s}),c&&Object(ae.e)(i,t,c,a)),l=Object(ae.d)(r,he,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=Object(Q.a)(Object(Q.a)({},l),{hour:"numeric",minute:"numeric"})),n(o,l)}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"date",t,a).format(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"time",t,a).format(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function ve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,p=Object(ae.d)(s,he,c?{timeZone:c}:{});try{return t(u,p).formatRange(o,i)}catch(e){l(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function be(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date.",t))}return[]}function we(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting time.",t))}return[]}var _e=["localeMatcher","type"];function Oe(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new pe.b('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,_e);try{return t(o,a).select(n)}catch(e){i(new ee.c("Error formatting plural.",o,e))}return"other"}var Se=["localeMatcher","type","style"],Ee=Date.now();function ke(e,t,n,r){void 0===r&&(r={});var o=Ce(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:o}function Ce(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.ListFormat||i(new pe.b('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,Se);try{var s={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Ee,"_").concat(e,"_").concat(Ee)}(t);return s[n]=e,n}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:Object(Q.a)(Object(Q.a)({},e),{value:s[e.value]||e.value})}))}catch(e){i(new ee.a(ee.b.FORMAT_ERROR,"Error formatting list.",e))}return n}var je=["localeMatcher","style","type","fallback"];function Me(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new pe.b('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,je);try{return t(o,a).of(n)}catch(e){i(new ee.a(ee.b.FORMAT_ERROR,"Error formatting display name.",e))}}function xe(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var De=n(133);function Te(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Ie(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=Object(De.c)(r)?Object(J.b)(r):r,t}),{}):e}var Ne=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Ie(r),s=ie.apply(void 0,Object(Q.d)([e,t,n,a],o,!1));return Array.isArray(s)?v.Children.toArray(s):s},Ae=function(e,t){var n=e.defaultRichTextElements,r=Object(Q.c)(e,["defaultRichTextElements"]),o=Ie(n),i=function(e,t){var n=Object(ae.b)(t),r=Object(Q.a)(Object(Q.a)({},ae.a),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new ee.f('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new ee.f('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new ee.d('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),xe(r),Object(Q.a)(Object(Q.a)({},r),{formatters:n,formatNumber:ue.bind(null,r,n.getNumberFormat),formatNumberToParts:le.bind(null,r,n.getNumberFormat),formatRelativeTime:de.bind(null,r,n.getRelativeTimeFormat),formatDate:ge.bind(null,r,n.getDateTimeFormat),formatDateToParts:be.bind(null,r,n.getDateTimeFormat),formatTime:ye.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ve.bind(null,r,n.getDateTimeFormat),formatTimeToParts:we.bind(null,r,n.getDateTimeFormat),formatPlural:Oe.bind(null,r,n.getPluralRules),formatMessage:ie.bind(null,r,n),$t:ie.bind(null,r,n),formatList:ke.bind(null,r,n.getListFormat),formatListToParts:Ce.bind(null,r,n.getListFormat),formatDisplayName:Me.bind(null,r,n.getDisplayNames)})}(Object(Q.a)(Object(Q.a)(Object(Q.a)({},J.a),r),{defaultRichTextElements:o}),t);return Object(Q.a)(Object(Q.a)({},i),{formatMessage:Ne.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})},Le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Object(ae.c)(),t.state={cache:t.cache,intl:Ae(Te(t.props),t.cache),prevConfig:Te(t.props)},t}return Object(Q.b)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=Te(e);return Object(J.d)(n,o)?null:{intl:Ae(o,r),prevConfig:o}},t.prototype.render=function(){return Object(J.c)(this.state.intl),v.createElement(Z.b,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=J.a,t}(v.PureComponent),Pe=n(120),Re=n.n(Pe),ze=n(11),Be=n.n(ze),Fe=n(200),Ue=n.n(Fe);var He,Ye,Ke,Ve=class{constructor(e){const t=this;t.actions={},t.mutations={},t.state={},t.status="resting",t.callbacks=[],e.hasOwnProperty("actions")&&(t.actions=e.actions),e.hasOwnProperty("mutations")&&(t.mutations=e.mutations),t.state=new Proxy(e.initialState||{},{set:(e,n,r)=>(e[n]=r,t.processCallbacks(t.state),t.status="resting",!0)})}dispatch(e,t){const n=this;return"function"!=typeof n.actions[e]?(console.error(`Action "${e}" doesn't exist.`),!1):(n.status="action",n.actions[e](n,t))}commit(e,t){const n=this;if("function"!=typeof n.mutations[e])return console.error(`Mutation "${e}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[e](n.state,t);return n.state=r,!0}processCallbacks(e){return!!this.callbacks.length&&(this.callbacks.forEach(t=>t(e)),!0)}subscribe(e){return"function"!=typeof e?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(e),!0)}},We=n(121),qe=new Ve({actions:{setData:function(e,t,n){e.commit("setData",t),n&&this.save(t)},load:function(e,t){var n=this,r=t.loadUrl,o=t.saveUrl,i=t.data,a=t.saveAlways;He=o;var s=a||void 0===a;e.commit("setSaveAlways",s),Ke?Ke().then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):r?Object(We.a)(r).then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):this.setData(e,i)},create:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.push(t),this.setData(e,r,o)},delete:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(t),1),this.setData(e,r,o)},deleteLastItem:function(e){var t=e.state.lastItem;t&&(this.delete(e,t),e.commit("setLastItem",null))},resetLastItem:function(e){e.state.lastItem&&e.commit("setLastItem",null)},post:function(e){var t=e.state.data;this.setData(e,t,!0)},updateOrder:function(e,t){var n=e.state.saveAlways,r=t.filter((function(e){return e&&!e.parentId}));t.filter((function(e){return e&&e.parentId})).forEach((function(e){return r.push(e)})),this.setData(e,r,n)},insertItem:function(e,t){e.commit("setLastItem",t.isContainer?null:t)},save:function(e){Ye?Ye({task_data:e}):He&&Object(We.b)(He,{task_data:e})}},mutations:{setData:function(e,t){return e.data=t,e},setSaveAlways:function(e,t){return e.saveAlways=t,e},setLastItem:function(e,t){return e.lastItem=t,e}},initialState:{data:[],saveAlways:!0,lastItem:null}});qe.setExternalHandler=function(e,t){Ke=e,Ye=t};var Ge=qe,Qe=n(91),Ze=n.n(Qe),Je=n(44),$e=n.n(Je),Xe=n(67),et=n.n(Xe),tt=function(e){var t=b.a.useState(null),r=$e()(t,2),o=r[0],i=r[1];if(b.a.useEffect((function(){(function(){var e=Ze()(et.a.mark((function e(){var t;return et.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(1).then(n.bind(null,404));case 2:t=e.sent,i((function(){return t.default}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]),!o)return b.a.createElement("div",null,"Loading...");var a=o;return b.a.createElement(a,e)},nt=n(23),rt=n.n(nt),ot=n(27),it=n.n(ot),at=n(10);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e){return"function"==typeof e}function ut(){}function lt(e){if(!function(e){return"object"===st(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pt(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function ft(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ht(e,t){return"string"==typeof e||"symbol"===dt(e)||!!t&&Array.isArray(e)&&e.every((function(e){return ht(e,!1)}))}function mt(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),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],p=t[u];if(!1===(o=n?n.call(r,l,p,u):void 0)||void 0===o&&l!==p)return!1}return!0}function gt(e,t){"function"==typeof e?e(t):e.current=t}function yt(e,t){var n=e.ref;return Object(at.a)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(v.cloneElement)(e,{ref:function(e){gt(n,e),gt(t,e)}}):Object(v.cloneElement)(e,{ref:t})}function vt(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function bt(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(v.isValidElement)(t)){var r=t;return e(r,n),r}var o=t;vt(o);var i=n?function(t){return e(t,n)}:e;return yt(o,i)}}(r);t[n]=function(){return o}}})),t}function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e){return null!==e&&"object"===wt(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var St=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=bt({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,_t(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!mt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Ot(t.prototype,n),r&&Ot(t,r),e}();function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kt=!1,Ct=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(at.a)(!kt,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return kt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{kt=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Et(t.prototype,n),r&&Et(t,r),e}();function jt(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function Mt(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}var xt=n(58),Dt=n.n(xt),Tt=n(60);function It(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t,n){return t&&Nt(e.prototype,t),n&&Nt(e,n),e}var Lt,Pt=((Lt=function(){function e(t){It(this,e),this.isDisposed=!1,this.action=ct(t)?t:ut}return At(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&ct(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}()).empty={dispose:ut},Lt),Rt=function(){function e(){It(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return At(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),zt=function(){function e(){It(this,e),this.isDisposed=!1}return At(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wt(e);if(t){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(e,t){return!t||"object"!==Bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,o=e.createConnector,i=e.registerHandler,a=e.containerDisplayName,s=e.getType,c=e.collect,u=e.options.arePropsEqual,l=void 0===u?mt:u,p=t,f=t.displayName||t.name||"Component",d=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(h,e);var t,a,u,d=Kt(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=d.call(this,e)).decoratedRef=v.createRef(),t.handleChange=function(){var e=t.getCurrentState();mt(e,t.state)||t.setState(e)},t.disposable=new zt,t.receiveProps(e),t.dispose(),t}return t=h,(a=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(at.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!l(e,this.props)||!mt(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new zt,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){l(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(s(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=Ft(i(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new Rt(new Pt(o),new Pt(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?c(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return v.createElement(Tt.a.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),v.createElement(p,Object.assign({},e.props,e.getCurrentState(),{ref:Mt(p)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(at.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",f,f),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=o(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&Ht(t.prototype,a),u&&Ht(t,u),h}(v.Component);return e.DecoratedComponent=t,e.displayName="".concat(a,"(").concat(f,")"),e}();return Dt()(d,t)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Qt=["canDrop","hover","drop"],Zt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,jt(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Gt(t.prototype,n),r&&Gt(t,r),e}();function Jt(e){return Object.keys(e).forEach((function(t){Object(at.a)(Qt.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Qt.join(", "),t),Object(at.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new Zt(e,t,n)}}function $t(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(at.a)(ht(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Object(at.a)(lt(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=Jt(t);return Object(at.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(at.a)(lt(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return qt({containerDisplayName:"DropTarget",createHandler:i,registerHandler:pt,createMonitor:function(e){return new Ct(e)},createConnector:function(e){return new St(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var en=!1,tn=!1,nn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(at.a)(!en,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return en=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{en=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(at.a)(!tn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return tn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{tn=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Xt(t.prototype,n),r&&Xt(t,r),e}();function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var on=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=bt({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,_t(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,_t(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!mt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!mt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&rn(t.prototype,n),r&&rn(t,r),e}();function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var sn=["canDrag","beginDrag","isDragging","endDrag"],cn=["beginDrag"],un=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,jt(this.ref))}}])&&an(t.prototype,n),r&&an(t,r),e}();function ln(e){return Object.keys(e).forEach((function(t){Object(at.a)(sn.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',sn.join(", "),t),Object(at.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),cn.forEach((function(t){Object(at.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new un(e,t,n)}}function pn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(at.a)(ht(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Object(at.a)(lt(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=ln(t);return Object(at.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(at.a)(lt(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return qt({containerDisplayName:"DragSource",createHandler:i,registerHandler:ft,createConnector:function(e){return new on(e)},createMonitor:function(e){return new nn(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}var fn="card",dn="box";function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var yn={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},vn={beginDrag:function(e){return{itemType:fn,id:e.id,index:e.index}}},bn={drop:function(e,t,n){if(n){var r=t.getItem(),o=e.index,i=r.index;e.data&&e.data.isContainer||r.itemType===fn||r.data&&"function"==typeof r.setAsChild&&-1===i&&e.insertCard(r,o,r.id)}},hover:function(e,t,n){var r,o,i=t.getItem();if((i.itemType!==dn||-1!==i.index)&&(null===(r=e.data)||void 0===r||!r.isContainer||null!==(o=i.data)&&void 0!==o&&o.isContainer)){var a=i.index,s=e.index;if(a!==s){if(-1===a){if(e.data&&e.data.isContainer)return;i.index=s,e.insertCard(i.onCreate(i.data),s)}var c=Object(ot.findDOMNode)(n).getBoundingClientRect(),u=(c.bottom-c.top)/2,l=t.getClientOffset().y-c.top;a<s&&l<u||a>s&&l>u||(e.moveCard(a,s),i.index=s)}}}},wn=function(e){var t=function(t){d()(r,t);var n=gn(r);function r(){return s()(this,r),n.apply(this,arguments)}return u()(r,[{key:"render",value:function(){var t=this.props,n=t.isDragging?0:1;return(0,t.connectDragPreview)((0,t.connectDropTarget)(b.a.createElement("div",null,b.a.createElement(e,i()({},this.props,{style:mn(mn({},yn),{},{opacity:n})})))))}}]),r}(v.Component);Be()(t,"propTypes",{connectDragSource:rt.a.func,connectDragPreview:rt.a.func,connectDropTarget:rt.a.func,index:rt.a.number.isRequired,isDragging:rt.a.bool,id:rt.a.any.isRequired,moveCard:rt.a.func.isRequired,seq:rt.a.number}),Be()(t,"defaultProps",{seq:-1});var n=$t([fn,dn],bn,(function(e){return{connectDropTarget:e.dropTarget()}}))(t);return pn(fn,vn,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(n)};function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var On=function(e){d()(n,e);var t=_n(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.intl,t=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?e.formatMessage({id:"drop-zone"}):this.props.text:"";return b.a.createElement("div",{className:t},b.a.createElement("div",null,n))}}]),n}(b.a.Component),Sn=Object(Z.c)(On);On.propTypes={text:rt.a.string,show:rt.a.bool},On.defaultProps={text:"Dropzone",show:!1};var En=n(77),kn=n.n(En),Cn=n(134),jn=n(48),Mn=n.n(jn),xn=n(7),Dn=n(8),Tn=n(9),In=n(36),Nn=n(25),An=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ln(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||An(r)&&An(o)))return!1;var r,o;return!0}var Pn=function(e,t){var n;void 0===t&&(t=Ln);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},Rn=n(98);var zn=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Bn=function(e){function t(e,t,r){var o=t.trim().split(h);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 c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",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(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(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 c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===x||2===x&&o(c,1)?"-webkit-"+c+c:c}if(0===x||2===x&&!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(k,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.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(d,"$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),N(2!==t?r:r.replace(S,"$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(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,u,l){for(var p,f=0,d=t;f<I;++f)switch(p=T[f].call(c,e,d,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?x=1:(x=2,N=e):x=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var c=a(-1,n,s,s,j,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var p=function e(n,s,c,p,f){for(var d,h,m,b,_,O=0,S=0,E=0,k=0,T=0,N=0,L=m=d=0,P=0,R=0,z=0,B=0,F=c.length,U=F-1,H="",Y="",K="",V="";P<F;){if(h=c.charCodeAt(P),P===U&&0!==S+k+E+O&&(0!==S&&(h=47===S?10:47),k=E=O=0,F++,U++),0===S+k+E+O){if(P===U&&(0<R&&(H=H.replace(l,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(P)}h=59}switch(h){case 123:for(d=(H=H.trim()).charCodeAt(0),m=1,B=++P;P<F;){switch(h=c.charCodeAt(P)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(P+1)){case 42:case 47:e:{for(L=P+1;L<U;++L)switch(c.charCodeAt(L)){case 47:if(42===h&&42===c.charCodeAt(L-1)&&P+2!==L){P=L+1;break e}break;case 10:if(47===h){P=L+1;break e}}P=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;P++<U&&c.charCodeAt(P)!==h;);}if(0===m)break;P++}switch(m=c.substring(B,P),0===d&&(d=(H=H.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<R&&(H=H.replace(l,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=D}if(B=(m=e(s,R,m,h,f+1)).length,0<I&&(_=a(3,m,R=t(D,H,z),s,j,C,B,h,f,p),H=R.join(""),void 0!==_&&0===(B=(m=_.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===x||2===x&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===p&&(Y+=m,m="")}else m="";break;default:m=e(s,t(s,H,z),m,p,f+1)}K+=m,m=z=R=L=d=0,H="",h=c.charCodeAt(++P);break;case 125:case 59:if(1<(B=(H=(0<R?H.replace(l,""):H).trim()).length))switch(0===L&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(B=(H=H.replace(" ",":")).length),0<I&&void 0!==(_=a(1,H,s,n,j,C,Y.length,p,f,p))&&0===(B=(H=_.trim()).length)&&(H="\0\0"),d=H.charCodeAt(0),h=H.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){V+=H+c.charAt(P);break}default:58!==H.charCodeAt(B-1)&&(Y+=r(H,d,h,H.charCodeAt(2)))}z=R=L=d=0,H="",h=c.charCodeAt(++P)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==p&&0<H.length&&(R=1,H+="\0"),0<I*A&&a(0,H,s,n,j,C,Y.length,p,f,p),C=1,j++;break;case 59:case 125:if(0===S+k+E+O){C++;break}default:switch(C++,b=c.charAt(P),h){case 9:case 32:if(0===k+O+S)switch(T){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+S+O&&(R=z=1,b="\f"+b);break;case 108:if(0===k+S+O+M&&0<L)switch(P-L){case 2:112===T&&58===c.charCodeAt(P-3)&&(M=T);case 8:111===N&&(M=N)}break;case 58:0===k+S+O&&(L=P);break;case 44:0===S+E+k+O&&(R=1,b+="\r");break;case 34:case 39:0===S&&(k=k===h?0:0===k?h:k);break;case 91:0===k+S+E&&O++;break;case 93:0===k+S+E&&O--;break;case 41:0===k+S+O&&E--;break;case 40:if(0===k+S+O){if(0===d)switch(2*T+3*N){case 533:break;default:d=1}E++}break;case 64:0===S+E+k+O+L+m&&(m=1);break;case 42:case 47:if(!(0<k+O+E))switch(S){case 0:switch(2*h+3*c.charCodeAt(P+1)){case 235:S=47;break;case 220:B=P,S=42}break;case 42:47===h&&42===T&&B+2!==P&&(33===c.charCodeAt(B+2)&&(Y+=c.substring(B,P+1)),b="",S=0)}}0===S&&(H+=b)}N=T,T=h,P++}if(0<(B=Y.length)){if(R=s,0<I&&(void 0!==(_=a(2,Y,R,n,j,C,B,p,f,p))&&0===(Y=_).length))return V+Y+K;if(Y=R.join(",")+"{"+Y+"}",0!=x*M){switch(2!==x||o(Y,2)||(M=0),M){case 111:Y=Y.replace(v,":-moz-$1")+Y;break;case 112:Y=Y.replace(y,"::-webkit-input-$1")+Y.replace(y,"::-moz-$1")+Y.replace(y,":-ms-input-$1")+Y}M=0}}return V+Y+K}(D,s,n,0,0);return 0<I&&(void 0!==(c=a(-2,p,s,s,j,C,p.length,0,0,0))&&(p=c)),"",M=0,C=j=1,p}var u=/^\0+/g,l=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,O=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,j=1,M=0,x=1,D=[],T=[],I=0,N=null,A=0;return c.use=function e(t){switch(t){case void 0:case null:I=T.length=0;break;default:if("function"==typeof t)T[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},c.set=s,void 0!==e&&s(e),c};function Fn(e){e&&Un.current.insert(e+"}")}var Un={current:null},Hn=function(e,t,n,r,o,i,a,s,c,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Un.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Un.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Fn)}},Yn=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Bn(t);var o,i={};o=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Hn),a=function(e,t,n,o){var i=t.name;Un.current=n,r(e,t.styles),o&&(c.inserted[i]=!0)};var c={key:n,sheet:new zn({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return c};n(57);function Kn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Vn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Wn=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},qn={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};var Gn=/[A-Z]|^ms/g,Qn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zn=function(e){return 45===e.charCodeAt(1)},Jn=function(e){return null!=e&&"boolean"!=typeof e},$n=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Zn(e)?e:e.replace(Gn,"-$&").toLowerCase()})),Xn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qn,(function(e,t,n){return tr={name:t,styles:n,next:tr},t}))}return 1===qn[e]||Zn(e)||"number"!=typeof t||0===t?t:t+"px"};function er(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tr={name:n.name,styles:n.styles,next:tr},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)tr={name:o.name,styles:o.styles,next:tr},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=er(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Jn(a)&&(r+=$n(i)+":"+Xn(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=er(e,t,a,!1);switch(i){case"animation":case"animationName":r+=$n(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Jn(a[c])&&(r+=$n(i)+":"+Xn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=tr,a=n(e);return tr=i,er(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var tr,nr=/label:\s*([^\s;\n{]+)\s*;/g;var rr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";tr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=er(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=er(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);nr.lastIndex=0;for(var s,c="";null!==(s=nr.exec(o));)c+="-"+s[1];return{name:Wn(o)+c,styles:o,next:tr}},or=Object.prototype.hasOwnProperty,ir=Object(v.createContext)("undefined"!=typeof HTMLElement?Yn():null),ar=Object(v.createContext)({}),sr=ir.Provider,cr=function(e){var t=function(t,n){return Object(v.createElement)(ir.Consumer,null,(function(r){return e(t,r,n)}))};return Object(v.forwardRef)(t)},ur="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lr=function(e,t){var n={};for(var r in t)or.call(t,r)&&(n[r]=t[r]);return n[ur]=e,n},pr=function(){return null},fr=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[ur],a=[o],s="";"string"==typeof t.className?s=Kn(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var c=rr(a);Vn(e,c,"string"==typeof i);s+=e.key+"-"+c.name;var u={};for(var l in t)or.call(t,l)&&"css"!==l&&l!==ur&&(u[l]=t[l]);u.ref=r,u.className=s;var p=Object(v.createElement)(i,u),f=Object(v.createElement)(pr,null);return Object(v.createElement)(v.Fragment,null,f,p)},dr=cr((function(e,t,n){return"function"==typeof e.css?Object(v.createElement)(ar.Consumer,null,(function(r){return fr(t,e,r,n)})):fr(t,e,null,n)}));var hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rr(t)},mr=function(e,t){var n=arguments;if(null==t||!or.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=dr,o[1]=lr(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)},gr=(v.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function yr(e,t,n){var r=[],o=Kn(e,r,n);return r.length<2?n:o+t(r)}var vr=function(){return null},br=cr((function(e,t){return Object(v.createElement)(ar.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=rr(n,t.registered);return Vn(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yr(t.registered,r,gr(n))},theme:n},i=e.children(o);var a=Object(v.createElement)(vr,null);return Object(v.createElement)(v.Fragment,null,a,i)}))})),wr=(n(69),n(99));function _r(e,t){if(null==e)return{};var n,r,o=Object(wr.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Or=n(16);var Sr=n(63);function Er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Object(Sr.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kr=n(78);function Cr(e){return function(e){if(Array.isArray(e))return Object(kr.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(Sr.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var jr=n(2),Mr=n(4),xr=n(28);var Dr=n(131),Tr=n.n(Dr),Ir=function(){};function Nr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ar(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Nr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Lr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Object(xr.a)(e)&&null!==e?[e]:[]};function Pr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rr(e){return Pr(e)?window.pageYOffset:e.scrollTop}function zr(e,t){Pr(e)?window.scrollTo(0,t):e.scrollTop=t}function Br(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ir,o=Rr(e),i=t-o,a=10,s=0;function c(){var t=Br(s+=a,o,i,n);zr(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function Ur(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}function Vr(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,y=Rr(c),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,_=g-h,O=w+y,S=l-y-h,E=f-g+y+v,k=y+h-b;switch(o){case"auto":case"bottom":if(_>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&_>=r)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:a?_-v:S-v};if("auto"===o||a){var C=t,j=a?w:O;return j>=r&&(C=Math.min(j-v-s.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return zr(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(O>=d&&!a)return i&&Fr(c,k,160),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&w>=r){var M=t;return(!a&&O>=r||a&&w>=r)&&(M=a?w-b:O-b),i&&Fr(c,k,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Wr=function(e){return"auto"===e?"bottom":e},qr=Object(v.createContext)({getPortalPlacement:null}),Gr=function(e){Object(Tn.a)(n,e);var t=Kr(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(t){var u="fixed"===a,l=Vr({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),p=e.context.getPortalPlacement;p&&p(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Wr(t);return Yr(Yr({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Object(Dn.a)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(v.Component);Gr.contextType=qr;var Qr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Zr=Qr,Jr=Qr,$r=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};$r.defaultProps={children:"No options"};var Xr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};Xr.defaultProps={children:"Loading..."};var eo=function(e){Object(Tn.a)(n,e);var t=Kr(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Wr(e.props.menuPlacement)&&e.setState({placement:n})},e}return Object(Dn.a)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var c=this.state.placement||Wr(o),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,p=u[c]+l,f=mr("div",{css:a("menuPortal",{offset:p,position:i,rect:u})},n);return mr(qr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(ot.createPortal)(f,t):f)}}]),n}(v.Component),to=Array.isArray,no=Object.keys,ro=Object.prototype.hasOwnProperty;function oo(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Object(xr.a)(t)&&"object"==Object(xr.a)(n)){var r,o,i,a=to(t),s=to(n);if(a&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var c=t instanceof Date,u=n instanceof Date;if(c!=u)return!1;if(c&&u)return t.getTime()==n.getTime();var l=t instanceof RegExp,p=n instanceof RegExp;if(l!=p)return!1;if(l&&p)return t.toString()==n.toString();var f=no(t);if((o=f.length)!==no(n).length)return!1;for(r=o;0!=r--;)if(!ro.call(n,f[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=f[r])&&t.$$typeof||e(t[i],n[i])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function io(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return io=function(){return n},n}var ao={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},so=function(e){var t=e.size,n=_r(e,["size"]);return mr("svg",Object(Or.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ao},n))},co=function(e){return mr(so,Object(Or.a)({size:20},e),mr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},uo=function(e){return mr(so,Object(Or.a)({size:20},e),mr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lo=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},po=lo,fo=lo,ho=function(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(io()),mo=function(e){var t=e.delay,n=e.offset;return mr("span",{css:hr({animation:"".concat(ho," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},go=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return mr("div",Object(Or.a)({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),mr(mo,{delay:0,offset:i}),mr(mo,{delay:160,offset:!0}),mr(mo,{delay:320,offset:!i}))};go.defaultProps={size:4};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _o=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo=function(e){var t=e.children,n=e.innerProps;return mr("div",n,t)},ko=Eo,Co=Eo;var jo=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.removeProps,l=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return mr(br,null,(function(r){var h=r.css,m=r.cx;return mr(p,{data:i,innerProps:So(So({},s),{},{className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":c},n))}),selectProps:l},mr(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),mr(d,{data:i,innerProps:So({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:l}))}))};jo.defaultProps={cropWithEllipsis:!0};function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Do={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({},i,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||mr(co,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return mr("div",Object(Or.a)({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({},i,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||mr(uo,null))},DownChevron:uo,CrossIcon:co,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.label,c=e.theme,u=e.selectProps;return mr("div",{css:o("group",e),className:r({group:!0},n)},mr(i,Object(Or.a)({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),s),mr("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,_r(e,["className","cx","getStyles","theme","selectProps"]));return mr("div",Object(Or.a)({css:r("groupHeading",vo({theme:o},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return mr("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return mr("span",Object(Or.a)({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,s=e.theme,c=(e.selectProps,_r(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return mr("div",{css:r("input",wo({theme:s},c))},mr(Tr.a,Object(Or.a)({className:n({input:!0},t),inputRef:o,inputStyle:_o(i),disabled:a},c)))},LoadingIndicator:go,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return mr("div",Object(Or.a)({css:o("menu",e),className:r({menu:!0},n)},a,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef,s=e.innerProps;return mr("div",Object(Or.a)({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),t)},MenuPortal:eo,LoadingMessage:Xr,NoOptionsMessage:$r,MultiValue:jo,MultiValueContainer:ko,MultiValueLabel:Co,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return mr("div",n,t||mr(co,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return mr("div",Object(Or.a)({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:c},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return mr("div",Object(Or.a)({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return mr("div",Object(Or.a)({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return mr("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}},To=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Io=new RegExp("["+To.map((function(e){return e.letters})).join("")+"]","g"),No={},Ao=0;Ao<To.length;Ao++)for(var Lo=To[Ao],Po=0;Po<Lo.letters.length;Po++)No[Lo.letters[Po]]=Lo.base;var Ro=function(e){return e.replace(Io,(function(e){return No[e]}))};function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Bo=function(e){return e.replace(/^\s+|\s+$/g,"")},Fo=function(e){return"".concat(e.label," ").concat(e.value)};var Uo={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Ho=function(e){return mr("span",Object(Or.a)({css:Uo},e))};function Yo(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,_r(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return mr("input",Object(Or.a)({ref:t},n,{css:hr({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Vo=function(e){Object(Tn.a)(n,e);var t=Ko(n);function n(){return Object(xn.a)(this,n),t.apply(this,arguments)}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(ot.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(v.Component),Wo=["boxSizing","height","overflow","paddingRight","position"],qo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Go(e){e.preventDefault()}function Qo(e){e.stopPropagation()}function Zo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Jo(){return"ontouchstart"in window||navigator.maxTouchPoints}function $o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Xo=!(!window.document||!window.document.createElement),ei=0,ti=function(e){Object(Tn.a)(n,e);var t=$o(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(Xo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&Wo.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&ei<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,c=window.innerWidth-s+a||0;Object.keys(qo).forEach((function(e){var t=qo[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(c,"px"))}o&&Jo()&&(o.addEventListener("touchmove",Go,this.listenerOptions),r&&(r.addEventListener("touchstart",Zo,this.listenerOptions),r.addEventListener("touchmove",Qo,this.listenerOptions))),ei+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Xo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;ei=Math.max(ei-1,0),n&&ei<1&&Wo.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&Jo()&&(o.removeEventListener("touchmove",Go,this.listenerOptions),r&&(r.removeEventListener("touchstart",Zo,this.listenerOptions),r.removeEventListener("touchmove",Qo,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(v.Component);function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}ti.defaultProps={accountForScrollbars:!0};var ri={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},oi=function(e){Object(Tn.a)(n,e);var t=ni(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return Object(Dn.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?mr("div",null,mr("div",{onClick:this.blurSelectInput,css:ri}),mr(Vo,{innerRef:this.getScrollTarget},t),r?mr(ti,{touchScrollTarget:r}):null):t}}]),n}(v.PureComponent);function ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var ai=function(e){Object(Tn.a)(n,e);var t=ii(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,c=e.scrollTarget,u=c.scrollTop,l=c.scrollHeight,p=c.clientHeight,f=e.scrollTarget,d=n>0,h=l-p-u,m=!1;h>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),d&&e.isTop&&(s&&s(t),e.isTop=!1),d&&n>h?(o&&!e.isBottom&&o(t),f.scrollTop=l,m=!0,e.isBottom=!0):!d&&-n>u&&(a&&!e.isTop&&a(t),f.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return b.a.createElement(Vo,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(v.Component);function si(e){var t=e.isEnabled,n=void 0===t||t,r=_r(e,["isEnabled"]);return n?b.a.createElement(ai,r):r.children}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ui=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},li=function(e){return!!e.isDisabled};var pi={clearIndicator:fo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:po,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Jr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(jr.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(jr.a)(t,"backgroundColor",a.neutral0),Object(jr.a)(t,"borderRadius",o),Object(jr.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(jr.a)(t,"marginBottom",i.menuGutter),Object(jr.a)(t,"marginTop",i.menuGutter),Object(jr.a)(t,"position","absolute"),Object(jr.a)(t,"width","100%"),Object(jr.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Zr,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var fi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var gi,yi={backspaceRemovesValue:!0,blurInputOnSelect:Ur(),captureMenuScroll:!Ur(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},gi),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Bo(t):t,u=a?Bo(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Ro(c),u=Ro(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:li,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},vi=1,bi=function(e){Object(Tn.a)(n,e);var t=mi(n);function n(e){var r;Object(xn.a)(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){var t;r.components=(t={components:e},xo(xo({},Do),t.components))},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;o(e,hi(hi({},t),{},{name:i}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.inputIsHiddenAfterUpdate=!a,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(e,i)){var a=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==a})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(Cr(i),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ar.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=pi[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:ui(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:ci(t,hi(hi({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Pr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,i=e.options,a=function(e,n){var i=r.isOptionDisabled(e,t),a=r.isOptionSelected(e,t),s=r.getOptionLabel(e),c=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:e},o))){var u=i?void 0:function(){return r.onOptionHover(e)},l=i?void 0:function(){return r.selectOption(e)},p="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:p,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:c}}};return i.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map((function(t,r){var o=a(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var o=e.value;r.cacheComponents=Pn(r.cacheComponents,oo).bind(Object(Mr.a)(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++vi);var i=Lr(o);r.buildMenuOptions=Pn(r.buildMenuOptions,(function(e,t){var n=Er(e,2),r=n[0],o=n[1],i=Er(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(Object(Mr.a)(r));var a=e.menuIsOpen?r.buildMenuOptions(e,i):{render:[],focusable:[]};return r.state.menuOptions=a,r.state.selectValue=i,r}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=Lr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},c=this.getNextFocusedValue(a),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:u,focusedValue:c})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&c&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?zr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&zr(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,c=a.tabSelectsValue,u="first"===e?0:i.focusable.length-1;if(!s){var l=i.focusable.indexOf(r[0]);l>-1&&(u=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[u]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:c}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var c=i.length-1,u=-1;if(i.length){switch(e){case"previous":u=0===s?0:-1===s?c:s-1;break;case"next":s>-1&&s<c&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions,s=a.focusable;if(s.length){var c=0,u=s.indexOf(i);i||(u=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?c=u>0?u-1:s.length-1:"down"===e?c=(u+1)%s.length:"pageup"===e?(c=u-n)<0&&(c=0):"pagedown"===e?(c=u+n)>s.length-1&&(c=s.length-1):"last"===e&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:li(s[c]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fi):hi(hi({},fi),this.props.theme):fi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,c=a.isRtl,u=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,c=i.inputValue,u=i.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})});return"".concat(l," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=this.components.Input,c=this.state.inputIsHidden,u=r||this.getElementId("input"),l={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return b.a.createElement(Yo,Object(Or.a)({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ir,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},l));var p=this.commonProps,f=p.cx,d=p.theme,h=p.selectProps;return b.a.createElement(s,Object(Or.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:a,theme:d,type:"text",value:o},l))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!l)return d?null:b.a.createElement(s,Object(Or.a)({},c,{key:"placeholder",isDisabled:p,isFocused:v}),h);if(f)return g.map((function(t,a){var s=t===y;return b.a.createElement(n,Object(Or.a)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=g[0];return b.a.createElement(a,Object(Or.a)({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(e,Object(Or.a)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return b.a.createElement(e,Object(Or.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.a.createElement(n,Object(Or.a)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(e,Object(Or.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,p=this.state,f=p.focusedOption,d=p.menuOptions,h=this.props,m=h.captureMenuScroll,g=h.inputValue,y=h.isLoading,v=h.loadingMessage,w=h.minMenuHeight,_=h.maxMenuHeight,O=h.menuIsOpen,S=h.menuPlacement,E=h.menuPosition,k=h.menuPortalTarget,C=h.menuShouldBlockScroll,j=h.menuShouldScrollIntoView,M=h.noOptionsMessage,x=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!O)return null;var T,I=function(t){var n=f===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,b.a.createElement(u,Object(Or.a)({},l,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=d.render.map((function(t){if("group"===t.type){t.type;var o=_r(t,["type"]),i="".concat(t.key,"-heading");return b.a.createElement(n,Object(Or.a)({},l,o,{Heading:r,headingProps:{id:i,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e)})))}if("option"===t.type)return I(t)}));else if(y){var N=v({inputValue:g});if(null===N)return null;T=b.a.createElement(s,l,N)}else{var A=M({inputValue:g});if(null===A)return null;T=b.a.createElement(c,l,A)}var L={minMenuHeight:w,maxMenuHeight:_,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:j},P=b.a.createElement(Gr,Object(Or.a)({},l,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return b.a.createElement(o,Object(Or.a)({},l,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:a}),b.a.createElement(si,{isEnabled:m,onTopArrive:x,onBottomArrive:D},b.a.createElement(oi,{isEnabled:C},b.a.createElement(i,Object(Or.a)({},l,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:s}),T))))}));return k||"fixed"===E?b.a.createElement(a,Object(Or.a)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:S,menuPosition:E}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return b.a.createElement("input",{name:i,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return b.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.a.createElement("input",{name:i,type:"hidden"});return b.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return b.a.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?b.a.createElement(Ho,{"aria-live":"polite"},b.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),b.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return b.a.createElement(r,Object(Or.a)({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.a.createElement(t,Object(Or.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.a.createElement(o,Object(Or.a)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.a.createElement(n,Object(Or.a)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(v.Component);bi.defaultProps=yi;n(293);function wi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var _i={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Object(In.a)(this,n)}}v.Component;var Si,Ei,ki,Ci=(Si=bi,ki=Ei=function(e){Object(Tn.a)(n,e);var t=wi(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Object(Dn.a)(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,_r(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return b.a.createElement(Si,Object(Or.a)({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(v.Component),Ei.defaultProps=_i,ki),ji=n(202),Mi=n.n(ji),xi=n(203),Di=n.n(xi),Ti=n(122),Ii=n.n(Ti);function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ai=function(e){d()(n,e);var t=Ni(n);function n(e){var r;s()(this,n),(r=t.call(this,e)).min=0,r.max=e.ratingAmount||5;var o=e.rating,i={pos:o?r.getStarRatingPosition(o):0,rating:e.rating};return r.state={ratingCache:i,editing:e.editing||!e.rating,stars:5,rating:i.rating,pos:i.pos,glyph:r.getStars()},r}return u()(n,[{key:"getStars",value:function(){for(var e="",t=this.props.ratingAmount,n=0;n<t;n++)e+="★";return e}},{key:"componentDidMount",value:function(){this.root=it.a.findDOMNode(this.rootNode),this.ratingContainer=it.a.findDOMNode(this.node)}},{key:"componentWillUnmount",value:function(){delete this.root,delete this.ratingContainer}},{key:"getPosition",value:function(e){return e.pageX-this.root.getBoundingClientRect().left}},{key:"applyPrecision",value:function(e,t){return parseFloat(e.toFixed(t))}},{key:"getDecimalPlaces",value:function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}},{key:"getWidthFromValue",value:function(e){var t=this.min,n=this.max;return e<=t||t===n?0:e>=n?100:e/(n-t)*100}},{key:"getValueFromPosition",value:function(e){var t=this.getDecimalPlaces(this.props.step),n=this.ratingContainer.offsetWidth,r=(this.max-this.min)*e/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),t);return o=Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(e){var t=this.getValueFromPosition(e),n=this.getWidthFromValue(t);return{width:n+="%",val:t}}},{key:"getStarRatingPosition",value:function(e){return"".concat(this.getWidthFromValue(e),"%")}},{key:"getRatingEvent",value:function(e){var t=this.getPosition(e);return this.calculate(t)}},{key:"getSvg",value:function(){return b.a.createElement("svg",{className:"react-star-rating__star",viewBox:"0 0 286 272",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.a.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b.a.createElement("polygon",{id:"star-flat",points:"143 225 54.8322122 271.352549 71.6707613 173.176275 0.341522556 103.647451 98.9161061 89.3237254 143 0 187.083894 89.3237254 285.658477 103.647451 214.329239 173.176275 231.167788 271.352549 "})))}},{key:"handleMouseLeave",value:function(){this.setState({pos:this.state.ratingCache.pos,rating:this.state.ratingCache.rating})}},{key:"handleMouseMove",value:function(e){var t=this.getRatingEvent(e);this.updateRating(t.width,t.val)}},{key:"updateRating",value:function(e,t){this.setState({pos:e,rating:t})}},{key:"shouldComponentUpdate",value:function(e,t){return e!==this.props?(this.updateRating(this.getStarRatingPosition(e.rating),e.rating),!0):t.ratingCache.rating!==this.state.ratingCache.rating||t.rating!==this.state.rating}},{key:"handleClick",value:function(e){if(this.props.disabled)return e.stopPropagation(),e.preventDefault(),!1;var t={pos:this.state.pos,rating:this.state.rating,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:t}),this.props.onRatingClick(e,t),!0}},{key:"treatName",value:function(e){return"string"==typeof e?e.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var e,t,n=this,r=Ii()((e={"react-star-rating__root":!0,"rating-disabled":this.props.disabled},Be()(e,"react-star-rating__size--".concat(this.props.size),this.props.size),Be()(e,"rating-editing",this.state.editing),e));return t=this.state.editing?b.a.createElement("div",{ref:function(e){return n.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph,onMouseMove:this.handleMouseMove.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onClick:this.handleClick.bind(this)},b.a.createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})):b.a.createElement("div",{ref:function(e){return n.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph},b.a.createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})),b.a.createElement("span",{className:"react-star-rating"},b.a.createElement("span",{ref:function(e){return n.rootNode=e},style:{cursor:"pointer"},className:r},t,b.a.createElement("input",Be()({type:"hidden",name:this.props.name,value:this.state.ratingCache.rating,style:{display:"none !important"},min:this.min,max:this.max,readOnly:!0},"style",{width:65}))))}}]),n}(b.a.Component);Ai.propTypes={name:rt.a.string.isRequired,caption:rt.a.string,ratingAmount:rt.a.number.isRequired,rating:rt.a.number,onRatingClick:rt.a.func,disabled:rt.a.bool,editing:rt.a.bool,size:rt.a.string},Ai.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var Li,Pi=n(395),Ri=n(396),zi=n(204),Bi=n.n(zi);function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ui={cursor:"move"},Hi={beginDrag:function(e){var t=e.data,n=e.index,r=e.onDestroy,o=e.setAsChild,i=e.getDataById;return{itemType:dn,index:t.parentId?-1:n,parentIndex:t.parentIndex,id:t.id,col:t.col,onDestroy:r,setAsChild:o,getDataById:i,data:t}}},Yi=function(e){d()(n,e);var t=Fi(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.connectDragPreview;e&&e((Li||((Li=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Li),{captureDraggingState:!0})}},{key:"render",value:function(){return(0,this.props.connectDragSource)(b.a.createElement("div",{className:"btn is-isolated",style:Ui},b.a.createElement("i",{className:"is-isolated fas fa-grip-vertical"})))}}]),n}(v.PureComponent),Ki=pn(dn,Hi,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(Yi);function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Wi=function(e){d()(n,e);var t=Vi(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return b.a.createElement("div",{className:"toolbar-header"},b.a.createElement("span",{className:"badge badge-secondary"},this.props.data.text),b.a.createElement("div",{className:"toolbar-header-buttons"},"LineBreak"!==this.props.data.element&&b.a.createElement("div",{className:"btn is-isolated",onClick:this.props.editModeOn.bind(this.props.parent,this.props.data)},b.a.createElement("i",{className:"is-isolated fas fa-edit"})),b.a.createElement("div",{className:"btn is-isolated",onClick:this.props.onDestroy.bind(this,this.props.data)},b.a.createElement("i",{className:"is-isolated fas fa-trash"})),b.a.createElement(Ki,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}]),n}(b.a.Component),qi=function(e){return e.mutable?null:b.a.createElement("div",null,e.data.pageBreakBefore&&b.a.createElement("div",{className:"preview-page-break"},"Page Break"),b.a.createElement(Wi,{isFieldSet:e.isFieldSet,parent:e.parent,editModeOn:e.editModeOn,data:e.data,index:e.index,setAsChild:e.setAsChild,onDestroy:e._onDestroy,onEdit:e.onEdit,static:e.data.static,required:e.data.required}))},Gi=n(93),Qi=n.n(Gi),Zi=new Qi.a.FilterXSS({whiteList:{a:["href","title","target"],u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"],ins:[]}}),Ji=function(e){var t=e.data.hasOwnProperty("required")&&!0===e.data.required&&!e.read_only,n=Zi.process(e.data.label);return n?b.a.createElement("label",{className:e.className||"form-label"},b.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),t&&!e.hide_required_alert&&b.a.createElement("span",{className:"label-required badge badge-danger"},"Required")):null};function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var ta=function(e){d()(n,e);var t=ea(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"handleChange",(function(e){var t,n=r.state.formatMask;if(e&&e.target){t=e&&e.target&&""===e.target.value?n.toLowerCase():"";var o=e.target.value?function(e,t){var n=["yyyy-MM-dd","MM/dd/yyyy",t].find((function(t){var n=Object(Pi.default)(e,t,new Date);return!Number.isNaN(n.getTime())}));return n?Object(Pi.default)(e,n,new Date):null}(e.target.value,n):null;if(o&&Number.isNaN(o))console.log("Invalid date:",e.target.value);else{var i=o?Object(Ri.default)(o,"yyyy-MM-dd"):"";r.setState({value:i,internalValue:o,placeholder:t})}}else if(e&&Number.isNaN(e))console.log("Invalid date:",e);else{var a=e?Object(Ri.default)(e,"yyyy-MM-dd"):"";r.setState({value:a,internalValue:e,placeholder:t})}})),r.inputField=b.a.createRef();var o=n.updateFormat(e,null).formatMask,i=n.updateDateTime(e,{formatMask:o},o);return i.value=i.value||"",i.internalValue=i.internalValue||"",r.state=i,r}return u()(n,[{key:"handleBirthdayFocus",value:function(){this.setState({birthdayFocused:!0},(function(){document.getElementById("year").placeholder="YYYY",document.getElementById("day").placeholder="DD",document.getElementById("month").placeholder="MM"}))}},{key:"handleDateChange",value:function(e){var t=e.target.value;"month"===e.target.name?t>12&&(t="12"):"day"===e.target.name?t>31&&(t="31"):"year"===e.target.name&&t>(new Date).getFullYear()&&(t=(new Date).getFullYear().toString()),this.setState(Be()({},e.target.name,t))}},{key:"render",value:function(){var e=this,t=this.props.data,n=t.showTimeSelect,r=t.showTimeSelectOnly,o=t.showTimeInput,i={type:"date",className:"form-control"};i.name=this.props.data.field_name;var a=this.props.data.readOnly||this.props.read_only,s=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=this.state.formatMask.toLowerCase();this.props.mutable&&(i.defaultValue=this.props.defaultValue,i.ref=this.inputField);var u="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(u+=" alwaysbreak"),b.a.createElement("div",{className:u,style:Xi({},this.props.style)},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("div",null,a&&b.a.createElement("input",{type:"text",name:i.name,ref:i.ref,readOnly:a,placeholder:this.state.placeholder,value:this.state.value,className:"form-control"}),s&&!a&&b.a.createElement("div",{className:"input-group",style:{border:"1px solid #ced4da",borderRadius:"0.25rem",marginTop:10}},b.a.createElement("input",{value:this.state.month,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(t){return e.handleDateChange(t)},className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onFocus:function(t){return e.handleBirthdayFocus()},placeholder:this.state.placeholder||"Birthday",maxLength:"2",pattern:"\\d*"}),this.state.birthdayFocused&&b.a.createElement(b.a.Fragment,null,b.a.createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),b.a.createElement("input",{value:this.state.day,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onChange:function(t){return e.handleDateChange(t)},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"2",pattern:"\\d*"}),b.a.createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),b.a.createElement("input",{value:this.state.year,name:"year",id:"year",className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(t){return e.handleDateChange(t)}}))),!s&&!a&&b.a.createElement(Bi.a,{name:i.name,ref:i.ref,onChange:this.handleChange,selected:this.state.internalValue,todayButton:"Today",className:"form-control",isClearable:!0,showTimeSelect:n,showTimeSelectOnly:r,showTimeInput:o,dateFormat:this.state.formatMask,portalId:"root-portal",autoComplete:"off",placeholderText:c}))))}}],[{key:"updateDateTime",value:function(e,t,n){var r,o,i=e.data.defaultToday;if(!i||""!==e.defaultValue&&void 0!==e.defaultValue)if(""===(r=e.defaultValue||""))o="";else{var a=Object(Pi.default)(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Object(Ri.default)(s,"yyyy-MM-dd"),o="Invalid Date"===s.toString()?"":s}return{value:r,internalValue:o,placeholder:n.toLowerCase(),defaultToday:i,formatMask:n}}},{key:"updateFormat",value:function(e,t){var n=e.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":e.data.dateFormat,s=r||i?e.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==t,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(e,t){var r=n.updateFormat(e,t.formatMask),o=r.updated,i=r.formatMask;return e.data.defaultToday!==t.defaultToday||o?n.updateDateTime(e,t,i):null}}]),n}(b.a.Component);function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var ia={},aa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("h3",{className:e,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),sa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("p",{className:e,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ca=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("label",{className:"".concat(e," form-label"),dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ua=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("hr",null))}}]),n}(b.a.Component),la=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),pa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),fa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"tel",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),da=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"number",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),ha=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.read_only&&(e.disabled="disabled"),this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("textarea",e)))}}]),n}(b.a.Component),ma=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("select",e,this.props.data.options.map((function(e){var t="preview_".concat(e.key);return b.a.createElement("option",{value:e.value,key:t},e.text)})))))}}]),n}(b.a.Component),ga=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"clear",(function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()})),r.state={defaultValue:e.defaultValue},r.inputField=b.a.createRef(),r.canvas=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e=this.state.defaultValue,t=!!e,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=e,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=e,r.ref=this.canvas,t=!this.props.read_only);var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),e&&e.length>0&&(o="data:image/png;base64,".concat(e)),b.a.createElement("div",{style:ra({},this.props.style),className:i},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only||o?b.a.createElement("img",{src:o}):b.a.createElement(Mi.a,r),t&&b.a.createElement("i",{className:"fas fa-times clear-signature",onClick:this.clear,title:"Clear Signature"}),b.a.createElement("input",n)))}}]),n}(b.a.Component),ya=function(e){d()(n,e);var t=oa(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"handleChange",(function(e){r.setState({value:e||[]})})),r.inputField=b.a.createRef();var o=e.defaultValue,i=e.data;return r.state={value:r.getDefaultValue(o,i.options)},r}return u()(n,[{key:"getDefaultValue",value:function(e,t){if(e){if("string"==typeof e){var n=e.split(",").map((function(e){return e.trim()}));return t.filter((function(e){return n.indexOf(e.value)>-1}))}return t.filter((function(t){return e.indexOf(t.value)>-1}))}return[]}},{key:"render",value:function(){var e=this.props.data.options.map((function(e){return e.label=e.text,e})),t={isMulti:!0};t.name=this.props.data.field_name,t.onChange=this.handleChange,t.options=e,this.props.mutable||(t.value=e[0].text),this.props.mutable&&(t.isDisabled=this.props.read_only,t.value=this.state.value,t.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:n},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement(Ci,t)))}}]),n}(b.a.Component),va=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).options={},r}return u()(n,[{key:"render",value:function(){var e=this,t=this,n="custom-control custom-checkbox";this.props.data.inline&&(n+=" option-inline");var r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name="option_".concat(r.key),a.type="checkbox",a.value=r.value,t.props.mutable&&(a.defaultChecked=void 0!==t.props.defaultValue&&t.props.defaultValue.indexOf(r.key)>-1),e.props.read_only&&(a.disabled="disabled"),b.a.createElement("div",{className:n,key:o},b.a.createElement("input",i()({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&t.props.mutable&&(t.options["child_ref_".concat(r.key)]=e)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ba=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";this.props.data.pageBreakBefore&&(e+=" alwaysbreak");var t={};return t.name=this.props.data.field_name,t.type="checkbox",t.defaultChecked=this.props.data.defaultChecked,this.props.mutable&&(t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,i()({className:"form-label"},this.props)),b.a.createElement("div",{className:"custom-control custom-checkbox"},b.a.createElement("input",i()({id:this.props.data.field_name,className:"custom-control-input"},t)),b.a.createElement("label",{className:"custom-control-label",htmlFor:this.props.data.field_name,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}]),n}(b.a.Component),wa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).options={},r}return u()(n,[{key:"render",value:function(){var e=this,t=this,n="custom-control custom-radio";this.props.data.inline&&(n+=" option-inline");var r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name=t.props.data.field_name,a.type="radio",a.value=r.value,t.props.mutable&&(a.defaultChecked=void 0!==t.props.defaultValue&&(t.props.defaultValue.indexOf(r.key)>-1||t.props.defaultValue.indexOf(r.value)>-1)),e.props.read_only&&(a.disabled="disabled"),b.a.createElement("div",{className:n,key:o},b.a.createElement("input",i()({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&t.props.mutable&&(t.options["child_ref_".concat(r.key)]=e)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),_a=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.data.center?{textAlign:"center"}:null,t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra(ra({},this.props.style),e),className:t},b.a.createElement(qi,this.props),this.props.data.src&&b.a.createElement("img",{src:this.props.data.src,width:this.props.data.width,height:this.props.data.height}),!this.props.data.src&&b.a.createElement("div",{className:"no-image"},"No Image"))}}]),n}(b.a.Component),Oa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={};e.name=this.props.data.field_name,e.ratingAmount=5,this.props.mutable&&(e.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,e.editing=!0,e.disabled=this.props.read_only,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement(Ai,e)))}}]),n}(b.a.Component),Sa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{className:"form-label"},b.a.createElement("a",{target:"_blank",href:this.props.data.href,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))))}}]),n}(b.a.Component),Ea=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement("a",{href:"".concat(this.props.download_path,"?id=").concat(this.props.data.file_path)},this.props.data.content)))}}]),n}(b.a.Component),ka=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"displayImage",(function(e){var t=p()(r),n=e.target;n.files&&n.files.length&&t.setState({img:n.files[0],previewImg:URL.createObjectURL(n.files[0])})})),Be()(p()(r),"clearImage",(function(){r.setState({img:null,previewImg:null})})),r.state={img:null,previewImg:null},r}return u()(n,[{key:"getImageSizeProps",value:function(e){var t=e.width,n=e.height,r={width:"100%"};return t&&(r.width=t<window.innerWidth?t:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var e,t=this,n={objectFit:"scale-down",objectPosition:this.props.data.center?"center":"left"},r="SortableItem rfb-item",o=this.props.data.field_name,a=this.state.img?{display:"none"}:null;return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0&&(e=this.props.defaultValue.indexOf(o>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?b.a.createElement("div",null,b.a.createElement("img",i()({style:n,src:e},this.getImageSizeProps(this.props.data)))):b.a.createElement("div",{className:"image-upload-container"},b.a.createElement("div",{style:a},b.a.createElement("input",{name:o,type:"file",accept:"image/*",capture:"camera",className:"image-upload",onChange:this.displayImage}),b.a.createElement("div",{className:"image-upload-control"},b.a.createElement("div",{className:"btn btn-default"},b.a.createElement("i",{className:"fas fa-camera"})," Upload Photo"),b.a.createElement("p",null,"Select an image from your computer or device."))),this.state.img&&b.a.createElement("div",null,b.a.createElement("img",{onLoad:function(){return URL.revokeObjectURL(t.state.previewImg)},src:this.state.previewImg,height:"100",className:"image-upload-preview"}),b.a.createElement("br",null),b.a.createElement("div",{className:"btn btn-image-clear",onClick:this.clearImage},b.a.createElement("i",{className:"fas fa-times"})," Clear Photo")))))}}]),n}(b.a.Component),Ca=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"displayFileUpload",(function(e){var t,n=p()(r),o=e.target;o.files&&o.files.length>0&&(t=o.files[0],n.setState({fileUpload:t}))})),Be()(p()(r),"clearFileUpload",(function(){r.setState({fileUpload:null})})),Be()(p()(r),"saveFile",function(){var e=Ze()(et.a.mark((function e(t){var n,o,i,a,s,c,u;return et.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props.defaultValue,e.next=4,kn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 4:return o=e.sent,i=o.headers.get("Content-Disposition"),e.next=8,o.blob();case 8:a=e.sent,s=new Blob([a],{type:r.props.data.fileType||o.headers.get("Content-Type")}),i&&i.indexOf(";filename=")>-1?(c=i.split(";filename=")[1],Object(Cn.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),Object(Cn.saveAs)(o.url,u));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r.state={fileUpload:null},r}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item",t=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?b.a.createElement("div",null,b.a.createElement("button",{className:"btn btn-default",onClick:this.saveFile},b.a.createElement("i",{className:"fas fa-download"})," Download File")):b.a.createElement("div",{className:"image-upload-container"},b.a.createElement("div",{style:n},b.a.createElement("input",{name:t,type:"file",accept:this.props.data.fileType||"*",className:"image-upload",onChange:this.displayFileUpload}),b.a.createElement("div",{className:"image-upload-control"},b.a.createElement("div",{className:"btn btn-default"},b.a.createElement("i",{className:"fas fa-file"})," Upload File"),b.a.createElement("p",null,"Select a file from your computer or device."))),this.state.fileUpload&&b.a.createElement("div",null,b.a.createElement("div",{className:"file-upload-preview"},b.a.createElement("div",{style:{display:"inline-block",marginRight:"5px"}},"Name: ".concat(this.state.fileUpload.name)),b.a.createElement("div",{style:{display:"inline-block",marginLeft:"5px"}},this.state.fileUpload.size.length>6?"Size: ".concat(Math.ceil(this.state.fileUpload.size/1048576)," mb"):"Size: ".concat(Math.ceil(this.state.fileUpload.size/1024)," kb"))),b.a.createElement("br",null),b.a.createElement("div",{className:"btn btn-file-upload-clear",onClick:this.clearFileUpload},b.a.createElement("i",{className:"fas fa-times"})," Clear File")))))}}]),n}(b.a.Component),ja=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"changeValue",(function(e){var t=e.target;r.setState({value:t.value})})),r.inputField=b.a.createRef(),r.state={value:void 0!==e.defaultValue?parseInt(e.defaultValue,10):parseInt(e.data.default_value,10)},r}return u()(n,[{key:"render",value:function(){var e={},t=this.props.data.field_name;e.type="range",e.list="tickmarks_".concat(t),e.min=this.props.data.min_value,e.max=this.props.data.max_value,e.step=this.props.data.step,e.value=this.state.value,e.change=this.changeValue,this.props.mutable&&(e.ref=this.inputField);for(var n=[],r=parseInt(e.min,10);r<=parseInt(e.max,10);r+=parseInt(e.step,10))n.push(r);var o=100/(n.length-1),i=n.map((function(t,n){return b.a.createElement("option",{key:"".concat(e.list,"_").concat(n)},t)})),a=n.map((function(t,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(e.list,"_label_").concat(r),i.style={width:"".concat(a,"%")},r===n.length-1&&(i.style={width:"".concat(a,"%"),textAlign:"right"}),b.a.createElement("label",i,t)}));this.props.read_only&&(e.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:s},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("div",{className:"range"},b.a.createElement("div",{className:"clearfix"},b.a.createElement("span",{className:"float-left"},this.props.data.min_label),b.a.createElement("span",{className:"float-right"},this.props.data.max_label)),b.a.createElement(Di.a,e)),b.a.createElement("div",{className:"visible_marks"},a),b.a.createElement("input",{name:t,value:this.state.value,type:"hidden"}),b.a.createElement("datalist",{id:e.list},i)))}}]),n}(b.a.Component);ia.Header=aa,ia.Paragraph=sa,ia.Label=ca,ia.LineBreak=ua,ia.TextInput=la,ia.EmailInput=pa,ia.PhoneNumber=fa,ia.NumberInput=da,ia.TextArea=ha,ia.Dropdown=ma,ia.Signature=ga,ia.Checkboxes=va,ia.Checkbox=ba,ia.DatePicker=ta,ia.RadioButtons=wa,ia.Image=_a,ia.Rating=Oa,ia.Tags=ya,ia.HyperLink=Sa,ia.Download=Ea,ia.Camera=ka,ia.FileUpload=Ca,ia.Range=ja;var Ma=ia;function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ia=function(e){d()(n,e);var t=Ta(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e=this.props.data.bare,t={};if(t.name=this.props.data.field_name,t.defaultValue=this.props.defaultValue,this.props.mutable&&this.props.data.forwardRef&&(t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled"),!this.props.data.component)return null;var n=this.props.data.component,r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{className:r,style:Da({},this.props.style)},b.a.createElement(qi,this.props),e?b.a.createElement(n,i()({data:this.props.data},this.props.data.props,t)):b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,i()({className:"form-label"},this.props)),b.a.createElement(n,i()({data:this.props.data},this.props.data.props,t))))}}]),n}(v.Component);Ia.propTypes={};var Na=Ia,Aa=n(51),La=n.n(Aa),Pa=["onDropSuccess","seq","draggedItem","parentIndex","canDrop","isOver","isOverCurrent","connectDropTarget","items","col","getDataById"];function Ra(e,t){if(!e)return null;var n=e.custom?function(){return function(e,t){return e.component&&"function"==typeof e.component||(e.component=La.a.get(e.key),e.component||console.error("".concat(e.element," was not registered"))),b.a.createElement(Na,i()({},t,{mutable:!1,key:"form_".concat(e.id),data:e}))}(e,t)}:Ma[e.element||e.key];return b.a.createElement(v.Fragment,null,b.a.createElement(n,i()({},t,{key:"form_".concat(e.id),data:e})))}function za(e){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:e,padding:0,float:"left"}}var Ba=b.a.forwardRef((function(e,t){var n=e.onDropSuccess,r=(e.seq,e.draggedItem),o=e.parentIndex,i=e.canDrop,a=e.isOver,s=(e.isOverCurrent,e.connectDropTarget),c=e.items,u=e.col,l=e.getDataById,p=Mn()(e,Pa),f=l(c[u]);Object(v.useImperativeHandle)(t,(function(){return{onDrop:function(e){console.log("dropped ites"),e.data&&(n&&n(),Ge.dispatch("deleteLastItem"))}}}),[]);var d=Ra(f,p),h=!!r&&r.index===o,m="rgba(0, 0, 0, .03)";return!h&&a&&i&&!r.data.isContainer&&(m="#F7F589"),s(b.a.createElement("div",{style:za(h?"rgba(0, 0, 0, .03":m)},!d&&b.a.createElement("span",null,"Drop your element here "),d))})),Fa=$t((function(e){return e.accepts}),{drop:function(e,t,n){if(n){var r=!!e.items[e.col],o=t.getItem();if(e.col!==o.col||e.items[e.col]!==o.id)if(void 0===o.col&&e.items[e.col])Ge.dispatch("resetLastItem");else if(!function(e){if(e.itemType!==fn){var t=e.data;if(t){if(t.isContainer)return!0;if(t.field_name)return t.field_name.indexOf("_col_row")>-1}}return!1}(o)&&(n.onDrop(o),console.log("calling on Drop from 137",o),o.data&&"function"==typeof e.setAsChild)){var i=!o.data.id?o.onCreate(o.data):o.data;e.setAsChild(e.data,i,e.col,r)}}}},(function(e,t){return{connectDropTarget:e.dropTarget(),draggedItem:t.getItem()?t.getItem():null,isOver:t.isOver(),isOverCurrent:t.isOver({shallow:!0}),canDrop:t.canDrop()}}))(Ba),Ua=["data","class_name"],Ha=["data","class_name"],Ya=["data"];function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var qa=[dn,fn],Ga=function(e){d()(n,e);var t=Wa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.controls,n=e.data,r=e.editModeOn,o=e.getDataById,i=e.setAsChild,a=e.removeChild,s=e.seq,c=e.className,u=e.index,l=n.childItems,p="SortableItem rfb-item";return n.pageBreakBefore&&(p+=" alwaysbreak"),b.a.createElement("div",{style:Va({},this.props.style),className:p},b.a.createElement(qi,this.props),b.a.createElement("div",null,b.a.createElement(Ji,this.props),b.a.createElement("div",{className:"row"},l.map((function(e,p){return b.a.createElement("div",{key:"".concat(p,"_").concat(e||"_"),className:c},t?t[p]:b.a.createElement(Fa,{style:{width:"100%"},data:n,accepts:qa,items:l,col:p,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,p)},getDataById:o,setAsChild:i,seq:s}))})))))}}]),n}(b.a.Component),Qa=function(e){var t=e.data,n=e.class_name,r=Mn()(e,Ua),o=n||"col-md-6";return t.childItems||(t.childItems=[null,null],t.isContainer=!0),b.a.createElement(Ga,i()({},r,{className:o,data:t}))},Za=function(e){var t=e.data,n=e.class_name,r=Mn()(e,Ha),o=n||"col-md-4";return t.childItems||(t.childItems=[null,null,null],t.isContainer=!0),b.a.createElement(Ga,i()({},r,{className:o,data:t}))},Ja=function(e){var t=e.data,n=Mn()(e,Ya),r=t.col_count||4,o=t.class_name||(4===r?"col-md-3":"col");return t.childItems||(t.childItems=Array.from({length:r},(function(e,t){return null})),t.isContainer=!0),b.a.createElement(Ga,i()({},n,{className:o,data:t}))},$a=["data","class_name"];function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ts=[dn,fn];function ns(e){var t=Object(v.useState)({}),n=$e()(t,2),r=n[0],o=n[1],a=Object(v.useState)(null),s=$e()(a,2),c=s[0],u=s[1];Object(v.useEffect)((function(){var t=e.data;e.class_name,Mn()(e,$a);o(t);p(1,t)}),[e]);var l=function(t){var n,r,o;(c?c.length:0)===t+1&&(n=e.data,r=n.childItems.length+1,o=n.childItems,n.childItems=Array.from({length:r},(function(e,t){return o[t]?o[t]:null})),u(n.childItems))},p=function(e,t){var n=e;t.class_name;t.childItems||(t.childItems=Array.from({length:n},(function(e,t){return null})),t.isContainer=!0),u(t.childItems)},f=e.controls,d=e.editModeOn,h=e.getDataById,m=e.setAsChild,g=e.removeChild,y=e.seq,w=(e.className,e.index),_="SortableItem rfb-item";return r.pageBreakBefore&&(_+=" alwaysbreak"),b.a.createElement("div",{style:es({},e.style),className:_},b.a.createElement(qi,i()({},e,{isFieldSet:!0})),b.a.createElement("div",null,b.a.createElement(Ji,e),b.a.createElement("div",{className:"row"},null==c?void 0:c.map((function(e,t){return b.a.createElement("div",{key:"".concat(t,"_").concat(e||"_"),className:"col-md-12"},f?f[t]:b.a.createElement(Fa,{style:{width:"100%"},data:r,accepts:ts,items:c,key:t,col:t,onDropSuccess:function(){return l(t)},parentIndex:w,editModeOn:d,_onDestroy:function(){return g(r,t)},getDataById:h,setAsChild:m,seq:y,rowNo:t}))})))))}var rs=Ma.Header,os=Ma.Paragraph,is=Ma.Label,as=Ma.LineBreak,ss=Ma.TextInput,cs=Ma.EmailInput,us=Ma.PhoneNumber,ls=Ma.NumberInput,ps=Ma.TextArea,fs=Ma.Dropdown,ds=Ma.Checkboxes,hs=Ma.DatePicker,ms=Ma.RadioButtons,gs=Ma.Image,ys=Ma.Rating,vs=Ma.Tags,bs=Ma.Signature,ws=Ma.HyperLink,_s=Ma.Download,Os=Ma.Camera,Ss=Ma.Range,Es=Ma.FileUpload,ks=Ma.Checkbox,Cs={};Cs.Header=wn(rs),Cs.Paragraph=wn(os),Cs.Label=wn(is),Cs.LineBreak=wn(as),Cs.TextInput=wn(ss),Cs.EmailInput=wn(cs),Cs.PhoneNumber=wn(us),Cs.NumberInput=wn(ls),Cs.TextArea=wn(ps),Cs.Dropdown=wn(fs),Cs.Signature=wn(bs),Cs.Checkboxes=wn(ds),Cs.Checkbox=wn(ks),Cs.DatePicker=wn(hs),Cs.RadioButtons=wn(ms),Cs.Image=wn(gs),Cs.Rating=wn(ys),Cs.Tags=wn(vs),Cs.HyperLink=wn(ws),Cs.Download=wn(_s),Cs.Camera=wn(Os),Cs.FileUpload=wn(Es),Cs.Range=wn(Ss),Cs.PlaceHolder=wn(Sn),Cs.FieldSet=wn(ns),Cs.TwoColumnRow=wn(Qa),Cs.ThreeColumnRow=wn(Za),Cs.MultiColumnRow=wn(Ja),Cs.CustomElement=wn(Na);var js=Cs;function Ms(e){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ts(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),e}function Is(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ns(e,t)}function Ns(e,t){return(Ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function As(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ps(e);if(t){var o=Ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(e,t){return!t||"object"!==Ms(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ps(e){return(Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bs={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},Fs={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},Us=function(e){var t=e.title,n=e.color?"#059862":"white";return b.a.createElement("div",{style:zs(zs({},Bs),{},{backgroundColor:n})},t)},Hs=function(e){var t=e.item,n=Object(v.useState)(!1),r=$e()(n,2),o=r[0],i=(r[1],t.data.content?t.data.content:t.data.label?t.data.label:t.data.text),a=i.length>20?"".concat(i.slice(0,20),"..."):i;return b.a.createElement("div",{style:Fs,role:"BoxPreview"},b.a.createElement(Us,{title:a,color:o}))},Ys={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function Ks(e){var t=e.initialOffset,n=e.currentOffset;if(!t||!n)return{display:"none"};var r=n.x,o=n.y,i="translate(".concat(r,"px, ").concat(o,"px)");return{transform:i,WebkitTransform:i}}var Vs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(at.a)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Object(at.a)(lt(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var r=n,o=t.arePropsEqual,i=void 0===o?mt:o,a=r.displayName||r.name||"Component",s=function(){var t=function(t){Is(o,t);var n=As(o);function o(){var e;return xs(this,o),(e=n.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=v.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();mt(t,e.state)||e.setState(t)}},e}return Ts(o,[{key:"getDecoratedComponentInstance",value:function(){return Object(at.a)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!i(e,this.props)||!mt(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return v.createElement(Tt.a.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?v.createElement(r,Object.assign({},e.props,e.state,{ref:Mt(r)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,Object(at.a)("object"===Ms(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",a,a);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),o}(v.Component);return t.displayName="DragLayer(".concat(a,")"),t.DecoratedComponent=n,t}();return Dt()(s,n)}}((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}}))((function(e){var t=e.item,n=e.itemType;return e.isDragging?b.a.createElement("div",{style:Ys},b.a.createElement("div",{style:Ks(e)},function(){switch(n){case dn:return b.a.createElement(Hs,{item:t});default:return null}}())):null}));function Ws(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var qs=js.PlaceHolder,Gs=function(e){d()(n,e);var t=Ws(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"state",{data:[],answer_data:{}}),Be()(p()(r),"editModeOff",(function(e){r.editForm.current&&!r.editForm.current.contains(e.target)&&r.manualEditModeOff()})),Be()(p()(r),"manualEditModeOff",(function(){var e=r.props.editElement;e&&e.dirty&&(e.dirty=!1,r.updateElement(e)),r.props.manualEditModeOff()}));var o=e.onLoad,i=e.onPost;return Ge.setExternalHandler(o,i),r.editForm=b.a.createRef(),r.state={data:e.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(p()(r)),r.getDataById=r.getDataById.bind(p()(r)),r.moveCard=r.moveCard.bind(p()(r)),r.insertCard=r.insertCard.bind(p()(r)),r.setAsChild=r.setAsChild.bind(p()(r)),r.removeChild=r.removeChild.bind(p()(r)),r._onDestroy=r._onDestroy.bind(p()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.data,r=t.url,o=t.saveUrl,i=t.saveAlways;Ge.subscribe((function(t){return e._onUpdate(t.data)})),Ge.dispatch("load",{loadUrl:r,saveUrl:o,data:n||[],saveAlways:i}),document.addEventListener("mousedown",this.editModeOff)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.editModeOff)}},{key:"_setValue",value:function(e){return e.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(e){for(var t=this.state.data,n=!1,r=0,o=t.length;r<o;r++)if(e.id===t[r].id){t[r]=e,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",t))}},{key:"_onChange",value:function(e){var t=this,n={};e.forEach((function(e){e&&e.readOnly&&t.props.variables[e.variableKey]&&(n[e.field_name]=t.props.variables[e.variableKey])})),this.setState({data:e,answer_data:n})}},{key:"_onDestroy",value:function(e){var t=this;e.childItems&&e.childItems.forEach((function(e){var n=t.getDataById(e);n&&Ge.dispatch("delete",n)})),Ge.dispatch("delete",e)}},{key:"getDataById",value:function(e){return this.state.data.find((function(t){return t&&t.id===e}))}},{key:"swapChildren",value:function(e,t,n,r){if(void 0!==n.col&&t.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!t.childItems[r])return!1;var o=t.childItems[r],i=this.getDataById(o),a=n.col;return t.childItems[a]=o,i.col=a,t.childItems[r]=n.id,n.col=r,Ge.dispatch("updateOrder",e),!0}},{key:"setAsChild",value:function(e,t,n,r){var o=this.state.data;if(!this.swapChildren(o,e,t,n)&&!r){var i=this.getDataById(t.parentId),a=t.col;e.childItems[n]=t.id,t.col=n,t.parentId=e.id,t.parentIndex=o.indexOf(e),i&&(i.childItems[a]=null);var s=o.filter((function(t){return t&&t.parentId===e.id})).filter((function(t){return-1===e.childItems.indexOf(t.id)})),c=o;s.length&&(c=o.filter((function(e){return-1===s.indexOf(e)}))),this.getDataById(t.id)||c.push(t),Ge.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(e,t){var n=this.state.data,r=e.childItems[t],o=this.getDataById(r);if(o){var i=n.filter((function(e){return e!==o}));e.childItems[t]=null,this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(e,t){var n=this.state.data,r=this.getDataById(e.data.parentId),o=this.getDataById(t);if(r&&o){var i=n.indexOf(o),a=Re()(n);r.childItems[o.col]=null,delete o.parentId,delete e.setAsChild,delete e.parentIndex,e.index=i,this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(e,t,n){var r=this.state.data;n?this.restoreCard(e,n):(r.splice(t,0,e),this.saveData(e,t,t),Ge.dispatch("insertItem",e))}},{key:"moveCard",value:function(e,t){var n=this.state.data[e];this.saveData(n,e,t)}},{key:"cardPlaceHolder",value:function(e,t){}},{key:"saveData",value:function(e,t,n){var r=Ue()(this.state,{data:{$splice:[[t,1],[n,0,e]]}});this.setState(r),Ge.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(e,t){e.custom&&(e.component&&"function"==typeof e.component||(e.component=this.props.registry.get(e.key)));var n=js[e.element];return null===n?null:b.a.createElement(n,{id:e.id,seq:this.seq,index:t,moveCard:this.moveCard,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:e.id,sortData:e.id,data:e,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var e=this,t=function(t){return e.updateElement(t)};t.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,preview:this,element:this.props.editElement,updateElement:t};return this.props.renderEditForm(n)}},{key:"render",value:function(){var e=this,t=this.props.className;this.props.editMode&&(t+=" is-editing");var n=this.state.data.filter((function(e){return!!e&&!e.parentId})).map((function(t,n){return e.getElement(t,n)}));return b.a.createElement("div",{className:t},b.a.createElement("div",{className:"edit-form",ref:this.editForm},null!==this.props.editElement&&this.showEditForm()),b.a.createElement("div",{className:"Sortable"},n),b.a.createElement(qs,{id:"form-place-holder",show:0===n.length,index:n.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),b.a.createElement(Vs,null))}}]),n}(b.a.Component);Gs.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(e){return b.a.createElement(tt,e)}};var Qs=n(30),Zs=n.n(Qs);function Js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var $s={beginDrag:function(e){return{id:Zs.a.uuid(),index:-1,data:e.data,onCreate:e.onCreate}}},Xs=function(e){d()(n,e);var t=Js(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.connectDragSource,n=e.data,r=e.onClick;return t?t(b.a.createElement("li",{onClick:r},b.a.createElement("i",{className:n.icon}),n.name)):null}}]),n}(b.a.Component),ec=pn(fn,$s,(function(e){return{connectDragSource:e.dragSource()}}))(Xs);var tc=function(e){var t=e.name,n=e.group,r=e.renderItem,o=Object(v.useState)(!1),i=$e()(o,2),a=i[0],s=i[1],c="collapse"+(a?" show":"");return b.a.createElement("li",null,b.a.createElement("div",{className:"toolbar-group-item"},b.a.createElement("button",{className:"btn btn-link btn-block text-left",type:"button",onClick:function(){s(!a)}},t),b.a.createElement("div",{className:c},b.a.createElement("ul",null,n.map(r)))))};n(197),n(104),n(137),n(138);function nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ic(e){var t,n,r,o=e.filter((function(e){return!e.group_name})),i=e.filter((function(e){return!!e.group_name}));return{items:o,grouped:(t=i,n=function(e){return e.group_name},r=new Map,t.forEach((function(e){var t=n(e),o=r.get(t);o?o.push(e):r.set(t,[e])})),r),groupKeys:i.map((function(e){return e.group_name})).filter((function(e,t,n){return n.indexOf(e)===t}))}}var ac=function(e){d()(n,e);var t=nc(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"renderItem",(function(e){return b.a.createElement(ec,{data:e,key:e.key,onClick:r._onClick.bind(p()(r),e),onCreate:r.create})}));var o=r.props.intl,i=function(e,t){return e?e.map((function(e){var n=t.find((function(t){return e.element===t.element&&t.key===e.key}));return n||(n=t.find((function(t){return(e.element||e.key)===(t.element||t.key)}))),n&&(!1!==e.inherited?n=oc(oc({},n),e):e.group_name&&(n.group_name=e.group_name)),n||e})):t}(e.items,r._defaultItems(o));return r.state={items:i},r.create=r.create.bind(p()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;Ge.subscribe((function(t){return e.setState({store:t})}))}},{key:"_defaultItems",value:function(e){return[{key:"Header",name:e.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:e.formatMessage({id:"place-holder-text"})},{key:"Label",name:e.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:e.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:e.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:e.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:e.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:e.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:e.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:e.formatMessage({id:"tags"}),icon:"fas fa-tags",label:e.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:e.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:e.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:e.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:e.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:e.formatMessage({id:"text-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:e.formatMessage({id:"email-input"}),label:e.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:e.formatMessage({id:"number-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:e.formatMessage({id:"phone-input"}),label:e.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:e.formatMessage({id:"multi-line-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:e.formatMessage({id:"fieldset"}),label:e.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"four-columns-row"}),label:"",icon:"fas fa-columns",field_name:"four_col_row_",col_count:4,class_name:"col-md-3"},{key:"FiveColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"five-columns-row"}),label:"",icon:"fas fa-columns",field_name:"five_col_row_",col_count:5,class_name:"col"},{key:"SixColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"six-columns-row"}),label:"",icon:"fas fa-columns",field_name:"six_col_row_",col_count:6,class_name:"col-md-2"},{key:"Image",name:e.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:e.formatMessage({id:"rating"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-star",field_name:"rating_"},{key:"DatePicker",canDefaultToday:!0,canReadOnly:!0,dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",showTimeSelect:!1,showTimeSelectOnly:!1,showTimeInput:!1,name:e.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:e.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:e.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:e.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:e.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:e.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:e.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:e.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:e.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:e.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:e.formatMessage({id:"easy"}),max_label:e.formatMessage({id:"difficult"})},{key:"Camera",name:e.formatMessage({id:"camera"}),icon:"fas fa-camera",label:e.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:e.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:e.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(e,t){if("custom"===e.type){var n=oc(oc({},e),t);return n.custom=!0,n.component=e.component||null,n.custom_options=e.custom_options||[],n}return t}},{key:"create",value:function(e){var t=this.props.intl,r=e.element||e.key,o=this.addCustomOptions(e,{id:Zs.a.uuid(),element:r,text:e.name,group_name:e.group_name,static:e.static,required:!1,showDescription:e.showDescription});return!0!==this.props.showDescription||e.static||(o.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea"].indexOf(r)&&(o.showPlaceholder=!0),"custom"===e.type&&(o.key=e.key,o.custom=!0,o.forwardRef=e.forwardRef,o.bare=e.bare,o.props=e.props,o.component=e.component||null,o.custom_options=e.custom_options||[]),e.static&&(o.bold=!1,o.italic=!1),o.show_custom_name=e.show_custom_name,o.custom_name=e.custom_name,e.canHaveAnswer&&(o.canHaveAnswer=e.canHaveAnswer),e.canReadOnly&&(o.readOnly=!1),e.canDefaultToday&&(o.defaultToday=!1),e.content&&(o.content=e.content),e.href&&(o.href=e.href),void 0!==e.inherited&&(o.inherited=e.inherited),o.canHavePageBreakBefore=!1!==e.canHavePageBreakBefore,o.canHaveAlternateForm=!1!==e.canHaveAlternateForm,o.canHaveDisplayHorizontal=!1!==e.canHaveDisplayHorizontal,o.canHaveDisplayHorizontal&&(o.inline=e.inline),o.canHaveOptionCorrect=!1!==e.canHaveOptionCorrect,o.canHaveOptionValue=!1!==e.canHaveOptionValue,o.canPopulateFromApi=!1!==e.canPopulateFromApi,e.class_name&&(o.class_name=e.class_name),"Image"===r&&(o.src=e.src),"DatePicker"===r&&(o.dateFormat=e.dateFormat,o.timeFormat=e.timeFormat,o.showTimeSelect=e.showTimeSelect,o.showTimeSelectOnly=e.showTimeSelectOnly,o.showTimeInput=e.showTimeInput),"Download"===r&&(o._href=e._href,o.file_path=e.file_path),"Range"===r&&(o.step=e.step,o.default_value=e.default_value,o.min_value=e.min_value,o.max_value=e.max_value,o.min_label=e.min_label,o.max_label=e.max_label),"MultiColumnRow"===r&&(o.col_count=e.col_count),e.defaultValue&&(o.defaultValue=e.defaultValue),e.field_name&&(o.field_name=e.field_name+Zs.a.uuid()),e.label&&(o.label=e.label),e.options&&(e.options.length>0?o.options=e.options.map((function(e){return oc(oc({},e),{},{key:"custom_option_".concat(Zs.a.uuid())})})):o.options=n._defaultItemOptions(o.element,t)),o}},{key:"_onClick",value:function(e){Ge.dispatch("create",this.create(e))}},{key:"render",value:function(){var e=this,t=ic(this.state.items),n=t.items,r=t.grouped,o=t.groupKeys;return b.a.createElement("div",{className:"col-md-3 react-form-builder-toolbar float-right"},b.a.createElement("h4",null,this.props.intl.formatMessage({id:"toolbox"})),b.a.createElement("ul",null,n.map(this.renderItem),o.map((function(t){return b.a.createElement(tc,{key:t,name:t,group:r.get(t),renderItem:e.renderItem})}))))}}],[{key:"_defaultItemOptions",value:function(e,t){switch(e){case"Dropdown":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(Zs.a.uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(Zs.a.uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(Zs.a.uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:t.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(Zs.a.uuid())},{value:"place_holder_tag_2",text:t.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(Zs.a.uuid())},{value:"place_holder_tag_3",text:t.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(Zs.a.uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(Zs.a.uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(Zs.a.uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(Zs.a.uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(Zs.a.uuid())}];default:return[]}}}]),n}(b.a.Component),sc=Object(Z.c)(ac),cc=n(206),uc=n(139);function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var pc=new Qi.a.FilterXSS({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),fc=function(e){d()(n,e);var t=lc(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).state={errors:[]},r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;this.subscription=this.props.emitter.addListener("formValidation",(function(t){e.setState({errors:t})}))}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(e){e.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var e=this.state.errors.map((function(e,t){return b.a.createElement("li",{key:"error_".concat(t),dangerouslySetInnerHTML:{__html:pc.process(e)}})}));return b.a.createElement("div",null,this.state.errors.length>0&&b.a.createElement("div",{className:"alert alert-danger validation-error"},b.a.createElement("div",{className:"clearfix"},b.a.createElement("i",{className:"fas fa-exclamation-triangle float-left"}),b.a.createElement("ul",{className:"float-left"},e)),b.a.createElement("div",{className:"clearfix"},b.a.createElement("a",{className:"float-right btn btn-default btn-sm btn-danger",onClick:this.dismissModal.bind(this)},b.a.createElement(uc.a,{id:"dismiss"})))))}}]),n}(b.a.Component);function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var hc=Ma.Image,mc=Ma.Checkboxes,gc=Ma.Signature,yc=Ma.Download,vc=Ma.Camera,bc=Ma.FileUpload,wc=function(e){d()(n,e);var t=dc(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"form",void 0),Be()(p()(r),"inputs",{}),Be()(p()(r),"answerData",void 0),Be()(p()(r),"handleRenderSubmit",(function(){var e=r.props.action_name||r.props.actionName||"Submit",t=r.props.submitButton;return void 0!==t&&t||b.a.createElement("input",{type:"submit",className:"btn btn-big",value:e})})),Be()(p()(r),"handleRenderBack",(function(){var e=r.props.back_name||r.props.backName||"Cancel",t=r.props.backButton;return void 0!==t&&t||b.a.createElement("a",{href:r.props.back_action,className:"btn btn-default btn-cancel btn-big"},e)})),r.answerData=r._convert(e.answer_data),r.emitter=new cc.EventEmitter,r.getDataById=r.getDataById.bind(p()(r)),r.handleBlur=r.handleBlur.bind(p()(r)),r.handleChange=r.handleChange.bind(p()(r)),r.handleSubmit=r.handleSubmit.bind(p()(r)),r}return u()(n,[{key:"_convert",value:function(e){if(Array.isArray(e)){var t={};return e.forEach((function(e){e.name.indexOf("tags_")>-1?t[e.name]=e.value.map((function(e){return e.value})):t[e.name]=e.value})),t}return e||{}}},{key:"_getDefaultValue",value:function(e){return this.answerData[e.field_name]}},{key:"_optionsDefaultValue",value:function(e){var t=this,n=this._getDefaultValue(e);if(n)return n;var r=[];return e.options.forEach((function(e){t.answerData["option_".concat(e.key)]&&r.push(e.key)})),r}},{key:"_getItemValue",value:function(e,t){var n={element:e.element,value:""};return"Rating"===e.element?n.value=t.inputField.current.state.rating:"Tags"===e.element?n.value=t.inputField.current.state.value:"DatePicker"===e.element?n.value=t.state.value:"Camera"===e.element?n.value=t.state.img:"FileUpload"===e.element?n.value=t.state.fileUpload:t&&t.inputField&&t.inputField.current&&(n=it.a.findDOMNode(t.inputField.current))&&"string"==typeof n.value&&(n.value=n.value.trim()),n}},{key:"_isIncorrect",value:function(e){var t=!1;if(e.canHaveAnswer){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element)e.options.forEach((function(e){var r=it.a.findDOMNode(n.options["child_ref_".concat(e.key)]);(e.hasOwnProperty("correct")&&!r.checked||!e.hasOwnProperty("correct")&&r.checked)&&(t=!0)}));else{var r=this._getItemValue(e,n);"Rating"===e.element?r.value.toString()!==e.correct&&(t=!0):r.value.toLowerCase()!==e.correct.trim().toLowerCase()&&(t=!0)}}return t}},{key:"_isInvalid",value:function(e){var t=!1;if(!0===e.required){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=0;e.options.forEach((function(e){it.a.findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&(r+=1)})),r<1&&(t=!0)}else{var o=this._getItemValue(e,n);"Rating"===e.element?0===o.value&&(t=!0):(void 0===o.value||o.value.length<1)&&(t=!0)}}return t}},{key:"_collect",value:function(e){var t={id:e.id,name:e.field_name,custom_name:e.custom_name||e.field_name};if(!t.name)return null;var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=[];e.options.forEach((function(e){it.a.findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&r.push(e.key)})),t.value=r}else if("Checkbox"===e.element)n&&n.inputField&&n.inputField.current?t.value=n.inputField.current.checked:t.value=!1;else{if(!n)return null;t.value=this._getItemValue(e,n).value}return t.required=e.required||!1,t}},{key:"_collectFormData",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t._collect(e);r&&n.push(r)})),n}},{key:"_getSignatureImg",value:function(e){var t=this.inputs[e.field_name],n=t.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty(),i=it.a.findDOMNode(t.inputField.current);i.value=o?"":r}}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=[];if(this.props.skip_validations||(t=this.validateForm(),this.emitter.emit("formValidation",t)),t.length<1){var n=this.props.onSubmit;if(n)n(this._collectFormData(this.props.data));else it.a.findDOMNode(this.form).submit()}}},{key:"handleBlur",value:function(e){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data))}},{key:"handleChange",value:function(e){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data))}},{key:"validateForm",value:function(){var e=this,t=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter((function(e){return!0===e.alternateForm}))),n.forEach((function(n){if("Signature"===n.element&&e._getSignatureImg(n),e._isInvalid(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.is-required"}),"!")),"EmailInput"===n.element){var o=e.inputs[n.field_name],i=e._getItemValue(n,o).value;if(i){i.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"})))}}if("PhoneNumber"===n.element){var a=e.inputs[n.field_name],s=e._getItemValue(n,a).value;if(s){s.match(/^[+]?(1\-|1\s|1|\d{3}\-|\d{3}\s|)?((\(\d{3}\))|\d{3})(\-|\s)?(\d{3})(\-|\s)?(\d{4})$/g)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"})))}}e.props.validateForCorrectness&&e._isIncorrect(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))})),t}},{key:"getDataById",value:function(e){return this.props.data.find((function(t){return t.id===e}))}},{key:"getInputElement",value:function(e){var t=this;if(e.custom)return this.getCustomElement(e);var n=Ma[e.element];return b.a.createElement(n,{handleChange:this.handleChange,ref:function(n){return t.inputs[e.field_name]=n},mutable:!0,key:"form_".concat(e.id),data:e,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(e)})}},{key:"getContainerElement",value:function(e,t){var n=this,r=e.childItems.map((function(e){return e?n.getInputElement(n.getDataById(e)):b.a.createElement("div",null," ")}));return b.a.createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(e){var t=Ma[e.element];return b.a.createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(e){var t=this,n=this.props.intl;e.component&&"function"==typeof e.component||(e.component=La.a.get(e.key),e.component||console.error("".concat(e.element," ").concat(n.formatMessage({id:"message.was-not-registered"}))));var r=e.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(e),ref:function(n){return t.inputs[e.field_name]=n}};return b.a.createElement(Na,i()({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(e.id),data:e},r))}},{key:"render",value:function(){var e=this,t=this.props.data;this.props.display_short&&(t=this.props.data.filter((function(e){return!0===e.alternateForm}))),t.forEach((function(t){t&&t.readOnly&&t.variableKey&&e.props.variables[t.variableKey]&&(e.answerData[t.field_name]=e.props.variables[t.variableKey])}));var n=t.filter((function(e){return!e.parentId})).map((function(t){if(!t)return null;switch(t.element){case"TextInput":case"EmailInput":case"PhoneNumber":case"NumberInput":case"TextArea":case"Dropdown":case"DatePicker":case"RadioButtons":case"Rating":case"Tags":case"Range":case"Checkbox":return e.getInputElement(t);case"CustomElement":return e.getCustomElement(t);case"MultiColumnRow":return e.getContainerElement(t,Ja);case"ThreeColumnRow":return e.getContainerElement(t,Za);case"TwoColumnRow":return e.getContainerElement(t,Qa);case"FieldSet":return e.getContainerElement(t,ns);case"Signature":return b.a.createElement(gc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t)});case"Checkboxes":return b.a.createElement(mc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only,handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._optionsDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Image":return b.a.createElement(hc,{ref:function(n){return e.inputs[t.field_name]=n},handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Download":return b.a.createElement(yc,{download_path:e.props.download_path,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert});case"Camera":return b.a.createElement(vc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"FileUpload":return b.a.createElement(bc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert,defaultValue:e._getDefaultValue(t)});default:return e.getSimpleElement(t)}}));return b.a.createElement("div",null,b.a.createElement(fc,{emitter:this.emitter}),b.a.createElement("div",{className:"react-form-builder-form"},b.a.createElement("form",{encType:"multipart/form-data",ref:function(t){return e.form=t},action:this.props.form_action,onBlur:this.handleBlur,onChange:this.handleChange,onSubmit:this.handleSubmit,method:this.props.form_method},this.props.authenticity_token&&b.a.createElement("div",{style:{display:"none"}},b.a.createElement("input",{name:"utf8",type:"hidden",value:"✓"}),b.a.createElement("input",{name:"authenticity_token",type:"hidden",value:this.props.authenticity_token}),b.a.createElement("input",{name:"task_id",type:"hidden",value:this.props.task_id})),n,b.a.createElement("div",{className:"btn-toolbar"},!this.props.hide_actions&&this.handleRenderSubmit(),!this.props.hide_actions&&this.props.back_action&&this.handleRenderBack()))))}}]),n}(b.a.Component),_c=Object(Z.c)(wc);function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}wc.defaultProps={validateForCorrectness:!1};var Sc={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(207)),locale:"en-US"};function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var kc={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(208)),locale:"it-IT"};function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jc={en:Sc,vi:{messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(209)),locale:"vi-VN"},it:kc};function Mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var xc=function(e){d()(n,e);var t=Mc(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).state={editMode:!1,editElement:null},r.editModeOn=r.editModeOn.bind(p()(r)),r}return u()(n,[{key:"editModeOn",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:e})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var e={showDescription:this.props.show_description},t=this.props.locale?this.props.locale:"en",n=jc[t];return this.props.toolbarItems&&(e.items=this.props.toolbarItems),b.a.createElement(w.a,{backend:G},b.a.createElement(Le,{locale:n.locale,messages:n.messages},b.a.createElement("div",null,b.a.createElement("div",{className:"react-form-builder clearfix"},b.a.createElement("div",null,b.a.createElement(Gs,{files:this.props.files,manualEditModeOff:this.manualEditModeOff.bind(this),showCorrectColumn:this.props.showCorrectColumn,parent:this,data:this.props.data,url:this.props.url,saveUrl:this.props.saveUrl,onLoad:this.props.onLoad,onPost:this.props.onPost,editModeOn:this.editModeOn,editMode:this.state.editMode,variables:this.props.variables,registry:La.a,editElement:this.state.editElement,renderEditForm:this.props.renderEditForm,saveAlways:this.props.saveAlways}),b.a.createElement(sc,i()({},e,{customItems:this.props.customToolbarItems})))))))}}]),n}(b.a.Component);function Dc(e){var t=e.locale?e.locale:"en",n=jc[t];return b.a.createElement(Le,{locale:n.locale,messages:n.messages},b.a.createElement(_c,e))}var Tc={};Tc.ReactFormBuilder=xc,Tc.ReactFormGenerator=Dc,Tc.ElementStore=Ge,Tc.Registry=La.a;t.default=Tc},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return et}));var r=n(28),o=n(63);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(o.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var a=n(100),s=n(96),c=n(3);function u(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var l=n(79),p=n(45),f=n(46),d=n(12),h=n(1),m=n(4),g=n(9),y=n(25);var v=n(36);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(y.a)(e);if(t){var o=Object(y.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(v.a)(this,n)}}var w=n(7),_=n(8),O=n(2),S=function(){function e(){Object(w.a)(this,e),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",0)}return Object(_.a)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),E=function(e){Object(g.a)(n,e);var t=b(n);function n(e,r,o,i,a){var s;return Object(w.a)(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return Object(_.a)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(S),k=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"subPriority",-1),e}return Object(_.a)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(S),C=function(){function e(){Object(w.a)(this,e),Object(O.a)(this,"incompatibleTokens",void 0),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",void 0)}return Object(_.a)(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new E(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),j=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",140),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["R","u","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),M=n(49),x=/^(1[0-2]|0?\d)/,D=/^(3[0-1]|[0-2]?\d)/,T=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,I=/^(5[0-3]|[0-4]?\d)/,N=/^(2[0-3]|[0-1]?\d)/,A=/^(2[0-4]|[0-1]?\d)/,L=/^(1[0-1]|0?\d)/,P=/^(1[0-2]|0?\d)/,R=/^[0-5]?\d/,z=/^[0-5]?\d/,B=/^\d/,F=/^\d{1,2}/,U=/^\d{1,3}/,H=/^\d{1,4}/,Y=/^-?\d+/,K=/^-?\d/,V=/^-?\d{1,2}/,W=/^-?\d{1,3}/,q=/^-?\d{1,4}/,G=/^([+-])(\d{2})(\d{2})?|Z/,Q=/^([+-])(\d{2})(\d{2})|Z/,Z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,J=/^([+-])(\d{2}):(\d{2})|Z/,$=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ee(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function te(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*M.a+i*M.b+a*M.c),rest:t.slice(n[0].length)}}function ne(e){return ee(Y,e)}function re(e,t){switch(e){case 1:return ee(B,t);case 2:return ee(F,t);case 3:return ee(U,t);case 4:return ee(H,t);default:return ee(new RegExp("^\\d{1,"+e+"}"),t)}}function oe(e,t){switch(e){case 1:return ee(K,t);case 2:return ee(V,t);case 3:return ee(W,t);case 4:return ee(q,t);default:return ee(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ie(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ae(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function se(e){return e%400==0||e%4==0&&e%100!=0}var ce=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return X(re(4,e),r);case"yo":return X(n.ordinalNumber(e,{unit:"year"}),r);default:return X(re(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=ae(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ue=n(64),le=n(40),pe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return X(re(4,e),r);case"Yo":return X(n.ordinalNumber(e,{unit:"year"}),r);default:return X(re(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=Object(ue.a)(e,r);if(n.isTwoDigitYear){var i=ae(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(le.a)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(le.a)(e,r)}}]),n}(C),fe=n(41),de=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return oe("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Object(fe.a)(r)}}]),n}(C),he=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return oe("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),me=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",120),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return re(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ge=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",120),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return re(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ye=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Object(O.a)(Object(m.a)(e),"priority",110),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return X(ee(x,e),r);case"MM":return X(re(2,e),r);case"Mo":return X(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ve=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",110),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return X(ee(x,e),r);case"LL":return X(re(2,e),r);case"Lo":return X(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),be=n(102);var we=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",100),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ee(I,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Object(le.a)(function(e,t,n){Object(h.a)(2,arguments);var r=Object(c.default)(e),o=Object(d.a)(t),i=Object(be.a)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(C),_e=n(103);var Oe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",100),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ee(I,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Object(fe.a)(function(e,t){Object(h.a)(2,arguments);var n=Object(c.default)(e),r=Object(d.a)(t),o=Object(_e.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(C),Se=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],ke=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"subPriority",1),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ee(D,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){var n=se(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Ee[r]:t>=1&&t<=Se[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(C),Ce=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"subpriority",1),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ee(T,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return se(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(C),je=n(32);function Me(e,t,n){var r,o,i,a,s,u,l,p;Object(h.a)(2,arguments);var f=Object(je.a)(),m=Object(d.a)(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(l=f.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Object(c.default)(e),y=Object(d.a)(t),v=g.getUTCDay(),b=y%7,w=(b+7)%7,_=(w<m?7:0)+y-v;return g.setUTCDate(g.getUTCDate()+_),g}var xe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C),De=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return X(re(t.length,e),o);case"eo":return X(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C),Te=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return X(re(t.length,e),o);case"co":return X(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C);var Ie=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return re(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return X(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return X(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return X(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return X(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){Object(h.a)(2,arguments);var n=Object(d.a)(t);n%7==0&&(n-=7);var r=1,o=Object(c.default)(e),i=o.getUTCDay(),a=n%7,s=(a+7)%7,u=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(C),Ne=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Ae=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Le=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Pe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ee(P,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(C),Re=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ee(N,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(C),ze=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ee(L,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(C),Be=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ee(A,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(C),Fe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",60),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ee(R,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(C),Ue=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",50),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ee(z,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(C),He=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",30),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return X(re(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(C),Ye=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T","x"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return te(G,e);case"XX":return te(Q,e);case"XXXX":return te(Z,e);case"XXXXX":return te($,e);case"XXX":default:return te(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(C),Ke=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T","X"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return te(G,e);case"xx":return te(Q,e);case"xxxx":return te(Z,e);case"xxxxx":return te($,e);case"xxx":default:return te(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(C),Ve=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",40),Object(O.a)(Object(m.a)(e),"incompatibleTokens","*"),e}return Object(_.a)(n,[{key:"parse",value:function(e){return ne(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(C),We=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",20),Object(O.a)(Object(m.a)(e),"incompatibleTokens","*"),e}return Object(_.a)(n,[{key:"parse",value:function(e){return ne(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(C),qe={G:new j,y:new ce,Y:new pe,R:new de,u:new he,Q:new me,q:new ge,M:new ye,L:new ve,w:new we,I:new Oe,d:new ke,D:new Ce,E:new xe,e:new De,c:new Te,i:new Ie,a:new Ne,b:new Ae,B:new Le,h:new Pe,H:new Re,K:new ze,k:new Be,m:new Fe,s:new Ue,S:new He,X:new Ye,x:new Ke,t:new Ve,T:new We},Ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ze=/^'([^]*?)'?$/,Je=/''/g,$e=/\S/,Xe=/[a-zA-Z]/;function et(e,t,n,o){var m,g,y,v,b,w,_,O,S,E,C,j,M,x,D,T,I,N;Object(h.a)(3,arguments);var A=String(e),L=String(t),P=Object(je.a)(),R=null!==(m=null!==(g=null==o?void 0:o.locale)&&void 0!==g?g:P.locale)&&void 0!==m?m:a.a;if(!R.match)throw new RangeError("locale must contain match property");var z=Object(d.a)(null!==(y=null!==(v=null!==(b=null!==(w=null==o?void 0:o.firstWeekContainsDate)&&void 0!==w?w:null==o||null===(_=o.locale)||void 0===_||null===(O=_.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==b?b:P.firstWeekContainsDate)&&void 0!==v?v:null===(S=P.locale)||void 0===S||null===(E=S.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==y?y:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=Object(d.a)(null!==(C=null!==(j=null!==(M=null!==(x=null==o?void 0:o.weekStartsOn)&&void 0!==x?x:null==o||null===(D=o.locale)||void 0===D||null===(T=D.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==M?M:P.weekStartsOn)&&void 0!==j?j:null===(I=P.locale)||void 0===I||null===(N=I.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==C?C:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===L)return""===A?Object(c.default)(n):new Date(NaN);var F,U={firstWeekContainsDate:z,weekStartsOn:B,locale:R},H=[new k],Y=L.match(Qe).map((function(e){var t=e[0];return t in l.a?(0,l.a[t])(e,R.formatLong):e})).join("").match(Ge),K=[],V=i(Y);try{var W=function(){var t=F.value;null!=o&&o.useAdditionalWeekYearTokens||!Object(f.b)(t)||Object(f.c)(t,L,e),null!=o&&o.useAdditionalDayOfYearTokens||!Object(f.a)(t)||Object(f.c)(t,L,e);var n=t[0],r=qe[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=K.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&K.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));K.push({token:n,fullToken:t});var s=r.run(A,t,R.match,U);if(!s)return{v:new Date(NaN)};H.push(s.setter),A=s.rest}else{if(n.match(Xe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=tt(t)),0!==A.indexOf(t))return{v:new Date(NaN)};A=A.slice(t.length)}};for(V.s();!(F=V.n()).done;){var q=W();if("object"===Object(r.a)(q))return q.v}}catch(e){V.e(e)}finally{V.f()}if(A.length>0&&$e.test(A))return new Date(NaN);var G=H.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return H.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Q=Object(c.default)(n);if(isNaN(Q.getTime()))return new Date(NaN);var Z,J=Object(s.a)(Q,Object(p.a)(Q)),$={},X=i(G);try{for(X.s();!(Z=X.n()).done;){var ee=Z.value;if(!ee.validate(J,U))return new Date(NaN);var te=ee.set(J,$,U);Array.isArray(te)?(J=te[0],u($,te[1])):J=te}}catch(e){X.e(e)}finally{X.f()}return J}function tt(e){return e.match(Ze)[1].replace(Je,"'")}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return A}));var r=n(123),o=n(96),i=n(3),a=n(1);var s=n(103),c=n(95),u=n(102),l=n(64);function p(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var f={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return p("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p(n+1,2)},d:function(e,t){return p(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p(e.getUTCHours(),t.length)},m:function(e,t){return p(e.getUTCMinutes(),t.length)},s:function(e,t){return p(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return p(Math.floor(r*Math.pow(10,n-3)),t.length)}},d="midnight",h="noon",m="morning",g="afternoon",y="evening",v="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+p(i,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):_(e,t)}function _(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+p(Math.floor(o/60),2)+n+p(o%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return f.y(e,t)},Y:function(e,t,n,r){var o=Object(l.a)(e,r),i=o>0?o:1-o;return"YY"===t?p(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):p(i,t.length)},R:function(e,t){return p(Object(c.a)(e),t.length)},u:function(e,t){return p(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Object(u.a)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):p(o,t.length)},I:function(e,t,n){var r=Object(s.a)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.d(e,t)},D:function(e,t,n){var r=function(e){Object(a.a)(1,arguments);var t=Object(i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return p(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?h:0===o?d:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?y:o>=12?g:o>=4?m:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.s(e,t)},S:function(e,t){return f.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return w(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return p(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return p((r._originalDate||e).getTime(),t.length)}},S=n(79),E=n(45),k=n(46),C=n(12),j=n(32),M=n(100),x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,I=/''/g,N=/[a-zA-Z]/;function A(e,t,n){var s,c,u,l,p,f,d,h,m,g,y,v,b,w,_,T,I,A;Object(a.a)(2,arguments);var P=String(t),R=Object(j.a)(),z=null!==(s=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:R.locale)&&void 0!==s?s:M.a,B=Object(C.a)(null!==(u=null!==(l=null!==(p=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(d=n.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==p?p:R.firstWeekContainsDate)&&void 0!==l?l:null===(m=R.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==u?u:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Object(C.a)(null!==(y=null!==(v=null!==(b=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(_=n.locale)||void 0===_||null===(T=_.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==b?b:R.weekStartsOn)&&void 0!==v?v:null===(I=R.locale)||void 0===I||null===(A=I.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==y?y:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var U=Object(i.default)(e);if(!Object(r.default)(U))throw new RangeError("Invalid time value");var H=Object(E.a)(U),Y=Object(o.a)(U,H),K={firstWeekContainsDate:B,weekStartsOn:F,locale:z,_originalDate:U},V=P.match(D).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,S.a[t])(e,z.formatLong):e})).join("").match(x).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return L(r);var i=O[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!Object(k.b)(r)||Object(k.c)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Object(k.a)(r)||Object(k.c)(r,t,String(e)),i(Y,r,z.localize,K);if(o.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return V}function L(e){var t=e.match(T);return t?t[1].replace(I,"'"):e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Popper",(function(){return x})),n.d(t,"placements",(function(){return M})),n.d(t,"Manager",(function(){return _})),n.d(t,"Reference",(function(){return N}));var r=n(129),o=n.n(r),i=n(19),a=n.n(i),s=n(57),c=n.n(s),u=n(6),l=n.n(u),p=n(11),f=n.n(p),d=n(205),h=n.n(d),m=n(0),g=n(135),y=n(136),v=n.n(y),b=v()(),w=v()(),_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"referenceNode",void 0),f()(l()(l()(t)),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return m.createElement(b.Provider,{value:this.referenceNode},m.createElement(w.Provider,{value:this.setReferenceNode},this.props.children))},t}(m.Component),O=function(e){return Array.isArray(e)?e[0]:e},S=function(e){if("function"==typeof 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 e.apply(void 0,n)}},E=function(e,t){if("function"==typeof e)return S(e,t);null!=e&&(e.current=t)},k={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},C={},j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"state",{data:void 0,placement:void 0}),f()(l()(l()(t)),"popperInstance",void 0),f()(l()(l()(t)),"popperNode",null),f()(l()(l()(t)),"arrowNode",null),f()(l()(l()(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(E(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),f()(l()(l()(t)),"setArrowNode",(function(e){t.arrowNode=e})),f()(l()(l()(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),f()(l()(l()(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),f()(l()(l()(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):k})),f()(l()(l()(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),f()(l()(l()(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:C})),f()(l()(l()(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),f()(l()(l()(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),f()(l()(l()(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=l()(l()(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new g.a(n,e,t.getOptions()))})),f()(l()(l()(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}c()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&h()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){E(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return O(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(m.Component);f()(j,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var M=g.a.placements;function x(e){var t=e.referenceElement,n=o()(e,["referenceElement"]);return m.createElement(b.Consumer,null,(function(e){return m.createElement(j,a()({referenceElement:void 0!==t?t:e},n))}))}var D=n(130),T=n.n(D),I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"refHandler",(function(e){E(t.props.innerRef,e),S(t.props.setReferenceNode,e)})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){E(this.props.innerRef,null)},n.render=function(){return T()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),O(this.props.children)({ref:this.refHandler})},t}(m.Component);function N(e){return m.createElement(w.Consumer,null,(function(t){return m.createElement(I,a()({setReferenceNode:t},e))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var r=n(3),o=n(66),i=n(1);function a(e){return Object(i.a)(1,arguments),Object(o.default)(e,{weekStartsOn:1})}function s(e){Object(i.a)(1,arguments);var t=Object(r.default)(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=a(o),c=new Date(0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);var u=a(c);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function c(e){Object(i.a)(1,arguments);var t=s(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=a(n);return r}function u(e){Object(i.a)(1,arguments);var t=Object(r.default)(e),n=a(t).getTime()-c(t).getTime();return Math.round(n/6048e5)+1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(5),o=n(31),i=n(26),a=n(133);function s(e,t){return t?Object.keys(e).reduce((function(n,o){var i,a;return n[o]=(i=e[o],(a=t[o])?Object(r.a)(Object(r.a)(Object(r.a)({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=Object(r.a)(Object(r.a)({},i[t]),a[t]||{}),e}),{})):i),n}),Object(r.a)({},e)):e}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var u=function(){function e(t,n,o,u){var l,p=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=p.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===a.a.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Object(a.b)(p.ast,p.locales,p.formatters,p.formats,e,void 0,p.message)},this.resolvedOptions=function(){return{locale:p.resolvedLocale.toString()}},this.getAst=function(){return p.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==u?void 0:u.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,o),this.formatters=u&&u.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.number),strategy:i.b.variadic}),getDateTimeFormat:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.dateTime),strategy:i.b.variadic}),getPluralRules:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.pluralRules),strategy:i.b.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=o.m,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(0),o=n(60);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(null==e)return{};var n,r,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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=0,u=Object(r.memo)((function(e){var t=e.children,n=i(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[l]||(i[l]=Object(o.b)(e,t,n,r));return i[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(s(e,["children"])),2),a=n[0],u=n[1];return r.useEffect((function(){return u&&c++,function(){u&&(0===--c&&(p()[l]=null))}}),[]),r.createElement(o.a.Provider,{value:a},t)}));u.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function p(){return void 0!==e?e:window}}).call(this,n(42))}])}));
70
+ ========================================================= */o=[n(232)],void 0===(i="function"==typeof(r=function(e){var t;return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(e){var t=Array.prototype.slice;function n(){}!function(e){if(e){var r="undefined"==typeof console?n:function(e){console.error(e)};e.bridget=function(n,o){!function(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}(o),function(n,o){e.fn[n]=function(i){if("string"==typeof i){for(var a=t.call(arguments,1),s=0,c=this.length;s<c;s++){var u=this[s],l=e.data(u,n);if(l)if(e.isFunction(l[i])&&"_"!==i.charAt(0)){var p=l[i].apply(l,a);if(void 0!==p&&p!==l)return p}else r("no such method '"+i+"' for "+n+" instance");else r("cannot call methods on "+n+" prior to initialization; attempted to call '"+i+"'")}return this}var f=this.map((function(){var t=e.data(this,n);return t?(t.option(i),t._init()):(t=new o(this,i),e.data(this,n,t)),e(this)}));return 1===f.length?f[0]:f}}(n,o)},e.bridget}}(e)}(e),function(e){var n=void 0,r=function(e){return"Invalid input value '"+e+"' passed in"},o={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,s=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],s=this.options.ticks_positions[c];break}t=r+(e-a)/(s-a)*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return o.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,o=0,i=0;i<this.options.ticks.length;i++)if(e<=this.options.ticks[i]){t=i>0?this.options.ticks[i-1]:0,r=i>0?this.options.ticks_positions[i-1]:0,n=this.options.ticks[i],o=this.options.ticks_positions[i];break}if(i>0)return r+(e-t)/(n-t)*(o-r)}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,o.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};function i(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n=n||{};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty("min"),a=n.hasOwnProperty("max"),s=0;s<r.length;s++){var c=r[s],u=n[c];u=null!==(u=void 0!==u?u:p(this.element,c))?u:this.defaultOptions[c],this.options||(this.options={}),this.options[c]=u}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var l=window.getComputedStyle(this.element);this.options.rtl=null!=l?"rtl"===l.direction:"rtl"===this.element.style.direction}function p(e,t){var n="data-slider-"+t.replace(/_/g,"-"),r=e.getAttribute(n);try{return JSON.parse(r)}catch(e){return r}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var f,d,h,m,g,y=this.element.style.width,v=!1,b=this.element.parentNode;if(this.sliderElem)v=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var w=document.createElement("div");w.className="slider-track",(d=document.createElement("div")).className="slider-track-low",(f=document.createElement("div")).className="slider-selection",(h=document.createElement("div")).className="slider-track-high",(m=document.createElement("div")).className="slider-handle min-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),(g=document.createElement("div")).className="slider-handle max-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),w.appendChild(d),w.appendChild(f),w.appendChild(h),this.rangeHighlightElements=[];var _=this.options.rangeHighlights;if(Array.isArray(_)&&_.length>0)for(var O=0;O<_.length;O++){var S=document.createElement("div"),E=_[O].class||"";S.className="slider-rangeHighlight slider-selection "+E,this.rangeHighlightElements.push(S),w.appendChild(S)}var k=Array.isArray(this.options.labelledby);if(k&&this.options.labelledby[0]&&m.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&g.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(m.setAttribute("aria-labelledby",this.options.labelledby),g.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",s=0;s<this.options.ticks.length;s++){var C=document.createElement("div");if(C.className="slider-tick",this.options.ticks_tooltip){var j=this._addTickListener(),M=j.addMouseEnter(this,C,s),x=j.addMouseLeave(this,C);this.ticksCallbackMap[s]={mouseEnter:M,mouseLeave:x}}this.ticks.push(C),this.ticksContainer.appendChild(C)}f.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",s=0;s<this.options.ticks_labels.length;s++){var D=document.createElement("div"),T=0===this.options.ticks_positions.length,I=this.options.reversed&&T?this.options.ticks_labels.length-(s+1):s;D.className="slider-tick-label",D.innerHTML=this.options.ticks_labels[I],this.tickLabels.push(D),this.tickLabelContainer.appendChild(D)}var N=function(e){var t=document.createElement("div");t.className="tooltip-arrow";var n=document.createElement("div");n.className="tooltip-inner",e.appendChild(t),e.appendChild(n)},A=document.createElement("div");A.className="tooltip tooltip-main",A.setAttribute("role","presentation"),N(A);var L=document.createElement("div");L.className="tooltip tooltip-min",L.setAttribute("role","presentation"),N(L);var P=document.createElement("div");P.className="tooltip tooltip-max",P.setAttribute("role","presentation"),N(P),this.sliderElem.appendChild(w),this.sliderElem.appendChild(A),this.sliderElem.appendChild(L),this.sliderElem.appendChild(P),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(m),this.sliderElem.appendChild(g),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),o[this.options.scale]&&(this.options.scale=o[this.options.scale]),!0===v&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach((function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)}),this),[this.handle1,this.handle2].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top"),this._removeClass(e,"right"),this._removeClass(e,"left"),this._removeClass(e,"top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=y,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=d||this.trackLow,this.trackSelection=f||this.trackSelection,this.trackHigh=h||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=m||this.handle1,this.handle2=g||this.handle2,!0===v)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),s=0;s<this.ticks.length;s++)this._removeClass(this.ticks[s],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),s=0;s<this.ticks.length;s++)this._addClass(this.ticks[s],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var R=this._addTickListener(),z=R.addMouseEnter(this,this.handle1),B=R.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:z,mouseLeave:B},z=R.addMouseEnter(this,this.handle2),B=R.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:z,mouseLeave:B}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(t=function(e,t){return i.call(this,e,t),this}).prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+" : "+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||(e=0);var r=this.getValue();this._state.value=this._validateInputValue(e);var o=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=o(this._state.value[0]),this._state.value[1]=o(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=o(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var i=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(i),!0===t&&this._trigger("slide",i),(Array.isArray(i)?r[0]!==i[0]||r[1]!==i[1]:r!==i)&&!0===n&&this._trigger("change",{oldValue:r,newValue:i}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),e&&(this._unbindJQueryEventHandlers(),"slider"===n&&this.$element.removeData(n),this.$element.removeData("bootstrapSlider"))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(t){var r=this.getValue();return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),t&&!0===t.useCurrentValue&&this.setValue(r),e&&("slider"===n?(e.data(this.element,"slider",this),e.data(this.element,"bootstrapSlider",this)):e.data(this.element,"bootstrapSlider",this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName("slider-tick"),t=0;t<e.length;t++)e[t].removeEventListener("mouseenter",this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener("mouseleave",this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(e,t){void 0===this.eventToCallbackMap[e]&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in")),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=o(e||this._state,this.options.reversed);function o(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),o=t===e.handle1?r.value[0]:r.value[1],i=void 0;void 0!==n?(o=e.options.ticks[n],i=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])):i=e._toPercentage(o),r.value[0]=o,r.percentage[0]=i,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var e,t,n;if(e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=e[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute("aria-valuetext",t):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=e[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute("aria-valuetext",t):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var r=0;r<this.options.rangeHighlights.length;r++){var o=this._toPercentage(this.options.rangeHighlights[r].start),i=this._toPercentage(this.options.rangeHighlights[r].end);if(this.options.reversed){var a=100-i;i=100-o,o=a}var s=this._createHighlightRange(o,i);s?"vertical"===this.options.orientation?(this.rangeHighlightElements[r].style.top=s.start+"%",this.rangeHighlightElements[r].style.height=s.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=s.start+"%":this.rangeHighlightElements[r].style.left=s.start+"%",this.rangeHighlightElements[r].style.width=s.size+"%"):this.rangeHighlightElements[r].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var c,u="vertical"===this.options.orientation?"height":"width";c="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var p=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[c]=-l/2+"px"),p=this.tickLabelContainer.offsetHeight;else for(f=0;f<this.tickLabelContainer.childNodes.length;f++)this.tickLabelContainer.childNodes[f].offsetHeight>p&&(p=this.tickLabelContainer.childNodes[f].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=p+"px")}for(var f=0;f<this.options.ticks.length;f++){var d=this.options.ticks_positions[f]||this._toPercentage(this.options.ticks[f]);this.options.reversed&&(d=100-d),this.ticks[f].style[this.stylePos]=d+"%",this._removeClass(this.ticks[f],"in-selection"),this.options.range?d>=e[0]&&d<=e[1]&&this._addClass(this.ticks[f],"in-selection"):("after"===this.options.selection&&d>=e[0]||"before"===this.options.selection&&d<=e[0])&&this._addClass(this.ticks[f],"in-selection"),this.tickLabels[f]&&(this.tickLabels[f].style[u]=l+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[f]?(this.tickLabels[f].style.position="absolute",this.tickLabels[f].style[this.stylePos]=d+"%",this.tickLabels[f].style[c]=-l/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[f].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[f].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[f],"label-in-selection label-is-selection"),this.options.range?d>=e[0]&&d<=e[1]&&(this._addClass(this.tickLabels[f],"label-in-selection"),(d===e[0]||e[1])&&this._addClass(this.tickLabels[f],"label-is-selection")):(("after"===this.options.selection&&d>=e[0]||"before"===this.options.selection&&d<=e[0])&&this._addClass(this.tickLabels[f],"label-in-selection"),d===e[0]&&this._addClass(this.tickLabels[f],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+"%";var h=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,h);var m=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,m),this.tooltip_min.style[this.stylePos]=e[0]+"%",this.tooltip_max.style[this.stylePos]=e[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=e[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(e[0],e[1])+"%",this.trackSelection.style.top=Math.min(e[0],e[1])+"%",this.trackSelection.style.height=Math.abs(e[0]-e[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(e[0],e[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(e[0],e[1])+"%":this.trackSelection.style.left=Math.min(e[0],e[1])+"%",this.trackSelection.style.width=Math.abs(e[0]-e[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";var g=this.tooltip_min.getBoundingClientRect(),y=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?g.right>y.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):g.right>y.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var o=this._calculateValue();return this._trigger("slideStart",o),this.setValue(o,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){0===e&&this.handle1.focus(),1===e&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1}if(n){if(this.options.natural_arrow_keys){var r="horizontal"===this.options.orientation,o="vertical"===this.options.orientation,i=this.options.rtl,a=this.options.reversed;r?i?a||(n=-n):a&&(n=-n):o&&(a||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;-1===(c=this.options.ticks.indexOf(this._state.value[e]))&&(c=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(u);var l=this._state.keyCtrl?this._state.value[0]:s,p=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,l)),Math.max(this.options.min,Math.min(this.options.max,p))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger("slideStart",s),this.setValue(s,!0,!0),this._trigger("slideStop",s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){void 0!==e.changedTouches&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger("slideStop",n),this._state.dragged=null,!1},_setValues:function(e,t){var n=0===e?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){!this.touchCapable||"touchstart"!==e.type&&"touchmove"!==e.type&&"touchend"!==e.type||(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(isNaN(+e)){if(Array.isArray(e))return this._validateArray(e),e;throw new Error(r(e))}return+e},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("number"!=typeof n)throw new Error(r(n))}},_setDataVal:function(e){this.element.setAttribute("data-value",e),this.element.setAttribute("value",e),this.element.value=e},_trigger:function(t,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var o=0;o<r.length;o++)(0,r[o])(n);e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)},_removeClass:function(e,t){for(var n=t.split(" "),r=e.className,o=0;o<n.length;o++){var i=n[o],a=new RegExp("(?:\\s|^)"+i+"(?:\\s|$)");r=r.replace(a," ")}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(" "),r=e.className,o=0;o<n.length;o++){var i=n[o];new RegExp("(?:\\s|^)"+i+"(?:\\s|$)").test(r)||(r+=" "+i)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,"BODY"!==e.tagName&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var o=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}));t.style[o]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var t,n="left"===(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";e.forEach(function(e){this._addClass(e,t),e.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?e.forEach(function(e){this._addClass(e,"bottom"),e.style.top="22px"}.bind(this)):e.forEach(function(e){this._addClass(e,"top"),e.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var o=Math.abs(e-this.options.ticks[r]);o<t&&(t=o,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),n="bootstrapSlider"):(e.bridget("slider",t),n="slider"),e.bridget("bootstrapSlider",t),e((function(){e("input[data-provide=slider]")[n]()})))}(e),t})?r.apply(t,o):r)||(e.exports=i)},function(e,t){e.exports=null},function(e,t,n){var r=n(148),o=n(234);n(149);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,s=t.safeAttrValue;return o(e,(function(e,t,o,c,u){var l=n[o],p=!1;if(!0===l?p=l:"function"==typeof l?p=l(c):l instanceof RegExp&&(p=l.test(c)),!0!==p&&(p=!1),c=s(o,c)){var f,d={position:t,sourcePosition:e,source:u,isWhite:p};return p?i(f=r(o,c,d))?o+":"+c:f:i(f=a(o,c,d))?void 0:f}}))},e.exports=a},function(e,t,n){var r=n(149);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(e.slice(i,a)),c=n.indexOf(":");if(-1!==c){var u=r.trim(n.slice(0,c)),l=r.trim(n.slice(c+1));if(u){var p=t(i,s.length,u,l,n);p&&(s+=p+"; ")}}}i=a+1}for(;a<n;a++){var u=e[a];if("/"===u&&"*"===e[a+1]){var l=e.indexOf("*/",a+2);if(-1===l)break;i=(a=l+1)+1,o=!1}else"("===u?o=!0:")"===u?o=!1:";"===u?o||c():"\n"===u&&c()}return r.trim(s)}},function(e,t,n){var r=n(105).FilterCSS,o=n(147),i=n(150),a=i.parseTag,s=i.parseAttr,c=n(106);function u(e){return null==e}function l(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=o.whiteList,e.onTag=e.onTag||o.onTag,e.onTagAttr=e.onTagAttr||o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||o.safeAttrValue,e.escapeHtml=e.escapeHtml||o.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}l.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,p=t.onIgnoreTagAttr,f=t.safeAttrValue,d=t.escapeHtml,h=this.cssFilter;t.stripBlankChar&&(e=o.stripBlankChar(e)),t.allowCommentTag||(e=o.stripCommentTag(e));var m=!1;t.stripIgnoreTagBody&&(m=o.StripTagBody(t.stripIgnoreTagBody,i),i=m.onIgnoreTag);var g=a(e,(function(e,t,o,a,m){var g={sourcePosition:e,position:t,isClosing:m,isWhite:Object.prototype.hasOwnProperty.call(n,o)},y=r(o,a,g);if(!u(y))return y;if(g.isWhite){if(g.isClosing)return"</"+o+">";var v=function(e){var t=c.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=c.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=c.trim(e.slice(0,-1))),{html:e,closing:n}}(a),b=n[o],w=s(v.html,(function(e,t){var n=-1!==c.indexOf(b,e),r=l(o,e,t,n);return u(r)?n?(t=f(o,e,t,h))?e+'="'+t+'"':e:u(r=p(o,e,t,n))?void 0:r:r}));return a="<"+o,w&&(a+=" "+w),v.closing&&(a+=" /"),a+=">"}return u(y=i(o,a,g))?d(a):y}),d);return m&&(g=m.remove(g)),g},e.exports=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(125),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(126),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(75),o=n(1),i=n(12);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(127),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(76),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(128),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getSeconds();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMinutes();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getHours();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getDay();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getDate();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMonth();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){return Object(o.a)(1,arguments),Object(r.default)(e).getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getTime();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setSeconds(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setMinutes(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return n.setHours(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(12),o=n(3),i=n(132),a=n(1);function s(e,t){Object(a.a)(2,arguments);var n=Object(o.default)(e),s=Object(r.a)(t),c=Math.floor(n.getMonth()/3)+1,u=s-c;return Object(i.default)(n,n.getMonth()+3*u)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(12),o=n(3),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(r.a)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(28),o=n(3),i=n(1);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==Object(r.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(o.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(28),o=n(3),i=n(1);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==Object(r.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(o.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(45),o=n(59),i=n(1);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),a=Object(o.default)(t),s=n.getTime()-Object(r.a)(n),c=a.getTime()-Object(r.a)(a);return Math.round((s-c)/864e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t),a=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth();return 12*a+s}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(66),o=n(45),i=n(1);function a(e,t,n){Object(i.a)(2,arguments);var a=Object(r.default)(e,n),s=Object(r.default)(t,n),c=a.getTime()-Object(o.a)(a),u=s.getTime()-Object(o.a)(s);return Math.round((c-u)/6048e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()-i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e);return t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(32),o=n(3),i=n(12),a=n(1);function s(e,t){var n,s,c,u,l,p,f,d;Object(a.a)(1,arguments);var h=Object(r.a)(),m=Object(i.a)(null!==(n=null!==(s=null!==(c=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t||null===(l=t.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==s?s:null===(f=h.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Object(o.default)(e),y=g.getDay(),v=6+(y<m?-7:0)-(y-m);return g.setDate(g.getDate()+v),g.setHours(23,59,59,999),g}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e){Object(o.a)(1,arguments);var t=Object(r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(59),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getFullYear()===i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(97),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()>i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e),i=Object(r.default)(t);return n.getTime()<i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(3),o=n(1);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.default)(e).getTime(),i=Object(r.default)(t.start).getTime(),a=Object(r.default)(t.end).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return n>=i&&n<=a}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(49),o=n(1),i=n(12);function a(e,t){var n;Object(o.a)(1,arguments);var r=Object(i.a)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=p(e);if(s.date){var c=f(s.date,r);a=d(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,l=a.getTime(),h=0;if(s.time&&(h=m(s.time),isNaN(h)))return new Date(NaN);if(!s.timezone){var g=new Date(l+h),v=new Date(0);return v.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),v.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),v}return u=y(s.timezone),isNaN(u)?new Date(NaN):new Date(l+h+u)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=s.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function f(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function d(e,t){if(null===t)return new Date(NaN);var n=e.match(c);if(!n)return new Date(NaN);var r=!!n[4],o=h(n[1]),i=h(n[2])-1,a=h(n[3]),s=h(n[4]),u=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(v[t]||(b(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,o)?(l.setUTCFullYear(t,i,Math.max(o,a)),l):new Date(NaN)}function h(e){return e?parseInt(e):1}function m(e){var t=e.match(u);if(!t)return NaN;var n=g(t[1]),o=g(t[2]),i=g(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i)?n*r.a+o*r.b+1e3*i:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function y(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(o*r.a+i*r.b):NaN}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400==0||e%4==0&&e%100!=0}},function(e,t,n){"use strict";n.r(t),n.d(t,"IGNORE_CLASS_NAME",(function(){return h}));var r=n(0),o=n(27);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var c,u,l=(void 0===c&&(c=0),function(){return++c}),p={},f={},d=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n={};return-1!==d.indexOf(t)&&u&&(n.passive=!e.props.preventDefault),n}t.default=function(e,t){var n,c,d=e.displayName||e.name||"Component";return c=n=function(n){var c,h;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!f[r._uid]){void 0===u&&(u=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),f[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),p[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,p[r._uid],m(a(r),e))}))}},r.disableOnClickOutside=function(){delete f[r._uid];var e=p[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(a(r),t))})),delete p[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}h=n,(c=g).prototype=Object.create(h.prototype),c.prototype.constructor=c,i(c,h);var y=g.prototype;return y.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},y.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},y.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},y.componentWillUnmount=function(){this.disableOnClickOutside()},y.render=function(){var t=this.props;t.excludeScrollbar;var n=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,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},c}},function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(152),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(c)for(var v=function(e){if("undefined"==typeof window||!d)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(e,l[b])||f.push(l[b]);return f}}e.exports=r},function(e,t,n){"use strict";var r=n(107)(),o=n(154)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(153);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,a=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(o.call(arguments)))},c=Math.max(0,t.length-a.length),u=[],l=0;l<c;l++)u.push("$"+l);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n}},function(e,t,n){"use strict";var r=n(109);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(70),o=n(110),i=n(155),a=n(156),s=n(285),c=o(a(),Object);r(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=n(108)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,n){"use strict";var r=n(156),o=n(70);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,n){"use strict";var r,o,i,a,s=n(154),c=n(107)();if(c){r=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),i={};var u=function(){throw i};a={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var l=s("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===l(e)}},function(e,t,n){"use strict";var r=n(70),o=n(110),i=n(157),a=n(158),s=n(289),c=o(a());r(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=function(){return"string"==typeof function(){}.name},o=Object.getOwnPropertyDescriptor;if(o)try{o([],"length")}catch(e){o=null}r.functionsHaveConfigurableNames=function(){if(!r()||!o)return!1;var e=o((function(){}),"name");return!!e&&!!e.configurable};var i=Function.prototype.bind;r.boundFunctionsHaveNames=function(){return r()&&"function"==typeof i&&""!==function(){}.bind().name},e.exports=r},function(e,t,n){"use strict";var r=n(70).supportsDescriptors,o=n(158),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!r||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(u),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(107)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(a(r),a(n(23))),i=a(n(292));a(n(130));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,p="__create-react-context-"+(0,i.default)()+"__",f=function(e){function n(){var t,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=c(this,e.call.apply(e,[this].concat(i))),r.emitter=l(r.props.value),c(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):1073741823,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[p]=o.default.object.isRequired,n);var d=function(t){function n(){var e,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=c(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},c(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((a={})[p]=o.default.object,a),{Provider:f,Consumer:d}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(42))},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(71),a=n(38),s=n(52),c=n(39),u=n(33),l=n(24),p=n(43),f=n(50),d=n(20),h=n(309),m=f("draft_tree_data_support"),g=m?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(o,s,"backward"),f=c.getSelectionAfter(),d=u.splitBlock(c,f),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),w=a.create({entity:t}),_={key:p(),type:"atomic",text:n,characterList:y(v(w,n.length))},O={key:p(),type:"unstyled"};m&&(_=r({},_,{nextSibling:O.key}),O=r({},O,{prevSibling:_.key}));var S=[new g(_),new g(O)],E=i.createFromArray(S),k=u.replaceWithFragment(b,h,E),C=k.merge({selectionBefore:s,selectionAfter:k.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,t,s,r)}else{var c=u.removeRange(i,n,"backward"),p=c.getSelectionAfter(),f=c.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())o=h(c,t,f,"before");else if(p.getEndOffset()===f.getLength())o=h(c,t,f,"after");else{var d=u.splitBlock(c,p),m=d.getSelectionAfter(),g=d.getBlockForKey(m.getFocusKey());o=h(d,t,g,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,y,"move-block")}};e.exports=b},function(e,t,n){"use strict";var r=n(38),o=n(20).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var p,f=e.getCharacterList();o<a;)p=f.get(o),f=f.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:a.merge(p),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,n){"use strict";var r=n(297),o=n(20);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(e,t){var o=t===a?s:0,i=t===c?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},function(e,t,n){"use strict";var r=n(299),o=n(300),i=n(21);function a(e,t,n,a,s,c,u){var l=n.getStartOffset(),p=n.getEndOffset(),f=e.__get(s).getMutability(),d=u?l:p;if("MUTABLE"===f)return n;var h=o(t,s).filter((function(e){return d<=e.end&&d>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});c||(u?p=m.end:l=m.start);var g=r.getRemovalRange(l,p,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var p=a(e,t,l,o,c,!1,!0),f=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var p=r+n.length,f=c===r,d=u===p;return(!f&&d||f&&!d)&&("forward"===o?u!==p&&u++:c!==r&&c--),{start:c,end:u}}}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},function(e,t,n){"use strict";var r=n(71),o=n(39),i=n(20),a=n(161),s=n(21),c=n(159),u=i.List,l=function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),u=c.getText(),l=c.getCharacterList(),p=o,f=i+r.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=c.getType();u&&"unstyled"===h&&(h=r.getType());var m=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},p=function(e,t,n,i,a,s){var c=n.first()instanceof o,l=[],p=i.size,f=n.get(a),d=i.first(),h=i.last(),m=h.getLength(),g=h.getKey(),y=c&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,p-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)}));var v=r.createFromArray(l);return c&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],u(d))}}))}(v,0,f,d)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})};e.exports=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var i=e.getBlockMap(),a=c(n),u=t.getStartKey(),f=t.getStartOffset(),d=i.get(u);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1)),1===a.size?l(e,t,i,a.first(),u,f,r):p(e,t,i,a,u,f)}},function(e,t,n){"use strict";var r=n(20),o=n(161),i=n(21),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),p=c.get(u),f=p.getText(),d=p.merge({text:f.slice(0,l)+n+f.slice(l,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,d),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},function(e,t,n){"use strict";var r=n(39),o=n(163),i=n(20),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},p=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),c(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:l(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var p=a?e.get(a):null,f=p?p.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:f})}))})),null!=f){var d=e.get(f);s(f,i,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},f=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),d=t.getEndOffset(),h=i.get(s),m=i.get(l),g=h instanceof r,y=[];if(g){var v=m.getChildKeys(),b=c(l,i);m.getNextSiblingKey()&&(y=y.concat(b)),v.isEmpty()||(y=y.concat(b.concat([l]))),y=y.concat(c(o(m,i),i))}n=h===m?f(h.getCharacterList(),u,d):h.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(d));var w=h.merge({text:h.getText().slice(0,u)+m.getText().slice(d),characterList:n}),_=g&&0===u&&0===d&&m.getParentKey()===s&&null==m.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).filter((function(e,t){return-1===y.indexOf(t)})).concat(a([[l,null]])).map((function(e,t){return t===s?w:null})),O=i.merge(_).filter((function(e){return!!e}));return g&&h!==m&&(O=p(O,h,m,i)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(39),o=n(43),i=n(20),a=n(21),s=n(162),c=i.List,u=i.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=p.getCharacterList(),g=o(),y=p instanceof r,v=p.merge({text:f.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:f.slice(h),characterList:m.slice(h),data:u()}),w=i.toSeq().takeUntil((function(e){return e===p})),_=i.toSeq().skipUntil((function(e){return e===p})).rest(),O=w.concat([[n,v],[g,b]],_).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),O=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(O,v,b)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(72),i=n(164),a=n(20),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},p=u({start:null,end:null}),f=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new f({start:0,end:0,decoratorKey:null,leaves:s.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(c(null,r)),u=t.getCharacterList();return o(a,m,l,(function(e,t){i.push(new f({start:e,end:t,decoratorKey:a.get(e),leaves:h(u.slice(e,t).toList(),e)}))})),s(i)},fromJS:function(e){var t=e.leaves,n=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}(e,["leaves"]);return new f(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map((function(e){return p(e)})):null}))}};function h(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return o(r,m,l,(function(e,r){n.push(new p({start:e+t,end:r+t}))})),s(n)}function m(e,t){return e===t}e.exports=d},function(e,t,n){"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},function(e,t,n){"use strict";var r,o=n(308),i=n(20),a=n(34),s=i.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=s(n.keySeq().zip(c));return null!=t&&i.is(t,u)?t:u}};e.exports=c},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(112),i=n(84),a=n(21),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},function(e,t,n){"use strict";var r=n(39),o=n(163),i=n(20),a=n(21),s=i.OrderedMap,c=i.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),l=t.getParentKey(),p=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,m=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(f,e,(function(e){return e.merge({nextSibling:p})})),u(p,e,(function(e){return e.merge({prevSibling:f})})),u(h,e,(function(e){return e.merge({prevSibling:a})})),u(m,e,(function(e){return e.merge({nextSibling:a})})),u(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),u(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:d})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=t.getKey();u===c&&a(!1);var p=e.getBlockMap(),f=t instanceof r,d=[t],h=p.delete(u);f&&(d=[],h=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),o=t===u,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){d.push(t),e.delete(t.getKey())}))})));var m=h.toSeq().takeUntil((function(e){return e===n})),g=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=d.map((function(e){return[e.getKey(),e]})),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=m.concat([].concat(y,[[c,n]]),g).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=m.concat([[c,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:l(v,t,n,i,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},function(e,t,n){"use strict";var r=n(20).List,o=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},function(e,t,n){"use strict";(function(t){var r=n(54);function o(){return(o=r||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)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(113),l=n(167),p=n(312),f=n(320),d=n(337),h=n(340),m=n(375),g=n(376),y=n(179),v=n(24),b=n(0),w=n(116),_=n(88),O=n(35),S=n(53),E=n(43),k=n(195),C=n(89),j=n(50),M=n(21),x=n(73),D=n(34),T=O.isBrowser("IE"),I=!T,N={edit:h,composite:p,drag:d,cut:null,render:null},A=!1,L=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),P=function(e){function n(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=_.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;x(o)||M(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(t,t.getSelection()))}})),s(a(n),"blur",(function(){var e=n.editor;e&&(x(e)||M(!1),e.blur())})),s(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},N.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},N,{edit:s});n._handler=c[e]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(a(n),"setClipboard",(function(e){n._clipboard=e})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}c(n,e);var r=n.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(m?m((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(g,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,p=e.readOnly,d=e.textAlignment,h=e.textDirectionality,m=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),g=this.props.role||"textbox",y="combobox"===g?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:m},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:p?null:g,spellCheck:I&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(L,{editor:this,editorState:c}),b.createElement(f,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!A&&j("draft_ods_enabled")&&(A=!0,y.initODS()),this.setMode("edit"),T&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):t.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:k,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=P}).call(this,n(42))},function(e,t,n){"use strict";var r=n(313),o=n(33),i=n(47),a=n(24),s=n(87),c=n(35),u=n(170),l=n(172),p=n(173),f=n(114),d=n(34),h=c.isBrowser("IE"),m=!1,g=!1,y=null;var v={onCompositionStart:function(e){g=!0,function(e){y||(y=new r(l(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout((function(){m||v.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=d(y).stopAndFlushMutations();y=null,m=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,p=n.getBlockTree(c).getIn([u,"leaves",l]),d=p.start,h=p.end,m=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),g=f(r,m),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=p(n,l(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,r,"insert-characters"))}else e.update(n)}}};e.exports=v},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(35),i=n(85),a=n(169),s=n(20),c=n(21),u=n(34),l=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=l();var n=a(e);n.MutationObserver&&!f?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return f?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},function(e,t,n){"use strict";var r=n(315),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),c=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(s.browser.version),u={browserArchitecture:s.cpu.architecture||o,browserFullVersion:s.browser.version||o,browserMinorVersion:c.minor||o,browserName:s.browser.name||o,browserVersion:s.browser.major||o,deviceName:s.device.model||o,engineName:s.engine.name||o,engineVersion:s.engine.version||o,platformArchitecture:s.cpu.architecture||o,platformName:(a=s.os.name,i[a]||a||o),platformVersion:s.os.version||o,platformFullVersion:s.os.version||o};e.exports=u},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",c="type",u="vendor",l="version",p="mobile",f="tablet",d="smarttv",h=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},m=function(e,t){return"string"==typeof e&&-1!==g(t).indexOf(g(e))},g=function(e){return e.toLowerCase()},y=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,""),void 0===t?e:e.substring(0,350)},v=function(e,t){for(var n,r,o,i,a,s,c=0;c<t.length&&!a;){var u=t[c],l=t[c+1];for(n=r=0;n<u.length&&!a&&u[n];)if(a=u[n++].exec(e))for(o=0;o<l.length;o++)s=a[++r],"object"==typeof(i=l[o])&&i.length>0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3===i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4===i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},b=function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(m(t[n][r],e))return"?"===n?void 0:n}else if(m(t[n],e))return"?"===n?void 0:n;return e},w={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},_={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,b,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[s,l],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",g]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",g]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",g]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,"Samsung"],[c,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,"Samsung"],[c,p]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[u,"Apple"],[c,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,f]],[/(macintosh);/i],[a,[u,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,p]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,p]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,"OPPO"],[c,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,p]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,"Motorola"],[c,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,p]],[/(pixel c)\b/i],[a,[u,"Google"],[c,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,p]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[c,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,p]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,p]],[/(nexus 9)/i],[a,[u,"HTC"],[c,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,p]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,f]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,p]],[/(u304aa)/i],[a,[u,"AT&T"],[c,p]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,p]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,f]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,f]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,f]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,f]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,f]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,p]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,p]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,f]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,f]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,p]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,f]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,f]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,f]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,f]],[/(sprint) (\w+)/i],[u,a,[c,p]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,p]],[/smart-tv.+(samsung)/i],[u,[c,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[c,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,d]],[/(apple) ?tv/i],[u,[a,"Apple TV"],[c,d]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[c,d]],[/droid.+aft(\w)( bui|\))/i],[a,[u,"Amazon"],[c,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,"Sharp"],[c,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,"Sony"],[c,d]],[/(mitv-\w{5}) bui/i],[a,[u,"Xiaomi"],[c,d]],[/Hbbtv.*(technisat) (.*);/i],[u,a,[c,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,y],[a,y],[c,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,d]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,"console"]],[/droid.+; (shield) bui/i],[a,[u,"Nvidia"],[c,"console"]],[/(playstation [345portablevi]+)/i],[a,[u,"Sony"],[c,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,"Microsoft"],[c,"console"]],[/((pebble))app/i],[u,a,[c,"wearable"]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[u,"Apple"],[c,"wearable"]],[/droid.+; (glass) \d/i],[a,[u,"Google"],[c,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,"Zebra"],[c,"wearable"]],[/(quest( 2| pro)?)/i],[a,[u,"Facebook"],[c,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,"embedded"]],[/(aeobc)\b/i],[a,[u,"Amazon"],[c,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,f]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,p]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,b,w]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,b,w]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,"Chromium OS"],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,l]]},O=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof O))return new O(e,t).getResult();var n=void 0!==o&&o.navigator?o.navigator:void 0,r=e||(n&&n.userAgent?n.userAgent:""),i=n&&n.userAgentData?n.userAgentData:void 0,u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(_,t):_,d=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[s]=void 0,t[l]=void 0,v.call(t,r,u.browser),t.major="string"==typeof(e=t[l])?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&n&&n.brave&&"function"==typeof n.brave.isBrave&&(t[s]="Brave"),t},this.getCPU=function(){var e={architecture:void 0};return v.call(e,r,u.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return v.call(e,r,u.device),d&&!e[c]&&i&&i.mobile&&(e[c]=p),d&&"Macintosh"==e[a]&&n&&void 0!==n.standalone&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[a]="iPad",e[c]=f),e},this.getEngine=function(){var e={name:void 0,version:void 0};return v.call(e,r,u.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return v.call(e,r,u.os),d&&!e[s]&&i&&"Unknown"!=i.platform&&(e[s]=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"==typeof e&&e.length>350?y(e,350):e,this},this.setUA(r),this};O.VERSION="0.7.35",O.BROWSER=h([s,l,"major"]),O.CPU=h(["architecture"]),O.DEVICE=h([a,u,c,"console",p,d,f,"wearable","embedded"]),O.ENGINE=O.OS=h([s,l]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=O),t.UAParser=O):n(316)?void 0===(r=function(){return O}.call(t,n,t,e))||(e.exports=r):void 0!==o&&(o.UAParser=O);var S=void 0!==o&&(o.jQuery||o.Zepto);if(S&&!S.ua){var E=new O;S.ua=E.getResult(),S.ua.get=function(){return E.getUA()},S.ua.set=function(e){E.setUA(e);var t=E.getResult();for(var n in t)S.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(21),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return m(o)&&m(i)||r(!1),l(">="+o,t)&&l("<="+i,t)}(e=n[0].trim(),t)}function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=d(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return p(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return f(r,s);case">":return function(e,t){return 1===b(e,t)}(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return f(e,n)&&p(e,r)}(r,s);default:return function(e,t){return 0===b(e,t)}(r,s)}}function p(e,t){return-1===b(e,t)}function f(e,t){var n=b(e,t);return 1===n||0===n}function d(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function m(e){return!d(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?v(o,i):v(e,t)}function v(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=y(r[i],o[i]);if(a)return a}return 0}var w={contains:function(e,t){return u(e.trim(),t.trim())}};e.exports=w},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}},function(e,t,n){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){"use strict";var r=n(50)("draft_tree_data_support");e.exports=n(r?321:335)},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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 i=n(322),a=n(47),s=n(0),c=n(34),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,p=e.editorState,f=e.editorKey,d=e.textDirectionality,h=p.getCurrentContent(),m=p.getSelection(),g=p.mustForceSelection(),y=p.getDecorator(),v=c(p.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var _=w.getKey(),O={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:f,editorState:p,forceSelection:g,selection:m,block:w,direction:d||v.get(_),tree:p.getBlockTree(_)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:_},O)),wrapperTemplate:S,key:_,offsetKey:a.encode(_,0,0)});var E=w.getNextSiblingKey();w=E?h.getBlockForKey(E):null}for(var k=[],C=0;C<b.length;){var j=b[C];if(j.wrapperTemplate){var M=[];do{M.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===j.wrapperTemplate);var x=s.cloneElement(j.wrapperTemplate,{key:j.key+"-wrap","data-offset-key":j.offsetKey},M);k.push(x)}else k.push(j.block),C++}return s.createElement("div",{"data-contents":"true"},k)},r}(s.Component);e.exports=u},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(323),u=n(47),l=n(0),p=n(116),f=n(88),d=n(181),h=n(89),m=n(182),g=n(20),y=n(21),v=n(73),b=(g.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),w=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},_=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},O=function(e,t,n,r,o,i){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},c=r(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},S=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(i(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",l.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var g=r.prototype;return g.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection;return i||a},g.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{v(n)||y(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&p.setTop(o,p.getTop(o)+r+10)}}}},g.render=function(){var e=this,t=this.props,n=t.block,i=t.blockRenderMap,s=t.blockRendererFn,p=t.blockStyleFn,f=t.contentState,d=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,v=t.direction,S=t.forceSelection,E=t.selection,k=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var o=u.encode(n,0,0),c=f.getBlockForKey(n),d=_(c,s),g=d.CustomComponent||r,y=w(c,i),v=y.Element,b=y.wrapperTemplate,S=O(c,h,o,p,d,null),E=a({},e.props,{tree:m.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(l.createElement(v,S,l.createElement(g,E))),!b||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.reverse()[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var p=s.value;if(p.type!==t)break;r.push(p)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(l.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":u.encode(d,0,0)},f))}(b,v,t),t}),[]));var j=n.getKey(),M=u.encode(j,0,0),x=_(n,s),D=x.CustomComponent,T=null!=D?l.createElement(D,o({},this.props,{tree:m.getBlockTree(j),blockProps:x.customProps,offsetKey:M,block:n})):l.createElement(c,{block:n,children:C,contentState:f,customStyleFn:g,customStyleMap:y,decorator:d,direction:v,forceSelection:S,hasSelection:b(E,j),selection:E,tree:k});if(n.getParentKey())return T;var I=w(n,i).Element,N=O(n,h,M,p,x,this.wrapperRef);return l.createElement(I,N,T)},r}(l.Component);e.exports=S},function(e,t,n){"use strict";var r=n(324),o=n(177),i=n(47),a=n(20),s=n(0),c=n(53),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,p=e.direction,f=e.forceSelection,d=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),y=t.getText(),v=m.size-1,b=this.props.children||m.map((function(e,c){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,_=b.map((function(e,n){var r=i.encode(g,c,n),l=e.get("start"),p=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:l,selection:d?h:null,forceSelection:f,text:y.slice(l,p),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:m===v&&n===w})})).toArray();return m&&l?s.createElement(r,{block:t,children:_,contentState:n,decorator:l,decoratorKey:m,direction:p,leafSet:e,text:y,key:c}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(g,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));e.exports=u},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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 i=n(47),a=n(0),s=n(112),c=n(84),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,l=e.decoratorKey,p=e.direction,f=e.leafSet,d=e.text,h=t.getKey(),m=f.get("leaves"),g=u.getComponentForKey(l),y=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(m.first().get("start"),m.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),p);return a.createElement(g,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(f.get("start")),offsetKey:v}),n)},r}(a.Component);e.exports=u},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(0),a=n(35),s=n(21),c=n(55),u=a.isBrowser("IE <= 11");var l=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e=this;return""===this.props.children?this._forceFlag?function(e){return u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})}((function(t){return e._node=t})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);e.exports=l},function(e,t,n){"use strict";var r=n(179),o=n(171),i=n(35),a=n(115),s=n(180),c=n(86),u=n(21),l=n(55),p=i.isBrowser("IE");function f(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return c(t).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,s=0;s<a.length;s++)i.appendChild(e(a[s],n));return i}(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return f(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function h(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function m(e,t,n,r){var i=s();if(e.extend&&null!=t&&a(i,t)){n>h(t)&&o.logSelectionStateFailure({anonymizedDom:d(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:d(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,n),e.addRange(u.cloneRange())}}function g(e,t,n,i){var a=c(t).createRange();if(n>h(t)&&(o.logSelectionStateFailure({anonymizedDom:d(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),p)try{e.addRange(a)}catch(e){0}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),p=e.getFocusKey(),f=e.getFocusOffset(),d=e.getIsBackward();if(!s.extend&&d){var h=u,y=l;u=p,l=f,p=h,f=y,d=!1}var v=u===n&&r<=l&&o>=l,b=p===n&&r<=f&&o>=f;if(v&&b)return s.removeAllRanges(),g(s,t,l-r,e),void m(s,t,f-r,e);if(d){if(b&&(s.removeAllRanges(),g(s,t,f-r,e)),v){var w=s.focusNode,_=s.focusOffset;s.removeAllRanges(),g(s,t,l-r,e),m(s,w,_,e)}}else v&&(s.removeAllRanges(),g(s,t,l-r,e)),b&&m(s,t,f-r,e)}},addFocusToSelection:m}},function(e,t,n){"use strict";var r=n(328);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(330),o=n(331);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},function(e,t,n){"use strict";var r=/-(.)/g;e.exports=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(115);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";var r=n(54);function o(){return(o=r||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)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(183),c=n(47),u=n(0),l=n(53),p=n(336),f=n(34),d=function(e,t,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),_=h.getDecorator(),O=f(h.getDirectionMap()),S=v.getBlocksAsArray(),E=[],k=null,C=null,j=0;j<S.length;j++){var M=S[j],x=M.getKey(),D=M.getType(),T=n(M),I=void 0,N=void 0,A=void 0;T&&(I=T.component,N=T.props,A=T.editable);var L=y||O.get(x),P=c.encode(x,0,0),R={contentState:v,block:M,blockProps:N,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:_,direction:L,forceSelection:w,offsetKey:P,preventScroll:g,selection:b,tree:h.getBlockTree(x)},z=t.get(D)||t.get("unstyled"),B=z.wrapper,F=z.element||t.get("unstyled").element,U=M.getDepth(),H="";if(r&&(H=r(M)),"li"===F)H=p(H,d(D,U,C!==B||null===k||U>k,L));var Y=I||s,K={className:H,"data-block":!0,"data-editor":m,"data-offset-key":P,key:x};void 0!==A&&(K=i({},K,{contentEditable:A,suppressContentEditableWarning:!0}));var V=u.createElement(F,K,u.createElement(Y,o({},R,{key:x})));E.push({block:V,wrapperTemplate:B,key:x,offsetKey:P}),k=B?M.getDepth():null,C=B}for(var W=[],q=0;q<E.length;){var G=E[q];if(G.wrapperTemplate){var Q=[];do{Q.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===G.wrapperTemplate);var Z=u.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Q);W.push(Z)}else W.push(G.block),q++}return u.createElement("div",{"data-contents":"true"},W)},r}(u.Component);e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},function(e,t,n){"use strict";var r=n(184),o=n(33),i=n(24),a=n(85),s=n(86),c=n(186),u=n(175),l=n(169),p=n(90),f=n(34);var d={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),l=e._latestEditorState,d=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=f(n),r=f(r);var c=f(a(n));return u(t,c,r,c,r)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&p(e.props.handleDroppedFiles(d,g)))return;c(g,(function(t){t&&e.update(m(l,d,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&p(e.props.handleDrop(d,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(l,d)):e.update(m(l,d,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},function(e,t,n){"use strict";var r=n(21);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},function(e,t,n){"use strict";var r=n(35),o=n(341),i=n(345),a=n(346),s=n(347),c=n(348),u=n(350),l=n(351),p=n(352),f=n(353),d=n(354),h=n(368),m=n(170),g=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=g||y?m:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:p,onInput:f,onKeyDown:d,onPaste:h,onSelect:m,onMouseUp:v,onKeyUp:v};e.exports=b},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(35),a=n(114),s=n(90),c=n(342),u=n(34),l=n(343),p=i.isBrowser("Firefox");function f(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,g=f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=g.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(y||(m=r,y=p&&("'"==m||"/"==m)),y||(y=u(g.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),y)return t.preventDefault(),g=o.set(g,{forceSelection:!0}),void e.update(g);g=o.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},function(e,t,n){"use strict";(function(t){n(344),e.exports=t.setImmediate}).call(this,n(42))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[c]=o,r(c),c++},f.clearImmediate=d}function d(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(42),n(144))},function(e,t,n){"use strict";var r=n(24),o=n(115),i=n(180);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(c,l))}}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(187);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(88),a=n(187),s=n(89),c=n(349);e.exports=function(e,t){var n,u=e._latestEditorState,l=u.getSelection(),p=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(p)){var f=p;n=s(i.getScrollParent(f))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},function(e,t,n){"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var r=n(24),o=n(35);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},function(e,t,n){"use strict";var r=n(33),o=n(47),i=n(24),a=n(35),s=n(176).notEmptyKey,c=n(85),u=n(188),l=n(34),p=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,f=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==a&&h.removeChild(m)}var g=a.textContent,y=e._latestEditorState,v=l(c(a)),b=o.decode(v),w=b.blockKey,_=b.decoratorKey,O=b.leafKey,S=y.getBlockTree(w).getIn([_,"leaves",O]),E=S.start,k=S.end,C=y.getCurrentContent(),j=C.getBlockForKey(w),M=j.getText().slice(E,k);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==M){var x,D,T,I,N=y.getSelection(),A=N.merge({anchorOffset:E,focusOffset:k,isBackward:!1}),L=j.getEntityAt(E),P=s(L)?C.getEntity(L):null,R="MUTABLE"===(null!=P?P.getMutability():null),z=R?"spellcheck-change":"apply-entity",B=r.replaceText(C,A,g,j.getInlineStyleAt(E),R?j.getEntityAt(E):null);if(p)x=n.anchorOffset,D=n.focusOffset,I=(T=E+Math.min(x,D))+Math.abs(x-D),x=T,D=I;else{var F=g.length-M.length;T=N.getStartOffset(),I=N.getEndOffset(),x=f?I+F:T,D=I+F}var U=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:x,focusOffset:D})});e.update(i.push(y,U,z))}else{var H=t.nativeEvent.inputType;if(H){var Y=function(e,t){switch(e){case"deleteContentBackward":return u(t)}return t}(H,y);if(Y!==y)return e.restoreEditorDOM(),void e.update(Y)}}}}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(119),a=n(87),s=n(356),c=n(35),u=n(90),l=n(357),p=n(359),f=n(361),d=n(362),h=n(363),m=n(364),g=n(188),y=n(365),v=n(366),b=n(367),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function c(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:_&&w(t)&&t.preventDefault()}var O=e.props.keyBindingFn(t);if(null!=O&&""!==O)if("undo"!==O){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(O,i,t.timeStamp))){var S=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return f(t);case"backspace":return g(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return l(t,n);case"split-block":return d(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(O,i,t);S!==i&&e.update(S)}}else b(t,i,e.update);else if(n===a.SPACE&&_&&w(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},function(e,t,n){"use strict";var r=n(87);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(81),a=n(34),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var p=t.getKeyAfter(u);if(null==p)return e;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(t,c);var f=r.removeRange(t,c,"forward");return f===t?e:o.push(e,f,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},function(e,t,n){"use strict";var r=n(24),o=n(358),i=n(174),a=n(117),s=n(74);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},function(e,t,n){"use strict";var r=n(56),o=n(86),i=n(189),a=n(21);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(t),u=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),n)&&(u=e.startContainer,l=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var p=u,f=l-1;;){for(var d=p.nodeValue,h=f;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(p,h),!s(i(e),n))break;u=p,l=h}if(-1===h||0===p.childNodes.length)break;f=c(p=p.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";var r=n(190),o=n(24),i=n(117),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(190),o=n(24),i=n(191),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(33),o=n(24);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(24),o=n(56),i=n(191),a=n(74);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(33),o=n(24),i=n(81);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(u,a),f=r.removeRange(u,a,"backward"),d=f.getSelectionAfter(),h=d.getAnchorOffset()-1,m=d.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(f,m,p),y=o.push(e,g,"insert-fragment");return o.acceptSelection(y,s)}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(e,t,n){"use strict";var r=n(71),o=n(38),i=n(184),a=n(33),s=n(369),c=n(24),u=n(194),l=n(114),p=n(186),f=n(90),d=n(374);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(m)))return;return void p(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=d(t),p=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=s.processText(i,p,f),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var _=e.props.formatPastedText(v,b);v=_.text,b=_.html}if(!e.props.handlePastedText||!f(e.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!e.props.stripPastedStyles){var O,S=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(O=b)||void 0===O?void 0:O.indexOf(e.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void e.update(h(e._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,S))return void e.update(h(e._latestEditorState,S));if(b){var E=s.processHTML(b,e.props.blockRenderMap);if(E){var k=E.contentBlocks,C=E.entityMap;if(k){var j=r.createFromArray(k);return void e.update(h(e._latestEditorState,j,C))}}}e.setClipboard(null)}if(y.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),x=u.getCurrentBlockType(w),D=s.processText(y,M,x),T=r.createFromArray(D);e.update(h(e._latestEditorState,T))}}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(52),i=n(39),a=n(192),s=n(43),c=n(193),u=n(50),l=n(20),p=n(166),f=l.List,d=l.Repeat,h=u("draft_tree_data_support"),m=h?i:o,g={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(t,o.length))};if(h&&0!==i){var u=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},c,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new m(c)),e}),[])}};e.exports=g},function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},function(e,t,n){"use strict";var r=n(55);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},function(e,t,n){"use strict";var r=n(55);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},function(e,t,n){"use strict";var r=n(27).unstable_flushControlled;e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(53),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},function(e,t,n){},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(52),i=n(39),a=n(196),s=n(379),c=n(380),u=n(21),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}},p=function(e,t,n,a){if(e instanceof o)n.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},s=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);i[o]||(i[o]=r,n[o]="".concat(s),s++)})),p(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t)}},function(e,t,n){"use strict";var r=n(196),o=n(56).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},function(e,t,n){"use strict";var r=n(56),o=n(72),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(52),a=n(39),s=n(111),c=n(82),u=n(382),l=(n(383),n(83)),p=n(384),f=n(385),d=n(386),h=n(43),m=n(50),g=n(20),y=n(21),v=m("draft_tree_data_support"),b=g.List,w=g.Map,_=g.OrderedMap,O=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(e,t)}},S=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return p(d(n,i||[]),f(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||h()})},k=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},C=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return v?function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(E),c=new a(r({},O(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var u=k([],s,c);u.length>0;){var l=u.pop(),p=l.parentRef,f=p.getChildKeys(),d=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var m=l.children.map(E),g=new a(r({},O(l,t),{parent:p.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(g.getKey(),g),u=k(u,m,g)}return n}),_())}(o,t):function(e,t){return _(e.map((function(e){var n=new i(O(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t)};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})})),n}(e),n=C(e,t),r=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(43),a=n(21),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=r({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,c=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?t.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)})),r({},e,{blocks:t})}};e.exports=c},function(e,t,n){"use strict";n(118);var r={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}};e.exports=r},function(e,t,n){"use strict";var r=n(38),o=n(20).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},function(e,t,n){"use strict";var r=n(56).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},function(e,t,n){"use strict";var r=n(56),o=n(20).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},function(e,t,n){"use strict";var r=n(388);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},function(e,t,n){"use strict";var r=n(189);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Collection",(function(){return v})),n.d(t,"Iterable",(function(){return pr})),n.d(t,"List",(function(){return qt})),n.d(t,"Map",(function(){return Et})),n.d(t,"OrderedMap",(function(){return cn})),n.d(t,"OrderedSet",(function(){return qn})),n.d(t,"PairSorting",(function(){return $n})),n.d(t,"Range",(function(){return Dn})),n.d(t,"Record",(function(){return Xn})),n.d(t,"Repeat",(function(){return ar})),n.d(t,"Seq",(function(){return z})),n.d(t,"Set",(function(){return Sn})),n.d(t,"Stack",(function(){return dn})),n.d(t,"fromJS",(function(){return sr})),n.d(t,"get",(function(){return Qe})),n.d(t,"getIn",(function(){return Tn})),n.d(t,"has",(function(){return Ge})),n.d(t,"hasIn",(function(){return Nn})),n.d(t,"hash",(function(){return re})),n.d(t,"is",(function(){return X})),n.d(t,"isAssociative",(function(){return y})),n.d(t,"isCollection",(function(){return h})),n.d(t,"isImmutable",(function(){return E})),n.d(t,"isIndexed",(function(){return g})),n.d(t,"isKeyed",(function(){return m})),n.d(t,"isList",(function(){return Wt})),n.d(t,"isMap",(function(){return Z})),n.d(t,"isOrdered",(function(){return C})),n.d(t,"isOrderedMap",(function(){return J})),n.d(t,"isOrderedSet",(function(){return bn})),n.d(t,"isPlainObject",(function(){return Ve})),n.d(t,"isRecord",(function(){return S})),n.d(t,"isSeq",(function(){return O})),n.d(t,"isSet",(function(){return vn})),n.d(t,"isStack",(function(){return fn})),n.d(t,"isValueObject",(function(){return $})),n.d(t,"merge",(function(){return lt})),n.d(t,"mergeDeep",(function(){return ft})),n.d(t,"mergeDeepWith",(function(){return dt})),n.d(t,"mergeWith",(function(){return pt})),n.d(t,"remove",(function(){return Je})),n.d(t,"removeIn",(function(){return nt})),n.d(t,"set",(function(){return $e})),n.d(t,"setIn",(function(){return et})),n.d(t,"update",(function(){return ot})),n.d(t,"updateIn",(function(){return Xe})),n.d(t,"version",(function(){return ur}));var r={};function o(e){e&&(e.value=!0)}function i(){}function a(e){return void 0===e.size&&(e.size=e.__iterate(c)),e.size}function s(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?a(e)+t:t}function c(){return!0}function u(e,t,n){return(0===e&&!d(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function l(e,t){return f(e,t,0)}function p(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:d(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function d(e){return e<0||0===e&&1/e==-1/0}function h(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function m(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function g(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function y(e){return m(e)||g(e)}var v=function(e){return h(e)?e:z(e)},b=function(e){function t(e){return m(e)?e:B(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),w=function(e){function t(e){return g(e)?e:F(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),_=function(e){function t(e){return h(e)&&!y(e)?e:U(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v);v.Keyed=b,v.Indexed=w,v.Set=_;function O(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function S(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function E(e){return h(e)||S(e)}var k="@@__IMMUTABLE_ORDERED__@@";function C(e){return Boolean(e&&e[k])}var j="function"==typeof Symbol&&Symbol.iterator,M=j||"@@iterator",x=function(e){this.next=e};function D(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function T(){return{value:void 0,done:!0}}function I(e){return!!Array.isArray(e)||!!L(e)}function N(e){return e&&"function"==typeof e.next}function A(e){var t=L(e);return t&&t.call(e)}function L(e){var t=e&&(j&&e[j]||e["@@iterator"]);if("function"==typeof t)return t}x.prototype.toString=function(){return"[Iterator]"},x.KEYS=0,x.VALUES=1,x.ENTRIES=2,x.prototype.inspect=x.prototype.toSource=function(){return this.toString()},x.prototype[M]=function(){return this};var P=Object.prototype.hasOwnProperty;function R(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var z=function(e){function t(e){return null==e?W():E(e)?e.toSeq():function(e){var t=Q(e);if(t)return(r=L(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=L(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new Y(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return D(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(v),B=function(e){function t(e){return null==e?W().toKeyedSeq():h(e)?m(e)?e.toSeq():e.fromEntrySeq():S(e)?e.toSeq():q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(z),F=function(e){function t(e){return null==e?W():h(e)?m(e)?e.entrySeq():e.toIndexedSeq():S(e)?e.toSeq().entrySeq():G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(z),U=function(e){function t(e){return(h(e)&&!y(e)?e:F(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(z);z.isSeq=O,z.Keyed=B,z.Set=U,z.Indexed=F,z.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var H=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return D(e,i,n[i])}))},t}(F),Y=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return P.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new x((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return D(e,a,n[a])}))},t}(B);Y.prototype[k]=!0;var K,V=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=A(this._collection),r=0;if(N(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=A(this._collection);if(!N(n))return new x(T);var r=0;return new x((function(){var t=n.next();return t.done?t:D(e,r++,t.value)}))},t}(F);function W(){return K||(K=new H([]))}function q(e){var t=Q(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new Y(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function G(e){var t=Q(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Q(e){return R(e)?new H(e):I(e)?new V(e):void 0}function Z(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function J(e){return Z(e)&&C(e)}function $(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function X(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!($(e)&&$(t)&&e.equals(t))}var ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function te(e){return e>>>1&1073741824|3221225471&e}var ne=Object.prototype.valueOf;function re(e){if(null==e)return oe(e);if("function"==typeof e.hashCode)return te(e.hashCode(e));var t,n=(t=e).valueOf!==ne&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return oe(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return te(t)}(n);case"string":return n.length>he?function(e){var t=ye[e];void 0===t&&(t=ie(e),ge===me&&(ge=0,ye={}),ge++,ye[e]=t);return t}(n):ie(n);case"object":case"function":return function(e){var t;if(le&&void 0!==(t=ue.get(e)))return t;if(void 0!==(t=e[de]))return t;if(!se){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[de]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ce(),le)ue.set(e,t);else{if(void 0!==ae&&!1===ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(se)Object.defineProperty(e,de,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[de]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[de]=t}}return t}(n);case"symbol":return function(e){var t=pe[e];if(void 0!==t)return t;return t=ce(),pe[e]=t,t}(n);default:if("function"==typeof n.toString)return ie(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function oe(e){return null===e?1108378658:1108378659}function ie(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return te(t)}var ae=Object.isExtensible,se=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ce(){var e=++fe;return 1073741824&fe&&(fe=0),e}var ue,le="function"==typeof WeakMap;le&&(ue=new WeakMap);var pe=Object.create(null),fe=0,de="__immutablehash__";"function"==typeof Symbol&&(de=Symbol(de));var he=16,me=255,ge=0,ye={},ve=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Ee(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Se(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(B);ve.prototype[k]=!0;var be=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&a(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&a(this),new x((function(){var i=r.next();return i.done?i:D(e,t?n.size-++o:o++,i.value,i)}))},t}(F),we=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new x((function(){var t=n.next();return t.done?t:D(e,t.value,t.value,t)}))},t}(U),_e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Le(t);var r=h(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new x((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Le(r);var o=h(r);return D(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(B);function Oe(e){var t=Re(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ze,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new x((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Se(e,t,n){var o=Re(e);return o.size=e.size,o.has=function(t){return e.has(t)},o.get=function(o,i){var a=e.get(o,r);return a===r?i:t.call(n,a,o,e)},o.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},o.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new x((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return D(r,s,t.call(n,a[1],s,e),o)}))},o}function Ee(e,t){var n=this,r=Re(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Oe(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=ze,r.__iterate=function(n,r){var o=this,i=0;return r&&a(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&a(e);var s=e.__iterator(2,!o);return new x((function(){var e=s.next();if(e.done)return e;var a=e.value;return D(r,t?a[0]:o?n.size-++i:i++,a[1],e)}))},r}function ke(e,t,n,o){var i=Re(e);return o&&(i.has=function(o){var i=e.get(o,r);return i!==r&&!!t.call(n,i,o,e)},i.get=function(o,i){var a=e.get(o,r);return a!==r&&t.call(n,a,o,e)?a:i}),i.__iterateUncached=function(r,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,r(e,o?i:s-1,a)}),i),s},i.__iteratorUncached=function(r,i){var a=e.__iterator(2,i),s=0;return new x((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return D(r,o?u:s++,l,i)}}))},i}function Ce(e,t,n,r){var o=e.size;if(u(t,n,o))return e;var i=l(t,o),a=p(n,o);if(i!=i||a!=a)return Ce(e.toSeq().cacheResult(),t,n,r);var c,f=a-i;f==f&&(c=f<0?0:f);var d=Re(e);return d.size=0===c?c:e.size&&c||void 0,!r&&O(e)&&c>=0&&(d.get=function(t,n){return(t=s(this,t))>=0&&t<c?e.get(t+i,n):n}),d.__iterateUncached=function(t,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==c})),u},d.__iteratorUncached=function(t,n){if(0!==c&&n)return this.cacheResult().__iterator(t,n);if(0===c)return new x(T);var o=e.__iterator(t,n),a=0,s=0;return new x((function(){for(;a++<i;)o.next();if(++s>c)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:D(t,s-1,0===t?void 0:e.value[1],e)}))},d}function je(e,t,n,r){var o=Re(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new x((function(){var e,i,l;do{if((e=s.next()).done)return r||1===o?e:D(o,u++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],l=p[1],c&&(c=t.call(n,l,i,a))}while(c);return 2===o?e:D(o,i,l,e)}))},o}function Me(e,t){var n=m(e),r=[e].concat(t).map((function(e){return h(e)?n&&(e=b(e)):e=n?q(e):G(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&m(o)||g(e)&&g(o))return o}var i=new H(r);return n?i=i.toKeyedSeq():g(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}function xe(e,t,n){var r=Re(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(c,u){c.__iterate((function(i,c){return(!t||u<t)&&h(i)?e(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new x((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(a.length<t)||!h(c))return n?e:D(r,s++,c,e);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function De(e,t,n){t||(t=Be);var r=m(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?B(i):g(e)?F(i):U(i)}function Te(e,t,n){if(t||(t=Be),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ie(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ie(t,e,n)?n:e}))}function Ie(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ne(e,t,n,r){var o=Re(e),i=new H(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=v(e),A(o?e.reverse():e)})),a=0,s=!1;return new x((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:D(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ae(e,t){return e===t?e:O(e)?t:e.constructor(t)}function Le(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pe(e){return m(e)?b:g(e)?w:_}function Re(e){return Object.create((m(e)?B:g(e)?F:U).prototype)}function ze(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Be(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Fe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function Ue(e,t){if(!e)throw new Error(t)}function He(e){Ue(e!==1/0,"Cannot perform this action with an infinite size.")}function Ye(e){if(R(e)&&"string"!=typeof e)return e;if(C(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}be.prototype.cacheResult=ve.prototype.cacheResult=we.prototype.cacheResult=_e.prototype.cacheResult=ze;var Ke=Object.prototype.toString;function Ve(e){if(!e||"object"!=typeof e||"[object Object]"!==Ke.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function We(e){return"object"==typeof e&&(E(e)||Array.isArray(e)||Ve(e))}function qe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Ge(e,t){return E(e)?e.has(t):We(e)&&P.call(e,t)}function Qe(e,t,n){return E(e)?e.get(t,n):Ge(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function Ze(e){if(Array.isArray(e))return Fe(e);var t={};for(var n in e)P.call(e,n)&&(t[n]=e[n]);return t}function Je(e,t){if(!We(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(E(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!P.call(e,t))return e;var n=Ze(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function $e(e,t,n){if(!We(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(E(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(P.call(e,t)&&n===e[t])return e;var r=Ze(e);return r[t]=n,r}function Xe(e,t,n,o){o||(o=n,n=void 0);var i=function e(t,n,o,i,a,s){var c=n===r;if(i===o.length){var u=c?a:n,l=s(u);return l===u?n:l}if(!c&&!We(n))throw new TypeError("Cannot update within non-data-structure value in path ["+o.slice(0,i).map(qe)+"]: "+n);var p=o[i],f=c?r:Qe(n,p,r),d=e(f===r?t:E(f),f,o,i+1,a,s);return d===f?n:d===r?Je(n,p):$e(c?t?Pt():{}:n,p,d)}(E(e),e,Ye(t),0,n,o);return i===r?n:i}function et(e,t,n){return Xe(e,t,r,(function(){return n}))}function tt(e,t){return et(this,e,t)}function nt(e,t){return Xe(e,t,(function(){return r}))}function rt(e){return nt(this,e)}function ot(e,t,n,r){return Xe(e,[t],n,r)}function it(e,t,n){return 1===arguments.length?e(this):ot(this,e,t,n)}function at(e,t,n){return Xe(this,e,t,n)}function st(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ut(this,e)}function ct(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return ut(this,t,e)}function ut(e,t,n){for(var o=[],i=0;i<t.length;i++){var a=b(t[i]);0!==a.size&&o.push(a)}return 0===o.length?e:0!==e.toSeq().size||e.__ownerID||1!==o.length?e.withMutations((function(e){for(var t=n?function(t,o){ot(e,o,r,(function(e){return e===r?t:n(e,t,o)}))}:function(t,n){e.set(n,t)},i=0;i<o.length;i++)o[i].forEach(t)})):e.constructor(o[0])}function lt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return mt(e,t)}function pt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return mt(t,n,e)}function ft(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ht(e,t)}function dt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ht(t,n,e)}function ht(e,t,n){return mt(e,t,function(e){return function t(n,r,o){return We(n)&&We(r)&&(i=r,a=z(n),s=z(i),g(a)===g(s)&&m(a)===m(s))?mt(n,[r],t):e?e(n,r,o):r;var i,a,s}}(n))}function mt(e,t,n){if(!We(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(E(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?w:b,a=r?function(t){o===e&&(o=Ze(o)),o.push(t)}:function(t,r){var i=P.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=Ze(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function gt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ht(this,e)}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ht(this,t,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Xe(this,e,Pt(),(function(e){return mt(e,t)}))}function bt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Xe(this,e,Pt(),(function(e){return ht(e,t)}))}function wt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function _t(){return this.__ownerID?this:this.__ensureOwner(new i)}function Ot(){return this.__ensureOwner()}function St(){return this.__altered}var Et=function(e){function t(t){return null==t?Pt():Z(t)&&!C(t)?t:Pt().withMutations((function(n){var r=e(t);He(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Pt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Rt(this,e,t)},t.prototype.remove=function(e){return Rt(this,e,r)},t.prototype.deleteAll=function(e){var t=v(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Pt()},t.prototype.sort=function(e){return cn(De(this,e))},t.prototype.sortBy=function(e,t){return cn(De(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new It(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Lt(this.size,this._root,e,this.__hash):0===this.size?Pt():(this.__ownerID=e,this.__altered=!1,this)},t}(b);Et.isMap=Z;var kt=Et.prototype;kt["@@__IMMUTABLE_MAP__@@"]=!0,kt.delete=kt.remove,kt.removeAll=kt.deleteAll,kt.setIn=tt,kt.removeIn=kt.deleteIn=rt,kt.update=it,kt.updateIn=at,kt.merge=kt.concat=st,kt.mergeWith=ct,kt.mergeDeep=gt,kt.mergeDeepWith=yt,kt.mergeIn=vt,kt.mergeDeepIn=bt,kt.withMutations=wt,kt.wasAltered=St,kt.asImmutable=Ot,kt["@@transducer/init"]=kt.asMutable=_t,kt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},kt["@@transducer/result"]=function(e){return e.asImmutable()};var Ct=function(e,t){this.ownerID=e,this.entries=t};Ct.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},Ct.prototype.update=function(e,t,n,a,s,c,u){for(var l=s===r,p=this.entries,f=0,d=p.length;f<d&&!X(a,p[f][0]);f++);var h=f<d;if(h?p[f][1]===s:l)return this;if(o(u),(l||!h)&&o(c),!l||1!==p.length){if(!h&&!l&&p.length>=Yt)return function(e,t,n,r){e||(e=new i);for(var o=new Dt(e,re(n),[n,r]),a=0;a<t.length;a++){var s=t[a];o=o.update(e,0,void 0,s[0],s[1])}return o}(e,p,a,s);var m=e&&e===this.ownerID,g=m?p:Fe(p);return h?l?f===d-1?g.pop():g[f]=g.pop():g[f]=[a,s]:g.push([a,s]),m?(this.entries=g,this):new Ct(e,g)}};var jt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};jt.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Ut(i&o-1)].get(e+5,t,n,r)},jt.prototype.update=function(e,t,n,o,i,a,s){void 0===n&&(n=re(o));var c=31&(0===t?n:n>>>t),u=1<<c,l=this.bitmap,p=0!=(l&u);if(!p&&i===r)return this;var f=Ut(l&u-1),d=this.nodes,h=p?d[f]:void 0,m=zt(h,e,t+5,n,o,i,a,s);if(m===h)return this;if(!p&&m&&d.length>=Kt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Mt(e,i+1,a)}(e,d,l,c,m);if(p&&!m&&2===d.length&&Bt(d[1^f]))return d[1^f];if(p&&m&&1===d.length&&Bt(m))return m;var g=e&&e===this.ownerID,y=p?m?l:l^u:l|u,v=p?m?Ht(d,f,m,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,f,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,f,m,g);return g?(this.bitmap=y,this.nodes=v,this):new jt(e,y,v)};var Mt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Mt.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Mt.prototype.update=function(e,t,n,o,i,a,s){void 0===n&&(n=re(o));var c=31&(0===t?n:n>>>t),u=i===r,l=this.nodes,p=l[c];if(u&&!p)return this;var f=zt(p,e,t+5,n,o,i,a,s);if(f===p)return this;var d=this.count;if(p){if(!f&&--d<Vt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new jt(e,o,a)}(e,l,d,c)}else d++;var h=e&&e===this.ownerID,m=Ht(l,c,f,h);return h?(this.count=d,this.nodes=m,this):new Mt(e,d,m)};var xt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};xt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},xt.prototype.update=function(e,t,n,i,a,s,c){void 0===n&&(n=re(i));var u=a===r;if(n!==this.keyHash)return u?this:(o(c),o(s),Ft(this,e,t,n,[i,a]));for(var l=this.entries,p=0,f=l.length;p<f&&!X(i,l[p][0]);p++);var d=p<f;if(d?l[p][1]===a:u)return this;if(o(c),(u||!d)&&o(s),u&&2===f)return new Dt(e,this.keyHash,l[1^p]);var h=e&&e===this.ownerID,m=h?l:Fe(l);return d?u?p===f-1?m.pop():m[p]=m.pop():m[p]=[i,a]:m.push([i,a]),h?(this.entries=m,this):new xt(e,this.keyHash,m)};var Dt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Dt.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},Dt.prototype.update=function(e,t,n,i,a,s,c){var u=a===r,l=X(i,this.entry[0]);return(l?a===this.entry[1]:u)?this:(o(c),u?void o(s):l?e&&e===this.ownerID?(this.entry[1]=a,this):new Dt(e,this.keyHash,[i,a]):(o(s),Ft(this,e,t,re(i),[i,a])))},Ct.prototype.iterate=xt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},jt.prototype.iterate=Mt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Dt.prototype.iterate=function(e,t){return e(this.entry)};var Tt,It=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&At(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Nt(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Nt(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Nt(e,i.entry);t=this._stack=At(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(x);function Nt(e,t){return D(e,t[0],t[1])}function At(e,t){return{node:e,index:0,__prev:t}}function Lt(e,t,n,r){var o=Object.create(kt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pt(){return Tt||(Tt=Lt(0))}function Rt(e,t,n){var o,i;if(e._root){var a={value:!1},s={value:!1};if(o=zt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;i=e.size+(a.value?n===r?-1:1:0)}else{if(n===r)return e;i=1,o=new Ct(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?Lt(i,o):Pt()}function zt(e,t,n,i,a,s,c,u){return e?e.update(t,n,i,a,s,c,u):s===r?e:(o(u),o(c),new Dt(t,i,[a,s]))}function Bt(e){return e.constructor===Dt||e.constructor===xt}function Ft(e,t,n,r,o){if(e.keyHash===r)return new xt(t,r,[e.entry,o]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n),c=a===s?[Ft(e,t,n+5,r,o)]:(i=new Dt(t,r,o),a<s?[e,i]:[i,e]);return new jt(t,1<<a|1<<s,c)}function Ut(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ht(e,t,n,r){var o=r?e:Fe(e);return o[t]=n,o}var Yt=8,Kt=16,Vt=8;function Wt(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var qt=function(e){function t(t){var n=en();if(null==t)return n;if(Wt(t))return t;var r=e(t),o=r.size;return 0===o?n:(He(o),o>0&&o<32?Xt(0,o,5,null,new Qt(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e<this.size){var n=rn(this,e+=this._origin);return n&&n.array[31&e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=s(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?on(e,t).set(0,n):on(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=an(e._capacity)?r=tn(r,e.__ownerID,0,t,n,i):o=tn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Xt(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):en()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){on(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return on(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){on(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return on(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&I(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return on(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return u(e,t,n)?this:on(this,l(e,n),p(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=$t(this,t);return new x((function(){var o=r();return o===Jt?{value:void 0,done:!0}:D(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=$t(this,t);(n=o())!==Jt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?en():(this.__ownerID=e,this.__altered=!1,this)},t}(w);qt.isList=Wt;var Gt=qt.prototype;Gt["@@__IMMUTABLE_LIST__@@"]=!0,Gt.delete=Gt.remove,Gt.merge=Gt.concat,Gt.setIn=tt,Gt.deleteIn=Gt.removeIn=rt,Gt.update=it,Gt.updateIn=at,Gt.mergeIn=vt,Gt.mergeDeepIn=bt,Gt.withMutations=wt,Gt.wasAltered=St,Gt.asImmutable=Ot,Gt["@@transducer/init"]=Gt.asMutable=_t,Gt["@@transducer/step"]=function(e,t){return e.push(t)},Gt["@@transducer/result"]=function(e){return e.asImmutable()};var Qt=function(e,t){this.array=e,this.ownerID=t};Qt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new Qt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=nn(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},Qt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=nn(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Zt,Jt={};function $t(e,t){var n=e._origin,r=e._capacity,o=an(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;u>32&&(u=32);return function(){if(c===u)return Jt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);l>32&&(l=32);return function(){for(;;){if(s){var e=s();if(e!==Jt)return e;s=null}if(u===l)return Jt;var n=t?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(e,s,c)}}function Xt(e,t,n,r,o,i,a){var s=Object.create(Gt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function en(){return Zt||(Zt=Xt(0,0,5))}function tn(e,t,n,r,i,a){var s,c=r>>>n&31,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var l=e&&e.array[c],p=tn(l,t,n-5,r,i,a);return p===l?e:((s=nn(e,t)).array[c]=p,s)}return u&&e.array[c]===i?e:(a&&o(a),s=nn(e,t),void 0===i&&c===s.array.length-1?s.array.pop():s.array[c]=i,s)}function nn(e,t){return t&&e&&t===e.ownerID?e:new Qt(e?e.array.slice():[],t)}function rn(e,t){if(t>=an(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function on(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new i,o=e._origin,a=e._capacity,s=o+t,c=void 0===n?a:n<0?a+n:o+n;if(s===o&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,l=e._root,p=0;s+p<0;)l=new Qt(l&&l.array.length?[void 0,l]:[],r),p+=1<<(u+=5);p&&(s+=p,o+=p,c+=p,a+=p);for(var f=an(a),d=an(c);d>=1<<u+5;)l=new Qt(l&&l.array.length?[l]:[],r),u+=5;var h=e._tail,m=d<f?rn(e,c-1):d>f?new Qt([],r):h;if(h&&d>f&&s<a&&h.array.length){for(var g=l=nn(l,r),y=u;y>5;y-=5){var v=f>>>y&31;g=g.array[v]=nn(g.array[v],r)}g.array[f>>>5&31]=h}if(c<a&&(m=m&&m.removeAfter(r,0,c)),s>=d)s-=d,c-=d,u=5,l=null,m=m&&m.removeBefore(r,0,s);else if(s>o||d<f){for(p=0;l;){var b=s>>>u&31;if(b!==d>>>u&31)break;b&&(p+=(1<<u)*b),u-=5,l=l.array[b]}l&&s>o&&(l=l.removeBefore(r,u,s-p)),l&&d<f&&(l=l.removeAfter(r,u,d-p)),p&&(s-=p,c-=p)}return e.__ownerID?(e.size=c-s,e._origin=s,e._capacity=c,e._level=u,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Xt(s,c,u,l,m)}function an(e){return e<32?0:e-1>>>5<<5}var sn,cn=function(e){function t(e){return null==e?ln():J(e)?e:ln().withMutations((function(t){var n=b(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ln()},t.prototype.set=function(e,t){return pn(this,e,t)},t.prototype.remove=function(e){return pn(this,e,r)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?un(t,n,e,this.__hash):0===this.size?ln():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Et);function un(e,t,n,r){var o=Object.create(cn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ln(){return sn||(sn=un(Pt(),en()))}function pn(e,t,n){var o,i,a=e._map,s=e._list,c=a.get(t),u=void 0!==c;if(n===r){if(!u)return e;s.size>=32&&s.size>=2*a.size?(o=(i=s.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=i.__ownerID=e.__ownerID)):(o=a.remove(t),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(n===s.get(c)[1])return e;o=a,i=s.set(c,[t,n])}else o=a.set(t,s.size),i=s.set(s.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=i,e.__hash=void 0,e.__altered=!0,e):un(o,i)}cn.isOrderedMap=J,cn.prototype[k]=!0,cn.prototype.delete=cn.prototype.remove;function fn(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var dn=function(e){function t(e){return null==e?yn():fn(e)?e:yn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=s(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):gn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&fn(t))return t;He(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):gn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):yn()},t.prototype.slice=function(t,n){if(u(t,n,this.size))return this;var r=l(t,this.size);if(p(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):gn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?gn(this.size,this._head,e,this.__hash):0===this.size?yn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new H(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new H(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new x((function(){if(r){var t=r.value;return r=r.next,D(e,n++,t)}return{value:void 0,done:!0}}))},t}(w);dn.isStack=fn;var hn,mn=dn.prototype;function gn(e,t,n,r){var o=Object.create(mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function yn(){return hn||(hn=gn(0))}mn["@@__IMMUTABLE_STACK__@@"]=!0,mn.shift=mn.pop,mn.unshift=mn.push,mn.unshiftAll=mn.pushAll,mn.withMutations=wt,mn.wasAltered=St,mn.asImmutable=Ot,mn["@@transducer/init"]=mn.asMutable=_t,mn["@@transducer/step"]=function(e,t){return e.unshift(t)},mn["@@transducer/result"]=function(e){return e.asImmutable()};function vn(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function bn(e){return vn(e)&&C(e)}function wn(e,t){if(e===t)return!0;if(!h(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||m(e)!==m(t)||g(e)!==g(t)||C(e)!==C(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!y(e);if(C(e)){var o=e.entries();return t.every((function(e,t){var r=o.next().value;return r&&X(r[1],e)&&(n||X(r[0],t))}))&&o.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var s=!0,c=t.__iterate((function(t,o){if(n?!e.has(t):i?!X(t,e.get(o,r)):!X(e.get(o,r),t))return s=!1,!1}));return s&&e.size===c}function _n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function On(e){if(!e||"object"!=typeof e)return e;if(!h(e)){if(!We(e))return e;e=z(e)}if(m(e)){var t={};return e.__iterate((function(e,n){t[n]=On(e)})),t}var n=[];return e.__iterate((function(e){n.push(On(e))})),n}var Sn=function(e){function t(t){return null==t?Mn():vn(t)&&!C(t)?t:Mn().withMutations((function(n){var r=e(t);He(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.intersect=function(e){return(e=v(e).toArray()).length?kn.intersect.apply(t(e.pop()),e):Mn()},t.union=function(e){return(e=v(e).toArray()).length?kn.union.apply(t(e.pop()),e):Mn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Cn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Cn(this,this._map.remove(e))},t.prototype.clear=function(){return Cn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Cn(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return qn(De(this,e))},t.prototype.sortBy=function(e,t){return qn(De(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(_);Sn.isSet=vn;var En,kn=Sn.prototype;function Cn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(kn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Mn(){return En||(En=jn(Pt()))}kn["@@__IMMUTABLE_SET__@@"]=!0,kn.delete=kn.remove,kn.merge=kn.concat=kn.union,kn.withMutations=wt,kn.asImmutable=Ot,kn["@@transducer/init"]=kn.asMutable=_t,kn["@@transducer/step"]=function(e,t){return e.add(t)},kn["@@transducer/result"]=function(e){return e.asImmutable()},kn.__empty=Mn,kn.__make=jn;var xn,Dn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ue(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(xn)return xn;xn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+s(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return u(e,n,this.size)?this:(e=l(e,this.size),(n=p(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new x((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,D(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:wn(this,e)},t}(F);function Tn(e,t,n){for(var o=Ye(t),i=0;i!==o.length;)if((e=Qe(e,o[i++],r))===r)return n;return e}function In(e,t){return Tn(this,e,t)}function Nn(e,t){return Tn(e,t,r)!==r}function An(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}v.isIterable=h,v.isKeyed=m,v.isIndexed=g,v.isAssociative=y,v.isOrdered=C,v.Iterator=x,_n(v,{toArray:function(){He(this.size);var e=new Array(this.size||0),t=m(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new be(this)},toJS:function(){return On(this)},toKeyedSeq:function(){return new ve(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:An,toOrderedMap:function(){return cn(this.toKeyedSeq())},toOrderedSet:function(){return qn(m(this)?this.valueSeq():this)},toSet:function(){return Sn(m(this)?this.valueSeq():this)},toSetSeq:function(){return new we(this)},toSeq:function(){return g(this)?this.toIndexedSeq():m(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return dn(m(this)?this.valueSeq():this)},toList:function(){return qt(m(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ae(this,Me(this,e))},includes:function(e){return this.some((function(t){return X(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Ae(this,ke(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=m(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=Pe(e);return o.map((function(t){return Ae(e,i(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ae(this,Se(this,e,t))},reduce:function(e,t,n){return Bn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Bn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Ae(this,Ee(this,!0))},slice:function(e,t){return Ae(this,Ce(this,e,t,!0))},some:function(e,t){return!this.every(Hn(e),t)},sort:function(e){return Ae(this,De(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return a(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Et().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return wn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new H(e._cache);var t=e.toSeq().map(Un).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Hn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(c,null,e)},flatMap:function(e,t){return Ae(this,function(e,t,n){var r=Pe(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ae(this,xe(this,e,!0))},fromEntrySeq:function(){return new _e(this)},get:function(e,t){return this.find((function(t,n){return X(n,e)}),void 0,t)},getIn:In,groupBy:function(e,t){return function(e,t,n){var r=m(e),o=(C(e)?cn():Et()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Pe(e);return o.map((function(t){return Ae(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,r)!==r},hasIn:function(e){return Nn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:v(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:v(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return X(t,e)}))},keySeq:function(){return this.toSeq().map(Fn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Te(this,e)},maxBy:function(e,t){return Te(this,t,e)},min:function(e){return Te(this,e?Yn(e):Vn)},minBy:function(e,t){return Te(this,t?Yn(t):Vn,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Ae(this,je(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Hn(e),t)},sortBy:function(e,t){return Ae(this,De(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Ae(this,function(e,t,n){var r=Re(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new x((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?2===r?e:D(r,c,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Hn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=C(e),n=m(e),r=t?1:0;return function(e,t){return t=ee(t,3432918353),t=ee(t<<15|t>>>-15,461845907),t=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Wn(re(e),re(t))|0}:function(e,t){r=r+Wn(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0}),r)}(this))}});var Ln=v.prototype;Ln["@@__IMMUTABLE_ITERABLE__@@"]=!0,Ln[M]=Ln.values,Ln.toJSON=Ln.toArray,Ln.__toStringMapper=qe,Ln.inspect=Ln.toSource=function(){return this.toString()},Ln.chain=Ln.flatMap,Ln.contains=Ln.includes,_n(b,{flip:function(){return Ae(this,Oe(this))},mapEntries:function(e,t){var n=this,r=0;return Ae(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ae(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Pn=b.prototype;Pn["@@__IMMUTABLE_KEYED__@@"]=!0,Pn[M]=Ln.entries,Pn.toJSON=An,Pn.__toStringMapper=function(e,t){return qe(t)+": "+qe(e)},_n(w,{toKeyedSeq:function(){return new ve(this,!1)},filter:function(e,t){return Ae(this,ke(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ae(this,Ee(this,!1))},slice:function(e,t){return Ae(this,Ce(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=l(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ae(this,1===n?r:r.concat(Fe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ae(this,xe(this,e,!1))},get:function(e,t){return(e=s(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ae(this,function(e,t){var n=Re(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new x((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?D(n,a++,t):D(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Fe(arguments)),t=Ne(this.toSeq(),F.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ae(this,n)},keySeq:function(){return Dn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Ae(this,je(this,e,t,!1))},zip:function(){var e=[this].concat(Fe(arguments));return Ae(this,Ne(this,Kn,e))},zipAll:function(){var e=[this].concat(Fe(arguments));return Ae(this,Ne(this,Kn,e,!0))},zipWith:function(e){var t=Fe(arguments);return t[0]=this,Ae(this,Ne(this,e,t))}});var Rn=w.prototype;Rn["@@__IMMUTABLE_INDEXED__@@"]=!0,Rn[k]=!0,_n(_,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var zn=_.prototype;function Bn(e,t,n,r,o,i){return He(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Fn(e,t){return t}function Un(e,t){return[t,e]}function Hn(e){return function(){return!e.apply(this,arguments)}}function Yn(e){return function(){return-e.apply(this,arguments)}}function Kn(){return Fe(arguments)}function Vn(e,t){return e<t?1:e>t?-1:0}function Wn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}zn.has=Ln.includes,zn.contains=zn.includes,zn.keys=zn.values,_n(B,Pn),_n(F,Rn),_n(U,zn);var qn=function(e){function t(e){return null==e?Jn():bn(e)?e:Jn().withMutations((function(t){var n=_(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Sn);qn.isOrderedSet=bn;var Gn,Qn=qn.prototype;function Zn(e,t){var n=Object.create(Qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Jn(){return Gn||(Gn=Zn(ln()))}Qn[k]=!0,Qn.zip=Rn.zip,Qn.zipWith=Rn.zipWith,Qn.zipAll=Rn.zipAll,Qn.__empty=Jn,Qn.__make=Zn;var $n={LeftThenRight:-1,RightThenLeft:1};var Xn=function(e,t){var n;!function(e){if(S(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(E(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),c=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u<s.length;u++){var l=s[u];c[l]=u,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+nr(this)+' with property "'+l+'" since that property name is part of the Record API.'):or(o,l)}}return this.__ownerID=void 0,this._values=qt().withMutations((function(e){e.setSize(a._keys.length),b(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(er);return o.constructor=r,t&&(r.displayName=t),r};Xn.prototype.toString=function(){for(var e,t=nr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+qe(this.get(e));return t+" }"},Xn.prototype.equals=function(e){return this===e||S(e)&&rr(this).equals(rr(e))},Xn.prototype.hashCode=function(){return rr(this).hashCode()},Xn.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Xn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Xn.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return tr(this,n)}return this},Xn.prototype.remove=function(e){return this.set(e)},Xn.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:tr(this,e)},Xn.prototype.wasAltered=function(){return this._values.wasAltered()},Xn.prototype.toSeq=function(){return rr(this)},Xn.prototype.toJS=function(){return On(this)},Xn.prototype.entries=function(){return this.__iterator(2)},Xn.prototype.__iterator=function(e,t){return rr(this).__iterator(e,t)},Xn.prototype.__iterate=function(e,t){return rr(this).__iterate(e,t)},Xn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?tr(this,t,e):(this.__ownerID=e,this._values=t,this)},Xn.isRecord=S,Xn.getDescriptiveName=nr;var er=Xn.prototype;function tr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function nr(e){return e.constructor.displayName||e.constructor.name||"Record"}function rr(e){return q(e._keys.map((function(t){return[t,e.get(t)]})))}function or(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ue(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}er["@@__IMMUTABLE_RECORD__@@"]=!0,er.delete=er.remove,er.deleteIn=er.removeIn=rt,er.getIn=In,er.hasIn=Ln.hasIn,er.merge=st,er.mergeWith=ct,er.mergeIn=vt,er.mergeDeep=gt,er.mergeDeepWith=yt,er.mergeDeepIn=bt,er.setIn=tt,er.update=it,er.updateIn=at,er.withMutations=wt,er.asMutable=_t,er.asImmutable=Ot,er[M]=er.entries,er.toJSON=er.toObject=Ln.toObject,er.inspect=er.toSource=function(){return this.toString()};var ir,ar=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(ir)return ir;ir=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return X(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return u(e,n,r)?this:new t(this._value,p(n,r)-l(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return X(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new x((function(){return o===r?{value:void 0,done:!0}:D(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?X(this._value,e._value):wn(e)},t}(F);function sr(e,t){return function e(t,n,r,o,i,a){if("string"!=typeof r&&!E(r)&&(R(r)||I(r)||Ve(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==o&&i.push(o);var s=n.call(a,o,z(r).map((function(o,a){return e(t,n,o,a,i,r)})),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}([],t||cr,e,"",t&&t.length>2?[]:void 0,{"":e})}function cr(e,t){return g(t)?t.toList():m(t)?t.toMap():t.toSet()}var ur="4.3.0",lr={version:ur,Collection:v,Iterable:v,Seq:z,Map:Et,OrderedMap:cn,List:qt,Stack:dn,Set:Sn,OrderedSet:qn,PairSorting:$n,Record:Xn,Range:Dn,Repeat:ar,is:X,fromJS:sr,hash:re,isImmutable:E,isCollection:h,isKeyed:m,isIndexed:g,isAssociative:y,isOrdered:C,isValueObject:$,isPlainObject:Ve,isSeq:O,isList:Wt,isMap:Z,isOrderedMap:J,isStack:fn,isSet:vn,isOrderedSet:bn,isRecord:S,get:Qe,getIn:Tn,has:Ge,hasIn:Nn,merge:lt,mergeDeep:ft,mergeWith:pt,mergeDeepWith:dt,remove:Je,removeIn:nt,set:$e,setIn:et,update:ot,updateIn:Xe},pr=v;t.default=lr},function(e,t,n){"use strict";var r=n(198),o=n(392),i=n(199),a=n(393),s=function(){function e(){this._subscriber=new o,this._currentSubscription=null}var t=e.prototype;return t.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new r(this._subscriber,t,n))},t.once=function(e,t,n){var r=this;return this.addListener(e,(function(){r.removeCurrentListener(),t.apply(n,arguments)}))},t.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},t.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},t.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(a.thatReturnsTrue).map((function(e){return e.listener})):[]},t.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},t.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();e.exports=s},function(e,t,n){"use strict";var r=function(){function e(e){this.subscriber=e}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=r},function(e,t,n){"use strict";var r=n(199),o=function(){function e(){this._subscriptionsForType={},this._currentSubscription=null}var t=e.prototype;return t.addSubscription=function(e,t){t.subscriber!==this&&r(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t},t.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},t.removeSubscription=function(e){var t=e.eventType,n=e.key,r=this._subscriptionsForType[t];r&&delete r[n]},t.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=o},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"ReactFormBuilder",(function(){return xc})),n.d(t,"ReactFormGenerator",(function(){return Dc})),n.d(t,"ElementStore",(function(){return Ge})),n.d(t,"Registry",(function(){return La.a}));var r={};n.r(r),n.d(r,"FILE",(function(){return I})),n.d(r,"URL",(function(){return N})),n.d(r,"TEXT",(function(){return A}));var o=n(19),i=n.n(o),a=n(13),s=n.n(a),c=n(14),u=n.n(c),l=n(6),p=n.n(l),f=n(15),d=n.n(f),h=n(22),m=n.n(h),g=n(17),y=n.n(g),v=n(0),b=n.n(v),w=n(403);function _(e){var t=null;return function(){return null==t&&(t=e()),t}}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&O(t.prototype,n),r&&O(t,r),e}(),E=_((function(){return/firefox/i.test(navigator.userAgent)})),k=_((function(){return Boolean(window.safari)}));function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,c=[],u=[],l=[],p=0;p<r-1;p++)a=t[p+1]-t[p],s=n[p+1]-n[p],u.push(a),c.push(s),l.push(s/a);for(var f=[l[0]],d=0;d<u.length-1;d++){var h=l[d],m=l[d+1];if(h*m<=0)f.push(0);else{a=u[d];var g=u[d+1],y=a+g;f.push(3*y/((y+g)/h+(y+a)/m))}}f.push(l[l.length-1]);for(var v,b=[],w=[],_=0;_<f.length-1;_++){v=l[_];var O=f[_],S=1/u[_],E=O+f[_+1]-v-v;b.push((v-O-E)*S),w.push(E*S*S)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,c=0,u=i.length-1;c<=u;){var l=t[s=Math.floor(.5*(c+u))];if(l<e)c=s+1;else{if(!(l>e))return n[s];u=s-1}}var p=e-t[a=Math.max(0,u)],f=p*p;return n[a]+r[a]*p+o[a]*f+i[a]*p*f}}])&&C(t.prototype,n),r&&C(t,r),e}();function M(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function x(e){return{x:e.clientX,y:e.clientY}}function D(e,t,n,r,o){var i,a,s,c="IMG"===(i=t).nodeName&&(E()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),u=M(c?e:t),l={x:n.x-u.x,y:n.y-u.y},p=e.offsetWidth,f=e.offsetHeight,d=r.anchorX,h=r.anchorY,m=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return k()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,t,p,f),g=m.dragPreviewWidth,y=m.dragPreviewHeight,v=o.offsetX,b=o.offsetY,w=0===b||b;return{x:0===v||v?v:new j([0,.5,1],[l.x,l.x/p*g,l.x+g-p]).interpolate(d),y:w?b:(s=new j([0,.5,1],[l.y,l.y/f*y,l.y+y-f]).interpolate(h),k()&&c&&(s+=(window.devicePixelRatio-1)*y),s)}}var T,I="__NATIVE_FILE__",N="__NATIVE_URL__",A="__NATIVE_TEXT__";function L(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=(P(T={},I,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),P(T,N,{exposeProperties:{urls:function(e,t){return L(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),P(T,A,{exposeProperties:{text:function(e,t){return L(e,t,"")}},matchesTypes:["Text","text/plain"]}),T);function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&z(t.prototype,n),r&&z(t,r),e}();function F(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(R).filter((function(e){return R[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var H=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&U(t.prototype,n),r&&U(t,r),e}();function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=r.sourceNodes.get(e);return t&&M(t)||null},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&r.document&&r.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=x(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=F(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),c=r.sourcePreviewNodes.get(a)||s;if(c){var u=r.getCurrentSourcePreviewNodeOptions(),l=D(s,c,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});o.setDragImage(c,l.x,l.y)}}try{null==o||o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=F(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,E()||r.actions.hover(t,{clientOffset:x(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:x(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem())&&(null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:x(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new H(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new S(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return K({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return K({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new B(R[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&W(t.prototype,n),o&&W(t,o),e}(),G=function(e,t){return new q(e,t)},Q=n(5),Z=n(92),J=n(37),$=n(399),X=n(400),ee=n(18),te=n(31);function ne(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object(Q.a)({timeZone:t},e[r]),n}),{})}function re(e,t){return Object.keys(Object(Q.a)(Object(Q.a)({},e),t)).reduce((function(n,r){return n[r]=Object(Q.a)(Object(Q.a)({},e[r]||{}),t[r]||{}),n}),{})}function oe(e,t){if(!t)return e;var n=X.a.formats;return Object(Q.a)(Object(Q.a)(Object(Q.a)({},n),e),{date:re(ne(n.date,t),ne(e.date||{},t)),time:re(ne(n.time,t),ne(e.time||{},t))})}function ie(e,t,n,r,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,p=e.onError,f=e.timeZone,d=e.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,m=n.defaultMessage;Object($.a)(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===te.a.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!d)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Object(Q.a)(Object(Q.a)({},d),r||{}),a=oe(a,f),u=oe(u,f),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&p(new ee.g(n,i)),m)try{return t.getMessageFormat(m,c,u,o).format(r)}catch(e){return p(new ee.e('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,n,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,Object(Q.a)({formatters:t},o||{})).format(r)}catch(e){p(new ee.e('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,n,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(r)}catch(e){p(new ee.e('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,n,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var ae=n(29),se=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ce(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&Object(ae.e)(o,"number",a,i)||{};return t(r,Object(ae.d)(n,se,s))}function ue(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).format(n)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function le(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).formatToParts(n)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting number.",t))}return[]}var pe=n(61),fe=["numeric","style"];function de(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new pe.b('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',pe.a.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&Object(ae.e)(o,"relative",a,i)||{};return t(r,Object(ae.d)(n,fe,s))}(e,t,o).format(n,r)}catch(t){e.onError(new ee.c("Error formatting relative time.",e.locale,t))}return String(n)}var he=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function me(e,t,n,r){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var c=r.format,u=Object(Q.a)(Object(Q.a)({},s&&{timeZone:s}),c&&Object(ae.e)(i,t,c,a)),l=Object(ae.d)(r,he,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=Object(Q.a)(Object(Q.a)({},l),{hour:"numeric",minute:"numeric"})),n(o,l)}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"date",t,a).format(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"time",t,a).format(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function ve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,p=Object(ae.d)(s,he,c?{timeZone:c}:{});try{return t(u,p).formatRange(o,i)}catch(e){l(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function be(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting date.",t))}return[]}function we(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return me(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new ee.a(ee.b.FORMAT_ERROR,"Error formatting time.",t))}return[]}var _e=["localeMatcher","type"];function Oe(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new pe.b('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,_e);try{return t(o,a).select(n)}catch(e){i(new ee.c("Error formatting plural.",o,e))}return"other"}var Se=["localeMatcher","type","style"],Ee=Date.now();function ke(e,t,n,r){void 0===r&&(r={});var o=Ce(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:o}function Ce(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.ListFormat||i(new pe.b('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,Se);try{var s={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Ee,"_").concat(e,"_").concat(Ee)}(t);return s[n]=e,n}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:Object(Q.a)(Object(Q.a)({},e),{value:s[e.value]||e.value})}))}catch(e){i(new ee.a(ee.b.FORMAT_ERROR,"Error formatting list.",e))}return n}var je=["localeMatcher","style","type","fallback"];function Me(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new pe.b('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',pe.a.MISSING_INTL_API));var a=Object(ae.d)(r,je);try{return t(o,a).of(n)}catch(e){i(new ee.a(ee.b.FORMAT_ERROR,"Error formatting display name.",e))}}function xe(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var De=n(133);function Te(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Ie(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=Object(De.c)(r)?Object(J.b)(r):r,t}),{}):e}var Ne=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Ie(r),s=ie.apply(void 0,Object(Q.d)([e,t,n,a],o,!1));return Array.isArray(s)?v.Children.toArray(s):s},Ae=function(e,t){var n=e.defaultRichTextElements,r=Object(Q.c)(e,["defaultRichTextElements"]),o=Ie(n),i=function(e,t){var n=Object(ae.b)(t),r=Object(Q.a)(Object(Q.a)({},ae.a),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new ee.f('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new ee.f('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new ee.d('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),xe(r),Object(Q.a)(Object(Q.a)({},r),{formatters:n,formatNumber:ue.bind(null,r,n.getNumberFormat),formatNumberToParts:le.bind(null,r,n.getNumberFormat),formatRelativeTime:de.bind(null,r,n.getRelativeTimeFormat),formatDate:ge.bind(null,r,n.getDateTimeFormat),formatDateToParts:be.bind(null,r,n.getDateTimeFormat),formatTime:ye.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ve.bind(null,r,n.getDateTimeFormat),formatTimeToParts:we.bind(null,r,n.getDateTimeFormat),formatPlural:Oe.bind(null,r,n.getPluralRules),formatMessage:ie.bind(null,r,n),$t:ie.bind(null,r,n),formatList:ke.bind(null,r,n.getListFormat),formatListToParts:Ce.bind(null,r,n.getListFormat),formatDisplayName:Me.bind(null,r,n.getDisplayNames)})}(Object(Q.a)(Object(Q.a)(Object(Q.a)({},J.a),r),{defaultRichTextElements:o}),t);return Object(Q.a)(Object(Q.a)({},i),{formatMessage:Ne.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})},Le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Object(ae.c)(),t.state={cache:t.cache,intl:Ae(Te(t.props),t.cache),prevConfig:Te(t.props)},t}return Object(Q.b)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=Te(e);return Object(J.d)(n,o)?null:{intl:Ae(o,r),prevConfig:o}},t.prototype.render=function(){return Object(J.c)(this.state.intl),v.createElement(Z.b,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=J.a,t}(v.PureComponent),Pe=n(120),Re=n.n(Pe),ze=n(11),Be=n.n(ze),Fe=n(200),Ue=n.n(Fe);var He,Ye,Ke,Ve=class{constructor(e){const t=this;t.actions={},t.mutations={},t.state={},t.status="resting",t.callbacks=[],e.hasOwnProperty("actions")&&(t.actions=e.actions),e.hasOwnProperty("mutations")&&(t.mutations=e.mutations),t.state=new Proxy(e.initialState||{},{set:(e,n,r)=>(e[n]=r,t.processCallbacks(t.state),t.status="resting",!0)})}dispatch(e,t){const n=this;return"function"!=typeof n.actions[e]?(console.error(`Action "${e}" doesn't exist.`),!1):(n.status="action",n.actions[e](n,t))}commit(e,t){const n=this;if("function"!=typeof n.mutations[e])return console.error(`Mutation "${e}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[e](n.state,t);return n.state=r,!0}processCallbacks(e){return!!this.callbacks.length&&(this.callbacks.forEach(t=>t(e)),!0)}subscribe(e){return"function"!=typeof e?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(e),!0)}},We=n(121),qe=new Ve({actions:{setData:function(e,t,n){e.commit("setData",t),n&&this.save(t)},load:function(e,t){var n=this,r=t.loadUrl,o=t.saveUrl,i=t.data,a=t.saveAlways;He=o;var s=a||void 0===a;e.commit("setSaveAlways",s),Ke?Ke().then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):r?Object(We.a)(r).then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):this.setData(e,i)},create:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.push(t),this.setData(e,r,o)},delete:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(t),1),this.setData(e,r,o)},deleteLastItem:function(e){var t=e.state.lastItem;t&&(this.delete(e,t),e.commit("setLastItem",null))},resetLastItem:function(e){e.state.lastItem&&e.commit("setLastItem",null)},post:function(e){var t=e.state.data;this.setData(e,t,!0)},updateOrder:function(e,t){var n=e.state.saveAlways,r=t.filter((function(e){return e&&!e.parentId}));t.filter((function(e){return e&&e.parentId})).forEach((function(e){return r.push(e)})),this.setData(e,r,n)},insertItem:function(e,t){e.commit("setLastItem",t.isContainer?null:t)},save:function(e){Ye?Ye({task_data:e}):He&&Object(We.b)(He,{task_data:e})}},mutations:{setData:function(e,t){return e.data=t,e},setSaveAlways:function(e,t){return e.saveAlways=t,e},setLastItem:function(e,t){return e.lastItem=t,e}},initialState:{data:[],saveAlways:!0,lastItem:null}});qe.setExternalHandler=function(e,t){Ke=e,Ye=t};var Ge=qe,Qe=n(91),Ze=n.n(Qe),Je=n(44),$e=n.n(Je),Xe=n(67),et=n.n(Xe),tt=function(e){var t=b.a.useState(null),r=$e()(t,2),o=r[0],i=r[1];if(b.a.useEffect((function(){(function(){var e=Ze()(et.a.mark((function e(){var t;return et.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(1).then(n.bind(null,404));case 2:t=e.sent,i((function(){return t.default}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]),!o)return b.a.createElement("div",null,"Loading...");var a=o;return b.a.createElement(a,e)},nt=n(23),rt=n.n(nt),ot=n(27),it=n.n(ot),at=n(10);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e){return"function"==typeof e}function ut(){}function lt(e){if(!function(e){return"object"===st(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pt(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function ft(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ht(e,t){return"string"==typeof e||"symbol"===dt(e)||!!t&&Array.isArray(e)&&e.every((function(e){return ht(e,!1)}))}function mt(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),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],p=t[u];if(!1===(o=n?n.call(r,l,p,u):void 0)||void 0===o&&l!==p)return!1}return!0}function gt(e,t){"function"==typeof e?e(t):e.current=t}function yt(e,t){var n=e.ref;return Object(at.a)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(v.cloneElement)(e,{ref:function(e){gt(n,e),gt(t,e)}}):Object(v.cloneElement)(e,{ref:t})}function vt(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function bt(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(v.isValidElement)(t)){var r=t;return e(r,n),r}var o=t;vt(o);var i=n?function(t){return e(t,n)}:e;return yt(o,i)}}(r);t[n]=function(){return o}}})),t}function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e){return null!==e&&"object"===wt(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var St=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=bt({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,_t(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!mt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Ot(t.prototype,n),r&&Ot(t,r),e}();function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kt=!1,Ct=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(at.a)(!kt,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return kt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{kt=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Et(t.prototype,n),r&&Et(t,r),e}();function jt(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function Mt(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}var xt=n(58),Dt=n.n(xt),Tt=n(60);function It(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t,n){return t&&Nt(e.prototype,t),n&&Nt(e,n),e}var Lt,Pt=((Lt=function(){function e(t){It(this,e),this.isDisposed=!1,this.action=ct(t)?t:ut}return At(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&ct(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}()).empty={dispose:ut},Lt),Rt=function(){function e(){It(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return At(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),zt=function(){function e(){It(this,e),this.isDisposed=!1}return At(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wt(e);if(t){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(e,t){return!t||"object"!==Bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,o=e.createConnector,i=e.registerHandler,a=e.containerDisplayName,s=e.getType,c=e.collect,u=e.options.arePropsEqual,l=void 0===u?mt:u,p=t,f=t.displayName||t.name||"Component",d=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(h,e);var t,a,u,d=Kt(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=d.call(this,e)).decoratedRef=v.createRef(),t.handleChange=function(){var e=t.getCurrentState();mt(e,t.state)||t.setState(e)},t.disposable=new zt,t.receiveProps(e),t.dispose(),t}return t=h,(a=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(at.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!l(e,this.props)||!mt(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new zt,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){l(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(s(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=Ft(i(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new Rt(new Pt(o),new Pt(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?c(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return v.createElement(Tt.a.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),v.createElement(p,Object.assign({},e.props,e.getCurrentState(),{ref:Mt(p)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(at.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",f,f),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=o(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&Ht(t.prototype,a),u&&Ht(t,u),h}(v.Component);return e.DecoratedComponent=t,e.displayName="".concat(a,"(").concat(f,")"),e}();return Dt()(d,t)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Qt=["canDrop","hover","drop"],Zt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,jt(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Gt(t.prototype,n),r&&Gt(t,r),e}();function Jt(e){return Object.keys(e).forEach((function(t){Object(at.a)(Qt.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Qt.join(", "),t),Object(at.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new Zt(e,t,n)}}function $t(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(at.a)(ht(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Object(at.a)(lt(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=Jt(t);return Object(at.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(at.a)(lt(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return qt({containerDisplayName:"DropTarget",createHandler:i,registerHandler:pt,createMonitor:function(e){return new Ct(e)},createConnector:function(e){return new St(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var en=!1,tn=!1,nn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(at.a)(!en,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return en=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{en=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(at.a)(!tn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return tn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{tn=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Xt(t.prototype,n),r&&Xt(t,r),e}();function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var on=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=bt({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,_t(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,_t(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!mt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!mt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&rn(t.prototype,n),r&&rn(t,r),e}();function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var sn=["canDrag","beginDrag","isDragging","endDrag"],cn=["beginDrag"],un=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,jt(this.ref))}}])&&an(t.prototype,n),r&&an(t,r),e}();function ln(e){return Object.keys(e).forEach((function(t){Object(at.a)(sn.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',sn.join(", "),t),Object(at.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),cn.forEach((function(t){Object(at.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new un(e,t,n)}}function pn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(at.a)(ht(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Object(at.a)(lt(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=ln(t);return Object(at.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(at.a)(lt(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return qt({containerDisplayName:"DragSource",createHandler:i,registerHandler:ft,createConnector:function(e){return new on(e)},createMonitor:function(e){return new nn(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}var fn="card",dn="box";function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var yn={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},vn={beginDrag:function(e){return{itemType:fn,id:e.id,index:e.index}}},bn={drop:function(e,t,n){if(n){var r=t.getItem(),o=e.index,i=r.index;e.data&&e.data.isContainer||r.itemType===fn||r.data&&"function"==typeof r.setAsChild&&-1===i&&e.insertCard(r,o,r.id)}},hover:function(e,t,n){var r,o,i=t.getItem();if((i.itemType!==dn||-1!==i.index)&&(null===(r=e.data)||void 0===r||!r.isContainer||null!==(o=i.data)&&void 0!==o&&o.isContainer)){var a=i.index,s=e.index;if(a!==s){if(-1===a){if(e.data&&e.data.isContainer)return;i.index=s,e.insertCard(i.onCreate(i.data),s)}var c=Object(ot.findDOMNode)(n).getBoundingClientRect(),u=(c.bottom-c.top)/2,l=t.getClientOffset().y-c.top;a<s&&l<u||a>s&&l>u||(e.moveCard(a,s),i.index=s)}}}},wn=function(e){var t=function(t){d()(r,t);var n=gn(r);function r(){return s()(this,r),n.apply(this,arguments)}return u()(r,[{key:"render",value:function(){var t=this.props,n=t.isDragging?0:1;return(0,t.connectDragPreview)((0,t.connectDropTarget)(b.a.createElement("div",null,b.a.createElement(e,i()({},this.props,{style:mn(mn({},yn),{},{opacity:n})})))))}}]),r}(v.Component);Be()(t,"propTypes",{connectDragSource:rt.a.func,connectDragPreview:rt.a.func,connectDropTarget:rt.a.func,index:rt.a.number.isRequired,isDragging:rt.a.bool,id:rt.a.any.isRequired,moveCard:rt.a.func.isRequired,seq:rt.a.number}),Be()(t,"defaultProps",{seq:-1});var n=$t([fn,dn],bn,(function(e){return{connectDropTarget:e.dropTarget()}}))(t);return pn(fn,vn,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(n)};function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var On=function(e){d()(n,e);var t=_n(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.intl,t=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?e.formatMessage({id:"drop-zone"}):this.props.text:"";return b.a.createElement("div",{className:t},b.a.createElement("div",null,n))}}]),n}(b.a.Component),Sn=Object(Z.c)(On);On.propTypes={text:rt.a.string,show:rt.a.bool},On.defaultProps={text:"Dropzone",show:!1};var En=n(77),kn=n.n(En),Cn=n(134),jn=n(48),Mn=n.n(jn),xn=n(7),Dn=n(8),Tn=n(9),In=n(36),Nn=n(25),An=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ln(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||An(r)&&An(o)))return!1;var r,o;return!0}var Pn=function(e,t){var n;void 0===t&&(t=Ln);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},Rn=n(98);var zn=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Bn=function(e){function t(e,t,r){var o=t.trim().split(h);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 c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",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(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(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 c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===x||2===x&&o(c,1)?"-webkit-"+c+c:c}if(0===x||2===x&&!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(k,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.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(d,"$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),N(2!==t?r:r.replace(S,"$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(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,u,l){for(var p,f=0,d=t;f<I;++f)switch(p=T[f].call(c,e,d,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?x=1:(x=2,N=e):x=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var c=a(-1,n,s,s,j,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var p=function e(n,s,c,p,f){for(var d,h,m,b,_,O=0,S=0,E=0,k=0,T=0,N=0,L=m=d=0,P=0,R=0,z=0,B=0,F=c.length,U=F-1,H="",Y="",K="",V="";P<F;){if(h=c.charCodeAt(P),P===U&&0!==S+k+E+O&&(0!==S&&(h=47===S?10:47),k=E=O=0,F++,U++),0===S+k+E+O){if(P===U&&(0<R&&(H=H.replace(l,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(P)}h=59}switch(h){case 123:for(d=(H=H.trim()).charCodeAt(0),m=1,B=++P;P<F;){switch(h=c.charCodeAt(P)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(P+1)){case 42:case 47:e:{for(L=P+1;L<U;++L)switch(c.charCodeAt(L)){case 47:if(42===h&&42===c.charCodeAt(L-1)&&P+2!==L){P=L+1;break e}break;case 10:if(47===h){P=L+1;break e}}P=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;P++<U&&c.charCodeAt(P)!==h;);}if(0===m)break;P++}switch(m=c.substring(B,P),0===d&&(d=(H=H.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<R&&(H=H.replace(l,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=D}if(B=(m=e(s,R,m,h,f+1)).length,0<I&&(_=a(3,m,R=t(D,H,z),s,j,C,B,h,f,p),H=R.join(""),void 0!==_&&0===(B=(m=_.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===x||2===x&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===p&&(Y+=m,m="")}else m="";break;default:m=e(s,t(s,H,z),m,p,f+1)}K+=m,m=z=R=L=d=0,H="",h=c.charCodeAt(++P);break;case 125:case 59:if(1<(B=(H=(0<R?H.replace(l,""):H).trim()).length))switch(0===L&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(B=(H=H.replace(" ",":")).length),0<I&&void 0!==(_=a(1,H,s,n,j,C,Y.length,p,f,p))&&0===(B=(H=_.trim()).length)&&(H="\0\0"),d=H.charCodeAt(0),h=H.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){V+=H+c.charAt(P);break}default:58!==H.charCodeAt(B-1)&&(Y+=r(H,d,h,H.charCodeAt(2)))}z=R=L=d=0,H="",h=c.charCodeAt(++P)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==p&&0<H.length&&(R=1,H+="\0"),0<I*A&&a(0,H,s,n,j,C,Y.length,p,f,p),C=1,j++;break;case 59:case 125:if(0===S+k+E+O){C++;break}default:switch(C++,b=c.charAt(P),h){case 9:case 32:if(0===k+O+S)switch(T){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+S+O&&(R=z=1,b="\f"+b);break;case 108:if(0===k+S+O+M&&0<L)switch(P-L){case 2:112===T&&58===c.charCodeAt(P-3)&&(M=T);case 8:111===N&&(M=N)}break;case 58:0===k+S+O&&(L=P);break;case 44:0===S+E+k+O&&(R=1,b+="\r");break;case 34:case 39:0===S&&(k=k===h?0:0===k?h:k);break;case 91:0===k+S+E&&O++;break;case 93:0===k+S+E&&O--;break;case 41:0===k+S+O&&E--;break;case 40:if(0===k+S+O){if(0===d)switch(2*T+3*N){case 533:break;default:d=1}E++}break;case 64:0===S+E+k+O+L+m&&(m=1);break;case 42:case 47:if(!(0<k+O+E))switch(S){case 0:switch(2*h+3*c.charCodeAt(P+1)){case 235:S=47;break;case 220:B=P,S=42}break;case 42:47===h&&42===T&&B+2!==P&&(33===c.charCodeAt(B+2)&&(Y+=c.substring(B,P+1)),b="",S=0)}}0===S&&(H+=b)}N=T,T=h,P++}if(0<(B=Y.length)){if(R=s,0<I&&(void 0!==(_=a(2,Y,R,n,j,C,B,p,f,p))&&0===(Y=_).length))return V+Y+K;if(Y=R.join(",")+"{"+Y+"}",0!=x*M){switch(2!==x||o(Y,2)||(M=0),M){case 111:Y=Y.replace(v,":-moz-$1")+Y;break;case 112:Y=Y.replace(y,"::-webkit-input-$1")+Y.replace(y,"::-moz-$1")+Y.replace(y,":-ms-input-$1")+Y}M=0}}return V+Y+K}(D,s,n,0,0);return 0<I&&(void 0!==(c=a(-2,p,s,s,j,C,p.length,0,0,0))&&(p=c)),"",M=0,C=j=1,p}var u=/^\0+/g,l=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,O=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,j=1,M=0,x=1,D=[],T=[],I=0,N=null,A=0;return c.use=function e(t){switch(t){case void 0:case null:I=T.length=0;break;default:if("function"==typeof t)T[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},c.set=s,void 0!==e&&s(e),c};function Fn(e){e&&Un.current.insert(e+"}")}var Un={current:null},Hn=function(e,t,n,r,o,i,a,s,c,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Un.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Un.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Fn)}},Yn=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Bn(t);var o,i={};o=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Hn),a=function(e,t,n,o){var i=t.name;Un.current=n,r(e,t.styles),o&&(c.inserted[i]=!0)};var c={key:n,sheet:new zn({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return c};n(57);function Kn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Vn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Wn=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},qn={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};var Gn=/[A-Z]|^ms/g,Qn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zn=function(e){return 45===e.charCodeAt(1)},Jn=function(e){return null!=e&&"boolean"!=typeof e},$n=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Zn(e)?e:e.replace(Gn,"-$&").toLowerCase()})),Xn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qn,(function(e,t,n){return tr={name:t,styles:n,next:tr},t}))}return 1===qn[e]||Zn(e)||"number"!=typeof t||0===t?t:t+"px"};function er(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tr={name:n.name,styles:n.styles,next:tr},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)tr={name:o.name,styles:o.styles,next:tr},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=er(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Jn(a)&&(r+=$n(i)+":"+Xn(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=er(e,t,a,!1);switch(i){case"animation":case"animationName":r+=$n(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Jn(a[c])&&(r+=$n(i)+":"+Xn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=tr,a=n(e);return tr=i,er(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var tr,nr=/label:\s*([^\s;\n{]+)\s*;/g;var rr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";tr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=er(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=er(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);nr.lastIndex=0;for(var s,c="";null!==(s=nr.exec(o));)c+="-"+s[1];return{name:Wn(o)+c,styles:o,next:tr}},or=Object.prototype.hasOwnProperty,ir=Object(v.createContext)("undefined"!=typeof HTMLElement?Yn():null),ar=Object(v.createContext)({}),sr=ir.Provider,cr=function(e){var t=function(t,n){return Object(v.createElement)(ir.Consumer,null,(function(r){return e(t,r,n)}))};return Object(v.forwardRef)(t)},ur="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lr=function(e,t){var n={};for(var r in t)or.call(t,r)&&(n[r]=t[r]);return n[ur]=e,n},pr=function(){return null},fr=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[ur],a=[o],s="";"string"==typeof t.className?s=Kn(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var c=rr(a);Vn(e,c,"string"==typeof i);s+=e.key+"-"+c.name;var u={};for(var l in t)or.call(t,l)&&"css"!==l&&l!==ur&&(u[l]=t[l]);u.ref=r,u.className=s;var p=Object(v.createElement)(i,u),f=Object(v.createElement)(pr,null);return Object(v.createElement)(v.Fragment,null,f,p)},dr=cr((function(e,t,n){return"function"==typeof e.css?Object(v.createElement)(ar.Consumer,null,(function(r){return fr(t,e,r,n)})):fr(t,e,null,n)}));var hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rr(t)},mr=function(e,t){var n=arguments;if(null==t||!or.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=dr,o[1]=lr(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)},gr=(v.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function yr(e,t,n){var r=[],o=Kn(e,r,n);return r.length<2?n:o+t(r)}var vr=function(){return null},br=cr((function(e,t){return Object(v.createElement)(ar.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=rr(n,t.registered);return Vn(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yr(t.registered,r,gr(n))},theme:n},i=e.children(o);var a=Object(v.createElement)(vr,null);return Object(v.createElement)(v.Fragment,null,a,i)}))})),wr=(n(69),n(99));function _r(e,t){if(null==e)return{};var n,r,o=Object(wr.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Or=n(16);var Sr=n(63);function Er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Object(Sr.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kr=n(78);function Cr(e){return function(e){if(Array.isArray(e))return Object(kr.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(Sr.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var jr=n(2),Mr=n(4),xr=n(28);var Dr=n(131),Tr=n.n(Dr),Ir=function(){};function Nr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ar(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Nr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Lr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Object(xr.a)(e)&&null!==e?[e]:[]};function Pr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rr(e){return Pr(e)?window.pageYOffset:e.scrollTop}function zr(e,t){Pr(e)?window.scrollTo(0,t):e.scrollTop=t}function Br(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ir,o=Rr(e),i=t-o,a=10,s=0;function c(){var t=Br(s+=a,o,i,n);zr(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function Ur(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}function Vr(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,y=Rr(c),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,_=g-h,O=w+y,S=l-y-h,E=f-g+y+v,k=y+h-b;switch(o){case"auto":case"bottom":if(_>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&_>=r)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:a?_-v:S-v};if("auto"===o||a){var C=t,j=a?w:O;return j>=r&&(C=Math.min(j-v-s.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return zr(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(O>=d&&!a)return i&&Fr(c,k,160),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&w>=r){var M=t;return(!a&&O>=r||a&&w>=r)&&(M=a?w-b:O-b),i&&Fr(c,k,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Wr=function(e){return"auto"===e?"bottom":e},qr=Object(v.createContext)({getPortalPlacement:null}),Gr=function(e){Object(Tn.a)(n,e);var t=Kr(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(t){var u="fixed"===a,l=Vr({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),p=e.context.getPortalPlacement;p&&p(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Wr(t);return Yr(Yr({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Object(Dn.a)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(v.Component);Gr.contextType=qr;var Qr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Zr=Qr,Jr=Qr,$r=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};$r.defaultProps={children:"No options"};var Xr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};Xr.defaultProps={children:"Loading..."};var eo=function(e){Object(Tn.a)(n,e);var t=Kr(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Wr(e.props.menuPlacement)&&e.setState({placement:n})},e}return Object(Dn.a)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var c=this.state.placement||Wr(o),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,p=u[c]+l,f=mr("div",{css:a("menuPortal",{offset:p,position:i,rect:u})},n);return mr(qr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(ot.createPortal)(f,t):f)}}]),n}(v.Component),to=Array.isArray,no=Object.keys,ro=Object.prototype.hasOwnProperty;function oo(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Object(xr.a)(t)&&"object"==Object(xr.a)(n)){var r,o,i,a=to(t),s=to(n);if(a&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var c=t instanceof Date,u=n instanceof Date;if(c!=u)return!1;if(c&&u)return t.getTime()==n.getTime();var l=t instanceof RegExp,p=n instanceof RegExp;if(l!=p)return!1;if(l&&p)return t.toString()==n.toString();var f=no(t);if((o=f.length)!==no(n).length)return!1;for(r=o;0!=r--;)if(!ro.call(n,f[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=f[r])&&t.$$typeof||e(t[i],n[i])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function io(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return io=function(){return n},n}var ao={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},so=function(e){var t=e.size,n=_r(e,["size"]);return mr("svg",Object(Or.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ao},n))},co=function(e){return mr(so,Object(Or.a)({size:20},e),mr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},uo=function(e){return mr(so,Object(Or.a)({size:20},e),mr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lo=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},po=lo,fo=lo,ho=function(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(io()),mo=function(e){var t=e.delay,n=e.offset;return mr("span",{css:hr({animation:"".concat(ho," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},go=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return mr("div",Object(Or.a)({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),mr(mo,{delay:0,offset:i}),mr(mo,{delay:160,offset:!0}),mr(mo,{delay:320,offset:!i}))};go.defaultProps={size:4};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _o=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo=function(e){var t=e.children,n=e.innerProps;return mr("div",n,t)},ko=Eo,Co=Eo;var jo=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.removeProps,l=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return mr(br,null,(function(r){var h=r.css,m=r.cx;return mr(p,{data:i,innerProps:So(So({},s),{},{className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":c},n))}),selectProps:l},mr(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),mr(d,{data:i,innerProps:So({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:l}))}))};jo.defaultProps={cropWithEllipsis:!0};function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Do={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({},i,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||mr(co,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return mr("div",Object(Or.a)({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({},i,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||mr(uo,null))},DownChevron:uo,CrossIcon:co,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.label,c=e.theme,u=e.selectProps;return mr("div",{css:o("group",e),className:r({group:!0},n)},mr(i,Object(Or.a)({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),s),mr("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,_r(e,["className","cx","getStyles","theme","selectProps"]));return mr("div",Object(Or.a)({css:r("groupHeading",vo({theme:o},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return mr("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return mr("span",Object(Or.a)({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,s=e.theme,c=(e.selectProps,_r(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return mr("div",{css:r("input",wo({theme:s},c))},mr(Tr.a,Object(Or.a)({className:n({input:!0},t),inputRef:o,inputStyle:_o(i),disabled:a},c)))},LoadingIndicator:go,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return mr("div",Object(Or.a)({css:o("menu",e),className:r({menu:!0},n)},a,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef,s=e.innerProps;return mr("div",Object(Or.a)({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),t)},MenuPortal:eo,LoadingMessage:Xr,NoOptionsMessage:$r,MultiValue:jo,MultiValueContainer:ko,MultiValueLabel:Co,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return mr("div",n,t||mr(co,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return mr("div",Object(Or.a)({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:c},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return mr("div",Object(Or.a)({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return mr("div",Object(Or.a)({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return mr("div",Object(Or.a)({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return mr("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}},To=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Io=new RegExp("["+To.map((function(e){return e.letters})).join("")+"]","g"),No={},Ao=0;Ao<To.length;Ao++)for(var Lo=To[Ao],Po=0;Po<Lo.letters.length;Po++)No[Lo.letters[Po]]=Lo.base;var Ro=function(e){return e.replace(Io,(function(e){return No[e]}))};function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Bo=function(e){return e.replace(/^\s+|\s+$/g,"")},Fo=function(e){return"".concat(e.label," ").concat(e.value)};var Uo={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Ho=function(e){return mr("span",Object(Or.a)({css:Uo},e))};function Yo(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,_r(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return mr("input",Object(Or.a)({ref:t},n,{css:hr({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Vo=function(e){Object(Tn.a)(n,e);var t=Ko(n);function n(){return Object(xn.a)(this,n),t.apply(this,arguments)}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(ot.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(v.Component),Wo=["boxSizing","height","overflow","paddingRight","position"],qo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Go(e){e.preventDefault()}function Qo(e){e.stopPropagation()}function Zo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Jo(){return"ontouchstart"in window||navigator.maxTouchPoints}function $o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Xo=!(!window.document||!window.document.createElement),ei=0,ti=function(e){Object(Tn.a)(n,e);var t=$o(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(Xo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&Wo.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&ei<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,c=window.innerWidth-s+a||0;Object.keys(qo).forEach((function(e){var t=qo[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(c,"px"))}o&&Jo()&&(o.addEventListener("touchmove",Go,this.listenerOptions),r&&(r.addEventListener("touchstart",Zo,this.listenerOptions),r.addEventListener("touchmove",Qo,this.listenerOptions))),ei+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Xo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;ei=Math.max(ei-1,0),n&&ei<1&&Wo.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&Jo()&&(o.removeEventListener("touchmove",Go,this.listenerOptions),r&&(r.removeEventListener("touchstart",Zo,this.listenerOptions),r.removeEventListener("touchmove",Qo,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(v.Component);function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}ti.defaultProps={accountForScrollbars:!0};var ri={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},oi=function(e){Object(Tn.a)(n,e);var t=ni(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return Object(Dn.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?mr("div",null,mr("div",{onClick:this.blurSelectInput,css:ri}),mr(Vo,{innerRef:this.getScrollTarget},t),r?mr(ti,{touchScrollTarget:r}):null):t}}]),n}(v.PureComponent);function ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var ai=function(e){Object(Tn.a)(n,e);var t=ii(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,c=e.scrollTarget,u=c.scrollTop,l=c.scrollHeight,p=c.clientHeight,f=e.scrollTarget,d=n>0,h=l-p-u,m=!1;h>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),d&&e.isTop&&(s&&s(t),e.isTop=!1),d&&n>h?(o&&!e.isBottom&&o(t),f.scrollTop=l,m=!0,e.isBottom=!0):!d&&-n>u&&(a&&!e.isTop&&a(t),f.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return b.a.createElement(Vo,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(v.Component);function si(e){var t=e.isEnabled,n=void 0===t||t,r=_r(e,["isEnabled"]);return n?b.a.createElement(ai,r):r.children}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ui=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},li=function(e){return!!e.isDisabled};var pi={clearIndicator:fo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:po,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Jr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(jr.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(jr.a)(t,"backgroundColor",a.neutral0),Object(jr.a)(t,"borderRadius",o),Object(jr.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(jr.a)(t,"marginBottom",i.menuGutter),Object(jr.a)(t,"marginTop",i.menuGutter),Object(jr.a)(t,"position","absolute"),Object(jr.a)(t,"width","100%"),Object(jr.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Zr,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var fi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var gi,yi={backspaceRemovesValue:!0,blurInputOnSelect:Ur(),captureMenuScroll:!Ur(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Object(jr.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},gi),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Bo(t):t,u=a?Bo(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Ro(c),u=Ro(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:li,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},vi=1,bi=function(e){Object(Tn.a)(n,e);var t=mi(n);function n(e){var r;Object(xn.a)(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){var t;r.components=(t={components:e},xo(xo({},Do),t.components))},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;o(e,hi(hi({},t),{},{name:i}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.inputIsHiddenAfterUpdate=!a,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(e,i)){var a=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==a})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(Cr(i),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ar.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=pi[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:ui(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:ci(t,hi(hi({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Pr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,i=e.options,a=function(e,n){var i=r.isOptionDisabled(e,t),a=r.isOptionSelected(e,t),s=r.getOptionLabel(e),c=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:e},o))){var u=i?void 0:function(){return r.onOptionHover(e)},l=i?void 0:function(){return r.selectOption(e)},p="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:p,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:c}}};return i.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map((function(t,r){var o=a(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var o=e.value;r.cacheComponents=Pn(r.cacheComponents,oo).bind(Object(Mr.a)(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++vi);var i=Lr(o);r.buildMenuOptions=Pn(r.buildMenuOptions,(function(e,t){var n=Er(e,2),r=n[0],o=n[1],i=Er(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(Object(Mr.a)(r));var a=e.menuIsOpen?r.buildMenuOptions(e,i):{render:[],focusable:[]};return r.state.menuOptions=a,r.state.selectValue=i,r}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=Lr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},c=this.getNextFocusedValue(a),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:u,focusedValue:c})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&c&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?zr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&zr(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,c=a.tabSelectsValue,u="first"===e?0:i.focusable.length-1;if(!s){var l=i.focusable.indexOf(r[0]);l>-1&&(u=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[u]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:c}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var c=i.length-1,u=-1;if(i.length){switch(e){case"previous":u=0===s?0:-1===s?c:s-1;break;case"next":s>-1&&s<c&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions,s=a.focusable;if(s.length){var c=0,u=s.indexOf(i);i||(u=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?c=u>0?u-1:s.length-1:"down"===e?c=(u+1)%s.length:"pageup"===e?(c=u-n)<0&&(c=0):"pagedown"===e?(c=u+n)>s.length-1&&(c=s.length-1):"last"===e&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:li(s[c]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fi):hi(hi({},fi),this.props.theme):fi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,c=a.isRtl,u=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,c=i.inputValue,u=i.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})});return"".concat(l," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=this.components.Input,c=this.state.inputIsHidden,u=r||this.getElementId("input"),l={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return b.a.createElement(Yo,Object(Or.a)({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ir,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},l));var p=this.commonProps,f=p.cx,d=p.theme,h=p.selectProps;return b.a.createElement(s,Object(Or.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:a,theme:d,type:"text",value:o},l))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!l)return d?null:b.a.createElement(s,Object(Or.a)({},c,{key:"placeholder",isDisabled:p,isFocused:v}),h);if(f)return g.map((function(t,a){var s=t===y;return b.a.createElement(n,Object(Or.a)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=g[0];return b.a.createElement(a,Object(Or.a)({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(e,Object(Or.a)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return b.a.createElement(e,Object(Or.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.a.createElement(n,Object(Or.a)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(e,Object(Or.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,p=this.state,f=p.focusedOption,d=p.menuOptions,h=this.props,m=h.captureMenuScroll,g=h.inputValue,y=h.isLoading,v=h.loadingMessage,w=h.minMenuHeight,_=h.maxMenuHeight,O=h.menuIsOpen,S=h.menuPlacement,E=h.menuPosition,k=h.menuPortalTarget,C=h.menuShouldBlockScroll,j=h.menuShouldScrollIntoView,M=h.noOptionsMessage,x=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!O)return null;var T,I=function(t){var n=f===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,b.a.createElement(u,Object(Or.a)({},l,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=d.render.map((function(t){if("group"===t.type){t.type;var o=_r(t,["type"]),i="".concat(t.key,"-heading");return b.a.createElement(n,Object(Or.a)({},l,o,{Heading:r,headingProps:{id:i,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e)})))}if("option"===t.type)return I(t)}));else if(y){var N=v({inputValue:g});if(null===N)return null;T=b.a.createElement(s,l,N)}else{var A=M({inputValue:g});if(null===A)return null;T=b.a.createElement(c,l,A)}var L={minMenuHeight:w,maxMenuHeight:_,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:j},P=b.a.createElement(Gr,Object(Or.a)({},l,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return b.a.createElement(o,Object(Or.a)({},l,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:a}),b.a.createElement(si,{isEnabled:m,onTopArrive:x,onBottomArrive:D},b.a.createElement(oi,{isEnabled:C},b.a.createElement(i,Object(Or.a)({},l,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:s}),T))))}));return k||"fixed"===E?b.a.createElement(a,Object(Or.a)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:S,menuPosition:E}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return b.a.createElement("input",{name:i,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return b.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.a.createElement("input",{name:i,type:"hidden"});return b.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return b.a.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?b.a.createElement(Ho,{"aria-live":"polite"},b.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),b.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return b.a.createElement(r,Object(Or.a)({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.a.createElement(t,Object(Or.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.a.createElement(o,Object(Or.a)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.a.createElement(n,Object(Or.a)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(v.Component);bi.defaultProps=yi;n(293);function wi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var _i={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Nn.a)(e);if(t){var o=Object(Nn.a)(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Object(In.a)(this,n)}}v.Component;var Si,Ei,ki,Ci=(Si=bi,ki=Ei=function(e){Object(Tn.a)(n,e);var t=wi(n);function n(){var e;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Object(Dn.a)(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,_r(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return b.a.createElement(Si,Object(Or.a)({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(v.Component),Ei.defaultProps=_i,ki),ji=n(202),Mi=n.n(ji),xi=n(203),Di=n.n(xi),Ti=n(122),Ii=n.n(Ti);function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ai=function(e){d()(n,e);var t=Ni(n);function n(e){var r;s()(this,n),(r=t.call(this,e)).min=0,r.max=e.ratingAmount||5;var o=e.rating,i={pos:o?r.getStarRatingPosition(o):0,rating:e.rating};return r.state={ratingCache:i,editing:e.editing||!e.rating,stars:5,rating:i.rating,pos:i.pos,glyph:r.getStars()},r}return u()(n,[{key:"getStars",value:function(){for(var e="",t=this.props.ratingAmount,n=0;n<t;n++)e+="★";return e}},{key:"componentDidMount",value:function(){this.root=it.a.findDOMNode(this.rootNode),this.ratingContainer=it.a.findDOMNode(this.node)}},{key:"componentWillUnmount",value:function(){delete this.root,delete this.ratingContainer}},{key:"getPosition",value:function(e){return e.pageX-this.root.getBoundingClientRect().left}},{key:"applyPrecision",value:function(e,t){return parseFloat(e.toFixed(t))}},{key:"getDecimalPlaces",value:function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}},{key:"getWidthFromValue",value:function(e){var t=this.min,n=this.max;return e<=t||t===n?0:e>=n?100:e/(n-t)*100}},{key:"getValueFromPosition",value:function(e){var t=this.getDecimalPlaces(this.props.step),n=this.ratingContainer.offsetWidth,r=(this.max-this.min)*e/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),t);return o=Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(e){var t=this.getValueFromPosition(e),n=this.getWidthFromValue(t);return{width:n+="%",val:t}}},{key:"getStarRatingPosition",value:function(e){return"".concat(this.getWidthFromValue(e),"%")}},{key:"getRatingEvent",value:function(e){var t=this.getPosition(e);return this.calculate(t)}},{key:"getSvg",value:function(){return b.a.createElement("svg",{className:"react-star-rating__star",viewBox:"0 0 286 272",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.a.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b.a.createElement("polygon",{id:"star-flat",points:"143 225 54.8322122 271.352549 71.6707613 173.176275 0.341522556 103.647451 98.9161061 89.3237254 143 0 187.083894 89.3237254 285.658477 103.647451 214.329239 173.176275 231.167788 271.352549 "})))}},{key:"handleMouseLeave",value:function(){this.setState({pos:this.state.ratingCache.pos,rating:this.state.ratingCache.rating})}},{key:"handleMouseMove",value:function(e){var t=this.getRatingEvent(e);this.updateRating(t.width,t.val)}},{key:"updateRating",value:function(e,t){this.setState({pos:e,rating:t})}},{key:"shouldComponentUpdate",value:function(e,t){return e!==this.props?(this.updateRating(this.getStarRatingPosition(e.rating),e.rating),!0):t.ratingCache.rating!==this.state.ratingCache.rating||t.rating!==this.state.rating}},{key:"handleClick",value:function(e){if(this.props.disabled)return e.stopPropagation(),e.preventDefault(),!1;var t={pos:this.state.pos,rating:this.state.rating,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:t}),this.props.onRatingClick(e,t),!0}},{key:"treatName",value:function(e){return"string"==typeof e?e.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var e,t,n=this,r=Ii()((e={"react-star-rating__root":!0,"rating-disabled":this.props.disabled},Be()(e,"react-star-rating__size--".concat(this.props.size),this.props.size),Be()(e,"rating-editing",this.state.editing),e));return t=this.state.editing?b.a.createElement("div",{ref:function(e){return n.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph,onMouseMove:this.handleMouseMove.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onClick:this.handleClick.bind(this)},b.a.createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})):b.a.createElement("div",{ref:function(e){return n.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph},b.a.createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})),b.a.createElement("span",{className:"react-star-rating"},b.a.createElement("span",{ref:function(e){return n.rootNode=e},style:{cursor:"pointer"},className:r},t,b.a.createElement("input",Be()({type:"hidden",name:this.props.name,value:this.state.ratingCache.rating,style:{display:"none !important"},min:this.min,max:this.max,readOnly:!0},"style",{width:65}))))}}]),n}(b.a.Component);Ai.propTypes={name:rt.a.string.isRequired,caption:rt.a.string,ratingAmount:rt.a.number.isRequired,rating:rt.a.number,onRatingClick:rt.a.func,disabled:rt.a.bool,editing:rt.a.bool,size:rt.a.string},Ai.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var Li,Pi=n(395),Ri=n(396),zi=n(204),Bi=n.n(zi);function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ui={cursor:"move"},Hi={beginDrag:function(e){var t=e.data,n=e.index,r=e.onDestroy,o=e.setAsChild,i=e.getDataById;return{itemType:dn,index:t.parentId?-1:n,parentIndex:t.parentIndex,id:t.id,col:t.col,onDestroy:r,setAsChild:o,getDataById:i,data:t}}},Yi=function(e){d()(n,e);var t=Fi(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.connectDragPreview;e&&e((Li||((Li=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Li),{captureDraggingState:!0})}},{key:"render",value:function(){return(0,this.props.connectDragSource)(b.a.createElement("div",{className:"btn is-isolated",style:Ui},b.a.createElement("i",{className:"is-isolated fas fa-grip-vertical"})))}}]),n}(v.PureComponent),Ki=pn(dn,Hi,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(Yi);function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Wi=function(e){d()(n,e);var t=Vi(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return b.a.createElement("div",{className:"toolbar-header"},b.a.createElement("span",{className:"badge badge-secondary"},this.props.data.text),b.a.createElement("div",{className:"toolbar-header-buttons"},"LineBreak"!==this.props.data.element&&b.a.createElement("div",{className:"btn is-isolated",onClick:this.props.editModeOn.bind(this.props.parent,this.props.data)},b.a.createElement("i",{className:"is-isolated fas fa-edit"})),b.a.createElement("div",{className:"btn is-isolated",onClick:this.props.onDestroy.bind(this,this.props.data)},b.a.createElement("i",{className:"is-isolated fas fa-trash"})),b.a.createElement(Ki,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}]),n}(b.a.Component),qi=function(e){return e.mutable?null:b.a.createElement("div",null,e.data.pageBreakBefore&&b.a.createElement("div",{className:"preview-page-break"},"Page Break"),b.a.createElement(Wi,{isFieldSet:e.isFieldSet,parent:e.parent,editModeOn:e.editModeOn,data:e.data,index:e.index,setAsChild:e.setAsChild,onDestroy:e._onDestroy,onEdit:e.onEdit,static:e.data.static,required:e.data.required}))},Gi=n(93),Qi=n.n(Gi),Zi=new Qi.a.FilterXSS({whiteList:{a:["href","title","target"],u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"],ins:[]}}),Ji=function(e){var t=e.data.hasOwnProperty("required")&&!0===e.data.required&&!e.read_only,n=Zi.process(e.data.label);return n?b.a.createElement("label",{className:e.className||"form-label"},b.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),t&&!e.hide_required_alert&&b.a.createElement("span",{className:"label-required badge badge-danger"},"Required")):null};function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var ta=function(e){d()(n,e);var t=ea(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"handleChange",(function(e){var t,n=r.state.formatMask;if(e&&e.target){t=e&&e.target&&""===e.target.value?n.toLowerCase():"";var o=e.target.value?function(e,t){var n=["yyyy-MM-dd","MM/dd/yyyy",t].find((function(t){var n=Object(Pi.default)(e,t,new Date);return!Number.isNaN(n.getTime())}));return n?Object(Pi.default)(e,n,new Date):null}(e.target.value,n):null;if(o&&Number.isNaN(o))console.log("Invalid date:",e.target.value);else{var i=o?Object(Ri.default)(o,"yyyy-MM-dd"):"";r.setState({value:i,internalValue:o,placeholder:t})}}else if(e&&Number.isNaN(e))console.log("Invalid date:",e);else{var a=e?Object(Ri.default)(e,"yyyy-MM-dd"):"";r.setState({value:a,internalValue:e,placeholder:t})}})),r.inputField=b.a.createRef();var o=n.updateFormat(e,null).formatMask,i=n.updateDateTime(e,{formatMask:o},o);return i.value=i.value||"",i.internalValue=i.internalValue||"",r.state=i,r}return u()(n,[{key:"handleBirthdayFocus",value:function(){this.setState({birthdayFocused:!0},(function(){document.getElementById("year").placeholder="YYYY",document.getElementById("day").placeholder="DD",document.getElementById("month").placeholder="MM"}))}},{key:"handleDateChange",value:function(e){var t=e.target.value;"month"===e.target.name?t>12&&(t="12"):"day"===e.target.name?t>31&&(t="31"):"year"===e.target.name&&t>(new Date).getFullYear()&&(t=(new Date).getFullYear().toString()),this.setState(Be()({},e.target.name,t))}},{key:"render",value:function(){var e=this,t=this.props.data,n=t.showTimeSelect,r=t.showTimeSelectOnly,o=t.showTimeInput,i={type:"date",className:"form-control"};i.name=this.props.data.field_name;var a=this.props.data.readOnly||this.props.read_only,s=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=this.state.formatMask.toLowerCase();this.props.mutable&&(i.defaultValue=this.props.defaultValue,i.ref=this.inputField);var u="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(u+=" alwaysbreak"),b.a.createElement("div",{className:u,style:Xi({},this.props.style)},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("div",null,a&&b.a.createElement("input",{type:"text",name:i.name,ref:i.ref,readOnly:a,placeholder:this.state.placeholder,value:this.state.value,className:"form-control"}),s&&!a&&b.a.createElement("div",{className:"input-group",style:{border:"1px solid #ced4da",borderRadius:"0.25rem",marginTop:10}},b.a.createElement("input",{value:this.state.month,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(t){return e.handleDateChange(t)},className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onFocus:function(t){return e.handleBirthdayFocus()},placeholder:this.state.placeholder,maxLength:"2",pattern:"\\d*"}),this.state.birthdayFocused&&b.a.createElement(b.a.Fragment,null,b.a.createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),b.a.createElement("input",{value:this.state.day,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onChange:function(t){return e.handleDateChange(t)},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"2",pattern:"\\d*"}),b.a.createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),b.a.createElement("input",{value:this.state.year,name:"year",id:"year",className:"form-control",type:"text",style:{border:"none",fontFamily:"Oswald"},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(t){return e.handleDateChange(t)}}))),!s&&!a&&b.a.createElement(Bi.a,{name:i.name,ref:i.ref,onChange:this.handleChange,selected:this.state.internalValue,todayButton:"Today",className:"form-control",isClearable:!0,showTimeSelect:n,showTimeSelectOnly:r,showTimeInput:o,dateFormat:this.state.formatMask,portalId:"root-portal",autoComplete:"off",placeholderText:c}))))}}],[{key:"updateDateTime",value:function(e,t,n){var r,o,i=e.data.defaultToday;if(!i||""!==e.defaultValue&&void 0!==e.defaultValue)if(""===(r=e.defaultValue||""))o="";else{var a=Object(Pi.default)(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Object(Ri.default)(s,"yyyy-MM-dd"),o="Invalid Date"===s.toString()?"":s}return{value:r,internalValue:o,placeholder:n.toLowerCase(),defaultToday:i,formatMask:n}}},{key:"updateFormat",value:function(e,t){var n=e.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":e.data.dateFormat,s=r||i?e.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==t,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(e,t){var r=n.updateFormat(e,t.formatMask),o=r.updated,i=r.formatMask;return e.data.defaultToday!==t.defaultToday||o?n.updateDateTime(e,t,i):null}}]),n}(b.a.Component);function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var ia={},aa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("h3",{className:e,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),sa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("p",{className:e,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ca=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("label",{className:"".concat(e," form-label"),dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ua=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("hr",null))}}]),n}(b.a.Component),la=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),pa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),fa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"tel",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),da=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={type:"number",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("input",e)))}}]),n}(b.a.Component),ha=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.read_only&&(e.disabled="disabled"),this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("textarea",e)))}}]),n}(b.a.Component),ma=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("select",e,this.props.data.options.map((function(e){var t="preview_".concat(e.key);return b.a.createElement("option",{value:e.value,key:t},e.text)})))))}}]),n}(b.a.Component),ga=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"clear",(function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()})),r.state={defaultValue:e.defaultValue},r.inputField=b.a.createRef(),r.canvas=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e=this.state.defaultValue,t=!!e,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=e,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=e,r.ref=this.canvas,t=!this.props.read_only);var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),e&&e.length>0&&(o="data:image/png;base64,".concat(e)),b.a.createElement("div",{style:ra({},this.props.style),className:i},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only||o?b.a.createElement("img",{src:o}):b.a.createElement(Mi.a,r),t&&b.a.createElement("i",{className:"fas fa-times clear-signature",onClick:this.clear,title:"Clear Signature"}),b.a.createElement("input",n)))}}]),n}(b.a.Component),ya=function(e){d()(n,e);var t=oa(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"handleChange",(function(e){r.setState({value:e||[]})})),r.inputField=b.a.createRef();var o=e.defaultValue,i=e.data;return r.state={value:r.getDefaultValue(o,i.options)},r}return u()(n,[{key:"getDefaultValue",value:function(e,t){if(e){if("string"==typeof e){var n=e.split(",").map((function(e){return e.trim()}));return t.filter((function(e){return n.indexOf(e.value)>-1}))}return t.filter((function(t){return e.indexOf(t.value)>-1}))}return[]}},{key:"render",value:function(){var e=this.props.data.options.map((function(e){return e.label=e.text,e})),t={isMulti:!0};t.name=this.props.data.field_name,t.onChange=this.handleChange,t.options=e,this.props.mutable||(t.value=e[0].text),this.props.mutable&&(t.isDisabled=this.props.read_only,t.value=this.state.value,t.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:n},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement(Ci,t)))}}]),n}(b.a.Component),va=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).options={},r}return u()(n,[{key:"render",value:function(){var e=this,t=this,n="custom-control custom-checkbox";this.props.data.inline&&(n+=" option-inline");var r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name="option_".concat(r.key),a.type="checkbox",a.value=r.value,t.props.mutable&&(a.defaultChecked=void 0!==t.props.defaultValue&&t.props.defaultValue.indexOf(r.key)>-1),e.props.read_only&&(a.disabled="disabled"),b.a.createElement("div",{className:n,key:o},b.a.createElement("input",i()({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&t.props.mutable&&(t.options["child_ref_".concat(r.key)]=e)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ba=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";this.props.data.pageBreakBefore&&(e+=" alwaysbreak");var t={};return t.name=this.props.data.field_name,t.type="checkbox",t.defaultChecked=this.props.data.defaultChecked,this.props.mutable&&(t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,i()({className:"form-label"},this.props)),b.a.createElement("div",{className:"custom-control custom-checkbox"},b.a.createElement("input",i()({id:this.props.data.field_name,className:"custom-control-input"},t)),b.a.createElement("label",{className:"custom-control-label",htmlFor:this.props.data.field_name,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}]),n}(b.a.Component),wa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).options={},r}return u()(n,[{key:"render",value:function(){var e=this,t=this,n="custom-control custom-radio";this.props.data.inline&&(n+=" option-inline");var r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name=t.props.data.field_name,a.type="radio",a.value=r.value,t.props.mutable&&(a.defaultChecked=void 0!==t.props.defaultValue&&(t.props.defaultValue.indexOf(r.key)>-1||t.props.defaultValue.indexOf(r.value)>-1)),e.props.read_only&&(a.disabled="disabled"),b.a.createElement("div",{className:n,key:o},b.a.createElement("input",i()({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&t.props.mutable&&(t.options["child_ref_".concat(r.key)]=e)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),_a=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.data.center?{textAlign:"center"}:null,t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra(ra({},this.props.style),e),className:t},b.a.createElement(qi,this.props),this.props.data.src&&b.a.createElement("img",{src:this.props.data.src,width:this.props.data.width,height:this.props.data.height}),!this.props.data.src&&b.a.createElement("div",{className:"no-image"},"No Image"))}}]),n}(b.a.Component),Oa=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e={};e.name=this.props.data.field_name,e.ratingAmount=5,this.props.mutable&&(e.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,e.editing=!0,e.disabled=this.props.read_only,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:t},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement(Ai,e)))}}]),n}(b.a.Component),Sa=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{className:"form-label"},b.a.createElement("a",{target:"_blank",href:this.props.data.href,dangerouslySetInnerHTML:{__html:Zi.process(this.props.data.content)}}))))}}]),n}(b.a.Component),Ea=function(e){d()(n,e);var t=oa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement("a",{href:"".concat(this.props.download_path,"?id=").concat(this.props.data.file_path)},this.props.data.content)))}}]),n}(b.a.Component),ka=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"displayImage",(function(e){var t=p()(r),n=e.target;n.files&&n.files.length&&t.setState({img:n.files[0],previewImg:URL.createObjectURL(n.files[0])})})),Be()(p()(r),"clearImage",(function(){r.setState({img:null,previewImg:null})})),r.state={img:null,previewImg:null},r}return u()(n,[{key:"getImageSizeProps",value:function(e){var t=e.width,n=e.height,r={width:"100%"};return t&&(r.width=t<window.innerWidth?t:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var e,t=this,n={objectFit:"scale-down",objectPosition:this.props.data.center?"center":"left"},r="SortableItem rfb-item",o=this.props.data.field_name,a=this.state.img?{display:"none"}:null;return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0&&(e=this.props.defaultValue.indexOf(o>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),b.a.createElement("div",{style:ra({},this.props.style),className:r},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?b.a.createElement("div",null,b.a.createElement("img",i()({style:n,src:e},this.getImageSizeProps(this.props.data)))):b.a.createElement("div",{className:"image-upload-container"},b.a.createElement("div",{style:a},b.a.createElement("input",{name:o,type:"file",accept:"image/*",capture:"camera",className:"image-upload",onChange:this.displayImage}),b.a.createElement("div",{className:"image-upload-control"},b.a.createElement("div",{className:"btn btn-default"},b.a.createElement("i",{className:"fas fa-camera"})," Upload Photo"),b.a.createElement("p",null,"Select an image from your computer or device."))),this.state.img&&b.a.createElement("div",null,b.a.createElement("img",{onLoad:function(){return URL.revokeObjectURL(t.state.previewImg)},src:this.state.previewImg,height:"100",className:"image-upload-preview"}),b.a.createElement("br",null),b.a.createElement("div",{className:"btn btn-image-clear",onClick:this.clearImage},b.a.createElement("i",{className:"fas fa-times"})," Clear Photo")))))}}]),n}(b.a.Component),Ca=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"displayFileUpload",(function(e){var t,n=p()(r),o=e.target;o.files&&o.files.length>0&&(t=o.files[0],n.setState({fileUpload:t}))})),Be()(p()(r),"clearFileUpload",(function(){r.setState({fileUpload:null})})),Be()(p()(r),"saveFile",function(){var e=Ze()(et.a.mark((function e(t){var n,o,i,a,s,c,u;return et.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props.defaultValue,e.next=4,kn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 4:return o=e.sent,i=o.headers.get("Content-Disposition"),e.next=8,o.blob();case 8:a=e.sent,s=new Blob([a],{type:r.props.data.fileType||o.headers.get("Content-Type")}),i&&i.indexOf(";filename=")>-1?(c=i.split(";filename=")[1],Object(Cn.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),Object(Cn.saveAs)(o.url,u));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r.state={fileUpload:null},r}return u()(n,[{key:"render",value:function(){var e="SortableItem rfb-item",t=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:e},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?b.a.createElement("div",null,b.a.createElement("button",{className:"btn btn-default",onClick:this.saveFile},b.a.createElement("i",{className:"fas fa-download"})," Download File")):b.a.createElement("div",{className:"image-upload-container"},b.a.createElement("div",{style:n},b.a.createElement("input",{name:t,type:"file",accept:this.props.data.fileType||"*",className:"image-upload",onChange:this.displayFileUpload}),b.a.createElement("div",{className:"image-upload-control"},b.a.createElement("div",{className:"btn btn-default"},b.a.createElement("i",{className:"fas fa-file"})," Upload File"),b.a.createElement("p",null,"Select a file from your computer or device."))),this.state.fileUpload&&b.a.createElement("div",null,b.a.createElement("div",{className:"file-upload-preview"},b.a.createElement("div",{style:{display:"inline-block",marginRight:"5px"}},"Name: ".concat(this.state.fileUpload.name)),b.a.createElement("div",{style:{display:"inline-block",marginLeft:"5px"}},this.state.fileUpload.size.length>6?"Size: ".concat(Math.ceil(this.state.fileUpload.size/1048576)," mb"):"Size: ".concat(Math.ceil(this.state.fileUpload.size/1024)," kb"))),b.a.createElement("br",null),b.a.createElement("div",{className:"btn btn-file-upload-clear",onClick:this.clearFileUpload},b.a.createElement("i",{className:"fas fa-times"})," Clear File")))))}}]),n}(b.a.Component),ja=function(e){d()(n,e);var t=oa(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"changeValue",(function(e){var t=e.target;r.setState({value:t.value})})),r.inputField=b.a.createRef(),r.state={value:void 0!==e.defaultValue?parseInt(e.defaultValue,10):parseInt(e.data.default_value,10)},r}return u()(n,[{key:"render",value:function(){var e={},t=this.props.data.field_name;e.type="range",e.list="tickmarks_".concat(t),e.min=this.props.data.min_value,e.max=this.props.data.max_value,e.step=this.props.data.step,e.value=this.state.value,e.change=this.changeValue,this.props.mutable&&(e.ref=this.inputField);for(var n=[],r=parseInt(e.min,10);r<=parseInt(e.max,10);r+=parseInt(e.step,10))n.push(r);var o=100/(n.length-1),i=n.map((function(t,n){return b.a.createElement("option",{key:"".concat(e.list,"_").concat(n)},t)})),a=n.map((function(t,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(e.list,"_label_").concat(r),i.style={width:"".concat(a,"%")},r===n.length-1&&(i.style={width:"".concat(a,"%"),textAlign:"right"}),b.a.createElement("label",i,t)}));this.props.read_only&&(e.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),b.a.createElement("div",{style:ra({},this.props.style),className:s},b.a.createElement(qi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,this.props),b.a.createElement("div",{className:"range"},b.a.createElement("div",{className:"clearfix"},b.a.createElement("span",{className:"float-left"},this.props.data.min_label),b.a.createElement("span",{className:"float-right"},this.props.data.max_label)),b.a.createElement(Di.a,e)),b.a.createElement("div",{className:"visible_marks"},a),b.a.createElement("input",{name:t,value:this.state.value,type:"hidden"}),b.a.createElement("datalist",{id:e.list},i)))}}]),n}(b.a.Component);ia.Header=aa,ia.Paragraph=sa,ia.Label=ca,ia.LineBreak=ua,ia.TextInput=la,ia.EmailInput=pa,ia.PhoneNumber=fa,ia.NumberInput=da,ia.TextArea=ha,ia.Dropdown=ma,ia.Signature=ga,ia.Checkboxes=va,ia.Checkbox=ba,ia.DatePicker=ta,ia.RadioButtons=wa,ia.Image=_a,ia.Rating=Oa,ia.Tags=ya,ia.HyperLink=Sa,ia.Download=Ea,ia.Camera=ka,ia.FileUpload=Ca,ia.Range=ja;var Ma=ia;function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ia=function(e){d()(n,e);var t=Ta(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var e=this.props.data.bare,t={};if(t.name=this.props.data.field_name,t.defaultValue=this.props.defaultValue,this.props.mutable&&this.props.data.forwardRef&&(t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled"),!this.props.data.component)return null;var n=this.props.data.component,r="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(r+=" alwaysbreak"),b.a.createElement("div",{className:r,style:Da({},this.props.style)},b.a.createElement(qi,this.props),e?b.a.createElement(n,i()({data:this.props.data},this.props.data.props,t)):b.a.createElement("div",{className:"form-group"},b.a.createElement(Ji,i()({className:"form-label"},this.props)),b.a.createElement(n,i()({data:this.props.data},this.props.data.props,t))))}}]),n}(v.Component);Ia.propTypes={};var Na=Ia,Aa=n(51),La=n.n(Aa),Pa=["onDropSuccess","seq","draggedItem","parentIndex","canDrop","isOver","isOverCurrent","connectDropTarget","items","col","getDataById"];function Ra(e,t){if(!e)return null;var n=e.custom?function(){return function(e,t){return e.component&&"function"==typeof e.component||(e.component=La.a.get(e.key),e.component||console.error("".concat(e.element," was not registered"))),b.a.createElement(Na,i()({},t,{mutable:!1,key:"form_".concat(e.id),data:e}))}(e,t)}:Ma[e.element||e.key];return b.a.createElement(v.Fragment,null,b.a.createElement(n,i()({},t,{key:"form_".concat(e.id),data:e})))}function za(e){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:e,padding:0,float:"left"}}var Ba=b.a.forwardRef((function(e,t){var n=e.onDropSuccess,r=(e.seq,e.draggedItem),o=e.parentIndex,i=e.canDrop,a=e.isOver,s=(e.isOverCurrent,e.connectDropTarget),c=e.items,u=e.col,l=e.getDataById,p=Mn()(e,Pa),f=l(c[u]);Object(v.useImperativeHandle)(t,(function(){return{onDrop:function(e){console.log("dropped ites"),e.data&&(n&&n(),Ge.dispatch("deleteLastItem"))}}}),[]);var d=Ra(f,p),h=!!r&&r.index===o,m="rgba(0, 0, 0, .03)";return!h&&a&&i&&!r.data.isContainer&&(m="#F7F589"),s(b.a.createElement("div",{style:za(h?"rgba(0, 0, 0, .03":m)},!d&&b.a.createElement("span",null,"Drop your element here "),d))})),Fa=$t((function(e){return e.accepts}),{drop:function(e,t,n){if(n){var r=!!e.items[e.col],o=t.getItem();if(e.col!==o.col||e.items[e.col]!==o.id)if(void 0===o.col&&e.items[e.col])Ge.dispatch("resetLastItem");else if(!function(e){if(e.itemType!==fn){var t=e.data;if(t){if(t.isContainer)return!0;if(t.field_name)return t.field_name.indexOf("_col_row")>-1}}return!1}(o)&&(n.onDrop(o),console.log("calling on Drop from 137",o),o.data&&"function"==typeof e.setAsChild)){var i=!o.data.id?o.onCreate(o.data):o.data;e.setAsChild(e.data,i,e.col,r)}}}},(function(e,t){return{connectDropTarget:e.dropTarget(),draggedItem:t.getItem()?t.getItem():null,isOver:t.isOver(),isOverCurrent:t.isOver({shallow:!0}),canDrop:t.canDrop()}}))(Ba),Ua=["data","class_name"],Ha=["data","class_name"],Ya=["data"];function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var qa=[dn,fn],Ga=function(e){d()(n,e);var t=Wa(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.controls,n=e.data,r=e.editModeOn,o=e.getDataById,i=e.setAsChild,a=e.removeChild,s=e.seq,c=e.className,u=e.index,l=n.childItems,p="SortableItem rfb-item";return n.pageBreakBefore&&(p+=" alwaysbreak"),b.a.createElement("div",{style:Va({},this.props.style),className:p},b.a.createElement(qi,this.props),b.a.createElement("div",null,b.a.createElement(Ji,this.props),b.a.createElement("div",{className:"row"},l.map((function(e,p){return b.a.createElement("div",{key:"".concat(p,"_").concat(e||"_"),className:c},t?t[p]:b.a.createElement(Fa,{style:{width:"100%"},data:n,accepts:qa,items:l,col:p,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,p)},getDataById:o,setAsChild:i,seq:s}))})))))}}]),n}(b.a.Component),Qa=function(e){var t=e.data,n=e.class_name,r=Mn()(e,Ua),o=n||"col-md-6";return t.childItems||(t.childItems=[null,null],t.isContainer=!0),b.a.createElement(Ga,i()({},r,{className:o,data:t}))},Za=function(e){var t=e.data,n=e.class_name,r=Mn()(e,Ha),o=n||"col-md-4";return t.childItems||(t.childItems=[null,null,null],t.isContainer=!0),b.a.createElement(Ga,i()({},r,{className:o,data:t}))},Ja=function(e){var t=e.data,n=Mn()(e,Ya),r=t.col_count||4,o=t.class_name||(4===r?"col-md-3":"col");return t.childItems||(t.childItems=Array.from({length:r},(function(e,t){return null})),t.isContainer=!0),b.a.createElement(Ga,i()({},n,{className:o,data:t}))},$a=["data","class_name"];function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ts=[dn,fn];function ns(e){var t=Object(v.useState)({}),n=$e()(t,2),r=n[0],o=n[1],a=Object(v.useState)(null),s=$e()(a,2),c=s[0],u=s[1];Object(v.useEffect)((function(){var t=e.data;e.class_name,Mn()(e,$a);o(t);p(1,t)}),[e]);var l=function(t){var n,r,o;(c?c.length:0)===t+1&&(n=e.data,r=n.childItems.length+1,o=n.childItems,n.childItems=Array.from({length:r},(function(e,t){return o[t]?o[t]:null})),u(n.childItems))},p=function(e,t){var n=e;t.class_name;t.childItems||(t.childItems=Array.from({length:n},(function(e,t){return null})),t.isContainer=!0),u(t.childItems)},f=e.controls,d=e.editModeOn,h=e.getDataById,m=e.setAsChild,g=e.removeChild,y=e.seq,w=(e.className,e.index),_="SortableItem rfb-item";return r.pageBreakBefore&&(_+=" alwaysbreak"),b.a.createElement("div",{style:es({},e.style),className:_},b.a.createElement(qi,i()({},e,{isFieldSet:!0})),b.a.createElement("div",null,b.a.createElement(Ji,e),b.a.createElement("div",{className:"row"},null==c?void 0:c.map((function(e,t){return b.a.createElement("div",{key:"".concat(t,"_").concat(e||"_"),className:"col-md-12"},f?f[t]:b.a.createElement(Fa,{style:{width:"100%"},data:r,accepts:ts,items:c,key:t,col:t,onDropSuccess:function(){return l(t)},parentIndex:w,editModeOn:d,_onDestroy:function(){return g(r,t)},getDataById:h,setAsChild:m,seq:y,rowNo:t}))})))))}var rs=Ma.Header,os=Ma.Paragraph,is=Ma.Label,as=Ma.LineBreak,ss=Ma.TextInput,cs=Ma.EmailInput,us=Ma.PhoneNumber,ls=Ma.NumberInput,ps=Ma.TextArea,fs=Ma.Dropdown,ds=Ma.Checkboxes,hs=Ma.DatePicker,ms=Ma.RadioButtons,gs=Ma.Image,ys=Ma.Rating,vs=Ma.Tags,bs=Ma.Signature,ws=Ma.HyperLink,_s=Ma.Download,Os=Ma.Camera,Ss=Ma.Range,Es=Ma.FileUpload,ks=Ma.Checkbox,Cs={};Cs.Header=wn(rs),Cs.Paragraph=wn(os),Cs.Label=wn(is),Cs.LineBreak=wn(as),Cs.TextInput=wn(ss),Cs.EmailInput=wn(cs),Cs.PhoneNumber=wn(us),Cs.NumberInput=wn(ls),Cs.TextArea=wn(ps),Cs.Dropdown=wn(fs),Cs.Signature=wn(bs),Cs.Checkboxes=wn(ds),Cs.Checkbox=wn(ks),Cs.DatePicker=wn(hs),Cs.RadioButtons=wn(ms),Cs.Image=wn(gs),Cs.Rating=wn(ys),Cs.Tags=wn(vs),Cs.HyperLink=wn(ws),Cs.Download=wn(_s),Cs.Camera=wn(Os),Cs.FileUpload=wn(Es),Cs.Range=wn(Ss),Cs.PlaceHolder=wn(Sn),Cs.FieldSet=wn(ns),Cs.TwoColumnRow=wn(Qa),Cs.ThreeColumnRow=wn(Za),Cs.MultiColumnRow=wn(Ja),Cs.CustomElement=wn(Na);var js=Cs;function Ms(e){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ts(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),e}function Is(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ns(e,t)}function Ns(e,t){return(Ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function As(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ps(e);if(t){var o=Ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(e,t){return!t||"object"!==Ms(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ps(e){return(Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bs={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},Fs={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},Us=function(e){var t=e.title,n=e.color?"#059862":"white";return b.a.createElement("div",{style:zs(zs({},Bs),{},{backgroundColor:n})},t)},Hs=function(e){var t=e.item,n=Object(v.useState)(!1),r=$e()(n,2),o=r[0],i=(r[1],t.data.content?t.data.content:t.data.label?t.data.label:t.data.text),a=i.length>20?"".concat(i.slice(0,20),"..."):i;return b.a.createElement("div",{style:Fs,role:"BoxPreview"},b.a.createElement(Us,{title:a,color:o}))},Ys={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function Ks(e){var t=e.initialOffset,n=e.currentOffset;if(!t||!n)return{display:"none"};var r=n.x,o=n.y,i="translate(".concat(r,"px, ").concat(o,"px)");return{transform:i,WebkitTransform:i}}var Vs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(at.a)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Object(at.a)(lt(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var r=n,o=t.arePropsEqual,i=void 0===o?mt:o,a=r.displayName||r.name||"Component",s=function(){var t=function(t){Is(o,t);var n=As(o);function o(){var e;return xs(this,o),(e=n.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=v.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();mt(t,e.state)||e.setState(t)}},e}return Ts(o,[{key:"getDecoratedComponentInstance",value:function(){return Object(at.a)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!i(e,this.props)||!mt(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return v.createElement(Tt.a.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?v.createElement(r,Object.assign({},e.props,e.state,{ref:Mt(r)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,Object(at.a)("object"===Ms(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",a,a);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),o}(v.Component);return t.displayName="DragLayer(".concat(a,")"),t.DecoratedComponent=n,t}();return Dt()(s,n)}}((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}}))((function(e){var t=e.item,n=e.itemType;return e.isDragging?b.a.createElement("div",{style:Ys},b.a.createElement("div",{style:Ks(e)},function(){switch(n){case dn:return b.a.createElement(Hs,{item:t});default:return null}}())):null}));function Ws(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var qs=js.PlaceHolder,Gs=function(e){d()(n,e);var t=Ws(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"state",{data:[],answer_data:{}}),Be()(p()(r),"editModeOff",(function(e){r.editForm.current&&!r.editForm.current.contains(e.target)&&r.manualEditModeOff()})),Be()(p()(r),"manualEditModeOff",(function(){var e=r.props.editElement;e&&e.dirty&&(e.dirty=!1,r.updateElement(e)),r.props.manualEditModeOff()}));var o=e.onLoad,i=e.onPost;return Ge.setExternalHandler(o,i),r.editForm=b.a.createRef(),r.state={data:e.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(p()(r)),r.getDataById=r.getDataById.bind(p()(r)),r.moveCard=r.moveCard.bind(p()(r)),r.insertCard=r.insertCard.bind(p()(r)),r.setAsChild=r.setAsChild.bind(p()(r)),r.removeChild=r.removeChild.bind(p()(r)),r._onDestroy=r._onDestroy.bind(p()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.data,r=t.url,o=t.saveUrl,i=t.saveAlways;Ge.subscribe((function(t){return e._onUpdate(t.data)})),Ge.dispatch("load",{loadUrl:r,saveUrl:o,data:n||[],saveAlways:i}),document.addEventListener("mousedown",this.editModeOff)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.editModeOff)}},{key:"_setValue",value:function(e){return e.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(e){for(var t=this.state.data,n=!1,r=0,o=t.length;r<o;r++)if(e.id===t[r].id){t[r]=e,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",t))}},{key:"_onChange",value:function(e){var t=this,n={};e.forEach((function(e){e&&e.readOnly&&t.props.variables[e.variableKey]&&(n[e.field_name]=t.props.variables[e.variableKey])})),this.setState({data:e,answer_data:n})}},{key:"_onDestroy",value:function(e){var t=this;e.childItems&&e.childItems.forEach((function(e){var n=t.getDataById(e);n&&Ge.dispatch("delete",n)})),Ge.dispatch("delete",e)}},{key:"getDataById",value:function(e){return this.state.data.find((function(t){return t&&t.id===e}))}},{key:"swapChildren",value:function(e,t,n,r){if(void 0!==n.col&&t.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!t.childItems[r])return!1;var o=t.childItems[r],i=this.getDataById(o),a=n.col;return t.childItems[a]=o,i.col=a,t.childItems[r]=n.id,n.col=r,Ge.dispatch("updateOrder",e),!0}},{key:"setAsChild",value:function(e,t,n,r){var o=this.state.data;if(!this.swapChildren(o,e,t,n)&&!r){var i=this.getDataById(t.parentId),a=t.col;e.childItems[n]=t.id,t.col=n,t.parentId=e.id,t.parentIndex=o.indexOf(e),i&&(i.childItems[a]=null);var s=o.filter((function(t){return t&&t.parentId===e.id})).filter((function(t){return-1===e.childItems.indexOf(t.id)})),c=o;s.length&&(c=o.filter((function(e){return-1===s.indexOf(e)}))),this.getDataById(t.id)||c.push(t),Ge.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(e,t){var n=this.state.data,r=e.childItems[t],o=this.getDataById(r);if(o){var i=n.filter((function(e){return e!==o}));e.childItems[t]=null,this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(e,t){var n=this.state.data,r=this.getDataById(e.data.parentId),o=this.getDataById(t);if(r&&o){var i=n.indexOf(o),a=Re()(n);r.childItems[o.col]=null,delete o.parentId,delete e.setAsChild,delete e.parentIndex,e.index=i,this.seq=this.seq>1e5?0:this.seq+1,Ge.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(e,t,n){var r=this.state.data;n?this.restoreCard(e,n):(r.splice(t,0,e),this.saveData(e,t,t),Ge.dispatch("insertItem",e))}},{key:"moveCard",value:function(e,t){var n=this.state.data[e];this.saveData(n,e,t)}},{key:"cardPlaceHolder",value:function(e,t){}},{key:"saveData",value:function(e,t,n){var r=Ue()(this.state,{data:{$splice:[[t,1],[n,0,e]]}});this.setState(r),Ge.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(e,t){e.custom&&(e.component&&"function"==typeof e.component||(e.component=this.props.registry.get(e.key)));var n=js[e.element];return null===n?null:b.a.createElement(n,{id:e.id,seq:this.seq,index:t,moveCard:this.moveCard,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:e.id,sortData:e.id,data:e,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var e=this,t=function(t){return e.updateElement(t)};t.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,preview:this,element:this.props.editElement,updateElement:t};return this.props.renderEditForm(n)}},{key:"render",value:function(){var e=this,t=this.props.className;this.props.editMode&&(t+=" is-editing");var n=this.state.data.filter((function(e){return!!e&&!e.parentId})).map((function(t,n){return e.getElement(t,n)}));return b.a.createElement("div",{className:t},b.a.createElement("div",{className:"edit-form",ref:this.editForm},null!==this.props.editElement&&this.showEditForm()),b.a.createElement("div",{className:"Sortable"},n),b.a.createElement(qs,{id:"form-place-holder",show:0===n.length,index:n.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),b.a.createElement(Vs,null))}}]),n}(b.a.Component);Gs.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(e){return b.a.createElement(tt,e)}};var Qs=n(30),Zs=n.n(Qs);function Js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var $s={beginDrag:function(e){return{id:Zs.a.uuid(),index:-1,data:e.data,onCreate:e.onCreate}}},Xs=function(e){d()(n,e);var t=Js(n);function n(){return s()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.connectDragSource,n=e.data,r=e.onClick;return t?t(b.a.createElement("li",{onClick:r},b.a.createElement("i",{className:n.icon}),n.name)):null}}]),n}(b.a.Component),ec=pn(fn,$s,(function(e){return{connectDragSource:e.dragSource()}}))(Xs);var tc=function(e){var t=e.name,n=e.group,r=e.renderItem,o=Object(v.useState)(!1),i=$e()(o,2),a=i[0],s=i[1],c="collapse"+(a?" show":"");return b.a.createElement("li",null,b.a.createElement("div",{className:"toolbar-group-item"},b.a.createElement("button",{className:"btn btn-link btn-block text-left",type:"button",onClick:function(){s(!a)}},t),b.a.createElement("div",{className:c},b.a.createElement("ul",null,n.map(r)))))};n(197),n(104),n(137),n(138);function nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ic(e){var t,n,r,o=e.filter((function(e){return!e.group_name})),i=e.filter((function(e){return!!e.group_name}));return{items:o,grouped:(t=i,n=function(e){return e.group_name},r=new Map,t.forEach((function(e){var t=n(e),o=r.get(t);o?o.push(e):r.set(t,[e])})),r),groupKeys:i.map((function(e){return e.group_name})).filter((function(e,t,n){return n.indexOf(e)===t}))}}var ac=function(e){d()(n,e);var t=nc(n);function n(e){var r;s()(this,n),r=t.call(this,e),Be()(p()(r),"renderItem",(function(e){return b.a.createElement(ec,{data:e,key:e.key,onClick:r._onClick.bind(p()(r),e),onCreate:r.create})}));var o=r.props.intl,i=function(e,t){return e?e.map((function(e){var n=t.find((function(t){return e.element===t.element&&t.key===e.key}));return n||(n=t.find((function(t){return(e.element||e.key)===(t.element||t.key)}))),n&&(!1!==e.inherited?n=oc(oc({},n),e):e.group_name&&(n.group_name=e.group_name)),n||e})):t}(e.items,r._defaultItems(o));return r.state={items:i},r.create=r.create.bind(p()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;Ge.subscribe((function(t){return e.setState({store:t})}))}},{key:"_defaultItems",value:function(e){return[{key:"Header",name:e.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:e.formatMessage({id:"place-holder-text"})},{key:"Label",name:e.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:e.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:e.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:e.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:e.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:e.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:e.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:e.formatMessage({id:"tags"}),icon:"fas fa-tags",label:e.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:e.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:e.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:e.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:e.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:e.formatMessage({id:"text-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:e.formatMessage({id:"email-input"}),label:e.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:e.formatMessage({id:"number-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:e.formatMessage({id:"phone-input"}),label:e.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:e.formatMessage({id:"multi-line-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:e.formatMessage({id:"fieldset"}),label:e.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"four-columns-row"}),label:"",icon:"fas fa-columns",field_name:"four_col_row_",col_count:4,class_name:"col-md-3"},{key:"FiveColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"five-columns-row"}),label:"",icon:"fas fa-columns",field_name:"five_col_row_",col_count:5,class_name:"col"},{key:"SixColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"six-columns-row"}),label:"",icon:"fas fa-columns",field_name:"six_col_row_",col_count:6,class_name:"col-md-2"},{key:"Image",name:e.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:e.formatMessage({id:"rating"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-star",field_name:"rating_"},{key:"DatePicker",canDefaultToday:!0,canReadOnly:!0,dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",showTimeSelect:!1,showTimeSelectOnly:!1,showTimeInput:!1,name:e.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:e.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:e.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:e.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:e.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:e.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:e.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:e.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:e.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:e.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:e.formatMessage({id:"easy"}),max_label:e.formatMessage({id:"difficult"})},{key:"Camera",name:e.formatMessage({id:"camera"}),icon:"fas fa-camera",label:e.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:e.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:e.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(e,t){if("custom"===e.type){var n=oc(oc({},e),t);return n.custom=!0,n.component=e.component||null,n.custom_options=e.custom_options||[],n}return t}},{key:"create",value:function(e){var t=this.props.intl,r=e.element||e.key,o=this.addCustomOptions(e,{id:Zs.a.uuid(),element:r,text:e.name,group_name:e.group_name,static:e.static,required:!1,showDescription:e.showDescription});return!0!==this.props.showDescription||e.static||(o.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea"].indexOf(r)&&(o.showPlaceholder=!0),"custom"===e.type&&(o.key=e.key,o.custom=!0,o.forwardRef=e.forwardRef,o.bare=e.bare,o.props=e.props,o.component=e.component||null,o.custom_options=e.custom_options||[]),e.static&&(o.bold=!1,o.italic=!1),o.show_custom_name=e.show_custom_name,o.custom_name=e.custom_name,e.canHaveAnswer&&(o.canHaveAnswer=e.canHaveAnswer),e.canReadOnly&&(o.readOnly=!1),e.canDefaultToday&&(o.defaultToday=!1),e.content&&(o.content=e.content),e.href&&(o.href=e.href),void 0!==e.inherited&&(o.inherited=e.inherited),o.canHavePageBreakBefore=!1!==e.canHavePageBreakBefore,o.canHaveAlternateForm=!1!==e.canHaveAlternateForm,o.canHaveDisplayHorizontal=!1!==e.canHaveDisplayHorizontal,o.canHaveDisplayHorizontal&&(o.inline=e.inline),o.canHaveOptionCorrect=!1!==e.canHaveOptionCorrect,o.canHaveOptionValue=!1!==e.canHaveOptionValue,o.canPopulateFromApi=!1!==e.canPopulateFromApi,e.class_name&&(o.class_name=e.class_name),"Image"===r&&(o.src=e.src),"DatePicker"===r&&(o.dateFormat=e.dateFormat,o.timeFormat=e.timeFormat,o.showTimeSelect=e.showTimeSelect,o.showTimeSelectOnly=e.showTimeSelectOnly,o.showTimeInput=e.showTimeInput),"Download"===r&&(o._href=e._href,o.file_path=e.file_path),"Range"===r&&(o.step=e.step,o.default_value=e.default_value,o.min_value=e.min_value,o.max_value=e.max_value,o.min_label=e.min_label,o.max_label=e.max_label),"MultiColumnRow"===r&&(o.col_count=e.col_count),e.defaultValue&&(o.defaultValue=e.defaultValue),e.field_name&&(o.field_name=e.field_name+Zs.a.uuid()),e.label&&(o.label=e.label),e.options&&(e.options.length>0?o.options=e.options.map((function(e){return oc(oc({},e),{},{key:"custom_option_".concat(Zs.a.uuid())})})):o.options=n._defaultItemOptions(o.element,t)),o}},{key:"_onClick",value:function(e){Ge.dispatch("create",this.create(e))}},{key:"render",value:function(){var e=this,t=ic(this.state.items),n=t.items,r=t.grouped,o=t.groupKeys;return b.a.createElement("div",{className:"col-md-3 react-form-builder-toolbar float-right"},b.a.createElement("h4",null,this.props.intl.formatMessage({id:"toolbox"})),b.a.createElement("ul",null,n.map(this.renderItem),o.map((function(t){return b.a.createElement(tc,{key:t,name:t,group:r.get(t),renderItem:e.renderItem})}))))}}],[{key:"_defaultItemOptions",value:function(e,t){switch(e){case"Dropdown":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(Zs.a.uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(Zs.a.uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(Zs.a.uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:t.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(Zs.a.uuid())},{value:"place_holder_tag_2",text:t.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(Zs.a.uuid())},{value:"place_holder_tag_3",text:t.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(Zs.a.uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(Zs.a.uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(Zs.a.uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(Zs.a.uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(Zs.a.uuid())}];default:return[]}}}]),n}(b.a.Component),sc=Object(Z.c)(ac),cc=n(206),uc=n(139);function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var pc=new Qi.a.FilterXSS({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),fc=function(e){d()(n,e);var t=lc(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).state={errors:[]},r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;this.subscription=this.props.emitter.addListener("formValidation",(function(t){e.setState({errors:t})}))}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(e){e.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var e=this.state.errors.map((function(e,t){return b.a.createElement("li",{key:"error_".concat(t),dangerouslySetInnerHTML:{__html:pc.process(e)}})}));return b.a.createElement("div",null,this.state.errors.length>0&&b.a.createElement("div",{className:"alert alert-danger validation-error"},b.a.createElement("div",{className:"clearfix"},b.a.createElement("i",{className:"fas fa-exclamation-triangle float-left"}),b.a.createElement("ul",{className:"float-left"},e)),b.a.createElement("div",{className:"clearfix"},b.a.createElement("a",{className:"float-right btn btn-default btn-sm btn-danger",onClick:this.dismissModal.bind(this)},b.a.createElement(uc.a,{id:"dismiss"})))))}}]),n}(b.a.Component);function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var hc=Ma.Image,mc=Ma.Checkboxes,gc=Ma.Signature,yc=Ma.Download,vc=Ma.Camera,bc=Ma.FileUpload,wc=function(e){d()(n,e);var t=dc(n);function n(e){var r;return s()(this,n),r=t.call(this,e),Be()(p()(r),"form",void 0),Be()(p()(r),"inputs",{}),Be()(p()(r),"answerData",void 0),Be()(p()(r),"handleRenderSubmit",(function(){var e=r.props.action_name||r.props.actionName||"Submit",t=r.props.submitButton;return void 0!==t&&t||b.a.createElement("input",{type:"submit",className:"btn btn-big",value:e})})),Be()(p()(r),"handleRenderBack",(function(){var e=r.props.back_name||r.props.backName||"Cancel",t=r.props.backButton;return void 0!==t&&t||b.a.createElement("a",{href:r.props.back_action,className:"btn btn-default btn-cancel btn-big"},e)})),r.answerData=r._convert(e.answer_data),r.emitter=new cc.EventEmitter,r.getDataById=r.getDataById.bind(p()(r)),r.handleBlur=r.handleBlur.bind(p()(r)),r.handleChange=r.handleChange.bind(p()(r)),r.handleSubmit=r.handleSubmit.bind(p()(r)),r}return u()(n,[{key:"_convert",value:function(e){if(Array.isArray(e)){var t={};return e.forEach((function(e){e.name.indexOf("tags_")>-1?t[e.name]=e.value.map((function(e){return e.value})):t[e.name]=e.value})),t}return e||{}}},{key:"_getDefaultValue",value:function(e){return this.answerData[e.field_name]}},{key:"_optionsDefaultValue",value:function(e){var t=this,n=this._getDefaultValue(e);if(n)return n;var r=[];return e.options.forEach((function(e){t.answerData["option_".concat(e.key)]&&r.push(e.key)})),r}},{key:"_getItemValue",value:function(e,t){var n={element:e.element,value:""};return"Rating"===e.element?n.value=t.inputField.current.state.rating:"Tags"===e.element?n.value=t.inputField.current.state.value:"DatePicker"===e.element?n.value=t.state.value:"Camera"===e.element?n.value=t.state.img:"FileUpload"===e.element?n.value=t.state.fileUpload:t&&t.inputField&&t.inputField.current&&(n=it.a.findDOMNode(t.inputField.current))&&"string"==typeof n.value&&(n.value=n.value.trim()),n}},{key:"_isIncorrect",value:function(e){var t=!1;if(e.canHaveAnswer){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element)e.options.forEach((function(e){var r=it.a.findDOMNode(n.options["child_ref_".concat(e.key)]);(e.hasOwnProperty("correct")&&!r.checked||!e.hasOwnProperty("correct")&&r.checked)&&(t=!0)}));else{var r=this._getItemValue(e,n);"Rating"===e.element?r.value.toString()!==e.correct&&(t=!0):r.value.toLowerCase()!==e.correct.trim().toLowerCase()&&(t=!0)}}return t}},{key:"_isInvalid",value:function(e){var t=!1;if(!0===e.required){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=0;e.options.forEach((function(e){it.a.findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&(r+=1)})),r<1&&(t=!0)}else{var o=this._getItemValue(e,n);"Rating"===e.element?0===o.value&&(t=!0):(void 0===o.value||o.value.length<1)&&(t=!0)}}return t}},{key:"_collect",value:function(e){var t={id:e.id,name:e.field_name,custom_name:e.custom_name||e.field_name};if(!t.name)return null;var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=[];e.options.forEach((function(e){it.a.findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&r.push(e.key)})),t.value=r}else if("Checkbox"===e.element)n&&n.inputField&&n.inputField.current?t.value=n.inputField.current.checked:t.value=!1;else{if(!n)return null;t.value=this._getItemValue(e,n).value}return t.required=e.required||!1,t}},{key:"_collectFormData",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t._collect(e);r&&n.push(r)})),n}},{key:"_getSignatureImg",value:function(e){var t=this.inputs[e.field_name],n=t.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty(),i=it.a.findDOMNode(t.inputField.current);i.value=o?"":r}}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=[];if(this.props.skip_validations||(t=this.validateForm(),this.emitter.emit("formValidation",t)),t.length<1){var n=this.props.onSubmit;if(n)n(this._collectFormData(this.props.data));else it.a.findDOMNode(this.form).submit()}}},{key:"handleBlur",value:function(e){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data))}},{key:"handleChange",value:function(e){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data))}},{key:"validateForm",value:function(){var e=this,t=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter((function(e){return!0===e.alternateForm}))),n.forEach((function(n){if("Signature"===n.element&&e._getSignatureImg(n),e._isInvalid(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.is-required"}),"!")),"EmailInput"===n.element){var o=e.inputs[n.field_name],i=e._getItemValue(n,o).value;if(i){i.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"})))}}if("PhoneNumber"===n.element){var a=e.inputs[n.field_name],s=e._getItemValue(n,a).value;if(s){s.match(/^[+]?(1\-|1\s|1|\d{3}\-|\d{3}\s|)?((\(\d{3}\))|\d{3})(\-|\s)?(\d{3})(\-|\s)?(\d{4})$/g)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"})))}}e.props.validateForCorrectness&&e._isIncorrect(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))})),t}},{key:"getDataById",value:function(e){return this.props.data.find((function(t){return t.id===e}))}},{key:"getInputElement",value:function(e){var t=this;if(e.custom)return this.getCustomElement(e);var n=Ma[e.element];return b.a.createElement(n,{handleChange:this.handleChange,ref:function(n){return t.inputs[e.field_name]=n},mutable:!0,key:"form_".concat(e.id),data:e,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(e)})}},{key:"getContainerElement",value:function(e,t){var n=this,r=e.childItems.map((function(e){return e?n.getInputElement(n.getDataById(e)):b.a.createElement("div",null," ")}));return b.a.createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(e){var t=Ma[e.element];return b.a.createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(e){var t=this,n=this.props.intl;e.component&&"function"==typeof e.component||(e.component=La.a.get(e.key),e.component||console.error("".concat(e.element," ").concat(n.formatMessage({id:"message.was-not-registered"}))));var r=e.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(e),ref:function(n){return t.inputs[e.field_name]=n}};return b.a.createElement(Na,i()({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(e.id),data:e},r))}},{key:"render",value:function(){var e=this,t=this.props.data;this.props.display_short&&(t=this.props.data.filter((function(e){return!0===e.alternateForm}))),t.forEach((function(t){t&&t.readOnly&&t.variableKey&&e.props.variables[t.variableKey]&&(e.answerData[t.field_name]=e.props.variables[t.variableKey])}));var n=t.filter((function(e){return!e.parentId})).map((function(t){if(!t)return null;switch(t.element){case"TextInput":case"EmailInput":case"PhoneNumber":case"NumberInput":case"TextArea":case"Dropdown":case"DatePicker":case"RadioButtons":case"Rating":case"Tags":case"Range":case"Checkbox":return e.getInputElement(t);case"CustomElement":return e.getCustomElement(t);case"MultiColumnRow":return e.getContainerElement(t,Ja);case"ThreeColumnRow":return e.getContainerElement(t,Za);case"TwoColumnRow":return e.getContainerElement(t,Qa);case"FieldSet":return e.getContainerElement(t,ns);case"Signature":return b.a.createElement(gc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t)});case"Checkboxes":return b.a.createElement(mc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only,handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._optionsDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Image":return b.a.createElement(hc,{ref:function(n){return e.inputs[t.field_name]=n},handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Download":return b.a.createElement(yc,{download_path:e.props.download_path,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert});case"Camera":return b.a.createElement(vc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"FileUpload":return b.a.createElement(bc,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert,defaultValue:e._getDefaultValue(t)});default:return e.getSimpleElement(t)}}));return b.a.createElement("div",null,b.a.createElement(fc,{emitter:this.emitter}),b.a.createElement("div",{className:"react-form-builder-form"},b.a.createElement("form",{encType:"multipart/form-data",ref:function(t){return e.form=t},action:this.props.form_action,onBlur:this.handleBlur,onChange:this.handleChange,onSubmit:this.handleSubmit,method:this.props.form_method},this.props.authenticity_token&&b.a.createElement("div",{style:{display:"none"}},b.a.createElement("input",{name:"utf8",type:"hidden",value:"✓"}),b.a.createElement("input",{name:"authenticity_token",type:"hidden",value:this.props.authenticity_token}),b.a.createElement("input",{name:"task_id",type:"hidden",value:this.props.task_id})),n,b.a.createElement("div",{className:"btn-toolbar"},!this.props.hide_actions&&this.handleRenderSubmit(),!this.props.hide_actions&&this.props.back_action&&this.handleRenderBack()))))}}]),n}(b.a.Component),_c=Object(Z.c)(wc);function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}wc.defaultProps={validateForCorrectness:!1};var Sc={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(207)),locale:"en-US"};function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var kc={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(208)),locale:"it-IT"};function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jc={en:Sc,vi:{messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(209)),locale:"vi-VN"},it:kc};function Mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var xc=function(e){d()(n,e);var t=Mc(n);function n(e){var r;return s()(this,n),(r=t.call(this,e)).state={editMode:!1,editElement:null},r.editModeOn=r.editModeOn.bind(p()(r)),r}return u()(n,[{key:"editModeOn",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:e})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var e={showDescription:this.props.show_description},t=this.props.locale?this.props.locale:"en",n=jc[t];return this.props.toolbarItems&&(e.items=this.props.toolbarItems),b.a.createElement(w.a,{backend:G},b.a.createElement(Le,{locale:n.locale,messages:n.messages},b.a.createElement("div",null,b.a.createElement("div",{className:"react-form-builder clearfix"},b.a.createElement("div",null,b.a.createElement(Gs,{files:this.props.files,manualEditModeOff:this.manualEditModeOff.bind(this),showCorrectColumn:this.props.showCorrectColumn,parent:this,data:this.props.data,url:this.props.url,saveUrl:this.props.saveUrl,onLoad:this.props.onLoad,onPost:this.props.onPost,editModeOn:this.editModeOn,editMode:this.state.editMode,variables:this.props.variables,registry:La.a,editElement:this.state.editElement,renderEditForm:this.props.renderEditForm,saveAlways:this.props.saveAlways}),b.a.createElement(sc,i()({},e,{customItems:this.props.customToolbarItems})))))))}}]),n}(b.a.Component);function Dc(e){var t=e.locale?e.locale:"en",n=jc[t];return b.a.createElement(Le,{locale:n.locale,messages:n.messages},b.a.createElement(_c,e))}var Tc={};Tc.ReactFormBuilder=xc,Tc.ReactFormGenerator=Dc,Tc.ElementStore=Ge,Tc.Registry=La.a;t.default=Tc},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return et}));var r=n(28),o=n(63);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(o.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var a=n(100),s=n(96),c=n(3);function u(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var l=n(79),p=n(45),f=n(46),d=n(12),h=n(1),m=n(4),g=n(9),y=n(25);var v=n(36);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(y.a)(e);if(t){var o=Object(y.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(v.a)(this,n)}}var w=n(7),_=n(8),O=n(2),S=function(){function e(){Object(w.a)(this,e),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",0)}return Object(_.a)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),E=function(e){Object(g.a)(n,e);var t=b(n);function n(e,r,o,i,a){var s;return Object(w.a)(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return Object(_.a)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(S),k=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"subPriority",-1),e}return Object(_.a)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(S),C=function(){function e(){Object(w.a)(this,e),Object(O.a)(this,"incompatibleTokens",void 0),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",void 0)}return Object(_.a)(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new E(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),j=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",140),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["R","u","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),M=n(49),x=/^(1[0-2]|0?\d)/,D=/^(3[0-1]|[0-2]?\d)/,T=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,I=/^(5[0-3]|[0-4]?\d)/,N=/^(2[0-3]|[0-1]?\d)/,A=/^(2[0-4]|[0-1]?\d)/,L=/^(1[0-1]|0?\d)/,P=/^(1[0-2]|0?\d)/,R=/^[0-5]?\d/,z=/^[0-5]?\d/,B=/^\d/,F=/^\d{1,2}/,U=/^\d{1,3}/,H=/^\d{1,4}/,Y=/^-?\d+/,K=/^-?\d/,V=/^-?\d{1,2}/,W=/^-?\d{1,3}/,q=/^-?\d{1,4}/,G=/^([+-])(\d{2})(\d{2})?|Z/,Q=/^([+-])(\d{2})(\d{2})|Z/,Z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,J=/^([+-])(\d{2}):(\d{2})|Z/,$=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ee(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function te(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*M.a+i*M.b+a*M.c),rest:t.slice(n[0].length)}}function ne(e){return ee(Y,e)}function re(e,t){switch(e){case 1:return ee(B,t);case 2:return ee(F,t);case 3:return ee(U,t);case 4:return ee(H,t);default:return ee(new RegExp("^\\d{1,"+e+"}"),t)}}function oe(e,t){switch(e){case 1:return ee(K,t);case 2:return ee(V,t);case 3:return ee(W,t);case 4:return ee(q,t);default:return ee(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ie(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ae(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function se(e){return e%400==0||e%4==0&&e%100!=0}var ce=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return X(re(4,e),r);case"yo":return X(n.ordinalNumber(e,{unit:"year"}),r);default:return X(re(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=ae(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ue=n(64),le=n(40),pe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return X(re(4,e),r);case"Yo":return X(n.ordinalNumber(e,{unit:"year"}),r);default:return X(re(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=Object(ue.a)(e,r);if(n.isTwoDigitYear){var i=ae(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(le.a)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(le.a)(e,r)}}]),n}(C),fe=n(41),de=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return oe("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Object(fe.a)(r)}}]),n}(C),he=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",130),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return oe("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),me=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",120),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return re(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ge=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",120),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return re(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ye=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Object(O.a)(Object(m.a)(e),"priority",110),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return X(ee(x,e),r);case"MM":return X(re(2,e),r);case"Mo":return X(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),ve=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",110),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return X(ee(x,e),r);case"LL":return X(re(2,e),r);case"Lo":return X(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(C),be=n(102);var we=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",100),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ee(I,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Object(le.a)(function(e,t,n){Object(h.a)(2,arguments);var r=Object(c.default)(e),o=Object(d.a)(t),i=Object(be.a)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(C),_e=n(103);var Oe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",100),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ee(I,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Object(fe.a)(function(e,t){Object(h.a)(2,arguments);var n=Object(c.default)(e),r=Object(d.a)(t),o=Object(_e.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(C),Se=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],ke=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"subPriority",1),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ee(D,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){var n=se(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Ee[r]:t>=1&&t<=Se[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(C),Ce=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"subpriority",1),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ee(T,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return se(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(C),je=n(32);function Me(e,t,n){var r,o,i,a,s,u,l,p;Object(h.a)(2,arguments);var f=Object(je.a)(),m=Object(d.a)(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(l=f.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Object(c.default)(e),y=Object(d.a)(t),v=g.getUTCDay(),b=y%7,w=(b+7)%7,_=(w<m?7:0)+y-v;return g.setUTCDate(g.getUTCDate()+_),g}var xe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C),De=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return X(re(t.length,e),o);case"eo":return X(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C),Te=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return X(re(t.length,e),o);case"co":return X(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Me(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(C);var Ie=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",90),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return re(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return X(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return X(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return X(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return X(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){Object(h.a)(2,arguments);var n=Object(d.a)(t);n%7==0&&(n-=7);var r=1,o=Object(c.default)(e),i=o.getUTCDay(),a=n%7,s=(a+7)%7,u=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(C),Ne=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Ae=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Le=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",80),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ie(n),0,0,0),e}}]),n}(C),Pe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ee(P,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(C),Re=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ee(N,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(C),ze=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ee(L,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(C),Be=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",70),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ee(A,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(C),Fe=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",60),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ee(R,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(C),Ue=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",50),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ee(z,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return re(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(C),He=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",30),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){return X(re(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(C),Ye=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T","x"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return te(G,e);case"XX":return te(Q,e);case"XXXX":return te(Z,e);case"XXXXX":return te($,e);case"XXX":default:return te(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(C),Ke=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",10),Object(O.a)(Object(m.a)(e),"incompatibleTokens",["t","T","X"]),e}return Object(_.a)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return te(G,e);case"xx":return te(Q,e);case"xxxx":return te(Z,e);case"xxxxx":return te($,e);case"xxx":default:return te(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(C),Ve=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",40),Object(O.a)(Object(m.a)(e),"incompatibleTokens","*"),e}return Object(_.a)(n,[{key:"parse",value:function(e){return ne(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(C),We=function(e){Object(g.a)(n,e);var t=b(n);function n(){var e;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Object(O.a)(Object(m.a)(e),"priority",20),Object(O.a)(Object(m.a)(e),"incompatibleTokens","*"),e}return Object(_.a)(n,[{key:"parse",value:function(e){return ne(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(C),qe={G:new j,y:new ce,Y:new pe,R:new de,u:new he,Q:new me,q:new ge,M:new ye,L:new ve,w:new we,I:new Oe,d:new ke,D:new Ce,E:new xe,e:new De,c:new Te,i:new Ie,a:new Ne,b:new Ae,B:new Le,h:new Pe,H:new Re,K:new ze,k:new Be,m:new Fe,s:new Ue,S:new He,X:new Ye,x:new Ke,t:new Ve,T:new We},Ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ze=/^'([^]*?)'?$/,Je=/''/g,$e=/\S/,Xe=/[a-zA-Z]/;function et(e,t,n,o){var m,g,y,v,b,w,_,O,S,E,C,j,M,x,D,T,I,N;Object(h.a)(3,arguments);var A=String(e),L=String(t),P=Object(je.a)(),R=null!==(m=null!==(g=null==o?void 0:o.locale)&&void 0!==g?g:P.locale)&&void 0!==m?m:a.a;if(!R.match)throw new RangeError("locale must contain match property");var z=Object(d.a)(null!==(y=null!==(v=null!==(b=null!==(w=null==o?void 0:o.firstWeekContainsDate)&&void 0!==w?w:null==o||null===(_=o.locale)||void 0===_||null===(O=_.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==b?b:P.firstWeekContainsDate)&&void 0!==v?v:null===(S=P.locale)||void 0===S||null===(E=S.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==y?y:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=Object(d.a)(null!==(C=null!==(j=null!==(M=null!==(x=null==o?void 0:o.weekStartsOn)&&void 0!==x?x:null==o||null===(D=o.locale)||void 0===D||null===(T=D.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==M?M:P.weekStartsOn)&&void 0!==j?j:null===(I=P.locale)||void 0===I||null===(N=I.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==C?C:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===L)return""===A?Object(c.default)(n):new Date(NaN);var F,U={firstWeekContainsDate:z,weekStartsOn:B,locale:R},H=[new k],Y=L.match(Qe).map((function(e){var t=e[0];return t in l.a?(0,l.a[t])(e,R.formatLong):e})).join("").match(Ge),K=[],V=i(Y);try{var W=function(){var t=F.value;null!=o&&o.useAdditionalWeekYearTokens||!Object(f.b)(t)||Object(f.c)(t,L,e),null!=o&&o.useAdditionalDayOfYearTokens||!Object(f.a)(t)||Object(f.c)(t,L,e);var n=t[0],r=qe[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=K.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&K.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));K.push({token:n,fullToken:t});var s=r.run(A,t,R.match,U);if(!s)return{v:new Date(NaN)};H.push(s.setter),A=s.rest}else{if(n.match(Xe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=tt(t)),0!==A.indexOf(t))return{v:new Date(NaN)};A=A.slice(t.length)}};for(V.s();!(F=V.n()).done;){var q=W();if("object"===Object(r.a)(q))return q.v}}catch(e){V.e(e)}finally{V.f()}if(A.length>0&&$e.test(A))return new Date(NaN);var G=H.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return H.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Q=Object(c.default)(n);if(isNaN(Q.getTime()))return new Date(NaN);var Z,J=Object(s.a)(Q,Object(p.a)(Q)),$={},X=i(G);try{for(X.s();!(Z=X.n()).done;){var ee=Z.value;if(!ee.validate(J,U))return new Date(NaN);var te=ee.set(J,$,U);Array.isArray(te)?(J=te[0],u($,te[1])):J=te}}catch(e){X.e(e)}finally{X.f()}return J}function tt(e){return e.match(Ze)[1].replace(Je,"'")}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return A}));var r=n(123),o=n(96),i=n(3),a=n(1);var s=n(103),c=n(95),u=n(102),l=n(64);function p(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var f={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return p("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p(n+1,2)},d:function(e,t){return p(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p(e.getUTCHours(),t.length)},m:function(e,t){return p(e.getUTCMinutes(),t.length)},s:function(e,t){return p(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return p(Math.floor(r*Math.pow(10,n-3)),t.length)}},d="midnight",h="noon",m="morning",g="afternoon",y="evening",v="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+p(i,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):_(e,t)}function _(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+p(Math.floor(o/60),2)+n+p(o%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return f.y(e,t)},Y:function(e,t,n,r){var o=Object(l.a)(e,r),i=o>0?o:1-o;return"YY"===t?p(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):p(i,t.length)},R:function(e,t){return p(Object(c.a)(e),t.length)},u:function(e,t){return p(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Object(u.a)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):p(o,t.length)},I:function(e,t,n){var r=Object(s.a)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.d(e,t)},D:function(e,t,n){var r=function(e){Object(a.a)(1,arguments);var t=Object(i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return p(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?h:0===o?d:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?y:o>=12?g:o>=4?m:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.s(e,t)},S:function(e,t){return f.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return w(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return p(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return p((r._originalDate||e).getTime(),t.length)}},S=n(79),E=n(45),k=n(46),C=n(12),j=n(32),M=n(100),x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,I=/''/g,N=/[a-zA-Z]/;function A(e,t,n){var s,c,u,l,p,f,d,h,m,g,y,v,b,w,_,T,I,A;Object(a.a)(2,arguments);var P=String(t),R=Object(j.a)(),z=null!==(s=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:R.locale)&&void 0!==s?s:M.a,B=Object(C.a)(null!==(u=null!==(l=null!==(p=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(d=n.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==p?p:R.firstWeekContainsDate)&&void 0!==l?l:null===(m=R.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==u?u:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Object(C.a)(null!==(y=null!==(v=null!==(b=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(_=n.locale)||void 0===_||null===(T=_.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==b?b:R.weekStartsOn)&&void 0!==v?v:null===(I=R.locale)||void 0===I||null===(A=I.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==y?y:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var U=Object(i.default)(e);if(!Object(r.default)(U))throw new RangeError("Invalid time value");var H=Object(E.a)(U),Y=Object(o.a)(U,H),K={firstWeekContainsDate:B,weekStartsOn:F,locale:z,_originalDate:U},V=P.match(D).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,S.a[t])(e,z.formatLong):e})).join("").match(x).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return L(r);var i=O[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!Object(k.b)(r)||Object(k.c)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Object(k.a)(r)||Object(k.c)(r,t,String(e)),i(Y,r,z.localize,K);if(o.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return V}function L(e){var t=e.match(T);return t?t[1].replace(I,"'"):e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Popper",(function(){return x})),n.d(t,"placements",(function(){return M})),n.d(t,"Manager",(function(){return _})),n.d(t,"Reference",(function(){return N}));var r=n(129),o=n.n(r),i=n(19),a=n.n(i),s=n(57),c=n.n(s),u=n(6),l=n.n(u),p=n(11),f=n.n(p),d=n(205),h=n.n(d),m=n(0),g=n(135),y=n(136),v=n.n(y),b=v()(),w=v()(),_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"referenceNode",void 0),f()(l()(l()(t)),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return m.createElement(b.Provider,{value:this.referenceNode},m.createElement(w.Provider,{value:this.setReferenceNode},this.props.children))},t}(m.Component),O=function(e){return Array.isArray(e)?e[0]:e},S=function(e){if("function"==typeof 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 e.apply(void 0,n)}},E=function(e,t){if("function"==typeof e)return S(e,t);null!=e&&(e.current=t)},k={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},C={},j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"state",{data:void 0,placement:void 0}),f()(l()(l()(t)),"popperInstance",void 0),f()(l()(l()(t)),"popperNode",null),f()(l()(l()(t)),"arrowNode",null),f()(l()(l()(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(E(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),f()(l()(l()(t)),"setArrowNode",(function(e){t.arrowNode=e})),f()(l()(l()(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),f()(l()(l()(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),f()(l()(l()(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):k})),f()(l()(l()(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),f()(l()(l()(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:C})),f()(l()(l()(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),f()(l()(l()(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),f()(l()(l()(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=l()(l()(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new g.a(n,e,t.getOptions()))})),f()(l()(l()(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}c()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&h()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){E(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return O(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(m.Component);f()(j,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var M=g.a.placements;function x(e){var t=e.referenceElement,n=o()(e,["referenceElement"]);return m.createElement(b.Consumer,null,(function(e){return m.createElement(j,a()({referenceElement:void 0!==t?t:e},n))}))}var D=n(130),T=n.n(D),I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(l()(t)),"refHandler",(function(e){E(t.props.innerRef,e),S(t.props.setReferenceNode,e)})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){E(this.props.innerRef,null)},n.render=function(){return T()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),O(this.props.children)({ref:this.refHandler})},t}(m.Component);function N(e){return m.createElement(w.Consumer,null,(function(t){return m.createElement(I,a()({setReferenceNode:t},e))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var r=n(3),o=n(66),i=n(1);function a(e){return Object(i.a)(1,arguments),Object(o.default)(e,{weekStartsOn:1})}function s(e){Object(i.a)(1,arguments);var t=Object(r.default)(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=a(o),c=new Date(0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);var u=a(c);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function c(e){Object(i.a)(1,arguments);var t=s(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=a(n);return r}function u(e){Object(i.a)(1,arguments);var t=Object(r.default)(e),n=a(t).getTime()-c(t).getTime();return Math.round(n/6048e5)+1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(5),o=n(31),i=n(26),a=n(133);function s(e,t){return t?Object.keys(e).reduce((function(n,o){var i,a;return n[o]=(i=e[o],(a=t[o])?Object(r.a)(Object(r.a)(Object(r.a)({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=Object(r.a)(Object(r.a)({},i[t]),a[t]||{}),e}),{})):i),n}),Object(r.a)({},e)):e}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var u=function(){function e(t,n,o,u){var l,p=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=p.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===a.a.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Object(a.b)(p.ast,p.locales,p.formatters,p.formats,e,void 0,p.message)},this.resolvedOptions=function(){return{locale:p.resolvedLocale.toString()}},this.getAst=function(){return p.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==u?void 0:u.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,o),this.formatters=u&&u.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.number),strategy:i.b.variadic}),getDateTimeFormat:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.dateTime),strategy:i.b.variadic}),getPluralRules:Object(i.a)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Object(r.d)([void 0],t,!1)))}),{cache:c(l.pluralRules),strategy:i.b.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=o.m,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(0),o=n(60);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(null==e)return{};var n,r,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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=0,u=Object(r.memo)((function(e){var t=e.children,n=i(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[l]||(i[l]=Object(o.b)(e,t,n,r));return i[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(s(e,["children"])),2),a=n[0],u=n[1];return r.useEffect((function(){return u&&c++,function(){u&&(0===--c&&(p()[l]=null))}}),[]),r.createElement(o.a.Provider,{value:a},t)}));u.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function p(){return void 0!==e?e:window}}).call(this,n(42))}])}));