!function(p){"use strict";p.HSCore.components.HSTabs={_baseConfig:{},pageCollection:p(),init:function(e,t){if(this.collection=e&&p(e).length?p(e):p(),p(e).length)return this.config=t&&p.isPlainObject(t)?p.extend({},this._baseConfig,t):this._baseConfig,this.config.itemSelector=e,this.initTabs(),this.pageCollection},initTabs:function(){var c=this,u=c.pageCollection;this.collection.each(function(e,t){var i=p(window).width(),n=p(t),o=n.find(".nav-item"),a=n.data("tabs-mobile-type"),r=n.data("btn-classes"),s=n.parent(),l=p("#"+n.data("target")),d=l.find(".tab-pane");if(i<767?p("body").on("click",function(){a?n.slideUp(200):n.find(".nav-inner").slideUp(200)}):p("body").off("click"),767'+n+""),e.on("click",".js-tabs-mobile-control",function(e){e.stopPropagation(),e.preventDefault(),p(i).slideToggle(200)}),e.on("click",'[role="tab"]',function(e){e.preventDefault();var t=p(this).html();p(this).closest("ul").prev(".js-tabs-mobile-control").html(t),p(i).slideUp(200)})}},accordionEffect:function(o,e,a,t){o.find(".js-tabs-mobile-control").length||(p(a).before(''),e.each(function(){var e=p(this).index(),t=p(this).find('[role="tab"]').html();p(this).find('[role="tab"]').hasClass("active")&&p(a[e]).prev().addClass("active"),p(a[e]).prev().html(t)}),o.on("click",".js-tabs-mobile-control",function(e){if(e.preventDefault(),!p(this).hasClass("active")){var t=o.attr("id");o.find(".js-tabs-mobile-control").removeClass("active"),p('[data-target="'+t+'"]').find(".nav-link").removeClass("active");var i=p(this).next(),n=i.attr("id");i.hasClass("fade")?(p(this).addClass("active"),p('[href="#'+n+'"]').addClass("active"),p(a).slideUp(200),i.slideDown(200,function(){o.find('[role="tabpanel"]').removeClass("show active"),i.addClass("show active")})):(p(this).addClass("active"),p(a).slideUp(200),i.slideDown(200))}}))}}}(jQuery),function(o,e,a){var t;t=function(l){"use strict";var n={blockObj:l("body"),Mode:"Cropper",postjson:{},FileTypes:"(xls)|(xlsx)",Title:'Upload Your File',Description:"",PreviewObj:".img-preview",DefaultImage:"https://cdn.easycloudbooks.com/ecb/www/contents/images/user.png",SaveEvent:null,Token:null,CancelEvent:null,AutoCloseUploader:!0,acceptFileTypes:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"};l.fn.ecbpublicuploader=function(e){if("string"==typeof e){var t=l(this).data("ecbpublicuploader");null!=t&&("function"==typeof t[e]?t[e]():l.error(e+" does not exist!"))}else{if("object"==typeof e||!e){var i=arguments;return this.each(function(e,t){var r=(new Date).getTime(),s=l(t);s.addClass("haveecbpublicuploader"),s.options=l.extend(!0,{},n,i[0]),s.options.UId=r,s.CloseUploader=function(){s.isOpen=!1,console.log(s.options.blockObj),s.options.blockObj.unblock(),l("body").css("overflow","")},s.ecbdestroy=function(){s.CloseUploader(),s.unbind("click"),s.removeClass("haveecbpublicuploader")},s.options.Filepath!=a&&null!=s.options.Filepath||(s.options.Filepath=""),s.changeImage=function(e){s.options.DefaultImage=e},"Cropper"==s.options.Mode?0');l(e).find(".modal-dialog").addClass("divecbpublicuploaderBlockUI").attr("id","block_"+r);var t="imginputImage_"+(new Date).valueOf();return l(e).find(".modal-title").html(s.options.Title),l(e).find(".imginputImage").attr("id",t),l(e).find(".FileDescription").html(s.options.Description),l(e).find("[for=imginputImage]").attr("for",t),l(e).html()},css:{backgroundColor:"none",cursor:"default",width:"100%",left:"0",bottom:"0",top:"0px",marginBottom:"0px",border:"none"},overlayCSS:{backgroundColor:"#748DA3",cursor:"default",opacity:"0.90",top:"0px"},onBlock:function(){if(0'),n=t.find(".imgCrop"),null!=i&&i!=a&&""!=i&&n.attr("src",i)}catch(e){console.log(e)}l(n).cropper({minContainerHeight:300,viewMode:2,autoCropArea:1,done:function(e){},cropmove:function(){t.find(".imginputImage").attr("data-change","true")}}),n.cropper("reset",!0).cropper("replace",s.options.DefaultImage);var o=t.find(".imginputImage");o.attr("data-change","false"),window.FileReader?o.change(function(){var e,t=new FileReader,i=this.files;i.length&&(e=i[0],/^image\/\w+$/.test(e.type)?(t.readAsDataURL(e),t.onload=function(){o.val(""),n.cropper("reset",!0).cropper("replace",this.result),o.attr("data-change","true")}):EO.showglobalmessage("Please choose an image file.","error"))}):o.addClass("hidden"),t.find(".imgdownload").unbind("click").click(function(){window.open(n.cropper("getCroppedCanvas").toDataURL())}),t.find(".imgzoomIn").unbind("click").click(function(){n.cropper("zoom",.1),o.attr("data-change","true")}),t.find(".imgzoomOut").unbind("click").click(function(){n.cropper("zoom",-.1),o.attr("data-change","true")}),t.find(".imgrotateLeft").unbind("click").click(function(){n.cropper("rotate",45),o.attr("data-change","true")}),t.find(".imgrotateRight").unbind("click").click(function(){n.cropper("rotate",-45),o.attr("data-change","true")}),t.find(".imgsetDrag").unbind("click").click(function(){n.cropper("setDragMode","crop"),o.attr("data-change","true")}),t.find(".btnSave").click(function(){try{t.find(".btnSave").addClass("disabled");var e=n.cropper("getCroppedCanvas").toDataURL();s.options.AutoCloseUploader&&(s.CloseUploader(),null!=s.options.SaveEvent&&"function"==typeof s.options.SaveEvent&&s.options.SaveEvent({image:e}))}catch(e){console.log(e),EO.showglobalmessage("Cropping Image Failed. Please Select another Image"),t.find(".btnSave").removeClass("disabled")}}),t.find(".btnCancel").click(function(){t.find(".btnSave").unbind("click").addClass("disabled"),null!=s.options.CancelEvent&&"function"==typeof s.options.CancelEvent&&s.options.CancelEvent()}),l("body").css("overflow","hidden")}}})}},s.unbind("click").click(function(){s.ShowUploader()})):0');l(e).find(".modal-dialog").addClass("divecbpublicuploaderBlockUI").attr("id","block_"+r);var t="ecbpublicuploaderdropzone_"+r;return l(e).find(".modal-title").html(s.options.Title),l(e).find(".FileDescription").html(s.options.Description),l(e).find("#ecbpublicuploaderdropzone_0").attr("id",t),l(e).html()},css:{backgroundColor:"none",cursor:"default",width:"100%",left:"0",bottom:"0",top:"0px",marginBottom:"0px",border:"none"},overlayCSS:{backgroundColor:"#748DA3",cursor:"default",opacity:"0.90",top:"0px"},onBlock:function(){if(0

'),l(o).bind("dragover",function(e){var t=a,i=window.dropZoneTimeout;i?clearTimeout(i):t.addClass("in");var n=!1,o=e.target;do{if(o===t[0]){n=!0;break}o=o.parentNode}while(null!=o);n?t.addClass("hover"):t.removeClass("hover"),window.dropZoneTimeout=setTimeout(function(){window.dropZoneTimeout=null,t.removeClass("in hover")},100)}),l(t).fileupload({url:s.options.PostURL,dropZone:a,uploadTemplateId:null,downloadTemplateId:null,singleFileUploads:!0,autoUpload:!0,maxNumberOfFiles:1,maxFileSize:2e6,acceptFileTypes:new RegExp(s.options.FileTypes,"gi"),beforeSend:function(e,t){t.files[0];e.setRequestHeader("Authorization","Bearer "+s.options.Token)},add:function(e,t){t.formData=s.options.postjson,t.submit()},uploadTemplate:function(n){var o=l();return l.each(n.files,function(e,t){var i=l('

'+(e||n.options.autoUpload?"":' ')+(e?"":'')+"");i.find(".name").text(t.name),i.find(".size").text(n.formatFileSize(t.size)),t.error&&i.find(".error").text(t.error),o=o.add(i)}),o}}).bind("fileuploadadd",function(e,t){null!=s.options.fileuploadadd&&"function"==typeof s.options.fileuploadadd&&s.options.fileuploadadd(e,t)}).bind("fileuploaddone",function(e,t){null!=s.options.fileuploaddone&&"function"==typeof s.options.fileuploaddone&&s.options.fileuploaddone(e,t),"success"==t.result.MessageType?s.options.AutoCloseUploader&&(s.CloseUploader(),null!=s.options.SaveEvent&&"function"==typeof s.options.SaveEvent&&s.options.SaveEvent(t.result)):EO.showglobalmessage(t.result.Message)}),s.options.AutoCloseUploader?e.find(".btnSave").hide():e.find(".btnSave").click(function(){null!=s.options.SaveEvent&&"function"==typeof s.options.SaveEvent&&s.options.SaveEvent()}),e.find(".btnCancel").click(function(){null!=s.options.CancelEvent&&"function"==typeof s.options.CancelEvent&&s.options.CancelEvent()}),l("body").css("overflow","hidden")}}})}}),s.data("ecbpublicuploader",s)})}l.error("Method "+e+" does not exist!")}}},"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.ecbpublicuploader&&t(jQuery)}(document,Math),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(c){var o,i=0,s=Array.prototype.slice;c.cleanData=(o=c.cleanData,function(e){for(var t,i,n=0;null!=(i=e[n]);n++)try{(t=c._data(i,"events"))&&t.remove&&c(i).triggerHandler("remove")}catch(e){}o(e)}),c.widget=function(e,i,t){var n,o,a,r,s={},l=e.split(".")[0];return e=e.split(".")[1],n=l+"-"+e,t||(t=i,i=c.Widget),c.expr[":"][n.toLowerCase()]=function(e){return!!c.data(e,n)},c[l]=c[l]||{},o=c[l][e],a=c[l][e]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},c.extend(a,o,{version:t.version,_proto:c.extend({},t),_childConstructors:[]}),(r=new i).options=c.widget.extend({},r.options),c.each(t,function(t,n){var o,a;c.isFunction(n)?s[t]=(o=function(){return i.prototype[t].apply(this,arguments)},a=function(e){return i.prototype[t].apply(this,e)},function(){var e,t=this._super,i=this._superApply;return this._super=o,this._superApply=a,e=n.apply(this,arguments),this._super=t,this._superApply=i,e}):s[t]=n}),a.prototype=c.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||e},s,{constructor:a,namespace:l,widgetName:e,widgetFullName:n}),o?(c.each(o._childConstructors,function(e,t){var i=t.prototype;c.widget(i.namespace+"."+i.widgetName,a,t._proto)}),delete o._childConstructors):i._childConstructors.push(a),c.widget.bridge(e,a),a},c.widget.extend=function(e){for(var t,i,n=s.call(arguments,1),o=0,a=n.length;o",options:{disabled:!1,create:null},_createWidget:function(e,t){t=c(t||this.defaultElement||this)[0],this.element=c(t),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=c(),this.hoverable=c(),this.focusable=c(),t!==this&&(c.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=c(t.style?t.ownerDocument:t.document||t),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this.options=c.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:c.noop,_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(c.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:c.noop,widget:function(){return this.element},option:function(e,t){var i,n,o,a=e;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof e)if(a={},e=(i=e.split(".")).shift(),i.length){for(n=a[e]=c.widget.extend({},this.options[e]),o=0;o&"'\x00]/g,n.encMap={"<":"<",">":">","&":"&",'"':""","'":"'"},n.encode=function(e){return(null==e?"":""+e).replace(n.encReg,function(e){return n.encMap[e]||""})},n.arg="o",n.helper=",print=function(s,e){_s+=e?(s==null?'':s):_e(s);},include=function(s,d){_s+=tmpl(s,d);}","function"==typeof define&&define.amd?define(function(){return n}):e.tmpl=n}(this),function(e){"use strict";var _=function(e,i,t){var n,o,a=document.createElement("img");if(a.onerror=i,a.onload=function(){!o||t&&t.noRevoke||_.revokeObjectURL(o),i&&i(_.scale(a,t))},_.isInstanceOf("Blob",e)||_.isInstanceOf("File",e))n=o=_.createObjectURL(e),a._type=e.type;else{if("string"!=typeof e)return!1;n=e,t&&t.crossOrigin&&(a.crossOrigin=t.crossOrigin)}return n?(a.src=n,a):_.readFile(e,function(e){var t=e.target;t&&t.result?a.src=t.result:i&&i(e)})},t=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;_.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_.transformCoordinates=function(){},_.getTransformedOptions=function(e){return e},_.renderImageToCanvas=function(e,t,i,n,o,a,r,s,l,d){return e.getContext("2d").drawImage(t,i,n,o,a,r,s,l,d),e},_.hasCanvasOption=function(e){return e.canvas||e.crop},_.scale=function(e,t){t=t||{};var i,n,o,a,r,s,l,d,c,u=document.createElement("canvas"),p=e.getContext||_.hasCanvasOption(t)&&u.getContext,f=e.naturalWidth||e.width,h=e.naturalHeight||e.height,g=f,m=h,b=function(){var e=Math.max((o||g)/g,(a||m)/m);1>1;return a/r||1},v.renderImageToCanvas=function(e,t,i,n,o,a,r,s,l,d){if("image/jpeg"===t._type){var c,u,p,f,h=e.getContext("2d"),g=document.createElement("canvas"),m=1024,b=g.getContext("2d");if(g.width=m,g.height=m,h.save(),(c=v.detectSubsampling(t))&&(i/=2,n/=2,o/=2,a/=2),u=v.detectVerticalSquash(t,c),c||1!==u){for(n*=u,l=Math.ceil(m*l/o),d=Math.ceil(m*d/a/u),f=s=0;fr.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(n=h.metaDataParsers.jpeg[t])for(o=0;oe.byteLength)){for(n=[],o=0;oe.byteLength)){if(1===o)return p.getValue(e,s,a);for(l=[],d=0;de.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((r=i+2+12*(a=e.getUint16(i,n)))+4>e.byteLength)){for(s=0;se.byteLength)return void console.log("Invalid Exif data: Invalid segment size.");if(0!==e.getUint16(t+8))return void console.log("Invalid Exif data: Missing byte alignment offset.");switch(e.getUint16(l)){case 18761:a=!0;break;case 19789:a=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==e.getUint16(l+2,a))return void console.log("Invalid Exif data: Missing TIFF marker.");r=e.getUint32(l+4,a),n.exif=new f.ExifMap,(r=f.parseExifTags(e,l,l+r,a,n))&&!o.disableExifThumbnail&&(s={exif:{}},r=f.parseExifTags(e,l,l+r,a,s),s.exif[513]&&(n.exif.Thumbnail=f.getExifThumbnail(e,l+s.exif[513],s.exif[514]))),n.exif[34665]&&!o.disableExifSub&&f.parseExifTags(e,l,l+n.exif[34665],a,n),n.exif[34853]&&!o.disableExifGps&&f.parseExifTags(e,l,l+n.exif[34853],a,n)}}},f.metaDataParsers.jpeg[65505].push(f.parseExifData)}),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-exif"],e):e(window.loadImage)}(function(e){"use strict";e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,i=e.tags,n=e.map;for(t in i)i.hasOwnProperty(t)&&(n[i[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,i={};for(e in this)this.hasOwnProperty(e)&&((t=this.tags[e])&&(i[t]=this.getText(t)));return i}}),function(e){"use strict";var n=e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype,c=e.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),u=c&&e.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),p=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder,f=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,o=(c||p)&&e.atob&&e.ArrayBuffer&&e.Uint8Array&&function(e){var t,i,n,o,a,r,s,l,d;if(!(t=e.match(f)))throw new Error("invalid data URI");for(i=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),n=!!t[4],o=e.slice(t[0].length),a=n?atob(o):decodeURIComponent(o),r=new ArrayBuffer(a.length),s=new Uint8Array(r),l=0;l')).attr("accept-charset",o.formAcceptCharset),t=/\?/.test(o.url)?"&":"?","DELETE"===o.type?(o.url=o.url+t+"_method=DELETE",o.type="POST"):"PUT"===o.type?(o.url=o.url+t+"_method=PUT",o.type="POST"):"PATCH"===o.type&&(o.url=o.url+t+"_method=PATCH",o.type="POST"),r=l('').bind("load",function(){var n,t=l.isArray(o.paramName)?o.paramName:[o.paramName];r.unbind("load").bind("load",function(){var t;try{if(!(t=r.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}i(200,"success",{iframe:t}),l('').appendTo(a),window.setTimeout(function(){a.remove()},0)}),a.prop("target",r.prop("name")).prop("action",o.url).prop("method",o.type),o.formData&&l.each(o.formData,function(e,t){l('').prop("name",t.name).val(t.value).appendTo(a)}),o.fileInput&&o.fileInput.length&&"POST"===o.type&&(n=o.fileInput.clone(),o.fileInput.after(function(e){return n[e]}),o.paramName&&o.fileInput.each(function(e){l(this).prop("name",t[e]||o.paramName)}),a.append(o.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),o.fileInput.removeAttr("form")),a.submit(),n&&n.length&&o.fileInput.each(function(e,t){var i=l(n[e]);l(t).prop("name",i.prop("name")).attr("form",i.attr("form")),i.replaceWith(t)})}),a.append(r).appendTo(document.body)},abort:function(){r&&r.unbind("load").prop("src",s),a&&a.remove()}}}}),l.ajaxSetup({converters:{"iframe text":function(e){return e&&l(e[0].body).text()},"iframe json":function(e){return e&&l.parseJSON(l(e[0].body).text())},"iframe html":function(e){return e&&l(e[0].body).html()},"iframe xml":function(e){var t=e&&e[0];return t&&l.isXMLDoc(t)?t:l.parseXML(t.XMLDocument&&t.XMLDocument.xml||l(t.body).html())},"iframe script":function(e){return e&&l.globalEval(l(e[0].body).text())}}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):"object"==typeof exports?e(require("jquery"),require("./vendor/jquery.ui.widget")):e(window.jQuery)}(function(b){"use strict";function e(i){var n="dragover"===i;return function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var t=e.dataTransfer;t&&-1!==b.inArray("Files",t.types)&&!1!==this._trigger(i,b.Event(i,{delegatedEvent:e}))&&(e.preventDefault(),n&&(t.dropEffect="copy"))}}b.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||b('').prop("disabled")),b.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),b.support.xhrFormDataFileUpload=!!window.FormData,b.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),b.widget("blueimp.fileupload",{options:{dropZone:b(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(i,e){return i=this.messages[i]||i.toString(),e&&b.each(e,function(e,t){i=i.replace("{"+e+"}",t)}),i},formData:function(e){return e.serializeArray()},add:function(e,t){if(e.isDefaultPrevented())return!1;(t.autoUpload||!1!==t.autoUpload&&b(this).fileupload("option","autoUpload"))&&t.process().done(function(){t.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:b.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var n=e-this.timestamp;return(!this.bitrate||!i||i").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&t&&t!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(e){var t=b(e.fileInput),n=e.paramName;return n?b.isArray(n)||(n=[n]):(n=[],t.each(function(){for(var e=b(this),t=e.prop("name")||"files[]",i=(e.prop("files")||[1]).length;i;)n.push(t),i-=1}),n.length||(n=[t.prop("name")||"files[]"])),n},_initFormSettings:function(e){e.form&&e.form.length||(e.form=b(e.fileInput.prop("form")),e.form.length||(e.form=b(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===b.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var t=b.extend({},this.options,e);return this._initFormSettings(t),this._initDataSettings(t),t},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(e,t,i){var n=b.Deferred(),o=n.promise();return t=t||this.options.context||o,!0===e?n.resolveWith(t,i):!1===e&&n.rejectWith(t,i),o.abort=n.promise,this._enhancePromise(o)},_addConvenienceMethods:function(e,i){var n=this,o=function(e){return b.Deferred().resolveWith(n,e).promise()};i.process=function(e,t){return(e||t)&&(i._processQueue=this._processQueue=(this._processQueue||o([this])).then(function(){return i.errorThrown?b.Deferred().rejectWith(n,[i]).promise():o(arguments)}).then(e,t)),this._processQueue||o([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==n._trigger("submit",b.Event("submit",{delegatedEvent:e}),this)&&n._onSend(e,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),n=i&&1r._sending)for(var n=r._slots.shift();n;){if("pending"===r._getDeferredState(n)){n.resolve();break}n=r._slots.shift()}0===r._active&&r._trigger("stop")})};return this._beforeSend(e,s),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?((a=1p||u&&u<=t+1-m)&&(r.push(d.slice(m,t+1)),(e=g.slice(m,t+1)).length||(e=g),a.push(e),m=t+1,h=0);else a=g;else for(r=[],a=[],t=0;t").append(n)[0].reset(),i.after(n).detach(),t&&n.focus(),b.cleanData(i.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,t){return t===i[0]?n[0]:t}),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(i,n){var e,o=this,a=b.Deferred(),r=[],s=function(e){e&&!e.entry&&(e.entry=i),a.resolve([e])},l=function(){e.readEntries(function(e){var t;e.length?(r=r.concat(e),l()):(t=r,o._handleFileTreeEntries(t,n+i.name+"/").done(function(e){a.resolve(e)}).fail(s))},s)};return n=n||"",i.isFile?i._file?(i._file.relativePath=n,a.resolve(i._file)):i.file(function(e){e.relativePath=n,a.resolve(e)},s):i.isDirectory?(e=i.createReader(),l()):a.resolve([]),a.promise()},_handleFileTreeEntries:function(e,t){var i=this;return b.when.apply(b,b.map(e,function(e){return i._handleFileTreeEntry(e,t)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(e){var t=(e=e||{}).items;return t&&t.length&&(t[0].webkitGetAsEntry||t[0].getAsEntry)?this._handleFileTreeEntries(b.map(t,function(e){var t;return e.webkitGetAsEntry?((t=e.webkitGetAsEntry())&&(t._file=e.getAsFile()),t):e.getAsEntry()})):b.Deferred().resolve(b.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){var t,i,n=(e=b(e)).prop("webkitEntries")||e.prop("entries");if(n&&n.length)return this._handleFileTreeEntries(n);if((t=b.makeArray(e.prop("files"))).length)void 0===t[0].name&&t[0].fileName&&b.each(t,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(!(i=e.prop("value")))return b.Deferred().resolve([]).promise();t=[{name:i.replace(/^.*\\/,"")}]}return b.Deferred().resolve(t).promise()},_getFileInputFiles:function(e){return e instanceof b&&1!==e.length?b.when.apply(b,b.map(e,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(e)},_onChange:function(t){var i=this,n={fileInput:b(t.target),form:b(t.target.form)};this._getFileInputFiles(n.fileInput).always(function(e){n.files=e,i.options.replaceFileInput&&i._replaceFileInput(n),!1!==i._trigger("change",b.Event("change",{delegatedEvent:t}),n)&&i._onAdd(t,n)})},_onPaste:function(e){var t=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,n={files:[]};t&&t.length&&(b.each(t,function(e,t){var i=t.getAsFile&&t.getAsFile();i&&n.files.push(i)}),!1!==this._trigger("paste",b.Event("paste",{delegatedEvent:e}),n)&&this._onAdd(e,n))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=this,e=t.dataTransfer,n={};e&&e.files&&e.files.length&&(t.preventDefault(),this._getDroppedFiles(e).always(function(e){n.files=e,!1!==i._trigger("drop",b.Event("drop",{delegatedEvent:t}),n)&&i._onAdd(t,n)}))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),b.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(e,t){var i=-1!==b.inArray(e,this._specialOptions);i&&this._destroyEventHandlers(),this._super(e,t),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof b||(e.fileInput=b(e.fileInput)),e.dropZone instanceof b||(e.dropZone=b(e.dropZone)),e.pasteZone instanceof b||(e.pasteZone=b(e.pasteZone))},_getRegExp:function(e){var t=e.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(e,t){return"url"!==e&&"string"===b.type(t)&&/^\/.*\/[igm]{0,3}$/.test(t)},_initDataAttributes:function(){var o=this,a=this.options,r=this.element.data();b.each(this.element[0].attributes,function(e,t){var i,n=t.name.toLowerCase();/^data-/.test(n)&&(n=n.slice(5).replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()}),i=r[n],o._isRegExpOption(n,i)&&(i=o._getRegExp(i)),a[n]=i)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,i._onAdd(null,t)}):(t.files=b.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,n,o=this,a=b.Deferred(),e=a.promise();return e.abort=function(){return n=!0,i?i.abort():(a.reject(null,"abort","abort"),e)},this._getFileInputFiles(t.fileInput).always(function(e){if(!n){if(!e.length)return void a.reject();t.files=e,(i=o._onSend(null,t)).then(function(e,t,i){a.resolve(e,t,i)},function(e,t,i){a.reject(e,t,i)})}}),this._enhancePromise(e)}if(t.files=b.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload"],e):"object"==typeof exports?e(require("jquery"),require("./jquery.fileupload")):e(window.jQuery)}(function(r){"use strict";var n=r.blueimp.fileupload.prototype.options.add;r.widget("blueimp.fileupload",r.blueimp.fileupload,{options:{processQueue:[],add:function(e,t){var i=r(this);t.process(function(){return i.fileupload("process",t)}),n.call(this,e,t)}},processActions:{},_processFile:function(e,n){var o=this,a=r.Deferred().resolveWith(o,[e]).promise();return this._trigger("process",null,e),r.each(e.processQueue,function(e,t){var i=function(e){return n.errorThrown?r.Deferred().rejectWith(o,[n]).promise():o.processActions[t.action].call(o,e,t)};a=a.then(i,t.always&&i)}),a.done(function(){o._trigger("processdone",null,e),o._trigger("processalways",null,e)}).fail(function(){o._trigger("processfail",null,e),o._trigger("processalways",null,e)}),a},_transformProcessQueue:function(o){var t=[];r.each(o.processQueue,function(){var i={},e=this.action,n=!0===this.prefix?e:this.prefix;r.each(this,function(e,t){i[e]="string"===r.type(t)&&"@"===t.charAt(0)?o[t.slice(1)||(n?n+e.charAt(0).toUpperCase()+e.slice(1):e)]:t}),t.push(i)}),o.processQueue=t},processing:function(){return this._processing},process:function(n){var o=this,a=r.extend({},this.options,n);return a.processQueue&&a.processQueue.length&&(this._transformProcessQueue(a),0===this._processing&&this._trigger("processstart"),r.each(n.files,function(e){var t=e?r.extend({},a):a,i=function(){return n.errorThrown?r.Deferred().rejectWith(o,[n]).promise():o._processFile(t,n)};t.index=e,o._processing+=1,o._processingQueue=o._processingQueue.then(i,i).always(function(){o._processing-=1,0===o._processing&&o._trigger("processstop")})})),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=r.Deferred().resolveWith(this).promise()}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","load-image","load-image-meta","load-image-exif","canvas-to-blob","./jquery.fileupload-process"],e):"object"==typeof exports?e(require("jquery"),require("blueimp-load-image/js/load-image"),require("blueimp-load-image/js/load-image-meta"),require("blueimp-load-image/js/load-image-exif"),require("blueimp-canvas-to-blob"),require("./jquery.fileupload-process")):e(window.jQuery,window.loadImage)}(function(s,l){"use strict";s.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadImageMetaData",disableImageHead:"@",disableExif:"@",disableExifThumbnail:"@",disableExifSub:"@",disableExifGps:"@",disabled:"@disableImageMetaDataLoad"},{action:"loadImage",prefix:!0,fileTypes:"@",maxFileSize:"@",noRevoke:"@",disabled:"@disableImageLoad"},{action:"resizeImage",prefix:"image",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",forceResize:"@",disabled:"@disableImageResize"},{action:"saveImage",quality:"@imageQuality",type:"@imageType",disabled:"@disableImageResize"},{action:"saveImageMetaData",disabled:"@disableImageMetaDataSave"},{action:"resizeImage",prefix:"preview",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",thumbnail:"@",canvas:"@",disabled:"@disableImagePreview"},{action:"setImage",name:"@imagePreviewName",disabled:"@disableImagePreview"},{action:"deleteImageReferences",disabled:"@disableImageReferencesDeletion"}),s.widget("blueimp.fileupload",s.blueimp.fileupload,{options:{loadImageFileTypes:/^image\/(gif|jpeg|png|svg\+xml)$/,loadImageMaxFileSize:1e7,imageMaxWidth:1920,imageMaxHeight:1080,imageOrientation:!1,imageCrop:!1,disableImageResize:!0,previewMaxWidth:80,previewMaxHeight:80,previewOrientation:!0,previewThumbnail:!0,previewCrop:!1,previewCanvas:!0},processActions:{loadImage:function(t,e){if(e.disabled)return t;var i=this,n=t.files[t.index],o=s.Deferred();return"number"===s.type(e.maxFileSize)&&n.size>e.maxFileSize||e.fileTypes&&!e.fileTypes.test(n.type)||!l(n,function(e){e.src&&(t.img=e),o.resolveWith(i,[t])},e)?t:o.promise()},resizeImage:function(t,i){if(i.disabled||!t.canvas&&!t.img)return t;i=s.extend({canvas:!0},i);var e,n=this,o=s.Deferred(),a=i.canvas&&t.canvas||t.img,r=function(e){e&&(e.width!==a.width||e.height!==a.height||i.forceResize)&&(t[e.getContext?"canvas":"img"]=e),t.preview=e,o.resolveWith(n,[t])};if(t.exif){if(!0===i.orientation&&(i.orientation=t.exif.get("Orientation")),i.thumbnail&&(e=t.exif.get("Thumbnail")))return l(e,r,i),o.promise();t.orientation?delete i.orientation:t.orientation=i.orientation}return a?(r(l.scale(a,i)),o.promise()):t},saveImage:function(t,e){if(!t.canvas||e.disabled)return t;var i=this,n=t.files[t.index],o=s.Deferred();return t.canvas.toBlob?(t.canvas.toBlob(function(e){e.name||(n.type===e.type?e.name=n.name:n.name&&(e.name=n.name.replace(/\.\w+$/,"."+e.type.substr(6)))),n.type!==e.type&&delete t.imageHead,t.files[t.index]=e,o.resolveWith(i,[t])},e.type||n.type,e.quality),o.promise()):t},loadImageMetaData:function(t,e){if(e.disabled)return t;var i=this,n=s.Deferred();return l.parseMetaData(t.files[t.index],function(e){s.extend(t,e),n.resolveWith(i,[t])},e),n.promise()},saveImageMetaData:function(e,t){if(!(e.imageHead&&e.canvas&&e.canvas.toBlob)||t.disabled)return e;var i=e.files[e.index],n=new Blob([e.imageHead,this._blobSlice.call(i,20)],{type:i.type});return n.name=i.name,e.files[e.index]=n,e},setImage:function(e,t){return e.preview&&!t.disabled&&(e.files[e.index][t.name||"preview"]=e.preview),e},deleteImageReferences:function(e,t){return t.disabled||(delete e.img,delete e.canvas,delete e.preview,delete e.imageHead),e}}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload-process"],e):"object"==typeof exports?e(require("jquery"),require("./jquery.fileupload-process")):e(window.jQuery)}(function(r){"use strict";r.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),r.widget("blueimp.fileupload",r.blueimp.fileupload,{options:{getNumberOfFiles:r.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(e,t){if(t.disabled)return e;var i,n=r.Deferred(),o=this.options,a=e.files[e.index];return(t.minFileSize||t.maxFileSize)&&(i=a.size),"number"===r.type(t.maxNumberOfFiles)&&(o.getNumberOfFiles()||0)+e.files.length>t.maxNumberOfFiles?a.error=o.i18n("maxNumberOfFiles"):!t.acceptFileTypes||t.acceptFileTypes.test(a.type)||t.acceptFileTypes.test(a.name)?i>t.maxFileSize?a.error=o.i18n("maxFileSize"):"number"===r.type(i)&&iUpload PNG or JPEG Image, PDF, TXT, PPT, DOCX File. Popup will Auto Close after File Save",FileTypes:"(png|jpg|jpeg|pdf|doc|docx|txt|ppt)",acceptFileTypes:'image/x-png,image/jpeg,.ppt,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"',SaveEvent:function(e){file.push(e.obj),$(".fileuploaded").text(" ").append(file.length+" file uploaded")}})}),"undefined"==typeof $doc&&($doc=$(document)),$doc.on("eo-finished",function(e){SubmitForm=function(e){if(console.log(file),EO&&EO.ECBDefaultCall){var t=new RegExp(/^[6789]\d{9}$/i),i=new RegExp(/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i),n=$("#txtContactUsName").val().trim(),o=$("#txtContactUsSubject").val().trim(),a=$("#txtContactUsMessage").val().trim(),r=$("#txtContactUsEmailId").val().trim(),s=$("#txtContactUsPhone").val().trim();if(null==n||null==n||""==n.trim())!1,EO.showglobalmessage("Please Provide Valid Name");else if(null==o||null==o||""==o.trim())!1,EO.showglobalmessage("Please Provide Valid Subject");else if(null==a||null==a||""==a.trim())!1,EO.showglobalmessage("Please Provide Valid Message");else if(null!=s&&null!=s&&""!=s.trim()&&t.test(s))if(null!=r&&null!=r&&""!=r.trim()&&i.test(r)){EO.showwaiting($("#ContactUsForm"));var l={url:location.href,email:r,name:n,message:a,subject:o,phone:s,files:file,captcha:e};EO.ECBDefaultCall("api/other/save",l,function(e){EO.hidewaiting($("#ContactUsForm")),e&&"success"==e.MessageType&&(file=[],EO.showglobalmessage("Message Sent Successfully","success"),$("#txtContactUsName").val(""),$("#txtContactUsMessage").val(""),$("#txtContactUsSubject").val(""),$("#txtContactUsPhone").val(""),$("#txtContactUsEmailId").val(""),$(".fileuploaded").text(" "))},function(e){EO.hidewaiting($("#ContactUsForm"))},!0,!0)}else!1,EO.showglobalmessage("Please Provide Valid Email Id");else!1,EO.showglobalmessage("Please Provide Valid phone")}}});