vare}functionx(t){vare,r;return!1!==b(t)&&("function"==typeof(e=t.constructor)&&(!1!==b(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}functionw(t){return"string"==typeoft?t[0].toUpperCase()+t.substr(1):t}varF={accepted:function(t){return"Please accept the "+t.name+"."},after:function(t){vare=t.name,r=t.args;returnArray.isArray(r)&&r.length?w(e)+" must be after "+r[0]+".":w(e)+" must be a later date."},alpha:function(t){returnw(t.name)+" can only contain alphabetical characters."},alphanumeric:function(t){returnw(t.name)+" can only contain letters and numbers."},before:function(t){vare=t.name,r=t.args;returnArray.isArray(r)&&r.length?w(e)+" must be before "+r[0]+".":w(e)+" must be an earlier date."},between:function(t){vare=t.name,r=t.value,o=t.args,n=!(!Array.isArray(o)||!o[2])&&o[2];return!isNaN(r)&&"length"!==n||"value"===n?w(e)+" must be between "+o[0]+" and "+o[1]+".":w(e)+" must be between "+o[0]+" and "+o[1]+" characters long."},confirm:function(t){vare=t.name;returnt.args,w(e)+" does not match."},date:function(t){vare=t.name,r=t.args;returnArray.isArray(r)&&r.length?w(e)+" is not a valid, please use the format "+r[0]:w(e)+" is not a valid date."},default:function(t){returnt.name,"This field isn’t valid."},email:function(t){t.name;vare=t.value;returne?"“"+e+"” is not a valid email address.":"Please enter a valid email address."},endsWith:function(t){t.name;vare=t.value;returne?"“"+e+"” doesn’t end with a valid value.":"This field doesn’t end with a valid value."},in:function(t){vare=t.name,r=t.value;return"string"==typeofr&&r?"“"+w(r)+"” is not an allowed "+e+".":"This is not an allowed "+e+"."},matches:function(t){returnw(t.name)+" is not an allowed value."},max:function(t){vare=t.name,r=t.value,o=t.args;if(Array.isArray(r))return"You may only select "+o[0]+" "+e+".";varn=!(!Array.isArray(o)||!o[1])&&o[1];return!isNaN(r)&&"length"!==n||"value"===n?w(e)+" must be less than or equal to "+o[0]+".":w(e)+" must be less than or equal to "+o[0]+" characters long."},mime:function(t){vare=t.name,r=t.args;returnw(e)+" must be of the the type: "+(r[0]||"No file formats allowed.")},min:function(t){vare=t.name,r=t.value,o=t.args;if(Array.isArray(r))return"You must select at least "+o[0]+" "+e+".";varn=!(!Array.isArray(o)||!o[1])&&o[1];return!isNaN(r)&&"length"!==n||"value"===n?w(e)+" must be more than "+o[0]+".":w(e)+" must be more than "+o[0]+" characters long."},not:function(t){vare=t.name;return"“"+t.value+"” is not an allowed "+e+"."},number:function(t){returnw(t.name)+" must be a number."},required:function(t){returnw(t.name)+" is required."},startsWith:function(t){t.name;vare=t.value;returne?"“"+e+"” doesn’t start with a valid value.":"This field doesn’t start with a valid value."},url:function(t){returnt.name,"Please include a valid url."}};function_(t){vare;t.extend({locales:(e={},e.en=F,e)})}functionE(t,e,r,o){returnnewPromise((function(r,n){vari=(o.fauxUploaderDuration||2e3)*(.5+Math.random()),a=performance.now(),s=function(){returnsetTimeout((function(){varo=performance.now()-a,n=Math.min(100,Math.round(o/i*100));if(e(n),n>=100)returnr({url:"http://via.placeholder.com/350x150.png",name:t.name});s()}),20)};s()}))}varP={context:function(){returnA.call(this,Object.assign({},{type:this.type,value:this.value,name:this.nameOrFallback,classification:this.classification,component:this.component,id:this.id||this.defaultId,hasLabel:this.label&&"button"!==this.classification,label:this.label,labelPosition:this.logicalLabelPosition,attributes:this.elementAttributes,performValidation:this.performValidation.bind(this),blurHandler:V.bind(this),imageBehavior:this.imageBehavior,uploadUrl:this.mergedUploadUrl,uploader:this.uploader||this.$formulate.getUploader(),uploadBehavior:this.uploadBehavior,preventWindowDrops:this.preventWindowDrops,hasValidationErrors:this.hasValidationErrors},this.typeContext))},nameOrFallback:function(){if(!0===this.name&&"button"!==this.classification)returnthis.type+"_"+this.elementAttributes.id;if(!1===this.name||"b