varFormulate=function(t,e,r,n){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r,n=n&&n.hasOwnProperty("default")?n.default:n;varo={text:{classification:"text",component:"FormulateInputText"},email:{classification:"text",component:"FormulateInputText"},number:{classification:"text",component:"FormulateInputText"},color:{classification:"text",component:"FormulateInputText"},date:{classification:"text",component:"FormulateInputText"},hidden:{classification:"text",component:"FormulateInputText"},month:{classification:"text",component:"FormulateInputText"},password:{classification:"text",component:"FormulateInputText"},search:{classification:"text",component:"FormulateInputText"},tel:{classification:"text",component:"FormulateInputText"},time:{classification:"text",component:"FormulateInputText"},url:{classification:"text",component:"FormulateInputText"},week:{classification:"text",component:"FormulateInputText"},"datetime-local":{classification:"text",component:"FormulateInputText"},range:{classification:"slider",component:"FormulateInputSlider"},textarea:{classification:"textarea",component:"FormulateInputTextArea"},checkbox:{classification:"box",component:"FormulateInputBox"},radio:{classification:"box",component:"FormulateInputBox"},submit:{classification:"button",component:"FormulateInputButton"},button:{classification:"button",component:"FormulateInputButton"},select:{classification:"select",component:"FormulateInputSelect"},file:{classification:"file",component:"FormulateInputFile"},image:{classification:"file",component:"FormulateInputFile"}},i=function(t,e,r){this.input=t,this.fileList=t.files,this.files=[],this.options=r,this.addFileList(this.fileList),this.context=e};functiona(t,e){varr={};for(varnint)r[n]=e(n,t[n]);returnr}functions(t,e){if(t===e)return!0;if(!t||!e)return!1;varr=Object.keys(t),n=Object.keys(e),o=r.length;if(n.length!==o)return!1;for(vari=0;i<o;i++){vara=r[i];if(t[a]!==e[a])return!1}return!0}functionl(t){returnt?"string"==typeoft?[t]:Array.isArray(t)?t:"object"==typeoft?Object.values(t):[]:[]}functionu(t){return"string"==typeoft?t[0].toUpperCase()+t.substr(1):t}functionc(t,e){return"string"==typeoft?c(t.split("|"),e):Array.isArray(t)?t.map((function(t){returnfunction(t,e){if("function"==typeoft)return[t,[]];if(Array.isArray(t)&&t.length){if("string"==typeof(t=t.map((function(t){returnt})))[0]&&e.hasOwnProperty(t[0]))return[e[t.shift()],t];if("function"==typeoft[0])return[t.shift(),t]}if("string"==typeoft){varr=t.split(":"),n=r.shift();if(e.hasOwnProperty(n))return[e[n],r.length?r.join(":").split(","):[]];thrownewError("Unknown validation rule "+t)}return!1}(t,e)})).filter((function(t){return!!t})):[]}functiond(t){switch(typeoft){case"symbol":case"number":case"string":case"boolean":case"undefined":return!0;default:returnnull===t}}i.prototype.addFileList=function(t){for(vare=this,n=function(n){varo=t[n],i=r();e.files.push({progress:!1,error:!1,complete:!1,justFinished:!1,name:o.name||"file-upload",file:o,uuid:i,path:!1,removeFile:function(){this.removeFile(i)}.bind(e),previewData:!1})},o=0;o<t.length;o++)n(o)},i.prototype.hasUploader=function(){return!!this.context.uploader},i.prototype.uploaderIsAxios=function(){return!(!this.hasUploader||"function"!=typeofthis.hasUploader.request||"function"!=typeofthis.hasUploader.get||"function"!=typeofthis.hasUploader.delete||"function"!=typeofthis.hasUploader.post)},i.prototype.getUploader=function(){for(vart,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(this.uploaderIsAxios()){varn=newFormData;returnn.append(this.context.name||"file",e[0]),this.uploader.post(this.context.uploadUrl,n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e[1](Math.round(100*t.loaded/t.total))}}).catch((function(t){returne[2](t)}))}return(t=this.context).uploader.apply(t,e)},i.prototype.upload=function(){vart=this;returnnewPromise((function(e,r){if(!t.hasUploader)returnr(newError("No uploader has been defined"));Promise.all(t.files.map((function(e){retu