react-form-builder-more-flexibility 1.0.25 → 1.0.27
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.css +1 -1
- package/dist/app.js +1 -1
- package/lib/form-elements/component-label.js +5 -2
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -42,4 +42,4 @@ object-assign
|
|
|
42
42
|
function r(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function o(t,e,n,r){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=r}function i(t,e){var n=this,r=e||{};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(t,e,n){var r,o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,i=t.apply(r,o),a||(r=o=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=e-(u-s);return r=this,o=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=u,i=t.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=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}n.r(e),r.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},r.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},r.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},o.prototype.length=function(){for(var t=0,e=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-e,c=a-n;t+=Math.sqrt(s*s+c*c)}e=i,n=a}return t},o.prototype._point=function(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t},i.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(t){var e=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=t,r.onload=function(){e._ctx.drawImage(r,0,0,i,a)},this._isEmpty=!1},i.prototype.toDataURL=function(t){var e;switch(t){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(e=this._canvas).toDataURL.apply(e,[t].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(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},i.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,r=this._createPoint(e,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(t){var e=this.points.length>2,n=this.points[0];if(!e&&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(t)},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(t,e,n){var o=this._canvas.getBoundingClientRect();return new r(t-o.left,e-o.top,n||(new Date).getTime())},i.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,r=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,i=new o(e[1],n,r,e[2]),a=this._calculateCurveWidths(i);return e.shift(),{curve:i,widths:a}}return{}},i.prototype._calculateCurveControlPoints=function(t,e,n){var o=t.x-e.x,i=t.y-e.y,a=e.x-n.x,s=e.y-n.y,c=(t.x+e.x)/2,u=(t.y+e.y)/2,l=(e.x+n.x)/2,f=(e.y+n.y)/2,p=Math.sqrt(o*o+i*i),d=Math.sqrt(a*a+s*s),h=d/(p+d),g=l+(c-l)*h,m=f+(u-f)*h,y=e.x-g,v=e.y-m;return{c1:new r(c+y,u+v),c2:new r(l+y,f+v)}},i.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(e)+(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(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},i.prototype._drawPoint=function(t,e,n){var r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(t,e,n){var r=this._ctx,o=n-e,i=Math.floor(t.length());r.beginPath();for(var a=0;a<i;a+=1){var s=a/i,c=s*s,u=c*s,l=1-s,f=l*l,p=f*l,d=p*t.startPoint.x;d+=3*f*s*t.control1.x,d+=3*l*c*t.control2.x,d+=u*t.endPoint.x;var h=p*t.startPoint.y;h+=3*f*s*t.control1.y,h+=3*l*c*t.control2.y,h+=u*t.endPoint.y;var g=e+u*o;this._drawPoint(d,h,g)}r.closePath(),r.fill()},i.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},i.prototype._fromData=function(t,e,n){for(var o=0;o<t.length;o+=1){var i=t[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),f=l.curve,p=l.widths;f&&p&&e(f,p,u)}}else this._reset(),n(i[0])}},i.prototype._toSVG=function(){var t=this,e=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(e,(function(t,e,n){var r=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var o="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(e){var n=document.createElement("circle"),r="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",r),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.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 f=0;f<l.length;f+=1)u.appendChild(l[f].cloneNode(!0));c=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},i.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,(function(t,n){return e._drawCurve(t,n.start,n.end)}),(function(t){return e._drawDot(t)})),this._data=t},i.prototype.toData=function(){return this._data},e.default=i},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,r){return function(t,e,n,r){return{red:r[4*(n*e+t)],green:r[4*(n*e+t)+1],blue:r[4*(n*e+t)+2],alpha:r[4*(n*e+t)+3]}}(t,e,n,r).alpha}function r(t,e,r,o){for(var i=t?1:-1,a=t?0:r-1;t?a<r:a>-1;a+=i)for(var s=0;s<e;s++)if(n(s,a,e,o))return a;return null}function o(t,e,r,o){for(var i=t?1:-1,a=t?0:e-1;t?a<e:a>-1;a+=i)for(var s=0;s<r;s++)if(n(a,s,e,o))return a;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,i=t.height,a=e.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,f=c-s+1,p=e.getImageData(u,s,l,f);return t.width=l,t.height=f,e.clearRect(0,0,l,f),e.putImageData(p,0,0),t}}])},function(t,e,n){"use strict";var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s="object"===("undefined"==typeof window?"undefined":a(window));
|
|
43
43
|
/*! =======================================================
|
|
44
44
|
VERSION 10.6.2
|
|
45
|
-
========================================================= */o=[n(200)],void 0===(i="function"==typeof(r=function(t){var e;return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(t){var e=Array.prototype.slice;function n(){}!function(t){if(t){var r="undefined"==typeof console?n:function(t){console.error(t)};t.bridget=function(n,o){!function(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}(o),function(n,o){t.fn[n]=function(i){if("string"==typeof i){for(var a=e.call(arguments,1),s=0,c=this.length;s<c;s++){var u=this[s],l=t.data(u,n);if(l)if(t.isFunction(l[i])&&"_"!==i.charAt(0)){var f=l[i].apply(l,a);if(void 0!==f&&f!==l)return f}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 p=this.map((function(){var e=t.data(this,n);return e?(e.option(i),e._init()):(e=new o(this,i),t.data(this,n,e)),t(this)}));return 1===p.length?p[0]:p}}(n,o)},t.bridget}}(t)}(t),function(t){var n=void 0,r=function(t){return"Invalid input value '"+t+"' passed in"},o={linear:{getValue:function(t,e){return t<e.min?e.min:t>e.max?e.max:t},toValue:function(t){var e=t/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(t<=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}e=r+(t-a)/(s-a)*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(e/this.options.step)*this.options.step;return o.linear.getValue(u,this.options)},toPercentage:function(t){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var e,n,r,o=0,i=0;i<this.options.ticks.length;i++)if(t<=this.options.ticks[i]){e=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+(t-e)/(n-e)*(o-r)}return 100*(t-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(t){var e=1-this.options.min,n=Math.log(this.options.min+e),r=Math.log(this.options.max+e),i=Math.exp(n+(r-n)*t/100)-e;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(t){if(this.options.max===this.options.min)return 0;var e=1-this.options.min,n=Math.log(this.options.max+e),r=Math.log(this.options.min+e);return 100*(Math.log(t+e)-r)/(n-r)}}};function i(e,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 e?this.element=document.querySelector(e):e instanceof HTMLElement&&(this.element=e),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:f(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 f(t,e){var n="data-slider-"+e.replace(/_/g,"-"),r=t.getAttribute(n);try{return JSON.parse(r)}catch(t){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 p,d,h,g,m,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",(p=document.createElement("div")).className="slider-selection",(h=document.createElement("div")).className="slider-track-high",(g=document.createElement("div")).className="slider-handle min-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),(m=document.createElement("div")).className="slider-handle max-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),w.appendChild(d),w.appendChild(p),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]&&g.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&m.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(g.setAttribute("aria-labelledby",this.options.labelledby),m.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 j=document.createElement("div");if(j.className="slider-tick",this.options.ticks_tooltip){var M=this._addTickListener(),C=M.addMouseEnter(this,j,s),x=M.addMouseLeave(this,j);this.ticksCallbackMap[s]={mouseEnter:C,mouseLeave:x}}this.ticks.push(j),this.ticksContainer.appendChild(j)}p.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 L=function(t){var e=document.createElement("div");e.className="tooltip-arrow";var n=document.createElement("div");n.className="tooltip-inner",t.appendChild(e),t.appendChild(n)},N=document.createElement("div");N.className="tooltip tooltip-main",N.setAttribute("role","presentation"),L(N);var A=document.createElement("div");A.className="tooltip tooltip-min",A.setAttribute("role","presentation"),L(A);var P=document.createElement("div");P.className="tooltip tooltip-max",P.setAttribute("role","presentation"),L(P),this.sliderElem.appendChild(w),this.sliderElem.appendChild(N),this.sliderElem.appendChild(A),this.sliderElem.appendChild(P),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(g),this.sliderElem.appendChild(m),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(t&&(this.$element=t(this.element),this.$sliderElem=t(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(t){this._removeProperty(this.trackLow,t),this._removeProperty(this.trackSelection,t),this._removeProperty(this.trackHigh,t)}),this),[this.handle1,this.handle2].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top"),this._removeClass(t,"right"),this._removeClass(t,"left"),this._removeClass(t,"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=p||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=g||this.handle1,this.handle2=m||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()}(e=function(t,e){return i.call(this,t,e),this}).prototype={_init:function(){},constructor:e,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(t){return Array.isArray(t)?t[0]+" : "+t[1]:t},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(t,e,n){t||(t=0);var r=this.getValue();this._state.value=this._validateInputValue(t);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===e&&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"),t&&(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(t,e){return this._bindNonQueryEventHandler(t,e),this},off:function(e,n){t?(this.$element.off(e,n),this.$sliderElem.off(e,n)):this._unbindNonQueryEventHandler(e,n)},getAttribute:function(t){return t?this.options[t]:this.options},setAttribute:function(t,e){return this.options[t]=e,this},refresh:function(e){var r=this.getValue();return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),e&&!0===e.useCurrentValue&&this.setValue(r),t&&("slider"===n?(t.data(this.element,"slider",this),t.data(this.element,"bootstrapSlider",this)):t.data(this.element,"bootstrapSlider",this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(t,e){this.handle1.removeEventListener(t,e,!1),this.handle2.removeEventListener(t,e,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var t=this.ticksContainer.getElementsByClassName("slider-tick"),e=0;e<t.length;e++)t[e].removeEventListener("mouseenter",this.ticksCallbackMap[e].mouseEnter,!1),t[e].removeEventListener("mouseleave",this.ticksCallbackMap[e].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(t,e){void 0===this.eventToCallbackMap[t]&&(this.eventToCallbackMap[t]=[]),this.eventToCallbackMap[t].push(e)},_unbindNonQueryEventHandler:function(t,e){var n=this.eventToCallbackMap[t];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===e){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var t=Object.keys(this.eventToCallbackMap),e=0;e<t.length;e++){var n=t[e];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(t){var e=this,n=this.options.formatter(t?t.value[0]:this._state.value[0]),r=o(t||this._state,this.options.reversed);function o(t,n){return n?[100-t.percentage[0],e.options.range?100-t.percentage[1]:t.percentage[1]]:[t.percentage[0],t.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(t,e,n){var r=function(){var r=t._copyState(),o=e===t.handle1?r.value[0]:r.value[1],i=void 0;void 0!==n?(o=t.options.ticks[n],i=t.options.ticks_positions.length>0&&t.options.ticks_positions[n]||t._toPercentage(t.options.ticks[n])):i=t._toPercentage(o),r.value[0]=o,r.percentage[0]=i,t._setToolTipOnMouseOver(r),t._showTooltip()};return e.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(t,e){var n=function(){t._hideTooltip()};return e.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var t,e,n;if(t=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]=t[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),e=this.options.formatter(this._state.value[0]),isNaN(e)?this.handle1.setAttribute("aria-valuetext",e):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=t[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),e=this.options.formatter(this._state.value[1]),isNaN(e)?this.handle2.setAttribute("aria-valuetext",e):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 f=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[c]=-l/2+"px"),f=this.tickLabelContainer.offsetHeight;else for(p=0;p<this.tickLabelContainer.childNodes.length;p++)this.tickLabelContainer.childNodes[p].offsetHeight>f&&(f=this.tickLabelContainer.childNodes[p].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=f+"px")}for(var p=0;p<this.options.ticks.length;p++){var d=this.options.ticks_positions[p]||this._toPercentage(this.options.ticks[p]);this.options.reversed&&(d=100-d),this.ticks[p].style[this.stylePos]=d+"%",this._removeClass(this.ticks[p],"in-selection"),this.options.range?d>=t[0]&&d<=t[1]&&this._addClass(this.ticks[p],"in-selection"):("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.ticks[p],"in-selection"),this.tickLabels[p]&&(this.tickLabels[p].style[u]=l+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[p]?(this.tickLabels[p].style.position="absolute",this.tickLabels[p].style[this.stylePos]=d+"%",this.tickLabels[p].style[c]=-l/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[p].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[p].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[p],"label-in-selection label-is-selection"),this.options.range?d>=t[0]&&d<=t[1]&&(this._addClass(this.tickLabels[p],"label-in-selection"),(d===t[0]||t[1])&&this._addClass(this.tickLabels[p],"label-is-selection")):(("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.tickLabels[p],"label-in-selection"),d===t[0]&&this._addClass(this.tickLabels[p],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(t[1]+t[0])/2+"%";var h=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,h);var g=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,g),this.tooltip_min.style[this.stylePos]=t[0]+"%",this.tooltip_max.style[this.stylePos]=t[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=t[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(t[0],t[1])+"%",this.trackSelection.style.top=Math.min(t[0],t[1])+"%",this.trackSelection.style.height=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(t[0],t[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(t[0],t[1])+"%":this.trackSelection.style.left=Math.min(t[0],t[1])+"%",this.trackSelection.style.width=Math.abs(t[0]-t[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";var m=this.tooltip_min.getBoundingClientRect(),y=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?m.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=""):m.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(t,e){return this._isHighlightRange(t,e)?t>e?{start:e,size:t-e}:{start:t,size:e-t}:null},_isHighlightRange:function(t,e){return 0<=t&&t<=100&&0<=e&&e<=100},_resize:function(t){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},_mousedown:function(t){if(!this._state.enabled)return!1;t.preventDefault&&t.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var e=this._getPercentage(t);if(this.options.range){var n=Math.abs(this._state.percentage[0]-e),r=Math.abs(this._state.percentage[1]-e);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(e)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=e,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),t.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(t){this._mousedown(t)},_triggerFocusOnHandle:function(t){0===t&&this.handle1.focus(),1===t&&this.handle2.focus()},_keydown:function(t,e){if(!this._state.enabled)return!1;var n;switch(e.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[t]))&&(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[t]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=t,this.options.range){this._adjustPercentageForRangeSliders(u);var l=this._state.keyCtrl?this._state.value[0]:s,f=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,f))]}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(e),delete this._state.keyCtrl,!1}},_pauseEvent:function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1},_mousemove:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(t){void 0!==t.changedTouches&&t.preventDefault&&t.preventDefault()},_adjustPercentageForRangeSliders:function(t){if(this.options.range){var e=this._getNumDigitsAfterDecimalPlace(t);e=e?e-1:0;var n=this._applyToFixedAndParseFloat(t,e);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],e)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],e)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<t?(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])>t&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e,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(t,e){var n=0===t?0:100;this._state.percentage[t]!==n&&(e.data[t]=this._toValue(this._state.percentage[t]),e.data[t]=this._applyPrecision(e.data[t]))},_calculateValue:function(t){var e={};return this.options.range?(e.data=[this.options.min,this.options.max],this._setValues(0,e),this._setValues(1,e),t&&(e.data[0]=this._snapToClosestTick(e.data[0]),e.data[1]=this._snapToClosestTick(e.data[1]))):(e.data=this._toValue(this._state.percentage[0]),e.data=parseFloat(e.data),e.data=this._applyPrecision(e.data),t&&(e.data=this._snapToClosestTick(e.data))),e.data},_snapToClosestTick:function(t){for(var e=[t,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-t);r<=e[1]&&(e=[this.options.ticks[n],r])}return e[1]<=this.options.ticks_snap_bounds?e[0]:t},_applyPrecision:function(t){var e=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(t,e)},_getNumDigitsAfterDecimalPlace:function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},_applyToFixedAndParseFloat:function(t,e){var n=t.toFixed(e);return parseFloat(n)},_getPercentage:function(t){!this.touchCapable||"touchstart"!==t.type&&"touchmove"!==t.type&&"touchend"!==t.type||(t=t.changedTouches[0]);var e=t[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(e=-e);var n=e/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(t){if(isNaN(+t)){if(Array.isArray(t))return this._validateArray(t),t;throw new Error(r(t))}return+t},_validateArray:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("number"!=typeof n)throw new Error(r(n))}},_setDataVal:function(t){this.element.setAttribute("data-value",t),this.element.setAttribute("value",t),this.element.value=t},_trigger:function(e,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[e];if(r&&r.length)for(var o=0;o<r.length;o++)(0,r[o])(n);t&&this._triggerJQueryEvent(e,n)},_triggerJQueryEvent:function(t,e){var n={type:t,value:e};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(t,e){void 0!==t.textContent?t.textContent=e:void 0!==t.innerText&&(t.innerText=e)},_removeClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o],a=new RegExp("(?:\\s|^)"+i+"(?:\\s|$)");r=r.replace(a," ")}t.className=r.trim()},_addClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o];new RegExp("(?:\\s|^)"+i+"(?:\\s|$)").test(r)||(r+=" "+i)}t.className=r.trim()},_offsetLeft:function(t){return t.getBoundingClientRect().left},_offsetRight:function(t){return t.getBoundingClientRect().right},_offsetTop:function(t){for(var e=t.offsetTop;(t=t.offsetParent)&&!isNaN(t.offsetTop);)e+=t.offsetTop,"BODY"!==t.tagName&&(e-=t.scrollTop);return e},_offset:function(t){return{left:this._offsetLeft(t),right:this._offsetRight(t),top:this._offsetTop(t)}},_css:function(e,n,r){if(t)t.style(e,n,r);else{var o=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}));e.style[o]=r}},_toValue:function(t){return this.options.scale.toValue.apply(this,[t])},_toPercentage:function(t){return this.options.scale.toPercentage.apply(this,[t])},_setTooltipPosition:function(){var t=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var e,n="left"===(e=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";t.forEach(function(t){this._addClass(t,e),t.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?t.forEach(function(t){this._addClass(t,"bottom"),t.style.top="22px"}.bind(this)):t.forEach(function(t){this._addClass(t,"top"),t.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(t){for(var e=Math.abs(t-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var o=Math.abs(t-this.options.ticks[r]);o<e&&(e=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])])}},t&&t.fn&&(t.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),n="bootstrapSlider"):(t.bridget("slider",e),n="slider"),t.bridget("bootstrapSlider",e),t((function(){t("input[data-provide=slider]")[n]()})))}(t),e})?r.apply(e,o):r)||(t.exports=i)},function(t,e){t.exports=null},function(t,e,n){var r=n(123),o=n(202);n(124);function i(t){return null==t}function a(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||r.whiteList,t.onAttr=t.onAttr||r.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||r.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,this.options=t}a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onAttr,a=e.onIgnoreAttr,s=e.safeAttrValue;return o(t,(function(t,e,o,c,u){var l=n[o],f=!1;if(!0===l?f=l:"function"==typeof l?f=l(c):l instanceof RegExp&&(f=l.test(c)),!0!==f&&(f=!1),c=s(o,c)){var p,d={position:e,sourcePosition:t,source:u,isWhite:f};return f?i(p=r(o,c,d))?o+":"+c:p:i(p=a(o,c,d))?void 0:p}}))},t.exports=a},function(t,e,n){var r=n(124);t.exports=function(t,e){";"!==(t=r.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(t.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 f=e(i,s.length,u,l,n);f&&(s+=f+"; ")}}}i=a+1}for(;a<n;a++){var u=t[a];if("/"===u&&"*"===t[a+1]){var l=t.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(t,e,n){var r=n(96).FilterCSS,o=n(122),i=n(125),a=i.parseTag,s=i.parseAttr,c=n(97);function u(t){return null==t}function l(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=o.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map((function(t){return t.toLowerCase()})):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=o.whiteList,t.onTag=t.onTag||o.onTag,t.onTagAttr=t.onTagAttr||o.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||o.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||o.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||o.safeAttrValue,t.escapeHtml=t.escapeHtml||o.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}l.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onTag,i=e.onIgnoreTag,l=e.onTagAttr,f=e.onIgnoreTagAttr,p=e.safeAttrValue,d=e.escapeHtml,h=this.cssFilter;e.stripBlankChar&&(t=o.stripBlankChar(t)),e.allowCommentTag||(t=o.stripCommentTag(t));var g=!1;e.stripIgnoreTagBody&&(g=o.StripTagBody(e.stripIgnoreTagBody,i),i=g.onIgnoreTag);var m=a(t,(function(t,e,o,a,g){var m={sourcePosition:t,position:e,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(n,o)},y=r(o,a,m);if(!u(y))return y;if(m.isWhite){if(m.isClosing)return"</"+o+">";var v=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=c.trim(t.slice(0,-1))),{html:t,closing:n}}(a),b=n[o],w=s(v.html,(function(t,e){var n=-1!==c.indexOf(b,t),r=l(o,t,e,n);return u(r)?n?(e=p(o,t,e,h))?t+'="'+e+'"':t:u(r=f(o,t,e,n))?void 0:r:r}));return a="<"+o,w&&(a+=" "+w),v.closing&&(a+=" /"),a+=">"}return u(y=i(o,a,m))?d(a):y}),d);return g&&(m=g.remove(m)),m},t.exports=l},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(116);t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(64),a=n(37),s=n(50),c=n(38),u=n(32),l=n(21),f=n(42),p=n(47),d=n(17),h=n(222),g=p("draft_tree_data_support"),m=g?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(t,e,n){var o=t.getCurrentContent(),s=t.getSelection(),c=u.removeRange(o,s,"backward"),p=c.getSelectionAfter(),d=u.splitBlock(c,p),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),w=a.create({entity:e}),_={key:f(),type:"atomic",text:n,characterList:y(v(w,n.length))},O={key:f(),type:"unstyled"};g&&(_=r({},_,{nextSibling:O.key}),O=r({},O,{prevSibling:_.key}));var S=[new m(_),new m(O)],E=i.createFromArray(S),k=u.replaceWithFragment(b,h,E),j=k.merge({selectionBefore:s,selectionAfter:k.getSelectionAfter().set("hasFocus",!0)});return l.push(t,j,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,e,s,r)}else{var c=u.removeRange(i,n,"backward"),f=c.getSelectionAfter(),p=c.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=h(c,e,p,"before");else if(f.getEndOffset()===p.getLength())o=h(c,e,p,"after");else{var d=u.splitBlock(c,f),g=d.getSelectionAfter(),m=d.getBlockForKey(g.getFocusKey());o=h(d,e,m,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(t,y,"move-block")}};t.exports=b},function(t,e,n){"use strict";var r=n(37),o=n(17).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===u})).concat(o([[u,a.get(u)]])).map((function(t,e){var o,a;s===u?(o=c,a=l):(o=e===s?c:0,a=e===u?l:t.getLength());for(var f,p=t.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=i},function(t,e,n){"use strict";var r=n(210),o=n(17);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=i.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(t,e){var o=e===a?s:0,i=e===c?u:t.getLength();return r(t,o,i,n)}));return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(37);t.exports=function(t,e,n,o){for(var i=e,a=t.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},function(t,e,n){"use strict";var r=n(212),o=n(213),i=n(18);function a(t,e,n,a,s,c,u){var l=n.getStartOffset(),f=n.getEndOffset(),p=t.__get(s).getMutability(),d=u?l:f;if("MUTABLE"===p)return n;var h=o(e,s).filter((function(t){return d<=t.end&&d>=t.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?f=g.end:l=g.start);var m=r.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}t.exports=function(t,e,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=e.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(t,e,l,o,c,!0,!0);else if(c&&u){var f=a(t,e,l,o,c,!1,!0),p=a(t,n,l,o,u,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var d=a(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(t,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(t,e,n){"use strict";t.exports={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map((function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(t<(a=s+i[l].length)&&s<e)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}}},function(t,e,n){"use strict";var r=n(18);t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){n.push({start:t,end:e})})),n.length||r(!1),n}},function(t,e,n){"use strict";var r=n(64),o=n(38),i=n(17),a=n(128),s=n(18),c=n(126),u=i.List,l=function(t,e,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(),f=o,p=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 g=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return t.merge({blockMap:n.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})},f=function(t,e,n,i,a,s){var c=n.first()instanceof o,l=[],f=i.size,p=n.get(a),d=i.first(),h=i.last(),g=h.getLength(),m=h.getKey(),y=c&&(!p.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(t,e){e===a?(y?l.push(t):l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),s=n.first();return t.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?t.getType():s.getType(),data:s.getData()})}(t,s,i)),i.slice(y?0:1,f-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),s=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(t,s,i))):l.push(t)}));var v=r.createFromArray(l);return c&&(v=function(t,e,n,r){return t.withMutations((function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=c[c.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),c.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var f=t.get(s).getChildKeys(),p=f.indexOf(o)+1,d=f.toArray();d.splice.apply(d,[p,0].concat(c)),e.setIn([s,"children"],u(d))}}))}(v,0,p,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})};t.exports=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var i=t.getBlockMap(),a=c(n),u=e.getStartKey(),p=e.getStartOffset(),d=i.get(u);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1)),1===a.size?l(t,e,i,a.first(),u,p,r):f(t,e,i,a,u,p)}},function(t,e,n){"use strict";var r=n(17),o=n(128),i=n(18),a=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return t;var c=t.getBlockMap(),u=e.getStartKey(),l=e.getStartOffset(),f=c.get(u),p=f.getText(),d=f.merge({text:p.slice(0,l)+n+p.slice(l,f.getLength()),characterList:o(f.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},function(t,e,n){"use strict";var r=n(38),o=n(130),i=n(17),a=(i.List,i.Map),s=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},u=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},f=function(t,e,n,r){return t.withMutations((function(i){if(s(e.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),s(n.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),c(e.getKey(),r).forEach((function(t){return s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),s(e.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r)})})),s(n.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:l(t,i,r)})})),s(n.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(t){s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),function(t,e){var n=[];if(!t)return n;for(var r=o(t,e);r&&e.get(r);){var i=e.get(r);n.push(r),r=i.getParentKey()?o(i,e):null}return n}(n,r).forEach((function(t){return s(t,i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(n.getKey(),i,(function(t){return t.merge({prevSibling:a})})),s(a,i,(function(t){return t.merge({nextSibling:n.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,i,(function(t){return t.merge({parent:p})}))})),null!=p){var d=t.get(p);s(p,i,(function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),i,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))},p=function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),s=e.getStartKey(),u=e.getStartOffset(),l=e.getEndKey(),d=e.getEndOffset(),h=i.get(s),g=i.get(l),m=h instanceof r,y=[];if(m){var v=g.getChildKeys(),b=c(l,i);g.getNextSiblingKey()&&(y=y.concat(b)),v.isEmpty()||(y=y.concat(b.concat([l]))),y=y.concat(c(o(g,i),i))}n=h===g?p(h.getCharacterList(),u,d):h.getCharacterList().slice(0,u).concat(g.getCharacterList().slice(d));var w=h.merge({text:h.getText().slice(0,u)+g.getText().slice(d),characterList:n}),_=m&&0===u&&0===d&&g.getParentKey()===s&&null==g.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===l})).filter((function(t,e){return-1===y.indexOf(e)})).concat(a([[l,null]])).map((function(t,e){return e===s?w:null})),O=i.merge(_).filter((function(t){return!!t}));return m&&h!==g&&(O=f(O,h,g,i)),t.merge({blockMap:O,selectionBefore:e,selectionAfter:e.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},function(t,e,n){"use strict";var r=n(38),o=n(42),i=n(17),a=n(18),s=n(129),c=i.List,u=i.Map,l=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.getBlockMap(),f=i.get(n),p=f.getText();if(!p){var d=f.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var h=e.getAnchorOffset(),g=f.getCharacterList(),m=o(),y=f instanceof r,v=f.merge({text:p.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:m,text:p.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil((function(t){return t===f})),_=i.toSeq().skipUntil((function(t){return t===f})).rest(),O=w.concat([[n,v],[m,b]],_).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),O=function(t,e,n){return t.withMutations((function(t){var r=e.getKey(),o=n.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:c(i)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:o})})),l(r,t,(function(t){return t.merge({nextSibling:o})})),l(o,t,(function(t){return t.merge({prevSibling:r})}))}))}(O,v,b)),t.merge({blockMap:O,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(65),i=n(131),a=n(17),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(t,e,n){var r=e.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(e,t):s(c(null,r)),u=e.getCharacterList();return o(a,g,l,(function(t,e){i.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:h(u.slice(t,e).toList(),t)}))})),s(i)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},n,{leaves:null!=e?s(Array.isArray(e)?e:i(e)).map((function(t){return f(t)})):null}))}};function h(t,e){var n=[],r=t.map((function(t){return t.getStyle()})).toList();return o(r,g,l,(function(t,r){n.push(new f({start:t+e,end:r+e}))})),s(n)}function g(t,e){return t===e}t.exports=d},function(t,e,n){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},function(t,e,n){"use strict";var r,o=n(221),i=n(17),a=n(33),s=i.OrderedMap,c={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),c=n.valueSeq().map((function(t){return a(r).getDirection(t.getText())})),u=s(n.keySeq().zip(c));return null!=e&&i.is(e,u)?e:u}};t.exports=c},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(99),i=n(75),a=n(18),s=function(){function t(t){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},function(t,e,n){"use strict";var r=n(38),o=n(130),i=n(17),a=n(18),s=i.OrderedMap,c=i.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),s=n.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return t.withMutations((function(t){u(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),u(p,t,(function(t){return t.merge({nextSibling:f})})),u(f,t,(function(t){return t.merge({prevSibling:p})})),u(h,t,(function(t){return t.merge({prevSibling:a})})),u(g,t,(function(t){return t.merge({nextSibling:a})})),u(d,t,(function(t){var e=t.getChildKeys(),n=e.indexOf(s),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:c(o)})})),u(a,t,(function(t){return t.merge({nextSibling:h,prevSibling:g,parent:d})}))}))};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=e.getKey();u===c&&a(!1);var f=t.getBlockMap(),p=e instanceof r,d=[e],h=f.delete(u);p&&(d=[],h=f.withMutations((function(t){var n=e.getNextSiblingKey(),r=o(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===u})).takeWhile((function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,a=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||a)})).forEach((function(e){d.push(e),t.delete(e.getKey())}))})));var g=h.toSeq().takeUntil((function(t){return t===n})),m=h.toSeq().skipUntil((function(t){return t===n})).skip(1),y=d.map((function(t){return[t.getKey(),t]})),v=s();if("before"===i){var b=t.getBlockBefore(c);b&&b.getKey()===e.getKey()&&a(!1),v=g.concat([].concat(y,[[c,n]]),m).toOrderedMap()}else if("after"===i){var w=t.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(y),m).toOrderedMap()}return t.merge({blockMap:l(v,e,n,i,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},function(t,e,n){"use strict";var r=n(17).List,o=function(){function t(t){var e,n,r;r=void 0,(n="_decorators")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(t,(function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(!function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)}),e)})),r(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},function(t,e,n){"use strict";(function(e){var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var u=n(100),l=n(134),f=n(225),p=n(233),d=n(250),h=n(253),g=n(288),m=n(289),y=n(146),v=n(21),b=n(0),w=n(103),_=n(79),O=n(34),S=n(51),E=n(42),k=n(162),j=n(80),M=n(47),C=n(18),x=n(66),D=n(33),T=O.isBrowser("IE"),I=!T,L={edit:h,composite:f,drag:d,cut:null,render:null},N=!1,A=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),P=function(t){function n(e){var n;return s(a(n=t.call(this,e)||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(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null})),s(a(n),"focus",(function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=_.getScrollParent(o),a=t||j(i),s=a.x,c=a.y;x(o)||C(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(e,e.getSelection()))}})),s(a(n),"blur",(function(){var t=n.editor;t&&(x(t)||C(!1),t.blur())})),s(a(n),"setMode",(function(t){var e=n.props,r=e.onPaste,o=e.onCut,a=e.onCopy,s=i({},L.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},L,{edit:s});n._handler=c[t]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(t){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(t)}))})),s(a(n),"setClipboard",(function(t){n._clipboard=t})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(t){n._latestEditorState=t,n.props.onChange(t)})),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=e.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.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,t);var r=n.prototype;return r._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(g?g((function(){return r(e,n)})):r(e,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(m,t)}return null},r._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},r.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleFn,s=t.customStyleMap,c=t.editorState,u=t.preventScroll,f=t.readOnly,d=t.textAlignment,h=t.textDirectionality,g=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),m=this.props.role||"textbox",y="combobox"===m?!!this.props.ariaExpanded:null,v={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"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:f?null:m,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(A,{editor:this,editorState:c}),b.createElement(p,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!N&&M("draft_ods_enabled")&&(N=!0,y.initODS()),this.setMode("edit"),T&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):e.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}),t.exports=P}).call(this,n(49))},function(t,e,n){"use strict";var r=n(226),o=n(32),i=n(45),a=n(21),s=n(78),c=n(34),u=n(137),l=n(139),f=n(140),p=n(101),d=n(33),h=c.isBrowser("IE"),g=!1,m=!1,y=null;var v={onCompositionStart:function(t){m=!0,function(t){y||(y=new r(l(t))).start()}(t)},onCompositionEnd:function(t){g=!1,m=!1,setTimeout((function(){g||v.resolveComposition(t)}),20)},onSelect:u,onKeyDown:function(t,e){if(!m)return v.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!m){var e=d(y).stopAndFlushMutations();y=null,g=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach((function(t,e){var s=i.decode(e),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,f=n.getBlockTree(c).getIn([u,"leaves",l]),d=f.start,h=f.end,g=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),m=p(r,g),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,g,t,y,m),n=a.set(n,{currentContent:r})}));var s=f(n,l(t)).selectionState;t.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);t.update(a.push(c,r,"insert-characters"))}else t.update(n)}}};t.exports=v},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(34),i=n(76),a=n(136),s=n(17),c=n(18),u=n(33),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function t(t){var e=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=t,this.mutations=l();var n=a(t);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||c(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=u(i(t.target));this.mutations=this.mutations.set(n,e)}},t}();t.exports=d},function(t,e,n){"use strict";var r=n(228),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),c=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[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};t.exports=u},function(t,e,n){var r;!function(o,i){"use strict";var a="model",s="name",c="type",u="vendor",l="version",f="mobile",p="tablet",d="smarttv",h=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},g=function(t,e){return"string"==typeof t&&-1!==m(e).indexOf(m(t))},m=function(t){return t.toLowerCase()},y=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},v=function(t,e){for(var n,r,o,i,a,s,c=0;c<e.length&&!a;){var u=e[c],l=e[c+1];for(n=r=0;n<u.length&&!a&&u[n];)if(a=u[n++].exec(t))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(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(g(e[n][r],t))return"?"===n?void 0:n}else if(g(e[n],t))return"?"===n?void 0:n;return t},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",m]],[/((?: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/,"",m]],[/(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",m]]],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,p]],[/\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,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[u,"Apple"],[c,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,p]],[/(macintosh);/i],[a,[u,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,f]],[/\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,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,p]],[/; (\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,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,f]],[/\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,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,p]],[/(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,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,f]],[/(pixel c)\b/i],[a,[u,"Google"],[c,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,f]],[/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,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,f]],[/(nexus 9)/i],[a,[u,"HTC"],[c,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,f]],[/(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,f]],[/(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,p]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,f]],[/(u304aa)/i],[a,[u,"AT&T"],[c,f]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,f]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,p]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,p]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,p]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,p]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,p]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,f]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,f]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,p]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,p]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,f]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,p]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,p]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,p]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,p]],[/(sprint) (\w+)/i],[u,a,[c,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,f]],[/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,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,f]],[/(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(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof O))return new O(t,e).getResult();var n=void 0!==o&&o.navigator?o.navigator:void 0,r=t||(n&&n.userAgent?n.userAgent:""),i=n&&n.userAgentData?n.userAgentData:void 0,u=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(_,e):_,d=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,v.call(e,r,u.browser),e.major="string"==typeof(t=e[l])?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&n&&n.brave&&"function"==typeof n.brave.isBrave&&(e[s]="Brave"),e},this.getCPU=function(){var t={architecture:void 0};return v.call(t,r,u.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return v.call(t,r,u.device),d&&!t[c]&&i&&i.mobile&&(t[c]=f),d&&"Macintosh"==t[a]&&n&&void 0!==n.standalone&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[a]="iPad",t[c]=p),t},this.getEngine=function(){var t={name:void 0,version:void 0};return v.call(t,r,u.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return v.call(t,r,u.os),d&&!t[s]&&i&&"Unknown"!=i.platform&&(t[s]=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),t},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(t){return r="string"==typeof t&&t.length>350?y(t,350):t,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",f,d,p,"wearable","embedded"]),O.ENGINE=O.OS=h([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=O),e.UAParser=O):n(229)?void 0===(r=function(){return O}.call(e,n,e,t))||(t.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(t){E.setUA(t);var e=E.getResult();for(var n in e)S.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";var r=n(18),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(t,e){var n=t.split(i);return n.length>1?n.some((function(t){return w.contains(t,e)})):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],e);var o=n[0],i=n[1];return g(o)&&g(i)||r(!1),l(">="+o,e)&&l("<="+i,e)}(t=n[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(o),i=d(t),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return f(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return p(r,s);case">":return function(t,e){return 1===b(t,e)}(r,s);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return p(t,n)&&f(t,r)}(r,s);default:return function(t,e){return 0===b(t,e)}(r,s)}}function f(t,e){return-1===b(t,e)}function p(t,e){var n=b(t,e);return 1===n||0===n}function d(t){var e=t.split(o),n=e[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function h(t){return!isNaN(t)&&isFinite(t)}function g(t){return!d(t).modifier}function m(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function y(t,e){var n=t.match(c)[1],r=e.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?v(o,i):v(t,e)}function v(t,e){return typeof t!=typeof e&&r(!1),t>e?1:t<e?-1:0}function b(t,e){for(var n=function(t,e){m(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return m(e,t.length),[t,e]}(t,e),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(t,e){return u(t.trim(),e.trim())}};t.exports=w},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!t)return null;var o={};for(var i in t)r.call(t,i)&&(o[i]=e.call(n,t[i],i,t));return o}},function(t,e,n){"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},function(t,e,n){"use strict";var r=n(47)("draft_tree_data_support");t.exports=n(r?234:248)},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(235),a=n(45),s=n(0),c=n(33),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,u=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,d=t.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),m=f.mustForceSelection(),y=f.getDecorator(),v=c(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var _=w.getKey(),O={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:p,editorState:f,forceSelection:m,selection:g,block:w,direction:d||v.get(_),tree:f.getBlockTree(_)},S=(e.get(w.getType())||e.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=[],j=0;j<b.length;){var M=b[j];if(M.wrapperTemplate){var C=[];do{C.push(b[j].block),j++}while(j<b.length&&b[j].wrapperTemplate===M.wrapperTemplate);var x=s.cloneElement(M.wrapperTemplate,{key:M.key+"-wrap","data-offset-key":M.offsetKey},C);k.push(x)}else k.push(M.block),j++}return s.createElement("div",{"data-contents":"true"},k)},r}(s.Component);t.exports=u},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=n(236),u=n(45),l=n(0),f=n(103),p=n(79),d=n(148),h=n(80),g=n(149),m=n(17),y=n(18),v=n(66),b=(m.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),w=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},_=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},O=function(t,e,n,r,o,i){var s={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:i},c=r(t);return c&&(s.className=c),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},S=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(i(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",l.createRef()),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var m=r.prototype;return m.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection;return i||a},m.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=p.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-g().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&&f.setTop(o,f.getTop(o)+r+10)}}}},m.render=function(){var t=this,e=this.props,n=e.block,i=e.blockRenderMap,s=e.blockRendererFn,f=e.blockStyleFn,p=e.contentState,d=e.decorator,h=e.editorKey,g=e.editorState,m=e.customStyleFn,y=e.customStyleMap,v=e.direction,S=e.forceSelection,E=e.selection,k=e.tree,j=null;n.children.size&&(j=n.children.reduce((function(e,n){var o=u.encode(n,0,0),c=p.getBlockForKey(n),d=_(c,s),m=d.CustomComponent||r,y=w(c,i),v=y.Element,b=y.wrapperTemplate,S=O(c,h,o,f,d,null),E=a({},t.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return e.push(l.createElement(v,S,l.createElement(m,E))),!b||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(c,p)||function(t,e,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 f=s.value;if(f.type!==e)break;r.push(f)}}catch(t){i=!0,a=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(l.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":u.encode(d,0,0)},p))}(b,v,e),e}),[]));var M=n.getKey(),C=u.encode(M,0,0),x=_(n,s),D=x.CustomComponent,T=null!=D?l.createElement(D,o({},this.props,{tree:g.getBlockTree(M),blockProps:x.customProps,offsetKey:C,block:n})):l.createElement(c,{block:n,children:j,contentState:p,customStyleFn:m,customStyleMap:y,decorator:d,direction:v,forceSelection:S,hasSelection:b(E,M),selection:E,tree:k});if(n.getParentKey())return T;var I=w(n,i).Element,L=O(n,h,C,f,x,this.wrapperRef);return l.createElement(I,L,T)},r}(l.Component);t.exports=S},function(t,e,n){"use strict";var r=n(237),o=n(144),i=n(45),a=n(17),s=n(0),c=n(51),u=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,m=e.getKey(),y=e.getText(),v=g.size-1,b=this.props.children||g.map((function(t,c){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,_=b.map((function(t,n){var r=i.encode(m,c,n),l=t.get("start"),f=t.get("end");return s.createElement(o,{key:r,offsetKey:r,block:e,start:l,selection:d?h:null,forceSelection:p,text:y.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===w})})).toArray();return g&&l?s.createElement(r,{block:e,children:_,contentState:n,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:y,key:c}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(m,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},a}(s.Component));t.exports=u},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(45),a=n(0),s=n(99),c=n(75),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.render=function(){var t=this.props,e=t.block,n=t.children,r=t.contentState,u=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,d=t.text,h=e.getKey(),g=p.get("leaves"),m=u.getComponentForKey(l),y=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),f);return a.createElement(m,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:e.getEntityAt(p.get("start")),offsetKey:v}),n)},r}(a.Component);t.exports=u},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(0),a=n(34),s=n(18),c=n(53),u=a.isBrowser("IE <= 11");var l=function(t){var e,n;function a(e){var n;return o(r(n=t.call(this,e)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;c(e)||s(!1);var r=e;return n?!function(t){return u?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var t=this;return""===this.props.children?this._forceFlag?function(t){return u?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})}((function(e){return t._node=e})):function(t){return u?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);t.exports=l},function(t,e,n){"use strict";var r=n(146),o=n(138),i=n(34),a=n(102),s=n(147),c=n(77),u=n(18),l=n(53),f=i.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var n=function t(e,n){var r=void 0!==n?n(e):[];if(e.nodeType===Node.TEXT_NODE){var o=e.textContent.length;return c(e).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=e.childNodes,s=0;s<a.length;s++)i.appendChild(t(a[s],n));return i}(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(t,e){for(var n=t,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return p(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function h(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function g(t,e,n,r){var i=s();if(t.extend&&null!=e&&a(i,e)){n>h(e)&&o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:d(e,(function(e){var n=[];return e===i&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:c,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var u=t.getRangeAt(0);u.setEnd(e,n),t.addRange(u.cloneRange())}}function m(t,e,n,i){var a=c(e).createRange();if(n>h(e)&&(o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(e,n),f)try{t.addRange(a)}catch(t){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,n,r,o){var i=c(e);if(a(i.documentElement,e)){var s=i.defaultView.getSelection(),u=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),d=t.getIsBackward();if(!s.extend&&d){var h=u,y=l;u=f,l=p,f=h,p=y,d=!1}var v=u===n&&r<=l&&o>=l,b=f===n&&r<=p&&o>=p;if(v&&b)return s.removeAllRanges(),m(s,e,l-r,t),void g(s,e,p-r,t);if(d){if(b&&(s.removeAllRanges(),m(s,e,p-r,t)),v){var w=s.focusNode,_=s.focusOffset;s.removeAllRanges(),m(s,e,l-r,t),g(s,w,_,t)}}else v&&(s.removeAllRanges(),m(s,e,l-r,t)),b&&g(s,e,p-r,t)}},addFocusToSelection:g}},function(t,e,n){"use strict";var r=n(241);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},function(t,e,n){"use strict";var r=n(243),o=n(244);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):i(t.style&&t.style[r(e)])}},function(t,e,n){"use strict";var r=/-(.)/g;t.exports=function(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}},function(t,e,n){"use strict";var r=/([A-Z])/g;t.exports=function(t){return t.replace(r,"-$1").toLowerCase()}},function(t,e,n){"use strict";var r=n(102);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},function(t,e,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:r||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},function(t,e,n){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(150),c=n(45),u=n(0),l=n(51),f=n(249),p=n(33),d=function(t,e,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,h=t.editorState,g=t.editorKey,m=t.preventScroll,y=t.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),_=h.getDecorator(),O=p(h.getDirectionMap()),S=v.getBlocksAsArray(),E=[],k=null,j=null,M=0;M<S.length;M++){var C=S[M],x=C.getKey(),D=C.getType(),T=n(C),I=void 0,L=void 0,N=void 0;T&&(I=T.component,L=T.props,N=T.editable);var A=y||O.get(x),P=c.encode(x,0,0),R={contentState:v,block:C,blockProps:L,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:_,direction:A,forceSelection:w,offsetKey:P,preventScroll:m,selection:b,tree:h.getBlockTree(x)},z=e.get(D)||e.get("unstyled"),B=z.wrapper,F=z.element||e.get("unstyled").element,U=C.getDepth(),H="";if(r&&(H=r(C)),"li"===F)H=f(H,d(D,U,j!==B||null===k||U>k,A));var K=I||s,Y={className:H,"data-block":!0,"data-editor":g,"data-offset-key":P,key:x};void 0!==N&&(Y=i({},Y,{contentEditable:N,suppressContentEditableWarning:!0}));var V=u.createElement(F,Y,u.createElement(K,o({},R,{key:x})));E.push({block:V,wrapperTemplate:B,key:x,offsetKey:P}),k=B?C.getDepth():null,j=B}for(var q=[],W=0;W<E.length;){var G=E[W];if(G.wrapperTemplate){var Q=[];do{Q.push(E[W].block),W++}while(W<E.length&&E[W].wrapperTemplate===G.wrapperTemplate);var Z=u.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Q);q.push(Z)}else q.push(G.block),W++}return u.createElement("div",{"data-contents":"true"},q)},r}(u.Component);t.exports=h},function(t,e,n){"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}},function(t,e,n){"use strict";var r=n(151),o=n(32),i=n(21),a=n(76),s=n(77),c=n(153),u=n(142),l=n(136),f=n(81),p=n(33);var d={onDragEnd:function(t){t.exitCurrentMode(),h(t)},onDrop:function(t,e){var n=new r(e.nativeEvent.dataTransfer),l=t._latestEditorState,d=function(t,e){var n=null,r=null,o=s(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=p(n),r=p(r);var c=p(a(n));return u(e,c,r,c,r)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=d){var m=n.getFiles();if(m.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(d,m)))return;c(m,(function(e){e&&t.update(g(l,d,e))}))}else{var y=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(d,n,y))||(t._internalDrag?t.update(function(t,e){var n=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(l,d)):t.update(g(l,d,n.getText()))),h(t)}}}};function h(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function g(t,e,n){var r=o.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,r,"insert-fragment")}t.exports=d},function(t,e,n){"use strict";var r={isImage:function(t){return"image"===o(t)[0]},isJpeg:function(t){var e=o(t);return r.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function o(t){return t.split("/")}t.exports=r},function(t,e,n){"use strict";var r=n(18);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o<e;o++)n[o]=t[o];return n}(t):[t]}},function(t,e,n){"use strict";var r=n(34),o=n(254),i=n(258),a=n(259),s=n(260),c=n(261),u=n(263),l=n(264),f=n(265),p=n(266),d=n(267),h=n(281),g=n(137),m=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=m||y?g:function(t){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:g,onMouseUp:v,onKeyUp:v};t.exports=b},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(34),a=n(101),s=n(81),c=n(255),u=n(33),l=n(256),f=i.isBrowser("Firefox");function p(t,e,n,i,a){var s=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return o.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,m=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(t._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=m.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(t){var e=t[0],n=t[1],o=e.get("start"),i=o+(o>=d?r.length:0),a=e.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(y||(g=r,y=f&&("'"==g||"/"==g)),y||(y=u(m.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),y)return e.preventDefault(),m=o.set(m,{forceSelection:!0}),void t.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),t._pendingStateFromBeforeInput=m,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some((function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return o===e&&(i=!0,!0)}))})),i}},function(t,e,n){"use strict";(function(e){n(257),t.exports=e.setImmediate}).call(this,n(49))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return u[c]=o,r(c),c++},p.clearImmediate=d}function d(t){delete u[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{d(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(49),n(119))},function(t,e,n){"use strict";var r=n(21),o=n(102),i=n(147);t.exports=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=t.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(r.acceptSelection(c,l))}}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},function(t,e,n){"use strict";var r=n(154);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(79),a=n(154),s=n(80),c=n(262);t.exports=function(t,e){var n,u=t._latestEditorState,l=u.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(c(f)){var p=f;n=s(i.getScrollParent(p))}var d=a(u);t.setClipboard(d),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(u))}),0)}}},function(t,e,n){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},function(t,e,n){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},function(t,e,n){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},function(t,e,n){"use strict";var r=n(21),o=n(34);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(r.forceSelection(n,a)):t.update(r.acceptSelection(n,a))}}},function(t,e,n){"use strict";var r=n(32),o=n(45),i=n(21),a=n(34),s=n(143).notEmptyKey,c=n(76),u=n(155),l=n(33),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=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 g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var m=a.textContent,y=t._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,j=y.getCurrentContent(),M=j.getBlockForKey(w),C=M.getText().slice(E,k);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==C){var x,D,T,I,L=y.getSelection(),N=L.merge({anchorOffset:E,focusOffset:k,isBackward:!1}),A=M.getEntityAt(E),P=s(A)?j.getEntity(A):null,R="MUTABLE"===(null!=P?P.getMutability():null),z=R?"spellcheck-change":"apply-entity",B=r.replaceText(j,N,m,M.getInlineStyleAt(E),R?M.getEntityAt(E):null);if(f)x=n.anchorOffset,D=n.focusOffset,I=(T=E+Math.min(x,D))+Math.abs(x-D),x=T,D=I;else{var F=m.length-C.length;T=L.getStartOffset(),I=L.getEndOffset(),x=p?I+F:T,D=I+F}var U=B.merge({selectionBefore:j.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:x,focusOffset:D})});t.update(i.push(y,U,z))}else{var H=e.nativeEvent.inputType;if(H){var K=function(t,e){switch(t){case"deleteContentBackward":return u(e)}return e}(H,y);if(K!==y)return t.restoreEditorDOM(),void t.update(K)}}}}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(106),a=n(78),s=n(269),c=n(34),u=n(81),l=n(270),f=n(272),p=n(274),d=n(275),h=n(276),g=n(277),m=n(155),y=n(278),v=n(279),b=n(280),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function c(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&u(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.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(e)&&e.preventDefault()}var O=t.props.keyBindingFn(e);if(null!=O&&""!==O)if("undo"!==O){if(e.preventDefault(),!t.props.handleKeyCommand||!u(t.props.handleKeyCommand(O,i,e.timeStamp))){var S=function(t,e,n){switch(t){case"redo":return o.redo(e);case"delete":return y(e);case"delete-word":return p(e);case"backspace":return m(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,n);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return h(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(O,i,e);S!==i&&t.update(S)}}else b(e,i,t.update);else if(n===a.SPACE&&_&&w(e)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,E,"insert-characters"))}}},function(t,e,n){"use strict";var r=n(78);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(72),a=n(33),s=null,c={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=e.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var f=e.getKeyAfter(u);if(null==f)return t;c=n.set("focusKey",f).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(e,c);var p=r.removeRange(e,c,"forward");return p===e?t:o.push(t,p,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return o.push(t,e,"insert-fragment")}};t.exports=c},function(t,e,n){"use strict";var r=n(21),o=n(271),i=n(141),a=n(104),s=n(67);t.exports=function(t,e){var n=s(t,(function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===t.getCurrentContent()?t:r.push(t,n,"remove-range")}},function(t,e,n){"use strict";var r=n(54),o=n(77),i=n(156),a=n(18);function s(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var s=t[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<e&&i-r<e}function c(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=o(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.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}(e),u=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);s(i(t),n)&&(u=t.startContainer,l=t.startOffset,u.parentNode||a(!1),t.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=l-1;;){for(var d=f.nodeValue,h=p;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(t.setStart(f,h),!s(i(t),n))break;u=f,l=h}if(-1===h||0===f.childNodes.length)break;p=c(f=f.childNodes[h])}return t.setStart(u,l),t}},function(t,e,n){"use strict";var r=n(157),o=n(21),i=n(104),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},function(t,e,n){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(t,e,n){"use strict";var r=n(157),o=n(21),i=n(158),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},function(t,e,n){"use strict";var r=n(32),o=n(21);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(t,e,n){"use strict";var r=n(21),o=n(54),i=n(158),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(t,s?o.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(72);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,s,c=e.getAnchorKey(),u=t.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return t;n===l?(a=e.set("anchorOffset",n-1),s=e):s=(a=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),p=r.removeRange(u,a,"backward"),d=p.getSelectionAfter(),h=d.getAnchorOffset()-1,g=d.merge({anchorOffset:h,focusOffset:h}),m=r.replaceWithFragment(p,g,f),y=o.push(t,m,"insert-fragment");return o.acceptSelection(y,s)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n){var o=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(t,e,n){"use strict";var r=n(64),o=n(37),i=n(151),a=n(32),s=n(282),c=n(21),u=n(161),l=n(101),f=n(153),p=n(81),d=n(287);function h(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var g=n.getFiles(),m=n.getText();if(g.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;return void f(g,(function(e){if(e=e||m){var n=t._latestEditorState,i=d(e),f=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=s.processText(i,f,p),g=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);t.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=t._latestEditorState;if(t.props.formatPastedText){var _=t.props.formatPastedText(v,b);v=_.text,b=_.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!t.props.stripPastedStyles){var O,S=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(O=b)||void 0===O?void 0:O.indexOf(t.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void t.update(h(t._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,n){return e.getText()===t[n]}))}(y,S))return void t.update(h(t._latestEditorState,S));if(b){var E=s.processHTML(b,t.props.blockRenderMap);if(E){var k=E.contentBlocks,j=E.entityMap;if(k){var M=r.createFromArray(k);return void t.update(h(t._latestEditorState,M,j))}}}t.setClipboard(null)}if(y.length){var C=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),x=u.getCurrentBlockType(w),D=s.processText(y,C,x),T=r.createFromArray(D);t.update(h(t._latestEditorState,T))}}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(50),i=n(38),a=n(159),s=n(42),c=n(160),u=n(47),l=n(17),f=n(133),p=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,m={processHTML:function(t,e){return a(t,c,e)},processText:function(t,e,n){return t.reduce((function(t,o,i){o=f(o);var a=s(),c={key:a,type:n,text:o,characterList:p(d(e,o.length))};if(h&&0!==i){var u=i-1;c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},c,{prevSibling:(t[u]=t[u].merge({nextSibling:a})).getKey()})}return t.push(new g(c)),t}),[])}};t.exports=m},function(t,e,n){"use strict";var r=function(){function t(t){var e,n,r;r=void 0,(n="_uri")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=r},function(t,e,n){"use strict";var r=n(53);t.exports=function(t){return!(!t||!t.ownerDocument)&&(r(t)&&"A"===t.nodeName)}},function(t,e,n){"use strict";var r=n(53);t.exports=function(t){return!(!t||!t.ownerDocument)&&(r(t)&&"IMG"===t.nodeName)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat([[i,a.get(i)]]).map((function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)}));return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=/\r\n?|\n/g;t.exports=function(t){return t.split(r)}},function(t,e,n){"use strict";var r=n(28).unstable_flushControlled;t.exports=r},function(t,e,n){"use strict";var r=n(0),o=n(51),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);t.exports=i},function(t,e,n){},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(50),i=n(38),a=n(163),s=n(292),c=n(293),u=n(18),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:c(t),entityRanges:s(t,e),data:t.getData().toObject()}},f=function(t,e,n,a){if(t instanceof o)n.push(l(t,e));else{t instanceof i||u(!1);var s=t.getParentKey(),c=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},l(t,e),{children:[]});s?a[s].children.push(c):n.push(c)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,r=[],o={},i={},s=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var r=t.getEntityAt(e),o=a.stringify(r);i[o]||(i[o]=r,n[o]="".concat(s),s++)})),f(t,n,r,o)})),{blocks:r,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach((function(e,n){var r=t.getEntity(a.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(t,e)}},function(t,e,n){"use strict";var r=n(163),o=n(54).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(i,a){var s=t.getText(),c=t.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(e[r.stringify(c)])})})),n}},function(t,e,n){"use strict";var r=n(54),o=n(65),i=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),n=e.flatten().toSet().map((function(n){return function(t,e,n){var s=[],c=e.map((function(t){return t.has(n)})).toList();return o(c,i,a,(function(e,o){var i=t.getText();s.push({offset:r.strlen(i.slice(0,e)),length:r.strlen(i.slice(e,o)),style:n})})),s}(t,e,n)}));return Array.prototype.concat.apply(s,n.toJS())}},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(50),a=n(38),s=n(98),c=n(73),u=n(295),l=(n(296),n(74)),f=n(297),p=n(298),d=n(299),h=n(42),g=n(47),m=n(17),y=n(18),v=g("draft_tree_data_support"),b=m.List,w=m.Map,_=m.OrderedMap,O=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(t,e)}},S=function(t,e){var n=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return r({},t,{key:e[t.key]})}))))},E=function(t){return r({},t,{key:t.key||h()})},k=function(t,e,n){var o=e.map((function(t){return r({},t,{parentRef:n})}));return t.concat(o.reverse())},j=function(t,e){var n=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?function(t,e){return t.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,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(s.map((function(t){return t.key})))}));n=n.set(c.getKey(),c);for(var u=k([],s,c);u.length>0;){var l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(E),m=new a(r({},O(l,e),{parent:f.getKey(),children:b(g.map((function(t){return t.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(m.getKey(),m),u=k(u,g,m)}return n}),_())}(o,e):function(t,e){return _(t.map((function(t){var n=new i(O(t,e));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(t).blocks:o,e)};t.exports=function(t){Array.isArray(t.blocks)||y(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach((function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=c.__create(o,i,a||{})})),n}(t),n=j(t,e),r=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})}},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(42),a=n(18),s=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},c={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var r=n.pop();e(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(e,(function(t){var e=r({},t);s(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?r({},e,{depth:(t.depth||0)+1}):e})))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))})),t.blocks=n,r({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach((function(t){var o=s(t),a=t.depth||0,c=r({},t,{children:[]});if(o){var u=n[0];if(null==u&&0===a)e.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?e.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):e.push(c)}}else e.push(c)})),r({},t,{blocks:e})}};t.exports=c},function(t,e,n){"use strict";n(105);var r={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===n})))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(n){return e.isValidBlock(n,t)}))&&this.isConnectedTree(t)}};t.exports=r},function(t,e,n){"use strict";var r=n(37),o=n(17).List;t.exports=function(t,e){var n=t.map((function(t,n){var o=e[n];return r.create({style:t,entity:o})}));return o(n)}},function(t,e,n){"use strict";var r=n(54).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var o=r(t,0,e.offset).length,i=o+r(t,e.offset,e.length).length,a=o;a<i;a++)n[a]=e.key})),n}},function(t,e,n){"use strict";var r=n(54),o=n(17).OrderedSet,i=r.substr,a=o();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var r=i(t,0,e.offset).length,o=r+i(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++})),n}},function(t,e,n){"use strict";var r=n(301);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.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(t,e,n){"use strict";var r=n(156);t.exports=function(t){var e=r(t),n=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=e[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<e.length;u++){var l=e[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(t,e,n){"use strict";n.r(e),n.d(e,"Collection",(function(){return v})),n.d(e,"Iterable",(function(){return fr})),n.d(e,"List",(function(){return We})),n.d(e,"Map",(function(){return Ee})),n.d(e,"OrderedMap",(function(){return cn})),n.d(e,"OrderedSet",(function(){return Wn})),n.d(e,"PairSorting",(function(){return Xn})),n.d(e,"Range",(function(){return Dn})),n.d(e,"Record",(function(){return $n})),n.d(e,"Repeat",(function(){return ar})),n.d(e,"Seq",(function(){return z})),n.d(e,"Set",(function(){return Sn})),n.d(e,"Stack",(function(){return dn})),n.d(e,"fromJS",(function(){return sr})),n.d(e,"get",(function(){return Qt})),n.d(e,"getIn",(function(){return Tn})),n.d(e,"has",(function(){return Gt})),n.d(e,"hasIn",(function(){return Ln})),n.d(e,"hash",(function(){return rt})),n.d(e,"is",(function(){return $})),n.d(e,"isAssociative",(function(){return y})),n.d(e,"isCollection",(function(){return h})),n.d(e,"isImmutable",(function(){return E})),n.d(e,"isIndexed",(function(){return m})),n.d(e,"isKeyed",(function(){return g})),n.d(e,"isList",(function(){return qe})),n.d(e,"isMap",(function(){return Z})),n.d(e,"isOrdered",(function(){return j})),n.d(e,"isOrderedMap",(function(){return J})),n.d(e,"isOrderedSet",(function(){return bn})),n.d(e,"isPlainObject",(function(){return Vt})),n.d(e,"isRecord",(function(){return S})),n.d(e,"isSeq",(function(){return O})),n.d(e,"isSet",(function(){return vn})),n.d(e,"isStack",(function(){return pn})),n.d(e,"isValueObject",(function(){return X})),n.d(e,"merge",(function(){return le})),n.d(e,"mergeDeep",(function(){return pe})),n.d(e,"mergeDeepWith",(function(){return de})),n.d(e,"mergeWith",(function(){return fe})),n.d(e,"remove",(function(){return Jt})),n.d(e,"removeIn",(function(){return ne})),n.d(e,"set",(function(){return Xt})),n.d(e,"setIn",(function(){return te})),n.d(e,"update",(function(){return oe})),n.d(e,"updateIn",(function(){return $t})),n.d(e,"version",(function(){return ur}));var r={};function o(t){t&&(t.value=!0)}function i(){}function a(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function s(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?a(t)+e:e}function c(){return!0}function u(t,e,n){return(0===t&&!d(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function l(t,e){return p(t,e,0)}function f(t,e){return p(t,e,e)}function p(t,e,n){return void 0===t?n:d(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function d(t){return t<0||0===t&&1/t==-1/0}function h(t){return Boolean(t&&t["@@__IMMUTABLE_ITERABLE__@@"])}function g(t){return Boolean(t&&t["@@__IMMUTABLE_KEYED__@@"])}function m(t){return Boolean(t&&t["@@__IMMUTABLE_INDEXED__@@"])}function y(t){return g(t)||m(t)}var v=function(t){return h(t)?t:z(t)},b=function(t){function e(t){return g(t)?t:B(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v),w=function(t){function e(t){return m(t)?t:F(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v),_=function(t){function e(t){return h(t)&&!y(t)?t:U(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v);v.Keyed=b,v.Indexed=w,v.Set=_;function O(t){return Boolean(t&&t["@@__IMMUTABLE_SEQ__@@"])}function S(t){return Boolean(t&&t["@@__IMMUTABLE_RECORD__@@"])}function E(t){return h(t)||S(t)}var k="@@__IMMUTABLE_ORDERED__@@";function j(t){return Boolean(t&&t[k])}var M="function"==typeof Symbol&&Symbol.iterator,C=M||"@@iterator",x=function(t){this.next=t};function D(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function T(){return{value:void 0,done:!0}}function I(t){return!!Array.isArray(t)||!!A(t)}function L(t){return t&&"function"==typeof t.next}function N(t){var e=A(t);return e&&e.call(t)}function A(t){var e=t&&(M&&t[M]||t["@@iterator"]);if("function"==typeof e)return e}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[C]=function(){return this};var P=Object.prototype.hasOwnProperty;function R(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var z=function(t){function e(t){return null==t?q():E(t)?t.toSeq():function(t){var e=Q(t);if(e)return(r=A(n=t))&&r===n.entries?e.fromEntrySeq():function(t){var e=A(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var n,r;if("object"==typeof t)return new K(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){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[e?r-++o:o++];return D(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(v),B=function(t){function e(t){return null==t?q().toKeyedSeq():h(t)?g(t)?t.toSeq():t.fromEntrySeq():S(t)?t.toSeq():W(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(z),F=function(t){function e(t){return null==t?q():h(t)?g(t)?t.entrySeq():t.toIndexedSeq():S(t)?t.toSeq().entrySeq():G(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(z),U=function(t){function e(t){return(h(t)&&!y(t)?t:F(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(z);z.isSeq=O,z.Keyed=B,z.Set=U,z.Indexed=F,z.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var H=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[s(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return D(t,i,n[i])}))},e}(F),K=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return P.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){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[e?o-++i:i++];return D(t,a,n[a])}))},e}(B);K.prototype[k]=!0;var Y,V=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=N(this._collection),r=0;if(L(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=N(this._collection);if(!L(n))return new x(T);var r=0;return new x((function(){var e=n.next();return e.done?e:D(t,r++,e.value)}))},e}(F);function q(){return Y||(Y=new H([]))}function W(t){var e=Q(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new K(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function G(t){var e=Q(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Q(t){return R(t)?new H(t):I(t)?new V(t):void 0}function Z(t){return Boolean(t&&t["@@__IMMUTABLE_MAP__@@"])}function J(t){return Z(t)&&j(t)}function X(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function $(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(X(t)&&X(e)&&t.equals(e))}var tt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function et(t){return t>>>1&1073741824|3221225471&t}var nt=Object.prototype.valueOf;function rt(t){if(null==t)return ot(t);if("function"==typeof t.hashCode)return et(t.hashCode(t));var e,n=(e=t).valueOf!==nt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==n)return ot(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return et(e)}(n);case"string":return n.length>ht?function(t){var e=yt[t];void 0===e&&(e=it(t),mt===gt&&(mt=0,yt={}),mt++,yt[t]=e);return e}(n):it(n);case"object":case"function":return function(t){var e;if(lt&&void 0!==(e=ut.get(t)))return e;if(void 0!==(e=t[dt]))return e;if(!st){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[dt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=ct(),lt)ut.set(t,e);else{if(void 0!==at&&!1===at(t))throw new Error("Non-extensible objects are not allowed as keys.");if(st)Object.defineProperty(t,dt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[dt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[dt]=e}}return e}(n);case"symbol":return function(t){var e=ft[t];if(void 0!==e)return e;return e=ct(),ft[t]=e,e}(n);default:if("function"==typeof n.toString)return it(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ot(t){return null===t?1108378658:1108378659}function it(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return et(e)}var at=Object.isExtensible,st=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function ct(){var t=++pt;return 1073741824&pt&&(pt=0),t}var ut,lt="function"==typeof WeakMap;lt&&(ut=new WeakMap);var ft=Object.create(null),pt=0,dt="__immutablehash__";"function"==typeof Symbol&&(dt=Symbol(dt));var ht=16,gt=255,mt=0,yt={},vt=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Et(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,r=St(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e,r){return t(e,r,n)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(B);vt.prototype[k]=!0;var bt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return e&&a(this),this._iter.__iterate((function(o){return t(o,e?n.size-++r:r++,n)}),e)},e.prototype.__iterator=function(t,e){var n=this,r=this._iter.__iterator(1,e),o=0;return e&&a(this),new x((function(){var i=r.next();return i.done?i:D(t,e?n.size-++o:o++,i.value,i)}))},e}(F),wt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new x((function(){var e=n.next();return e.done?e:D(t,e.value,e.value,e)}))},e}(U),_t=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){At(e);var r=h(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new x((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){At(r);var o=h(r);return D(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}}))},e}(B);function Ot(t){var e=Rt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=zt,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new x((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function St(t,e,n){var o=Rt(t);return o.size=t.size,o.has=function(e){return t.has(e)},o.get=function(o,i){var a=t.get(o,r);return a===r?i:e.call(n,a,o,t)},o.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},o.__iteratorUncached=function(r,o){var i=t.__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,e.call(n,a[1],s,t),o)}))},o}function Et(t,e){var n=this,r=Rt(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Ot(t);return e.reverse=function(){return t.flip()},e}),r.get=function(n,r){return t.get(e?n:-1-n,r)},r.has=function(n){return t.has(e?n:-1-n)},r.includes=function(e){return t.includes(e)},r.cacheResult=zt,r.__iterate=function(n,r){var o=this,i=0;return r&&a(t),t.__iterate((function(t,a){return n(t,e?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&a(t);var s=t.__iterator(2,!o);return new x((function(){var t=s.next();if(t.done)return t;var a=t.value;return D(r,e?a[0]:o?n.size-++i:i++,a[1],t)}))},r}function kt(t,e,n,o){var i=Rt(t);return o&&(i.has=function(o){var i=t.get(o,r);return i!==r&&!!e.call(n,i,o,t)},i.get=function(o,i){var a=t.get(o,r);return a!==r&&e.call(n,a,o,t)?a:i}),i.__iterateUncached=function(r,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,r(t,o?i:s-1,a)}),i),s},i.__iteratorUncached=function(r,i){var a=t.__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(e.call(n,l,u,t))return D(r,o?u:s++,l,i)}}))},i}function jt(t,e,n,r){var o=t.size;if(u(e,n,o))return t;var i=l(e,o),a=f(n,o);if(i!=i||a!=a)return jt(t.toSeq().cacheResult(),e,n,r);var c,p=a-i;p==p&&(c=p<0?0:p);var d=Rt(t);return d.size=0===c?c:t.size&&c||void 0,!r&&O(t)&&c>=0&&(d.get=function(e,n){return(e=s(this,e))>=0&&e<c?t.get(e+i,n):n}),d.__iterateUncached=function(e,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,u=0;return t.__iterate((function(t,n){if(!s||!(s=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==c})),u},d.__iteratorUncached=function(e,n){if(0!==c&&n)return this.cacheResult().__iterator(e,n);if(0===c)return new x(T);var o=t.__iterator(e,n),a=0,s=0;return new x((function(){for(;a++<i;)o.next();if(++s>c)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:D(e,s-1,0===e?void 0:t.value[1],t)}))},d}function Mt(t,e,n,r){var o=Rt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new x((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:D(o,u++,0===o?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:D(o,i,l,t)}))},o}function Ct(t,e){var n=g(t),r=[t].concat(e).map((function(t){return h(t)?n&&(t=b(t)):t=n?W(t):G(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&g(o)||m(t)&&m(o))return o}var i=new H(r);return n?i=i.toKeyedSeq():m(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),i}function xt(t,e,n){var r=Rt(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(c,u){c.__iterate((function(i,c){return(!e||u<e)&&h(i)?t(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(t,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=t.__iterator(r,o),a=[],s=0;return new x((function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(a.length<e)||!h(c))return n?t:D(r,s++,c,t);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Dt(t,e,n){e||(e=Bt);var r=g(t),o=0,i=t.toSeq().map((function(e,r){return[r,e,o++,n?n(e,r,t):e]})).valueSeq().toArray();return i.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?B(i):m(t)?F(i):U(i)}function Tt(t,e,n){if(e||(e=Bt),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return It(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return It(e,t,n)?n:t}))}function It(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Lt(t,e,n,r){var o=Rt(t),i=new H(n).map((function(t){return t.size}));return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map((function(t){return t=v(t),N(o?t.reverse():t)})),a=0,s=!1;return new x((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=r?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:D(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Nt(t,e){return t===e?t:O(t)?e:t.constructor(e)}function At(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Pt(t){return g(t)?b:m(t)?w:_}function Rt(t){return Object.create((g(t)?B:m(t)?F:U).prototype)}function zt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Bt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Ft(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function Ut(t,e){if(!t)throw new Error(e)}function Ht(t){Ut(t!==1/0,"Cannot perform this action with an infinite size.")}function Kt(t){if(R(t)&&"string"!=typeof t)return t;if(j(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}bt.prototype.cacheResult=vt.prototype.cacheResult=wt.prototype.cacheResult=_t.prototype.cacheResult=zt;var Yt=Object.prototype.toString;function Vt(t){if(!t||"object"!=typeof t||"[object Object]"!==Yt.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,r=Object.getPrototypeOf(e);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===e}function qt(t){return"object"==typeof t&&(E(t)||Array.isArray(t)||Vt(t))}function Wt(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Gt(t,e){return E(t)?t.has(e):qt(t)&&P.call(t,e)}function Qt(t,e,n){return E(t)?t.get(e,n):Gt(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function Zt(t){if(Array.isArray(t))return Ft(t);var e={};for(var n in t)P.call(t,n)&&(e[n]=t[n]);return e}function Jt(t,e){if(!qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(E(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!P.call(t,e))return t;var n=Zt(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}function Xt(t,e,n){if(!qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(E(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(P.call(t,e)&&n===t[e])return t;var r=Zt(t);return r[e]=n,r}function $t(t,e,n,o){o||(o=n,n=void 0);var i=function t(e,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&&!qt(n))throw new TypeError("Cannot update within non-data-structure value in path ["+o.slice(0,i).map(Wt)+"]: "+n);var f=o[i],p=c?r:Qt(n,f,r),d=t(p===r?e:E(p),p,o,i+1,a,s);return d===p?n:d===r?Jt(n,f):Xt(c?e?Pe():{}:n,f,d)}(E(t),t,Kt(e),0,n,o);return i===r?n:i}function te(t,e,n){return $t(t,e,r,(function(){return n}))}function ee(t,e){return te(this,t,e)}function ne(t,e){return $t(t,e,(function(){return r}))}function re(t){return ne(this,t)}function oe(t,e,n,r){return $t(t,[e],n,r)}function ie(t,e,n){return 1===arguments.length?t(this):oe(this,t,e,n)}function ae(t,e,n){return $t(this,t,e,n)}function se(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ue(this,t)}function ce(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return ue(this,e,t)}function ue(t,e,n){for(var o=[],i=0;i<e.length;i++){var a=b(e[i]);0!==a.size&&o.push(a)}return 0===o.length?t:0!==t.toSeq().size||t.__ownerID||1!==o.length?t.withMutations((function(t){for(var e=n?function(e,o){oe(t,o,r,(function(t){return t===r?e:n(t,e,o)}))}:function(e,n){t.set(n,e)},i=0;i<o.length;i++)o[i].forEach(e)})):t.constructor(o[0])}function le(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ge(t,e)}function fe(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ge(e,n,t)}function pe(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return he(t,e)}function de(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return he(e,n,t)}function he(t,e,n){return ge(t,e,function(t){return function e(n,r,o){return qt(n)&&qt(r)&&(i=r,a=z(n),s=z(i),m(a)===m(s)&&g(a)===g(s))?ge(n,[r],e):t?t(n,r,o):r;var i,a,s}}(n))}function ge(t,e,n){if(!qt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(E(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?w:b,a=r?function(e){o===t&&(o=Zt(o)),o.push(e)}:function(e,r){var i=P.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=Zt(o)),o[r]=a)},s=0;s<e.length;s++)i(e[s]).forEach(a);return o}function me(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return he(this,t)}function ye(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return he(this,e,t)}function ve(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return $t(this,t,Pe(),(function(t){return ge(t,e)}))}function be(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return $t(this,t,Pe(),(function(t){return he(t,e)}))}function we(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function _e(){return this.__ownerID?this:this.__ensureOwner(new i)}function Oe(){return this.__ensureOwner()}function Se(){return this.__altered}var Ee=function(t){function e(e){return null==e?Pe():Z(e)&&!j(e)?e:Pe().withMutations((function(n){var r=t(e);Ht(r.size),r.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Pe().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Re(this,t,e)},e.prototype.remove=function(t){return Re(this,t,r)},e.prototype.deleteAll=function(t){var e=v(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Pe()},e.prototype.sort=function(t){return cn(Dt(this,t))},e.prototype.sortBy=function(t,e){return cn(Dt(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,t.call(e,o,i,n))}))}))},e.prototype.__iterator=function(t,e){return new Ie(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ae(this.size,this._root,t,this.__hash):0===this.size?Pe():(this.__ownerID=t,this.__altered=!1,this)},e}(b);Ee.isMap=Z;var ke=Ee.prototype;ke["@@__IMMUTABLE_MAP__@@"]=!0,ke.delete=ke.remove,ke.removeAll=ke.deleteAll,ke.setIn=ee,ke.removeIn=ke.deleteIn=re,ke.update=ie,ke.updateIn=ae,ke.merge=ke.concat=se,ke.mergeWith=ce,ke.mergeDeep=me,ke.mergeDeepWith=ye,ke.mergeIn=ve,ke.mergeDeepIn=be,ke.withMutations=we,ke.wasAltered=Se,ke.asImmutable=Oe,ke["@@transducer/init"]=ke.asMutable=_e,ke["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},ke["@@transducer/result"]=function(t){return t.asImmutable()};var je=function(t,e){this.ownerID=t,this.entries=e};je.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},je.prototype.update=function(t,e,n,a,s,c,u){for(var l=s===r,f=this.entries,p=0,d=f.length;p<d&&!$(a,f[p][0]);p++);var h=p<d;if(h?f[p][1]===s:l)return this;if(o(u),(l||!h)&&o(c),!l||1!==f.length){if(!h&&!l&&f.length>=Ke)return function(t,e,n,r){t||(t=new i);for(var o=new De(t,rt(n),[n,r]),a=0;a<e.length;a++){var s=e[a];o=o.update(t,0,void 0,s[0],s[1])}return o}(t,f,a,s);var g=t&&t===this.ownerID,m=g?f:Ft(f);return h?l?p===d-1?m.pop():m[p]=m.pop():m[p]=[a,s]:m.push([a,s]),g?(this.entries=m,this):new je(t,m)}};var Me=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};Me.prototype.get=function(t,e,n,r){void 0===e&&(e=rt(n));var o=1<<(31&(0===t?e:e>>>t)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Ue(i&o-1)].get(t+5,e,n,r)},Me.prototype.update=function(t,e,n,o,i,a,s){void 0===n&&(n=rt(o));var c=31&(0===e?n:n>>>e),u=1<<c,l=this.bitmap,f=0!=(l&u);if(!f&&i===r)return this;var p=Ue(l&u-1),d=this.nodes,h=f?d[p]:void 0,g=ze(h,t,e+5,n,o,i,a,s);if(g===h)return this;if(!f&&g&&d.length>=Ye)return function(t,e,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ce(t,i+1,a)}(t,d,l,c,g);if(f&&!g&&2===d.length&&Be(d[1^p]))return d[1^p];if(f&&g&&1===d.length&&Be(g))return g;var m=t&&t===this.ownerID,y=f?g?l:l^u:l|u,v=f?g?He(d,p,g,m):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(d,p,m):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(d,p,g,m);return m?(this.bitmap=y,this.nodes=v,this):new Me(t,y,v)};var Ce=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};Ce.prototype.get=function(t,e,n,r){void 0===e&&(e=rt(n));var o=31&(0===t?e:e>>>t),i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Ce.prototype.update=function(t,e,n,o,i,a,s){void 0===n&&(n=rt(o));var c=31&(0===e?n:n>>>e),u=i===r,l=this.nodes,f=l[c];if(u&&!f)return this;var p=ze(f,t,e+5,n,o,i,a,s);if(p===f)return this;var d=this.count;if(f){if(!p&&--d<Ve)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Me(t,o,a)}(t,l,d,c)}else d++;var h=t&&t===this.ownerID,g=He(l,c,p,h);return h?(this.count=d,this.nodes=g,this):new Ce(t,d,g)};var xe=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};xe.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},xe.prototype.update=function(t,e,n,i,a,s,c){void 0===n&&(n=rt(i));var u=a===r;if(n!==this.keyHash)return u?this:(o(c),o(s),Fe(this,t,e,n,[i,a]));for(var l=this.entries,f=0,p=l.length;f<p&&!$(i,l[f][0]);f++);var d=f<p;if(d?l[f][1]===a:u)return this;if(o(c),(u||!d)&&o(s),u&&2===p)return new De(t,this.keyHash,l[1^f]);var h=t&&t===this.ownerID,g=h?l:Ft(l);return d?u?f===p-1?g.pop():g[f]=g.pop():g[f]=[i,a]:g.push([i,a]),h?(this.entries=g,this):new xe(t,this.keyHash,g)};var De=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};De.prototype.get=function(t,e,n,r){return $(n,this.entry[0])?this.entry[1]:r},De.prototype.update=function(t,e,n,i,a,s,c){var u=a===r,l=$(i,this.entry[0]);return(l?a===this.entry[1]:u)?this:(o(c),u?void o(s):l?t&&t===this.ownerID?(this.entry[1]=a,this):new De(t,this.keyHash,[i,a]):(o(s),Fe(this,t,e,rt(i),[i,a])))},je.prototype.iterate=xe.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Me.prototype.iterate=Ce.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},De.prototype.iterate=function(t,e){return t(this.entry)};var Te,Ie=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Ne(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,o=void 0;if(n.entry){if(0===r)return Le(t,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Le(t,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 Le(t,i.entry);e=this._stack=Ne(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(x);function Le(t,e){return D(t,e[0],e[1])}function Ne(t,e){return{node:t,index:0,__prev:e}}function Ae(t,e,n,r){var o=Object.create(ke);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pe(){return Te||(Te=Ae(0))}function Re(t,e,n){var o,i;if(t._root){var a={value:!1},s={value:!1};if(o=ze(t._root,t.__ownerID,0,void 0,e,n,a,s),!s.value)return t;i=t.size+(a.value?n===r?-1:1:0)}else{if(n===r)return t;i=1,o=new je(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Ae(i,o):Pe()}function ze(t,e,n,i,a,s,c,u){return t?t.update(e,n,i,a,s,c,u):s===r?t:(o(u),o(c),new De(e,i,[a,s]))}function Be(t){return t.constructor===De||t.constructor===xe}function Fe(t,e,n,r,o){if(t.keyHash===r)return new xe(e,r,[t.entry,o]);var i,a=31&(0===n?t.keyHash:t.keyHash>>>n),s=31&(0===n?r:r>>>n),c=a===s?[Fe(t,e,n+5,r,o)]:(i=new De(e,r,o),a<s?[t,i]:[i,t]);return new Me(e,1<<a|1<<s,c)}function Ue(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function He(t,e,n,r){var o=r?t:Ft(t);return o[e]=n,o}var Ke=8,Ye=16,Ve=8;function qe(t){return Boolean(t&&t["@@__IMMUTABLE_LIST__@@"])}var We=function(t){function e(e){var n=tn();if(null==e)return n;if(qe(e))return e;var r=t(e),o=r.size;return 0===o?n:(Ht(o),o>0&&o<32?$e(0,o,5,null,new Qe(r.toArray())):n.withMutations((function(t){t.setSize(o),r.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=s(this,t))>=0&&t<this.size){var n=rn(this,t+=this._origin);return n&&n.array[31&t]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=s(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?on(t,e).set(0,n):on(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i={value:!1};e>=an(t._capacity)?r=en(r,t.__ownerID,0,e,n,i):o=en(o,t.__ownerID,t._level,e,n,i);if(!i.value)return t;if(t.__ownerID)return t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t;return $e(t._origin,t._capacity,t._level,o,r)}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.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):tn()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){on(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},e.prototype.pop=function(){return on(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){on(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},e.prototype.shift=function(){return on(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],r=0;r<arguments.length;r++){var o=e[r],i=t("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(t){n.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(n[0])},e.prototype.setSize=function(t){return on(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,t.call(e,r.get(o),o,n))}))},e.prototype.slice=function(t,e){var n=this.size;return u(t,e,n)?this:on(this,l(t,n),f(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,r=Xe(this,e);return new x((function(){var o=r();return o===Je?{value:void 0,done:!0}:D(t,e?--n:n++,o)}))},e.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,o=Xe(this,e);(n=o())!==Je&&!1!==t(n,e?--r:r++,this););return r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?$e(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?tn():(this.__ownerID=t,this.__altered=!1,this)},e}(w);We.isList=qe;var Ge=We.prototype;Ge["@@__IMMUTABLE_LIST__@@"]=!0,Ge.delete=Ge.remove,Ge.merge=Ge.concat,Ge.setIn=ee,Ge.deleteIn=Ge.removeIn=re,Ge.update=ie,Ge.updateIn=ae,Ge.mergeIn=ve,Ge.mergeDeepIn=be,Ge.withMutations=we,Ge.wasAltered=Se,Ge.asImmutable=Oe,Ge["@@transducer/init"]=Ge.asMutable=_e,Ge["@@transducer/step"]=function(t,e){return t.push(e)},Ge["@@transducer/result"]=function(t){return t.asImmutable()};var Qe=function(t,e){this.array=t,this.ownerID=e};Qe.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new Qe([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=nn(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},Qe.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&31;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=nn(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Ze,Je={};function Xe(t,e){var n=t._origin,r=t._capacity,o=an(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;u>32&&(u=32);return function(){if(c===u)return Je;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);l>32&&(l=32);return function(){for(;;){if(s){var t=s();if(t!==Je)return t;s=null}if(u===l)return Je;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(t,s,c)}}function $e(t,e,n,r,o,i,a){var s=Object.create(Ge);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function tn(){return Ze||(Ze=$e(0,0,5))}function en(t,e,n,r,i,a){var s,c=r>>>n&31,u=t&&c<t.array.length;if(!u&&void 0===i)return t;if(n>0){var l=t&&t.array[c],f=en(l,e,n-5,r,i,a);return f===l?t:((s=nn(t,e)).array[c]=f,s)}return u&&t.array[c]===i?t:(a&&o(a),s=nn(t,e),void 0===i&&c===s.array.length-1?s.array.pop():s.array[c]=i,s)}function nn(t,e){return e&&t&&e===t.ownerID?t:new Qe(t?t.array.slice():[],e)}function rn(t,e){if(e>=an(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&31],r-=5;return n}}function on(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new i,o=t._origin,a=t._capacity,s=o+e,c=void 0===n?a:n<0?a+n:o+n;if(s===o&&c===a)return t;if(s>=c)return t.clear();for(var u=t._level,l=t._root,f=0;s+f<0;)l=new Qe(l&&l.array.length?[void 0,l]:[],r),f+=1<<(u+=5);f&&(s+=f,o+=f,c+=f,a+=f);for(var p=an(a),d=an(c);d>=1<<u+5;)l=new Qe(l&&l.array.length?[l]:[],r),u+=5;var h=t._tail,g=d<p?rn(t,c-1):d>p?new Qe([],r):h;if(h&&d>p&&s<a&&h.array.length){for(var m=l=nn(l,r),y=u;y>5;y-=5){var v=p>>>y&31;m=m.array[v]=nn(m.array[v],r)}m.array[p>>>5&31]=h}if(c<a&&(g=g&&g.removeAfter(r,0,c)),s>=d)s-=d,c-=d,u=5,l=null,g=g&&g.removeBefore(r,0,s);else if(s>o||d<p){for(f=0;l;){var b=s>>>u&31;if(b!==d>>>u&31)break;b&&(f+=(1<<u)*b),u-=5,l=l.array[b]}l&&s>o&&(l=l.removeBefore(r,u,s-f)),l&&d<p&&(l=l.removeAfter(r,u,d-f)),f&&(s-=f,c-=f)}return t.__ownerID?(t.size=c-s,t._origin=s,t._capacity=c,t._level=u,t._root=l,t._tail=g,t.__hash=void 0,t.__altered=!0,t):$e(s,c,u,l,g)}function an(t){return t<32?0:t-1>>>5<<5}var sn,cn=function(t){function e(t){return null==t?ln():J(t)?t:ln().withMutations((function(e){var n=b(t);Ht(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ln()},e.prototype.set=function(t,e){return fn(this,t,e)},e.prototype.remove=function(t){return fn(this,t,r)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?un(e,n,t,this.__hash):0===this.size?ln():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Ee);function un(t,e,n,r){var o=Object.create(cn.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ln(){return sn||(sn=un(Pe(),tn()))}function fn(t,e,n){var o,i,a=t._map,s=t._list,c=a.get(e),u=void 0!==c;if(n===r){if(!u)return t;s.size>=32&&s.size>=2*a.size?(o=(i=s.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(o.__ownerID=i.__ownerID=t.__ownerID)):(o=a.remove(e),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(n===s.get(c)[1])return t;o=a,i=s.set(c,[e,n])}else o=a.set(e,s.size),i=s.set(s.size,[e,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=i,t.__hash=void 0,t.__altered=!0,t):un(o,i)}cn.isOrderedMap=J,cn.prototype[k]=!0,cn.prototype.delete=cn.prototype.remove;function pn(t){return Boolean(t&&t["@@__IMMUTABLE_STACK__@@"])}var dn=function(t){function e(t){return null==t?yn():pn(t)?t:yn().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=s(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):mn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&pn(e))return e;Ht(e.size);var n=this.size,r=this._head;return e.__iterate((function(t){n++,r={value:t,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):mn(n,r)},e.prototype.pop=function(){return this.slice(1)},e.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()},e.prototype.slice=function(e,n){if(u(e,n,this.size))return this;var r=l(e,this.size);if(f(n,this.size)!==this.size)return t.prototype.slice.call(this,e,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):mn(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?mn(this.size,this._head,t,this.__hash):0===this.size?yn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new H(this.toArray()).__iterate((function(e,r){return t(e,r,n)}),e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new H(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new x((function(){if(r){var e=r.value;return r=r.next,D(t,n++,e)}return{value:void 0,done:!0}}))},e}(w);dn.isStack=pn;var hn,gn=dn.prototype;function mn(t,e,n,r){var o=Object.create(gn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function yn(){return hn||(hn=mn(0))}gn["@@__IMMUTABLE_STACK__@@"]=!0,gn.shift=gn.pop,gn.unshift=gn.push,gn.unshiftAll=gn.pushAll,gn.withMutations=we,gn.wasAltered=Se,gn.asImmutable=Oe,gn["@@transducer/init"]=gn.asMutable=_e,gn["@@transducer/step"]=function(t,e){return t.unshift(e)},gn["@@transducer/result"]=function(t){return t.asImmutable()};function vn(t){return Boolean(t&&t["@@__IMMUTABLE_SET__@@"])}function bn(t){return vn(t)&&j(t)}function wn(t,e){if(t===e)return!0;if(!h(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||g(t)!==g(e)||m(t)!==m(e)||j(t)!==j(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!y(t);if(j(t)){var o=t.entries();return e.every((function(t,e){var r=o.next().value;return r&&$(r[1],t)&&(n||$(r[0],e))}))&&o.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var a=t;t=e,e=a}var s=!0,c=e.__iterate((function(e,o){if(n?!t.has(e):i?!$(e,t.get(o,r)):!$(t.get(o,r),e))return s=!1,!1}));return s&&t.size===c}function _n(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function On(t){if(!t||"object"!=typeof t)return t;if(!h(t)){if(!qt(t))return t;t=z(t)}if(g(t)){var e={};return t.__iterate((function(t,n){e[n]=On(t)})),e}var n=[];return t.__iterate((function(t){n.push(On(t))})),n}var Sn=function(t){function e(e){return null==e?Cn():vn(e)&&!j(e)?e:Cn().withMutations((function(n){var r=t(e);Ht(r.size),r.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(b(t).keySeq())},e.intersect=function(t){return(t=v(t).toArray()).length?kn.intersect.apply(e(t.pop()),t):Cn()},e.union=function(t){return(t=v(t).toArray()).length?kn.union.apply(e(t.pop()),t):Cn()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return jn(this,this._map.set(t,t))},e.prototype.remove=function(t){return jn(this,this._map.remove(t))},e.prototype.clear=function(){return jn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,o=jn(this,this._map.mapEntries((function(o){var i=o[1],a=t.call(e,i,i,n);return a!==i&&(r=!0),[a,a]}),e));return r?o:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var r=0;r<e.length;r++)"string"==typeof e[r]?n.add(e[r]):t(e[r]).forEach((function(t){return n.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return Wn(Dt(this,t))},e.prototype.sortBy=function(t,e){return Wn(Dt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(_);Sn.isSet=vn;var En,kn=Sn.prototype;function jn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Mn(t,e){var n=Object.create(kn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Cn(){return En||(En=Mn(Pe()))}kn["@@__IMMUTABLE_SET__@@"]=!0,kn.delete=kn.remove,kn.merge=kn.concat=kn.union,kn.withMutations=we,kn.asImmutable=Oe,kn["@@transducer/init"]=kn.asMutable=_e,kn["@@transducer/step"]=function(t,e){return t.add(e)},kn["@@transducer/result"]=function(t){return t.asImmutable()},kn.__empty=Cn,kn.__make=Mn;var xn,Dn=function(t){function e(t,n,r){if(!(this instanceof e))return new e(t,n,r);if(Ut(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<t&&(r=-r),this._start=t,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-t)/r-1)+1),0===this.size){if(xn)return xn;xn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+s(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return u(t,n,this.size)?this:(t=l(t,this.size),(n=f(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==t(o,e?n-++i:i++,this);)o+=e?-r:r;return i},e.prototype.__iterator=function(t,e){var n=this.size,r=this._step,o=e?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+=e?-r:r,D(t,e?n-++i:i++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:wn(this,t)},e}(F);function Tn(t,e,n){for(var o=Kt(e),i=0;i!==o.length;)if((t=Qt(t,o[i++],r))===r)return n;return t}function In(t,e){return Tn(this,t,e)}function Ln(t,e){return Tn(t,e,r)!==r}function Nn(){Ht(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t}v.isIterable=h,v.isKeyed=g,v.isIndexed=m,v.isAssociative=y,v.isOrdered=j,v.Iterator=x,_n(v,{toArray:function(){Ht(this.size);var t=new Array(this.size||0),e=g(this),n=0;return this.__iterate((function(r,o){t[n++]=e?[o,r]:r})),t},toIndexedSeq:function(){return new bt(this)},toJS:function(){return On(this)},toKeyedSeq:function(){return new vt(this,!0)},toMap:function(){return Ee(this.toKeyedSeq())},toObject:Nn,toOrderedMap:function(){return cn(this.toKeyedSeq())},toOrderedSet:function(){return Wn(g(this)?this.valueSeq():this)},toSet:function(){return Sn(g(this)?this.valueSeq():this)},toSetSeq:function(){return new wt(this)},toSeq:function(){return m(this)?this.toIndexedSeq():g(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return dn(g(this)?this.valueSeq():this)},toList:function(){return We(g(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Nt(this,Ct(this,t))},includes:function(t){return this.some((function(e){return $(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Ht(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Nt(this,kt(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var r=g(t),o=[[],[]];t.__iterate((function(i,a){o[e.call(n,i,a,t)?1:0].push(r?[a,i]:i)}));var i=Pt(t);return o.map((function(e){return Nt(t,i(e))}))}(this,t,e)},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Ht(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ht(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Nt(this,St(this,t,e))},reduce:function(t,e,n){return Bn(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return Bn(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Nt(this,Et(this,!0))},slice:function(t,e){return Nt(this,jt(this,t,e,!0))},some:function(t,e){return!this.every(Hn(t),e)},sort:function(t){return Nt(this,Dt(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return a(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Ee().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return wn(this,t)},entrySeq:function(){var t=this;if(t._cache)return new H(t._cache);var e=t.toSeq().map(Un).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Hn(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(c,null,t)},flatMap:function(t,e){return Nt(this,function(t,e,n){var r=Pt(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Nt(this,xt(this,t,!0))},fromEntrySeq:function(){return new _t(this)},get:function(t,e){return this.find((function(e,n){return $(n,t)}),void 0,e)},getIn:In,groupBy:function(t,e){return function(t,e,n){var r=g(t),o=(j(t)?cn():Ee()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Pt(t);return o.map((function(e){return Nt(t,i(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,r)!==r},hasIn:function(t){return Ln(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:v(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:v(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return $(e,t)}))},keySeq:function(){return this.toSeq().map(Fn).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Tt(this,t)},maxBy:function(t,e){return Tt(this,e,t)},min:function(t){return Tt(this,t?Kn(t):Vn)},minBy:function(t,e){return Tt(this,e?Kn(e):Vn,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Nt(this,Mt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Hn(t),e)},sortBy:function(t,e){return Nt(this,Dt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Nt(this,function(t,e,n){var r=Rt(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new x((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:D(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Hn(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=j(t),n=g(t),r=e?1:0;return function(t,e){return e=tt(e,3432918353),e=tt(e<<15|e>>>-15,461845907),e=tt(e<<13|e>>>-13,5),e=tt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=et((e=tt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+qn(rt(t),rt(e))|0}:function(t,e){r=r+qn(rt(t),rt(e))|0}:e?function(t){r=31*r+rt(t)|0}:function(t){r=r+rt(t)|0}),r)}(this))}});var An=v.prototype;An["@@__IMMUTABLE_ITERABLE__@@"]=!0,An[C]=An.values,An.toJSON=An.toArray,An.__toStringMapper=Wt,An.inspect=An.toSource=function(){return this.toString()},An.chain=An.flatMap,An.contains=An.includes,_n(b,{flip:function(){return Nt(this,Ot(this))},mapEntries:function(t,e){var n=this,r=0;return Nt(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Nt(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var Pn=b.prototype;Pn["@@__IMMUTABLE_KEYED__@@"]=!0,Pn[C]=An.entries,Pn.toJSON=Nn,Pn.__toStringMapper=function(t,e){return Wt(e)+": "+Wt(t)},_n(w,{toKeyedSeq:function(){return new vt(this,!1)},filter:function(t,e){return Nt(this,kt(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Nt(this,Et(this,!1))},slice:function(t,e){return Nt(this,jt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=l(t,t<0?this.count():this.size);var r=this.slice(0,t);return Nt(this,1===n?r:r.concat(Ft(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,xt(this,t,!1))},get:function(t,e){return(t=s(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=s(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,e){var n=Rt(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate((function(t){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new x((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?D(n,a++,e):D(n,a++,o.value,o)}))},n}(this,t))},interleave:function(){var t=[this].concat(Ft(arguments)),e=Lt(this.toSeq(),F.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Nt(this,n)},keySeq:function(){return Dn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Nt(this,Mt(this,t,e,!1))},zip:function(){var t=[this].concat(Ft(arguments));return Nt(this,Lt(this,Yn,t))},zipAll:function(){var t=[this].concat(Ft(arguments));return Nt(this,Lt(this,Yn,t,!0))},zipWith:function(t){var e=Ft(arguments);return e[0]=this,Nt(this,Lt(this,t,e))}});var Rn=w.prototype;Rn["@@__IMMUTABLE_INDEXED__@@"]=!0,Rn[k]=!0,_n(_,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var zn=_.prototype;function Bn(t,e,n,r,o,i){return Ht(t.size),t.__iterate((function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),i),n}function Fn(t,e){return e}function Un(t,e){return[e,t]}function Hn(t){return function(){return!t.apply(this,arguments)}}function Kn(t){return function(){return-t.apply(this,arguments)}}function Yn(){return Ft(arguments)}function Vn(t,e){return t<e?1:t>e?-1:0}function qn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}zn.has=An.includes,zn.contains=zn.includes,zn.keys=zn.values,_n(B,Pn),_n(F,Rn),_n(U,zn);var Wn=function(t){function e(t){return null==t?Jn():bn(t)?t:Jn().withMutations((function(e){var n=_(t);Ht(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(b(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Sn);Wn.isOrderedSet=bn;var Gn,Qn=Wn.prototype;function Zn(t,e){var n=Object.create(Qn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,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 Xn={LeftThenRight:-1,RightThenLeft:1};var $n=function(t,e){var n;!function(t){if(S(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(E(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);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(t),c=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;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=We().withMutations((function(t){t.setSize(a._keys.length),b(i).forEach((function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)}))})),this},o=r.prototype=Object.create(tr);return o.constructor=r,e&&(r.displayName=e),r};$n.prototype.toString=function(){for(var t,e=nr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)e+=(r?", ":"")+(t=n[r])+": "+Wt(this.get(t));return e+" }"},$n.prototype.equals=function(t){return this===t||S(t)&&rr(this).equals(rr(t))},$n.prototype.hashCode=function(){return rr(this).hashCode()},$n.prototype.has=function(t){return this._indices.hasOwnProperty(t)},$n.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],r=this._values.get(n);return void 0===r?this._defaultValues[t]:r},$n.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return er(this,n)}return this},$n.prototype.remove=function(t){return this.set(t)},$n.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:er(this,t)},$n.prototype.wasAltered=function(){return this._values.wasAltered()},$n.prototype.toSeq=function(){return rr(this)},$n.prototype.toJS=function(){return On(this)},$n.prototype.entries=function(){return this.__iterator(2)},$n.prototype.__iterator=function(t,e){return rr(this).__iterator(t,e)},$n.prototype.__iterate=function(t,e){return rr(this).__iterate(t,e)},$n.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?er(this,e,t):(this.__ownerID=t,this._values=e,this)},$n.isRecord=S,$n.getDescriptiveName=nr;var tr=$n.prototype;function er(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._values=e,r.__ownerID=n,r}function nr(t){return t.constructor.displayName||t.constructor.name||"Record"}function rr(t){return W(t._keys.map((function(e){return[e,t.get(e)]})))}function or(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Ut(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}tr["@@__IMMUTABLE_RECORD__@@"]=!0,tr.delete=tr.remove,tr.deleteIn=tr.removeIn=re,tr.getIn=In,tr.hasIn=An.hasIn,tr.merge=se,tr.mergeWith=ce,tr.mergeIn=ve,tr.mergeDeep=me,tr.mergeDeepWith=ye,tr.mergeDeepIn=be,tr.setIn=ee,tr.update=ie,tr.updateIn=ae,tr.withMutations=we,tr.asMutable=_e,tr.asImmutable=Oe,tr[C]=tr.entries,tr.toJSON=tr.toObject=An.toObject,tr.inspect=tr.toSource=function(){return this.toString()};var ir,ar=function(t){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this._value=t,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(ir)return ir;ir=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return $(this._value,t)},e.prototype.slice=function(t,n){var r=this.size;return u(t,n,r)?this:new e(this._value,f(n,r)-l(t,r))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return $(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return $(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var n=this.size,r=0;r!==n&&!1!==t(this._value,e?n-++r:r++,this););return r},e.prototype.__iterator=function(t,e){var n=this,r=this.size,o=0;return new x((function(){return o===r?{value:void 0,done:!0}:D(t,e?r-++o:o++,n._value)}))},e.prototype.equals=function(t){return t instanceof e?$(this._value,t._value):wn(t)},e}(F);function sr(t,e){return function t(e,n,r,o,i,a){if("string"!=typeof r&&!E(r)&&(R(r)||I(r)||Vt(r))){if(~e.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");e.push(r),i&&""!==o&&i.push(o);var s=n.call(a,o,z(r).map((function(o,a){return t(e,n,o,a,i,r)})),i&&i.slice());return e.pop(),i&&i.pop(),s}return r}([],e||cr,t,"",e&&e.length>2?[]:void 0,{"":t})}function cr(t,e){return m(e)?e.toList():g(e)?e.toMap():e.toSet()}var ur="4.3.0",lr={version:ur,Collection:v,Iterable:v,Seq:z,Map:Ee,OrderedMap:cn,List:We,Stack:dn,Set:Sn,OrderedSet:Wn,PairSorting:Xn,Record:$n,Range:Dn,Repeat:ar,is:$,fromJS:sr,hash:rt,isImmutable:E,isCollection:h,isKeyed:g,isIndexed:m,isAssociative:y,isOrdered:j,isValueObject:X,isPlainObject:Vt,isSeq:O,isList:qe,isMap:Z,isOrderedMap:J,isStack:pn,isSet:vn,isOrderedSet:bn,isRecord:S,get:Qt,getIn:Tn,has:Gt,hasIn:Ln,merge:le,mergeDeep:pe,mergeWith:fe,mergeDeepWith:de,remove:Jt,removeIn:ne,set:Xt,setIn:te,update:oe,updateIn:$t},fr=v;e.default=lr},function(t,e,n){"use strict";var r=n(165),o=n(305),i=n(166),a=n(306),s=function(){function t(){this._subscriber=new o,this._currentSubscription=null}var e=t.prototype;return e.addListener=function(t,e,n){return this._subscriber.addSubscription(t,new r(this._subscriber,e,n))},e.once=function(t,e,n){var r=this;return this.addListener(t,(function(){r.removeCurrentListener(),e.apply(n,arguments)}))},e.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},e.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.listeners=function(t){var e=this._subscriber.getSubscriptionsForType(t);return e?e.filter(a.thatReturnsTrue).map((function(t){return t.listener})):[]},e.emit=function(t){var e=this._subscriber.getSubscriptionsForType(t);if(e){for(var n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.__emitToSubscription=function(t,e){var n=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,n)},t}();t.exports=s},function(t,e,n){"use strict";var r=function(){function t(t){this.subscriber=t}return t.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},function(t,e,n){"use strict";var r=n(166),o=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var e=t.prototype;return e.addSubscription=function(t,e){e.subscriber!==this&&r(!1),this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var n=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(e),e.eventType=t,e.key=n,e},e.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},e.removeSubscription=function(t){var e=t.eventType,n=t.key,r=this._subscriptionsForType[e];r&&delete r[n]},e.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=o},function(t,e,n){"use strict";function r(t){return function(){return t}}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(t){return t},t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ReactFormBuilder",(function(){return Mc})),n.d(e,"ReactFormGenerator",(function(){return Cc})),n.d(e,"ElementStore",(function(){return Gt})),n.d(e,"Registry",(function(){return La.a}));var r={};n.r(r),n.d(r,"FILE",(function(){return I})),n.d(r,"URL",(function(){return L})),n.d(r,"TEXT",(function(){return N}));var o=n(22),i=n.n(o),a=n(8),s=n.n(a),c=n(9),u=n.n(c),l=n(14),f=n.n(l),p=n(10),d=n.n(p),h=n(20),g=n.n(h),m=n(13),y=n.n(m),v=n(0),b=n.n(v),w=n(313);function _(t){var e=null;return function(){return null==e&&(e=t()),e}}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var S=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.entered=[],this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var o=[];return n.forEach((function(t){return o.push(t)})),o}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&O(e.prototype,n),r&&O(e,r),t}(),E=_((function(){return/firefox/i.test(navigator.userAgent)})),k=_((function(){return Boolean(window.safari)}));function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var M=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=e.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var a,s,c=[],u=[],l=[],f=0;f<r-1;f++)a=e[f+1]-e[f],s=n[f+1]-n[f],u.push(a),c.push(s),l.push(s/a);for(var p=[l[0]],d=0;d<u.length-1;d++){var h=l[d],g=l[d+1];if(h*g<=0)p.push(0);else{a=u[d];var m=u[d+1],y=a+m;p.push(3*y/((y+m)/h+(y+a)/g))}}p.push(l[l.length-1]);for(var v,b=[],w=[],_=0;_<p.length-1;_++){v=l[_];var O=p[_],S=1/u[_],E=O+p[_+1]-v-v;b.push((v-O-E)*S),w.push(E*S*S)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=w}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=e.length-1;if(t===e[a])return n[a];for(var s,c=0,u=i.length-1;c<=u;){var l=e[s=Math.floor(.5*(c+u))];if(l<t)c=s+1;else{if(!(l>t))return n[s];u=s-1}}var f=t-e[a=Math.max(0,u)],p=f*f;return n[a]+r[a]*f+o[a]*p+i[a]*f*p}}])&&j(e.prototype,n),r&&j(e,r),t}();function C(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function x(t){return{x:t.clientX,y:t.clientY}}function D(t,e,n,r,o){var i,a,s,c="IMG"===(i=e).nodeName&&(E()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),u=C(c?t:e),l={x:n.x-u.x,y:n.y-u.y},f=t.offsetWidth,p=t.offsetHeight,d=r.anchorX,h=r.anchorY,g=function(t,e,n,r){var o=t?e.width:n,i=t?e.height:r;return k()&&t&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,e,f,p),m=g.dragPreviewWidth,y=g.dragPreviewHeight,v=o.offsetX,b=o.offsetY,w=0===b||b;return{x:0===v||v?v:new M([0,.5,1],[l.x,l.x/f*m,l.x+m-f]).interpolate(d),y:w?b:(s=new M([0,.5,1],[l.y,l.y/p*y,l.y+y-p]).interpolate(h),k()&&c&&(s+=(window.devicePixelRatio-1)*y),s)}}var T,I="__NATIVE_FILE__",L="__NATIVE_URL__",N="__NATIVE_TEXT__";function A(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R=(P(T={},I,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]}),P(T,L,{exposeProperties:{urls:function(t,e){return A(t,e,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),P(T,N,{exposeProperties:{text:function(t,e){return A(t,e,"")}},matchesTypes:["Text","text/plain"]}),T);function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var B=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.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(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&z(e.prototype,n),r&&z(e,r),t}();function F(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(R).filter((function(t){return R[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var H=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.globalContext=e}var e,n,r;return e=t,(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(e.prototype,n),r&&U(e,r),t}();function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var W=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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(t){var e=r.sourceNodes.get(t);return e&&C(e)||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(t){return Boolean(t&&r.document&&r.document.body&&document.body.contains(t))},this.endDragIfSourceWasRemovedFromDOM=function(){var t=r.currentDragSourceNode;r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=x(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=t.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(t){}r.setCurrentDragSourceNode(t.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&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=F(e);n&&r.beginDragNativeItem(n,e)}},this.handleTopDragEnter=function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,E()||r.actions.hover(e,{clientOffset:x(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.actions.hover(e||[],{clientOffset:x(t)}),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(t){var e;(r.dropTargetIds=[],t.preventDefault(),r.isDraggingNativeItem())&&(null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer));r.enterLeaveCounter.reset()},this.handleTopDrop=function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:x(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new H(n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new S(this.isNodeInDocument)}var e,n,o;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.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(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var o=function(e){return r.handleDragStart(e,t)},i=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},o=function(e){return n.handleDragOver(e,t)},i=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return Y({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return Y({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(r).some((function(e){return r[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new B(R[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){return e.window&&e.window.addEventListener("mousemove",e.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(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&q(e.prototype,n),o&&q(e,o),t}(),G=function(t,e){return new W(t,e)},Q=n(3),Z=n(83),J=n(36),X=n(308),$=n(309),tt=n(16),et=n(30);function nt(t,e){return Object.keys(t).reduce((function(n,r){return n[r]=Object(Q.a)({timeZone:e},t[r]),n}),{})}function rt(t,e){return Object.keys(Object(Q.a)(Object(Q.a)({},t),e)).reduce((function(n,r){return n[r]=Object(Q.a)(Object(Q.a)({},t[r]||{}),e[r]||{}),n}),{})}function ot(t,e){if(!e)return t;var n=$.a.formats;return Object(Q.a)(Object(Q.a)(Object(Q.a)({},n),t),{date:rt(nt(n.date,e),nt(t.date||{},e)),time:rt(nt(n.time,e),nt(t.time||{},e))})}function it(t,e,n,r,o){var i=t.locale,a=t.formats,s=t.messages,c=t.defaultLocale,u=t.defaultFormats,l=t.fallbackOnEmptyString,f=t.onError,p=t.timeZone,d=t.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,g=n.defaultMessage;Object(X.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 m=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,m)&&s[m];if(Array.isArray(y)&&1===y.length&&y[0].type===et.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=ot(a,p),u=ot(u,p),!y){if(!1===l&&""===y)return y;if((!g||i&&i.toLowerCase()!==c.toLowerCase())&&f(new tt.g(n,i)),g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){return f(new tt.e('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,n,t)),"string"==typeof g?g:m}return m}try{return e.getMessageFormat(y,i,a,Object(Q.a)({formatters:e},o||{})).format(r)}catch(t){f(new tt.e('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,n,t))}if(g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){f(new tt.e('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,n,t))}return"string"==typeof y?y:"string"==typeof g?g:m}var at=n(27),st=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ct(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=a&&Object(at.e)(o,"number",a,i)||{};return e(r,Object(at.d)(n,st,s))}function ut(t,e,n,r){void 0===r&&(r={});try{return ct(t,e,r).format(n)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting number.",e))}return String(n)}function lt(t,e,n,r){void 0===r&&(r={});try{return ct(t,e,r).formatToParts(n)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting number.",e))}return[]}var ft=n(57),pt=["numeric","style"];function dt(t,e,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||t.onError(new ft.b('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ft.a.MISSING_INTL_API));try{return function(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=!!a&&Object(at.e)(o,"relative",a,i)||{};return e(r,Object(at.d)(n,pt,s))}(t,e,o).format(n,r)}catch(e){t.onError(new tt.c("Error formatting relative time.",t.locale,e))}return String(n)}var ht=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function gt(t,e,n,r){var o=t.locale,i=t.formats,a=t.onError,s=t.timeZone;void 0===r&&(r={});var c=r.format,u=Object(Q.a)(Object(Q.a)({},s&&{timeZone:s}),c&&Object(at.e)(i,e,c,a)),l=Object(at.d)(r,ht,u);return"time"!==e||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 mt(t,e){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 gt(t,"date",e,a).format(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date.",e))}return String(s)}function yt(t,e){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 gt(t,"time",e,a).format(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting time.",e))}return String(s)}function vt(t,e){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=t.timeZone,u=t.locale,l=t.onError,f=Object(at.d)(s,ht,c?{timeZone:c}:{});try{return e(u,f).formatRange(o,i)}catch(t){l(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date time range.",t))}return String(o)}function bt(t,e){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 gt(t,"date",e,a).formatToParts(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date.",e))}return[]}function wt(t,e){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 gt(t,"time",e,a).formatToParts(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting time.",e))}return[]}var _t=["localeMatcher","type"];function Ot(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.PluralRules||i(new ft.b('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,_t);try{return e(o,a).select(n)}catch(t){i(new tt.c("Error formatting plural.",o,t))}return"other"}var St=["localeMatcher","type","style"],Et=Date.now();function kt(t,e,n,r){void 0===r&&(r={});var o=jt(t,e,n,r).reduce((function(t,e){var n=e.value;return"string"!=typeof n?t.push(n):"string"==typeof t[t.length-1]?t[t.length-1]+=n:t.push(n),t}),[]);return 1===o.length?o[0]:o}function jt(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.ListFormat||i(new ft.b('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,St);try{var s={},c=n.map((function(t,e){if("object"==typeof t){var n=function(t){return"".concat(Et,"_").concat(t,"_").concat(Et)}(e);return s[n]=t,n}return String(t)}));return e(o,a).formatToParts(c).map((function(t){return"literal"===t.type?t:Object(Q.a)(Object(Q.a)({},t),{value:s[t.value]||t.value})}))}catch(t){i(new tt.a(tt.b.FORMAT_ERROR,"Error formatting list.",t))}return n}var Mt=["localeMatcher","style","type","fallback"];function Ct(t,e,n,r){var o=t.locale,i=t.onError;Intl.DisplayNames||i(new ft.b('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,Mt);try{return e(o,a).of(n)}catch(t){i(new tt.a(tt.b.FORMAT_ERROR,"Error formatting display name.",t))}}function xt(t){var e;t.onWarn&&t.defaultRichTextElements&&"string"==typeof((e=t.messages||{})?e[Object.keys(e)[0]]:void 0)&&t.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 Dt=n(110);function Tt(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}function It(t){return t?Object.keys(t).reduce((function(e,n){var r=t[n];return e[n]=Object(Dt.c)(r)?Object(J.b)(r):r,e}),{}):t}var Lt=function(t,e,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=It(r),s=it.apply(void 0,Object(Q.d)([t,e,n,a],o,!1));return Array.isArray(s)?v.Children.toArray(s):s},Nt=function(t,e){var n=t.defaultRichTextElements,r=Object(Q.c)(t,["defaultRichTextElements"]),o=It(n),i=function(t,e){var n=Object(at.b)(e),r=Object(Q.a)(Object(Q.a)({},at.a),t),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new tt.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 tt.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 tt.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"),xt(r),Object(Q.a)(Object(Q.a)({},r),{formatters:n,formatNumber:ut.bind(null,r,n.getNumberFormat),formatNumberToParts:lt.bind(null,r,n.getNumberFormat),formatRelativeTime:dt.bind(null,r,n.getRelativeTimeFormat),formatDate:mt.bind(null,r,n.getDateTimeFormat),formatDateToParts:bt.bind(null,r,n.getDateTimeFormat),formatTime:yt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:vt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:wt.bind(null,r,n.getDateTimeFormat),formatPlural:Ot.bind(null,r,n.getPluralRules),formatMessage:it.bind(null,r,n),$t:it.bind(null,r,n),formatList:kt.bind(null,r,n.getListFormat),formatListToParts:jt.bind(null,r,n.getListFormat),formatDisplayName:Ct.bind(null,r,n.getDisplayNames)})}(Object(Q.a)(Object(Q.a)(Object(Q.a)({},J.a),r),{defaultRichTextElements:o}),e);return Object(Q.a)(Object(Q.a)({},i),{formatMessage:Lt.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)})},At=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=Object(at.c)(),e.state={cache:e.cache,intl:Nt(Tt(e.props),e.cache),prevConfig:Tt(e.props)},e}return Object(Q.b)(e,t),e.getDerivedStateFromProps=function(t,e){var n=e.prevConfig,r=e.cache,o=Tt(t);return Object(J.d)(n,o)?null:{intl:Nt(o,r),prevConfig:o}},e.prototype.render=function(){return Object(J.c)(this.state.intl),v.createElement(Z.b,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=J.a,e}(v.PureComponent),Pt=n(107),Rt=n.n(Pt),zt=n(11),Bt=n.n(zt),Ft=n(167),Ut=n.n(Ft);var Ht,Kt,Yt,Vt=class{constructor(t){const e=this;e.actions={},e.mutations={},e.state={},e.status="resting",e.callbacks=[],t.hasOwnProperty("actions")&&(e.actions=t.actions),t.hasOwnProperty("mutations")&&(e.mutations=t.mutations),e.state=new Proxy(t.initialState||{},{set:(t,n,r)=>(t[n]=r,e.processCallbacks(e.state),e.status="resting",!0)})}dispatch(t,e){const n=this;return"function"!=typeof n.actions[t]?(console.error(`Action "${t}" doesn't exist.`),!1):(n.status="action",n.actions[t](n,e))}commit(t,e){const n=this;if("function"!=typeof n.mutations[t])return console.error(`Mutation "${t}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[t](n.state,e);return n.state=r,!0}processCallbacks(t){return!!this.callbacks.length&&(this.callbacks.forEach(e=>e(t)),!0)}subscribe(t){return"function"!=typeof t?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(t),!0)}},qt=n(108),Wt=new Vt({actions:{setData:function(t,e,n){t.commit("setData",e),n&&this.save(e)},load:function(t,e){var n=this,r=e.loadUrl,o=e.saveUrl,i=e.data,a=e.saveAlways;Ht=o;var s=a||void 0===a;t.commit("setSaveAlways",s),Yt?Yt().then((function(e){i&&i.length>0&&0===e.length&&i.forEach((function(t){return e.push(t)})),n.setData(t,e)})):r?Object(qt.a)(r).then((function(e){i&&i.length>0&&0===e.length&&i.forEach((function(t){return e.push(t)})),n.setData(t,e)})):this.setData(t,i)},create:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.push(e),this.setData(t,r,o)},delete:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(e),1),this.setData(t,r,o)},deleteLastItem:function(t){var e=t.state.lastItem;e&&(this.delete(t,e),t.commit("setLastItem",null))},resetLastItem:function(t){t.state.lastItem&&t.commit("setLastItem",null)},post:function(t){var e=t.state.data;this.setData(t,e,!0)},updateOrder:function(t,e){var n=t.state.saveAlways,r=e.filter((function(t){return t&&!t.parentId}));e.filter((function(t){return t&&t.parentId})).forEach((function(t){return r.push(t)})),this.setData(t,r,n)},insertItem:function(t,e){t.commit("setLastItem",e.isContainer?null:e)},save:function(t){Kt?Kt({task_data:t}):Ht&&Object(qt.b)(Ht,{task_data:t})}},mutations:{setData:function(t,e){return t.data=e,t},setSaveAlways:function(t,e){return t.saveAlways=e,t},setLastItem:function(t,e){return t.lastItem=e,t}},initialState:{data:[],saveAlways:!0,lastItem:null}});Wt.setExternalHandler=function(t,e){Yt=t,Kt=e};var Gt=Wt,Qt=n(82),Zt=n.n(Qt),Jt=n(43),Xt=n.n(Jt),$t=n(61),te=n.n($t),ee=function(t){var e=b.a.useState(null),r=Xt()(e,2),o=r[0],i=r[1];if(b.a.useEffect((function(){(function(){var t=Zt()(te.a.mark((function t(){var e;return te.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(1).then(n.bind(null,316));case 2:e=t.sent,i((function(){return e.default}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}})()()}),[]),!o)return b.a.createElement("div",null,"Loading...");var a=o;return b.a.createElement(a,t)},ne=n(24),re=n.n(ne),oe=n(28),ie=n.n(oe),ae=n(7);function se(t){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t){return"function"==typeof t}function ue(){}function le(t){if(!function(t){return"object"===se(t)&&null!==t}(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function fe(t,e,n){var r=n.getRegistry(),o=r.addTarget(t,e);return[o,function(){return r.removeTarget(o)}]}function pe(t,e,n){var r=n.getRegistry(),o=r.addSource(t,e);return[o,function(){return r.removeSource(o)}]}function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){return"string"==typeof t||"symbol"===de(t)||!!e&&Array.isArray(t)&&t.every((function(t){return he(t,!1)}))}function ge(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=t[u],f=e[u];if(!1===(o=n?n.call(r,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}function me(t,e){"function"==typeof t?t(e):t.current=e}function ye(t,e){var n=t.ref;return Object(ae.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)(t,{ref:function(t){me(n,t),me(e,t)}}):Object(v.cloneElement)(t,{ref:e})}function ve(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function be(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var o=function(t){return function(){var e=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)(e)){var r=e;return t(r,n),r}var o=e;ve(o);var i=n?function(e){return t(e,n)}:t;return ye(o,i)}}(r);e[n]=function(){return o}}})),e}function we(t){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _e(t){return null!==t&&"object"===we(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function Oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Se=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hooks=be({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,_e(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var e,n,r;return e=t,(n=[{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,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!ge(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(t){this.dropTargetOptionsInternal=t}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Oe(e.prototype,n),r&&Oe(e,r),t}();function Ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ke=!1,je=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(ae.a)(!ke,"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 ke=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ke=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{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()}}])&&Ee(e.prototype,n),r&&Ee(e,r),t}();function Me(t){var e=t.current;return null==e?null:e.decoratedRef?e.decoratedRef.current:e}function Ce(t){return(e=t)&&e.prototype&&"function"==typeof e.prototype.render||function(t){var e,n=t;return"Symbol(react.forward_ref)"===(null==n||null===(e=n.$$typeof)||void 0===e?void 0:e.toString())}(t);var e}var xe=n(55),De=n.n(xe),Te=n(56);function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ne(t,e,n){return e&&Le(t.prototype,e),n&&Le(t,n),t}var Ae,Pe=((Ae=function(){function t(e){Ie(this,t),this.isDisposed=!1,this.action=ce(e)?e:ue}return Ne(t,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(t){return Boolean(t&&ce(t.dispose))}},{key:"_fixup",value:function(e){return t.isDisposable(e)?e:t.empty}},{key:"create",value:function(e){return new t(e)}}]),t}()).empty={dispose:ue},Ae),Re=function(){function t(){Ie(this,t),this.isDisposed=!1;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.disposables=n}return Ne(t,[{key:"add",value:function(t){this.isDisposed?t.dispose():this.disposables.push(t)}},{key:"remove",value:function(t){var e=!1;if(!this.isDisposed){var n=this.disposables.indexOf(t);-1!==n&&(e=!0,this.disposables.splice(n,1),t.dispose())}return e}},{key:"clear",value:function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];this.disposables=[];for(var r=0;r<t;r++)e[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];this.disposables=[];for(var r=0;r<t;r++)e[r].dispose()}}}]),t}(),ze=function(){function t(){Ie(this,t),this.isDisposed=!1}return Ne(t,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(t){var e=this.isDisposed;if(!e){var n=this.current;this.current=t,n&&n.dispose()}e&&t&&t.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=void 0,t&&t.dispose()}}}]),t}();function Be(t){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(t,e)}(t,e)||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 Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function He(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e){return(Ke=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ye(t){var e=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(t){return!1}}();return function(){var n,r=qe(t);if(e){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(t,e){return!e||"object"!==Be(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function We(t){var e=t.DecoratedComponent,n=t.createHandler,r=t.createMonitor,o=t.createConnector,i=t.registerHandler,a=t.containerDisplayName,s=t.getType,c=t.collect,u=t.options.arePropsEqual,l=void 0===u?ge:u,f=e,p=e.displayName||e.name||"Component",d=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ke(t,e)}(h,t);var e,a,u,d=Ye(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=d.call(this,t)).decoratedRef=v.createRef(),e.handleChange=function(){var t=e.getCurrentState();ge(t,e.state)||e.setState(t)},e.disposable=new ze,e.receiveProps(t),e.dispose(),e}return e=h,(a=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(ae.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(t,e){return!l(t,this.props)||!ge(e,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new ze,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(t){l(this.props,t)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(t){this.handler&&(this.handler.receiveProps(t),this.receiveType(s(t)))}},{key:"receiveType",value:function(t){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&t!==this.currentType){this.currentType=t;var e=Fe(i(t,this.handler,this.manager),2),n=e[0],r=e[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 Re(new Pe(o),new Pe(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 t=this;return v.createElement(Te.a.Consumer,null,(function(e){var n=e.dragDropManager;return t.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var e;return null===(e=t.handlerConnector)||void 0===e?void 0:e.reconnect()})),v.createElement(f,Object.assign({},t.props,t.getCurrentState(),{ref:Ce(f)?t.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(t){void 0===this.manager&&(Object(ae.a)(void 0!==t,"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",p,p),void 0!==t&&(this.manager=t,this.handlerMonitor=r(t),this.handlerConnector=o(t.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&He(e.prototype,a),u&&He(e,u),h}(v.Component);return t.DecoratedComponent=e,t.displayName="".concat(a,"(").concat(p,")"),t}();return De()(d,e)}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Qe=["canDrop","hover","drop"],Ze=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=null,this.spec=e,this.monitor=n,this.ref=r}var e,n,r;return e=t,(n=[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveMonitor",value:function(t){this.monitor=t}},{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,Me(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Ge(e.prototype,n),r&&Ge(e,r),t}();function Je(t){return Object.keys(t).forEach((function(e){Object(ae.a)(Qe.indexOf(e)>-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',Qe.join(", "),e),Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),function(e,n){return new Ze(t,e,n)}}function Xe(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t;"function"!=typeof t&&(Object(ae.a)(he(t,!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',t),o=function(){return t}),Object(ae.a)(le(e),'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',e);var i=Je(e);return Object(ae.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(ae.a)(le(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(t){return We({containerDisplayName:"DropTarget",createHandler:i,registerHandler:fe,createMonitor:function(t){return new je(t)},createConnector:function(t){return new Se(t)},DecoratedComponent:t,getType:o,collect:n,options:r})}}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var tn=!1,en=!1,nn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(ae.a)(!tn,"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 tn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{tn=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(ae.a)(!en,"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 en=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{en=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{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(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{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()}}])&&$e(e.prototype,n),r&&$e(e,r),t}();function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var on=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hooks=be({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,_e(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,_e(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,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=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{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!ge(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ge(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(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{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(e.prototype,n),r&&rn(e,r),t}();function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var sn=["canDrag","beginDrag","isDragging","endDrag"],cn=["beginDrag"],un=function(){function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=e,this.monitor=n,this.ref=r}var e,n,r;return e=t,(n=[{key:"receiveProps",value:function(t){this.props=t}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(t,e){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):e===t.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,Me(this.ref))}}])&&an(e.prototype,n),r&&an(e,r),t}();function ln(t){return Object.keys(t).forEach((function(e){Object(ae.a)(sn.indexOf(e)>-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(", "),e),Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),cn.forEach((function(e){Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),function(e,n){return new un(t,e,n)}}function fn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t;"function"!=typeof t&&(Object(ae.a)(he(t),'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',t),o=function(){return t}),Object(ae.a)(le(e),'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',e);var i=ln(e);return Object(ae.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(ae.a)(le(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(t){return We({containerDisplayName:"DragSource",createHandler:i,registerHandler:pe,createConnector:function(t){return new on(t)},createMonitor:function(t){return new nn(t)},DecoratedComponent:t,getType:o,collect:n,options:r})}}var pn="card",dn="box";function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mn(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var yn={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},vn={beginDrag:function(t){return{itemType:pn,id:t.id,index:t.index}}},bn={drop:function(t,e,n){if(n){var r=e.getItem(),o=t.index,i=r.index;t.data&&t.data.isContainer||r.itemType===pn||r.data&&"function"==typeof r.setAsChild&&-1===i&&t.insertCard(r,o,r.id)}},hover:function(t,e,n){var r,o,i=e.getItem();if((i.itemType!==dn||-1!==i.index)&&(null===(r=t.data)||void 0===r||!r.isContainer||null!==(o=i.data)&&void 0!==o&&o.isContainer)){var a=i.index,s=t.index;if(a!==s){if(-1===a){if(t.data&&t.data.isContainer)return;i.index=s,t.insertCard(i.onCreate(i.data),s)}var c=Object(oe.findDOMNode)(n).getBoundingClientRect(),u=(c.bottom-c.top)/2,l=e.getClientOffset().y-c.top;a<s&&l<u||a>s&&l>u||(t.moveCard(a,s),i.index=s)}}}},wn=function(t){var e=function(e){d()(r,e);var n=mn(r);function r(){return s()(this,r),n.apply(this,arguments)}return u()(r,[{key:"render",value:function(){var e=this.props,n=e.isDragging?0:1;return(0,e.connectDragPreview)((0,e.connectDropTarget)(b.a.createElement("div",null,b.a.createElement(t,i()({},this.props,{style:gn(gn({},yn),{},{opacity:n})})))))}}]),r}(v.Component);Bt()(e,"propTypes",{connectDragSource:re.a.func,connectDragPreview:re.a.func,connectDropTarget:re.a.func,index:re.a.number.isRequired,isDragging:re.a.bool,id:re.a.any.isRequired,moveCard:re.a.func.isRequired,seq:re.a.number}),Bt()(e,"defaultProps",{seq:-1});var n=Xe([pn,dn],bn,(function(t){return{connectDropTarget:t.dropTarget()}}))(e);return fn(pn,vn,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging()}}))(n)};function _n(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var On=function(t){d()(n,t);var e=_n(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props.intl,e=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?t.formatMessage({id:"drop-zone"}):this.props.text:"";return b.a.createElement("div",{className:e},b.a.createElement("div",null,n))}}]),n}(b.a.Component),Sn=Object(Z.c)(On);On.propTypes={text:re.a.string,show:re.a.bool},On.defaultProps={text:"Dropzone",show:!1};var En=n(68),kn=n.n(En),jn=n(111),Mn=n(46),Cn=n.n(Mn),xn=n(4),Dn=n(5),Tn=n(6),In=n(35),Ln=n(25),Nn=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function An(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(r=t[n],o=e[n],!(r===o||Nn(r)&&Nn(o)))return!1;var r,o;return!0}var Pn=function(t,e){var n;void 0===e&&(e=An);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&e(a,o)||(r=t.apply(this,a),i=!0,n=this,o=a),r}},Rn=n(88);var zn=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(r);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,i?0:o.cssRules.length)}catch(t){0}}else r.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();var Bn=function(t){function e(t,e,r){var o=e.trim().split(h);e=o;var i=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<i;++s)e[s]=n(t,e[s],r).trim();break;default:var c=s=0;for(e=[];s<i;++s)for(var u=0;u<a;++u)e[c++]=n(t[u]+" ",o[s],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,i){var a=t+";",s=2*e+3*n+4*i;if(944===s){t=a.indexOf(":",9)+1;var c=a.substring(t,a.length-1).trim();return c=a.substring(0,t).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 p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(e=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){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(e=(a=t).length-10,s=(c=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.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(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,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(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),L(2!==e?r:r.replace(S,"$1"),n,e)}function i(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(_," or ($1)").substring(4):"("+e+")"}function a(t,e,n,r,o,i,a,s,u,l){for(var f,p=0,d=e;p<I;++p)switch(f=T[p].call(c,t,d,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==e)return d}function s(t){return void 0!==(t=t.prefix)&&(L=null,t?"function"!=typeof t?x=1:(x=2,L=t):x=0),s}function c(t,n){var s=t;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var c=a(-1,n,s,s,M,j,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var f=function t(n,s,c,f,p){for(var d,h,g,b,_,O=0,S=0,E=0,k=0,T=0,L=0,A=g=d=0,P=0,R=0,z=0,B=0,F=c.length,U=F-1,H="",K="",Y="",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),g=1,B=++P;P<F;){switch(h=c.charCodeAt(P)){case 123:g++;break;case 125:g--;break;case 47:switch(h=c.charCodeAt(P+1)){case 42:case 47:t:{for(A=P+1;A<U;++A)switch(c.charCodeAt(A)){case 47:if(42===h&&42===c.charCodeAt(A-1)&&P+2!==A){P=A+1;break t}break;case 10:if(47===h){P=A+1;break t}}P=A}}break;case 91:h++;case 40:h++;case 34:case 39:for(;P++<U&&c.charCodeAt(P)!==h;);}if(0===g)break;P++}switch(g=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=(g=t(s,R,g,h,p+1)).length,0<I&&(_=a(3,g,R=e(D,H,z),s,M,j,B,h,p,f),H=R.join(""),void 0!==_&&0===(B=(g=_.trim()).length)&&(h=0,g="")),0<B)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(m,"$1 $2"))+"{"+g+"}",g=1===x||2===x&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===f&&(K+=g,g="")}else g="";break;default:g=t(s,e(s,H,z),g,f,p+1)}Y+=g,g=z=R=A=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===A&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(B=(H=H.replace(" ",":")).length),0<I&&void 0!==(_=a(1,H,s,n,M,j,K.length,f,p,f))&&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)&&(K+=r(H,d,h,H.charCodeAt(2)))}z=R=A=d=0,H="",h=c.charCodeAt(++P)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==f&&0<H.length&&(R=1,H+="\0"),0<I*N&&a(0,H,s,n,M,j,K.length,f,p,f),j=1,M++;break;case 59:case 125:if(0===S+k+E+O){j++;break}default:switch(j++,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+C&&0<A)switch(P-A){case 2:112===T&&58===c.charCodeAt(P-3)&&(C=T);case 8:111===L&&(C=L)}break;case 58:0===k+S+O&&(A=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*L){case 533:break;default:d=1}E++}break;case 64:0===S+E+k+O+A+g&&(g=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)&&(K+=c.substring(B,P+1)),b="",S=0)}}0===S&&(H+=b)}L=T,T=h,P++}if(0<(B=K.length)){if(R=s,0<I&&(void 0!==(_=a(2,K,R,n,M,j,B,f,p,f))&&0===(K=_).length))return V+K+Y;if(K=R.join(",")+"{"+K+"}",0!=x*C){switch(2!==x||o(K,2)||(C=0),C){case 111:K=K.replace(v,":-moz-$1")+K;break;case 112:K=K.replace(y,"::-webkit-input-$1")+K.replace(y,"::-moz-$1")+K.replace(y,":-ms-input-$1")+K}C=0}}return V+K+Y}(D,s,n,0,0);return 0<I&&(void 0!==(c=a(-2,f,s,s,M,j,f.length,0,0,0))&&(f=c)),"",C=0,j=M=1,f}var u=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(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\()/,j=1,M=1,C=0,x=1,D=[],T=[],I=0,L=null,N=0;return c.use=function t(e){switch(e){case void 0:case null:I=T.length=0;break;default:if("function"==typeof e)T[I++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else N=0|!!e}return t},c.set=s,void 0!==t&&s(t),c};function Fn(t){t&&Un.current.insert(t+"}")}var Un={current:null},Hn=function(t,e,n,r,o,i,a,s,c,u){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return Un.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+"/*|*/";break;case 3:switch(s){case 102:case 112:return Un.current.insert(n[0]+e),"";default:return e+(0===u?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(Fn)}},Kn=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r=new Bn(e);var o,i={};o=t.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){i[t]=!0})),t.parentNode!==o&&o.appendChild(t)})),r.use(t.stylisPlugins)(Hn),a=function(t,e,n,o){var i=e.name;Un.current=n,r(t,e.styles),o&&(c.inserted[i]=!0)};var c={key:n,sheet:new zn({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:i,registered:{},insert:a};return c};n(205);function Yn(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var Vn=function(t,e,n){var r=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var o=e;do{t.insert("."+r,o,t.sheet,!0);o=o.next}while(void 0!==o)}};var qn=function(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Wn={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(t){return 45===t.charCodeAt(1)},Jn=function(t){return null!=t&&"boolean"!=typeof t},Xn=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return Zn(t)?t:t.replace(Gn,"-$&").toLowerCase()})),$n=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Qn,(function(t,e,n){return er={name:e,styles:n,next:er},e}))}return 1===Wn[t]||Zn(t)||"number"!=typeof e||0===e?e:e+"px"};function tr(t,e,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 er={name:n.name,styles:n.styles,next:er},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)er={name:o.name,styles:o.styles,next:er},o=o.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=tr(t,e,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=e&&void 0!==e[a]?r+=i+"{"+e[a]+"}":Jn(a)&&(r+=Xn(i)+":"+$n(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=tr(t,e,a,!1);switch(i){case"animation":case"animationName":r+=Xn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Jn(a[c])&&(r+=Xn(i)+":"+$n(i,a[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var i=er,a=n(t);return er=i,tr(t,e,a,r)}break;case"string":}if(null==e)return n;var s=e[n];return void 0===s||r?n:s}var er,nr=/label:\s*([^\s;\n{]+)\s*;/g;var rr=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";er=void 0;var i=t[0];null==i||void 0===i.raw?(r=!1,o+=tr(n,e,i,!1)):o+=i[0];for(var a=1;a<t.length;a++)o+=tr(n,e,t[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:qn(o)+c,styles:o,next:er}},or=Object.prototype.hasOwnProperty,ir=Object(v.createContext)("undefined"!=typeof HTMLElement?Kn():null),ar=Object(v.createContext)({}),sr=ir.Provider,cr=function(t){var e=function(e,n){return Object(v.createElement)(ir.Consumer,null,(function(r){return t(e,r,n)}))};return Object(v.forwardRef)(e)},ur="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lr=function(t,e){var n={};for(var r in e)or.call(e,r)&&(n[r]=e[r]);return n[ur]=t,n},fr=function(){return null},pr=function(t,e,n,r){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[ur],a=[o],s="";"string"==typeof e.className?s=Yn(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=rr(a);Vn(t,c,"string"==typeof i);s+=t.key+"-"+c.name;var u={};for(var l in e)or.call(e,l)&&"css"!==l&&l!==ur&&(u[l]=e[l]);u.ref=r,u.className=s;var f=Object(v.createElement)(i,u),p=Object(v.createElement)(fr,null);return Object(v.createElement)(v.Fragment,null,p,f)},dr=cr((function(t,e,n){return"function"==typeof t.css?Object(v.createElement)(ar.Consumer,null,(function(r){return pr(e,t,r,n)})):pr(e,t,null,n)}));var hr=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return rr(e)},gr=function(t,e){var n=arguments;if(null==e||!or.call(e,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=dr,o[1]=lr(t,e);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)},mr=(v.Component,function t(e){for(var n=e.length,r=0,o="";r<n;r++){var i=e[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=t(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(t,e,n){var r=[],o=Yn(t,r,n);return r.length<2?n:o+e(r)}var vr=function(){return null},br=cr((function(t,e){return Object(v.createElement)(ar.Consumer,null,(function(n){var r=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=rr(n,e.registered);return Vn(e,o,!1),e.key+"-"+o.name},o={css:r,cx:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return yr(e.registered,r,mr(n))},theme:n},i=t.children(o);var a=Object(v.createElement)(vr,null);return Object(v.createElement)(v.Fragment,null,a,i)}))})),wr=(n(63),n(89));function _r(t,e){if(null==t)return{};var n,r,o=Object(wr.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Or=n(12);var Sr=n(59);function Er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||Object(Sr.a)(t,e)||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(69);function jr(t){return function(t){if(Array.isArray(t))return Object(kr.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(Sr.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mr=n(1),Cr=n(2),xr=n(31);var Dr=n(109),Tr=n.n(Dr),Ir=function(){};function Lr(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function Nr(t,e,n){var r=[n];if(e&&t)for(var o in e)e.hasOwnProperty(o)&&e[o]&&r.push("".concat(Lr(t,o)));return r.filter((function(t){return t})).map((function(t){return String(t).trim()})).join(" ")}var Ar=function(t){return Array.isArray(t)?t.filter(Boolean):"object"===Object(xr.a)(t)&&null!==t?[t]:[]};function Pr(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Rr(t){return Pr(t)?window.pageYOffset:t.scrollTop}function zr(t,e){Pr(t)?window.scrollTo(0,e):t.scrollTop=e}function Br(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function Fr(t,e){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(t),i=e-o,a=10,s=0;function c(){var e=Br(s+=a,o,i,n);zr(t,e),s<n?window.requestAnimationFrame(c):r(t)}c()}function Ur(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yr(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}function Vr(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.theme.spacing,c=function(t){var e=getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===e.position)return o;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,y=Rr(c),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=g-b,_=m-h,O=w+y,S=l-y-h,E=p-m+y+v,k=y+h-b;switch(o){case"auto":case"bottom":if(_>=d)return{placement:"bottom",maxHeight:e};if(S>=d&&!a)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:e};if(!a&&S>=r||a&&_>=r)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:a?_-v:S-v};if("auto"===o||a){var j=e,M=a?w:O;return M>=r&&(j=Math.min(M-v-s.controlHeight,e)),{placement:"top",maxHeight:j}}if("bottom"===o)return zr(c,E),{placement:"bottom",maxHeight:e};break;case"top":if(w>=d)return{placement:"top",maxHeight:e};if(O>=d&&!a)return i&&Fr(c,k,160),{placement:"top",maxHeight:e};if(!a&&O>=r||a&&w>=r){var C=e;return(!a&&O>=r||a&&w>=r)&&(C=a?w-b:O-b),i&&Fr(c,k,160),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var qr=function(t){return"auto"===t?"bottom":t},Wr=Object(v.createContext)({getPortalPlacement:null}),Gr=function(t){Object(Tn.a)(n,t);var e=Yr(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(e){var u="fixed"===a,l=Vr({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),f=t.context.getPortalPlacement;f&&f(l),t.setState(l)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||qr(e);return Kr(Kr({},t.props),{},{placement:n,maxHeight:t.state.maxHeight})},t}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=Wr;var Qr=function(t){var e=t.theme,n=e.spacing.baseUnit;return{color:e.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Zr=Qr,Jr=Qr,Xr=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("noOptionsMessage",t),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),e)};Xr.defaultProps={children:"No options"};var $r=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("loadingMessage",t),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),e)};$r.defaultProps={children:"Loading..."};var to=function(t){Object(Tn.a)(n,t);var e=Yr(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==qr(t.props.menuPlacement)&&t.setState({placement:n})},t}return Object(Dn.a)(n,[{key:"render",value:function(){var t=this.props,e=t.appendTo,n=t.children,r=t.controlElement,o=t.menuPlacement,i=t.menuPosition,a=t.getStyles,s="fixed"===i;if(!e&&!s||!r)return null;var c=this.state.placement||qr(o),u=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(r),l=s?0:window.pageYOffset,f=u[c]+l,p=gr("div",{css:a("menuPortal",{offset:f,position:i,rect:u})},n);return gr(Wr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},e?Object(oe.createPortal)(p,e):p)}}]),n}(v.Component),eo=Array.isArray,no=Object.keys,ro=Object.prototype.hasOwnProperty;function oo(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==Object(xr.a)(e)&&"object"==Object(xr.a)(n)){var r,o,i,a=eo(e),s=eo(n);if(a&&s){if((o=e.length)!=n.length)return!1;for(r=o;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(a!=s)return!1;var c=e instanceof Date,u=n instanceof Date;if(c!=u)return!1;if(c&&u)return e.getTime()==n.getTime();var l=e instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return e.toString()==n.toString();var p=no(e);if((o=p.length)!==no(n).length)return!1;for(r=o;0!=r--;)if(!ro.call(n,p[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=p[r])&&e.$$typeof||t(e[i],n[i])))return!1;return!0}return e!=e&&n!=n}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}function io(){var t,e,n=(t=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));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(t){var e=t.size,n=_r(t,["size"]);return gr("svg",Object(Or.a)({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ao},n))},co=function(t){return gr(so,Object(Or.a)({size:20},t),gr("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(t){return gr(so,Object(Or.a)({size:20},t),gr("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(t){var e=t.isFocused,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:e?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:e?o.neutral80:o.neutral40}}},fo=lo,po=lo,ho=function(){var t=hr.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(io()),go=function(t){var e=t.delay,n=t.offset;return gr("span",{css:hr({animation:"".concat(ho," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},mo=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps,i=t.isRtl;return gr("div",Object(Or.a)({},o,{css:r("loadingIndicator",t),className:n({indicator:!0,"loading-indicator":!0},e)}),gr(go,{delay:0,offset:i}),gr(go,{delay:160,offset:!0}),gr(go,{delay:320,offset:!i}))};mo.defaultProps={size:4};function yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _o=function(t){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:t?0:1,outline:0,padding:0,color:"inherit"}};function Oo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function So(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Eo=function(t){var e=t.children,n=t.innerProps;return gr("div",n,e)},ko=Eo,jo=Eo;var Mo=function(t){var e=t.children,n=t.className,r=t.components,o=t.cx,i=t.data,a=t.getStyles,s=t.innerProps,c=t.isDisabled,u=t.removeProps,l=t.selectProps,f=r.Container,p=r.Label,d=r.Remove;return gr(br,null,(function(r){var h=r.css,g=r.cx;return gr(f,{data:i,innerProps:So(So({},s),{},{className:g(h(a("multiValue",t)),o({"multi-value":!0,"multi-value--is-disabled":c},n))}),selectProps:l},gr(p,{data:i,innerProps:{className:g(h(a("multiValueLabel",t)),o({"multi-value__label":!0},n))},selectProps:l},e),gr(d,{data:i,innerProps:So({className:g(h(a("multiValueRemove",t)),o({"multi-value__remove":!0},n))},u),selectProps:l}))}))};Mo.defaultProps={cropWithEllipsis:!0};function Co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Co(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}for(var Do={ClearIndicator:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({},i,{css:o("clearIndicator",t),className:r({indicator:!0,"clear-indicator":!0},n)}),e||gr(co,null))},Control:function(t){var e=t.children,n=t.cx,r=t.getStyles,o=t.className,i=t.isDisabled,a=t.isFocused,s=t.innerRef,c=t.innerProps,u=t.menuIsOpen;return gr("div",Object(Or.a)({ref:s,css:r("control",t),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},c),e)},DropdownIndicator:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({},i,{css:o("dropdownIndicator",t),className:r({indicator:!0,"dropdown-indicator":!0},n)}),e||gr(uo,null))},DownChevron:uo,CrossIcon:co,Group:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.Heading,a=t.headingProps,s=t.label,c=t.theme,u=t.selectProps;return gr("div",{css:o("group",t),className:r({group:!0},n)},gr(i,Object(Or.a)({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),s),gr("div",null,e))},GroupHeading:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.theme,i=(t.selectProps,_r(t,["className","cx","getStyles","theme","selectProps"]));return gr("div",Object(Or.a)({css:r("groupHeading",vo({theme:o},i)),className:n({"group-heading":!0},e)},i))},IndicatorsContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles;return gr("div",{css:o("indicatorsContainer",t),className:r({indicators:!0},n)},e)},IndicatorSeparator:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps;return gr("span",Object(Or.a)({},o,{css:r("indicatorSeparator",t),className:n({"indicator-separator":!0},e)}))},Input:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerRef,i=t.isHidden,a=t.isDisabled,s=t.theme,c=(t.selectProps,_r(t,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return gr("div",{css:r("input",wo({theme:s},c))},gr(Tr.a,Object(Or.a)({className:n({input:!0},e),inputRef:o,inputStyle:_o(i),disabled:a},c)))},LoadingIndicator:mo,Menu:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerRef,a=t.innerProps;return gr("div",Object(Or.a)({css:o("menu",t),className:r({menu:!0},n)},a,{ref:i}),e)},MenuList:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isMulti,a=t.innerRef,s=t.innerProps;return gr("div",Object(Or.a)({css:o("menuList",t),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),e)},MenuPortal:to,LoadingMessage:$r,NoOptionsMessage:Xr,MultiValue:Mo,MultiValueContainer:ko,MultiValueLabel:jo,MultiValueRemove:function(t){var e=t.children,n=t.innerProps;return gr("div",n,e||gr(co,{size:14}))},Option:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.isFocused,s=t.isSelected,c=t.innerRef,u=t.innerProps;return gr("div",Object(Or.a)({css:o("option",t),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:c},u),e)},Placeholder:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("placeholder",t),className:r({placeholder:!0},n)},i),e)},SelectContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps,a=t.isDisabled,s=t.isRtl;return gr("div",Object(Or.a)({css:o("container",t),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),e)},SingleValue:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.innerProps;return gr("div",Object(Or.a)({css:o("singleValue",t),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),e)},ValueContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.isMulti,i=t.getStyles,a=t.hasValue;return gr("div",{css:i("valueContainer",t),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},e)}},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(t){return t.letters})).join("")+"]","g"),Lo={},No=0;No<To.length;No++)for(var Ao=To[No],Po=0;Po<Ao.letters.length;Po++)Lo[Ao.letters[Po]]=Ao.base;var Ro=function(t){return t.replace(Io,(function(t){return Lo[t]}))};function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Bo=function(t){return t.replace(/^\s+|\s+$/g,"")},Fo=function(t){return"".concat(t.label," ").concat(t.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(t){return gr("span",Object(Or.a)({css:Uo},t))};function Ko(t){t.in,t.out,t.onExited,t.appear,t.enter,t.exit;var e=t.innerRef,n=(t.emotion,_r(t,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return gr("input",Object(Or.a)({ref:e},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 Yo(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Vo=function(t){Object(Tn.a)(n,t);var e=Yo(n);function n(){return Object(xn.a)(this,n),e.apply(this,arguments)}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(oe.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(v.Component),qo=["boxSizing","height","overflow","paddingRight","position"],Wo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Go(t){t.preventDefault()}function Qo(t){t.stopPropagation()}function Zo(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function Jo(){return"ontouchstart"in window||navigator.maxTouchPoints}function Xo(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var $o=!(!window.document||!window.document.createElement),ti=0,ei=function(t){Object(Tn.a)(n,t);var e=Xo(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){var t=this;if($o){var e=this.props,n=e.accountForScrollbars,r=e.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&qo.forEach((function(e){var n=i&&i[e];t.originalStyles[e]=n})),n&&ti<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,c=window.innerWidth-s+a||0;Object.keys(Wo).forEach((function(t){var e=Wo[t];i&&(i[t]=e)})),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))),ti+=1}}},{key:"componentWillUnmount",value:function(){var t=this;if($o){var e=this.props,n=e.accountForScrollbars,r=e.touchScrollTarget,o=document.body,i=o&&o.style;ti=Math.max(ti-1,0),n&&ti<1&&qo.forEach((function(e){var n=t.originalStyles[e];i&&(i[e]=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(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}ei.defaultProps={accountForScrollbars:!0};var ri={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},oi=function(t){Object(Tn.a)(n,t);var e=ni(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return Object(Dn.a)(n,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.isEnabled,r=this.state.touchScrollTarget;return n?gr("div",null,gr("div",{onClick:this.blurSelectInput,css:ri}),gr(Vo,{innerRef:this.getScrollTarget},e),r?gr(ei,{touchScrollTarget:r}):null):e}}]),n}(v.PureComponent);function ii(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var ai=function(t){Object(Tn.a)(n,t);var e=ii(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(t){t.preventDefault(),t.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,c=t.scrollTarget,u=c.scrollTop,l=c.scrollHeight,f=c.clientHeight,p=t.scrollTarget,d=n>0,h=l-f-u,g=!1;h>n&&t.isBottom&&(i&&i(e),t.isBottom=!1),d&&t.isTop&&(s&&s(e),t.isTop=!1),d&&n>h?(o&&!t.isBottom&&o(e),p.scrollTop=l,g=!0,t.isBottom=!0):!d&&-n>u&&(a&&!t.isTop&&a(e),p.scrollTop=0,g=!0,t.isTop=!0),g&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}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(t){t&&("function"==typeof t.addEventListener&&t.addEventListener("wheel",this.onWheel,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(t){t&&("function"==typeof t.removeEventListener&&t.removeEventListener("wheel",this.onWheel,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.removeEventListener&&t.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(t){var e=t.isEnabled,n=void 0===e||e,r=_r(t,["isEnabled"]);return n?b.a.createElement(ai,r):r.children}var ci=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isSearchable,r=e.isMulti,o=e.label,i=e.isDisabled,a=e.tabSelectsValue;switch(t){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(t,e){var n=e.value,r=e.isDisabled;if(n)switch(t){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(t){return!!t.isDisabled};var fi={clearIndicator:po,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":null,pointerEvents:e?"none":null,position:"relative"}},control:function(t){var e=t.isDisabled,n=t.isFocused,r=t.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:e?o.neutral5:o.neutral0,borderColor:e?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:fo,group:function(t){var e=t.theme.spacing;return{paddingBottom:2*e.baseUnit,paddingTop:2*e.baseUnit}},groupHeading:function(t){var e=t.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*e.baseUnit,paddingRight:3*e.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:e?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:e?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(t){var e=t.isFocused,n=t.size,r=t.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:e?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(t){var e,n=t.placement,r=t.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return e={label:"menu"},Object(Mr.a)(e,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(n),"100%"),Object(Mr.a)(e,"backgroundColor",a.neutral0),Object(Mr.a)(e,"borderRadius",o),Object(Mr.a)(e,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(Mr.a)(e,"marginBottom",i.menuGutter),Object(Mr.a)(e,"marginTop",i.menuGutter),Object(Mr.a)(e,"position","absolute"),Object(Mr.a)(e,"width","100%"),Object(Mr.a)(e,"zIndex",1),e},menuList:function(t){var e=t.maxHeight,n=t.theme.spacing.baseUnit;return{maxHeight:e,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(t){var e=t.rect,n=t.offset,r=t.position;return{left:e.left,position:r,top:n,width:e.width,zIndex:1}},multiValue:function(t){var e=t.theme,n=e.spacing,r=e.borderRadius;return{label:"multiValue",backgroundColor:e.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(t){var e=t.theme,n=e.borderRadius,r=e.colors,o=t.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(t){var e=t.theme,n=e.spacing,r=e.borderRadius,o=e.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:t.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Zr,option:function(t){var e=t.isDisabled,n=t.isFocused,r=t.isSelected,o=t.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:e?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:!e&&(r?a.primary:a.primary50)}}},placeholder:function(t){var e=t.theme,n=e.spacing;return{label:"placeholder",color:e.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:e?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(t){var e=t.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(e.baseUnit/2,"px ").concat(2*e.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var pi={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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?di(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gi(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var mi,yi={backspaceRemovesValue:!0,blurInputOnSelect:Ur(),captureMenuScroll:!Ur(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},mi),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Bo(e):e,u=a?Bo(i(t)):i(t);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(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.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(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},vi=1,bi=function(t){Object(Tn.a)(n,t);var e=gi(n);function n(t){var r;Object(xn.a)(this,n),(r=e.call(this,t)).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(t){r.controlRef=t},r.focusedOptionRef=null,r.getFocusedOptionRef=function(t){r.focusedOptionRef=t},r.menuListRef=null,r.getMenuListRef=function(t){r.menuListRef=t},r.inputRef=null,r.getInputRef=function(t){r.inputRef=t},r.cacheComponents=function(t){var e;r.components=(e={components:t},xo(xo({},Do),e.components))},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(t,e){var n=r.props,o=n.onChange,i=n.name;o(t,hi(hi({},e),{},{name:i}))},r.setValue=function(t){var e=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(t,{action:e,option:n})},r.selectOption=function(t){var e=r.props,n=e.blurInputOnSelect,o=e.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(t,i)){var a=r.getOptionValue(t);r.setValue(i.filter((function(t){return r.getOptionValue(t)!==a})),"deselect-option",t),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(t)}})}else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue([].concat(jr(i),[t]),"select-option",t),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue(t,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));n&&r.blurInput()},r.removeValue=function(t){var e=r.state.selectValue,n=r.getOptionValue(t),o=e.filter((function(t){return r.getOptionValue(t)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:t}),r.announceAriaLiveSelection({event:"remove-value",context:{value:t?r.getOptionLabel(t):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var t=r.state.selectValue,e=t[t.length-1],n=t.slice(0,t.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:e?r.getOptionLabel(e):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:e})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Nr.apply(void 0,[r.props.classNamePrefix].concat(e))},r.getOptionLabel=function(t){return r.props.getOptionLabel(t)},r.getOptionValue=function(t){return r.props.getOptionValue(t)},r.getStyles=function(t,e){var n=fi[t](e);n.boxSizing="border-box";var o=r.props.styles[t];return o?o(n,e):n},r.getElementId=function(t){return"".concat(r.instancePrefix,"-").concat(t)},r.getActiveDescendentId=function(){var t=r.props.menuIsOpen,e=r.state,n=e.menuOptions,o=e.focusedOption;if(o&&t){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(t){var e=t.event,n=t.context;r.setState({ariaLiveSelection:ui(e,n)})},r.announceAriaLiveContext=function(t){var e=t.event,n=t.context;r.setState({ariaLiveContext:ci(e,hi(hi({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(t){r.blockOptionHover=!1},r.onControlMouseDown=function(t){var e=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&r.onMenuClose():e&&r.openMenu("first"):(e&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()},r.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||r.props.isDisabled)){var e=r.props,n=e.isMulti,o=e.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),t.preventDefault(),t.stopPropagation()}},r.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(r.clearValue(),t.stopPropagation(),r.openAfterFocus=!1,"touchend"===t.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(t){"boolean"==typeof r.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Pr(t.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(t)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(t){var e=t.touches,n=e&&e.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(t){var e=t.touches,n=e&&e.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(t){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(t.target)&&r.menuListRef&&!r.menuListRef.contains(t.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(t){r.userIsDragging||r.onControlMouseDown(t)},r.onClearIndicatorTouchEnd=function(t){r.userIsDragging||r.onClearIndicatorMouseDown(t)},r.onDropdownIndicatorTouchEnd=function(t){r.userIsDragging||r.onDropdownIndicatorMouseDown(t)},r.handleInputChange=function(t){var e=t.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(e,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(t){var e=r.props,n=e.isSearchable,o=e.isMulti;r.props.onFocus&&r.props.onFocus(t),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(t){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(t),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(t){r.blockOptionHover||r.state.focusedOption===t||r.setState({focusedOption:t})},r.shouldHideSelectedOptions=function(){var t=r.props,e=t.hideSelectedOptions,n=t.isMulti;return void 0===e?n:e},r.onKeyDown=function(t){var e=r.props,n=e.isMulti,o=e.backspaceRemovesValue,i=e.escapeClearsValue,a=e.inputValue,s=e.isClearable,c=e.isDisabled,u=e.menuIsOpen,l=e.onKeyDown,f=e.tabSelectsValue,p=e.openMenuOnFocus,d=r.state,h=d.focusedOption,g=d.focusedValue,m=d.selectValue;if(!(c||"function"==typeof l&&(l(t),t.defaultPrevented))){switch(r.blockOptionHover=!0,t.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(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(t.shiftKey||!u||!f||!h||p&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===t.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}t.preventDefault()}},r.buildMenuOptions=function(t,e){var n=t.inputValue,o=void 0===n?"":n,i=t.options,a=function(t,n){var i=r.isOptionDisabled(t,e),a=r.isOptionSelected(t,e),s=r.getOptionLabel(t),c=r.getOptionValue(t);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:t},o))){var u=i?void 0:function(){return r.onOptionHover(t)},l=i?void 0:function(){return r.selectOption(t)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:t,isDisabled:i,isSelected:a,key:f,label:s,type:"option",value:c}}};return i.reduce((function(t,e,n){if(e.options){r.hasGroups||(r.hasGroups=!0);var o=e.options.map((function(e,r){var o=a(e,"".concat(n,"-").concat(r));return o&&t.focusable.push(e),o})).filter(Boolean);if(o.length){var i="".concat(r.getElementId("group"),"-").concat(n);t.render.push({type:"group",key:i,data:e,options:o})}}else{var s=a(e,"".concat(n));s&&(t.render.push(s),t.focusable.push(e))}return t}),{render:[],focusable:[]})};var o=t.value;r.cacheComponents=Pn(r.cacheComponents,oo).bind(Object(Cr.a)(r)),r.cacheComponents(t.components),r.instancePrefix="react-select-"+(r.props.instanceId||++vi);var i=Ar(o);r.buildMenuOptions=Pn(r.buildMenuOptions,(function(t,e){var n=Er(t,2),r=n[0],o=n[1],i=Er(e,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(Object(Cr.a)(r));var a=t.menuIsOpen?r.buildMenuOptions(t,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(t){var e=this.props,n=e.options,r=e.value,o=e.menuIsOpen,i=e.inputValue;if(this.cacheComponents(t.components),t.value!==r||t.options!==n||t.menuIsOpen!==o||t.inputValue!==i){var a=Ar(t.value),s=t.menuIsOpen?this.buildMenuOptions(t,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(t){var e,n,r,o,i,a=this.props,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&t.isDisabled||u&&c&&!t.menuIsOpen)&&this.focusInput(),u&&s&&!t.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(e=this.menuListRef,n=this.focusedOptionRef,r=e.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?zr(e,Math.min(n.offsetTop+n.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<r.top&&zr(e,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 t=this.props,e=t.isSearchable,n=t.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:e,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=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"===t?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(){e.onMenuOpen(),e.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:c}})}))}},{key:"focusValue",value:function(t){var e=this.props,n=e.isMulti,r=e.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(t){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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props,n=e.pageSize,r=e.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"===t?c=u>0?u-1:s.length-1:"down"===t?c=(u+1)%s.length:"pageup"===t?(c=u-n)<0&&(c=0):"pagedown"===t?(c=u+n)>s.length-1&&(c=s.length-1):"last"===t&&(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(pi):hi(hi({},pi),this.props.theme):pi}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=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:e,clearValue:t,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(t){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var e=this.state,n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}},{key:"getNextFocusedOption",value:function(t){var e=this.state.focusedOption;return e&&t.indexOf(e)>-1?e:t[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 t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:"isOptionDisabled",value:function(t,e){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(t,e)}},{key:"isOptionSelected",value:function(t,e){var n=this;if(e.indexOf(t)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(t,e);var r=this.getOptionValue(t);return e.some((function(t){return n.getOptionValue(t)===r}))}},{key:"filterOption",value:function(t,e){return!this.props.filterOption||this.props.filterOption(t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:r})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{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 t=this.state,e=t.ariaLiveContext,n=t.selectValue,r=t.focusedValue,o=t.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,c=i.inputValue,u=i.screenReaderStatus,l=r?function(t){var e=t.focusedValue,n=t.getOptionLabel,r=t.selectValue;return"value ".concat(n(e)," focused, ").concat(r.indexOf(e)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(t){var e=t.focusedOption,n=t.getOptionLabel,r=t.options;return"option ".concat(n(e)," focused").concat(e.isDisabled?" disabled":"",", ").concat(r.indexOf(e)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(t){var e=t.inputValue,n=t.screenReaderMessage;return"".concat(n).concat(e?" for search term "+e:"",".")}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(p," ").concat(e)}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,n=t.isSearchable,r=t.inputId,o=t.inputValue,i=t.tabIndex,a=t.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(Ko,Object(Or.a)({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ir,onFocus:this.onInputFocus,readOnly:!0,disabled:e,tabIndex:i,form:a,value:""},l));var f=this.commonProps,p=f.cx,d=f.theme,h=f.selectProps;return b.a.createElement(s,Object(Or.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:e,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 t=this,e=this.components,n=e.MultiValue,r=e.MultiValueContainer,o=e.MultiValueLabel,i=e.MultiValueRemove,a=e.SingleValue,s=e.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,g=this.state,m=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!l)return d?null:b.a.createElement(s,Object(Or.a)({},c,{key:"placeholder",isDisabled:f,isFocused:v}),h);if(p)return m.map((function(e,a){var s=e===y;return b.a.createElement(n,Object(Or.a)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:f,key:"".concat(t.getOptionValue(e)).concat(a),index:a,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault(),t.stopPropagation()}},data:e}),t.formatOptionLabel(e,"value"))}));if(d)return null;var w=m[0];return b.a.createElement(a,Object(Or.a)({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.components.ClearIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(t,Object(Or.a)({},e,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.components.LoadingIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!t||!o)return null;return b.a.createElement(t,Object(Or.a)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.components,e=t.DropdownIndicator,n=t.IndicatorSeparator;if(!e||!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 t=this.components.DropdownIndicator;if(!t)return null;var e=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(t,Object(Or.a)({},e,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,e=this.components,n=e.Group,r=e.GroupHeading,o=e.Menu,i=e.MenuList,a=e.MenuPortal,s=e.LoadingMessage,c=e.NoOptionsMessage,u=e.Option,l=this.commonProps,f=this.state,p=f.focusedOption,d=f.menuOptions,h=this.props,g=h.captureMenuScroll,m=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,j=h.menuShouldBlockScroll,M=h.menuShouldScrollIntoView,C=h.noOptionsMessage,x=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!O)return null;var T,I=function(e){var n=p===e.data;return e.innerRef=n?t.getFocusedOptionRef:void 0,b.a.createElement(u,Object(Or.a)({},l,e,{isFocused:n}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())T=d.render.map((function(e){if("group"===e.type){e.type;var o=_r(e,["type"]),i="".concat(e.key,"-heading");return b.a.createElement(n,Object(Or.a)({},l,o,{Heading:r,headingProps:{id:i,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map((function(t){return I(t)})))}if("option"===e.type)return I(e)}));else if(y){var L=v({inputValue:m});if(null===L)return null;T=b.a.createElement(s,l,L)}else{var N=C({inputValue:m});if(null===N)return null;T=b.a.createElement(c,l,N)}var A={minMenuHeight:w,maxMenuHeight:_,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:M},P=b.a.createElement(Gr,Object(Or.a)({},l,A),(function(e){var n=e.ref,r=e.placerProps,a=r.placement,s=r.maxHeight;return b.a.createElement(o,Object(Or.a)({},l,A,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:a}),b.a.createElement(si,{isEnabled:g,onTopArrive:x,onBottomArrive:D},b.a.createElement(oi,{isEnabled:j},b.a.createElement(i,Object(Or.a)({},l,{innerRef:t.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 t=this,e=this.props,n=e.delimiter,r=e.isDisabled,o=e.isMulti,i=e.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(e){return t.getOptionValue(e)})).join(n);return b.a.createElement("input",{name:i,type:"hidden",value:s})}var c=a.length>0?a.map((function(e,n){return b.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:t.getOptionValue(e)})})):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 t=this.components,e=t.Control,n=t.IndicatorsContainer,r=t.SelectContainer,o=t.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.a.createElement(r,Object(Or.a)({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.a.createElement(e,Object(Or.a)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.a.createElement(o,Object(Or.a)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.a.createElement(n,Object(Or.a)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(v.Component);bi.defaultProps=yi;n(206);function wi(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.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(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.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,ji=(Si=bi,ki=Ei=function(t){Object(Tn.a)(n,t);var e=wi(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}return Object(Dn.a)(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(t){return void 0!==this.props[t]?this.props[t]:this.state[t]}},{key:"callProp",value:function(t){if("function"==typeof this.props[t]){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=this.props)[t].apply(e,r)}}},{key:"render",value:function(){var t=this,e=this.props,n=(e.defaultInputValue,e.defaultMenuIsOpen,e.defaultValue,_r(e,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return b.a.createElement(Si,Object(Or.a)({},n,{ref:function(e){t.select=e},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),Mi=n(169),Ci=n.n(Mi),xi=n(170),Di=n.n(xi),Ti=n(171),Ii=n.n(Ti);function Li(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Ni=function(t){d()(n,t);var e=Li(n);function n(t){var r;s()(this,n),(r=e.call(this,t)).min=0,r.max=t.ratingAmount||5;var o=t.rating,i={pos:o?r.getStarRatingPosition(o):0,rating:t.rating};return r.state={ratingCache:i,editing:t.editing||!t.rating,stars:5,rating:i.rating,pos:i.pos,glyph:r.getStars()},r}return u()(n,[{key:"getStars",value:function(){for(var t="",e=this.props.ratingAmount,n=0;n<e;n++)t+="★";return t}},{key:"componentDidMount",value:function(){this.root=ie.a.findDOMNode(this.rootNode),this.ratingContainer=ie.a.findDOMNode(this.node)}},{key:"componentWillUnmount",value:function(){delete this.root,delete this.ratingContainer}},{key:"getPosition",value:function(t){return t.pageX-this.root.getBoundingClientRect().left}},{key:"applyPrecision",value:function(t,e){return parseFloat(t.toFixed(e))}},{key:"getDecimalPlaces",value:function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}},{key:"getWidthFromValue",value:function(t){var e=this.min,n=this.max;return t<=e||e===n?0:t>=n?100:t/(n-e)*100}},{key:"getValueFromPosition",value:function(t){var e=this.getDecimalPlaces(this.props.step),n=this.ratingContainer.offsetWidth,r=(this.max-this.min)*t/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),e);return o=Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(t){var e=this.getValueFromPosition(t),n=this.getWidthFromValue(e);return{width:n+="%",val:e}}},{key:"getStarRatingPosition",value:function(t){return"".concat(this.getWidthFromValue(t),"%")}},{key:"getRatingEvent",value:function(t){var e=this.getPosition(t);return this.calculate(e)}},{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(t){var e=this.getRatingEvent(t);this.updateRating(e.width,e.val)}},{key:"updateRating",value:function(t,e){this.setState({pos:t,rating:e})}},{key:"shouldComponentUpdate",value:function(t,e){return t!==this.props?(this.updateRating(this.getStarRatingPosition(t.rating),t.rating),!0):e.ratingCache.rating!==this.state.ratingCache.rating||e.rating!==this.state.rating}},{key:"handleClick",value:function(t){if(this.props.disabled)return t.stopPropagation(),t.preventDefault(),!1;var e={pos:this.state.pos,rating:this.state.rating,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:e}),this.props.onRatingClick(t,e),!0}},{key:"treatName",value:function(t){return"string"==typeof t?t.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var t,e,n=this,r=Ii()((t={"react-star-rating__root":!0,"rating-disabled":this.props.disabled},Bt()(t,"react-star-rating__size--".concat(this.props.size),this.props.size),Bt()(t,"rating-editing",this.state.editing),t));return e=this.state.editing?b.a.createElement("div",{ref:function(t){return n.node=t},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(t){return n.node=t},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(t){return n.rootNode=t},style:{cursor:"pointer"},className:r},e,b.a.createElement("input",Bt()({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);Ni.propTypes={name:re.a.string.isRequired,caption:re.a.string,ratingAmount:re.a.number.isRequired,rating:re.a.number,onRatingClick:re.a.func,disabled:re.a.bool,editing:re.a.bool,size:re.a.string},Ni.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var Ai,Pi=n(314),Ri=n(315);function zi(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Bi={cursor:"move"},Fi={beginDrag:function(t){var e=t.data,n=t.index,r=t.onDestroy,o=t.setAsChild,i=t.getDataById;return{itemType:dn,index:e.parentId?-1:n,parentIndex:e.parentIndex,id:e.id,col:e.col,onDestroy:r,setAsChild:o,getDataById:i,data:e}}},Ui=function(t){d()(n,t);var e=zi(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"componentDidMount",value:function(){var t=this.props.connectDragPreview;t&&t((Ai||((Ai=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Ai),{captureDraggingState:!0})}},{key:"render",value:function(){return(0,this.props.connectDragSource)(b.a.createElement("div",{className:"btn is-isolated",style:Bi},b.a.createElement("i",{className:"is-isolated fas fa-grip-vertical"})))}}]),n}(v.PureComponent),Hi=fn(dn,Fi,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging()}}))(Ui);function Ki(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Yi=function(t){d()(n,t);var e=Ki(n);function n(){return s()(this,n),e.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(Hi,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}]),n}(b.a.Component),Vi=function(t){return t.mutable?null:b.a.createElement("div",null,t.data.pageBreakBefore&&b.a.createElement("div",{className:"preview-page-break"},"Page Break"),b.a.createElement(Yi,{isFieldSet:t.isFieldSet,parent:t.parent,editModeOn:t.editModeOn,data:t.data,index:t.index,setAsChild:t.setAsChild,onDestroy:t._onDestroy,onEdit:t.onEdit,static:t.data.static,required:t.data.required}))},qi=n(84),Wi=n.n(qi),Gi=new Wi.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:[]}}),Qi=function(t){var e=t.data.hasOwnProperty("required")&&!0===t.data.required&&!t.read_only,n=Gi.process(t.data.label);return n?b.a.createElement("label",{className:t.className||"form-label"},b.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),e&&!t.hide_required_alert&&b.a.createElement("span",{className:"label-required badge badge-danger"},"Required")):null};function Zi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zi(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xi(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var $i=function(t){d()(n,t);var e=Xi(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"handleChange",(function(t){var e=r.state.formatMask,n=function(t){return t instanceof Date&&!Number.isNaN(t.getTime())},o="",i=null,a="";if(t&&t.value instanceof Date&&n(t.value))o=Object(Ri.a)(t.value,"yyyy-MM-dd"),i=t.value,a=e.toLowerCase();else if(t&&t.target){a=""===t.target.value?e.toLowerCase():"";var s=t.target.value?function(t,e){var n=["yyyy-MM-dd","MM/dd/yyyy",e].find((function(e){var n=Object(Pi.a)(t,e,new Date);return!Number.isNaN(n.getTime())}));return n?Object(Pi.a)(t,n,new Date):null}(t.target.value,e):null;n(s)?(o=Object(Ri.a)(s,"yyyy-MM-dd"),i=s):console.log("Invalid date:",t.target.value)}else t&&n(t)?(o=Object(Ri.a)(t,"yyyy-MM-dd"),i=t):console.log("Invalid date:",t);r.setState({value:o,internalValue:i,placeholder:a})})),r.inputField=b.a.createRef();var o=n.updateFormat(t,null).formatMask,i=n.updateDateTime(t,{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(t){var e=this.state,n=e.month,r=e.day,o=e.year,i=t.target.value;switch(t.target.name){case"month":i>12?this.setState({month:"12"}):this.setState({month:i});break;case"day":i>31?this.setState({day:"31"}):this.setState({day:i});break;case"year":i>(new Date).getFullYear()?this.setState({year:(new Date).getFullYear().toString()}):this.setState({year:i})}var a="month"===t.target.name?i:n,s="day"===t.target.name?i:r,c="year"===t.target.name?i:o;if(a&&s&&c){var u=new Date("".concat(c,"-").concat(a,"-").concat(s));this.handleChange({value:u})}}},{key:"render",value:function(){var t=this,e=this.props.data,n=(e.showTimeSelect,e.showTimeSelectOnly,e.showTimeInput,e.placeholder),r={type:"date",className:"form-control"};r.name=this.props.data.field_name;var o=this.props.data.readOnly||this.props.read_only;/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,this.state.formatMask.toLowerCase();this.props.mutable&&(r.defaultValue=this.props.defaultValue,r.ref=this.inputField);var i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),b.a.createElement("div",{className:i,style:Ji({},this.props.style)},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("div",null,o&&b.a.createElement("input",{type:"text",name:r.name,ref:r.ref,readOnly:o,placeholder:n||this.state.placeholder,value:this.state.value,className:"form-control"}),!o&&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(t){return t.target.value&&2===t.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(e){return t.handleDateChange(e)},className:"form-control",type:"text",style:{border:"none"},onFocus:function(e){return t.handleBirthdayFocus()},placeholder:n||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(t){return t.target.value&&2===t.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none"},onChange:function(e){return t.handleDateChange(e)},onFocus:function(e){return t.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"},onFocus:function(e){return t.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(e){return t.handleDateChange(e)}}))))))}}],[{key:"updateDateTime",value:function(t,e,n){var r,o,i=t.data.defaultToday;if(!i||""!==t.defaultValue&&void 0!==t.defaultValue)if(""===(r=t.defaultValue||""))o="";else{var a=Object(Pi.a)(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Object(Ri.a)(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(t,e){var n=t.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":t.data.dateFormat,s=r||i?t.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==e,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(t,e){var r=n.updateFormat(t,e.formatMask),o=r.updated,i=r.formatMask;return t.data.defaultToday!==e.defaultToday||o?n.updateDateTime(t,e,i):null}}]),n}(b.a.Component);function ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ea(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ta(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function na(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var ra={},oa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("h3",{className:t,dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ia=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("p",{className:t,dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),aa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("label",{className:"".concat(t," form-label"),dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),sa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("hr",null))}}]),n}(b.a.Component),ca=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),ua=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),la=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"tel",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),fa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"number",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),pa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.read_only&&(t.disabled="disabled"),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("textarea",t)))}}]),n}(b.a.Component),da=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("select",t,this.props.data.options.map((function(t){var e="preview_".concat(t.key);return b.a.createElement("option",{value:t.value,key:e},t.text)})))))}}]),n}(b.a.Component),ha=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"clear",(function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()})),r.state={defaultValue:t.defaultValue},r.inputField=b.a.createRef(),r.canvas=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t=this.state.defaultValue,e=!!t,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=t,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=t,r.ref=this.canvas,e=!this.props.read_only);var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),t&&t.length>0&&(o="data:image/png;base64,".concat(t)),b.a.createElement("div",{style:ea({},this.props.style),className:i},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),!0===this.props.read_only||o?b.a.createElement("img",{src:o}):b.a.createElement(Ci.a,r),e&&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),ga=function(t){d()(n,t);var e=na(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"handleChange",(function(t){r.setState({value:t||[]})})),r.inputField=b.a.createRef();var o=t.defaultValue,i=t.data;return r.state={value:r.getDefaultValue(o,i.options)},r}return u()(n,[{key:"getDefaultValue",value:function(t,e){if(t){if("string"==typeof t){var n=t.split(",").map((function(t){return t.trim()}));return e.filter((function(t){return n.indexOf(t.value)>-1}))}return e.filter((function(e){return t.indexOf(e.value)>-1}))}return[]}},{key:"render",value:function(){var t=this.props.data.options.map((function(t){return t.label=t.text,t})),e={isMulti:!0};e.name=this.props.data.field_name,e.onChange=this.handleChange,e.options=t,this.props.mutable||(e.value=t[0].text),this.props.mutable&&(e.isDisabled=this.props.read_only,e.value=this.state.value,e.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:n},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement(ji,e)))}}]),n}(b.a.Component),ma=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).options={},r}return u()(n,[{key:"render",value:function(){var t=this,e=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:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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,e.props.mutable&&(a.defaultChecked=void 0!==e.props.defaultValue&&e.props.defaultValue.indexOf(r.key)>-1),t.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(t){t&&e.props.mutable&&(e.options["child_ref_".concat(r.key)]=t)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ya=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";this.props.data.pageBreakBefore&&(t+=" alwaysbreak");var e={};return e.name=this.props.data.field_name,e.type="checkbox",e.defaultChecked=this.props.data.defaultChecked,this.props.mutable&&(e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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"},e)),b.a.createElement("label",{className:"custom-control-label",htmlFor:this.props.data.field_name,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}]),n}(b.a.Component),va=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).options={},r}return u()(n,[{key:"render",value:function(){var t=this,e=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:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name=e.props.data.field_name,a.type="radio",a.value=r.value,e.props.mutable&&(a.defaultChecked=void 0!==e.props.defaultValue&&(e.props.defaultValue.indexOf(r.key)>-1||e.props.defaultValue.indexOf(r.value)>-1)),t.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(t){t&&e.props.mutable&&(e.options["child_ref_".concat(r.key)]=t)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ba=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props.data.center?{textAlign:"center"}:null,e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea(ea({},this.props.style),t),className:e},b.a.createElement(Vi,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),wa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={};t.name=this.props.data.field_name,t.ratingAmount=5,this.props.mutable&&(t.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,t.editing=!0,t.disabled=this.props.read_only,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement(Ni,t)))}}]),n}(b.a.Component),_a=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,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:Gi.process(this.props.data.content)}}))))}}]),n}(b.a.Component),Oa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,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),Sa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"displayImage",(function(t){var e=f()(r),n=t.target;n.files&&n.files.length&&e.setState({img:n.files[0],previewImg:URL.createObjectURL(n.files[0])})})),Bt()(f()(r),"clearImage",(function(){r.setState({img:null,previewImg:null})})),r.state={img:null,previewImg:null},r}return u()(n,[{key:"getImageSizeProps",value:function(t){var e=t.width,n=t.height,r={width:"100%"};return e&&(r.width=e<window.innerWidth?e:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var t,e=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&&(t=this.props.defaultValue.indexOf(o>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),b.a.createElement("div",{style:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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:t},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(e.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),Ea=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"displayFileUpload",(function(t){var e,n=f()(r),o=t.target;o.files&&o.files.length>0&&(e=o.files[0],n.setState({fileUpload:e}))})),Bt()(f()(r),"clearFileUpload",(function(){r.setState({fileUpload:null})})),Bt()(f()(r),"saveFile",function(){var t=Zt()(te.a.mark((function t(e){var n,o,i,a,s,c,u;return te.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),n=r.props.defaultValue,t.next=4,kn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 4:return o=t.sent,i=o.headers.get("Content-Disposition"),t.next=8,o.blob();case 8:a=t.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(jn.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),Object(jn.saveAs)(o.url,u));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),r.state={fileUpload:null},r}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item",e=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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:e,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),ka=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"changeValue",(function(t){var e=t.target;r.setState({value:e.value})})),r.inputField=b.a.createRef(),r.state={value:void 0!==t.defaultValue?parseInt(t.defaultValue,10):parseInt(t.data.default_value,10)},r}return u()(n,[{key:"render",value:function(){var t={},e=this.props.data.field_name;t.type="range",t.list="tickmarks_".concat(e),t.min=this.props.data.min_value,t.max=this.props.data.max_value,t.step=this.props.data.step,t.value=this.state.value,t.change=this.changeValue,this.props.mutable&&(t.ref=this.inputField);for(var n=[],r=parseInt(t.min,10);r<=parseInt(t.max,10);r+=parseInt(t.step,10))n.push(r);var o=100/(n.length-1),i=n.map((function(e,n){return b.a.createElement("option",{key:"".concat(t.list,"_").concat(n)},e)})),a=n.map((function(e,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(t.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,e)}));this.props.read_only&&(t.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:s},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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,t)),b.a.createElement("div",{className:"visible_marks"},a),b.a.createElement("input",{name:e,value:this.state.value,type:"hidden"}),b.a.createElement("datalist",{id:t.list},i)))}}]),n}(b.a.Component);ra.Header=oa,ra.Paragraph=ia,ra.Label=aa,ra.LineBreak=sa,ra.TextInput=ca,ra.EmailInput=ua,ra.PhoneNumber=la,ra.NumberInput=fa,ra.TextArea=pa,ra.Dropdown=da,ra.Signature=ha,ra.Checkboxes=ma,ra.Checkbox=ya,ra.DatePicker=$i,ra.RadioButtons=va,ra.Image=ba,ra.Rating=wa,ra.Tags=ga,ra.HyperLink=_a,ra.Download=Oa,ra.Camera=Sa,ra.FileUpload=Ea,ra.Range=ka;var ja=ra;function Ma(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ma(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xa(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Da=function(t){d()(n,t);var e=xa(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t=this.props.data.bare,e={};if(e.name=this.props.data.field_name,e.defaultValue=this.props.defaultValue,this.props.mutable&&this.props.data.forwardRef&&(e.ref=this.inputField),this.props.read_only&&(e.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:Ca({},this.props.style)},b.a.createElement(Vi,this.props),t?b.a.createElement(n,i()({data:this.props.data},this.props.data.props,e)):b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,i()({className:"form-label"},this.props)),b.a.createElement(n,i()({data:this.props.data},this.props.data.props,e))))}}]),n}(v.Component);Da.propTypes={};var Ta=Da,Ia=n(48),La=n.n(Ia),Na=["onDropSuccess","seq","draggedItem","parentIndex","canDrop","isOver","isOverCurrent","connectDropTarget","items","col","getDataById"];function Aa(t,e){if(!t)return null;var n=t.custom?function(){return function(t,e){return t.component&&"function"==typeof t.component||(t.component=La.a.get(t.key),t.component||console.error("".concat(t.element," was not registered"))),b.a.createElement(Ta,i()({},e,{mutable:!1,key:"form_".concat(t.id),data:t}))}(t,e)}:ja[t.element||t.key];return b.a.createElement(v.Fragment,null,b.a.createElement(n,i()({},e,{key:"form_".concat(t.id),data:t})))}function Pa(t){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:t,padding:0,float:"left"}}var Ra=b.a.forwardRef((function(t,e){var n=t.onDropSuccess,r=(t.seq,t.draggedItem),o=t.parentIndex,i=t.canDrop,a=t.isOver,s=(t.isOverCurrent,t.connectDropTarget),c=t.items,u=t.col,l=t.getDataById,f=Cn()(t,Na),p=l(c[u]);Object(v.useImperativeHandle)(e,(function(){return{onDrop:function(t){console.log("dropped ites"),t.data&&(n&&n(),Gt.dispatch("deleteLastItem"))}}}),[]);var d=Aa(p,f),h=!!r&&r.index===o,g="rgba(0, 0, 0, .03)";return!h&&a&&i&&!r.data.isContainer&&(g="#F7F589"),s(b.a.createElement("div",{style:Pa(h?"rgba(0, 0, 0, .03":g)},!d&&b.a.createElement("span",null,"Drop your element here "),d))})),za=Xe((function(t){return t.accepts}),{drop:function(t,e,n){if(n){var r=!!t.items[t.col],o=e.getItem();if(t.col!==o.col||t.items[t.col]!==o.id)if(void 0===o.col&&t.items[t.col])Gt.dispatch("resetLastItem");else if(!function(t){if(t.itemType!==pn){var e=t.data;if(e){if(e.isContainer)return!0;if(e.field_name)return e.field_name.indexOf("_col_row")>-1}}return!1}(o)&&(n.onDrop(o),console.log("calling on Drop from 137",o),o.data&&"function"==typeof t.setAsChild)){var i=!o.data.id?o.onCreate(o.data):o.data;t.setAsChild(t.data,i,t.col,r)}}}},(function(t,e){return{connectDropTarget:t.dropTarget(),draggedItem:e.getItem()?e.getItem():null,isOver:e.isOver(),isOverCurrent:e.isOver({shallow:!0}),canDrop:e.canDrop()}}))(Ra),Ba=["data","class_name"],Fa=["data","class_name"],Ua=["data"];function Ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ka(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ha(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ya(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Va=[dn,pn],qa=function(t){d()(n,t);var e=Ya(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props,e=t.controls,n=t.data,r=t.editModeOn,o=t.getDataById,i=t.setAsChild,a=t.removeChild,s=t.seq,c=t.className,u=t.index,l=n.childItems,f="SortableItem rfb-item";return n.pageBreakBefore&&(f+=" alwaysbreak"),b.a.createElement("div",{style:Ka({},this.props.style),className:f},b.a.createElement(Vi,this.props),b.a.createElement("div",null,b.a.createElement(Qi,this.props),b.a.createElement("div",{className:"row"},l.map((function(t,f){return b.a.createElement("div",{key:"".concat(f,"_").concat(t||"_"),className:c},e?e[f]:b.a.createElement(za,{style:{width:"100%"},data:n,accepts:Va,items:l,col:f,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,f)},getDataById:o,setAsChild:i,seq:s}))})))))}}]),n}(b.a.Component),Wa=function(t){var e=t.data,n=t.class_name,r=Cn()(t,Ba),o=n||"col-md-6";return e.childItems||(e.childItems=[null,null],e.isContainer=!0),b.a.createElement(qa,i()({},r,{className:o,data:e}))},Ga=function(t){var e=t.data,n=t.class_name,r=Cn()(t,Fa),o=n||"col-md-4";return e.childItems||(e.childItems=[null,null,null],e.isContainer=!0),b.a.createElement(qa,i()({},r,{className:o,data:e}))},Qa=function(t){var e=t.data,n=Cn()(t,Ua),r=e.col_count||4,o=e.class_name||(4===r?"col-md-3":"col");return e.childItems||(e.childItems=Array.from({length:r},(function(t,e){return null})),e.isContainer=!0),b.a.createElement(qa,i()({},n,{className:o,data:e}))},Za=["data","class_name"];function Ja(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ja(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var $a=[dn,pn];function ts(t){var e=Object(v.useState)({}),n=Xt()(e,2),r=n[0],o=n[1],a=Object(v.useState)(null),s=Xt()(a,2),c=s[0],u=s[1];Object(v.useEffect)((function(){var e=t.data;t.class_name,Cn()(t,Za);o(e);f(1,e)}),[t]);var l=function(e){var n,r,o;(c?c.length:0)===e+1&&(n=t.data,r=n.childItems.length+1,o=n.childItems,n.childItems=Array.from({length:r},(function(t,e){return o[e]?o[e]:null})),u(n.childItems))},f=function(t,e){var n=t;e.class_name;e.childItems||(e.childItems=Array.from({length:n},(function(t,e){return null})),e.isContainer=!0),u(e.childItems)},p=t.controls,d=t.editModeOn,h=t.getDataById,g=t.setAsChild,m=t.removeChild,y=t.seq,w=(t.className,t.index),_="SortableItem rfb-item";return r.pageBreakBefore&&(_+=" alwaysbreak"),b.a.createElement("div",{style:Xa({},t.style),className:_},b.a.createElement(Vi,i()({},t,{isFieldSet:!0})),b.a.createElement("div",null,b.a.createElement(Qi,t),b.a.createElement("div",{className:"row"},null==c?void 0:c.map((function(t,e){return b.a.createElement("div",{key:"".concat(e,"_").concat(t||"_"),className:"col-md-12"},p?p[e]:b.a.createElement(za,{style:{width:"100%"},data:r,accepts:$a,items:c,key:e,col:e,onDropSuccess:function(){return l(e)},parentIndex:w,editModeOn:d,_onDestroy:function(){return m(r,e)},getDataById:h,setAsChild:g,seq:y,rowNo:e}))})))))}var es=ja.Header,ns=ja.Paragraph,rs=ja.Label,os=ja.LineBreak,is=ja.TextInput,as=ja.EmailInput,ss=ja.PhoneNumber,cs=ja.NumberInput,us=ja.TextArea,ls=ja.Dropdown,fs=ja.Checkboxes,ps=ja.DatePicker,ds=ja.RadioButtons,hs=ja.Image,gs=ja.Rating,ms=ja.Tags,ys=ja.Signature,vs=ja.HyperLink,bs=ja.Download,ws=ja.Camera,_s=ja.Range,Os=ja.FileUpload,Ss=ja.Checkbox,Es={};Es.Header=wn(es),Es.Paragraph=wn(ns),Es.Label=wn(rs),Es.LineBreak=wn(os),Es.TextInput=wn(is),Es.EmailInput=wn(as),Es.PhoneNumber=wn(ss),Es.NumberInput=wn(cs),Es.TextArea=wn(us),Es.Dropdown=wn(ls),Es.Signature=wn(ys),Es.Checkboxes=wn(fs),Es.Checkbox=wn(Ss),Es.DatePicker=wn(ps),Es.RadioButtons=wn(ds),Es.Image=wn(hs),Es.Rating=wn(gs),Es.Tags=wn(ms),Es.HyperLink=wn(vs),Es.Download=wn(bs),Es.Camera=wn(ws),Es.FileUpload=wn(Os),Es.Range=wn(_s),Es.PlaceHolder=wn(Sn),Es.FieldSet=wn(ts),Es.TwoColumnRow=wn(Wa),Es.ThreeColumnRow=wn(Ga),Es.MultiColumnRow=wn(Qa),Es.CustomElement=wn(Ta);var ks=Es;function js(t){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xs(t,e,n){return e&&Cs(t.prototype,e),n&&Cs(t,n),t}function Ds(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ts(t,e)}function Ts(t,e){return(Ts=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Is(t){var e=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(t){return!1}}();return function(){var n,r=Ns(t);if(e){var o=Ns(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(t,e){return!e||"object"!==js(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ns(t){return(Ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function As(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ps(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?As(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Rs={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},zs={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},Bs=function(t){var e=t.title,n=t.color?"#059862":"white";return b.a.createElement("div",{style:Ps(Ps({},Rs),{},{backgroundColor:n})},e)},Fs=function(t){var e=t.item,n=Object(v.useState)(!1),r=Xt()(n,2),o=r[0],i=(r[1],e.data.content?e.data.content:e.data.label?e.data.label:e.data.text),a=i.length>20?"".concat(i.slice(0,20),"..."):i;return b.a.createElement("div",{style:zs,role:"BoxPreview"},b.a.createElement(Bs,{title:a,color:o}))},Us={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function Hs(t){var e=t.initialOffset,n=t.currentOffset;if(!e||!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 Ks=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(ae.a)("function"==typeof t,'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",t),Object(ae.a)(le(e),'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',e),function(n){var r=n,o=e.arePropsEqual,i=void 0===o?ge:o,a=r.displayName||r.name||"Component",s=function(){var e=function(e){Ds(o,e);var n=Is(o);function o(){var t;return Ms(this,o),(t=n.apply(this,arguments)).isCurrentlyMounted=!1,t.ref=v.createRef(),t.handleChange=function(){if(t.isCurrentlyMounted){var e=t.getCurrentState();ge(e,t.state)||t.setState(e)}},t}return xs(o,[{key:"getDecoratedComponentInstance",value:function(){return Object(ae.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(t,e){return!i(t,this.props)||!ge(e,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 t=this;return v.createElement(Te.a.Consumer,null,(function(e){var n=e.dragDropManager;return void 0===n?null:(t.receiveDragDropManager(n),t.isCurrentlyMounted?v.createElement(r,Object.assign({},t.props,t.state,{ref:Ce(r)?t.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(t){if(void 0===this.manager){this.manager=t,Object(ae.a)("object"===js(t),"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 e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var e=this.manager.getMonitor();return t(e,this.props)}}]),o}(v.Component);return e.displayName="DragLayer(".concat(a,")"),e.DecoratedComponent=n,e}();return De()(s,n)}}((function(t){return{item:t.getItem(),itemType:t.getItemType(),initialOffset:t.getInitialSourceClientOffset(),currentOffset:t.getSourceClientOffset(),isDragging:t.isDragging()}}))((function(t){var e=t.item,n=t.itemType;return t.isDragging?b.a.createElement("div",{style:Us},b.a.createElement("div",{style:Hs(t)},function(){switch(n){case dn:return b.a.createElement(Fs,{item:e});default:return null}}())):null}));function Ys(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Vs=ks.PlaceHolder,qs=function(t){d()(n,t);var e=Ys(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"state",{data:[],answer_data:{}}),Bt()(f()(r),"editModeOff",(function(t){r.editForm.current&&!r.editForm.current.contains(t.target)&&r.manualEditModeOff()})),Bt()(f()(r),"manualEditModeOff",(function(){var t=r.props.editElement;t&&t.dirty&&(t.dirty=!1,r.updateElement(t)),r.props.manualEditModeOff()}));var o=t.onLoad,i=t.onPost;return Gt.setExternalHandler(o,i),r.editForm=b.a.createRef(),r.state={data:t.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(f()(r)),r.getDataById=r.getDataById.bind(f()(r)),r.moveCard=r.moveCard.bind(f()(r)),r.insertCard=r.insertCard.bind(f()(r)),r.setAsChild=r.setAsChild.bind(f()(r)),r.removeChild=r.removeChild.bind(f()(r)),r._onDestroy=r._onDestroy.bind(f()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.data,r=e.url,o=e.saveUrl,i=e.saveAlways;Gt.subscribe((function(e){return t._onUpdate(e.data)})),Gt.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(t){return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(t){for(var e=this.state.data,n=!1,r=0,o=e.length;r<o;r++)if(t.id===e[r].id){e[r]=t,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",e))}},{key:"_onChange",value:function(t){var e=this,n={};t.forEach((function(t){t&&t.readOnly&&e.props.variables[t.variableKey]&&(n[t.field_name]=e.props.variables[t.variableKey])})),this.setState({data:t,answer_data:n})}},{key:"_onDestroy",value:function(t){var e=this;t.childItems&&t.childItems.forEach((function(t){var n=e.getDataById(t);n&&Gt.dispatch("delete",n)})),Gt.dispatch("delete",t)}},{key:"getDataById",value:function(t){return this.state.data.find((function(e){return e&&e.id===t}))}},{key:"swapChildren",value:function(t,e,n,r){if(void 0!==n.col&&e.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!e.childItems[r])return!1;var o=e.childItems[r],i=this.getDataById(o),a=n.col;return e.childItems[a]=o,i.col=a,e.childItems[r]=n.id,n.col=r,Gt.dispatch("updateOrder",t),!0}},{key:"setAsChild",value:function(t,e,n,r){var o=this.state.data;if(!this.swapChildren(o,t,e,n)&&!r){var i=this.getDataById(e.parentId),a=e.col;t.childItems[n]=e.id,e.col=n,e.parentId=t.id,e.parentIndex=o.indexOf(t),i&&(i.childItems[a]=null);var s=o.filter((function(e){return e&&e.parentId===t.id})).filter((function(e){return-1===t.childItems.indexOf(e.id)})),c=o;s.length&&(c=o.filter((function(t){return-1===s.indexOf(t)}))),this.getDataById(e.id)||c.push(e),Gt.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(t,e){var n=this.state.data,r=t.childItems[e],o=this.getDataById(r);if(o){var i=n.filter((function(t){return t!==o}));t.childItems[e]=null,this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(t,e){var n=this.state.data,r=this.getDataById(t.data.parentId),o=this.getDataById(e);if(r&&o){var i=n.indexOf(o),a=Rt()(n);r.childItems[o.col]=null,delete o.parentId,delete t.setAsChild,delete t.parentIndex,t.index=i,this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(t,e,n){var r=this.state.data;n?this.restoreCard(t,n):(r.splice(e,0,t),this.saveData(t,e,e),Gt.dispatch("insertItem",t))}},{key:"moveCard",value:function(t,e){var n=this.state.data[t];this.saveData(n,t,e)}},{key:"cardPlaceHolder",value:function(t,e){}},{key:"saveData",value:function(t,e,n){var r=Ut()(this.state,{data:{$splice:[[e,1],[n,0,t]]}});this.setState(r),Gt.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(t,e){t.custom&&(t.component&&"function"==typeof t.component||(t.component=this.props.registry.get(t.key)));var n=ks[t.element];return null===n?null:b.a.createElement(n,{id:t.id,seq:this.seq,index:e,moveCard:this.moveCard,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:t.id,sortData:t.id,data:t,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var t=this,e=function(e){return t.updateElement(e)};e.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,preview:this,element:this.props.editElement,updateElement:e};return this.props.renderEditForm(n)}},{key:"render",value:function(){var t=this,e=this.props.className;this.props.editMode&&(e+=" is-editing");var n=this.state.data.filter((function(t){return!!t&&!t.parentId})).map((function(e,n){return t.getElement(e,n)}));return b.a.createElement("div",{className:e},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(Vs,{id:"form-place-holder",show:0===n.length,index:n.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),b.a.createElement(Ks,null))}}]),n}(b.a.Component);qs.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(t){return b.a.createElement(ee,t)}};var Ws=n(29),Gs=n.n(Ws);function Qs(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Zs={beginDrag:function(t){return{id:Gs.a.uuid(),index:-1,data:t.data,onCreate:t.onCreate}}},Js=function(t){d()(n,t);var e=Qs(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props,e=t.connectDragSource,n=t.data,r=t.onClick;return e?e(b.a.createElement("li",{onClick:r},b.a.createElement("i",{className:n.icon}),n.name)):null}}]),n}(b.a.Component),Xs=fn(pn,Zs,(function(t){return{connectDragSource:t.dragSource()}}))(Js);var $s=function(t){var e=t.name,n=t.group,r=t.renderItem,o=Object(v.useState)(!1),i=Xt()(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)}},e),b.a.createElement("div",{className:c},b.a.createElement("ul",null,n.map(r)))))};n(164),n(95),n(112),n(113);function tc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}function ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ec(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rc(t){var e,n,r,o=t.filter((function(t){return!t.group_name})),i=t.filter((function(t){return!!t.group_name}));return{items:o,grouped:(e=i,n=function(t){return t.group_name},r=new Map,e.forEach((function(t){var e=n(t),o=r.get(e);o?o.push(t):r.set(e,[t])})),r),groupKeys:i.map((function(t){return t.group_name})).filter((function(t,e,n){return n.indexOf(t)===e}))}}var oc=function(t){d()(n,t);var e=tc(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"renderItem",(function(t){return b.a.createElement(Xs,{data:t,key:t.key,onClick:r._onClick.bind(f()(r),t),onCreate:r.create})}));var o=r.props.intl,i=function(t,e){return t?t.map((function(t){var n=e.find((function(e){return t.element===e.element&&e.key===t.key}));return n||(n=e.find((function(e){return(t.element||t.key)===(e.element||e.key)}))),n&&(!1!==t.inherited?n=nc(nc({},n),t):t.group_name&&(n.group_name=t.group_name)),n||t})):e}(t.items,r._defaultItems(o));return r.state={items:i},r.create=r.create.bind(f()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var t=this;Gt.subscribe((function(e){return t.setState({store:e})}))}},{key:"_defaultItems",value:function(t){return[{key:"Header",name:t.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:t.formatMessage({id:"place-holder-text"})},{key:"Label",name:t.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:t.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:t.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:t.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:t.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:t.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:t.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:t.formatMessage({id:"tags"}),icon:"fas fa-tags",label:t.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:t.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:t.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:t.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:t.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:t.formatMessage({id:"text-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:t.formatMessage({id:"email-input"}),label:t.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:t.formatMessage({id:"number-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:t.formatMessage({id:"phone-input"}),label:t.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:t.formatMessage({id:"multi-line-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:t.formatMessage({id:"fieldset"}),label:t.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:t.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:t.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:t.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:t.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:t.formatMessage({id:"rating"}),label:t.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:t.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:t.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:t.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:t.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:t.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:t.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:t.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:t.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:t.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:t.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:t.formatMessage({id:"easy"}),max_label:t.formatMessage({id:"difficult"})},{key:"Camera",name:t.formatMessage({id:"camera"}),icon:"fas fa-camera",label:t.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:t.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:t.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(t,e){if("custom"===t.type){var n=nc(nc({},t),e);return n.custom=!0,n.component=t.component||null,n.custom_options=t.custom_options||[],n}return e}},{key:"create",value:function(t){var e=this.props.intl,r=t.element||t.key,o=this.addCustomOptions(t,{id:Gs.a.uuid(),element:r,text:t.name,group_name:t.group_name,static:t.static,required:!1,showDescription:t.showDescription});return!0!==this.props.showDescription||t.static||(o.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea","DatePicker"].indexOf(r)&&(o.showPlaceholder=!0),"custom"===t.type&&(o.key=t.key,o.custom=!0,o.forwardRef=t.forwardRef,o.bare=t.bare,o.props=t.props,o.component=t.component||null,o.custom_options=t.custom_options||[]),t.static&&(o.bold=!1,o.italic=!1),o.show_custom_name=t.show_custom_name,o.custom_name=t.custom_name,t.canHaveAnswer&&(o.canHaveAnswer=t.canHaveAnswer),t.canReadOnly&&(o.readOnly=!1),t.canDefaultToday&&(o.defaultToday=!1),t.content&&(o.content=t.content),t.href&&(o.href=t.href),void 0!==t.inherited&&(o.inherited=t.inherited),o.canHavePageBreakBefore=!1!==t.canHavePageBreakBefore,o.canHaveAlternateForm=!1!==t.canHaveAlternateForm,o.canHaveDisplayHorizontal=!1!==t.canHaveDisplayHorizontal,o.canHaveDisplayHorizontal&&(o.inline=t.inline),o.canHaveOptionCorrect=!1!==t.canHaveOptionCorrect,o.canHaveOptionValue=!1!==t.canHaveOptionValue,o.canPopulateFromApi=!1!==t.canPopulateFromApi,t.class_name&&(o.class_name=t.class_name),"Image"===r&&(o.src=t.src),"DatePicker"===r&&(o.dateFormat=t.dateFormat,o.timeFormat=t.timeFormat,o.showTimeSelect=t.showTimeSelect,o.showTimeSelectOnly=t.showTimeSelectOnly,o.showTimeInput=t.showTimeInput),"Download"===r&&(o._href=t._href,o.file_path=t.file_path),"Range"===r&&(o.step=t.step,o.default_value=t.default_value,o.min_value=t.min_value,o.max_value=t.max_value,o.min_label=t.min_label,o.max_label=t.max_label),"MultiColumnRow"===r&&(o.col_count=t.col_count),t.defaultValue&&(o.defaultValue=t.defaultValue),t.field_name&&(o.field_name=t.field_name+Gs.a.uuid()),t.label&&(o.label=t.label),t.options&&(t.options.length>0?o.options=t.options.map((function(t){return nc(nc({},t),{},{key:"custom_option_".concat(Gs.a.uuid())})})):o.options=n._defaultItemOptions(o.element,e)),o}},{key:"_onClick",value:function(t){Gt.dispatch("create",this.create(t))}},{key:"render",value:function(){var t=this,e=rc(this.state.items),n=e.items,r=e.grouped,o=e.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(e){return b.a.createElement($s,{key:e,name:e,group:r.get(e),renderItem:t.renderItem})}))))}}],[{key:"_defaultItemOptions",value:function(t,e){switch(t){case"Dropdown":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(Gs.a.uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(Gs.a.uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(Gs.a.uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:e.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(Gs.a.uuid())},{value:"place_holder_tag_2",text:e.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(Gs.a.uuid())},{value:"place_holder_tag_3",text:e.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(Gs.a.uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(Gs.a.uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(Gs.a.uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(Gs.a.uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(Gs.a.uuid())}];default:return[]}}}]),n}(b.a.Component),ic=Object(Z.c)(oc),ac=n(174),sc=n(114);function cc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var uc=new Wi.a.FilterXSS({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),lc=function(t){d()(n,t);var e=cc(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).state={errors:[]},r}return u()(n,[{key:"componentDidMount",value:function(){var t=this;this.subscription=this.props.emitter.addListener("formValidation",(function(e){t.setState({errors:e})}))}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(t){t.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var t=this.state.errors.map((function(t,e){return b.a.createElement("li",{key:"error_".concat(e),dangerouslySetInnerHTML:{__html:uc.process(t)}})}));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"},t)),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(sc.a,{id:"dismiss"})))))}}]),n}(b.a.Component);function fc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var pc=ja.Image,dc=ja.Checkboxes,hc=ja.Signature,gc=ja.Download,mc=ja.Camera,yc=ja.FileUpload,vc=function(t){d()(n,t);var e=fc(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"form",void 0),Bt()(f()(r),"inputs",{}),Bt()(f()(r),"answerData",void 0),Bt()(f()(r),"handleRenderSubmit",(function(){var t=r.props.action_name||r.props.actionName||"Submit",e=r.props.submitButton;return void 0!==e&&e||b.a.createElement("input",{type:"submit",className:"btn btn-big",value:t})})),Bt()(f()(r),"handleRenderBack",(function(){var t=r.props.back_name||r.props.backName||"Cancel",e=r.props.backButton;return void 0!==e&&e||b.a.createElement("a",{href:r.props.back_action,className:"btn btn-default btn-cancel btn-big"},t)})),r.answerData=r._convert(t.answer_data),r.emitter=new ac.EventEmitter,r.getDataById=r.getDataById.bind(f()(r)),r.handleBlur=r.handleBlur.bind(f()(r)),r.handleChange=r.handleChange.bind(f()(r)),r.handleSubmit=r.handleSubmit.bind(f()(r)),r}return u()(n,[{key:"_convert",value:function(t){if(Array.isArray(t)){var e={};return t.forEach((function(t){t.name.indexOf("tags_")>-1?e[t.name]=t.value.map((function(t){return t.value})):e[t.name]=t.value})),e}return t||{}}},{key:"_getDefaultValue",value:function(t){return this.answerData[t.field_name]}},{key:"_optionsDefaultValue",value:function(t){var e=this,n=this._getDefaultValue(t);if(n)return n;var r=[];return t.options.forEach((function(t){e.answerData["option_".concat(t.key)]&&r.push(t.key)})),r}},{key:"_getItemValue",value:function(t,e){var n={element:t.element,value:""};return"Rating"===t.element?n.value=e.inputField.current.state.rating:"Tags"===t.element?n.value=e.inputField.current.state.value:"DatePicker"===t.element?n.value=e.state.value:"Camera"===t.element?n.value=e.state.img:"FileUpload"===t.element?n.value=e.state.fileUpload:e&&e.inputField&&e.inputField.current&&(n=ie.a.findDOMNode(e.inputField.current))&&"string"==typeof n.value&&(n.value=n.value.trim()),n}},{key:"_isIncorrect",value:function(t){var e=!1;if(t.canHaveAnswer){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element)t.options.forEach((function(t){var r=ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]);(t.hasOwnProperty("correct")&&!r.checked||!t.hasOwnProperty("correct")&&r.checked)&&(e=!0)}));else{var r=this._getItemValue(t,n);"Rating"===t.element?r.value.toString()!==t.correct&&(e=!0):r.value.toLowerCase()!==t.correct.trim().toLowerCase()&&(e=!0)}}return e}},{key:"_isInvalid",value:function(t){var e=!1;if(!0===t.required){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var r=0;t.options.forEach((function(t){ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]).checked&&(r+=1)})),r<1&&(e=!0)}else{var o=this._getItemValue(t,n);"Rating"===t.element?0===o.value&&(e=!0):(void 0===o.value||o.value.length<1)&&(e=!0)}}return e}},{key:"_collect",value:function(t){var e={id:t.id,name:t.field_name,custom_name:t.custom_name||t.field_name};if(!e.name)return null;var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var r=[];t.options.forEach((function(t){ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]).checked&&r.push(t.key)})),e.value=r}else if("Checkbox"===t.element)n&&n.inputField&&n.inputField.current?e.value=n.inputField.current.checked:e.value=!1;else{if(!n)return null;e.value=this._getItemValue(t,n).value}return e.required=t.required||!1,e}},{key:"_collectFormData",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=e._collect(t);r&&n.push(r)})),n}},{key:"_getSignatureImg",value:function(t){var e=this.inputs[t.field_name],n=e.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty(),i=ie.a.findDOMNode(e.inputField.current);i.value=o?"":r}}},{key:"handleSubmit",value:function(t){t.preventDefault();var e=[];if(this.props.skip_validations||(e=this.validateForm(),this.emitter.emit("formValidation",e)),e.length<1){var n=this.props.onSubmit;if(n)n(this._collectFormData(this.props.data));else ie.a.findDOMNode(this.form).submit()}}},{key:"handleBlur",value:function(t){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data))}},{key:"handleChange",value:function(t){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data))}},{key:"validateForm",value:function(){var t=this,e=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter((function(t){return!0===t.alternateForm}))),n.forEach((function(n){if("Signature"===n.element&&t._getSignatureImg(n),t._isInvalid(n)&&e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.is-required"}),"!")),"EmailInput"===n.element){var o=t.inputs[n.field_name],i=t._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,}))$/)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"})))}}if("PhoneNumber"===n.element){var a=t.inputs[n.field_name],s=t._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)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"})))}}t.props.validateForCorrectness&&t._isIncorrect(n)&&e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))})),e}},{key:"getDataById",value:function(t){return this.props.data.find((function(e){return e.id===t}))}},{key:"getInputElement",value:function(t){var e=this;if(t.custom)return this.getCustomElement(t);var n=ja[t.element];return b.a.createElement(n,{handleChange:this.handleChange,ref:function(n){return e.inputs[t.field_name]=n},mutable:!0,key:"form_".concat(t.id),data:t,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(t)})}},{key:"getContainerElement",value:function(t,e){var n=this,r=t.childItems.map((function(t){return t?n.getInputElement(n.getDataById(t)):b.a.createElement("div",null," ")}));return b.a.createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(t){var e=ja[t.element];return b.a.createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(t){var e=this,n=this.props.intl;t.component&&"function"==typeof t.component||(t.component=La.a.get(t.key),t.component||console.error("".concat(t.element," ").concat(n.formatMessage({id:"message.was-not-registered"}))));var r=t.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(t),ref:function(n){return e.inputs[t.field_name]=n}};return b.a.createElement(Ta,i()({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(t.id),data:t},r))}},{key:"render",value:function(){var t=this,e=this.props.data;this.props.display_short&&(e=this.props.data.filter((function(t){return!0===t.alternateForm}))),e.forEach((function(e){e&&e.readOnly&&e.variableKey&&t.props.variables[e.variableKey]&&(t.answerData[e.field_name]=t.props.variables[e.variableKey])}));var n=e.filter((function(t){return!t.parentId})).map((function(e){if(!e)return null;switch(e.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 t.getInputElement(e);case"CustomElement":return t.getCustomElement(e);case"MultiColumnRow":return t.getContainerElement(e,Qa);case"ThreeColumnRow":return t.getContainerElement(e,Ga);case"TwoColumnRow":return t.getContainerElement(e,Wa);case"FieldSet":return t.getContainerElement(e,ts);case"Signature":return b.a.createElement(hc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e)});case"Checkboxes":return b.a.createElement(dc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only,handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._optionsDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Image":return b.a.createElement(pc,{ref:function(n){return t.inputs[e.field_name]=n},handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Download":return b.a.createElement(gc,{download_path:t.props.download_path,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert});case"Camera":return b.a.createElement(mc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"FileUpload":return b.a.createElement(yc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert,defaultValue:t._getDefaultValue(e)});default:return t.getSimpleElement(e)}}));return b.a.createElement("div",null,b.a.createElement(lc,{emitter:this.emitter}),b.a.createElement("div",{className:"react-form-builder-form"},b.a.createElement("form",{encType:"multipart/form-data",ref:function(e){return t.form=e},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),bc=Object(Z.c)(vc);function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}vc.defaultProps={validateForCorrectness:!1};var _c={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wc(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(175)),locale:"en-US"};function Oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Sc={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(176)),locale:"it-IT"};function Ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var kc={en:_c,vi:{messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(177)),locale:"vi-VN"},it:Sc};function jc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Mc=function(t){d()(n,t);var e=jc(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).state={editMode:!1,editElement:null},r.editModeOn=r.editModeOn.bind(f()(r)),r}return u()(n,[{key:"editModeOn",value:function(t,e){e.preventDefault(),e.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:t})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var t={showDescription:this.props.show_description},e=this.props.locale?this.props.locale:"en",n=kc[e];return this.props.toolbarItems&&(t.items=this.props.toolbarItems),b.a.createElement(w.a,{backend:G},b.a.createElement(At,{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(qs,{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(ic,i()({},t,{customItems:this.props.customToolbarItems})))))))}}]),n}(b.a.Component);function Cc(t){var e=t.locale?t.locale:"en",n=kc[e];return b.a.createElement(At,{locale:n.locale,messages:n.messages},b.a.createElement(bc,t))}var xc={};xc.ReactFormBuilder=Mc,xc.ReactFormGenerator=Cc,xc.ElementStore=Gt,xc.Registry=La.a;e.default=xc},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t,e,n){if(void 0===n&&(n=Error),!t)throw new n(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(30),i=n(26),a=n(110);function s(t,e){return e?Object.keys(t).reduce((function(n,o){var i,a;return n[o]=(i=t[o],(a=e[o])?Object(r.a)(Object(r.a)(Object(r.a)({},i||{}),a||{}),Object.keys(i).reduce((function(t,e){return t[e]=Object(r.a)(Object(r.a)({},i[e]),a[e]||{}),t}),{})):i),n}),Object(r.a)({},t)):t}function c(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var u=function(){function t(e,n,o,u){var l,f=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=f.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===a.a.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return Object(a.b)(f.ast,f.locales,f.formatters,f.formats,t,void 0,f.message)},this.resolvedOptions=function(){return{locale:f.resolvedLocale.toString()}},this.getAst=function(){return f.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==u?void 0:u.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(t.formats,o),this.formatters=u&&u.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.number),strategy:i.b.variadic}),getDateTimeFormat:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.dateTime),strategy:i.b.variadic}),getPluralRules:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.pluralRules),strategy:i.b.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=o.m,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}()},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n(0),o=n(56);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var c=0,u=Object(r.memo)((function(t){var e=t.children,n=i(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;i[l]||(i[l]=Object(o.b)(t,e,n,r));return i[l]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(s(t,["children"])),2),a=n[0],u=n[1];return r.useEffect((function(){return u&&c++,function(){u&&(0===--c&&(f()[l]=null))}}),[]),r.createElement(o.a.Provider,{value:a},e)}));u.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function f(){return void 0!==t?t:window}}).call(this,n(49))},function(t,e,n){"use strict";n.d(e,"a",(function(){return $t}));var r=n(31),o=n(59);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(o.a)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var a=n(90),s=n(92),c=n(19);function u(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var l=n(70),f=n(87),p=n(44),d=n(23),h=n(15),g=n(2),m=n(6),y=n(25);var v=n(35);function b(t){var e=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(t){return!1}}();return function(){var n,r=Object(y.a)(t);if(e){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(4),_=n(5),O=n(1),S=function(){function t(){Object(w.a)(this,t),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",0)}return Object(_.a)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),E=function(t){Object(m.a)(n,t);var e=b(n);function n(t,r,o,i,a){var s;return Object(w.a)(this,n),(s=e.call(this)).value=t,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return Object(_.a)(n,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),n}(S),k=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"subPriority",-1),t}return Object(_.a)(n,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),n}(S),j=function(){function t(){Object(w.a)(this,t),Object(O.a)(this,"incompatibleTokens",void 0),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",void 0)}return Object(_.a)(t,[{key:"run",value:function(t,e,n,r){var o=this.parse(t,e,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(t,e,n){return!0}}]),t}(),M=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",140),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["R","u","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),C=(Math.pow(10,8),/^(1[0-2]|0?\d)/),x=/^(3[0-1]|[0-2]?\d)/,D=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,T=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,L=/^(2[0-4]|[0-1]?\d)/,N=/^(1[0-1]|0?\d)/,A=/^(1[0-2]|0?\d)/,P=/^[0-5]?\d/,R=/^[0-5]?\d/,z=/^\d/,B=/^\d{1,2}/,F=/^\d{1,3}/,U=/^\d{1,4}/,H=/^-?\d+/,K=/^-?\d/,Y=/^-?\d{1,2}/,V=/^-?\d{1,3}/,q=/^-?\d{1,4}/,W=/^([+-])(\d{2})(\d{2})?|Z/,G=/^([+-])(\d{2})(\d{2})|Z/,Q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(t,e){return t?{value:e(t.value),rest:t.rest}:t}function $(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function tt(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function et(t){return $(H,t)}function nt(t,e){switch(t){case 1:return $(z,e);case 2:return $(B,e);case 3:return $(F,e);case 4:return $(U,e);default:return $(new RegExp("^\\d{1,"+t+"}"),e)}}function rt(t,e){switch(t){case 1:return $(K,e);case 2:return $(Y,e);case 3:return $(V,e);case 4:return $(q,e);default:return $(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ot(t){switch(t){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 it(t,e){var n,r=e>0,o=r?e:1-e;if(o<=50)n=t||100;else{var i=o+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function at(t){return t%400==0||t%4==0&&t%100!=0}var st=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return X(nt(4,t),r);case"yo":return X(n.ordinalNumber(t,{unit:"year"}),r);default:return X(nt(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var o=it(n.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),ct=n(60),ut=n(40),lt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return X(nt(4,t),r);case"Yo":return X(n.ordinalNumber(t,{unit:"year"}),r);default:return X(nt(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var o=Object(ct.a)(t,r);if(n.isTwoDigitYear){var i=it(n.year,o);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(ut.a)(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(ut.a)(t,r)}}]),n}(j),ft=n(41),pt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return rt("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Object(ft.a)(r)}}]),n}(j),dt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return rt("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),ht=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",120),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return nt(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(j),gt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",120),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return nt(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(j),mt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Object(O.a)(Object(g.a)(t),"priority",110),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return X($(C,t),r);case"MM":return X(nt(2,t),r);case"Mo":return X(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),yt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",110),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return X($(C,t),r);case"LL":return X(nt(2,t),r);case"Lo":return X(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),vt=n(93);var bt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",100),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"w":return $(T,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return Object(ut.a)(function(t,e,n){Object(h.a)(2,arguments);var r=Object(c.a)(t),o=Object(d.a)(e),i=Object(vt.a)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,n,r),r)}}]),n}(j),wt=n(94);var _t=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",100),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"I":return $(T,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return Object(ft.a)(function(t,e){Object(h.a)(2,arguments);var n=Object(c.a)(t),r=Object(d.a)(e),o=Object(wt.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,n))}}]),n}(j),Ot=[31,28,31,30,31,30,31,31,30,31,30,31],St=[31,29,31,30,31,30,31,31,30,31,30,31],Et=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"subPriority",1),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"d":return $(x,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){var n=at(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=St[r]:e>=1&&e<=Ot[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n}(j),kt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"subpriority",1),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return $(D,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return at(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n}(j),jt=n(39);function Mt(t,e,n){var r,o,i,a,s,u,l,f;Object(h.a)(2,arguments);var p=Object(jt.a)(),g=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:p.weekStartsOn)&&void 0!==o?o:null===(l=p.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Object(c.a)(t),y=Object(d.a)(e),v=m.getUTCDay(),b=y%7,w=(b+7)%7,_=(w<g?7:0)+y-v;return m.setUTCDate(m.getUTCDate()+_),m}var Ct=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j),xt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return X(nt(e.length,t),o);case"eo":return X(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j),Dt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return X(nt(e.length,t),o);case"co":return X(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j);var Tt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return nt(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return X(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return X(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return X(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return X(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return(t=function(t,e){Object(h.a)(2,arguments);var n=Object(d.a)(e);n%7==0&&(n-=7);var r=1,o=Object(c.a)(t),i=o.getUTCDay(),a=n%7,s=(a+7)%7,u=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}(t,n)).setUTCHours(0,0,0,0),t}}]),n}(j),It=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),Lt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),Nt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),At=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"h":return $(A,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),n}(j),Pt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"H":return $(I,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n}(j),Rt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"K":return $(N,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),n}(j),zt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"k":return $(L,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}]),n}(j),Bt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",60),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"m":return $(P,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n}(j),Ft=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",50),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"s":return $(R,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n}(j),Ut=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",30),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return X(nt(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),n}(j),Ht=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T","x"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){switch(e){case"X":return tt(W,t);case"XX":return tt(G,t);case"XXXX":return tt(Q,t);case"XXXXX":return tt(J,t);case"XXX":default:return tt(Z,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(j),Kt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T","X"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){switch(e){case"x":return tt(W,t);case"xx":return tt(G,t);case"xxxx":return tt(Q,t);case"xxxxx":return tt(J,t);case"xxx":default:return tt(Z,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(j),Yt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",40),Object(O.a)(Object(g.a)(t),"incompatibleTokens","*"),t}return Object(_.a)(n,[{key:"parse",value:function(t){return et(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(j),Vt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",20),Object(O.a)(Object(g.a)(t),"incompatibleTokens","*"),t}return Object(_.a)(n,[{key:"parse",value:function(t){return et(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(j),qt={G:new M,y:new st,Y:new lt,R:new pt,u:new dt,Q:new ht,q:new gt,M:new mt,L:new yt,w:new bt,I:new _t,d:new Et,D:new kt,E:new Ct,e:new xt,c:new Dt,i:new Tt,a:new It,b:new Lt,B:new Nt,h:new At,H:new Pt,K:new Rt,k:new zt,m:new Bt,s:new Ft,S:new Ut,X:new Ht,x:new Kt,t:new Yt,T:new Vt},Wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qt=/^'([^]*?)'?$/,Zt=/''/g,Jt=/\S/,Xt=/[a-zA-Z]/;function $t(t,e,n,o){var g,m,y,v,b,w,_,O,S,E,j,M,C,x,D,T,I,L;Object(h.a)(3,arguments);var N=String(t),A=String(e),P=Object(jt.a)(),R=null!==(g=null!==(m=null==o?void 0:o.locale)&&void 0!==m?m:P.locale)&&void 0!==g?g: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!==(j=null!==(M=null!==(C=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!==C?C:P.weekStartsOn)&&void 0!==M?M:null===(I=P.locale)||void 0===I||null===(L=I.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==j?j:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===A)return""===N?Object(c.a)(n):new Date(NaN);var F,U={firstWeekContainsDate:z,weekStartsOn:B,locale:R},H=[new k],K=A.match(Gt).map((function(t){var e=t[0];return e in l.a?(0,l.a[e])(t,R.formatLong):t})).join("").match(Wt),Y=[],V=i(K);try{var q=function(){var e=F.value;null!=o&&o.useAdditionalWeekYearTokens||!Object(p.b)(e)||Object(p.c)(e,A,t),null!=o&&o.useAdditionalDayOfYearTokens||!Object(p.a)(e)||Object(p.c)(e,A,t);var n=e[0],r=qt[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=Y.find((function(t){return i.includes(t.token)||t.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));Y.push({token:n,fullToken:e});var s=r.run(N,e,R.match,U);if(!s)return{v:new Date(NaN)};H.push(s.setter),N=s.rest}else{if(n.match(Xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=te(e)),0!==N.indexOf(e))return{v:new Date(NaN)};N=N.slice(e.length)}};for(V.s();!(F=V.n()).done;){var W=q();if("object"===Object(r.a)(W))return W.v}}catch(t){V.e(t)}finally{V.f()}if(N.length>0&&Jt.test(N))return new Date(NaN);var G=H.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return H.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),Q=Object(c.a)(n);if(isNaN(Q.getTime()))return new Date(NaN);var Z,J=Object(s.a)(Q,Object(f.a)(Q)),X={},$=i(G);try{for($.s();!(Z=$.n()).done;){var tt=Z.value;if(!tt.validate(J,U))return new Date(NaN);var et=tt.set(J,X,U);Array.isArray(et)?(J=et[0],u(X,et[1])):J=et}}catch(t){$.e(t)}finally{$.f()}return J}function te(t){return t.match(Qt)[1].replace(Zt,"'")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(172),o=n(92),i=n(19),a=n(15);var s=n(94),c=n(86),u=n(93),l=n(60);function f(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var p={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return f("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):f(n+1,2)},d:function(t,e){return f(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e){return f(t.getUTCHours()%12||12,e.length)},H:function(t,e){return f(t.getUTCHours(),e.length)},m:function(t,e){return f(t.getUTCMinutes(),e.length)},s:function(t,e){return f(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return f(Math.floor(r*Math.pow(10,n-3)),e.length)}},d="midnight",h="noon",g="morning",m="afternoon",y="evening",v="night";function b(t,e){var n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=e||"";return n+String(o)+a+f(i,2)}function w(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):_(t,e)}function _(t,e){var n=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+f(Math.floor(o/60),2)+n+f(o%60,2)}var O={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){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(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return p.y(t,e)},Y:function(t,e,n,r){var o=Object(l.a)(t,r),i=o>0?o:1-o;return"YY"===e?f(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(Object(c.a)(t),e.length)},u:function(t,e){return f(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return f(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(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return f(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(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return p.M(t,e);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(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return f(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(t,e,n,r){var o=Object(u.a)(t,r);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):f(o,e.length)},I:function(t,e,n){var r=Object(s.a)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):f(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):p.d(t,e)},D:function(t,e,n){var r=function(t){Object(a.a)(1,arguments);var e=Object(i.a)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=n-r;return Math.floor(o/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.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(t,e,n){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return f(o,e.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(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e,n){var r,o=t.getUTCHours();switch(r=12===o?h:0===o?d:o/12>=1?"pm":"am",e){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(t,e,n){var r,o=t.getUTCHours();switch(r=o>=17?y:o>=12?m:o>=4?g:v,e){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(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):p.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):p.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):p.s(t,e)},S:function(t,e){return p.S(t,e)},X:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return w(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return w(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(t,e,n,r){var o=r._originalDate||t;return f(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,r){return f((r._originalDate||t).getTime(),e.length)}},S=n(70),E=n(87),k=n(44),j=n(23),M=n(39),C=n(90),x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,I=/''/g,L=/[a-zA-Z]/;function N(t,e,n){var s,c,u,l,f,p,d,h,g,m,y,v,b,w,_,T,I,N;Object(a.a)(2,arguments);var P=String(e),R=Object(M.a)(),z=null!==(s=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:R.locale)&&void 0!==s?s:C.a,B=Object(j.a)(null!==(u=null!==(l=null!==(f=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n||null===(d=n.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:R.firstWeekContainsDate)&&void 0!==l?l:null===(g=R.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.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(j.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===(N=I.options)||void 0===N?void 0:N.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.a)(t);if(!Object(r.a)(U))throw new RangeError("Invalid time value");var H=Object(E.a)(U),K=Object(o.a)(U,H),Y={firstWeekContainsDate:B,weekStartsOn:F,locale:z,_originalDate:U},V=P.match(D).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,S.a[e])(t,z.formatLong):t})).join("").match(x).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return A(r);var i=O[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!Object(k.b)(r)||Object(k.c)(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!Object(k.a)(r)||Object(k.c)(r,e,String(t)),i(K,r,z.localize,Y);if(o.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return V}function A(t){var e=t.match(T);return e?e[1].replace(I,"'"):t}}])}));
|
|
45
|
+
========================================================= */o=[n(200)],void 0===(i="function"==typeof(r=function(t){var e;return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(t){var e=Array.prototype.slice;function n(){}!function(t){if(t){var r="undefined"==typeof console?n:function(t){console.error(t)};t.bridget=function(n,o){!function(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}(o),function(n,o){t.fn[n]=function(i){if("string"==typeof i){for(var a=e.call(arguments,1),s=0,c=this.length;s<c;s++){var u=this[s],l=t.data(u,n);if(l)if(t.isFunction(l[i])&&"_"!==i.charAt(0)){var f=l[i].apply(l,a);if(void 0!==f&&f!==l)return f}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 p=this.map((function(){var e=t.data(this,n);return e?(e.option(i),e._init()):(e=new o(this,i),t.data(this,n,e)),t(this)}));return 1===p.length?p[0]:p}}(n,o)},t.bridget}}(t)}(t),function(t){var n=void 0,r=function(t){return"Invalid input value '"+t+"' passed in"},o={linear:{getValue:function(t,e){return t<e.min?e.min:t>e.max?e.max:t},toValue:function(t){var e=t/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(t<=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}e=r+(t-a)/(s-a)*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(e/this.options.step)*this.options.step;return o.linear.getValue(u,this.options)},toPercentage:function(t){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var e,n,r,o=0,i=0;i<this.options.ticks.length;i++)if(t<=this.options.ticks[i]){e=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+(t-e)/(n-e)*(o-r)}return 100*(t-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(t){var e=1-this.options.min,n=Math.log(this.options.min+e),r=Math.log(this.options.max+e),i=Math.exp(n+(r-n)*t/100)-e;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(t){if(this.options.max===this.options.min)return 0;var e=1-this.options.min,n=Math.log(this.options.max+e),r=Math.log(this.options.min+e);return 100*(Math.log(t+e)-r)/(n-r)}}};function i(e,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 e?this.element=document.querySelector(e):e instanceof HTMLElement&&(this.element=e),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:f(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 f(t,e){var n="data-slider-"+e.replace(/_/g,"-"),r=t.getAttribute(n);try{return JSON.parse(r)}catch(t){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 p,d,h,g,m,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",(p=document.createElement("div")).className="slider-selection",(h=document.createElement("div")).className="slider-track-high",(g=document.createElement("div")).className="slider-handle min-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),(m=document.createElement("div")).className="slider-handle max-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),w.appendChild(d),w.appendChild(p),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]&&g.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&m.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(g.setAttribute("aria-labelledby",this.options.labelledby),m.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 j=document.createElement("div");if(j.className="slider-tick",this.options.ticks_tooltip){var M=this._addTickListener(),C=M.addMouseEnter(this,j,s),x=M.addMouseLeave(this,j);this.ticksCallbackMap[s]={mouseEnter:C,mouseLeave:x}}this.ticks.push(j),this.ticksContainer.appendChild(j)}p.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 L=function(t){var e=document.createElement("div");e.className="tooltip-arrow";var n=document.createElement("div");n.className="tooltip-inner",t.appendChild(e),t.appendChild(n)},N=document.createElement("div");N.className="tooltip tooltip-main",N.setAttribute("role","presentation"),L(N);var A=document.createElement("div");A.className="tooltip tooltip-min",A.setAttribute("role","presentation"),L(A);var P=document.createElement("div");P.className="tooltip tooltip-max",P.setAttribute("role","presentation"),L(P),this.sliderElem.appendChild(w),this.sliderElem.appendChild(N),this.sliderElem.appendChild(A),this.sliderElem.appendChild(P),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(g),this.sliderElem.appendChild(m),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(t&&(this.$element=t(this.element),this.$sliderElem=t(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(t){this._removeProperty(this.trackLow,t),this._removeProperty(this.trackSelection,t),this._removeProperty(this.trackHigh,t)}),this),[this.handle1,this.handle2].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top"),this._removeClass(t,"right"),this._removeClass(t,"left"),this._removeClass(t,"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=p||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=g||this.handle1,this.handle2=m||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()}(e=function(t,e){return i.call(this,t,e),this}).prototype={_init:function(){},constructor:e,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(t){return Array.isArray(t)?t[0]+" : "+t[1]:t},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(t,e,n){t||(t=0);var r=this.getValue();this._state.value=this._validateInputValue(t);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===e&&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"),t&&(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(t,e){return this._bindNonQueryEventHandler(t,e),this},off:function(e,n){t?(this.$element.off(e,n),this.$sliderElem.off(e,n)):this._unbindNonQueryEventHandler(e,n)},getAttribute:function(t){return t?this.options[t]:this.options},setAttribute:function(t,e){return this.options[t]=e,this},refresh:function(e){var r=this.getValue();return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),e&&!0===e.useCurrentValue&&this.setValue(r),t&&("slider"===n?(t.data(this.element,"slider",this),t.data(this.element,"bootstrapSlider",this)):t.data(this.element,"bootstrapSlider",this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(t,e){this.handle1.removeEventListener(t,e,!1),this.handle2.removeEventListener(t,e,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var t=this.ticksContainer.getElementsByClassName("slider-tick"),e=0;e<t.length;e++)t[e].removeEventListener("mouseenter",this.ticksCallbackMap[e].mouseEnter,!1),t[e].removeEventListener("mouseleave",this.ticksCallbackMap[e].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(t,e){void 0===this.eventToCallbackMap[t]&&(this.eventToCallbackMap[t]=[]),this.eventToCallbackMap[t].push(e)},_unbindNonQueryEventHandler:function(t,e){var n=this.eventToCallbackMap[t];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===e){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var t=Object.keys(this.eventToCallbackMap),e=0;e<t.length;e++){var n=t[e];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(t){var e=this,n=this.options.formatter(t?t.value[0]:this._state.value[0]),r=o(t||this._state,this.options.reversed);function o(t,n){return n?[100-t.percentage[0],e.options.range?100-t.percentage[1]:t.percentage[1]]:[t.percentage[0],t.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(t,e,n){var r=function(){var r=t._copyState(),o=e===t.handle1?r.value[0]:r.value[1],i=void 0;void 0!==n?(o=t.options.ticks[n],i=t.options.ticks_positions.length>0&&t.options.ticks_positions[n]||t._toPercentage(t.options.ticks[n])):i=t._toPercentage(o),r.value[0]=o,r.percentage[0]=i,t._setToolTipOnMouseOver(r),t._showTooltip()};return e.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(t,e){var n=function(){t._hideTooltip()};return e.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var t,e,n;if(t=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]=t[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),e=this.options.formatter(this._state.value[0]),isNaN(e)?this.handle1.setAttribute("aria-valuetext",e):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=t[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),e=this.options.formatter(this._state.value[1]),isNaN(e)?this.handle2.setAttribute("aria-valuetext",e):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 f=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[c]=-l/2+"px"),f=this.tickLabelContainer.offsetHeight;else for(p=0;p<this.tickLabelContainer.childNodes.length;p++)this.tickLabelContainer.childNodes[p].offsetHeight>f&&(f=this.tickLabelContainer.childNodes[p].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=f+"px")}for(var p=0;p<this.options.ticks.length;p++){var d=this.options.ticks_positions[p]||this._toPercentage(this.options.ticks[p]);this.options.reversed&&(d=100-d),this.ticks[p].style[this.stylePos]=d+"%",this._removeClass(this.ticks[p],"in-selection"),this.options.range?d>=t[0]&&d<=t[1]&&this._addClass(this.ticks[p],"in-selection"):("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.ticks[p],"in-selection"),this.tickLabels[p]&&(this.tickLabels[p].style[u]=l+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[p]?(this.tickLabels[p].style.position="absolute",this.tickLabels[p].style[this.stylePos]=d+"%",this.tickLabels[p].style[c]=-l/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[p].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[p].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[p],"label-in-selection label-is-selection"),this.options.range?d>=t[0]&&d<=t[1]&&(this._addClass(this.tickLabels[p],"label-in-selection"),(d===t[0]||t[1])&&this._addClass(this.tickLabels[p],"label-is-selection")):(("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.tickLabels[p],"label-in-selection"),d===t[0]&&this._addClass(this.tickLabels[p],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(t[1]+t[0])/2+"%";var h=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,h);var g=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,g),this.tooltip_min.style[this.stylePos]=t[0]+"%",this.tooltip_max.style[this.stylePos]=t[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=t[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(t[0],t[1])+"%",this.trackSelection.style.top=Math.min(t[0],t[1])+"%",this.trackSelection.style.height=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(t[0],t[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(t[0],t[1])+"%":this.trackSelection.style.left=Math.min(t[0],t[1])+"%",this.trackSelection.style.width=Math.abs(t[0]-t[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";var m=this.tooltip_min.getBoundingClientRect(),y=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?m.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=""):m.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(t,e){return this._isHighlightRange(t,e)?t>e?{start:e,size:t-e}:{start:t,size:e-t}:null},_isHighlightRange:function(t,e){return 0<=t&&t<=100&&0<=e&&e<=100},_resize:function(t){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},_mousedown:function(t){if(!this._state.enabled)return!1;t.preventDefault&&t.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var e=this._getPercentage(t);if(this.options.range){var n=Math.abs(this._state.percentage[0]-e),r=Math.abs(this._state.percentage[1]-e);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(e)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=e,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),t.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(t){this._mousedown(t)},_triggerFocusOnHandle:function(t){0===t&&this.handle1.focus(),1===t&&this.handle2.focus()},_keydown:function(t,e){if(!this._state.enabled)return!1;var n;switch(e.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[t]))&&(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[t]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=t,this.options.range){this._adjustPercentageForRangeSliders(u);var l=this._state.keyCtrl?this._state.value[0]:s,f=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,f))]}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(e),delete this._state.keyCtrl,!1}},_pauseEvent:function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1},_mousemove:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(t){void 0!==t.changedTouches&&t.preventDefault&&t.preventDefault()},_adjustPercentageForRangeSliders:function(t){if(this.options.range){var e=this._getNumDigitsAfterDecimalPlace(t);e=e?e-1:0;var n=this._applyToFixedAndParseFloat(t,e);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],e)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],e)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<t?(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])>t&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e,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(t,e){var n=0===t?0:100;this._state.percentage[t]!==n&&(e.data[t]=this._toValue(this._state.percentage[t]),e.data[t]=this._applyPrecision(e.data[t]))},_calculateValue:function(t){var e={};return this.options.range?(e.data=[this.options.min,this.options.max],this._setValues(0,e),this._setValues(1,e),t&&(e.data[0]=this._snapToClosestTick(e.data[0]),e.data[1]=this._snapToClosestTick(e.data[1]))):(e.data=this._toValue(this._state.percentage[0]),e.data=parseFloat(e.data),e.data=this._applyPrecision(e.data),t&&(e.data=this._snapToClosestTick(e.data))),e.data},_snapToClosestTick:function(t){for(var e=[t,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-t);r<=e[1]&&(e=[this.options.ticks[n],r])}return e[1]<=this.options.ticks_snap_bounds?e[0]:t},_applyPrecision:function(t){var e=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(t,e)},_getNumDigitsAfterDecimalPlace:function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},_applyToFixedAndParseFloat:function(t,e){var n=t.toFixed(e);return parseFloat(n)},_getPercentage:function(t){!this.touchCapable||"touchstart"!==t.type&&"touchmove"!==t.type&&"touchend"!==t.type||(t=t.changedTouches[0]);var e=t[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(e=-e);var n=e/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(t){if(isNaN(+t)){if(Array.isArray(t))return this._validateArray(t),t;throw new Error(r(t))}return+t},_validateArray:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("number"!=typeof n)throw new Error(r(n))}},_setDataVal:function(t){this.element.setAttribute("data-value",t),this.element.setAttribute("value",t),this.element.value=t},_trigger:function(e,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[e];if(r&&r.length)for(var o=0;o<r.length;o++)(0,r[o])(n);t&&this._triggerJQueryEvent(e,n)},_triggerJQueryEvent:function(t,e){var n={type:t,value:e};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(t,e){void 0!==t.textContent?t.textContent=e:void 0!==t.innerText&&(t.innerText=e)},_removeClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o],a=new RegExp("(?:\\s|^)"+i+"(?:\\s|$)");r=r.replace(a," ")}t.className=r.trim()},_addClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o];new RegExp("(?:\\s|^)"+i+"(?:\\s|$)").test(r)||(r+=" "+i)}t.className=r.trim()},_offsetLeft:function(t){return t.getBoundingClientRect().left},_offsetRight:function(t){return t.getBoundingClientRect().right},_offsetTop:function(t){for(var e=t.offsetTop;(t=t.offsetParent)&&!isNaN(t.offsetTop);)e+=t.offsetTop,"BODY"!==t.tagName&&(e-=t.scrollTop);return e},_offset:function(t){return{left:this._offsetLeft(t),right:this._offsetRight(t),top:this._offsetTop(t)}},_css:function(e,n,r){if(t)t.style(e,n,r);else{var o=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}));e.style[o]=r}},_toValue:function(t){return this.options.scale.toValue.apply(this,[t])},_toPercentage:function(t){return this.options.scale.toPercentage.apply(this,[t])},_setTooltipPosition:function(){var t=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var e,n="left"===(e=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";t.forEach(function(t){this._addClass(t,e),t.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?t.forEach(function(t){this._addClass(t,"bottom"),t.style.top="22px"}.bind(this)):t.forEach(function(t){this._addClass(t,"top"),t.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(t){for(var e=Math.abs(t-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var o=Math.abs(t-this.options.ticks[r]);o<e&&(e=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])])}},t&&t.fn&&(t.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),n="bootstrapSlider"):(t.bridget("slider",e),n="slider"),t.bridget("bootstrapSlider",e),t((function(){t("input[data-provide=slider]")[n]()})))}(t),e})?r.apply(e,o):r)||(t.exports=i)},function(t,e){t.exports=null},function(t,e,n){var r=n(123),o=n(202);n(124);function i(t){return null==t}function a(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||r.whiteList,t.onAttr=t.onAttr||r.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||r.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,this.options=t}a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onAttr,a=e.onIgnoreAttr,s=e.safeAttrValue;return o(t,(function(t,e,o,c,u){var l=n[o],f=!1;if(!0===l?f=l:"function"==typeof l?f=l(c):l instanceof RegExp&&(f=l.test(c)),!0!==f&&(f=!1),c=s(o,c)){var p,d={position:e,sourcePosition:t,source:u,isWhite:f};return f?i(p=r(o,c,d))?o+":"+c:p:i(p=a(o,c,d))?void 0:p}}))},t.exports=a},function(t,e,n){var r=n(124);t.exports=function(t,e){";"!==(t=r.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(t.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 f=e(i,s.length,u,l,n);f&&(s+=f+"; ")}}}i=a+1}for(;a<n;a++){var u=t[a];if("/"===u&&"*"===t[a+1]){var l=t.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(t,e,n){var r=n(96).FilterCSS,o=n(122),i=n(125),a=i.parseTag,s=i.parseAttr,c=n(97);function u(t){return null==t}function l(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=o.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map((function(t){return t.toLowerCase()})):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=o.whiteList,t.onTag=t.onTag||o.onTag,t.onTagAttr=t.onTagAttr||o.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||o.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||o.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||o.safeAttrValue,t.escapeHtml=t.escapeHtml||o.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}l.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onTag,i=e.onIgnoreTag,l=e.onTagAttr,f=e.onIgnoreTagAttr,p=e.safeAttrValue,d=e.escapeHtml,h=this.cssFilter;e.stripBlankChar&&(t=o.stripBlankChar(t)),e.allowCommentTag||(t=o.stripCommentTag(t));var g=!1;e.stripIgnoreTagBody&&(g=o.StripTagBody(e.stripIgnoreTagBody,i),i=g.onIgnoreTag);var m=a(t,(function(t,e,o,a,g){var m={sourcePosition:t,position:e,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(n,o)},y=r(o,a,m);if(!u(y))return y;if(m.isWhite){if(m.isClosing)return"</"+o+">";var v=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=c.trim(t.slice(0,-1))),{html:t,closing:n}}(a),b=n[o],w=s(v.html,(function(t,e){var n=-1!==c.indexOf(b,t),r=l(o,t,e,n);return u(r)?n?(e=p(o,t,e,h))?t+'="'+e+'"':t:u(r=f(o,t,e,n))?void 0:r:r}));return a="<"+o,w&&(a+=" "+w),v.closing&&(a+=" /"),a+=">"}return u(y=i(o,a,m))?d(a):y}),d);return g&&(m=g.remove(m)),m},t.exports=l},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(116);t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(64),a=n(37),s=n(50),c=n(38),u=n(32),l=n(21),f=n(42),p=n(47),d=n(17),h=n(222),g=p("draft_tree_data_support"),m=g?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(t,e,n){var o=t.getCurrentContent(),s=t.getSelection(),c=u.removeRange(o,s,"backward"),p=c.getSelectionAfter(),d=u.splitBlock(c,p),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),w=a.create({entity:e}),_={key:f(),type:"atomic",text:n,characterList:y(v(w,n.length))},O={key:f(),type:"unstyled"};g&&(_=r({},_,{nextSibling:O.key}),O=r({},O,{prevSibling:_.key}));var S=[new m(_),new m(O)],E=i.createFromArray(S),k=u.replaceWithFragment(b,h,E),j=k.merge({selectionBefore:s,selectionAfter:k.getSelectionAfter().set("hasFocus",!0)});return l.push(t,j,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,e,s,r)}else{var c=u.removeRange(i,n,"backward"),f=c.getSelectionAfter(),p=c.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=h(c,e,p,"before");else if(f.getEndOffset()===p.getLength())o=h(c,e,p,"after");else{var d=u.splitBlock(c,f),g=d.getSelectionAfter(),m=d.getBlockForKey(g.getFocusKey());o=h(d,e,m,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(t,y,"move-block")}};t.exports=b},function(t,e,n){"use strict";var r=n(37),o=n(17).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===u})).concat(o([[u,a.get(u)]])).map((function(t,e){var o,a;s===u?(o=c,a=l):(o=e===s?c:0,a=e===u?l:t.getLength());for(var f,p=t.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=i},function(t,e,n){"use strict";var r=n(210),o=n(17);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=i.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(t,e){var o=e===a?s:0,i=e===c?u:t.getLength();return r(t,o,i,n)}));return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(37);t.exports=function(t,e,n,o){for(var i=e,a=t.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},function(t,e,n){"use strict";var r=n(212),o=n(213),i=n(18);function a(t,e,n,a,s,c,u){var l=n.getStartOffset(),f=n.getEndOffset(),p=t.__get(s).getMutability(),d=u?l:f;if("MUTABLE"===p)return n;var h=o(e,s).filter((function(t){return d<=t.end&&d>=t.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?f=g.end:l=g.start);var m=r.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}t.exports=function(t,e,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=e.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(t,e,l,o,c,!0,!0);else if(c&&u){var f=a(t,e,l,o,c,!1,!0),p=a(t,n,l,o,u,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var d=a(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(t,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(t,e,n){"use strict";t.exports={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map((function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(t<(a=s+i[l].length)&&s<e)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}}},function(t,e,n){"use strict";var r=n(18);t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){n.push({start:t,end:e})})),n.length||r(!1),n}},function(t,e,n){"use strict";var r=n(64),o=n(38),i=n(17),a=n(128),s=n(18),c=n(126),u=i.List,l=function(t,e,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(),f=o,p=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 g=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return t.merge({blockMap:n.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})},f=function(t,e,n,i,a,s){var c=n.first()instanceof o,l=[],f=i.size,p=n.get(a),d=i.first(),h=i.last(),g=h.getLength(),m=h.getKey(),y=c&&(!p.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(t,e){e===a?(y?l.push(t):l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),s=n.first();return t.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?t.getType():s.getType(),data:s.getData()})}(t,s,i)),i.slice(y?0:1,f-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),s=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(t,s,i))):l.push(t)}));var v=r.createFromArray(l);return c&&(v=function(t,e,n,r){return t.withMutations((function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=c[c.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),c.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var f=t.get(s).getChildKeys(),p=f.indexOf(o)+1,d=f.toArray();d.splice.apply(d,[p,0].concat(c)),e.setIn([s,"children"],u(d))}}))}(v,0,p,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})};t.exports=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var i=t.getBlockMap(),a=c(n),u=e.getStartKey(),p=e.getStartOffset(),d=i.get(u);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1)),1===a.size?l(t,e,i,a.first(),u,p,r):f(t,e,i,a,u,p)}},function(t,e,n){"use strict";var r=n(17),o=n(128),i=n(18),a=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return t;var c=t.getBlockMap(),u=e.getStartKey(),l=e.getStartOffset(),f=c.get(u),p=f.getText(),d=f.merge({text:p.slice(0,l)+n+p.slice(l,f.getLength()),characterList:o(f.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},function(t,e,n){"use strict";var r=n(38),o=n(130),i=n(17),a=(i.List,i.Map),s=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},u=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},f=function(t,e,n,r){return t.withMutations((function(i){if(s(e.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),s(n.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),c(e.getKey(),r).forEach((function(t){return s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),s(e.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r)})})),s(n.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:l(t,i,r)})})),s(n.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(t){s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),function(t,e){var n=[];if(!t)return n;for(var r=o(t,e);r&&e.get(r);){var i=e.get(r);n.push(r),r=i.getParentKey()?o(i,e):null}return n}(n,r).forEach((function(t){return s(t,i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(n.getKey(),i,(function(t){return t.merge({prevSibling:a})})),s(a,i,(function(t){return t.merge({nextSibling:n.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,i,(function(t){return t.merge({parent:p})}))})),null!=p){var d=t.get(p);s(p,i,(function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),i,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))},p=function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),s=e.getStartKey(),u=e.getStartOffset(),l=e.getEndKey(),d=e.getEndOffset(),h=i.get(s),g=i.get(l),m=h instanceof r,y=[];if(m){var v=g.getChildKeys(),b=c(l,i);g.getNextSiblingKey()&&(y=y.concat(b)),v.isEmpty()||(y=y.concat(b.concat([l]))),y=y.concat(c(o(g,i),i))}n=h===g?p(h.getCharacterList(),u,d):h.getCharacterList().slice(0,u).concat(g.getCharacterList().slice(d));var w=h.merge({text:h.getText().slice(0,u)+g.getText().slice(d),characterList:n}),_=m&&0===u&&0===d&&g.getParentKey()===s&&null==g.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===l})).filter((function(t,e){return-1===y.indexOf(e)})).concat(a([[l,null]])).map((function(t,e){return e===s?w:null})),O=i.merge(_).filter((function(t){return!!t}));return m&&h!==g&&(O=f(O,h,g,i)),t.merge({blockMap:O,selectionBefore:e,selectionAfter:e.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},function(t,e,n){"use strict";var r=n(38),o=n(42),i=n(17),a=n(18),s=n(129),c=i.List,u=i.Map,l=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.getBlockMap(),f=i.get(n),p=f.getText();if(!p){var d=f.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var h=e.getAnchorOffset(),g=f.getCharacterList(),m=o(),y=f instanceof r,v=f.merge({text:p.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:m,text:p.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil((function(t){return t===f})),_=i.toSeq().skipUntil((function(t){return t===f})).rest(),O=w.concat([[n,v],[m,b]],_).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),O=function(t,e,n){return t.withMutations((function(t){var r=e.getKey(),o=n.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:c(i)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:o})})),l(r,t,(function(t){return t.merge({nextSibling:o})})),l(o,t,(function(t){return t.merge({prevSibling:r})}))}))}(O,v,b)),t.merge({blockMap:O,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(65),i=n(131),a=n(17),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(t,e,n){var r=e.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(e,t):s(c(null,r)),u=e.getCharacterList();return o(a,g,l,(function(t,e){i.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:h(u.slice(t,e).toList(),t)}))})),s(i)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},n,{leaves:null!=e?s(Array.isArray(e)?e:i(e)).map((function(t){return f(t)})):null}))}};function h(t,e){var n=[],r=t.map((function(t){return t.getStyle()})).toList();return o(r,g,l,(function(t,r){n.push(new f({start:t+e,end:r+e}))})),s(n)}function g(t,e){return t===e}t.exports=d},function(t,e,n){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},function(t,e,n){"use strict";var r,o=n(221),i=n(17),a=n(33),s=i.OrderedMap,c={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),c=n.valueSeq().map((function(t){return a(r).getDirection(t.getText())})),u=s(n.keySeq().zip(c));return null!=e&&i.is(e,u)?e:u}};t.exports=c},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(99),i=n(75),a=n(18),s=function(){function t(t){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},function(t,e,n){"use strict";var r=n(38),o=n(130),i=n(17),a=n(18),s=i.OrderedMap,c=i.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),s=n.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return t.withMutations((function(t){u(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),u(p,t,(function(t){return t.merge({nextSibling:f})})),u(f,t,(function(t){return t.merge({prevSibling:p})})),u(h,t,(function(t){return t.merge({prevSibling:a})})),u(g,t,(function(t){return t.merge({nextSibling:a})})),u(d,t,(function(t){var e=t.getChildKeys(),n=e.indexOf(s),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:c(o)})})),u(a,t,(function(t){return t.merge({nextSibling:h,prevSibling:g,parent:d})}))}))};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=e.getKey();u===c&&a(!1);var f=t.getBlockMap(),p=e instanceof r,d=[e],h=f.delete(u);p&&(d=[],h=f.withMutations((function(t){var n=e.getNextSiblingKey(),r=o(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===u})).takeWhile((function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,a=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||a)})).forEach((function(e){d.push(e),t.delete(e.getKey())}))})));var g=h.toSeq().takeUntil((function(t){return t===n})),m=h.toSeq().skipUntil((function(t){return t===n})).skip(1),y=d.map((function(t){return[t.getKey(),t]})),v=s();if("before"===i){var b=t.getBlockBefore(c);b&&b.getKey()===e.getKey()&&a(!1),v=g.concat([].concat(y,[[c,n]]),m).toOrderedMap()}else if("after"===i){var w=t.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(y),m).toOrderedMap()}return t.merge({blockMap:l(v,e,n,i,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},function(t,e,n){"use strict";var r=n(17).List,o=function(){function t(t){var e,n,r;r=void 0,(n="_decorators")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(t,(function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(!function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)}),e)})),r(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},function(t,e,n){"use strict";(function(e){var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var u=n(100),l=n(134),f=n(225),p=n(233),d=n(250),h=n(253),g=n(288),m=n(289),y=n(146),v=n(21),b=n(0),w=n(103),_=n(79),O=n(34),S=n(51),E=n(42),k=n(162),j=n(80),M=n(47),C=n(18),x=n(66),D=n(33),T=O.isBrowser("IE"),I=!T,L={edit:h,composite:f,drag:d,cut:null,render:null},N=!1,A=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),P=function(t){function n(e){var n;return s(a(n=t.call(this,e)||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(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null})),s(a(n),"focus",(function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=_.getScrollParent(o),a=t||j(i),s=a.x,c=a.y;x(o)||C(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(e,e.getSelection()))}})),s(a(n),"blur",(function(){var t=n.editor;t&&(x(t)||C(!1),t.blur())})),s(a(n),"setMode",(function(t){var e=n.props,r=e.onPaste,o=e.onCut,a=e.onCopy,s=i({},L.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},L,{edit:s});n._handler=c[t]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(t){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(t)}))})),s(a(n),"setClipboard",(function(t){n._clipboard=t})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(t){n._latestEditorState=t,n.props.onChange(t)})),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=e.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.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,t);var r=n.prototype;return r._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(g?g((function(){return r(e,n)})):r(e,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(m,t)}return null},r._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},r.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleFn,s=t.customStyleMap,c=t.editorState,u=t.preventScroll,f=t.readOnly,d=t.textAlignment,h=t.textDirectionality,g=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),m=this.props.role||"textbox",y="combobox"===m?!!this.props.ariaExpanded:null,v={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"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:f?null:m,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(A,{editor:this,editorState:c}),b.createElement(p,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!N&&M("draft_ods_enabled")&&(N=!0,y.initODS()),this.setMode("edit"),T&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):e.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}),t.exports=P}).call(this,n(49))},function(t,e,n){"use strict";var r=n(226),o=n(32),i=n(45),a=n(21),s=n(78),c=n(34),u=n(137),l=n(139),f=n(140),p=n(101),d=n(33),h=c.isBrowser("IE"),g=!1,m=!1,y=null;var v={onCompositionStart:function(t){m=!0,function(t){y||(y=new r(l(t))).start()}(t)},onCompositionEnd:function(t){g=!1,m=!1,setTimeout((function(){g||v.resolveComposition(t)}),20)},onSelect:u,onKeyDown:function(t,e){if(!m)return v.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!m){var e=d(y).stopAndFlushMutations();y=null,g=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach((function(t,e){var s=i.decode(e),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,f=n.getBlockTree(c).getIn([u,"leaves",l]),d=f.start,h=f.end,g=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),m=p(r,g),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,g,t,y,m),n=a.set(n,{currentContent:r})}));var s=f(n,l(t)).selectionState;t.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);t.update(a.push(c,r,"insert-characters"))}else t.update(n)}}};t.exports=v},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(34),i=n(76),a=n(136),s=n(17),c=n(18),u=n(33),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function t(t){var e=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=t,this.mutations=l();var n=a(t);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||c(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=u(i(t.target));this.mutations=this.mutations.set(n,e)}},t}();t.exports=d},function(t,e,n){"use strict";var r=n(228),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),c=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[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};t.exports=u},function(t,e,n){var r;!function(o,i){"use strict";var a="model",s="name",c="type",u="vendor",l="version",f="mobile",p="tablet",d="smarttv",h=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},g=function(t,e){return"string"==typeof t&&-1!==m(e).indexOf(m(t))},m=function(t){return t.toLowerCase()},y=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},v=function(t,e){for(var n,r,o,i,a,s,c=0;c<e.length&&!a;){var u=e[c],l=e[c+1];for(n=r=0;n<u.length&&!a&&u[n];)if(a=u[n++].exec(t))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(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(g(e[n][r],t))return"?"===n?void 0:n}else if(g(e[n],t))return"?"===n?void 0:n;return t},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",m]],[/((?: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/,"",m]],[/(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",m]]],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,p]],[/\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,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[u,"Apple"],[c,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,p]],[/(macintosh);/i],[a,[u,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,f]],[/\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,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,p]],[/; (\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,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,f]],[/\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,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,p]],[/(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,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,f]],[/(pixel c)\b/i],[a,[u,"Google"],[c,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,f]],[/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,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,f]],[/(nexus 9)/i],[a,[u,"HTC"],[c,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,f]],[/(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,f]],[/(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,p]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,f]],[/(u304aa)/i],[a,[u,"AT&T"],[c,f]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,f]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,p]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,p]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,p]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,p]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,p]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,f]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,f]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,p]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,p]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,f]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,p]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,p]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,p]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,p]],[/(sprint) (\w+)/i],[u,a,[c,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,f]],[/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,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,f]],[/(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(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof O))return new O(t,e).getResult();var n=void 0!==o&&o.navigator?o.navigator:void 0,r=t||(n&&n.userAgent?n.userAgent:""),i=n&&n.userAgentData?n.userAgentData:void 0,u=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(_,e):_,d=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,v.call(e,r,u.browser),e.major="string"==typeof(t=e[l])?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&n&&n.brave&&"function"==typeof n.brave.isBrave&&(e[s]="Brave"),e},this.getCPU=function(){var t={architecture:void 0};return v.call(t,r,u.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return v.call(t,r,u.device),d&&!t[c]&&i&&i.mobile&&(t[c]=f),d&&"Macintosh"==t[a]&&n&&void 0!==n.standalone&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[a]="iPad",t[c]=p),t},this.getEngine=function(){var t={name:void 0,version:void 0};return v.call(t,r,u.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return v.call(t,r,u.os),d&&!t[s]&&i&&"Unknown"!=i.platform&&(t[s]=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),t},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(t){return r="string"==typeof t&&t.length>350?y(t,350):t,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",f,d,p,"wearable","embedded"]),O.ENGINE=O.OS=h([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=O),e.UAParser=O):n(229)?void 0===(r=function(){return O}.call(e,n,e,t))||(t.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(t){E.setUA(t);var e=E.getResult();for(var n in e)S.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";var r=n(18),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(t,e){var n=t.split(i);return n.length>1?n.some((function(t){return w.contains(t,e)})):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],e);var o=n[0],i=n[1];return g(o)&&g(i)||r(!1),l(">="+o,e)&&l("<="+i,e)}(t=n[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(o),i=d(t),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return f(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return p(r,s);case">":return function(t,e){return 1===b(t,e)}(r,s);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return p(t,n)&&f(t,r)}(r,s);default:return function(t,e){return 0===b(t,e)}(r,s)}}function f(t,e){return-1===b(t,e)}function p(t,e){var n=b(t,e);return 1===n||0===n}function d(t){var e=t.split(o),n=e[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function h(t){return!isNaN(t)&&isFinite(t)}function g(t){return!d(t).modifier}function m(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function y(t,e){var n=t.match(c)[1],r=e.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?v(o,i):v(t,e)}function v(t,e){return typeof t!=typeof e&&r(!1),t>e?1:t<e?-1:0}function b(t,e){for(var n=function(t,e){m(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return m(e,t.length),[t,e]}(t,e),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(t,e){return u(t.trim(),e.trim())}};t.exports=w},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!t)return null;var o={};for(var i in t)r.call(t,i)&&(o[i]=e.call(n,t[i],i,t));return o}},function(t,e,n){"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},function(t,e,n){"use strict";var r=n(47)("draft_tree_data_support");t.exports=n(r?234:248)},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(235),a=n(45),s=n(0),c=n(33),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,u=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,d=t.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),m=f.mustForceSelection(),y=f.getDecorator(),v=c(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var _=w.getKey(),O={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:p,editorState:f,forceSelection:m,selection:g,block:w,direction:d||v.get(_),tree:f.getBlockTree(_)},S=(e.get(w.getType())||e.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=[],j=0;j<b.length;){var M=b[j];if(M.wrapperTemplate){var C=[];do{C.push(b[j].block),j++}while(j<b.length&&b[j].wrapperTemplate===M.wrapperTemplate);var x=s.cloneElement(M.wrapperTemplate,{key:M.key+"-wrap","data-offset-key":M.offsetKey},C);k.push(x)}else k.push(M.block),j++}return s.createElement("div",{"data-contents":"true"},k)},r}(s.Component);t.exports=u},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=n(236),u=n(45),l=n(0),f=n(103),p=n(79),d=n(148),h=n(80),g=n(149),m=n(17),y=n(18),v=n(66),b=(m.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),w=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},_=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},O=function(t,e,n,r,o,i){var s={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:i},c=r(t);return c&&(s.className=c),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},S=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(i(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",l.createRef()),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var m=r.prototype;return m.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection;return i||a},m.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=p.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-g().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&&f.setTop(o,f.getTop(o)+r+10)}}}},m.render=function(){var t=this,e=this.props,n=e.block,i=e.blockRenderMap,s=e.blockRendererFn,f=e.blockStyleFn,p=e.contentState,d=e.decorator,h=e.editorKey,g=e.editorState,m=e.customStyleFn,y=e.customStyleMap,v=e.direction,S=e.forceSelection,E=e.selection,k=e.tree,j=null;n.children.size&&(j=n.children.reduce((function(e,n){var o=u.encode(n,0,0),c=p.getBlockForKey(n),d=_(c,s),m=d.CustomComponent||r,y=w(c,i),v=y.Element,b=y.wrapperTemplate,S=O(c,h,o,f,d,null),E=a({},t.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return e.push(l.createElement(v,S,l.createElement(m,E))),!b||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(c,p)||function(t,e,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 f=s.value;if(f.type!==e)break;r.push(f)}}catch(t){i=!0,a=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(l.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":u.encode(d,0,0)},p))}(b,v,e),e}),[]));var M=n.getKey(),C=u.encode(M,0,0),x=_(n,s),D=x.CustomComponent,T=null!=D?l.createElement(D,o({},this.props,{tree:g.getBlockTree(M),blockProps:x.customProps,offsetKey:C,block:n})):l.createElement(c,{block:n,children:j,contentState:p,customStyleFn:m,customStyleMap:y,decorator:d,direction:v,forceSelection:S,hasSelection:b(E,M),selection:E,tree:k});if(n.getParentKey())return T;var I=w(n,i).Element,L=O(n,h,C,f,x,this.wrapperRef);return l.createElement(I,L,T)},r}(l.Component);t.exports=S},function(t,e,n){"use strict";var r=n(237),o=n(144),i=n(45),a=n(17),s=n(0),c=n(51),u=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,m=e.getKey(),y=e.getText(),v=g.size-1,b=this.props.children||g.map((function(t,c){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,_=b.map((function(t,n){var r=i.encode(m,c,n),l=t.get("start"),f=t.get("end");return s.createElement(o,{key:r,offsetKey:r,block:e,start:l,selection:d?h:null,forceSelection:p,text:y.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===w})})).toArray();return g&&l?s.createElement(r,{block:e,children:_,contentState:n,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:y,key:c}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(m,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},a}(s.Component));t.exports=u},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(45),a=n(0),s=n(99),c=n(75),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.render=function(){var t=this.props,e=t.block,n=t.children,r=t.contentState,u=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,d=t.text,h=e.getKey(),g=p.get("leaves"),m=u.getComponentForKey(l),y=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),f);return a.createElement(m,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:e.getEntityAt(p.get("start")),offsetKey:v}),n)},r}(a.Component);t.exports=u},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(0),a=n(34),s=n(18),c=n(53),u=a.isBrowser("IE <= 11");var l=function(t){var e,n;function a(e){var n;return o(r(n=t.call(this,e)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;c(e)||s(!1);var r=e;return n?!function(t){return u?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var t=this;return""===this.props.children?this._forceFlag?function(t){return u?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})}((function(e){return t._node=e})):function(t){return u?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);t.exports=l},function(t,e,n){"use strict";var r=n(146),o=n(138),i=n(34),a=n(102),s=n(147),c=n(77),u=n(18),l=n(53),f=i.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var n=function t(e,n){var r=void 0!==n?n(e):[];if(e.nodeType===Node.TEXT_NODE){var o=e.textContent.length;return c(e).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=e.childNodes,s=0;s<a.length;s++)i.appendChild(t(a[s],n));return i}(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(t,e){for(var n=t,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return p(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function h(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function g(t,e,n,r){var i=s();if(t.extend&&null!=e&&a(i,e)){n>h(e)&&o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:d(e,(function(e){var n=[];return e===i&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:c,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var u=t.getRangeAt(0);u.setEnd(e,n),t.addRange(u.cloneRange())}}function m(t,e,n,i){var a=c(e).createRange();if(n>h(e)&&(o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(e,n),f)try{t.addRange(a)}catch(t){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,n,r,o){var i=c(e);if(a(i.documentElement,e)){var s=i.defaultView.getSelection(),u=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),d=t.getIsBackward();if(!s.extend&&d){var h=u,y=l;u=f,l=p,f=h,p=y,d=!1}var v=u===n&&r<=l&&o>=l,b=f===n&&r<=p&&o>=p;if(v&&b)return s.removeAllRanges(),m(s,e,l-r,t),void g(s,e,p-r,t);if(d){if(b&&(s.removeAllRanges(),m(s,e,p-r,t)),v){var w=s.focusNode,_=s.focusOffset;s.removeAllRanges(),m(s,e,l-r,t),g(s,w,_,t)}}else v&&(s.removeAllRanges(),m(s,e,l-r,t)),b&&g(s,e,p-r,t)}},addFocusToSelection:g}},function(t,e,n){"use strict";var r=n(241);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},function(t,e,n){"use strict";var r=n(243),o=n(244);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):i(t.style&&t.style[r(e)])}},function(t,e,n){"use strict";var r=/-(.)/g;t.exports=function(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}},function(t,e,n){"use strict";var r=/([A-Z])/g;t.exports=function(t){return t.replace(r,"-$1").toLowerCase()}},function(t,e,n){"use strict";var r=n(102);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},function(t,e,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:r||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},function(t,e,n){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},function(t,e,n){"use strict";var r=n(52);function o(){return(o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(150),c=n(45),u=n(0),l=n(51),f=n(249),p=n(33),d=function(t,e,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,h=t.editorState,g=t.editorKey,m=t.preventScroll,y=t.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),_=h.getDecorator(),O=p(h.getDirectionMap()),S=v.getBlocksAsArray(),E=[],k=null,j=null,M=0;M<S.length;M++){var C=S[M],x=C.getKey(),D=C.getType(),T=n(C),I=void 0,L=void 0,N=void 0;T&&(I=T.component,L=T.props,N=T.editable);var A=y||O.get(x),P=c.encode(x,0,0),R={contentState:v,block:C,blockProps:L,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:_,direction:A,forceSelection:w,offsetKey:P,preventScroll:m,selection:b,tree:h.getBlockTree(x)},z=e.get(D)||e.get("unstyled"),B=z.wrapper,F=z.element||e.get("unstyled").element,U=C.getDepth(),H="";if(r&&(H=r(C)),"li"===F)H=f(H,d(D,U,j!==B||null===k||U>k,A));var K=I||s,Y={className:H,"data-block":!0,"data-editor":g,"data-offset-key":P,key:x};void 0!==N&&(Y=i({},Y,{contentEditable:N,suppressContentEditableWarning:!0}));var V=u.createElement(F,Y,u.createElement(K,o({},R,{key:x})));E.push({block:V,wrapperTemplate:B,key:x,offsetKey:P}),k=B?C.getDepth():null,j=B}for(var q=[],W=0;W<E.length;){var G=E[W];if(G.wrapperTemplate){var Q=[];do{Q.push(E[W].block),W++}while(W<E.length&&E[W].wrapperTemplate===G.wrapperTemplate);var Z=u.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Q);q.push(Z)}else q.push(G.block),W++}return u.createElement("div",{"data-contents":"true"},q)},r}(u.Component);t.exports=h},function(t,e,n){"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}},function(t,e,n){"use strict";var r=n(151),o=n(32),i=n(21),a=n(76),s=n(77),c=n(153),u=n(142),l=n(136),f=n(81),p=n(33);var d={onDragEnd:function(t){t.exitCurrentMode(),h(t)},onDrop:function(t,e){var n=new r(e.nativeEvent.dataTransfer),l=t._latestEditorState,d=function(t,e){var n=null,r=null,o=s(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=p(n),r=p(r);var c=p(a(n));return u(e,c,r,c,r)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=d){var m=n.getFiles();if(m.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(d,m)))return;c(m,(function(e){e&&t.update(g(l,d,e))}))}else{var y=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(d,n,y))||(t._internalDrag?t.update(function(t,e){var n=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(l,d)):t.update(g(l,d,n.getText()))),h(t)}}}};function h(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function g(t,e,n){var r=o.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,r,"insert-fragment")}t.exports=d},function(t,e,n){"use strict";var r={isImage:function(t){return"image"===o(t)[0]},isJpeg:function(t){var e=o(t);return r.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function o(t){return t.split("/")}t.exports=r},function(t,e,n){"use strict";var r=n(18);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o<e;o++)n[o]=t[o];return n}(t):[t]}},function(t,e,n){"use strict";var r=n(34),o=n(254),i=n(258),a=n(259),s=n(260),c=n(261),u=n(263),l=n(264),f=n(265),p=n(266),d=n(267),h=n(281),g=n(137),m=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=m||y?g:function(t){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:g,onMouseUp:v,onKeyUp:v};t.exports=b},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(34),a=n(101),s=n(81),c=n(255),u=n(33),l=n(256),f=i.isBrowser("Firefox");function p(t,e,n,i,a){var s=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return o.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,m=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(t._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=m.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(t){var e=t[0],n=t[1],o=e.get("start"),i=o+(o>=d?r.length:0),a=e.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(y||(g=r,y=f&&("'"==g||"/"==g)),y||(y=u(m.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),y)return e.preventDefault(),m=o.set(m,{forceSelection:!0}),void t.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),t._pendingStateFromBeforeInput=m,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some((function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return o===e&&(i=!0,!0)}))})),i}},function(t,e,n){"use strict";(function(e){n(257),t.exports=e.setImmediate}).call(this,n(49))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return u[c]=o,r(c),c++},p.clearImmediate=d}function d(t){delete u[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{d(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(49),n(119))},function(t,e,n){"use strict";var r=n(21),o=n(102),i=n(147);t.exports=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=t.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(r.acceptSelection(c,l))}}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},function(t,e,n){"use strict";var r=n(154);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(79),a=n(154),s=n(80),c=n(262);t.exports=function(t,e){var n,u=t._latestEditorState,l=u.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(c(f)){var p=f;n=s(i.getScrollParent(p))}var d=a(u);t.setClipboard(d),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(u))}),0)}}},function(t,e,n){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},function(t,e,n){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},function(t,e,n){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},function(t,e,n){"use strict";var r=n(21),o=n(34);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(r.forceSelection(n,a)):t.update(r.acceptSelection(n,a))}}},function(t,e,n){"use strict";var r=n(32),o=n(45),i=n(21),a=n(34),s=n(143).notEmptyKey,c=n(76),u=n(155),l=n(33),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=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 g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var m=a.textContent,y=t._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,j=y.getCurrentContent(),M=j.getBlockForKey(w),C=M.getText().slice(E,k);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==C){var x,D,T,I,L=y.getSelection(),N=L.merge({anchorOffset:E,focusOffset:k,isBackward:!1}),A=M.getEntityAt(E),P=s(A)?j.getEntity(A):null,R="MUTABLE"===(null!=P?P.getMutability():null),z=R?"spellcheck-change":"apply-entity",B=r.replaceText(j,N,m,M.getInlineStyleAt(E),R?M.getEntityAt(E):null);if(f)x=n.anchorOffset,D=n.focusOffset,I=(T=E+Math.min(x,D))+Math.abs(x-D),x=T,D=I;else{var F=m.length-C.length;T=L.getStartOffset(),I=L.getEndOffset(),x=p?I+F:T,D=I+F}var U=B.merge({selectionBefore:j.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:x,focusOffset:D})});t.update(i.push(y,U,z))}else{var H=e.nativeEvent.inputType;if(H){var K=function(t,e){switch(t){case"deleteContentBackward":return u(e)}return e}(H,y);if(K!==y)return t.restoreEditorDOM(),void t.update(K)}}}}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(106),a=n(78),s=n(269),c=n(34),u=n(81),l=n(270),f=n(272),p=n(274),d=n(275),h=n(276),g=n(277),m=n(155),y=n(278),v=n(279),b=n(280),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function c(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&u(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.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(e)&&e.preventDefault()}var O=t.props.keyBindingFn(e);if(null!=O&&""!==O)if("undo"!==O){if(e.preventDefault(),!t.props.handleKeyCommand||!u(t.props.handleKeyCommand(O,i,e.timeStamp))){var S=function(t,e,n){switch(t){case"redo":return o.redo(e);case"delete":return y(e);case"delete-word":return p(e);case"backspace":return m(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,n);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return h(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(O,i,e);S!==i&&t.update(S)}}else b(e,i,t.update);else if(n===a.SPACE&&_&&w(e)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,E,"insert-characters"))}}},function(t,e,n){"use strict";var r=n(78);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(72),a=n(33),s=null,c={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=e.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var f=e.getKeyAfter(u);if(null==f)return t;c=n.set("focusKey",f).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(e,c);var p=r.removeRange(e,c,"forward");return p===e?t:o.push(t,p,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return o.push(t,e,"insert-fragment")}};t.exports=c},function(t,e,n){"use strict";var r=n(21),o=n(271),i=n(141),a=n(104),s=n(67);t.exports=function(t,e){var n=s(t,(function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===t.getCurrentContent()?t:r.push(t,n,"remove-range")}},function(t,e,n){"use strict";var r=n(54),o=n(77),i=n(156),a=n(18);function s(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var s=t[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<e&&i-r<e}function c(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=o(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.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}(e),u=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);s(i(t),n)&&(u=t.startContainer,l=t.startOffset,u.parentNode||a(!1),t.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=l-1;;){for(var d=f.nodeValue,h=p;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(t.setStart(f,h),!s(i(t),n))break;u=f,l=h}if(-1===h||0===f.childNodes.length)break;p=c(f=f.childNodes[h])}return t.setStart(u,l),t}},function(t,e,n){"use strict";var r=n(157),o=n(21),i=n(104),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},function(t,e,n){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(t,e,n){"use strict";var r=n(157),o=n(21),i=n(158),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},function(t,e,n){"use strict";var r=n(32),o=n(21);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(t,e,n){"use strict";var r=n(21),o=n(54),i=n(158),a=n(67);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(t,s?o.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(t,e,n){"use strict";var r=n(32),o=n(21),i=n(72);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,s,c=e.getAnchorKey(),u=t.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return t;n===l?(a=e.set("anchorOffset",n-1),s=e):s=(a=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),p=r.removeRange(u,a,"backward"),d=p.getSelectionAfter(),h=d.getAnchorOffset()-1,g=d.merge({anchorOffset:h,focusOffset:h}),m=r.replaceWithFragment(p,g,f),y=o.push(t,m,"insert-fragment");return o.acceptSelection(y,s)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n){var o=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(t,e,n){"use strict";var r=n(64),o=n(37),i=n(151),a=n(32),s=n(282),c=n(21),u=n(161),l=n(101),f=n(153),p=n(81),d=n(287);function h(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var g=n.getFiles(),m=n.getText();if(g.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;return void f(g,(function(e){if(e=e||m){var n=t._latestEditorState,i=d(e),f=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=s.processText(i,f,p),g=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);t.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=t._latestEditorState;if(t.props.formatPastedText){var _=t.props.formatPastedText(v,b);v=_.text,b=_.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!t.props.stripPastedStyles){var O,S=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(O=b)||void 0===O?void 0:O.indexOf(t.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void t.update(h(t._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,n){return e.getText()===t[n]}))}(y,S))return void t.update(h(t._latestEditorState,S));if(b){var E=s.processHTML(b,t.props.blockRenderMap);if(E){var k=E.contentBlocks,j=E.entityMap;if(k){var M=r.createFromArray(k);return void t.update(h(t._latestEditorState,M,j))}}}t.setClipboard(null)}if(y.length){var C=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),x=u.getCurrentBlockType(w),D=s.processText(y,C,x),T=r.createFromArray(D);t.update(h(t._latestEditorState,T))}}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(50),i=n(38),a=n(159),s=n(42),c=n(160),u=n(47),l=n(17),f=n(133),p=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,m={processHTML:function(t,e){return a(t,c,e)},processText:function(t,e,n){return t.reduce((function(t,o,i){o=f(o);var a=s(),c={key:a,type:n,text:o,characterList:p(d(e,o.length))};if(h&&0!==i){var u=i-1;c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},c,{prevSibling:(t[u]=t[u].merge({nextSibling:a})).getKey()})}return t.push(new g(c)),t}),[])}};t.exports=m},function(t,e,n){"use strict";var r=function(){function t(t){var e,n,r;r=void 0,(n="_uri")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=r},function(t,e,n){"use strict";var r=n(53);t.exports=function(t){return!(!t||!t.ownerDocument)&&(r(t)&&"A"===t.nodeName)}},function(t,e,n){"use strict";var r=n(53);t.exports=function(t){return!(!t||!t.ownerDocument)&&(r(t)&&"IMG"===t.nodeName)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat([[i,a.get(i)]]).map((function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)}));return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=/\r\n?|\n/g;t.exports=function(t){return t.split(r)}},function(t,e,n){"use strict";var r=n(28).unstable_flushControlled;t.exports=r},function(t,e,n){"use strict";var r=n(0),o=n(51),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);t.exports=i},function(t,e,n){},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(50),i=n(38),a=n(163),s=n(292),c=n(293),u=n(18),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:c(t),entityRanges:s(t,e),data:t.getData().toObject()}},f=function(t,e,n,a){if(t instanceof o)n.push(l(t,e));else{t instanceof i||u(!1);var s=t.getParentKey(),c=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},l(t,e),{children:[]});s?a[s].children.push(c):n.push(c)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,r=[],o={},i={},s=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var r=t.getEntityAt(e),o=a.stringify(r);i[o]||(i[o]=r,n[o]="".concat(s),s++)})),f(t,n,r,o)})),{blocks:r,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach((function(e,n){var r=t.getEntity(a.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(t,e)}},function(t,e,n){"use strict";var r=n(163),o=n(54).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(i,a){var s=t.getText(),c=t.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(e[r.stringify(c)])})})),n}},function(t,e,n){"use strict";var r=n(54),o=n(65),i=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),n=e.flatten().toSet().map((function(n){return function(t,e,n){var s=[],c=e.map((function(t){return t.has(n)})).toList();return o(c,i,a,(function(e,o){var i=t.getText();s.push({offset:r.strlen(i.slice(0,e)),length:r.strlen(i.slice(e,o)),style:n})})),s}(t,e,n)}));return Array.prototype.concat.apply(s,n.toJS())}},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(50),a=n(38),s=n(98),c=n(73),u=n(295),l=(n(296),n(74)),f=n(297),p=n(298),d=n(299),h=n(42),g=n(47),m=n(17),y=n(18),v=g("draft_tree_data_support"),b=m.List,w=m.Map,_=m.OrderedMap,O=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(t,e)}},S=function(t,e){var n=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return r({},t,{key:e[t.key]})}))))},E=function(t){return r({},t,{key:t.key||h()})},k=function(t,e,n){var o=e.map((function(t){return r({},t,{parentRef:n})}));return t.concat(o.reverse())},j=function(t,e){var n=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?function(t,e){return t.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,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(s.map((function(t){return t.key})))}));n=n.set(c.getKey(),c);for(var u=k([],s,c);u.length>0;){var l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(E),m=new a(r({},O(l,e),{parent:f.getKey(),children:b(g.map((function(t){return t.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(m.getKey(),m),u=k(u,g,m)}return n}),_())}(o,e):function(t,e){return _(t.map((function(t){var n=new i(O(t,e));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(t).blocks:o,e)};t.exports=function(t){Array.isArray(t.blocks)||y(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach((function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=c.__create(o,i,a||{})})),n}(t),n=j(t,e),r=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})}},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(42),a=n(18),s=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},c={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var r=n.pop();e(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(e,(function(t){var e=r({},t);s(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?r({},e,{depth:(t.depth||0)+1}):e})))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))})),t.blocks=n,r({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach((function(t){var o=s(t),a=t.depth||0,c=r({},t,{children:[]});if(o){var u=n[0];if(null==u&&0===a)e.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?e.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):e.push(c)}}else e.push(c)})),r({},t,{blocks:e})}};t.exports=c},function(t,e,n){"use strict";n(105);var r={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===n})))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(n){return e.isValidBlock(n,t)}))&&this.isConnectedTree(t)}};t.exports=r},function(t,e,n){"use strict";var r=n(37),o=n(17).List;t.exports=function(t,e){var n=t.map((function(t,n){var o=e[n];return r.create({style:t,entity:o})}));return o(n)}},function(t,e,n){"use strict";var r=n(54).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var o=r(t,0,e.offset).length,i=o+r(t,e.offset,e.length).length,a=o;a<i;a++)n[a]=e.key})),n}},function(t,e,n){"use strict";var r=n(54),o=n(17).OrderedSet,i=r.substr,a=o();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var r=i(t,0,e.offset).length,o=r+i(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++})),n}},function(t,e,n){"use strict";var r=n(301);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.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(t,e,n){"use strict";var r=n(156);t.exports=function(t){var e=r(t),n=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=e[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<e.length;u++){var l=e[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(t,e,n){"use strict";n.r(e),n.d(e,"Collection",(function(){return v})),n.d(e,"Iterable",(function(){return fr})),n.d(e,"List",(function(){return We})),n.d(e,"Map",(function(){return Ee})),n.d(e,"OrderedMap",(function(){return cn})),n.d(e,"OrderedSet",(function(){return Wn})),n.d(e,"PairSorting",(function(){return Xn})),n.d(e,"Range",(function(){return Dn})),n.d(e,"Record",(function(){return $n})),n.d(e,"Repeat",(function(){return ar})),n.d(e,"Seq",(function(){return z})),n.d(e,"Set",(function(){return Sn})),n.d(e,"Stack",(function(){return dn})),n.d(e,"fromJS",(function(){return sr})),n.d(e,"get",(function(){return Qt})),n.d(e,"getIn",(function(){return Tn})),n.d(e,"has",(function(){return Gt})),n.d(e,"hasIn",(function(){return Ln})),n.d(e,"hash",(function(){return rt})),n.d(e,"is",(function(){return $})),n.d(e,"isAssociative",(function(){return y})),n.d(e,"isCollection",(function(){return h})),n.d(e,"isImmutable",(function(){return E})),n.d(e,"isIndexed",(function(){return m})),n.d(e,"isKeyed",(function(){return g})),n.d(e,"isList",(function(){return qe})),n.d(e,"isMap",(function(){return Z})),n.d(e,"isOrdered",(function(){return j})),n.d(e,"isOrderedMap",(function(){return J})),n.d(e,"isOrderedSet",(function(){return bn})),n.d(e,"isPlainObject",(function(){return Vt})),n.d(e,"isRecord",(function(){return S})),n.d(e,"isSeq",(function(){return O})),n.d(e,"isSet",(function(){return vn})),n.d(e,"isStack",(function(){return pn})),n.d(e,"isValueObject",(function(){return X})),n.d(e,"merge",(function(){return le})),n.d(e,"mergeDeep",(function(){return pe})),n.d(e,"mergeDeepWith",(function(){return de})),n.d(e,"mergeWith",(function(){return fe})),n.d(e,"remove",(function(){return Jt})),n.d(e,"removeIn",(function(){return ne})),n.d(e,"set",(function(){return Xt})),n.d(e,"setIn",(function(){return te})),n.d(e,"update",(function(){return oe})),n.d(e,"updateIn",(function(){return $t})),n.d(e,"version",(function(){return ur}));var r={};function o(t){t&&(t.value=!0)}function i(){}function a(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function s(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?a(t)+e:e}function c(){return!0}function u(t,e,n){return(0===t&&!d(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function l(t,e){return p(t,e,0)}function f(t,e){return p(t,e,e)}function p(t,e,n){return void 0===t?n:d(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function d(t){return t<0||0===t&&1/t==-1/0}function h(t){return Boolean(t&&t["@@__IMMUTABLE_ITERABLE__@@"])}function g(t){return Boolean(t&&t["@@__IMMUTABLE_KEYED__@@"])}function m(t){return Boolean(t&&t["@@__IMMUTABLE_INDEXED__@@"])}function y(t){return g(t)||m(t)}var v=function(t){return h(t)?t:z(t)},b=function(t){function e(t){return g(t)?t:B(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v),w=function(t){function e(t){return m(t)?t:F(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v),_=function(t){function e(t){return h(t)&&!y(t)?t:U(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(v);v.Keyed=b,v.Indexed=w,v.Set=_;function O(t){return Boolean(t&&t["@@__IMMUTABLE_SEQ__@@"])}function S(t){return Boolean(t&&t["@@__IMMUTABLE_RECORD__@@"])}function E(t){return h(t)||S(t)}var k="@@__IMMUTABLE_ORDERED__@@";function j(t){return Boolean(t&&t[k])}var M="function"==typeof Symbol&&Symbol.iterator,C=M||"@@iterator",x=function(t){this.next=t};function D(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function T(){return{value:void 0,done:!0}}function I(t){return!!Array.isArray(t)||!!A(t)}function L(t){return t&&"function"==typeof t.next}function N(t){var e=A(t);return e&&e.call(t)}function A(t){var e=t&&(M&&t[M]||t["@@iterator"]);if("function"==typeof e)return e}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[C]=function(){return this};var P=Object.prototype.hasOwnProperty;function R(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var z=function(t){function e(t){return null==t?q():E(t)?t.toSeq():function(t){var e=Q(t);if(e)return(r=A(n=t))&&r===n.entries?e.fromEntrySeq():function(t){var e=A(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var n,r;if("object"==typeof t)return new K(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){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[e?r-++o:o++];return D(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(v),B=function(t){function e(t){return null==t?q().toKeyedSeq():h(t)?g(t)?t.toSeq():t.fromEntrySeq():S(t)?t.toSeq():W(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(z),F=function(t){function e(t){return null==t?q():h(t)?g(t)?t.entrySeq():t.toIndexedSeq():S(t)?t.toSeq().entrySeq():G(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(z),U=function(t){function e(t){return(h(t)&&!y(t)?t:F(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(z);z.isSeq=O,z.Keyed=B,z.Set=U,z.Indexed=F,z.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var H=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[s(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return D(t,i,n[i])}))},e}(F),K=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return P.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){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[e?o-++i:i++];return D(t,a,n[a])}))},e}(B);K.prototype[k]=!0;var Y,V=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=N(this._collection),r=0;if(L(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=N(this._collection);if(!L(n))return new x(T);var r=0;return new x((function(){var e=n.next();return e.done?e:D(t,r++,e.value)}))},e}(F);function q(){return Y||(Y=new H([]))}function W(t){var e=Q(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new K(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function G(t){var e=Q(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Q(t){return R(t)?new H(t):I(t)?new V(t):void 0}function Z(t){return Boolean(t&&t["@@__IMMUTABLE_MAP__@@"])}function J(t){return Z(t)&&j(t)}function X(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function $(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(X(t)&&X(e)&&t.equals(e))}var tt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function et(t){return t>>>1&1073741824|3221225471&t}var nt=Object.prototype.valueOf;function rt(t){if(null==t)return ot(t);if("function"==typeof t.hashCode)return et(t.hashCode(t));var e,n=(e=t).valueOf!==nt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==n)return ot(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return et(e)}(n);case"string":return n.length>ht?function(t){var e=yt[t];void 0===e&&(e=it(t),mt===gt&&(mt=0,yt={}),mt++,yt[t]=e);return e}(n):it(n);case"object":case"function":return function(t){var e;if(lt&&void 0!==(e=ut.get(t)))return e;if(void 0!==(e=t[dt]))return e;if(!st){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[dt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=ct(),lt)ut.set(t,e);else{if(void 0!==at&&!1===at(t))throw new Error("Non-extensible objects are not allowed as keys.");if(st)Object.defineProperty(t,dt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[dt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[dt]=e}}return e}(n);case"symbol":return function(t){var e=ft[t];if(void 0!==e)return e;return e=ct(),ft[t]=e,e}(n);default:if("function"==typeof n.toString)return it(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ot(t){return null===t?1108378658:1108378659}function it(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return et(e)}var at=Object.isExtensible,st=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function ct(){var t=++pt;return 1073741824&pt&&(pt=0),t}var ut,lt="function"==typeof WeakMap;lt&&(ut=new WeakMap);var ft=Object.create(null),pt=0,dt="__immutablehash__";"function"==typeof Symbol&&(dt=Symbol(dt));var ht=16,gt=255,mt=0,yt={},vt=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Et(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,r=St(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e,r){return t(e,r,n)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(B);vt.prototype[k]=!0;var bt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return e&&a(this),this._iter.__iterate((function(o){return t(o,e?n.size-++r:r++,n)}),e)},e.prototype.__iterator=function(t,e){var n=this,r=this._iter.__iterator(1,e),o=0;return e&&a(this),new x((function(){var i=r.next();return i.done?i:D(t,e?n.size-++o:o++,i.value,i)}))},e}(F),wt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new x((function(){var e=n.next();return e.done?e:D(t,e.value,e.value,e)}))},e}(U),_t=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){At(e);var r=h(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new x((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){At(r);var o=h(r);return D(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}}))},e}(B);function Ot(t){var e=Rt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=zt,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new x((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function St(t,e,n){var o=Rt(t);return o.size=t.size,o.has=function(e){return t.has(e)},o.get=function(o,i){var a=t.get(o,r);return a===r?i:e.call(n,a,o,t)},o.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},o.__iteratorUncached=function(r,o){var i=t.__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,e.call(n,a[1],s,t),o)}))},o}function Et(t,e){var n=this,r=Rt(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Ot(t);return e.reverse=function(){return t.flip()},e}),r.get=function(n,r){return t.get(e?n:-1-n,r)},r.has=function(n){return t.has(e?n:-1-n)},r.includes=function(e){return t.includes(e)},r.cacheResult=zt,r.__iterate=function(n,r){var o=this,i=0;return r&&a(t),t.__iterate((function(t,a){return n(t,e?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&a(t);var s=t.__iterator(2,!o);return new x((function(){var t=s.next();if(t.done)return t;var a=t.value;return D(r,e?a[0]:o?n.size-++i:i++,a[1],t)}))},r}function kt(t,e,n,o){var i=Rt(t);return o&&(i.has=function(o){var i=t.get(o,r);return i!==r&&!!e.call(n,i,o,t)},i.get=function(o,i){var a=t.get(o,r);return a!==r&&e.call(n,a,o,t)?a:i}),i.__iterateUncached=function(r,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,r(t,o?i:s-1,a)}),i),s},i.__iteratorUncached=function(r,i){var a=t.__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(e.call(n,l,u,t))return D(r,o?u:s++,l,i)}}))},i}function jt(t,e,n,r){var o=t.size;if(u(e,n,o))return t;var i=l(e,o),a=f(n,o);if(i!=i||a!=a)return jt(t.toSeq().cacheResult(),e,n,r);var c,p=a-i;p==p&&(c=p<0?0:p);var d=Rt(t);return d.size=0===c?c:t.size&&c||void 0,!r&&O(t)&&c>=0&&(d.get=function(e,n){return(e=s(this,e))>=0&&e<c?t.get(e+i,n):n}),d.__iterateUncached=function(e,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,u=0;return t.__iterate((function(t,n){if(!s||!(s=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==c})),u},d.__iteratorUncached=function(e,n){if(0!==c&&n)return this.cacheResult().__iterator(e,n);if(0===c)return new x(T);var o=t.__iterator(e,n),a=0,s=0;return new x((function(){for(;a++<i;)o.next();if(++s>c)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:D(e,s-1,0===e?void 0:t.value[1],t)}))},d}function Mt(t,e,n,r){var o=Rt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new x((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:D(o,u++,0===o?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:D(o,i,l,t)}))},o}function Ct(t,e){var n=g(t),r=[t].concat(e).map((function(t){return h(t)?n&&(t=b(t)):t=n?W(t):G(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&g(o)||m(t)&&m(o))return o}var i=new H(r);return n?i=i.toKeyedSeq():m(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),i}function xt(t,e,n){var r=Rt(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(c,u){c.__iterate((function(i,c){return(!e||u<e)&&h(i)?t(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(t,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=t.__iterator(r,o),a=[],s=0;return new x((function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(a.length<e)||!h(c))return n?t:D(r,s++,c,t);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Dt(t,e,n){e||(e=Bt);var r=g(t),o=0,i=t.toSeq().map((function(e,r){return[r,e,o++,n?n(e,r,t):e]})).valueSeq().toArray();return i.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?B(i):m(t)?F(i):U(i)}function Tt(t,e,n){if(e||(e=Bt),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return It(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return It(e,t,n)?n:t}))}function It(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Lt(t,e,n,r){var o=Rt(t),i=new H(n).map((function(t){return t.size}));return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map((function(t){return t=v(t),N(o?t.reverse():t)})),a=0,s=!1;return new x((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=r?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:D(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Nt(t,e){return t===e?t:O(t)?e:t.constructor(e)}function At(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Pt(t){return g(t)?b:m(t)?w:_}function Rt(t){return Object.create((g(t)?B:m(t)?F:U).prototype)}function zt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Bt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Ft(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function Ut(t,e){if(!t)throw new Error(e)}function Ht(t){Ut(t!==1/0,"Cannot perform this action with an infinite size.")}function Kt(t){if(R(t)&&"string"!=typeof t)return t;if(j(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}bt.prototype.cacheResult=vt.prototype.cacheResult=wt.prototype.cacheResult=_t.prototype.cacheResult=zt;var Yt=Object.prototype.toString;function Vt(t){if(!t||"object"!=typeof t||"[object Object]"!==Yt.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,r=Object.getPrototypeOf(e);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===e}function qt(t){return"object"==typeof t&&(E(t)||Array.isArray(t)||Vt(t))}function Wt(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Gt(t,e){return E(t)?t.has(e):qt(t)&&P.call(t,e)}function Qt(t,e,n){return E(t)?t.get(e,n):Gt(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function Zt(t){if(Array.isArray(t))return Ft(t);var e={};for(var n in t)P.call(t,n)&&(e[n]=t[n]);return e}function Jt(t,e){if(!qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(E(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!P.call(t,e))return t;var n=Zt(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}function Xt(t,e,n){if(!qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(E(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(P.call(t,e)&&n===t[e])return t;var r=Zt(t);return r[e]=n,r}function $t(t,e,n,o){o||(o=n,n=void 0);var i=function t(e,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&&!qt(n))throw new TypeError("Cannot update within non-data-structure value in path ["+o.slice(0,i).map(Wt)+"]: "+n);var f=o[i],p=c?r:Qt(n,f,r),d=t(p===r?e:E(p),p,o,i+1,a,s);return d===p?n:d===r?Jt(n,f):Xt(c?e?Pe():{}:n,f,d)}(E(t),t,Kt(e),0,n,o);return i===r?n:i}function te(t,e,n){return $t(t,e,r,(function(){return n}))}function ee(t,e){return te(this,t,e)}function ne(t,e){return $t(t,e,(function(){return r}))}function re(t){return ne(this,t)}function oe(t,e,n,r){return $t(t,[e],n,r)}function ie(t,e,n){return 1===arguments.length?t(this):oe(this,t,e,n)}function ae(t,e,n){return $t(this,t,e,n)}function se(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ue(this,t)}function ce(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return ue(this,e,t)}function ue(t,e,n){for(var o=[],i=0;i<e.length;i++){var a=b(e[i]);0!==a.size&&o.push(a)}return 0===o.length?t:0!==t.toSeq().size||t.__ownerID||1!==o.length?t.withMutations((function(t){for(var e=n?function(e,o){oe(t,o,r,(function(t){return t===r?e:n(t,e,o)}))}:function(e,n){t.set(n,e)},i=0;i<o.length;i++)o[i].forEach(e)})):t.constructor(o[0])}function le(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ge(t,e)}function fe(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ge(e,n,t)}function pe(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return he(t,e)}function de(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return he(e,n,t)}function he(t,e,n){return ge(t,e,function(t){return function e(n,r,o){return qt(n)&&qt(r)&&(i=r,a=z(n),s=z(i),m(a)===m(s)&&g(a)===g(s))?ge(n,[r],e):t?t(n,r,o):r;var i,a,s}}(n))}function ge(t,e,n){if(!qt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(E(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?w:b,a=r?function(e){o===t&&(o=Zt(o)),o.push(e)}:function(e,r){var i=P.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=Zt(o)),o[r]=a)},s=0;s<e.length;s++)i(e[s]).forEach(a);return o}function me(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return he(this,t)}function ye(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return he(this,e,t)}function ve(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return $t(this,t,Pe(),(function(t){return ge(t,e)}))}function be(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return $t(this,t,Pe(),(function(t){return he(t,e)}))}function we(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function _e(){return this.__ownerID?this:this.__ensureOwner(new i)}function Oe(){return this.__ensureOwner()}function Se(){return this.__altered}var Ee=function(t){function e(e){return null==e?Pe():Z(e)&&!j(e)?e:Pe().withMutations((function(n){var r=t(e);Ht(r.size),r.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Pe().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Re(this,t,e)},e.prototype.remove=function(t){return Re(this,t,r)},e.prototype.deleteAll=function(t){var e=v(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Pe()},e.prototype.sort=function(t){return cn(Dt(this,t))},e.prototype.sortBy=function(t,e){return cn(Dt(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,t.call(e,o,i,n))}))}))},e.prototype.__iterator=function(t,e){return new Ie(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ae(this.size,this._root,t,this.__hash):0===this.size?Pe():(this.__ownerID=t,this.__altered=!1,this)},e}(b);Ee.isMap=Z;var ke=Ee.prototype;ke["@@__IMMUTABLE_MAP__@@"]=!0,ke.delete=ke.remove,ke.removeAll=ke.deleteAll,ke.setIn=ee,ke.removeIn=ke.deleteIn=re,ke.update=ie,ke.updateIn=ae,ke.merge=ke.concat=se,ke.mergeWith=ce,ke.mergeDeep=me,ke.mergeDeepWith=ye,ke.mergeIn=ve,ke.mergeDeepIn=be,ke.withMutations=we,ke.wasAltered=Se,ke.asImmutable=Oe,ke["@@transducer/init"]=ke.asMutable=_e,ke["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},ke["@@transducer/result"]=function(t){return t.asImmutable()};var je=function(t,e){this.ownerID=t,this.entries=e};je.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},je.prototype.update=function(t,e,n,a,s,c,u){for(var l=s===r,f=this.entries,p=0,d=f.length;p<d&&!$(a,f[p][0]);p++);var h=p<d;if(h?f[p][1]===s:l)return this;if(o(u),(l||!h)&&o(c),!l||1!==f.length){if(!h&&!l&&f.length>=Ke)return function(t,e,n,r){t||(t=new i);for(var o=new De(t,rt(n),[n,r]),a=0;a<e.length;a++){var s=e[a];o=o.update(t,0,void 0,s[0],s[1])}return o}(t,f,a,s);var g=t&&t===this.ownerID,m=g?f:Ft(f);return h?l?p===d-1?m.pop():m[p]=m.pop():m[p]=[a,s]:m.push([a,s]),g?(this.entries=m,this):new je(t,m)}};var Me=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};Me.prototype.get=function(t,e,n,r){void 0===e&&(e=rt(n));var o=1<<(31&(0===t?e:e>>>t)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Ue(i&o-1)].get(t+5,e,n,r)},Me.prototype.update=function(t,e,n,o,i,a,s){void 0===n&&(n=rt(o));var c=31&(0===e?n:n>>>e),u=1<<c,l=this.bitmap,f=0!=(l&u);if(!f&&i===r)return this;var p=Ue(l&u-1),d=this.nodes,h=f?d[p]:void 0,g=ze(h,t,e+5,n,o,i,a,s);if(g===h)return this;if(!f&&g&&d.length>=Ye)return function(t,e,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ce(t,i+1,a)}(t,d,l,c,g);if(f&&!g&&2===d.length&&Be(d[1^p]))return d[1^p];if(f&&g&&1===d.length&&Be(g))return g;var m=t&&t===this.ownerID,y=f?g?l:l^u:l|u,v=f?g?He(d,p,g,m):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(d,p,m):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(d,p,g,m);return m?(this.bitmap=y,this.nodes=v,this):new Me(t,y,v)};var Ce=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};Ce.prototype.get=function(t,e,n,r){void 0===e&&(e=rt(n));var o=31&(0===t?e:e>>>t),i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Ce.prototype.update=function(t,e,n,o,i,a,s){void 0===n&&(n=rt(o));var c=31&(0===e?n:n>>>e),u=i===r,l=this.nodes,f=l[c];if(u&&!f)return this;var p=ze(f,t,e+5,n,o,i,a,s);if(p===f)return this;var d=this.count;if(f){if(!p&&--d<Ve)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Me(t,o,a)}(t,l,d,c)}else d++;var h=t&&t===this.ownerID,g=He(l,c,p,h);return h?(this.count=d,this.nodes=g,this):new Ce(t,d,g)};var xe=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};xe.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},xe.prototype.update=function(t,e,n,i,a,s,c){void 0===n&&(n=rt(i));var u=a===r;if(n!==this.keyHash)return u?this:(o(c),o(s),Fe(this,t,e,n,[i,a]));for(var l=this.entries,f=0,p=l.length;f<p&&!$(i,l[f][0]);f++);var d=f<p;if(d?l[f][1]===a:u)return this;if(o(c),(u||!d)&&o(s),u&&2===p)return new De(t,this.keyHash,l[1^f]);var h=t&&t===this.ownerID,g=h?l:Ft(l);return d?u?f===p-1?g.pop():g[f]=g.pop():g[f]=[i,a]:g.push([i,a]),h?(this.entries=g,this):new xe(t,this.keyHash,g)};var De=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};De.prototype.get=function(t,e,n,r){return $(n,this.entry[0])?this.entry[1]:r},De.prototype.update=function(t,e,n,i,a,s,c){var u=a===r,l=$(i,this.entry[0]);return(l?a===this.entry[1]:u)?this:(o(c),u?void o(s):l?t&&t===this.ownerID?(this.entry[1]=a,this):new De(t,this.keyHash,[i,a]):(o(s),Fe(this,t,e,rt(i),[i,a])))},je.prototype.iterate=xe.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Me.prototype.iterate=Ce.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},De.prototype.iterate=function(t,e){return t(this.entry)};var Te,Ie=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Ne(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,o=void 0;if(n.entry){if(0===r)return Le(t,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Le(t,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 Le(t,i.entry);e=this._stack=Ne(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(x);function Le(t,e){return D(t,e[0],e[1])}function Ne(t,e){return{node:t,index:0,__prev:e}}function Ae(t,e,n,r){var o=Object.create(ke);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pe(){return Te||(Te=Ae(0))}function Re(t,e,n){var o,i;if(t._root){var a={value:!1},s={value:!1};if(o=ze(t._root,t.__ownerID,0,void 0,e,n,a,s),!s.value)return t;i=t.size+(a.value?n===r?-1:1:0)}else{if(n===r)return t;i=1,o=new je(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Ae(i,o):Pe()}function ze(t,e,n,i,a,s,c,u){return t?t.update(e,n,i,a,s,c,u):s===r?t:(o(u),o(c),new De(e,i,[a,s]))}function Be(t){return t.constructor===De||t.constructor===xe}function Fe(t,e,n,r,o){if(t.keyHash===r)return new xe(e,r,[t.entry,o]);var i,a=31&(0===n?t.keyHash:t.keyHash>>>n),s=31&(0===n?r:r>>>n),c=a===s?[Fe(t,e,n+5,r,o)]:(i=new De(e,r,o),a<s?[t,i]:[i,t]);return new Me(e,1<<a|1<<s,c)}function Ue(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function He(t,e,n,r){var o=r?t:Ft(t);return o[e]=n,o}var Ke=8,Ye=16,Ve=8;function qe(t){return Boolean(t&&t["@@__IMMUTABLE_LIST__@@"])}var We=function(t){function e(e){var n=tn();if(null==e)return n;if(qe(e))return e;var r=t(e),o=r.size;return 0===o?n:(Ht(o),o>0&&o<32?$e(0,o,5,null,new Qe(r.toArray())):n.withMutations((function(t){t.setSize(o),r.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=s(this,t))>=0&&t<this.size){var n=rn(this,t+=this._origin);return n&&n.array[31&t]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=s(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?on(t,e).set(0,n):on(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i={value:!1};e>=an(t._capacity)?r=en(r,t.__ownerID,0,e,n,i):o=en(o,t.__ownerID,t._level,e,n,i);if(!i.value)return t;if(t.__ownerID)return t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t;return $e(t._origin,t._capacity,t._level,o,r)}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.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):tn()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){on(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},e.prototype.pop=function(){return on(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){on(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},e.prototype.shift=function(){return on(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],r=0;r<arguments.length;r++){var o=e[r],i=t("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(t){n.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(n[0])},e.prototype.setSize=function(t){return on(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,t.call(e,r.get(o),o,n))}))},e.prototype.slice=function(t,e){var n=this.size;return u(t,e,n)?this:on(this,l(t,n),f(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,r=Xe(this,e);return new x((function(){var o=r();return o===Je?{value:void 0,done:!0}:D(t,e?--n:n++,o)}))},e.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,o=Xe(this,e);(n=o())!==Je&&!1!==t(n,e?--r:r++,this););return r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?$e(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?tn():(this.__ownerID=t,this.__altered=!1,this)},e}(w);We.isList=qe;var Ge=We.prototype;Ge["@@__IMMUTABLE_LIST__@@"]=!0,Ge.delete=Ge.remove,Ge.merge=Ge.concat,Ge.setIn=ee,Ge.deleteIn=Ge.removeIn=re,Ge.update=ie,Ge.updateIn=ae,Ge.mergeIn=ve,Ge.mergeDeepIn=be,Ge.withMutations=we,Ge.wasAltered=Se,Ge.asImmutable=Oe,Ge["@@transducer/init"]=Ge.asMutable=_e,Ge["@@transducer/step"]=function(t,e){return t.push(e)},Ge["@@transducer/result"]=function(t){return t.asImmutable()};var Qe=function(t,e){this.array=t,this.ownerID=e};Qe.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new Qe([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=nn(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},Qe.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&31;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=nn(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Ze,Je={};function Xe(t,e){var n=t._origin,r=t._capacity,o=an(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;u>32&&(u=32);return function(){if(c===u)return Je;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);l>32&&(l=32);return function(){for(;;){if(s){var t=s();if(t!==Je)return t;s=null}if(u===l)return Je;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(t,s,c)}}function $e(t,e,n,r,o,i,a){var s=Object.create(Ge);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function tn(){return Ze||(Ze=$e(0,0,5))}function en(t,e,n,r,i,a){var s,c=r>>>n&31,u=t&&c<t.array.length;if(!u&&void 0===i)return t;if(n>0){var l=t&&t.array[c],f=en(l,e,n-5,r,i,a);return f===l?t:((s=nn(t,e)).array[c]=f,s)}return u&&t.array[c]===i?t:(a&&o(a),s=nn(t,e),void 0===i&&c===s.array.length-1?s.array.pop():s.array[c]=i,s)}function nn(t,e){return e&&t&&e===t.ownerID?t:new Qe(t?t.array.slice():[],e)}function rn(t,e){if(e>=an(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&31],r-=5;return n}}function on(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new i,o=t._origin,a=t._capacity,s=o+e,c=void 0===n?a:n<0?a+n:o+n;if(s===o&&c===a)return t;if(s>=c)return t.clear();for(var u=t._level,l=t._root,f=0;s+f<0;)l=new Qe(l&&l.array.length?[void 0,l]:[],r),f+=1<<(u+=5);f&&(s+=f,o+=f,c+=f,a+=f);for(var p=an(a),d=an(c);d>=1<<u+5;)l=new Qe(l&&l.array.length?[l]:[],r),u+=5;var h=t._tail,g=d<p?rn(t,c-1):d>p?new Qe([],r):h;if(h&&d>p&&s<a&&h.array.length){for(var m=l=nn(l,r),y=u;y>5;y-=5){var v=p>>>y&31;m=m.array[v]=nn(m.array[v],r)}m.array[p>>>5&31]=h}if(c<a&&(g=g&&g.removeAfter(r,0,c)),s>=d)s-=d,c-=d,u=5,l=null,g=g&&g.removeBefore(r,0,s);else if(s>o||d<p){for(f=0;l;){var b=s>>>u&31;if(b!==d>>>u&31)break;b&&(f+=(1<<u)*b),u-=5,l=l.array[b]}l&&s>o&&(l=l.removeBefore(r,u,s-f)),l&&d<p&&(l=l.removeAfter(r,u,d-f)),f&&(s-=f,c-=f)}return t.__ownerID?(t.size=c-s,t._origin=s,t._capacity=c,t._level=u,t._root=l,t._tail=g,t.__hash=void 0,t.__altered=!0,t):$e(s,c,u,l,g)}function an(t){return t<32?0:t-1>>>5<<5}var sn,cn=function(t){function e(t){return null==t?ln():J(t)?t:ln().withMutations((function(e){var n=b(t);Ht(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ln()},e.prototype.set=function(t,e){return fn(this,t,e)},e.prototype.remove=function(t){return fn(this,t,r)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?un(e,n,t,this.__hash):0===this.size?ln():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Ee);function un(t,e,n,r){var o=Object.create(cn.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ln(){return sn||(sn=un(Pe(),tn()))}function fn(t,e,n){var o,i,a=t._map,s=t._list,c=a.get(e),u=void 0!==c;if(n===r){if(!u)return t;s.size>=32&&s.size>=2*a.size?(o=(i=s.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(o.__ownerID=i.__ownerID=t.__ownerID)):(o=a.remove(e),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(n===s.get(c)[1])return t;o=a,i=s.set(c,[e,n])}else o=a.set(e,s.size),i=s.set(s.size,[e,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=i,t.__hash=void 0,t.__altered=!0,t):un(o,i)}cn.isOrderedMap=J,cn.prototype[k]=!0,cn.prototype.delete=cn.prototype.remove;function pn(t){return Boolean(t&&t["@@__IMMUTABLE_STACK__@@"])}var dn=function(t){function e(t){return null==t?yn():pn(t)?t:yn().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=s(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):mn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&pn(e))return e;Ht(e.size);var n=this.size,r=this._head;return e.__iterate((function(t){n++,r={value:t,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):mn(n,r)},e.prototype.pop=function(){return this.slice(1)},e.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()},e.prototype.slice=function(e,n){if(u(e,n,this.size))return this;var r=l(e,this.size);if(f(n,this.size)!==this.size)return t.prototype.slice.call(this,e,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):mn(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?mn(this.size,this._head,t,this.__hash):0===this.size?yn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new H(this.toArray()).__iterate((function(e,r){return t(e,r,n)}),e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new H(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new x((function(){if(r){var e=r.value;return r=r.next,D(t,n++,e)}return{value:void 0,done:!0}}))},e}(w);dn.isStack=pn;var hn,gn=dn.prototype;function mn(t,e,n,r){var o=Object.create(gn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function yn(){return hn||(hn=mn(0))}gn["@@__IMMUTABLE_STACK__@@"]=!0,gn.shift=gn.pop,gn.unshift=gn.push,gn.unshiftAll=gn.pushAll,gn.withMutations=we,gn.wasAltered=Se,gn.asImmutable=Oe,gn["@@transducer/init"]=gn.asMutable=_e,gn["@@transducer/step"]=function(t,e){return t.unshift(e)},gn["@@transducer/result"]=function(t){return t.asImmutable()};function vn(t){return Boolean(t&&t["@@__IMMUTABLE_SET__@@"])}function bn(t){return vn(t)&&j(t)}function wn(t,e){if(t===e)return!0;if(!h(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||g(t)!==g(e)||m(t)!==m(e)||j(t)!==j(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!y(t);if(j(t)){var o=t.entries();return e.every((function(t,e){var r=o.next().value;return r&&$(r[1],t)&&(n||$(r[0],e))}))&&o.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var a=t;t=e,e=a}var s=!0,c=e.__iterate((function(e,o){if(n?!t.has(e):i?!$(e,t.get(o,r)):!$(t.get(o,r),e))return s=!1,!1}));return s&&t.size===c}function _n(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function On(t){if(!t||"object"!=typeof t)return t;if(!h(t)){if(!qt(t))return t;t=z(t)}if(g(t)){var e={};return t.__iterate((function(t,n){e[n]=On(t)})),e}var n=[];return t.__iterate((function(t){n.push(On(t))})),n}var Sn=function(t){function e(e){return null==e?Cn():vn(e)&&!j(e)?e:Cn().withMutations((function(n){var r=t(e);Ht(r.size),r.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(b(t).keySeq())},e.intersect=function(t){return(t=v(t).toArray()).length?kn.intersect.apply(e(t.pop()),t):Cn()},e.union=function(t){return(t=v(t).toArray()).length?kn.union.apply(e(t.pop()),t):Cn()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return jn(this,this._map.set(t,t))},e.prototype.remove=function(t){return jn(this,this._map.remove(t))},e.prototype.clear=function(){return jn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,o=jn(this,this._map.mapEntries((function(o){var i=o[1],a=t.call(e,i,i,n);return a!==i&&(r=!0),[a,a]}),e));return r?o:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var r=0;r<e.length;r++)"string"==typeof e[r]?n.add(e[r]):t(e[r]).forEach((function(t){return n.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return Wn(Dt(this,t))},e.prototype.sortBy=function(t,e){return Wn(Dt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(_);Sn.isSet=vn;var En,kn=Sn.prototype;function jn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Mn(t,e){var n=Object.create(kn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Cn(){return En||(En=Mn(Pe()))}kn["@@__IMMUTABLE_SET__@@"]=!0,kn.delete=kn.remove,kn.merge=kn.concat=kn.union,kn.withMutations=we,kn.asImmutable=Oe,kn["@@transducer/init"]=kn.asMutable=_e,kn["@@transducer/step"]=function(t,e){return t.add(e)},kn["@@transducer/result"]=function(t){return t.asImmutable()},kn.__empty=Cn,kn.__make=Mn;var xn,Dn=function(t){function e(t,n,r){if(!(this instanceof e))return new e(t,n,r);if(Ut(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<t&&(r=-r),this._start=t,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-t)/r-1)+1),0===this.size){if(xn)return xn;xn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+s(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return u(t,n,this.size)?this:(t=l(t,this.size),(n=f(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==t(o,e?n-++i:i++,this);)o+=e?-r:r;return i},e.prototype.__iterator=function(t,e){var n=this.size,r=this._step,o=e?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+=e?-r:r,D(t,e?n-++i:i++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:wn(this,t)},e}(F);function Tn(t,e,n){for(var o=Kt(e),i=0;i!==o.length;)if((t=Qt(t,o[i++],r))===r)return n;return t}function In(t,e){return Tn(this,t,e)}function Ln(t,e){return Tn(t,e,r)!==r}function Nn(){Ht(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t}v.isIterable=h,v.isKeyed=g,v.isIndexed=m,v.isAssociative=y,v.isOrdered=j,v.Iterator=x,_n(v,{toArray:function(){Ht(this.size);var t=new Array(this.size||0),e=g(this),n=0;return this.__iterate((function(r,o){t[n++]=e?[o,r]:r})),t},toIndexedSeq:function(){return new bt(this)},toJS:function(){return On(this)},toKeyedSeq:function(){return new vt(this,!0)},toMap:function(){return Ee(this.toKeyedSeq())},toObject:Nn,toOrderedMap:function(){return cn(this.toKeyedSeq())},toOrderedSet:function(){return Wn(g(this)?this.valueSeq():this)},toSet:function(){return Sn(g(this)?this.valueSeq():this)},toSetSeq:function(){return new wt(this)},toSeq:function(){return m(this)?this.toIndexedSeq():g(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return dn(g(this)?this.valueSeq():this)},toList:function(){return We(g(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Nt(this,Ct(this,t))},includes:function(t){return this.some((function(e){return $(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Ht(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Nt(this,kt(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var r=g(t),o=[[],[]];t.__iterate((function(i,a){o[e.call(n,i,a,t)?1:0].push(r?[a,i]:i)}));var i=Pt(t);return o.map((function(e){return Nt(t,i(e))}))}(this,t,e)},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Ht(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ht(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Nt(this,St(this,t,e))},reduce:function(t,e,n){return Bn(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return Bn(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Nt(this,Et(this,!0))},slice:function(t,e){return Nt(this,jt(this,t,e,!0))},some:function(t,e){return!this.every(Hn(t),e)},sort:function(t){return Nt(this,Dt(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return a(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Ee().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return wn(this,t)},entrySeq:function(){var t=this;if(t._cache)return new H(t._cache);var e=t.toSeq().map(Un).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Hn(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(c,null,t)},flatMap:function(t,e){return Nt(this,function(t,e,n){var r=Pt(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Nt(this,xt(this,t,!0))},fromEntrySeq:function(){return new _t(this)},get:function(t,e){return this.find((function(e,n){return $(n,t)}),void 0,e)},getIn:In,groupBy:function(t,e){return function(t,e,n){var r=g(t),o=(j(t)?cn():Ee()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Pt(t);return o.map((function(e){return Nt(t,i(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,r)!==r},hasIn:function(t){return Ln(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:v(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:v(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return $(e,t)}))},keySeq:function(){return this.toSeq().map(Fn).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Tt(this,t)},maxBy:function(t,e){return Tt(this,e,t)},min:function(t){return Tt(this,t?Kn(t):Vn)},minBy:function(t,e){return Tt(this,e?Kn(e):Vn,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Nt(this,Mt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Hn(t),e)},sortBy:function(t,e){return Nt(this,Dt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Nt(this,function(t,e,n){var r=Rt(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new x((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:D(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Hn(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=j(t),n=g(t),r=e?1:0;return function(t,e){return e=tt(e,3432918353),e=tt(e<<15|e>>>-15,461845907),e=tt(e<<13|e>>>-13,5),e=tt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=et((e=tt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+qn(rt(t),rt(e))|0}:function(t,e){r=r+qn(rt(t),rt(e))|0}:e?function(t){r=31*r+rt(t)|0}:function(t){r=r+rt(t)|0}),r)}(this))}});var An=v.prototype;An["@@__IMMUTABLE_ITERABLE__@@"]=!0,An[C]=An.values,An.toJSON=An.toArray,An.__toStringMapper=Wt,An.inspect=An.toSource=function(){return this.toString()},An.chain=An.flatMap,An.contains=An.includes,_n(b,{flip:function(){return Nt(this,Ot(this))},mapEntries:function(t,e){var n=this,r=0;return Nt(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Nt(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var Pn=b.prototype;Pn["@@__IMMUTABLE_KEYED__@@"]=!0,Pn[C]=An.entries,Pn.toJSON=Nn,Pn.__toStringMapper=function(t,e){return Wt(e)+": "+Wt(t)},_n(w,{toKeyedSeq:function(){return new vt(this,!1)},filter:function(t,e){return Nt(this,kt(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Nt(this,Et(this,!1))},slice:function(t,e){return Nt(this,jt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=l(t,t<0?this.count():this.size);var r=this.slice(0,t);return Nt(this,1===n?r:r.concat(Ft(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,xt(this,t,!1))},get:function(t,e){return(t=s(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=s(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,e){var n=Rt(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate((function(t){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new x((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?D(n,a++,e):D(n,a++,o.value,o)}))},n}(this,t))},interleave:function(){var t=[this].concat(Ft(arguments)),e=Lt(this.toSeq(),F.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Nt(this,n)},keySeq:function(){return Dn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Nt(this,Mt(this,t,e,!1))},zip:function(){var t=[this].concat(Ft(arguments));return Nt(this,Lt(this,Yn,t))},zipAll:function(){var t=[this].concat(Ft(arguments));return Nt(this,Lt(this,Yn,t,!0))},zipWith:function(t){var e=Ft(arguments);return e[0]=this,Nt(this,Lt(this,t,e))}});var Rn=w.prototype;Rn["@@__IMMUTABLE_INDEXED__@@"]=!0,Rn[k]=!0,_n(_,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var zn=_.prototype;function Bn(t,e,n,r,o,i){return Ht(t.size),t.__iterate((function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),i),n}function Fn(t,e){return e}function Un(t,e){return[e,t]}function Hn(t){return function(){return!t.apply(this,arguments)}}function Kn(t){return function(){return-t.apply(this,arguments)}}function Yn(){return Ft(arguments)}function Vn(t,e){return t<e?1:t>e?-1:0}function qn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}zn.has=An.includes,zn.contains=zn.includes,zn.keys=zn.values,_n(B,Pn),_n(F,Rn),_n(U,zn);var Wn=function(t){function e(t){return null==t?Jn():bn(t)?t:Jn().withMutations((function(e){var n=_(t);Ht(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(b(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Sn);Wn.isOrderedSet=bn;var Gn,Qn=Wn.prototype;function Zn(t,e){var n=Object.create(Qn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,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 Xn={LeftThenRight:-1,RightThenLeft:1};var $n=function(t,e){var n;!function(t){if(S(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(E(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);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(t),c=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;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=We().withMutations((function(t){t.setSize(a._keys.length),b(i).forEach((function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)}))})),this},o=r.prototype=Object.create(tr);return o.constructor=r,e&&(r.displayName=e),r};$n.prototype.toString=function(){for(var t,e=nr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)e+=(r?", ":"")+(t=n[r])+": "+Wt(this.get(t));return e+" }"},$n.prototype.equals=function(t){return this===t||S(t)&&rr(this).equals(rr(t))},$n.prototype.hashCode=function(){return rr(this).hashCode()},$n.prototype.has=function(t){return this._indices.hasOwnProperty(t)},$n.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],r=this._values.get(n);return void 0===r?this._defaultValues[t]:r},$n.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return er(this,n)}return this},$n.prototype.remove=function(t){return this.set(t)},$n.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:er(this,t)},$n.prototype.wasAltered=function(){return this._values.wasAltered()},$n.prototype.toSeq=function(){return rr(this)},$n.prototype.toJS=function(){return On(this)},$n.prototype.entries=function(){return this.__iterator(2)},$n.prototype.__iterator=function(t,e){return rr(this).__iterator(t,e)},$n.prototype.__iterate=function(t,e){return rr(this).__iterate(t,e)},$n.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?er(this,e,t):(this.__ownerID=t,this._values=e,this)},$n.isRecord=S,$n.getDescriptiveName=nr;var tr=$n.prototype;function er(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._values=e,r.__ownerID=n,r}function nr(t){return t.constructor.displayName||t.constructor.name||"Record"}function rr(t){return W(t._keys.map((function(e){return[e,t.get(e)]})))}function or(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Ut(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}tr["@@__IMMUTABLE_RECORD__@@"]=!0,tr.delete=tr.remove,tr.deleteIn=tr.removeIn=re,tr.getIn=In,tr.hasIn=An.hasIn,tr.merge=se,tr.mergeWith=ce,tr.mergeIn=ve,tr.mergeDeep=me,tr.mergeDeepWith=ye,tr.mergeDeepIn=be,tr.setIn=ee,tr.update=ie,tr.updateIn=ae,tr.withMutations=we,tr.asMutable=_e,tr.asImmutable=Oe,tr[C]=tr.entries,tr.toJSON=tr.toObject=An.toObject,tr.inspect=tr.toSource=function(){return this.toString()};var ir,ar=function(t){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this._value=t,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(ir)return ir;ir=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return $(this._value,t)},e.prototype.slice=function(t,n){var r=this.size;return u(t,n,r)?this:new e(this._value,f(n,r)-l(t,r))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return $(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return $(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var n=this.size,r=0;r!==n&&!1!==t(this._value,e?n-++r:r++,this););return r},e.prototype.__iterator=function(t,e){var n=this,r=this.size,o=0;return new x((function(){return o===r?{value:void 0,done:!0}:D(t,e?r-++o:o++,n._value)}))},e.prototype.equals=function(t){return t instanceof e?$(this._value,t._value):wn(t)},e}(F);function sr(t,e){return function t(e,n,r,o,i,a){if("string"!=typeof r&&!E(r)&&(R(r)||I(r)||Vt(r))){if(~e.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");e.push(r),i&&""!==o&&i.push(o);var s=n.call(a,o,z(r).map((function(o,a){return t(e,n,o,a,i,r)})),i&&i.slice());return e.pop(),i&&i.pop(),s}return r}([],e||cr,t,"",e&&e.length>2?[]:void 0,{"":t})}function cr(t,e){return m(e)?e.toList():g(e)?e.toMap():e.toSet()}var ur="4.3.0",lr={version:ur,Collection:v,Iterable:v,Seq:z,Map:Ee,OrderedMap:cn,List:We,Stack:dn,Set:Sn,OrderedSet:Wn,PairSorting:Xn,Record:$n,Range:Dn,Repeat:ar,is:$,fromJS:sr,hash:rt,isImmutable:E,isCollection:h,isKeyed:g,isIndexed:m,isAssociative:y,isOrdered:j,isValueObject:X,isPlainObject:Vt,isSeq:O,isList:qe,isMap:Z,isOrderedMap:J,isStack:pn,isSet:vn,isOrderedSet:bn,isRecord:S,get:Qt,getIn:Tn,has:Gt,hasIn:Ln,merge:le,mergeDeep:pe,mergeWith:fe,mergeDeepWith:de,remove:Jt,removeIn:ne,set:Xt,setIn:te,update:oe,updateIn:$t},fr=v;e.default=lr},function(t,e,n){"use strict";var r=n(165),o=n(305),i=n(166),a=n(306),s=function(){function t(){this._subscriber=new o,this._currentSubscription=null}var e=t.prototype;return e.addListener=function(t,e,n){return this._subscriber.addSubscription(t,new r(this._subscriber,e,n))},e.once=function(t,e,n){var r=this;return this.addListener(t,(function(){r.removeCurrentListener(),e.apply(n,arguments)}))},e.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},e.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.listeners=function(t){var e=this._subscriber.getSubscriptionsForType(t);return e?e.filter(a.thatReturnsTrue).map((function(t){return t.listener})):[]},e.emit=function(t){var e=this._subscriber.getSubscriptionsForType(t);if(e){for(var n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.__emitToSubscription=function(t,e){var n=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,n)},t}();t.exports=s},function(t,e,n){"use strict";var r=function(){function t(t){this.subscriber=t}return t.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},function(t,e,n){"use strict";var r=n(166),o=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var e=t.prototype;return e.addSubscription=function(t,e){e.subscriber!==this&&r(!1),this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var n=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(e),e.eventType=t,e.key=n,e},e.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},e.removeSubscription=function(t){var e=t.eventType,n=t.key,r=this._subscriptionsForType[e];r&&delete r[n]},e.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=o},function(t,e,n){"use strict";function r(t){return function(){return t}}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(t){return t},t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ReactFormBuilder",(function(){return Mc})),n.d(e,"ReactFormGenerator",(function(){return Cc})),n.d(e,"ElementStore",(function(){return Gt})),n.d(e,"Registry",(function(){return La.a}));var r={};n.r(r),n.d(r,"FILE",(function(){return I})),n.d(r,"URL",(function(){return L})),n.d(r,"TEXT",(function(){return N}));var o=n(22),i=n.n(o),a=n(8),s=n.n(a),c=n(9),u=n.n(c),l=n(14),f=n.n(l),p=n(10),d=n.n(p),h=n(20),g=n.n(h),m=n(13),y=n.n(m),v=n(0),b=n.n(v),w=n(313);function _(t){var e=null;return function(){return null==e&&(e=t()),e}}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var S=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.entered=[],this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var o=[];return n.forEach((function(t){return o.push(t)})),o}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&O(e.prototype,n),r&&O(e,r),t}(),E=_((function(){return/firefox/i.test(navigator.userAgent)})),k=_((function(){return Boolean(window.safari)}));function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var M=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=e.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var a,s,c=[],u=[],l=[],f=0;f<r-1;f++)a=e[f+1]-e[f],s=n[f+1]-n[f],u.push(a),c.push(s),l.push(s/a);for(var p=[l[0]],d=0;d<u.length-1;d++){var h=l[d],g=l[d+1];if(h*g<=0)p.push(0);else{a=u[d];var m=u[d+1],y=a+m;p.push(3*y/((y+m)/h+(y+a)/g))}}p.push(l[l.length-1]);for(var v,b=[],w=[],_=0;_<p.length-1;_++){v=l[_];var O=p[_],S=1/u[_],E=O+p[_+1]-v-v;b.push((v-O-E)*S),w.push(E*S*S)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=w}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=e.length-1;if(t===e[a])return n[a];for(var s,c=0,u=i.length-1;c<=u;){var l=e[s=Math.floor(.5*(c+u))];if(l<t)c=s+1;else{if(!(l>t))return n[s];u=s-1}}var f=t-e[a=Math.max(0,u)],p=f*f;return n[a]+r[a]*f+o[a]*p+i[a]*f*p}}])&&j(e.prototype,n),r&&j(e,r),t}();function C(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function x(t){return{x:t.clientX,y:t.clientY}}function D(t,e,n,r,o){var i,a,s,c="IMG"===(i=e).nodeName&&(E()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),u=C(c?t:e),l={x:n.x-u.x,y:n.y-u.y},f=t.offsetWidth,p=t.offsetHeight,d=r.anchorX,h=r.anchorY,g=function(t,e,n,r){var o=t?e.width:n,i=t?e.height:r;return k()&&t&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,e,f,p),m=g.dragPreviewWidth,y=g.dragPreviewHeight,v=o.offsetX,b=o.offsetY,w=0===b||b;return{x:0===v||v?v:new M([0,.5,1],[l.x,l.x/f*m,l.x+m-f]).interpolate(d),y:w?b:(s=new M([0,.5,1],[l.y,l.y/p*y,l.y+y-p]).interpolate(h),k()&&c&&(s+=(window.devicePixelRatio-1)*y),s)}}var T,I="__NATIVE_FILE__",L="__NATIVE_URL__",N="__NATIVE_TEXT__";function A(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R=(P(T={},I,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]}),P(T,L,{exposeProperties:{urls:function(t,e){return A(t,e,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),P(T,N,{exposeProperties:{text:function(t,e){return A(t,e,"")}},matchesTypes:["Text","text/plain"]}),T);function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var B=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.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(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&z(e.prototype,n),r&&z(e,r),t}();function F(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(R).filter((function(t){return R[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var H=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.globalContext=e}var e,n,r;return e=t,(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(e.prototype,n),r&&U(e,r),t}();function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var W=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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(t){var e=r.sourceNodes.get(t);return e&&C(e)||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(t){return Boolean(t&&r.document&&r.document.body&&document.body.contains(t))},this.endDragIfSourceWasRemovedFromDOM=function(){var t=r.currentDragSourceNode;r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=x(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=t.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(t){}r.setCurrentDragSourceNode(t.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&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=F(e);n&&r.beginDragNativeItem(n,e)}},this.handleTopDragEnter=function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,E()||r.actions.hover(e,{clientOffset:x(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.actions.hover(e||[],{clientOffset:x(t)}),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(t){var e;(r.dropTargetIds=[],t.preventDefault(),r.isDraggingNativeItem())&&(null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer));r.enterLeaveCounter.reset()},this.handleTopDrop=function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:x(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new H(n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new S(this.isNodeInDocument)}var e,n,o;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.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(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var o=function(e){return r.handleDragStart(e,t)},i=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},o=function(e){return n.handleDragOver(e,t)},i=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return Y({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return Y({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(r).some((function(e){return r[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new B(R[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){return e.window&&e.window.addEventListener("mousemove",e.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(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&q(e.prototype,n),o&&q(e,o),t}(),G=function(t,e){return new W(t,e)},Q=n(3),Z=n(83),J=n(36),X=n(308),$=n(309),tt=n(16),et=n(30);function nt(t,e){return Object.keys(t).reduce((function(n,r){return n[r]=Object(Q.a)({timeZone:e},t[r]),n}),{})}function rt(t,e){return Object.keys(Object(Q.a)(Object(Q.a)({},t),e)).reduce((function(n,r){return n[r]=Object(Q.a)(Object(Q.a)({},t[r]||{}),e[r]||{}),n}),{})}function ot(t,e){if(!e)return t;var n=$.a.formats;return Object(Q.a)(Object(Q.a)(Object(Q.a)({},n),t),{date:rt(nt(n.date,e),nt(t.date||{},e)),time:rt(nt(n.time,e),nt(t.time||{},e))})}function it(t,e,n,r,o){var i=t.locale,a=t.formats,s=t.messages,c=t.defaultLocale,u=t.defaultFormats,l=t.fallbackOnEmptyString,f=t.onError,p=t.timeZone,d=t.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,g=n.defaultMessage;Object(X.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 m=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,m)&&s[m];if(Array.isArray(y)&&1===y.length&&y[0].type===et.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=ot(a,p),u=ot(u,p),!y){if(!1===l&&""===y)return y;if((!g||i&&i.toLowerCase()!==c.toLowerCase())&&f(new tt.g(n,i)),g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){return f(new tt.e('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,n,t)),"string"==typeof g?g:m}return m}try{return e.getMessageFormat(y,i,a,Object(Q.a)({formatters:e},o||{})).format(r)}catch(t){f(new tt.e('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,n,t))}if(g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){f(new tt.e('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,n,t))}return"string"==typeof y?y:"string"==typeof g?g:m}var at=n(27),st=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ct(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=a&&Object(at.e)(o,"number",a,i)||{};return e(r,Object(at.d)(n,st,s))}function ut(t,e,n,r){void 0===r&&(r={});try{return ct(t,e,r).format(n)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting number.",e))}return String(n)}function lt(t,e,n,r){void 0===r&&(r={});try{return ct(t,e,r).formatToParts(n)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting number.",e))}return[]}var ft=n(57),pt=["numeric","style"];function dt(t,e,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||t.onError(new ft.b('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ft.a.MISSING_INTL_API));try{return function(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=!!a&&Object(at.e)(o,"relative",a,i)||{};return e(r,Object(at.d)(n,pt,s))}(t,e,o).format(n,r)}catch(e){t.onError(new tt.c("Error formatting relative time.",t.locale,e))}return String(n)}var ht=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function gt(t,e,n,r){var o=t.locale,i=t.formats,a=t.onError,s=t.timeZone;void 0===r&&(r={});var c=r.format,u=Object(Q.a)(Object(Q.a)({},s&&{timeZone:s}),c&&Object(at.e)(i,e,c,a)),l=Object(at.d)(r,ht,u);return"time"!==e||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 mt(t,e){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 gt(t,"date",e,a).format(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date.",e))}return String(s)}function yt(t,e){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 gt(t,"time",e,a).format(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting time.",e))}return String(s)}function vt(t,e){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=t.timeZone,u=t.locale,l=t.onError,f=Object(at.d)(s,ht,c?{timeZone:c}:{});try{return e(u,f).formatRange(o,i)}catch(t){l(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date time range.",t))}return String(o)}function bt(t,e){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 gt(t,"date",e,a).formatToParts(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting date.",e))}return[]}function wt(t,e){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 gt(t,"time",e,a).formatToParts(s)}catch(e){t.onError(new tt.a(tt.b.FORMAT_ERROR,"Error formatting time.",e))}return[]}var _t=["localeMatcher","type"];function Ot(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.PluralRules||i(new ft.b('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,_t);try{return e(o,a).select(n)}catch(t){i(new tt.c("Error formatting plural.",o,t))}return"other"}var St=["localeMatcher","type","style"],Et=Date.now();function kt(t,e,n,r){void 0===r&&(r={});var o=jt(t,e,n,r).reduce((function(t,e){var n=e.value;return"string"!=typeof n?t.push(n):"string"==typeof t[t.length-1]?t[t.length-1]+=n:t.push(n),t}),[]);return 1===o.length?o[0]:o}function jt(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.ListFormat||i(new ft.b('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,St);try{var s={},c=n.map((function(t,e){if("object"==typeof t){var n=function(t){return"".concat(Et,"_").concat(t,"_").concat(Et)}(e);return s[n]=t,n}return String(t)}));return e(o,a).formatToParts(c).map((function(t){return"literal"===t.type?t:Object(Q.a)(Object(Q.a)({},t),{value:s[t.value]||t.value})}))}catch(t){i(new tt.a(tt.b.FORMAT_ERROR,"Error formatting list.",t))}return n}var Mt=["localeMatcher","style","type","fallback"];function Ct(t,e,n,r){var o=t.locale,i=t.onError;Intl.DisplayNames||i(new ft.b('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ft.a.MISSING_INTL_API));var a=Object(at.d)(r,Mt);try{return e(o,a).of(n)}catch(t){i(new tt.a(tt.b.FORMAT_ERROR,"Error formatting display name.",t))}}function xt(t){var e;t.onWarn&&t.defaultRichTextElements&&"string"==typeof((e=t.messages||{})?e[Object.keys(e)[0]]:void 0)&&t.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 Dt=n(110);function Tt(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}function It(t){return t?Object.keys(t).reduce((function(e,n){var r=t[n];return e[n]=Object(Dt.c)(r)?Object(J.b)(r):r,e}),{}):t}var Lt=function(t,e,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=It(r),s=it.apply(void 0,Object(Q.d)([t,e,n,a],o,!1));return Array.isArray(s)?v.Children.toArray(s):s},Nt=function(t,e){var n=t.defaultRichTextElements,r=Object(Q.c)(t,["defaultRichTextElements"]),o=It(n),i=function(t,e){var n=Object(at.b)(e),r=Object(Q.a)(Object(Q.a)({},at.a),t),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new tt.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 tt.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 tt.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"),xt(r),Object(Q.a)(Object(Q.a)({},r),{formatters:n,formatNumber:ut.bind(null,r,n.getNumberFormat),formatNumberToParts:lt.bind(null,r,n.getNumberFormat),formatRelativeTime:dt.bind(null,r,n.getRelativeTimeFormat),formatDate:mt.bind(null,r,n.getDateTimeFormat),formatDateToParts:bt.bind(null,r,n.getDateTimeFormat),formatTime:yt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:vt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:wt.bind(null,r,n.getDateTimeFormat),formatPlural:Ot.bind(null,r,n.getPluralRules),formatMessage:it.bind(null,r,n),$t:it.bind(null,r,n),formatList:kt.bind(null,r,n.getListFormat),formatListToParts:jt.bind(null,r,n.getListFormat),formatDisplayName:Ct.bind(null,r,n.getDisplayNames)})}(Object(Q.a)(Object(Q.a)(Object(Q.a)({},J.a),r),{defaultRichTextElements:o}),e);return Object(Q.a)(Object(Q.a)({},i),{formatMessage:Lt.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)})},At=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=Object(at.c)(),e.state={cache:e.cache,intl:Nt(Tt(e.props),e.cache),prevConfig:Tt(e.props)},e}return Object(Q.b)(e,t),e.getDerivedStateFromProps=function(t,e){var n=e.prevConfig,r=e.cache,o=Tt(t);return Object(J.d)(n,o)?null:{intl:Nt(o,r),prevConfig:o}},e.prototype.render=function(){return Object(J.c)(this.state.intl),v.createElement(Z.b,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=J.a,e}(v.PureComponent),Pt=n(107),Rt=n.n(Pt),zt=n(11),Bt=n.n(zt),Ft=n(167),Ut=n.n(Ft);var Ht,Kt,Yt,Vt=class{constructor(t){const e=this;e.actions={},e.mutations={},e.state={},e.status="resting",e.callbacks=[],t.hasOwnProperty("actions")&&(e.actions=t.actions),t.hasOwnProperty("mutations")&&(e.mutations=t.mutations),e.state=new Proxy(t.initialState||{},{set:(t,n,r)=>(t[n]=r,e.processCallbacks(e.state),e.status="resting",!0)})}dispatch(t,e){const n=this;return"function"!=typeof n.actions[t]?(console.error(`Action "${t}" doesn't exist.`),!1):(n.status="action",n.actions[t](n,e))}commit(t,e){const n=this;if("function"!=typeof n.mutations[t])return console.error(`Mutation "${t}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[t](n.state,e);return n.state=r,!0}processCallbacks(t){return!!this.callbacks.length&&(this.callbacks.forEach(e=>e(t)),!0)}subscribe(t){return"function"!=typeof t?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(t),!0)}},qt=n(108),Wt=new Vt({actions:{setData:function(t,e,n){t.commit("setData",e),n&&this.save(e)},load:function(t,e){var n=this,r=e.loadUrl,o=e.saveUrl,i=e.data,a=e.saveAlways;Ht=o;var s=a||void 0===a;t.commit("setSaveAlways",s),Yt?Yt().then((function(e){i&&i.length>0&&0===e.length&&i.forEach((function(t){return e.push(t)})),n.setData(t,e)})):r?Object(qt.a)(r).then((function(e){i&&i.length>0&&0===e.length&&i.forEach((function(t){return e.push(t)})),n.setData(t,e)})):this.setData(t,i)},create:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.push(e),this.setData(t,r,o)},delete:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(e),1),this.setData(t,r,o)},deleteLastItem:function(t){var e=t.state.lastItem;e&&(this.delete(t,e),t.commit("setLastItem",null))},resetLastItem:function(t){t.state.lastItem&&t.commit("setLastItem",null)},post:function(t){var e=t.state.data;this.setData(t,e,!0)},updateOrder:function(t,e){var n=t.state.saveAlways,r=e.filter((function(t){return t&&!t.parentId}));e.filter((function(t){return t&&t.parentId})).forEach((function(t){return r.push(t)})),this.setData(t,r,n)},insertItem:function(t,e){t.commit("setLastItem",e.isContainer?null:e)},save:function(t){Kt?Kt({task_data:t}):Ht&&Object(qt.b)(Ht,{task_data:t})}},mutations:{setData:function(t,e){return t.data=e,t},setSaveAlways:function(t,e){return t.saveAlways=e,t},setLastItem:function(t,e){return t.lastItem=e,t}},initialState:{data:[],saveAlways:!0,lastItem:null}});Wt.setExternalHandler=function(t,e){Yt=t,Kt=e};var Gt=Wt,Qt=n(82),Zt=n.n(Qt),Jt=n(43),Xt=n.n(Jt),$t=n(61),te=n.n($t),ee=function(t){var e=b.a.useState(null),r=Xt()(e,2),o=r[0],i=r[1];if(b.a.useEffect((function(){(function(){var t=Zt()(te.a.mark((function t(){var e;return te.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(1).then(n.bind(null,316));case 2:e=t.sent,i((function(){return e.default}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}})()()}),[]),!o)return b.a.createElement("div",null,"Loading...");var a=o;return b.a.createElement(a,t)},ne=n(24),re=n.n(ne),oe=n(28),ie=n.n(oe),ae=n(7);function se(t){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t){return"function"==typeof t}function ue(){}function le(t){if(!function(t){return"object"===se(t)&&null!==t}(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function fe(t,e,n){var r=n.getRegistry(),o=r.addTarget(t,e);return[o,function(){return r.removeTarget(o)}]}function pe(t,e,n){var r=n.getRegistry(),o=r.addSource(t,e);return[o,function(){return r.removeSource(o)}]}function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){return"string"==typeof t||"symbol"===de(t)||!!e&&Array.isArray(t)&&t.every((function(t){return he(t,!1)}))}function ge(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=t[u],f=e[u];if(!1===(o=n?n.call(r,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}function me(t,e){"function"==typeof t?t(e):t.current=e}function ye(t,e){var n=t.ref;return Object(ae.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)(t,{ref:function(t){me(n,t),me(e,t)}}):Object(v.cloneElement)(t,{ref:e})}function ve(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function be(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var o=function(t){return function(){var e=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)(e)){var r=e;return t(r,n),r}var o=e;ve(o);var i=n?function(e){return t(e,n)}:t;return ye(o,i)}}(r);e[n]=function(){return o}}})),e}function we(t){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _e(t){return null!==t&&"object"===we(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function Oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Se=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hooks=be({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,_e(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var e,n,r;return e=t,(n=[{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,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!ge(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(t){this.dropTargetOptionsInternal=t}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Oe(e.prototype,n),r&&Oe(e,r),t}();function Ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ke=!1,je=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(ae.a)(!ke,"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 ke=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ke=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{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()}}])&&Ee(e.prototype,n),r&&Ee(e,r),t}();function Me(t){var e=t.current;return null==e?null:e.decoratedRef?e.decoratedRef.current:e}function Ce(t){return(e=t)&&e.prototype&&"function"==typeof e.prototype.render||function(t){var e,n=t;return"Symbol(react.forward_ref)"===(null==n||null===(e=n.$$typeof)||void 0===e?void 0:e.toString())}(t);var e}var xe=n(55),De=n.n(xe),Te=n(56);function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ne(t,e,n){return e&&Le(t.prototype,e),n&&Le(t,n),t}var Ae,Pe=((Ae=function(){function t(e){Ie(this,t),this.isDisposed=!1,this.action=ce(e)?e:ue}return Ne(t,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(t){return Boolean(t&&ce(t.dispose))}},{key:"_fixup",value:function(e){return t.isDisposable(e)?e:t.empty}},{key:"create",value:function(e){return new t(e)}}]),t}()).empty={dispose:ue},Ae),Re=function(){function t(){Ie(this,t),this.isDisposed=!1;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.disposables=n}return Ne(t,[{key:"add",value:function(t){this.isDisposed?t.dispose():this.disposables.push(t)}},{key:"remove",value:function(t){var e=!1;if(!this.isDisposed){var n=this.disposables.indexOf(t);-1!==n&&(e=!0,this.disposables.splice(n,1),t.dispose())}return e}},{key:"clear",value:function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];this.disposables=[];for(var r=0;r<t;r++)e[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];this.disposables=[];for(var r=0;r<t;r++)e[r].dispose()}}}]),t}(),ze=function(){function t(){Ie(this,t),this.isDisposed=!1}return Ne(t,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(t){var e=this.isDisposed;if(!e){var n=this.current;this.current=t,n&&n.dispose()}e&&t&&t.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=void 0,t&&t.dispose()}}}]),t}();function Be(t){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(t,e)}(t,e)||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 Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function He(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e){return(Ke=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ye(t){var e=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(t){return!1}}();return function(){var n,r=qe(t);if(e){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(t,e){return!e||"object"!==Be(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function We(t){var e=t.DecoratedComponent,n=t.createHandler,r=t.createMonitor,o=t.createConnector,i=t.registerHandler,a=t.containerDisplayName,s=t.getType,c=t.collect,u=t.options.arePropsEqual,l=void 0===u?ge:u,f=e,p=e.displayName||e.name||"Component",d=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ke(t,e)}(h,t);var e,a,u,d=Ye(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=d.call(this,t)).decoratedRef=v.createRef(),e.handleChange=function(){var t=e.getCurrentState();ge(t,e.state)||e.setState(t)},e.disposable=new ze,e.receiveProps(t),e.dispose(),e}return e=h,(a=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(ae.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(t,e){return!l(t,this.props)||!ge(e,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new ze,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(t){l(this.props,t)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(t){this.handler&&(this.handler.receiveProps(t),this.receiveType(s(t)))}},{key:"receiveType",value:function(t){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&t!==this.currentType){this.currentType=t;var e=Fe(i(t,this.handler,this.manager),2),n=e[0],r=e[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 Re(new Pe(o),new Pe(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 t=this;return v.createElement(Te.a.Consumer,null,(function(e){var n=e.dragDropManager;return t.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var e;return null===(e=t.handlerConnector)||void 0===e?void 0:e.reconnect()})),v.createElement(f,Object.assign({},t.props,t.getCurrentState(),{ref:Ce(f)?t.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(t){void 0===this.manager&&(Object(ae.a)(void 0!==t,"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",p,p),void 0!==t&&(this.manager=t,this.handlerMonitor=r(t),this.handlerConnector=o(t.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&He(e.prototype,a),u&&He(e,u),h}(v.Component);return t.DecoratedComponent=e,t.displayName="".concat(a,"(").concat(p,")"),t}();return De()(d,e)}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Qe=["canDrop","hover","drop"],Ze=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=null,this.spec=e,this.monitor=n,this.ref=r}var e,n,r;return e=t,(n=[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveMonitor",value:function(t){this.monitor=t}},{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,Me(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Ge(e.prototype,n),r&&Ge(e,r),t}();function Je(t){return Object.keys(t).forEach((function(e){Object(ae.a)(Qe.indexOf(e)>-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',Qe.join(", "),e),Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),function(e,n){return new Ze(t,e,n)}}function Xe(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t;"function"!=typeof t&&(Object(ae.a)(he(t,!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',t),o=function(){return t}),Object(ae.a)(le(e),'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',e);var i=Je(e);return Object(ae.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(ae.a)(le(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(t){return We({containerDisplayName:"DropTarget",createHandler:i,registerHandler:fe,createMonitor:function(t){return new je(t)},createConnector:function(t){return new Se(t)},DecoratedComponent:t,getType:o,collect:n,options:r})}}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var tn=!1,en=!1,nn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(ae.a)(!tn,"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 tn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{tn=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(ae.a)(!en,"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 en=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{en=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{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(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{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()}}])&&$e(e.prototype,n),r&&$e(e,r),t}();function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var on=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hooks=be({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,_e(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,_e(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,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=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{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!ge(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ge(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(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{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(e.prototype,n),r&&rn(e,r),t}();function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var sn=["canDrag","beginDrag","isDragging","endDrag"],cn=["beginDrag"],un=function(){function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=e,this.monitor=n,this.ref=r}var e,n,r;return e=t,(n=[{key:"receiveProps",value:function(t){this.props=t}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(t,e){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):e===t.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,Me(this.ref))}}])&&an(e.prototype,n),r&&an(e,r),t}();function ln(t){return Object.keys(t).forEach((function(e){Object(ae.a)(sn.indexOf(e)>-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(", "),e),Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),cn.forEach((function(e){Object(ae.a)("function"==typeof t[e],"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",e,e,t[e])})),function(e,n){return new un(t,e,n)}}function fn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t;"function"!=typeof t&&(Object(ae.a)(he(t),'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',t),o=function(){return t}),Object(ae.a)(le(e),'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',e);var i=ln(e);return Object(ae.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(ae.a)(le(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(t){return We({containerDisplayName:"DragSource",createHandler:i,registerHandler:pe,createConnector:function(t){return new on(t)},createMonitor:function(t){return new nn(t)},DecoratedComponent:t,getType:o,collect:n,options:r})}}var pn="card",dn="box";function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mn(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var yn={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},vn={beginDrag:function(t){return{itemType:pn,id:t.id,index:t.index}}},bn={drop:function(t,e,n){if(n){var r=e.getItem(),o=t.index,i=r.index;t.data&&t.data.isContainer||r.itemType===pn||r.data&&"function"==typeof r.setAsChild&&-1===i&&t.insertCard(r,o,r.id)}},hover:function(t,e,n){var r,o,i=e.getItem();if((i.itemType!==dn||-1!==i.index)&&(null===(r=t.data)||void 0===r||!r.isContainer||null!==(o=i.data)&&void 0!==o&&o.isContainer)){var a=i.index,s=t.index;if(a!==s){if(-1===a){if(t.data&&t.data.isContainer)return;i.index=s,t.insertCard(i.onCreate(i.data),s)}var c=Object(oe.findDOMNode)(n).getBoundingClientRect(),u=(c.bottom-c.top)/2,l=e.getClientOffset().y-c.top;a<s&&l<u||a>s&&l>u||(t.moveCard(a,s),i.index=s)}}}},wn=function(t){var e=function(e){d()(r,e);var n=mn(r);function r(){return s()(this,r),n.apply(this,arguments)}return u()(r,[{key:"render",value:function(){var e=this.props,n=e.isDragging?0:1;return(0,e.connectDragPreview)((0,e.connectDropTarget)(b.a.createElement("div",null,b.a.createElement(t,i()({},this.props,{style:gn(gn({},yn),{},{opacity:n})})))))}}]),r}(v.Component);Bt()(e,"propTypes",{connectDragSource:re.a.func,connectDragPreview:re.a.func,connectDropTarget:re.a.func,index:re.a.number.isRequired,isDragging:re.a.bool,id:re.a.any.isRequired,moveCard:re.a.func.isRequired,seq:re.a.number}),Bt()(e,"defaultProps",{seq:-1});var n=Xe([pn,dn],bn,(function(t){return{connectDropTarget:t.dropTarget()}}))(e);return fn(pn,vn,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging()}}))(n)};function _n(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var On=function(t){d()(n,t);var e=_n(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props.intl,e=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?t.formatMessage({id:"drop-zone"}):this.props.text:"";return b.a.createElement("div",{className:e},b.a.createElement("div",null,n))}}]),n}(b.a.Component),Sn=Object(Z.c)(On);On.propTypes={text:re.a.string,show:re.a.bool},On.defaultProps={text:"Dropzone",show:!1};var En=n(68),kn=n.n(En),jn=n(111),Mn=n(46),Cn=n.n(Mn),xn=n(4),Dn=n(5),Tn=n(6),In=n(35),Ln=n(25),Nn=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function An(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(r=t[n],o=e[n],!(r===o||Nn(r)&&Nn(o)))return!1;var r,o;return!0}var Pn=function(t,e){var n;void 0===e&&(e=An);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&e(a,o)||(r=t.apply(this,a),i=!0,n=this,o=a),r}},Rn=n(88);var zn=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(r);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,i?0:o.cssRules.length)}catch(t){0}}else r.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();var Bn=function(t){function e(t,e,r){var o=e.trim().split(h);e=o;var i=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<i;++s)e[s]=n(t,e[s],r).trim();break;default:var c=s=0;for(e=[];s<i;++s)for(var u=0;u<a;++u)e[c++]=n(t[u]+" ",o[s],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,i){var a=t+";",s=2*e+3*n+4*i;if(944===s){t=a.indexOf(":",9)+1;var c=a.substring(t,a.length-1).trim();return c=a.substring(0,t).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 p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(e=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){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(e=(a=t).length-10,s=(c=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.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(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,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(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),L(2!==e?r:r.replace(S,"$1"),n,e)}function i(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(_," or ($1)").substring(4):"("+e+")"}function a(t,e,n,r,o,i,a,s,u,l){for(var f,p=0,d=e;p<I;++p)switch(f=T[p].call(c,t,d,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==e)return d}function s(t){return void 0!==(t=t.prefix)&&(L=null,t?"function"!=typeof t?x=1:(x=2,L=t):x=0),s}function c(t,n){var s=t;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var c=a(-1,n,s,s,M,j,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var f=function t(n,s,c,f,p){for(var d,h,g,b,_,O=0,S=0,E=0,k=0,T=0,L=0,A=g=d=0,P=0,R=0,z=0,B=0,F=c.length,U=F-1,H="",K="",Y="",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),g=1,B=++P;P<F;){switch(h=c.charCodeAt(P)){case 123:g++;break;case 125:g--;break;case 47:switch(h=c.charCodeAt(P+1)){case 42:case 47:t:{for(A=P+1;A<U;++A)switch(c.charCodeAt(A)){case 47:if(42===h&&42===c.charCodeAt(A-1)&&P+2!==A){P=A+1;break t}break;case 10:if(47===h){P=A+1;break t}}P=A}}break;case 91:h++;case 40:h++;case 34:case 39:for(;P++<U&&c.charCodeAt(P)!==h;);}if(0===g)break;P++}switch(g=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=(g=t(s,R,g,h,p+1)).length,0<I&&(_=a(3,g,R=e(D,H,z),s,M,j,B,h,p,f),H=R.join(""),void 0!==_&&0===(B=(g=_.trim()).length)&&(h=0,g="")),0<B)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(m,"$1 $2"))+"{"+g+"}",g=1===x||2===x&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===f&&(K+=g,g="")}else g="";break;default:g=t(s,e(s,H,z),g,f,p+1)}Y+=g,g=z=R=A=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===A&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(B=(H=H.replace(" ",":")).length),0<I&&void 0!==(_=a(1,H,s,n,M,j,K.length,f,p,f))&&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)&&(K+=r(H,d,h,H.charCodeAt(2)))}z=R=A=d=0,H="",h=c.charCodeAt(++P)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==f&&0<H.length&&(R=1,H+="\0"),0<I*N&&a(0,H,s,n,M,j,K.length,f,p,f),j=1,M++;break;case 59:case 125:if(0===S+k+E+O){j++;break}default:switch(j++,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+C&&0<A)switch(P-A){case 2:112===T&&58===c.charCodeAt(P-3)&&(C=T);case 8:111===L&&(C=L)}break;case 58:0===k+S+O&&(A=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*L){case 533:break;default:d=1}E++}break;case 64:0===S+E+k+O+A+g&&(g=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)&&(K+=c.substring(B,P+1)),b="",S=0)}}0===S&&(H+=b)}L=T,T=h,P++}if(0<(B=K.length)){if(R=s,0<I&&(void 0!==(_=a(2,K,R,n,M,j,B,f,p,f))&&0===(K=_).length))return V+K+Y;if(K=R.join(",")+"{"+K+"}",0!=x*C){switch(2!==x||o(K,2)||(C=0),C){case 111:K=K.replace(v,":-moz-$1")+K;break;case 112:K=K.replace(y,"::-webkit-input-$1")+K.replace(y,"::-moz-$1")+K.replace(y,":-ms-input-$1")+K}C=0}}return V+K+Y}(D,s,n,0,0);return 0<I&&(void 0!==(c=a(-2,f,s,s,M,j,f.length,0,0,0))&&(f=c)),"",C=0,j=M=1,f}var u=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(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\()/,j=1,M=1,C=0,x=1,D=[],T=[],I=0,L=null,N=0;return c.use=function t(e){switch(e){case void 0:case null:I=T.length=0;break;default:if("function"==typeof e)T[I++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else N=0|!!e}return t},c.set=s,void 0!==t&&s(t),c};function Fn(t){t&&Un.current.insert(t+"}")}var Un={current:null},Hn=function(t,e,n,r,o,i,a,s,c,u){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return Un.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+"/*|*/";break;case 3:switch(s){case 102:case 112:return Un.current.insert(n[0]+e),"";default:return e+(0===u?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(Fn)}},Kn=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r=new Bn(e);var o,i={};o=t.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){i[t]=!0})),t.parentNode!==o&&o.appendChild(t)})),r.use(t.stylisPlugins)(Hn),a=function(t,e,n,o){var i=e.name;Un.current=n,r(t,e.styles),o&&(c.inserted[i]=!0)};var c={key:n,sheet:new zn({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:i,registered:{},insert:a};return c};n(205);function Yn(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var Vn=function(t,e,n){var r=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var o=e;do{t.insert("."+r,o,t.sheet,!0);o=o.next}while(void 0!==o)}};var qn=function(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Wn={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(t){return 45===t.charCodeAt(1)},Jn=function(t){return null!=t&&"boolean"!=typeof t},Xn=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return Zn(t)?t:t.replace(Gn,"-$&").toLowerCase()})),$n=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Qn,(function(t,e,n){return er={name:e,styles:n,next:er},e}))}return 1===Wn[t]||Zn(t)||"number"!=typeof e||0===e?e:e+"px"};function tr(t,e,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 er={name:n.name,styles:n.styles,next:er},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)er={name:o.name,styles:o.styles,next:er},o=o.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=tr(t,e,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=e&&void 0!==e[a]?r+=i+"{"+e[a]+"}":Jn(a)&&(r+=Xn(i)+":"+$n(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=tr(t,e,a,!1);switch(i){case"animation":case"animationName":r+=Xn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Jn(a[c])&&(r+=Xn(i)+":"+$n(i,a[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var i=er,a=n(t);return er=i,tr(t,e,a,r)}break;case"string":}if(null==e)return n;var s=e[n];return void 0===s||r?n:s}var er,nr=/label:\s*([^\s;\n{]+)\s*;/g;var rr=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";er=void 0;var i=t[0];null==i||void 0===i.raw?(r=!1,o+=tr(n,e,i,!1)):o+=i[0];for(var a=1;a<t.length;a++)o+=tr(n,e,t[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:qn(o)+c,styles:o,next:er}},or=Object.prototype.hasOwnProperty,ir=Object(v.createContext)("undefined"!=typeof HTMLElement?Kn():null),ar=Object(v.createContext)({}),sr=ir.Provider,cr=function(t){var e=function(e,n){return Object(v.createElement)(ir.Consumer,null,(function(r){return t(e,r,n)}))};return Object(v.forwardRef)(e)},ur="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lr=function(t,e){var n={};for(var r in e)or.call(e,r)&&(n[r]=e[r]);return n[ur]=t,n},fr=function(){return null},pr=function(t,e,n,r){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[ur],a=[o],s="";"string"==typeof e.className?s=Yn(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=rr(a);Vn(t,c,"string"==typeof i);s+=t.key+"-"+c.name;var u={};for(var l in e)or.call(e,l)&&"css"!==l&&l!==ur&&(u[l]=e[l]);u.ref=r,u.className=s;var f=Object(v.createElement)(i,u),p=Object(v.createElement)(fr,null);return Object(v.createElement)(v.Fragment,null,p,f)},dr=cr((function(t,e,n){return"function"==typeof t.css?Object(v.createElement)(ar.Consumer,null,(function(r){return pr(e,t,r,n)})):pr(e,t,null,n)}));var hr=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return rr(e)},gr=function(t,e){var n=arguments;if(null==e||!or.call(e,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=dr,o[1]=lr(t,e);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)},mr=(v.Component,function t(e){for(var n=e.length,r=0,o="";r<n;r++){var i=e[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=t(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(t,e,n){var r=[],o=Yn(t,r,n);return r.length<2?n:o+e(r)}var vr=function(){return null},br=cr((function(t,e){return Object(v.createElement)(ar.Consumer,null,(function(n){var r=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=rr(n,e.registered);return Vn(e,o,!1),e.key+"-"+o.name},o={css:r,cx:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return yr(e.registered,r,mr(n))},theme:n},i=t.children(o);var a=Object(v.createElement)(vr,null);return Object(v.createElement)(v.Fragment,null,a,i)}))})),wr=(n(63),n(89));function _r(t,e){if(null==t)return{};var n,r,o=Object(wr.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Or=n(12);var Sr=n(59);function Er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||Object(Sr.a)(t,e)||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(69);function jr(t){return function(t){if(Array.isArray(t))return Object(kr.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(Sr.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mr=n(1),Cr=n(2),xr=n(31);var Dr=n(109),Tr=n.n(Dr),Ir=function(){};function Lr(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function Nr(t,e,n){var r=[n];if(e&&t)for(var o in e)e.hasOwnProperty(o)&&e[o]&&r.push("".concat(Lr(t,o)));return r.filter((function(t){return t})).map((function(t){return String(t).trim()})).join(" ")}var Ar=function(t){return Array.isArray(t)?t.filter(Boolean):"object"===Object(xr.a)(t)&&null!==t?[t]:[]};function Pr(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Rr(t){return Pr(t)?window.pageYOffset:t.scrollTop}function zr(t,e){Pr(t)?window.scrollTo(0,e):t.scrollTop=e}function Br(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function Fr(t,e){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(t),i=e-o,a=10,s=0;function c(){var e=Br(s+=a,o,i,n);zr(t,e),s<n?window.requestAnimationFrame(c):r(t)}c()}function Ur(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yr(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}function Vr(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.theme.spacing,c=function(t){var e=getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===e.position)return o;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,y=Rr(c),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=g-b,_=m-h,O=w+y,S=l-y-h,E=p-m+y+v,k=y+h-b;switch(o){case"auto":case"bottom":if(_>=d)return{placement:"bottom",maxHeight:e};if(S>=d&&!a)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:e};if(!a&&S>=r||a&&_>=r)return i&&Fr(c,E,160),{placement:"bottom",maxHeight:a?_-v:S-v};if("auto"===o||a){var j=e,M=a?w:O;return M>=r&&(j=Math.min(M-v-s.controlHeight,e)),{placement:"top",maxHeight:j}}if("bottom"===o)return zr(c,E),{placement:"bottom",maxHeight:e};break;case"top":if(w>=d)return{placement:"top",maxHeight:e};if(O>=d&&!a)return i&&Fr(c,k,160),{placement:"top",maxHeight:e};if(!a&&O>=r||a&&w>=r){var C=e;return(!a&&O>=r||a&&w>=r)&&(C=a?w-b:O-b),i&&Fr(c,k,160),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var qr=function(t){return"auto"===t?"bottom":t},Wr=Object(v.createContext)({getPortalPlacement:null}),Gr=function(t){Object(Tn.a)(n,t);var e=Yr(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(e){var u="fixed"===a,l=Vr({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),f=t.context.getPortalPlacement;f&&f(l),t.setState(l)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||qr(e);return Kr(Kr({},t.props),{},{placement:n,maxHeight:t.state.maxHeight})},t}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=Wr;var Qr=function(t){var e=t.theme,n=e.spacing.baseUnit;return{color:e.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Zr=Qr,Jr=Qr,Xr=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("noOptionsMessage",t),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),e)};Xr.defaultProps={children:"No options"};var $r=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("loadingMessage",t),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),e)};$r.defaultProps={children:"Loading..."};var to=function(t){Object(Tn.a)(n,t);var e=Yr(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==qr(t.props.menuPlacement)&&t.setState({placement:n})},t}return Object(Dn.a)(n,[{key:"render",value:function(){var t=this.props,e=t.appendTo,n=t.children,r=t.controlElement,o=t.menuPlacement,i=t.menuPosition,a=t.getStyles,s="fixed"===i;if(!e&&!s||!r)return null;var c=this.state.placement||qr(o),u=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(r),l=s?0:window.pageYOffset,f=u[c]+l,p=gr("div",{css:a("menuPortal",{offset:f,position:i,rect:u})},n);return gr(Wr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},e?Object(oe.createPortal)(p,e):p)}}]),n}(v.Component),eo=Array.isArray,no=Object.keys,ro=Object.prototype.hasOwnProperty;function oo(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==Object(xr.a)(e)&&"object"==Object(xr.a)(n)){var r,o,i,a=eo(e),s=eo(n);if(a&&s){if((o=e.length)!=n.length)return!1;for(r=o;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(a!=s)return!1;var c=e instanceof Date,u=n instanceof Date;if(c!=u)return!1;if(c&&u)return e.getTime()==n.getTime();var l=e instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return e.toString()==n.toString();var p=no(e);if((o=p.length)!==no(n).length)return!1;for(r=o;0!=r--;)if(!ro.call(n,p[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=p[r])&&e.$$typeof||t(e[i],n[i])))return!1;return!0}return e!=e&&n!=n}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}function io(){var t,e,n=(t=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));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(t){var e=t.size,n=_r(t,["size"]);return gr("svg",Object(Or.a)({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ao},n))},co=function(t){return gr(so,Object(Or.a)({size:20},t),gr("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(t){return gr(so,Object(Or.a)({size:20},t),gr("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(t){var e=t.isFocused,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:e?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:e?o.neutral80:o.neutral40}}},fo=lo,po=lo,ho=function(){var t=hr.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(io()),go=function(t){var e=t.delay,n=t.offset;return gr("span",{css:hr({animation:"".concat(ho," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},mo=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps,i=t.isRtl;return gr("div",Object(Or.a)({},o,{css:r("loadingIndicator",t),className:n({indicator:!0,"loading-indicator":!0},e)}),gr(go,{delay:0,offset:i}),gr(go,{delay:160,offset:!0}),gr(go,{delay:320,offset:!i}))};mo.defaultProps={size:4};function yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _o=function(t){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:t?0:1,outline:0,padding:0,color:"inherit"}};function Oo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function So(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Eo=function(t){var e=t.children,n=t.innerProps;return gr("div",n,e)},ko=Eo,jo=Eo;var Mo=function(t){var e=t.children,n=t.className,r=t.components,o=t.cx,i=t.data,a=t.getStyles,s=t.innerProps,c=t.isDisabled,u=t.removeProps,l=t.selectProps,f=r.Container,p=r.Label,d=r.Remove;return gr(br,null,(function(r){var h=r.css,g=r.cx;return gr(f,{data:i,innerProps:So(So({},s),{},{className:g(h(a("multiValue",t)),o({"multi-value":!0,"multi-value--is-disabled":c},n))}),selectProps:l},gr(p,{data:i,innerProps:{className:g(h(a("multiValueLabel",t)),o({"multi-value__label":!0},n))},selectProps:l},e),gr(d,{data:i,innerProps:So({className:g(h(a("multiValueRemove",t)),o({"multi-value__remove":!0},n))},u),selectProps:l}))}))};Mo.defaultProps={cropWithEllipsis:!0};function Co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Co(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}for(var Do={ClearIndicator:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({},i,{css:o("clearIndicator",t),className:r({indicator:!0,"clear-indicator":!0},n)}),e||gr(co,null))},Control:function(t){var e=t.children,n=t.cx,r=t.getStyles,o=t.className,i=t.isDisabled,a=t.isFocused,s=t.innerRef,c=t.innerProps,u=t.menuIsOpen;return gr("div",Object(Or.a)({ref:s,css:r("control",t),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},c),e)},DropdownIndicator:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({},i,{css:o("dropdownIndicator",t),className:r({indicator:!0,"dropdown-indicator":!0},n)}),e||gr(uo,null))},DownChevron:uo,CrossIcon:co,Group:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.Heading,a=t.headingProps,s=t.label,c=t.theme,u=t.selectProps;return gr("div",{css:o("group",t),className:r({group:!0},n)},gr(i,Object(Or.a)({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),s),gr("div",null,e))},GroupHeading:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.theme,i=(t.selectProps,_r(t,["className","cx","getStyles","theme","selectProps"]));return gr("div",Object(Or.a)({css:r("groupHeading",vo({theme:o},i)),className:n({"group-heading":!0},e)},i))},IndicatorsContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles;return gr("div",{css:o("indicatorsContainer",t),className:r({indicators:!0},n)},e)},IndicatorSeparator:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps;return gr("span",Object(Or.a)({},o,{css:r("indicatorSeparator",t),className:n({"indicator-separator":!0},e)}))},Input:function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerRef,i=t.isHidden,a=t.isDisabled,s=t.theme,c=(t.selectProps,_r(t,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return gr("div",{css:r("input",wo({theme:s},c))},gr(Tr.a,Object(Or.a)({className:n({input:!0},e),inputRef:o,inputStyle:_o(i),disabled:a},c)))},LoadingIndicator:mo,Menu:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerRef,a=t.innerProps;return gr("div",Object(Or.a)({css:o("menu",t),className:r({menu:!0},n)},a,{ref:i}),e)},MenuList:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isMulti,a=t.innerRef,s=t.innerProps;return gr("div",Object(Or.a)({css:o("menuList",t),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),e)},MenuPortal:to,LoadingMessage:$r,NoOptionsMessage:Xr,MultiValue:Mo,MultiValueContainer:ko,MultiValueLabel:jo,MultiValueRemove:function(t){var e=t.children,n=t.innerProps;return gr("div",n,e||gr(co,{size:14}))},Option:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.isFocused,s=t.isSelected,c=t.innerRef,u=t.innerProps;return gr("div",Object(Or.a)({css:o("option",t),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:c},u),e)},Placeholder:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return gr("div",Object(Or.a)({css:o("placeholder",t),className:r({placeholder:!0},n)},i),e)},SelectContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps,a=t.isDisabled,s=t.isRtl;return gr("div",Object(Or.a)({css:o("container",t),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),e)},SingleValue:function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.innerProps;return gr("div",Object(Or.a)({css:o("singleValue",t),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),e)},ValueContainer:function(t){var e=t.children,n=t.className,r=t.cx,o=t.isMulti,i=t.getStyles,a=t.hasValue;return gr("div",{css:i("valueContainer",t),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},e)}},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(t){return t.letters})).join("")+"]","g"),Lo={},No=0;No<To.length;No++)for(var Ao=To[No],Po=0;Po<Ao.letters.length;Po++)Lo[Ao.letters[Po]]=Ao.base;var Ro=function(t){return t.replace(Io,(function(t){return Lo[t]}))};function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Bo=function(t){return t.replace(/^\s+|\s+$/g,"")},Fo=function(t){return"".concat(t.label," ").concat(t.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(t){return gr("span",Object(Or.a)({css:Uo},t))};function Ko(t){t.in,t.out,t.onExited,t.appear,t.enter,t.exit;var e=t.innerRef,n=(t.emotion,_r(t,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return gr("input",Object(Or.a)({ref:e},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 Yo(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var Vo=function(t){Object(Tn.a)(n,t);var e=Yo(n);function n(){return Object(xn.a)(this,n),e.apply(this,arguments)}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(oe.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(v.Component),qo=["boxSizing","height","overflow","paddingRight","position"],Wo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Go(t){t.preventDefault()}function Qo(t){t.stopPropagation()}function Zo(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function Jo(){return"ontouchstart"in window||navigator.maxTouchPoints}function Xo(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var $o=!(!window.document||!window.document.createElement),ti=0,ei=function(t){Object(Tn.a)(n,t);var e=Xo(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}return Object(Dn.a)(n,[{key:"componentDidMount",value:function(){var t=this;if($o){var e=this.props,n=e.accountForScrollbars,r=e.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&qo.forEach((function(e){var n=i&&i[e];t.originalStyles[e]=n})),n&&ti<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,c=window.innerWidth-s+a||0;Object.keys(Wo).forEach((function(t){var e=Wo[t];i&&(i[t]=e)})),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))),ti+=1}}},{key:"componentWillUnmount",value:function(){var t=this;if($o){var e=this.props,n=e.accountForScrollbars,r=e.touchScrollTarget,o=document.body,i=o&&o.style;ti=Math.max(ti-1,0),n&&ti<1&&qo.forEach((function(e){var n=t.originalStyles[e];i&&(i[e]=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(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}ei.defaultProps={accountForScrollbars:!0};var ri={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},oi=function(t){Object(Tn.a)(n,t);var e=ni(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return Object(Dn.a)(n,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.isEnabled,r=this.state.touchScrollTarget;return n?gr("div",null,gr("div",{onClick:this.blurSelectInput,css:ri}),gr(Vo,{innerRef:this.getScrollTarget},e),r?gr(ei,{touchScrollTarget:r}):null):e}}]),n}(v.PureComponent);function ii(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var ai=function(t){Object(Tn.a)(n,t);var e=ii(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(t){t.preventDefault(),t.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,c=t.scrollTarget,u=c.scrollTop,l=c.scrollHeight,f=c.clientHeight,p=t.scrollTarget,d=n>0,h=l-f-u,g=!1;h>n&&t.isBottom&&(i&&i(e),t.isBottom=!1),d&&t.isTop&&(s&&s(e),t.isTop=!1),d&&n>h?(o&&!t.isBottom&&o(e),p.scrollTop=l,g=!0,t.isBottom=!0):!d&&-n>u&&(a&&!t.isTop&&a(e),p.scrollTop=0,g=!0,t.isTop=!0),g&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}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(t){t&&("function"==typeof t.addEventListener&&t.addEventListener("wheel",this.onWheel,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(t){t&&("function"==typeof t.removeEventListener&&t.removeEventListener("wheel",this.onWheel,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.removeEventListener&&t.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(t){var e=t.isEnabled,n=void 0===e||e,r=_r(t,["isEnabled"]);return n?b.a.createElement(ai,r):r.children}var ci=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isSearchable,r=e.isMulti,o=e.label,i=e.isDisabled,a=e.tabSelectsValue;switch(t){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(t,e){var n=e.value,r=e.isDisabled;if(n)switch(t){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(t){return!!t.isDisabled};var fi={clearIndicator:po,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":null,pointerEvents:e?"none":null,position:"relative"}},control:function(t){var e=t.isDisabled,n=t.isFocused,r=t.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:e?o.neutral5:o.neutral0,borderColor:e?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:fo,group:function(t){var e=t.theme.spacing;return{paddingBottom:2*e.baseUnit,paddingTop:2*e.baseUnit}},groupHeading:function(t){var e=t.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*e.baseUnit,paddingRight:3*e.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:e?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:e?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(t){var e=t.isFocused,n=t.size,r=t.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:e?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(t){var e,n=t.placement,r=t.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return e={label:"menu"},Object(Mr.a)(e,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(n),"100%"),Object(Mr.a)(e,"backgroundColor",a.neutral0),Object(Mr.a)(e,"borderRadius",o),Object(Mr.a)(e,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(Mr.a)(e,"marginBottom",i.menuGutter),Object(Mr.a)(e,"marginTop",i.menuGutter),Object(Mr.a)(e,"position","absolute"),Object(Mr.a)(e,"width","100%"),Object(Mr.a)(e,"zIndex",1),e},menuList:function(t){var e=t.maxHeight,n=t.theme.spacing.baseUnit;return{maxHeight:e,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(t){var e=t.rect,n=t.offset,r=t.position;return{left:e.left,position:r,top:n,width:e.width,zIndex:1}},multiValue:function(t){var e=t.theme,n=e.spacing,r=e.borderRadius;return{label:"multiValue",backgroundColor:e.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(t){var e=t.theme,n=e.borderRadius,r=e.colors,o=t.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(t){var e=t.theme,n=e.spacing,r=e.borderRadius,o=e.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:t.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Zr,option:function(t){var e=t.isDisabled,n=t.isFocused,r=t.isSelected,o=t.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:e?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:!e&&(r?a.primary:a.primary50)}}},placeholder:function(t){var e=t.theme,n=e.spacing;return{label:"placeholder",color:e.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:e?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(t){var e=t.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(e.baseUnit/2,"px ").concat(2*e.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var pi={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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?di(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gi(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(In.a)(this,n)}}var mi,yi={backspaceRemovesValue:!0,blurInputOnSelect:Ur(),captureMenuScroll:!Ur(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(n),!0).forEach((function(e){Object(Mr.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},mi),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Bo(e):e,u=a?Bo(i(t)):i(t);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(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.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(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},vi=1,bi=function(t){Object(Tn.a)(n,t);var e=gi(n);function n(t){var r;Object(xn.a)(this,n),(r=e.call(this,t)).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(t){r.controlRef=t},r.focusedOptionRef=null,r.getFocusedOptionRef=function(t){r.focusedOptionRef=t},r.menuListRef=null,r.getMenuListRef=function(t){r.menuListRef=t},r.inputRef=null,r.getInputRef=function(t){r.inputRef=t},r.cacheComponents=function(t){var e;r.components=(e={components:t},xo(xo({},Do),e.components))},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(t,e){var n=r.props,o=n.onChange,i=n.name;o(t,hi(hi({},e),{},{name:i}))},r.setValue=function(t){var e=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(t,{action:e,option:n})},r.selectOption=function(t){var e=r.props,n=e.blurInputOnSelect,o=e.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(t,i)){var a=r.getOptionValue(t);r.setValue(i.filter((function(t){return r.getOptionValue(t)!==a})),"deselect-option",t),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(t)}})}else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue([].concat(jr(i),[t]),"select-option",t),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue(t,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));n&&r.blurInput()},r.removeValue=function(t){var e=r.state.selectValue,n=r.getOptionValue(t),o=e.filter((function(t){return r.getOptionValue(t)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:t}),r.announceAriaLiveSelection({event:"remove-value",context:{value:t?r.getOptionLabel(t):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var t=r.state.selectValue,e=t[t.length-1],n=t.slice(0,t.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:e?r.getOptionLabel(e):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:e})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Nr.apply(void 0,[r.props.classNamePrefix].concat(e))},r.getOptionLabel=function(t){return r.props.getOptionLabel(t)},r.getOptionValue=function(t){return r.props.getOptionValue(t)},r.getStyles=function(t,e){var n=fi[t](e);n.boxSizing="border-box";var o=r.props.styles[t];return o?o(n,e):n},r.getElementId=function(t){return"".concat(r.instancePrefix,"-").concat(t)},r.getActiveDescendentId=function(){var t=r.props.menuIsOpen,e=r.state,n=e.menuOptions,o=e.focusedOption;if(o&&t){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(t){var e=t.event,n=t.context;r.setState({ariaLiveSelection:ui(e,n)})},r.announceAriaLiveContext=function(t){var e=t.event,n=t.context;r.setState({ariaLiveContext:ci(e,hi(hi({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(t){r.blockOptionHover=!1},r.onControlMouseDown=function(t){var e=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&r.onMenuClose():e&&r.openMenu("first"):(e&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()},r.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||r.props.isDisabled)){var e=r.props,n=e.isMulti,o=e.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),t.preventDefault(),t.stopPropagation()}},r.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(r.clearValue(),t.stopPropagation(),r.openAfterFocus=!1,"touchend"===t.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(t){"boolean"==typeof r.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Pr(t.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(t)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(t){var e=t.touches,n=e&&e.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(t){var e=t.touches,n=e&&e.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(t){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(t.target)&&r.menuListRef&&!r.menuListRef.contains(t.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(t){r.userIsDragging||r.onControlMouseDown(t)},r.onClearIndicatorTouchEnd=function(t){r.userIsDragging||r.onClearIndicatorMouseDown(t)},r.onDropdownIndicatorTouchEnd=function(t){r.userIsDragging||r.onDropdownIndicatorMouseDown(t)},r.handleInputChange=function(t){var e=t.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(e,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(t){var e=r.props,n=e.isSearchable,o=e.isMulti;r.props.onFocus&&r.props.onFocus(t),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(t){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(t),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(t){r.blockOptionHover||r.state.focusedOption===t||r.setState({focusedOption:t})},r.shouldHideSelectedOptions=function(){var t=r.props,e=t.hideSelectedOptions,n=t.isMulti;return void 0===e?n:e},r.onKeyDown=function(t){var e=r.props,n=e.isMulti,o=e.backspaceRemovesValue,i=e.escapeClearsValue,a=e.inputValue,s=e.isClearable,c=e.isDisabled,u=e.menuIsOpen,l=e.onKeyDown,f=e.tabSelectsValue,p=e.openMenuOnFocus,d=r.state,h=d.focusedOption,g=d.focusedValue,m=d.selectValue;if(!(c||"function"==typeof l&&(l(t),t.defaultPrevented))){switch(r.blockOptionHover=!0,t.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(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(t.shiftKey||!u||!f||!h||p&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===t.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}t.preventDefault()}},r.buildMenuOptions=function(t,e){var n=t.inputValue,o=void 0===n?"":n,i=t.options,a=function(t,n){var i=r.isOptionDisabled(t,e),a=r.isOptionSelected(t,e),s=r.getOptionLabel(t),c=r.getOptionValue(t);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:t},o))){var u=i?void 0:function(){return r.onOptionHover(t)},l=i?void 0:function(){return r.selectOption(t)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:t,isDisabled:i,isSelected:a,key:f,label:s,type:"option",value:c}}};return i.reduce((function(t,e,n){if(e.options){r.hasGroups||(r.hasGroups=!0);var o=e.options.map((function(e,r){var o=a(e,"".concat(n,"-").concat(r));return o&&t.focusable.push(e),o})).filter(Boolean);if(o.length){var i="".concat(r.getElementId("group"),"-").concat(n);t.render.push({type:"group",key:i,data:e,options:o})}}else{var s=a(e,"".concat(n));s&&(t.render.push(s),t.focusable.push(e))}return t}),{render:[],focusable:[]})};var o=t.value;r.cacheComponents=Pn(r.cacheComponents,oo).bind(Object(Cr.a)(r)),r.cacheComponents(t.components),r.instancePrefix="react-select-"+(r.props.instanceId||++vi);var i=Ar(o);r.buildMenuOptions=Pn(r.buildMenuOptions,(function(t,e){var n=Er(t,2),r=n[0],o=n[1],i=Er(e,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(Object(Cr.a)(r));var a=t.menuIsOpen?r.buildMenuOptions(t,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(t){var e=this.props,n=e.options,r=e.value,o=e.menuIsOpen,i=e.inputValue;if(this.cacheComponents(t.components),t.value!==r||t.options!==n||t.menuIsOpen!==o||t.inputValue!==i){var a=Ar(t.value),s=t.menuIsOpen?this.buildMenuOptions(t,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(t){var e,n,r,o,i,a=this.props,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&t.isDisabled||u&&c&&!t.menuIsOpen)&&this.focusInput(),u&&s&&!t.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(e=this.menuListRef,n=this.focusedOptionRef,r=e.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?zr(e,Math.min(n.offsetTop+n.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<r.top&&zr(e,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 t=this.props,e=t.isSearchable,n=t.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:e,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=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"===t?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(){e.onMenuOpen(),e.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:c}})}))}},{key:"focusValue",value:function(t){var e=this.props,n=e.isMulti,r=e.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(t){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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props,n=e.pageSize,r=e.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"===t?c=u>0?u-1:s.length-1:"down"===t?c=(u+1)%s.length:"pageup"===t?(c=u-n)<0&&(c=0):"pagedown"===t?(c=u+n)>s.length-1&&(c=s.length-1):"last"===t&&(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(pi):hi(hi({},pi),this.props.theme):pi}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=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:e,clearValue:t,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(t){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var e=this.state,n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}},{key:"getNextFocusedOption",value:function(t){var e=this.state.focusedOption;return e&&t.indexOf(e)>-1?e:t[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 t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:"isOptionDisabled",value:function(t,e){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(t,e)}},{key:"isOptionSelected",value:function(t,e){var n=this;if(e.indexOf(t)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(t,e);var r=this.getOptionValue(t);return e.some((function(t){return n.getOptionValue(t)===r}))}},{key:"filterOption",value:function(t,e){return!this.props.filterOption||this.props.filterOption(t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:r})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{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 t=this.state,e=t.ariaLiveContext,n=t.selectValue,r=t.focusedValue,o=t.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,c=i.inputValue,u=i.screenReaderStatus,l=r?function(t){var e=t.focusedValue,n=t.getOptionLabel,r=t.selectValue;return"value ".concat(n(e)," focused, ").concat(r.indexOf(e)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(t){var e=t.focusedOption,n=t.getOptionLabel,r=t.options;return"option ".concat(n(e)," focused").concat(e.isDisabled?" disabled":"",", ").concat(r.indexOf(e)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(t){var e=t.inputValue,n=t.screenReaderMessage;return"".concat(n).concat(e?" for search term "+e:"",".")}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(p," ").concat(e)}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,n=t.isSearchable,r=t.inputId,o=t.inputValue,i=t.tabIndex,a=t.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(Ko,Object(Or.a)({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ir,onFocus:this.onInputFocus,readOnly:!0,disabled:e,tabIndex:i,form:a,value:""},l));var f=this.commonProps,p=f.cx,d=f.theme,h=f.selectProps;return b.a.createElement(s,Object(Or.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:e,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 t=this,e=this.components,n=e.MultiValue,r=e.MultiValueContainer,o=e.MultiValueLabel,i=e.MultiValueRemove,a=e.SingleValue,s=e.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,g=this.state,m=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!l)return d?null:b.a.createElement(s,Object(Or.a)({},c,{key:"placeholder",isDisabled:f,isFocused:v}),h);if(p)return m.map((function(e,a){var s=e===y;return b.a.createElement(n,Object(Or.a)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:f,key:"".concat(t.getOptionValue(e)).concat(a),index:a,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault(),t.stopPropagation()}},data:e}),t.formatOptionLabel(e,"value"))}));if(d)return null;var w=m[0];return b.a.createElement(a,Object(Or.a)({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.components.ClearIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(t,Object(Or.a)({},e,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.components.LoadingIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!t||!o)return null;return b.a.createElement(t,Object(Or.a)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.components,e=t.DropdownIndicator,n=t.IndicatorSeparator;if(!e||!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 t=this.components.DropdownIndicator;if(!t)return null;var e=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.a.createElement(t,Object(Or.a)({},e,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,e=this.components,n=e.Group,r=e.GroupHeading,o=e.Menu,i=e.MenuList,a=e.MenuPortal,s=e.LoadingMessage,c=e.NoOptionsMessage,u=e.Option,l=this.commonProps,f=this.state,p=f.focusedOption,d=f.menuOptions,h=this.props,g=h.captureMenuScroll,m=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,j=h.menuShouldBlockScroll,M=h.menuShouldScrollIntoView,C=h.noOptionsMessage,x=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!O)return null;var T,I=function(e){var n=p===e.data;return e.innerRef=n?t.getFocusedOptionRef:void 0,b.a.createElement(u,Object(Or.a)({},l,e,{isFocused:n}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())T=d.render.map((function(e){if("group"===e.type){e.type;var o=_r(e,["type"]),i="".concat(e.key,"-heading");return b.a.createElement(n,Object(Or.a)({},l,o,{Heading:r,headingProps:{id:i,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map((function(t){return I(t)})))}if("option"===e.type)return I(e)}));else if(y){var L=v({inputValue:m});if(null===L)return null;T=b.a.createElement(s,l,L)}else{var N=C({inputValue:m});if(null===N)return null;T=b.a.createElement(c,l,N)}var A={minMenuHeight:w,maxMenuHeight:_,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:M},P=b.a.createElement(Gr,Object(Or.a)({},l,A),(function(e){var n=e.ref,r=e.placerProps,a=r.placement,s=r.maxHeight;return b.a.createElement(o,Object(Or.a)({},l,A,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:a}),b.a.createElement(si,{isEnabled:g,onTopArrive:x,onBottomArrive:D},b.a.createElement(oi,{isEnabled:j},b.a.createElement(i,Object(Or.a)({},l,{innerRef:t.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 t=this,e=this.props,n=e.delimiter,r=e.isDisabled,o=e.isMulti,i=e.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(e){return t.getOptionValue(e)})).join(n);return b.a.createElement("input",{name:i,type:"hidden",value:s})}var c=a.length>0?a.map((function(e,n){return b.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:t.getOptionValue(e)})})):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 t=this.components,e=t.Control,n=t.IndicatorsContainer,r=t.SelectContainer,o=t.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.a.createElement(r,Object(Or.a)({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.a.createElement(e,Object(Or.a)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.a.createElement(o,Object(Or.a)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.a.createElement(n,Object(Or.a)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(v.Component);bi.defaultProps=yi;n(206);function wi(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.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(t){var e=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(t){return!1}}();return function(){var n,r=Object(Ln.a)(t);if(e){var o=Object(Ln.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,ji=(Si=bi,ki=Ei=function(t){Object(Tn.a)(n,t);var e=wi(n);function n(){var t;Object(xn.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}return Object(Dn.a)(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(t){return void 0!==this.props[t]?this.props[t]:this.state[t]}},{key:"callProp",value:function(t){if("function"==typeof this.props[t]){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=this.props)[t].apply(e,r)}}},{key:"render",value:function(){var t=this,e=this.props,n=(e.defaultInputValue,e.defaultMenuIsOpen,e.defaultValue,_r(e,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return b.a.createElement(Si,Object(Or.a)({},n,{ref:function(e){t.select=e},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),Mi=n(169),Ci=n.n(Mi),xi=n(170),Di=n.n(xi),Ti=n(171),Ii=n.n(Ti);function Li(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Ni=function(t){d()(n,t);var e=Li(n);function n(t){var r;s()(this,n),(r=e.call(this,t)).min=0,r.max=t.ratingAmount||5;var o=t.rating,i={pos:o?r.getStarRatingPosition(o):0,rating:t.rating};return r.state={ratingCache:i,editing:t.editing||!t.rating,stars:5,rating:i.rating,pos:i.pos,glyph:r.getStars()},r}return u()(n,[{key:"getStars",value:function(){for(var t="",e=this.props.ratingAmount,n=0;n<e;n++)t+="★";return t}},{key:"componentDidMount",value:function(){this.root=ie.a.findDOMNode(this.rootNode),this.ratingContainer=ie.a.findDOMNode(this.node)}},{key:"componentWillUnmount",value:function(){delete this.root,delete this.ratingContainer}},{key:"getPosition",value:function(t){return t.pageX-this.root.getBoundingClientRect().left}},{key:"applyPrecision",value:function(t,e){return parseFloat(t.toFixed(e))}},{key:"getDecimalPlaces",value:function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}},{key:"getWidthFromValue",value:function(t){var e=this.min,n=this.max;return t<=e||e===n?0:t>=n?100:t/(n-e)*100}},{key:"getValueFromPosition",value:function(t){var e=this.getDecimalPlaces(this.props.step),n=this.ratingContainer.offsetWidth,r=(this.max-this.min)*t/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),e);return o=Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(t){var e=this.getValueFromPosition(t),n=this.getWidthFromValue(e);return{width:n+="%",val:e}}},{key:"getStarRatingPosition",value:function(t){return"".concat(this.getWidthFromValue(t),"%")}},{key:"getRatingEvent",value:function(t){var e=this.getPosition(t);return this.calculate(e)}},{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(t){var e=this.getRatingEvent(t);this.updateRating(e.width,e.val)}},{key:"updateRating",value:function(t,e){this.setState({pos:t,rating:e})}},{key:"shouldComponentUpdate",value:function(t,e){return t!==this.props?(this.updateRating(this.getStarRatingPosition(t.rating),t.rating),!0):e.ratingCache.rating!==this.state.ratingCache.rating||e.rating!==this.state.rating}},{key:"handleClick",value:function(t){if(this.props.disabled)return t.stopPropagation(),t.preventDefault(),!1;var e={pos:this.state.pos,rating:this.state.rating,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:e}),this.props.onRatingClick(t,e),!0}},{key:"treatName",value:function(t){return"string"==typeof t?t.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var t,e,n=this,r=Ii()((t={"react-star-rating__root":!0,"rating-disabled":this.props.disabled},Bt()(t,"react-star-rating__size--".concat(this.props.size),this.props.size),Bt()(t,"rating-editing",this.state.editing),t));return e=this.state.editing?b.a.createElement("div",{ref:function(t){return n.node=t},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(t){return n.node=t},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(t){return n.rootNode=t},style:{cursor:"pointer"},className:r},e,b.a.createElement("input",Bt()({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);Ni.propTypes={name:re.a.string.isRequired,caption:re.a.string,ratingAmount:re.a.number.isRequired,rating:re.a.number,onRatingClick:re.a.func,disabled:re.a.bool,editing:re.a.bool,size:re.a.string},Ni.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var Ai,Pi=n(314),Ri=n(315);function zi(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Bi={cursor:"move"},Fi={beginDrag:function(t){var e=t.data,n=t.index,r=t.onDestroy,o=t.setAsChild,i=t.getDataById;return{itemType:dn,index:e.parentId?-1:n,parentIndex:e.parentIndex,id:e.id,col:e.col,onDestroy:r,setAsChild:o,getDataById:i,data:e}}},Ui=function(t){d()(n,t);var e=zi(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"componentDidMount",value:function(){var t=this.props.connectDragPreview;t&&t((Ai||((Ai=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Ai),{captureDraggingState:!0})}},{key:"render",value:function(){return(0,this.props.connectDragSource)(b.a.createElement("div",{className:"btn is-isolated",style:Bi},b.a.createElement("i",{className:"is-isolated fas fa-grip-vertical"})))}}]),n}(v.PureComponent),Hi=fn(dn,Fi,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging()}}))(Ui);function Ki(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Yi=function(t){d()(n,t);var e=Ki(n);function n(){return s()(this,n),e.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(Hi,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}]),n}(b.a.Component),Vi=function(t){return t.mutable?null:b.a.createElement("div",null,t.data.pageBreakBefore&&b.a.createElement("div",{className:"preview-page-break"},"Page Break"),b.a.createElement(Yi,{isFieldSet:t.isFieldSet,parent:t.parent,editModeOn:t.editModeOn,data:t.data,index:t.index,setAsChild:t.setAsChild,onDestroy:t._onDestroy,onEdit:t.onEdit,static:t.data.static,required:t.data.required}))},qi=n(84),Wi=n.n(qi),Gi=new Wi.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:[]}}),Qi=function(t){var e=t.data.hasOwnProperty("required")&&!0===t.data.required&&!t.read_only,n=Gi.process(t.data.label);return n&&n.trim()?b.a.createElement("label",{className:t.className||"form-label",style:{marginTop:"0.5rem"}},b.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),e&&!t.hide_required_alert&&b.a.createElement("span",{className:"label-required badge badge-danger"},"Required")):null};function Zi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zi(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xi(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var $i=function(t){d()(n,t);var e=Xi(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"handleChange",(function(t){var e=r.state.formatMask,n=function(t){return t instanceof Date&&!Number.isNaN(t.getTime())},o="",i=null,a="";if(t&&t.value instanceof Date&&n(t.value))o=Object(Ri.a)(t.value,"yyyy-MM-dd"),i=t.value,a=e.toLowerCase();else if(t&&t.target){a=""===t.target.value?e.toLowerCase():"";var s=t.target.value?function(t,e){var n=["yyyy-MM-dd","MM/dd/yyyy",e].find((function(e){var n=Object(Pi.a)(t,e,new Date);return!Number.isNaN(n.getTime())}));return n?Object(Pi.a)(t,n,new Date):null}(t.target.value,e):null;n(s)?(o=Object(Ri.a)(s,"yyyy-MM-dd"),i=s):console.log("Invalid date:",t.target.value)}else t&&n(t)?(o=Object(Ri.a)(t,"yyyy-MM-dd"),i=t):console.log("Invalid date:",t);r.setState({value:o,internalValue:i,placeholder:a})})),r.inputField=b.a.createRef();var o=n.updateFormat(t,null).formatMask,i=n.updateDateTime(t,{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(t){var e=this.state,n=e.month,r=e.day,o=e.year,i=t.target.value;switch(t.target.name){case"month":i>12?this.setState({month:"12"}):this.setState({month:i});break;case"day":i>31?this.setState({day:"31"}):this.setState({day:i});break;case"year":i>(new Date).getFullYear()?this.setState({year:(new Date).getFullYear().toString()}):this.setState({year:i})}var a="month"===t.target.name?i:n,s="day"===t.target.name?i:r,c="year"===t.target.name?i:o;if(a&&s&&c){var u=new Date("".concat(c,"-").concat(a,"-").concat(s));this.handleChange({value:u})}}},{key:"render",value:function(){var t=this,e=this.props.data,n=(e.showTimeSelect,e.showTimeSelectOnly,e.showTimeInput,e.placeholder),r={type:"date",className:"form-control"};r.name=this.props.data.field_name;var o=this.props.data.readOnly||this.props.read_only;/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,this.state.formatMask.toLowerCase();this.props.mutable&&(r.defaultValue=this.props.defaultValue,r.ref=this.inputField);var i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),b.a.createElement("div",{className:i,style:Ji({},this.props.style)},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("div",null,o&&b.a.createElement("input",{type:"text",name:r.name,ref:r.ref,readOnly:o,placeholder:n||this.state.placeholder,value:this.state.value,className:"form-control"}),!o&&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(t){return t.target.value&&2===t.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(e){return t.handleDateChange(e)},className:"form-control",type:"text",style:{border:"none"},onFocus:function(e){return t.handleBirthdayFocus()},placeholder:n||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(t){return t.target.value&&2===t.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none"},onChange:function(e){return t.handleDateChange(e)},onFocus:function(e){return t.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"},onFocus:function(e){return t.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(e){return t.handleDateChange(e)}}))))))}}],[{key:"updateDateTime",value:function(t,e,n){var r,o,i=t.data.defaultToday;if(!i||""!==t.defaultValue&&void 0!==t.defaultValue)if(""===(r=t.defaultValue||""))o="";else{var a=Object(Pi.a)(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Object(Ri.a)(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(t,e){var n=t.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":t.data.dateFormat,s=r||i?t.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==e,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(t,e){var r=n.updateFormat(t,e.formatMask),o=r.updated,i=r.formatMask;return t.data.defaultToday!==e.defaultToday||o?n.updateDateTime(t,e,i):null}}]),n}(b.a.Component);function ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ea(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ta(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function na(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var ra={},oa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("h3",{className:t,dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),ia=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("p",{className:t,dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),aa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("label",{className:"".concat(t," form-label"),dangerouslySetInnerHTML:{__html:Gi.process(this.props.data.content)}}))}}]),n}(b.a.Component),sa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("hr",null))}}]),n}(b.a.Component),ca=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),ua=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),la=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"tel",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),fa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={type:"number",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("input",t)))}}]),n}(b.a.Component),pa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,this.props.read_only&&(t.disabled="disabled"),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("textarea",t)))}}]),n}(b.a.Component),da=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name,this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement("select",t,this.props.data.options.map((function(t){var e="preview_".concat(t.key);return b.a.createElement("option",{value:t.value,key:e},t.text)})))))}}]),n}(b.a.Component),ha=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"clear",(function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()})),r.state={defaultValue:t.defaultValue},r.inputField=b.a.createRef(),r.canvas=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t=this.state.defaultValue,e=!!t,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=t,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=t,r.ref=this.canvas,e=!this.props.read_only);var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),t&&t.length>0&&(o="data:image/png;base64,".concat(t)),b.a.createElement("div",{style:ea({},this.props.style),className:i},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),!0===this.props.read_only||o?b.a.createElement("img",{src:o}):b.a.createElement(Ci.a,r),e&&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),ga=function(t){d()(n,t);var e=na(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"handleChange",(function(t){r.setState({value:t||[]})})),r.inputField=b.a.createRef();var o=t.defaultValue,i=t.data;return r.state={value:r.getDefaultValue(o,i.options)},r}return u()(n,[{key:"getDefaultValue",value:function(t,e){if(t){if("string"==typeof t){var n=t.split(",").map((function(t){return t.trim()}));return e.filter((function(t){return n.indexOf(t.value)>-1}))}return e.filter((function(e){return t.indexOf(e.value)>-1}))}return[]}},{key:"render",value:function(){var t=this.props.data.options.map((function(t){return t.label=t.text,t})),e={isMulti:!0};e.name=this.props.data.field_name,e.onChange=this.handleChange,e.options=t,this.props.mutable||(e.value=t[0].text),this.props.mutable&&(e.isDisabled=this.props.read_only,e.value=this.state.value,e.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:n},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement(ji,e)))}}]),n}(b.a.Component),ma=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).options={},r}return u()(n,[{key:"render",value:function(){var t=this,e=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:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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,e.props.mutable&&(a.defaultChecked=void 0!==e.props.defaultValue&&e.props.defaultValue.indexOf(r.key)>-1),t.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(t){t&&e.props.mutable&&(e.options["child_ref_".concat(r.key)]=t)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ya=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";this.props.data.pageBreakBefore&&(t+=" alwaysbreak");var e={};return e.name=this.props.data.field_name,e.type="checkbox",e.defaultChecked=this.props.data.defaultChecked,this.props.mutable&&(e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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"},e)),b.a.createElement("label",{className:"custom-control-label",htmlFor:this.props.data.field_name,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}]),n}(b.a.Component),va=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).options={},r}return u()(n,[{key:"render",value:function(){var t=this,e=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:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),this.props.data.options.map((function(r){var o="preview_".concat(r.key),a={};return a.name=e.props.data.field_name,a.type="radio",a.value=r.value,e.props.mutable&&(a.defaultChecked=void 0!==e.props.defaultValue&&(e.props.defaultValue.indexOf(r.key)>-1||e.props.defaultValue.indexOf(r.value)>-1)),t.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(t){t&&e.props.mutable&&(e.options["child_ref_".concat(r.key)]=t)}},a)),b.a.createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},r.text))}))))}}]),n}(b.a.Component),ba=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props.data.center?{textAlign:"center"}:null,e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea(ea({},this.props.style),t),className:e},b.a.createElement(Vi,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),wa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t={};t.name=this.props.data.field_name,t.ratingAmount=5,this.props.mutable&&(t.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,t.editing=!0,t.disabled=this.props.read_only,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:e},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,this.props),b.a.createElement(Ni,t)))}}]),n}(b.a.Component),_a=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,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:Gi.process(this.props.data.content)}}))))}}]),n}(b.a.Component),Oa=function(t){d()(n,t);var e=na(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,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),Sa=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"displayImage",(function(t){var e=f()(r),n=t.target;n.files&&n.files.length&&e.setState({img:n.files[0],previewImg:URL.createObjectURL(n.files[0])})})),Bt()(f()(r),"clearImage",(function(){r.setState({img:null,previewImg:null})})),r.state={img:null,previewImg:null},r}return u()(n,[{key:"getImageSizeProps",value:function(t){var e=t.width,n=t.height,r={width:"100%"};return e&&(r.width=e<window.innerWidth?e:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var t,e=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&&(t=this.props.defaultValue.indexOf(o>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),b.a.createElement("div",{style:ea({},this.props.style),className:r},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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:t},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(e.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),Ea=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"displayFileUpload",(function(t){var e,n=f()(r),o=t.target;o.files&&o.files.length>0&&(e=o.files[0],n.setState({fileUpload:e}))})),Bt()(f()(r),"clearFileUpload",(function(){r.setState({fileUpload:null})})),Bt()(f()(r),"saveFile",function(){var t=Zt()(te.a.mark((function t(e){var n,o,i,a,s,c,u;return te.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),n=r.props.defaultValue,t.next=4,kn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 4:return o=t.sent,i=o.headers.get("Content-Disposition"),t.next=8,o.blob();case 8:a=t.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(jn.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),Object(jn.saveAs)(o.url,u));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),r.state={fileUpload:null},r}return u()(n,[{key:"render",value:function(){var t="SortableItem rfb-item",e=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:t},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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:e,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),ka=function(t){d()(n,t);var e=na(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"changeValue",(function(t){var e=t.target;r.setState({value:e.value})})),r.inputField=b.a.createRef(),r.state={value:void 0!==t.defaultValue?parseInt(t.defaultValue,10):parseInt(t.data.default_value,10)},r}return u()(n,[{key:"render",value:function(){var t={},e=this.props.data.field_name;t.type="range",t.list="tickmarks_".concat(e),t.min=this.props.data.min_value,t.max=this.props.data.max_value,t.step=this.props.data.step,t.value=this.state.value,t.change=this.changeValue,this.props.mutable&&(t.ref=this.inputField);for(var n=[],r=parseInt(t.min,10);r<=parseInt(t.max,10);r+=parseInt(t.step,10))n.push(r);var o=100/(n.length-1),i=n.map((function(e,n){return b.a.createElement("option",{key:"".concat(t.list,"_").concat(n)},e)})),a=n.map((function(e,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(t.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,e)}));this.props.read_only&&(t.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),b.a.createElement("div",{style:ea({},this.props.style),className:s},b.a.createElement(Vi,this.props),b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,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,t)),b.a.createElement("div",{className:"visible_marks"},a),b.a.createElement("input",{name:e,value:this.state.value,type:"hidden"}),b.a.createElement("datalist",{id:t.list},i)))}}]),n}(b.a.Component);ra.Header=oa,ra.Paragraph=ia,ra.Label=aa,ra.LineBreak=sa,ra.TextInput=ca,ra.EmailInput=ua,ra.PhoneNumber=la,ra.NumberInput=fa,ra.TextArea=pa,ra.Dropdown=da,ra.Signature=ha,ra.Checkboxes=ma,ra.Checkbox=ya,ra.DatePicker=$i,ra.RadioButtons=va,ra.Image=ba,ra.Rating=wa,ra.Tags=ga,ra.HyperLink=_a,ra.Download=Oa,ra.Camera=Sa,ra.FileUpload=Ea,ra.Range=ka;var ja=ra;function Ma(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ma(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xa(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Da=function(t){d()(n,t);var e=xa(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).inputField=b.a.createRef(),r}return u()(n,[{key:"render",value:function(){var t=this.props.data.bare,e={};if(e.name=this.props.data.field_name,e.defaultValue=this.props.defaultValue,this.props.mutable&&this.props.data.forwardRef&&(e.ref=this.inputField),this.props.read_only&&(e.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:Ca({},this.props.style)},b.a.createElement(Vi,this.props),t?b.a.createElement(n,i()({data:this.props.data},this.props.data.props,e)):b.a.createElement("div",{className:"form-group"},b.a.createElement(Qi,i()({className:"form-label"},this.props)),b.a.createElement(n,i()({data:this.props.data},this.props.data.props,e))))}}]),n}(v.Component);Da.propTypes={};var Ta=Da,Ia=n(48),La=n.n(Ia),Na=["onDropSuccess","seq","draggedItem","parentIndex","canDrop","isOver","isOverCurrent","connectDropTarget","items","col","getDataById"];function Aa(t,e){if(!t)return null;var n=t.custom?function(){return function(t,e){return t.component&&"function"==typeof t.component||(t.component=La.a.get(t.key),t.component||console.error("".concat(t.element," was not registered"))),b.a.createElement(Ta,i()({},e,{mutable:!1,key:"form_".concat(t.id),data:t}))}(t,e)}:ja[t.element||t.key];return b.a.createElement(v.Fragment,null,b.a.createElement(n,i()({},e,{key:"form_".concat(t.id),data:t})))}function Pa(t){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:t,padding:0,float:"left"}}var Ra=b.a.forwardRef((function(t,e){var n=t.onDropSuccess,r=(t.seq,t.draggedItem),o=t.parentIndex,i=t.canDrop,a=t.isOver,s=(t.isOverCurrent,t.connectDropTarget),c=t.items,u=t.col,l=t.getDataById,f=Cn()(t,Na),p=l(c[u]);Object(v.useImperativeHandle)(e,(function(){return{onDrop:function(t){console.log("dropped ites"),t.data&&(n&&n(),Gt.dispatch("deleteLastItem"))}}}),[]);var d=Aa(p,f),h=!!r&&r.index===o,g="rgba(0, 0, 0, .03)";return!h&&a&&i&&!r.data.isContainer&&(g="#F7F589"),s(b.a.createElement("div",{style:Pa(h?"rgba(0, 0, 0, .03":g)},!d&&b.a.createElement("span",null,"Drop your element here "),d))})),za=Xe((function(t){return t.accepts}),{drop:function(t,e,n){if(n){var r=!!t.items[t.col],o=e.getItem();if(t.col!==o.col||t.items[t.col]!==o.id)if(void 0===o.col&&t.items[t.col])Gt.dispatch("resetLastItem");else if(!function(t){if(t.itemType!==pn){var e=t.data;if(e){if(e.isContainer)return!0;if(e.field_name)return e.field_name.indexOf("_col_row")>-1}}return!1}(o)&&(n.onDrop(o),console.log("calling on Drop from 137",o),o.data&&"function"==typeof t.setAsChild)){var i=!o.data.id?o.onCreate(o.data):o.data;t.setAsChild(t.data,i,t.col,r)}}}},(function(t,e){return{connectDropTarget:t.dropTarget(),draggedItem:e.getItem()?e.getItem():null,isOver:e.isOver(),isOverCurrent:e.isOver({shallow:!0}),canDrop:e.canDrop()}}))(Ra),Ba=["data","class_name"],Fa=["data","class_name"],Ua=["data"];function Ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ka(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ha(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ya(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Va=[dn,pn],qa=function(t){d()(n,t);var e=Ya(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props,e=t.controls,n=t.data,r=t.editModeOn,o=t.getDataById,i=t.setAsChild,a=t.removeChild,s=t.seq,c=t.className,u=t.index,l=n.childItems,f="SortableItem rfb-item";return n.pageBreakBefore&&(f+=" alwaysbreak"),b.a.createElement("div",{style:Ka({},this.props.style),className:f},b.a.createElement(Vi,this.props),b.a.createElement("div",null,b.a.createElement(Qi,this.props),b.a.createElement("div",{className:"row"},l.map((function(t,f){return b.a.createElement("div",{key:"".concat(f,"_").concat(t||"_"),className:c},e?e[f]:b.a.createElement(za,{style:{width:"100%"},data:n,accepts:Va,items:l,col:f,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,f)},getDataById:o,setAsChild:i,seq:s}))})))))}}]),n}(b.a.Component),Wa=function(t){var e=t.data,n=t.class_name,r=Cn()(t,Ba),o=n||"col-md-6";return e.childItems||(e.childItems=[null,null],e.isContainer=!0),b.a.createElement(qa,i()({},r,{className:o,data:e}))},Ga=function(t){var e=t.data,n=t.class_name,r=Cn()(t,Fa),o=n||"col-md-4";return e.childItems||(e.childItems=[null,null,null],e.isContainer=!0),b.a.createElement(qa,i()({},r,{className:o,data:e}))},Qa=function(t){var e=t.data,n=Cn()(t,Ua),r=e.col_count||4,o=e.class_name||(4===r?"col-md-3":"col");return e.childItems||(e.childItems=Array.from({length:r},(function(t,e){return null})),e.isContainer=!0),b.a.createElement(qa,i()({},n,{className:o,data:e}))},Za=["data","class_name"];function Ja(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ja(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var $a=[dn,pn];function ts(t){var e=Object(v.useState)({}),n=Xt()(e,2),r=n[0],o=n[1],a=Object(v.useState)(null),s=Xt()(a,2),c=s[0],u=s[1];Object(v.useEffect)((function(){var e=t.data;t.class_name,Cn()(t,Za);o(e);f(1,e)}),[t]);var l=function(e){var n,r,o;(c?c.length:0)===e+1&&(n=t.data,r=n.childItems.length+1,o=n.childItems,n.childItems=Array.from({length:r},(function(t,e){return o[e]?o[e]:null})),u(n.childItems))},f=function(t,e){var n=t;e.class_name;e.childItems||(e.childItems=Array.from({length:n},(function(t,e){return null})),e.isContainer=!0),u(e.childItems)},p=t.controls,d=t.editModeOn,h=t.getDataById,g=t.setAsChild,m=t.removeChild,y=t.seq,w=(t.className,t.index),_="SortableItem rfb-item";return r.pageBreakBefore&&(_+=" alwaysbreak"),b.a.createElement("div",{style:Xa({},t.style),className:_},b.a.createElement(Vi,i()({},t,{isFieldSet:!0})),b.a.createElement("div",null,b.a.createElement(Qi,t),b.a.createElement("div",{className:"row"},null==c?void 0:c.map((function(t,e){return b.a.createElement("div",{key:"".concat(e,"_").concat(t||"_"),className:"col-md-12"},p?p[e]:b.a.createElement(za,{style:{width:"100%"},data:r,accepts:$a,items:c,key:e,col:e,onDropSuccess:function(){return l(e)},parentIndex:w,editModeOn:d,_onDestroy:function(){return m(r,e)},getDataById:h,setAsChild:g,seq:y,rowNo:e}))})))))}var es=ja.Header,ns=ja.Paragraph,rs=ja.Label,os=ja.LineBreak,is=ja.TextInput,as=ja.EmailInput,ss=ja.PhoneNumber,cs=ja.NumberInput,us=ja.TextArea,ls=ja.Dropdown,fs=ja.Checkboxes,ps=ja.DatePicker,ds=ja.RadioButtons,hs=ja.Image,gs=ja.Rating,ms=ja.Tags,ys=ja.Signature,vs=ja.HyperLink,bs=ja.Download,ws=ja.Camera,_s=ja.Range,Os=ja.FileUpload,Ss=ja.Checkbox,Es={};Es.Header=wn(es),Es.Paragraph=wn(ns),Es.Label=wn(rs),Es.LineBreak=wn(os),Es.TextInput=wn(is),Es.EmailInput=wn(as),Es.PhoneNumber=wn(ss),Es.NumberInput=wn(cs),Es.TextArea=wn(us),Es.Dropdown=wn(ls),Es.Signature=wn(ys),Es.Checkboxes=wn(fs),Es.Checkbox=wn(Ss),Es.DatePicker=wn(ps),Es.RadioButtons=wn(ds),Es.Image=wn(hs),Es.Rating=wn(gs),Es.Tags=wn(ms),Es.HyperLink=wn(vs),Es.Download=wn(bs),Es.Camera=wn(ws),Es.FileUpload=wn(Os),Es.Range=wn(_s),Es.PlaceHolder=wn(Sn),Es.FieldSet=wn(ts),Es.TwoColumnRow=wn(Wa),Es.ThreeColumnRow=wn(Ga),Es.MultiColumnRow=wn(Qa),Es.CustomElement=wn(Ta);var ks=Es;function js(t){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xs(t,e,n){return e&&Cs(t.prototype,e),n&&Cs(t,n),t}function Ds(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ts(t,e)}function Ts(t,e){return(Ts=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Is(t){var e=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(t){return!1}}();return function(){var n,r=Ns(t);if(e){var o=Ns(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(t,e){return!e||"object"!==js(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ns(t){return(Ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function As(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ps(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?As(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Rs={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},zs={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},Bs=function(t){var e=t.title,n=t.color?"#059862":"white";return b.a.createElement("div",{style:Ps(Ps({},Rs),{},{backgroundColor:n})},e)},Fs=function(t){var e=t.item,n=Object(v.useState)(!1),r=Xt()(n,2),o=r[0],i=(r[1],e.data.content?e.data.content:e.data.label?e.data.label:e.data.text),a=i.length>20?"".concat(i.slice(0,20),"..."):i;return b.a.createElement("div",{style:zs,role:"BoxPreview"},b.a.createElement(Bs,{title:a,color:o}))},Us={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function Hs(t){var e=t.initialOffset,n=t.currentOffset;if(!e||!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 Ks=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(ae.a)("function"==typeof t,'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",t),Object(ae.a)(le(e),'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',e),function(n){var r=n,o=e.arePropsEqual,i=void 0===o?ge:o,a=r.displayName||r.name||"Component",s=function(){var e=function(e){Ds(o,e);var n=Is(o);function o(){var t;return Ms(this,o),(t=n.apply(this,arguments)).isCurrentlyMounted=!1,t.ref=v.createRef(),t.handleChange=function(){if(t.isCurrentlyMounted){var e=t.getCurrentState();ge(e,t.state)||t.setState(e)}},t}return xs(o,[{key:"getDecoratedComponentInstance",value:function(){return Object(ae.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(t,e){return!i(t,this.props)||!ge(e,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 t=this;return v.createElement(Te.a.Consumer,null,(function(e){var n=e.dragDropManager;return void 0===n?null:(t.receiveDragDropManager(n),t.isCurrentlyMounted?v.createElement(r,Object.assign({},t.props,t.state,{ref:Ce(r)?t.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(t){if(void 0===this.manager){this.manager=t,Object(ae.a)("object"===js(t),"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 e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var e=this.manager.getMonitor();return t(e,this.props)}}]),o}(v.Component);return e.displayName="DragLayer(".concat(a,")"),e.DecoratedComponent=n,e}();return De()(s,n)}}((function(t){return{item:t.getItem(),itemType:t.getItemType(),initialOffset:t.getInitialSourceClientOffset(),currentOffset:t.getSourceClientOffset(),isDragging:t.isDragging()}}))((function(t){var e=t.item,n=t.itemType;return t.isDragging?b.a.createElement("div",{style:Us},b.a.createElement("div",{style:Hs(t)},function(){switch(n){case dn:return b.a.createElement(Fs,{item:e});default:return null}}())):null}));function Ys(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Vs=ks.PlaceHolder,qs=function(t){d()(n,t);var e=Ys(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"state",{data:[],answer_data:{}}),Bt()(f()(r),"editModeOff",(function(t){r.editForm.current&&!r.editForm.current.contains(t.target)&&r.manualEditModeOff()})),Bt()(f()(r),"manualEditModeOff",(function(){var t=r.props.editElement;t&&t.dirty&&(t.dirty=!1,r.updateElement(t)),r.props.manualEditModeOff()}));var o=t.onLoad,i=t.onPost;return Gt.setExternalHandler(o,i),r.editForm=b.a.createRef(),r.state={data:t.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(f()(r)),r.getDataById=r.getDataById.bind(f()(r)),r.moveCard=r.moveCard.bind(f()(r)),r.insertCard=r.insertCard.bind(f()(r)),r.setAsChild=r.setAsChild.bind(f()(r)),r.removeChild=r.removeChild.bind(f()(r)),r._onDestroy=r._onDestroy.bind(f()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.data,r=e.url,o=e.saveUrl,i=e.saveAlways;Gt.subscribe((function(e){return t._onUpdate(e.data)})),Gt.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(t){return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(t){for(var e=this.state.data,n=!1,r=0,o=e.length;r<o;r++)if(t.id===e[r].id){e[r]=t,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",e))}},{key:"_onChange",value:function(t){var e=this,n={};t.forEach((function(t){t&&t.readOnly&&e.props.variables[t.variableKey]&&(n[t.field_name]=e.props.variables[t.variableKey])})),this.setState({data:t,answer_data:n})}},{key:"_onDestroy",value:function(t){var e=this;t.childItems&&t.childItems.forEach((function(t){var n=e.getDataById(t);n&&Gt.dispatch("delete",n)})),Gt.dispatch("delete",t)}},{key:"getDataById",value:function(t){return this.state.data.find((function(e){return e&&e.id===t}))}},{key:"swapChildren",value:function(t,e,n,r){if(void 0!==n.col&&e.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!e.childItems[r])return!1;var o=e.childItems[r],i=this.getDataById(o),a=n.col;return e.childItems[a]=o,i.col=a,e.childItems[r]=n.id,n.col=r,Gt.dispatch("updateOrder",t),!0}},{key:"setAsChild",value:function(t,e,n,r){var o=this.state.data;if(!this.swapChildren(o,t,e,n)&&!r){var i=this.getDataById(e.parentId),a=e.col;t.childItems[n]=e.id,e.col=n,e.parentId=t.id,e.parentIndex=o.indexOf(t),i&&(i.childItems[a]=null);var s=o.filter((function(e){return e&&e.parentId===t.id})).filter((function(e){return-1===t.childItems.indexOf(e.id)})),c=o;s.length&&(c=o.filter((function(t){return-1===s.indexOf(t)}))),this.getDataById(e.id)||c.push(e),Gt.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(t,e){var n=this.state.data,r=t.childItems[e],o=this.getDataById(r);if(o){var i=n.filter((function(t){return t!==o}));t.childItems[e]=null,this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(t,e){var n=this.state.data,r=this.getDataById(t.data.parentId),o=this.getDataById(e);if(r&&o){var i=n.indexOf(o),a=Rt()(n);r.childItems[o.col]=null,delete o.parentId,delete t.setAsChild,delete t.parentIndex,t.index=i,this.seq=this.seq>1e5?0:this.seq+1,Gt.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(t,e,n){var r=this.state.data;n?this.restoreCard(t,n):(r.splice(e,0,t),this.saveData(t,e,e),Gt.dispatch("insertItem",t))}},{key:"moveCard",value:function(t,e){var n=this.state.data[t];this.saveData(n,t,e)}},{key:"cardPlaceHolder",value:function(t,e){}},{key:"saveData",value:function(t,e,n){var r=Ut()(this.state,{data:{$splice:[[e,1],[n,0,t]]}});this.setState(r),Gt.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(t,e){t.custom&&(t.component&&"function"==typeof t.component||(t.component=this.props.registry.get(t.key)));var n=ks[t.element];return null===n?null:b.a.createElement(n,{id:t.id,seq:this.seq,index:e,moveCard:this.moveCard,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:t.id,sortData:t.id,data:t,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var t=this,e=function(e){return t.updateElement(e)};e.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,preview:this,element:this.props.editElement,updateElement:e};return this.props.renderEditForm(n)}},{key:"render",value:function(){var t=this,e=this.props.className;this.props.editMode&&(e+=" is-editing");var n=this.state.data.filter((function(t){return!!t&&!t.parentId})).map((function(e,n){return t.getElement(e,n)}));return b.a.createElement("div",{className:e},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(Vs,{id:"form-place-holder",show:0===n.length,index:n.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),b.a.createElement(Ks,null))}}]),n}(b.a.Component);qs.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(t){return b.a.createElement(ee,t)}};var Ws=n(29),Gs=n.n(Ws);function Qs(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Zs={beginDrag:function(t){return{id:Gs.a.uuid(),index:-1,data:t.data,onCreate:t.onCreate}}},Js=function(t){d()(n,t);var e=Qs(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var t=this.props,e=t.connectDragSource,n=t.data,r=t.onClick;return e?e(b.a.createElement("li",{onClick:r},b.a.createElement("i",{className:n.icon}),n.name)):null}}]),n}(b.a.Component),Xs=fn(pn,Zs,(function(t){return{connectDragSource:t.dragSource()}}))(Js);var $s=function(t){var e=t.name,n=t.group,r=t.renderItem,o=Object(v.useState)(!1),i=Xt()(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)}},e),b.a.createElement("div",{className:c},b.a.createElement("ul",null,n.map(r)))))};n(164),n(95),n(112),n(113);function tc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}function ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ec(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rc(t){var e,n,r,o=t.filter((function(t){return!t.group_name})),i=t.filter((function(t){return!!t.group_name}));return{items:o,grouped:(e=i,n=function(t){return t.group_name},r=new Map,e.forEach((function(t){var e=n(t),o=r.get(e);o?o.push(t):r.set(e,[t])})),r),groupKeys:i.map((function(t){return t.group_name})).filter((function(t,e,n){return n.indexOf(t)===e}))}}var oc=function(t){d()(n,t);var e=tc(n);function n(t){var r;s()(this,n),r=e.call(this,t),Bt()(f()(r),"renderItem",(function(t){return b.a.createElement(Xs,{data:t,key:t.key,onClick:r._onClick.bind(f()(r),t),onCreate:r.create})}));var o=r.props.intl,i=function(t,e){return t?t.map((function(t){var n=e.find((function(e){return t.element===e.element&&e.key===t.key}));return n||(n=e.find((function(e){return(t.element||t.key)===(e.element||e.key)}))),n&&(!1!==t.inherited?n=nc(nc({},n),t):t.group_name&&(n.group_name=t.group_name)),n||t})):e}(t.items,r._defaultItems(o));return r.state={items:i},r.create=r.create.bind(f()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var t=this;Gt.subscribe((function(e){return t.setState({store:e})}))}},{key:"_defaultItems",value:function(t){return[{key:"Header",name:t.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:t.formatMessage({id:"place-holder-text"})},{key:"Label",name:t.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:t.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:t.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:t.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:t.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:t.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:t.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:t.formatMessage({id:"tags"}),icon:"fas fa-tags",label:t.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:t.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:t.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:t.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:t.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:t.formatMessage({id:"text-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:t.formatMessage({id:"email-input"}),label:t.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:t.formatMessage({id:"number-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:t.formatMessage({id:"phone-input"}),label:t.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:t.formatMessage({id:"multi-line-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:t.formatMessage({id:"fieldset"}),label:t.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:t.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:t.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:t.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:t.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:t.formatMessage({id:"rating"}),label:t.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:t.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:t.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:t.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:t.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:t.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:t.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:t.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:t.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:t.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:t.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:t.formatMessage({id:"easy"}),max_label:t.formatMessage({id:"difficult"})},{key:"Camera",name:t.formatMessage({id:"camera"}),icon:"fas fa-camera",label:t.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:t.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:t.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(t,e){if("custom"===t.type){var n=nc(nc({},t),e);return n.custom=!0,n.component=t.component||null,n.custom_options=t.custom_options||[],n}return e}},{key:"create",value:function(t){var e=this.props.intl,r=t.element||t.key,o=this.addCustomOptions(t,{id:Gs.a.uuid(),element:r,text:t.name,group_name:t.group_name,static:t.static,required:!1,showDescription:t.showDescription});return!0!==this.props.showDescription||t.static||(o.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea","DatePicker"].indexOf(r)&&(o.showPlaceholder=!0),"custom"===t.type&&(o.key=t.key,o.custom=!0,o.forwardRef=t.forwardRef,o.bare=t.bare,o.props=t.props,o.component=t.component||null,o.custom_options=t.custom_options||[]),t.static&&(o.bold=!1,o.italic=!1),o.show_custom_name=t.show_custom_name,o.custom_name=t.custom_name,t.canHaveAnswer&&(o.canHaveAnswer=t.canHaveAnswer),t.canReadOnly&&(o.readOnly=!1),t.canDefaultToday&&(o.defaultToday=!1),t.content&&(o.content=t.content),t.href&&(o.href=t.href),void 0!==t.inherited&&(o.inherited=t.inherited),o.canHavePageBreakBefore=!1!==t.canHavePageBreakBefore,o.canHaveAlternateForm=!1!==t.canHaveAlternateForm,o.canHaveDisplayHorizontal=!1!==t.canHaveDisplayHorizontal,o.canHaveDisplayHorizontal&&(o.inline=t.inline),o.canHaveOptionCorrect=!1!==t.canHaveOptionCorrect,o.canHaveOptionValue=!1!==t.canHaveOptionValue,o.canPopulateFromApi=!1!==t.canPopulateFromApi,t.class_name&&(o.class_name=t.class_name),"Image"===r&&(o.src=t.src),"DatePicker"===r&&(o.dateFormat=t.dateFormat,o.timeFormat=t.timeFormat,o.showTimeSelect=t.showTimeSelect,o.showTimeSelectOnly=t.showTimeSelectOnly,o.showTimeInput=t.showTimeInput),"Download"===r&&(o._href=t._href,o.file_path=t.file_path),"Range"===r&&(o.step=t.step,o.default_value=t.default_value,o.min_value=t.min_value,o.max_value=t.max_value,o.min_label=t.min_label,o.max_label=t.max_label),"MultiColumnRow"===r&&(o.col_count=t.col_count),t.defaultValue&&(o.defaultValue=t.defaultValue),t.field_name&&(o.field_name=t.field_name+Gs.a.uuid()),t.label&&(o.label=t.label),t.options&&(t.options.length>0?o.options=t.options.map((function(t){return nc(nc({},t),{},{key:"custom_option_".concat(Gs.a.uuid())})})):o.options=n._defaultItemOptions(o.element,e)),o}},{key:"_onClick",value:function(t){Gt.dispatch("create",this.create(t))}},{key:"render",value:function(){var t=this,e=rc(this.state.items),n=e.items,r=e.grouped,o=e.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(e){return b.a.createElement($s,{key:e,name:e,group:r.get(e),renderItem:t.renderItem})}))))}}],[{key:"_defaultItemOptions",value:function(t,e){switch(t){case"Dropdown":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(Gs.a.uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(Gs.a.uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(Gs.a.uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:e.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(Gs.a.uuid())},{value:"place_holder_tag_2",text:e.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(Gs.a.uuid())},{value:"place_holder_tag_3",text:e.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(Gs.a.uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(Gs.a.uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(Gs.a.uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(Gs.a.uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(Gs.a.uuid())}];default:return[]}}}]),n}(b.a.Component),ic=Object(Z.c)(oc),ac=n(174),sc=n(114);function cc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var uc=new Wi.a.FilterXSS({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),lc=function(t){d()(n,t);var e=cc(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).state={errors:[]},r}return u()(n,[{key:"componentDidMount",value:function(){var t=this;this.subscription=this.props.emitter.addListener("formValidation",(function(e){t.setState({errors:e})}))}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(t){t.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var t=this.state.errors.map((function(t,e){return b.a.createElement("li",{key:"error_".concat(e),dangerouslySetInnerHTML:{__html:uc.process(t)}})}));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"},t)),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(sc.a,{id:"dismiss"})))))}}]),n}(b.a.Component);function fc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var pc=ja.Image,dc=ja.Checkboxes,hc=ja.Signature,gc=ja.Download,mc=ja.Camera,yc=ja.FileUpload,vc=function(t){d()(n,t);var e=fc(n);function n(t){var r;return s()(this,n),r=e.call(this,t),Bt()(f()(r),"form",void 0),Bt()(f()(r),"inputs",{}),Bt()(f()(r),"answerData",void 0),Bt()(f()(r),"handleRenderSubmit",(function(){var t=r.props.action_name||r.props.actionName||"Submit",e=r.props.submitButton;return void 0!==e&&e||b.a.createElement("input",{type:"submit",className:"btn btn-big",value:t})})),Bt()(f()(r),"handleRenderBack",(function(){var t=r.props.back_name||r.props.backName||"Cancel",e=r.props.backButton;return void 0!==e&&e||b.a.createElement("a",{href:r.props.back_action,className:"btn btn-default btn-cancel btn-big"},t)})),r.answerData=r._convert(t.answer_data),r.emitter=new ac.EventEmitter,r.getDataById=r.getDataById.bind(f()(r)),r.handleBlur=r.handleBlur.bind(f()(r)),r.handleChange=r.handleChange.bind(f()(r)),r.handleSubmit=r.handleSubmit.bind(f()(r)),r}return u()(n,[{key:"_convert",value:function(t){if(Array.isArray(t)){var e={};return t.forEach((function(t){t.name.indexOf("tags_")>-1?e[t.name]=t.value.map((function(t){return t.value})):e[t.name]=t.value})),e}return t||{}}},{key:"_getDefaultValue",value:function(t){return this.answerData[t.field_name]}},{key:"_optionsDefaultValue",value:function(t){var e=this,n=this._getDefaultValue(t);if(n)return n;var r=[];return t.options.forEach((function(t){e.answerData["option_".concat(t.key)]&&r.push(t.key)})),r}},{key:"_getItemValue",value:function(t,e){var n={element:t.element,value:""};return"Rating"===t.element?n.value=e.inputField.current.state.rating:"Tags"===t.element?n.value=e.inputField.current.state.value:"DatePicker"===t.element?n.value=e.state.value:"Camera"===t.element?n.value=e.state.img:"FileUpload"===t.element?n.value=e.state.fileUpload:e&&e.inputField&&e.inputField.current&&(n=ie.a.findDOMNode(e.inputField.current))&&"string"==typeof n.value&&(n.value=n.value.trim()),n}},{key:"_isIncorrect",value:function(t){var e=!1;if(t.canHaveAnswer){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element)t.options.forEach((function(t){var r=ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]);(t.hasOwnProperty("correct")&&!r.checked||!t.hasOwnProperty("correct")&&r.checked)&&(e=!0)}));else{var r=this._getItemValue(t,n);"Rating"===t.element?r.value.toString()!==t.correct&&(e=!0):r.value.toLowerCase()!==t.correct.trim().toLowerCase()&&(e=!0)}}return e}},{key:"_isInvalid",value:function(t){var e=!1;if(!0===t.required){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var r=0;t.options.forEach((function(t){ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]).checked&&(r+=1)})),r<1&&(e=!0)}else{var o=this._getItemValue(t,n);"Rating"===t.element?0===o.value&&(e=!0):(void 0===o.value||o.value.length<1)&&(e=!0)}}return e}},{key:"_collect",value:function(t){var e={id:t.id,name:t.field_name,custom_name:t.custom_name||t.field_name};if(!e.name)return null;var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var r=[];t.options.forEach((function(t){ie.a.findDOMNode(n.options["child_ref_".concat(t.key)]).checked&&r.push(t.key)})),e.value=r}else if("Checkbox"===t.element)n&&n.inputField&&n.inputField.current?e.value=n.inputField.current.checked:e.value=!1;else{if(!n)return null;e.value=this._getItemValue(t,n).value}return e.required=t.required||!1,e}},{key:"_collectFormData",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=e._collect(t);r&&n.push(r)})),n}},{key:"_getSignatureImg",value:function(t){var e=this.inputs[t.field_name],n=e.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty(),i=ie.a.findDOMNode(e.inputField.current);i.value=o?"":r}}},{key:"handleSubmit",value:function(t){t.preventDefault();var e=[];if(this.props.skip_validations||(e=this.validateForm(),this.emitter.emit("formValidation",e)),e.length<1){var n=this.props.onSubmit;if(n)n(this._collectFormData(this.props.data));else ie.a.findDOMNode(this.form).submit()}}},{key:"handleBlur",value:function(t){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data))}},{key:"handleChange",value:function(t){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data))}},{key:"validateForm",value:function(){var t=this,e=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter((function(t){return!0===t.alternateForm}))),n.forEach((function(n){if("Signature"===n.element&&t._getSignatureImg(n),t._isInvalid(n)&&e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.is-required"}),"!")),"EmailInput"===n.element){var o=t.inputs[n.field_name],i=t._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,}))$/)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"})))}}if("PhoneNumber"===n.element){var a=t.inputs[n.field_name],s=t._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)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"})))}}t.props.validateForCorrectness&&t._isIncorrect(n)&&e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))})),e}},{key:"getDataById",value:function(t){return this.props.data.find((function(e){return e.id===t}))}},{key:"getInputElement",value:function(t){var e=this;if(t.custom)return this.getCustomElement(t);var n=ja[t.element];return b.a.createElement(n,{handleChange:this.handleChange,ref:function(n){return e.inputs[t.field_name]=n},mutable:!0,key:"form_".concat(t.id),data:t,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(t)})}},{key:"getContainerElement",value:function(t,e){var n=this,r=t.childItems.map((function(t){return t?n.getInputElement(n.getDataById(t)):b.a.createElement("div",null," ")}));return b.a.createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(t){var e=ja[t.element];return b.a.createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(t){var e=this,n=this.props.intl;t.component&&"function"==typeof t.component||(t.component=La.a.get(t.key),t.component||console.error("".concat(t.element," ").concat(n.formatMessage({id:"message.was-not-registered"}))));var r=t.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(t),ref:function(n){return e.inputs[t.field_name]=n}};return b.a.createElement(Ta,i()({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(t.id),data:t},r))}},{key:"render",value:function(){var t=this,e=this.props.data;this.props.display_short&&(e=this.props.data.filter((function(t){return!0===t.alternateForm}))),e.forEach((function(e){e&&e.readOnly&&e.variableKey&&t.props.variables[e.variableKey]&&(t.answerData[e.field_name]=t.props.variables[e.variableKey])}));var n=e.filter((function(t){return!t.parentId})).map((function(e){if(!e)return null;switch(e.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 t.getInputElement(e);case"CustomElement":return t.getCustomElement(e);case"MultiColumnRow":return t.getContainerElement(e,Qa);case"ThreeColumnRow":return t.getContainerElement(e,Ga);case"TwoColumnRow":return t.getContainerElement(e,Wa);case"FieldSet":return t.getContainerElement(e,ts);case"Signature":return b.a.createElement(hc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e)});case"Checkboxes":return b.a.createElement(dc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only,handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._optionsDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Image":return b.a.createElement(pc,{ref:function(n){return t.inputs[e.field_name]=n},handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Download":return b.a.createElement(gc,{download_path:t.props.download_path,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert});case"Camera":return b.a.createElement(mc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"FileUpload":return b.a.createElement(yc,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert,defaultValue:t._getDefaultValue(e)});default:return t.getSimpleElement(e)}}));return b.a.createElement("div",null,b.a.createElement(lc,{emitter:this.emitter}),b.a.createElement("div",{className:"react-form-builder-form"},b.a.createElement("form",{encType:"multipart/form-data",ref:function(e){return t.form=e},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),bc=Object(Z.c)(vc);function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}vc.defaultProps={validateForCorrectness:!1};var _c={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wc(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(175)),locale:"en-US"};function Oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Sc={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(176)),locale:"it-IT"};function Ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var kc={en:_c,vi:{messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach((function(e){Bt()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n(177)),locale:"vi-VN"},it:Sc};function jc(t){var e=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(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Mc=function(t){d()(n,t);var e=jc(n);function n(t){var r;return s()(this,n),(r=e.call(this,t)).state={editMode:!1,editElement:null},r.editModeOn=r.editModeOn.bind(f()(r)),r}return u()(n,[{key:"editModeOn",value:function(t,e){e.preventDefault(),e.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:t})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var t={showDescription:this.props.show_description},e=this.props.locale?this.props.locale:"en",n=kc[e];return this.props.toolbarItems&&(t.items=this.props.toolbarItems),b.a.createElement(w.a,{backend:G},b.a.createElement(At,{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(qs,{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(ic,i()({},t,{customItems:this.props.customToolbarItems})))))))}}]),n}(b.a.Component);function Cc(t){var e=t.locale?t.locale:"en",n=kc[e];return b.a.createElement(At,{locale:n.locale,messages:n.messages},b.a.createElement(bc,t))}var xc={};xc.ReactFormBuilder=Mc,xc.ReactFormGenerator=Cc,xc.ElementStore=Gt,xc.Registry=La.a;e.default=xc},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t,e,n){if(void 0===n&&(n=Error),!t)throw new n(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(30),i=n(26),a=n(110);function s(t,e){return e?Object.keys(t).reduce((function(n,o){var i,a;return n[o]=(i=t[o],(a=e[o])?Object(r.a)(Object(r.a)(Object(r.a)({},i||{}),a||{}),Object.keys(i).reduce((function(t,e){return t[e]=Object(r.a)(Object(r.a)({},i[e]),a[e]||{}),t}),{})):i),n}),Object(r.a)({},t)):t}function c(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var u=function(){function t(e,n,o,u){var l,f=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=f.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===a.a.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return Object(a.b)(f.ast,f.locales,f.formatters,f.formats,t,void 0,f.message)},this.resolvedOptions=function(){return{locale:f.resolvedLocale.toString()}},this.getAst=function(){return f.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==u?void 0:u.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(t.formats,o),this.formatters=u&&u.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.number),strategy:i.b.variadic}),getDateTimeFormat:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.dateTime),strategy:i.b.variadic}),getPluralRules:Object(i.a)((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Object(r.d)([void 0],e,!1)))}),{cache:c(l.pluralRules),strategy:i.b.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=o.m,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}()},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n(0),o=n(56);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var c=0,u=Object(r.memo)((function(t){var e=t.children,n=i(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;i[l]||(i[l]=Object(o.b)(t,e,n,r));return i[l]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(s(t,["children"])),2),a=n[0],u=n[1];return r.useEffect((function(){return u&&c++,function(){u&&(0===--c&&(f()[l]=null))}}),[]),r.createElement(o.a.Provider,{value:a},e)}));u.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function f(){return void 0!==t?t:window}}).call(this,n(49))},function(t,e,n){"use strict";n.d(e,"a",(function(){return $t}));var r=n(31),o=n(59);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(o.a)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var a=n(90),s=n(92),c=n(19);function u(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var l=n(70),f=n(87),p=n(44),d=n(23),h=n(15),g=n(2),m=n(6),y=n(25);var v=n(35);function b(t){var e=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(t){return!1}}();return function(){var n,r=Object(y.a)(t);if(e){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(4),_=n(5),O=n(1),S=function(){function t(){Object(w.a)(this,t),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",0)}return Object(_.a)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),E=function(t){Object(m.a)(n,t);var e=b(n);function n(t,r,o,i,a){var s;return Object(w.a)(this,n),(s=e.call(this)).value=t,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return Object(_.a)(n,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),n}(S),k=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"subPriority",-1),t}return Object(_.a)(n,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),n}(S),j=function(){function t(){Object(w.a)(this,t),Object(O.a)(this,"incompatibleTokens",void 0),Object(O.a)(this,"priority",void 0),Object(O.a)(this,"subPriority",void 0)}return Object(_.a)(t,[{key:"run",value:function(t,e,n,r){var o=this.parse(t,e,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(t,e,n){return!0}}]),t}(),M=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",140),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["R","u","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),C=(Math.pow(10,8),/^(1[0-2]|0?\d)/),x=/^(3[0-1]|[0-2]?\d)/,D=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,T=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,L=/^(2[0-4]|[0-1]?\d)/,N=/^(1[0-1]|0?\d)/,A=/^(1[0-2]|0?\d)/,P=/^[0-5]?\d/,R=/^[0-5]?\d/,z=/^\d/,B=/^\d{1,2}/,F=/^\d{1,3}/,U=/^\d{1,4}/,H=/^-?\d+/,K=/^-?\d/,Y=/^-?\d{1,2}/,V=/^-?\d{1,3}/,q=/^-?\d{1,4}/,W=/^([+-])(\d{2})(\d{2})?|Z/,G=/^([+-])(\d{2})(\d{2})|Z/,Q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(t,e){return t?{value:e(t.value),rest:t.rest}:t}function $(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function tt(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function et(t){return $(H,t)}function nt(t,e){switch(t){case 1:return $(z,e);case 2:return $(B,e);case 3:return $(F,e);case 4:return $(U,e);default:return $(new RegExp("^\\d{1,"+t+"}"),e)}}function rt(t,e){switch(t){case 1:return $(K,e);case 2:return $(Y,e);case 3:return $(V,e);case 4:return $(q,e);default:return $(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ot(t){switch(t){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 it(t,e){var n,r=e>0,o=r?e:1-e;if(o<=50)n=t||100;else{var i=o+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function at(t){return t%400==0||t%4==0&&t%100!=0}var st=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return X(nt(4,t),r);case"yo":return X(n.ordinalNumber(t,{unit:"year"}),r);default:return X(nt(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var o=it(n.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),ct=n(60),ut=n(40),lt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return X(nt(4,t),r);case"Yo":return X(n.ordinalNumber(t,{unit:"year"}),r);default:return X(nt(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var o=Object(ct.a)(t,r);if(n.isTwoDigitYear){var i=it(n.year,o);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(ut.a)(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(ut.a)(t,r)}}]),n}(j),ft=n(41),pt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return rt("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Object(ft.a)(r)}}]),n}(j),dt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",130),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return rt("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),ht=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",120),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return nt(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(j),gt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",120),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return nt(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(j),mt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Object(O.a)(Object(g.a)(t),"priority",110),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return X($(C,t),r);case"MM":return X(nt(2,t),r);case"Mo":return X(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),yt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",110),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return X($(C,t),r);case"LL":return X(nt(2,t),r);case"Lo":return X(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(j),vt=n(93);var bt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",100),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"w":return $(T,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return Object(ut.a)(function(t,e,n){Object(h.a)(2,arguments);var r=Object(c.a)(t),o=Object(d.a)(e),i=Object(vt.a)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,n,r),r)}}]),n}(j),wt=n(94);var _t=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",100),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"I":return $(T,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return Object(ft.a)(function(t,e){Object(h.a)(2,arguments);var n=Object(c.a)(t),r=Object(d.a)(e),o=Object(wt.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,n))}}]),n}(j),Ot=[31,28,31,30,31,30,31,31,30,31,30,31],St=[31,29,31,30,31,30,31,31,30,31,30,31],Et=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"subPriority",1),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"d":return $(x,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){var n=at(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=St[r]:e>=1&&e<=Ot[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n}(j),kt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"subpriority",1),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return $(D,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return at(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n}(j),jt=n(39);function Mt(t,e,n){var r,o,i,a,s,u,l,f;Object(h.a)(2,arguments);var p=Object(jt.a)(),g=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:p.weekStartsOn)&&void 0!==o?o:null===(l=p.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Object(c.a)(t),y=Object(d.a)(e),v=m.getUTCDay(),b=y%7,w=(b+7)%7,_=(w<g?7:0)+y-v;return m.setUTCDate(m.getUTCDate()+_),m}var Ct=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j),xt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return X(nt(e.length,t),o);case"eo":return X(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j),Dt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return X(nt(e.length,t),o);case"co":return X(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Mt(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(j);var Tt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",90),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return nt(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return X(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return X(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return X(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return X(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return(t=function(t,e){Object(h.a)(2,arguments);var n=Object(d.a)(e);n%7==0&&(n-=7);var r=1,o=Object(c.a)(t),i=o.getUTCDay(),a=n%7,s=(a+7)%7,u=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}(t,n)).setUTCHours(0,0,0,0),t}}]),n}(j),It=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),Lt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),Nt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",80),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(ot(n),0,0,0),t}}]),n}(j),At=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"h":return $(A,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),n}(j),Pt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"H":return $(I,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n}(j),Rt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"K":return $(N,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),n}(j),zt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",70),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"k":return $(L,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}]),n}(j),Bt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",60),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"m":return $(P,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n}(j),Ft=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",50),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e,n){switch(e){case"s":return $(R,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return nt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n}(j),Ut=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",30),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){return X(nt(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),n}(j),Ht=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T","x"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){switch(e){case"X":return tt(W,t);case"XX":return tt(G,t);case"XXXX":return tt(Q,t);case"XXXXX":return tt(J,t);case"XXX":default:return tt(Z,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(j),Kt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",10),Object(O.a)(Object(g.a)(t),"incompatibleTokens",["t","T","X"]),t}return Object(_.a)(n,[{key:"parse",value:function(t,e){switch(e){case"x":return tt(W,t);case"xx":return tt(G,t);case"xxxx":return tt(Q,t);case"xxxxx":return tt(J,t);case"xxx":default:return tt(Z,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(j),Yt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",40),Object(O.a)(Object(g.a)(t),"incompatibleTokens","*"),t}return Object(_.a)(n,[{key:"parse",value:function(t){return et(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(j),Vt=function(t){Object(m.a)(n,t);var e=b(n);function n(){var t;Object(w.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Object(O.a)(Object(g.a)(t),"priority",20),Object(O.a)(Object(g.a)(t),"incompatibleTokens","*"),t}return Object(_.a)(n,[{key:"parse",value:function(t){return et(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(j),qt={G:new M,y:new st,Y:new lt,R:new pt,u:new dt,Q:new ht,q:new gt,M:new mt,L:new yt,w:new bt,I:new _t,d:new Et,D:new kt,E:new Ct,e:new xt,c:new Dt,i:new Tt,a:new It,b:new Lt,B:new Nt,h:new At,H:new Pt,K:new Rt,k:new zt,m:new Bt,s:new Ft,S:new Ut,X:new Ht,x:new Kt,t:new Yt,T:new Vt},Wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qt=/^'([^]*?)'?$/,Zt=/''/g,Jt=/\S/,Xt=/[a-zA-Z]/;function $t(t,e,n,o){var g,m,y,v,b,w,_,O,S,E,j,M,C,x,D,T,I,L;Object(h.a)(3,arguments);var N=String(t),A=String(e),P=Object(jt.a)(),R=null!==(g=null!==(m=null==o?void 0:o.locale)&&void 0!==m?m:P.locale)&&void 0!==g?g: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!==(j=null!==(M=null!==(C=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!==C?C:P.weekStartsOn)&&void 0!==M?M:null===(I=P.locale)||void 0===I||null===(L=I.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==j?j:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===A)return""===N?Object(c.a)(n):new Date(NaN);var F,U={firstWeekContainsDate:z,weekStartsOn:B,locale:R},H=[new k],K=A.match(Gt).map((function(t){var e=t[0];return e in l.a?(0,l.a[e])(t,R.formatLong):t})).join("").match(Wt),Y=[],V=i(K);try{var q=function(){var e=F.value;null!=o&&o.useAdditionalWeekYearTokens||!Object(p.b)(e)||Object(p.c)(e,A,t),null!=o&&o.useAdditionalDayOfYearTokens||!Object(p.a)(e)||Object(p.c)(e,A,t);var n=e[0],r=qt[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=Y.find((function(t){return i.includes(t.token)||t.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));Y.push({token:n,fullToken:e});var s=r.run(N,e,R.match,U);if(!s)return{v:new Date(NaN)};H.push(s.setter),N=s.rest}else{if(n.match(Xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=te(e)),0!==N.indexOf(e))return{v:new Date(NaN)};N=N.slice(e.length)}};for(V.s();!(F=V.n()).done;){var W=q();if("object"===Object(r.a)(W))return W.v}}catch(t){V.e(t)}finally{V.f()}if(N.length>0&&Jt.test(N))return new Date(NaN);var G=H.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return H.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),Q=Object(c.a)(n);if(isNaN(Q.getTime()))return new Date(NaN);var Z,J=Object(s.a)(Q,Object(f.a)(Q)),X={},$=i(G);try{for($.s();!(Z=$.n()).done;){var tt=Z.value;if(!tt.validate(J,U))return new Date(NaN);var et=tt.set(J,X,U);Array.isArray(et)?(J=et[0],u(X,et[1])):J=et}}catch(t){$.e(t)}finally{$.f()}return J}function te(t){return t.match(Qt)[1].replace(Zt,"'")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(172),o=n(92),i=n(19),a=n(15);var s=n(94),c=n(86),u=n(93),l=n(60);function f(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var p={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return f("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):f(n+1,2)},d:function(t,e){return f(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e){return f(t.getUTCHours()%12||12,e.length)},H:function(t,e){return f(t.getUTCHours(),e.length)},m:function(t,e){return f(t.getUTCMinutes(),e.length)},s:function(t,e){return f(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return f(Math.floor(r*Math.pow(10,n-3)),e.length)}},d="midnight",h="noon",g="morning",m="afternoon",y="evening",v="night";function b(t,e){var n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=e||"";return n+String(o)+a+f(i,2)}function w(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):_(t,e)}function _(t,e){var n=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+f(Math.floor(o/60),2)+n+f(o%60,2)}var O={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){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(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return p.y(t,e)},Y:function(t,e,n,r){var o=Object(l.a)(t,r),i=o>0?o:1-o;return"YY"===e?f(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(Object(c.a)(t),e.length)},u:function(t,e){return f(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return f(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(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return f(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(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return p.M(t,e);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(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return f(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(t,e,n,r){var o=Object(u.a)(t,r);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):f(o,e.length)},I:function(t,e,n){var r=Object(s.a)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):f(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):p.d(t,e)},D:function(t,e,n){var r=function(t){Object(a.a)(1,arguments);var e=Object(i.a)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=n-r;return Math.floor(o/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.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(t,e,n){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return f(o,e.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(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e,n){var r,o=t.getUTCHours();switch(r=12===o?h:0===o?d:o/12>=1?"pm":"am",e){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(t,e,n){var r,o=t.getUTCHours();switch(r=o>=17?y:o>=12?m:o>=4?g:v,e){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(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):p.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):p.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):p.s(t,e)},S:function(t,e){return p.S(t,e)},X:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return w(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return w(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(t,e,n,r){var o=r._originalDate||t;return f(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,r){return f((r._originalDate||t).getTime(),e.length)}},S=n(70),E=n(87),k=n(44),j=n(23),M=n(39),C=n(90),x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,I=/''/g,L=/[a-zA-Z]/;function N(t,e,n){var s,c,u,l,f,p,d,h,g,m,y,v,b,w,_,T,I,N;Object(a.a)(2,arguments);var P=String(e),R=Object(M.a)(),z=null!==(s=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:R.locale)&&void 0!==s?s:C.a,B=Object(j.a)(null!==(u=null!==(l=null!==(f=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n||null===(d=n.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:R.firstWeekContainsDate)&&void 0!==l?l:null===(g=R.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.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(j.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===(N=I.options)||void 0===N?void 0:N.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.a)(t);if(!Object(r.a)(U))throw new RangeError("Invalid time value");var H=Object(E.a)(U),K=Object(o.a)(U,H),Y={firstWeekContainsDate:B,weekStartsOn:F,locale:z,_originalDate:U},V=P.match(D).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,S.a[e])(t,z.formatLong):t})).join("").match(x).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return A(r);var i=O[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!Object(k.b)(r)||Object(k.c)(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!Object(k.a)(r)||Object(k.c)(r,e,String(t)),i(K,r,z.localize,Y);if(o.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return V}function A(t){var e=t.match(T);return e?e[1].replace(I,"'"):t}}])}));
|