').on("click",function(){d.val("reauth"),r.trigger("change","reset")})),d.val(t),this.vars.mbtn.show(),a.folders&&l.call(this,n,o.path,a.folders),o.user.val("done"),o.pass.val("done"),o.offline.closest("tr").hide()}c.removeData("inrequest")},fail:function(t,n){e(this.inputs.host[0]).removeData("inrequest"),this.protocol.trigger("change","reset")}}},findCwdNodes:function(t,n){var i=this,a=this.getUI("cwd"),o=this.cwd().hash,r=e();return n=n||{},e.each(t,function(e,t){if((t.phash===o||i.searchStatus.state>1)&&(r=r.add(a.find("#"+i.cwdHash2Id(t.hash))),n.firstOnly))return!1}),r},convAbsUrl:function(e){if(e.match(/^http/i))return e;if("//"===e.substr(0,2))return window.location.protocol+e;var t,n=window.location.protocol+"//"+window.location.host,i=/[^\/]+\/\.\.\//;for(t="/"===e.substr(0,1)?n+e:n+window.location.pathname.replace(/\/[^\/]+$/,"/")+e,t=t.replace("/./","/");i.test(t);)t=t.replace(i,"");return t},isSameOrigin:function(e){var t;if(e=this.convAbsUrl(e),location.origin&&window.URL)try{return t=new URL(e),location.origin===t.origin}catch(n){}return t=document.createElement("a"),t.href=e,location.protocol===t.protocol&&location.host===t.host&&location.port&&t.port},navHash2Id:function(e){return this.navPrefix+e},navId2Hash:function(e){return"string"==typeof e&&e.substr(this.navPrefix.length)},cwdHash2Id:function(e){return this.cwdPrefix+e},cwdId2Hash:function(e){return"string"==typeof e&&e.substr(this.cwdPrefix.length)},isInWindow:function(e,t){var n,i;return!!(n=e.get(0))&&(!(!t&&null===n.offsetParent)&&(i=n.getBoundingClientRect(),!!document.elementFromPoint(i.left,i.top)))},zIndexCalc:function(){var t=this,n=this.getUI(),i=n.css("z-index");i&&"auto"!==i&&"inherit"!==i?t.zIndex=i:n.parents().each(function(n,i){var a=e(i).css("z-index");if("auto"!==a&&"inherit"!==a&&(a=parseInt(a)))return t.zIndex=a,!1})},loadScript:function(t,n,i,a){var o,r={dataType:"script",cache:!0},s=null,l={};return i=i||{},i.tryRequire&&this.hasRequire?require(t,n,i.error):(e.isFunction(n)&&(s=function(t,o){if(o&&"success"!==o&&"notmodified"!==o)i.error&&e.isFunction(i.error)&&i.error();else if(a)if("undefined"==typeof a.obj[a.name])var r=a.timeout?a.timeout/10:1,s=setInterval(function(){(--r<0||"undefined"!=typeof a.obj[a.name])&&(clearInterval(s),n())},10);else n();else n()}),"tag"===i.loadType?(e("head > script").each(function(){l[this.src]=this}),o=t.length,e.each(t,function(t,n){var a,r=!1;l[n]?--o<1&&s(void 0,l[n]._error):(a=document.createElement("script"),a.charset=i.charset||"UTF-8",e("head").append(a),a.onload=a.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,--o<1&&s())},a.onerror=function(e){a._error=e&&e.type?e.type:"error",--o<1&&s(void 0,a._error)},a.src=n)})):(i=e.isPlainObject(i)?Object.assign(r,i):r,function c(){e.ajax(Object.assign(i,{url:t.shift(),success:t.length?c:s}))}())),this},loadCss:function(t){var n=this;return"string"==typeof t&&(t=[t]),e.each(t,function(t,i){i=n.convAbsUrl(i).replace(/^https?:/i,""),e("head > link[href='+url+']").length||e("head").append('')}),this},asyncJob:function(t,n,i){var a,o,r=e.Deferred().always(function(){r._abort=function(){}}),s=!1,l=Object.assign({interval:0,numPerOnce:1},i||{}),c=[],d=[],p=[];return r._abort=function(e){o&&clearTimeout(o),d=[],s=!0,"pending"===r.state()&&r[e?"resolve":"reject"](c)},"function"==typeof t&&Array.isArray(n)?(d=n.concat(),a=function(){s||(p=d.splice(0,l.numPerOnce),e.each(p,function(e,n){if(s)return!1;var i=t(n);null!==i&&c.push(i)}),s||(d.length?o=setTimeout(a,l.interval):r.resolve(c)))},d.length?o=setTimeout(a,0):r.resolve(c)):r.reject(),r},getSize:function(t){var n=this,i=[],a=e.Deferred().fail(function(){e.each(i,function(e,t){t&&(t.syncOnFail(!1),t.reject())})}),o=function(t){var i=[];return"directory"===t.mime&&e.each(n.leafRoots,function(e,a){var o;if(e===t.hash)i.push.apply(i,a);else for(o=(n.file(e)||{}).phash;o;)o===t.hash&&i.push.apply(i,a),o=(n.file(o)||{}).phash}),i},r=function(t){var i=e.Deferred(),a=n.file(t),o=a?a.phash:t;return o&&!n.file(o)?n.request({data:{cmd:"parents",target:o},preventFail:!0}).done(function(){n.one("parentsdone",function(){i.resolve()})}).fail(function(){i.resolve()}):i.resolve(),i},s=function(){var t=e.Deferred(),i=Object.keys(n.leafRoots).length;return i>0?e.each(n.leafRoots,function(e){r(e).done(function(){--i,i<1&&t.resolve()})}):t.resolve(),t};return n.autoSync("stop"),s().done(function(){var r=[],s={},l=[],c=[],d={};e.each(t,function(){r.push.apply(r,o(n.file(this)))}),t.push.apply(t,r),e.each(t,function(){var t=n.root(this),i=n.file(this);i&&(i.sizeInfo||"directory"!==i.mime)?c.push(e.Deferred().resolve(i.sizeInfo?i.sizeInfo:{size:i.size,dirCnt:0,fileCnt:1})):s[t]?s[t].push(this):s[t]=[this]}),e.each(s,function(){var e=l.length;1===this.length&&(d[e]=this[0]),l.push(n.request({data:{cmd:"size",targets:this},preventDefault:!0}))}),i.push.apply(i,l),l.push.apply(l,c),e.when.apply(e,l).fail(function(){a.reject()}).done(function(){var t,i,o,r=function(t,i){var a;(a=n.file(t))&&(a.sizeInfo={isCache:!0},e.each(["size","dirCnt","fileCnt"],function(){a.sizeInfo[this]=i[this]||0}),a.size=parseInt(a.sizeInfo.size),f.push(a))},s=0,l=0,c=0,p=arguments.length,u=[],h="",f=[];for(t=0;t"+u.join(", ")),a.resolve({size:s,fileCnt:l,dirCnt:c,formated:(s>=0?n.formatSize(s):n.i18n("unknown"))+h})}),n.autoSync()}),a},abortXHR:function(e,t){var n=t||{};e&&(n.quiet&&(e.quiet=!0),n.abort&&e._requestId&&this.request({data:{cmd:"abort",id:e._requestId},preventDefault:!0}),e.abort(),e=void 0)},arrayFlip:function(t,n){var i,a={},o=e.isArray(t);for(i in t)(o||t.hasOwnProperty(i))&&(a[t[i]]=n||i);return a},splitFileExtention:function(e){var t;return(t=e.match(/^(.+?)?\.((?:tar\.(?:gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(?:gz|bz2)|[a-z0-9]{1,4})$/i))?("undefined"==typeof t[1]&&(t[1]=""),[t[1],t[2]]):[e,""]},log:function(e){return window.console&&window.console.log&&window.console.log(e),this},debug:function(e,t){var n=this.options.debug;return n&&("all"===n||n[e])&&window.console&&window.console.log&&window.console.log("elfinder debug: ["+e+"] ["+this.id+"]",t),"backend-error"===e?(!this.cwd().hash||n&&("all"===n||n["backend-error"]))&&(t=Array.isArray(t)?t:[t],this.error(t)):"backend-debug"===e&&this.trigger("backenddebug",t),this},time:function(e){window.console&&window.console.time&&window.console.time(e)},timeEnd:function(e){window.console&&window.console.timeEnd&&window.console.timeEnd(e)}},Object.keys||(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;return function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on non-object");var o=[];for(var r in a)e.call(a,r)&&o.push(r);if(t)for(var s=0;s=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="",i=0;i1)&&(r.options.disabled=a(r.element),r.options.autoDisable=r.options.disabled?2:1)}return t(n,i)}}}(),function(e){function t(t,n){if(!(t.originalEvent.touches.length>1)){e(t.currentTarget).hasClass("touch-punch-keep-default")||t.preventDefault();var i=t.originalEvent.changedTouches[0],a=document.createEvent("MouseEvents");a.initMouseEvent(n,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(a)}}if(e.support.touch="ontouchend"in document,e.support.touch){var n,i,a,o=e.ui.mouse.prototype,r=o._mouseInit,s=o._mouseDestroy;o._touchStart=function(e){var o=this;!n&&o._mouseCapture(e.originalEvent.changedTouches[0])&&(i=e.originalEvent.changedTouches[0].screenX.toFixed(0),a=e.originalEvent.changedTouches[0].screenY.toFixed(0),n=!0,o._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"))},o._touchMove=function(e){if(n){var o=e.originalEvent.changedTouches[0].screenX.toFixed(0),r=e.originalEvent.changedTouches[0].screenY.toFixed(0);Math.abs(i-o)<=4&&Math.abs(a-r)<=4||(this._touchMoved=!0,t(e,"mousemove"))}},o._touchEnd=function(e){n&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),n=!1,this._touchMoved=!1)},o._mouseInit=function(){var t=this;t.element.hasClass("touch-punch")&&t.element.on({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)},o._mouseDestroy=function(){var t=this;t.element.hasClass("touch-punch")&&t.element.off({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),s.call(t)}}}(jQuery),e.fn.elfinder=function(t,n){return"instance"===t?this.getElFinder():this.each(function(){var a,o="string"==typeof t?t:"",r="function"==typeof n?n:void 0;if(this.elfinder)switch(o){case"close":case"hide":this.elfinder.hide();break;case"open":case"show":this.elfinder.show();break;case"destroy":this.elfinder.destroy();break;case"reload":case"restart":this.elfinder&&(a=this.elfinder.options,r=this.elfinder.bootCallback,this.elfinder.destroy(),new i(this,e.extend(!0,a,e.isPlainObject(n)?n:{}),r))}else e.isPlainObject(t)&&new i(this,t,r)})},e.fn.getElFinder=function(){var e;return this.each(function(){if(this.elfinder)return e=this.elfinder,!1}),e},e.fn.elfUiWidgetInstance=function(e){try{return this[e]("instance")}catch(t){var n=this.data("ui-"+e);return n&&"object"==typeof n&&n.widgetFullName==="ui-"+e?n:null}},e.fn.scrollRight||e.fn.extend({scrollRight:function(e){return void 0===e?Math.max(0,this[0].scrollWidth-(this[0].scrollLeft+this[0].clientWidth)):this.scrollLeft(this[0].scrollWidth-this[0].clientWidth-e)}}),i.prototype.mimeTypes={"application/postscript":"ai","application/x-executable":"exe","application/msword":"doc","application/vnd.ms-excel":"xls","application/vnd.ms-powerpoint":"ppt","application/pdf":"pdf","text/xml":"xml","application/x-shockwave-flash":"swf","application/x-bittorrent":"torrent","application/x-jar":"jar","application/vnd.oasis.opendocument.text":"odt","application/vnd.oasis.opendocument.text-template":"ott","application/vnd.oasis.opendocument.text-web":"oth","application/vnd.oasis.opendocument.text-master":"odm","application/vnd.oasis.opendocument.graphics":"odg","application/vnd.oasis.opendocument.graphics-template":"otg","application/vnd.oasis.opendocument.presentation":"odp","application/vnd.oasis.opendocument.presentation-template":"otp","application/vnd.oasis.opendocument.spreadsheet":"ods","application/vnd.oasis.opendocument.spreadsheet-template":"ots","application/vnd.oasis.opendocument.chart":"odc","application/vnd.oasis.opendocument.formula":"odf","application/vnd.oasis.opendocument.database":"odb","application/vnd.oasis.opendocument.image":"odi","application/vnd.openofficeorg.extension":"oxt","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-word.document.macroEnabled.12":"docm","application/vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","application/vnd.ms-word.template.macroEnabled.12":"dotm","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-excel.sheet.macroEnabled.12":"xlsm","application/vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","application/vnd.ms-excel.template.macroEnabled.12":"xltm","application/vnd.ms-excel.sheet.binary.macroEnabled.12":"xlsb","application/vnd.ms-excel.addin.macroEnabled.12":"xlam","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.ms-powerpoint.presentation.macroEnabled.12":"pptm","application/vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","application/vnd.ms-powerpoint.slideshow.macroEnabled.12":"ppsm","application/vnd.openxmlformats-officedocument.presentationml.template":"potx","application/vnd.ms-powerpoint.template.macroEnabled.12":"potm","application/vnd.ms-powerpoint.addin.macroEnabled.12":"ppam","application/vnd.openxmlformats-officedocument.presentationml.slide":"sldx","application/vnd.ms-powerpoint.slide.macroEnabled.12":"sldm","application/x-gzip":"gz","application/x-bzip2":"bz","application/x-xz":"xz","application/zip":"zip","application/x-rar":"rar","application/x-tar":"tar","application/x-7z-compressed":"7z","text/plain":"txt","text/x-php":"php","text/html":"html","text/javascript":"js","text/css":"css","application/rtf":"rtf","application/rtfd":"rtfd","text/x-python":"py","text/x-java-source":"java","text/x-ruby":"rb","text/x-shellscript":"sh","text/x-perl":"pl","text/x-sql":"sql","text/x-csrc":"c","text/x-chdr":"h","text/x-c++src":"cpp","text/x-c++hdr":"hh","text/csv":"csv","text/x-markdown":"md","image/x-ms-bmp":"bmp","image/jpeg":"jpg","image/gif":"gif","image/png":"png","image/tiff":"tif","image/x-targa":"tga","image/vnd.adobe.photoshop":"psd","image/xbm":"xbm","image/pxm":"pxm","audio/mpeg":"mp3","audio/midi":"mid","audio/ogg":"ogg","audio/mp4":"m4a","audio/wav":"wav","audio/x-ms-wma":"wma","video/x-msvideo":"avi","video/x-dv":"dv","video/mp4":"mp4","video/mpeg":"mpeg","video/quicktime":"mov","video/x-ms-wmv":"wm","video/x-flv":"flv","video/x-matroska":"mkv","video/webm":"webm","video/ogg":"ogv","video/MP2T":"m2ts","application/x-mpegURL":"m3u8","application/dash+xml":"mpd","application/andrew-inset":"ez","application/applixware":"aw","application/atom+xml":"atom","application/atomcat+xml":"atomcat","application/atomsvc+xml":"atomsvc","application/ccxml+xml":"ccxml","application/cdmi-capability":"cdmia","application/cdmi-container":"cdmic","application/cdmi-domain":"cdmid","application/cdmi-object":"cdmio","application/cdmi-queue":"cdmiq","application/cu-seeme":"cu","application/davmount+xml":"davmount","application/docbook+xml":"dbk","application/dssc+der":"dssc","application/dssc+xml":"xdssc","application/ecmascript":"ecma","application/emma+xml":"emma","application/epub+zip":"epub","application/exi":"exi","application/font-tdpfr":"pfr","application/gml+xml":"gml","application/gpx+xml":"gpx","application/gxf":"gxf","application/hyperstudio":"stk","application/inkml+xml":"ink","application/ipfix":"ipfix","application/java-serialized-object":"ser","application/java-vm":"class","application/json":"json","application/jsonml+json":"jsonml","application/lost+xml":"lostxml","application/mac-binhex40":"hqx","application/mac-compactpro":"cpt","application/mads+xml":"mads","application/marc":"mrc","application/marcxml+xml":"mrcx","application/mathematica":"ma","application/mathml+xml":"mathml","application/mbox":"mbox","application/mediaservercontrol+xml":"mscml","application/metalink+xml":"metalink","application/metalink4+xml":"meta4","application/mets+xml":"mets","application/mods+xml":"mods","application/mp21":"m21","application/mp4":"mp4s","application/mxf":"mxf","application/octet-stream":"bin","application/oda":"oda","application/oebps-package+xml":"opf","application/ogg":"ogx","application/omdoc+xml":"omdoc","application/onenote":"onetoc","application/oxps":"oxps","application/patch-ops-error+xml":"xer","application/pgp-encrypted":"pgp","application/pgp-signature":"asc","application/pics-rules":"prf","application/pkcs10":"p10","application/pkcs7-mime":"p7m","application/pkcs7-signature":"p7s","application/pkcs8":"p8","application/pkix-attr-cert":"ac","application/pkix-cert":"cer","application/pkix-crl":"crl","application/pkix-pkipath":"pkipath","application/pkixcmp":"pki","application/pls+xml":"pls","application/prs.cww":"cww","application/pskc+xml":"pskcxml","application/rdf+xml":"rdf","application/reginfo+xml":"rif","application/relax-ng-compact-syntax":"rnc","application/resource-lists+xml":"rl","application/resource-lists-diff+xml":"rld","application/rls-services+xml":"rs","application/rpki-ghostbusters":"gbr","application/rpki-manifest":"mft","application/rpki-roa":"roa","application/rsd+xml":"rsd","application/rss+xml":"rss","application/sbml+xml":"sbml","application/scvp-cv-request":"scq","application/scvp-cv-response":"scs","application/scvp-vp-request":"spq","application/scvp-vp-response":"spp","application/sdp":"sdp","application/set-payment-initiation":"setpay","application/set-registration-initiation":"setreg","application/shf+xml":"shf","application/smil+xml":"smi","application/sparql-query":"rq","application/sparql-results+xml":"srx","application/srgs":"gram","application/srgs+xml":"grxml","application/sru+xml":"sru","application/ssdl+xml":"ssdl","application/ssml+xml":"ssml","application/tei+xml":"tei","application/thraud+xml":"tfi","application/timestamped-data":"tsd","application/vnd.3gpp.pic-bw-large":"plb","application/vnd.3gpp.pic-bw-small":"psb","application/vnd.3gpp.pic-bw-var":"pvb","application/vnd.3gpp2.tcap":"tcap","application/vnd.3m.post-it-notes":"pwn","application/vnd.accpac.simply.aso":"aso","application/vnd.accpac.simply.imp":"imp","application/vnd.acucobol":"acu","application/vnd.acucorp":"atc","application/vnd.adobe.air-application-installer-package+zip":"air","application/vnd.adobe.formscentral.fcdt":"fcdt","application/vnd.adobe.fxp":"fxp","application/vnd.adobe.xdp+xml":"xdp","application/vnd.adobe.xfdf":"xfdf","application/vnd.ahead.space":"ahead","application/vnd.airzip.filesecure.azf":"azf","application/vnd.airzip.filesecure.azs":"azs","application/vnd.amazon.ebook":"azw","application/vnd.americandynamics.acc":"acc","application/vnd.amiga.ami":"ami","application/vnd.android.package-archive":"apk","application/vnd.anser-web-certificate-issue-initiation":"cii","application/vnd.anser-web-funds-transfer-initiation":"fti","application/vnd.antix.game-component":"atx","application/vnd.apple.installer+xml":"mpkg","application/vnd.aristanetworks.swi":"swi","application/vnd.astraea-software.iota":"iota","application/vnd.audiograph":"aep","application/vnd.blueice.multipass":"mpm","application/vnd.bmi":"bmi","application/vnd.businessobjects":"rep","application/vnd.chemdraw+xml":"cdxml","application/vnd.chipnuts.karaoke-mmd":"mmd","application/vnd.cinderella":"cdy","application/vnd.claymore":"cla","application/vnd.cloanto.rp9":"rp9","application/vnd.clonk.c4group":"c4g","application/vnd.cluetrust.cartomobile-config":"c11amc","application/vnd.cluetrust.cartomobile-config-pkg":"c11amz","application/vnd.commonspace":"csp","application/vnd.contact.cmsg":"cdbcmsg","application/vnd.cosmocaller":"cmc","application/vnd.crick.clicker":"clkx","application/vnd.crick.clicker.keyboard":"clkk","application/vnd.crick.clicker.palette":"clkp","application/vnd.crick.clicker.template":"clkt","application/vnd.crick.clicker.wordbank":"clkw","application/vnd.criticaltools.wbs+xml":"wbs","application/vnd.ctc-posml":"pml","application/vnd.cups-ppd":"ppd","application/vnd.curl.car":"car","application/vnd.curl.pcurl":"pcurl","application/vnd.dart":"dart","application/vnd.data-vision.rdz":"rdz","application/vnd.dece.data":"uvf","application/vnd.dece.ttml+xml":"uvt","application/vnd.dece.unspecified":"uvx","application/vnd.dece.zip":"uvz","application/vnd.denovo.fcselayout-link":"fe_launch","application/vnd.dna":"dna","application/vnd.dolby.mlp":"mlp","application/vnd.dpgraph":"dpg","application/vnd.dreamfactory":"dfac","application/vnd.ds-keypoint":"kpxx","application/vnd.dvb.ait":"ait","application/vnd.dvb.service":"svc","application/vnd.dynageo":"geo","application/vnd.ecowin.chart":"mag","application/vnd.enliven":"nml","application/vnd.epson.esf":"esf","application/vnd.epson.msf":"msf","application/vnd.epson.quickanime":"qam","application/vnd.epson.salt":"slt","application/vnd.epson.ssf":"ssf","application/vnd.eszigno3+xml":"es3","application/vnd.ezpix-album":"ez2","application/vnd.ezpix-package":"ez3","application/vnd.fdf":"fdf","application/vnd.fdsn.mseed":"mseed","application/vnd.fdsn.seed":"seed","application/vnd.flographit":"gph","application/vnd.fluxtime.clip":"ftc","application/vnd.framemaker":"fm","application/vnd.frogans.fnc":"fnc","application/vnd.frogans.ltf":"ltf","application/vnd.fsc.weblaunch":"fsc","application/vnd.fujitsu.oasys":"oas","application/vnd.fujitsu.oasys2":"oa2","application/vnd.fujitsu.oasys3":"oa3","application/vnd.fujitsu.oasysgp":"fg5","application/vnd.fujitsu.oasysprs":"bh2","application/vnd.fujixerox.ddd":"ddd","application/vnd.fujixerox.docuworks":"xdw","application/vnd.fujixerox.docuworks.binder":"xbd","application/vnd.fuzzysheet":"fzs","application/vnd.genomatix.tuxedo":"txd","application/vnd.geogebra.file":"ggb","application/vnd.geogebra.tool":"ggt","application/vnd.geometry-explorer":"gex","application/vnd.geonext":"gxt","application/vnd.geoplan":"g2w","application/vnd.geospace":"g3w","application/vnd.gmx":"gmx","application/vnd.google-earth.kml+xml":"kml","application/vnd.google-earth.kmz":"kmz","application/vnd.grafeq":"gqf","application/vnd.groove-account":"gac","application/vnd.groove-help":"ghf","application/vnd.groove-identity-message":"gim","application/vnd.groove-injector":"grv","application/vnd.groove-tool-message":"gtm","application/vnd.groove-tool-template":"tpl","application/vnd.groove-vcard":"vcg","application/vnd.hal+xml":"hal","application/vnd.handheld-entertainment+xml":"zmm","application/vnd.hbci":"hbci","application/vnd.hhe.lesson-player":"les","application/vnd.hp-hpgl":"hpgl","application/vnd.hp-hpid":"hpid","application/vnd.hp-hps":"hps","application/vnd.hp-jlyt":"jlt","application/vnd.hp-pcl":"pcl","application/vnd.hp-pclxl":"pclxl","application/vnd.hydrostatix.sof-data":"sfd-hdstx","application/vnd.ibm.minipay":"mpy","application/vnd.ibm.modcap":"afp","application/vnd.ibm.rights-management":"irm","application/vnd.ibm.secure-container":"sc","application/vnd.iccprofile":"icc","application/vnd.igloader":"igl","application/vnd.immervision-ivp":"ivp","application/vnd.immervision-ivu":"ivu","application/vnd.insors.igm":"igm","application/vnd.intercon.formnet":"xpw","application/vnd.intergeo":"i2g","application/vnd.intu.qbo":"qbo","application/vnd.intu.qfx":"qfx","application/vnd.ipunplugged.rcprofile":"rcprofile","application/vnd.irepository.package+xml":"irp","application/vnd.is-xpr":"xpr","application/vnd.isac.fcs":"fcs","application/vnd.jam":"jam","application/vnd.jcp.javame.midlet-rms":"rms","application/vnd.jisp":"jisp","application/vnd.joost.joda-archive":"joda","application/vnd.kahootz":"ktz","application/vnd.kde.karbon":"karbon","application/vnd.kde.kchart":"chrt","application/vnd.kde.kformula":"kfo","application/vnd.kde.kivio":"flw","application/vnd.kde.kontour":"kon","application/vnd.kde.kpresenter":"kpr",
"application/vnd.kde.kspread":"ksp","application/vnd.kde.kword":"kwd","application/vnd.kenameaapp":"htke","application/vnd.kidspiration":"kia","application/vnd.kinar":"kne","application/vnd.koan":"skp","application/vnd.kodak-descriptor":"sse","application/vnd.las.las+xml":"lasxml","application/vnd.llamagraphics.life-balance.desktop":"lbd","application/vnd.llamagraphics.life-balance.exchange+xml":"lbe","application/vnd.lotus-1-2-3":123,"application/vnd.lotus-approach":"apr","application/vnd.lotus-freelance":"pre","application/vnd.lotus-notes":"nsf","application/vnd.lotus-organizer":"org","application/vnd.lotus-screencam":"scm","application/vnd.lotus-wordpro":"lwp","application/vnd.macports.portpkg":"portpkg","application/vnd.mcd":"mcd","application/vnd.medcalcdata":"mc1","application/vnd.mediastation.cdkey":"cdkey","application/vnd.mfer":"mwf","application/vnd.mfmp":"mfm","application/vnd.micrografx.flo":"flo","application/vnd.micrografx.igx":"igx","application/vnd.mif":"mif","application/vnd.mobius.daf":"daf","application/vnd.mobius.dis":"dis","application/vnd.mobius.mbk":"mbk","application/vnd.mobius.mqy":"mqy","application/vnd.mobius.msl":"msl","application/vnd.mobius.plc":"plc","application/vnd.mobius.txf":"txf","application/vnd.mophun.application":"mpn","application/vnd.mophun.certificate":"mpc","application/vnd.mozilla.xul+xml":"xul","application/vnd.ms-artgalry":"cil","application/vnd.ms-cab-compressed":"cab","application/vnd.ms-fontobject":"eot","application/vnd.ms-htmlhelp":"chm","application/vnd.ms-ims":"ims","application/vnd.ms-lrm":"lrm","application/vnd.ms-officetheme":"thmx","application/vnd.ms-pki.seccat":"cat","application/vnd.ms-pki.stl":"stl","application/vnd.ms-project":"mpp","application/vnd.ms-works":"wps","application/vnd.ms-wpl":"wpl","application/vnd.ms-xpsdocument":"xps","application/vnd.mseq":"mseq","application/vnd.musician":"mus","application/vnd.muvee.style":"msty","application/vnd.mynfc":"taglet","application/vnd.neurolanguage.nlu":"nlu","application/vnd.nitf":"ntf","application/vnd.noblenet-directory":"nnd","application/vnd.noblenet-sealer":"nns","application/vnd.noblenet-web":"nnw","application/vnd.nokia.n-gage.data":"ngdat","application/vnd.nokia.n-gage.symbian.install":"n-gage","application/vnd.nokia.radio-preset":"rpst","application/vnd.nokia.radio-presets":"rpss","application/vnd.novadigm.edm":"edm","application/vnd.novadigm.edx":"edx","application/vnd.novadigm.ext":"ext","application/vnd.oasis.opendocument.chart-template":"otc","application/vnd.oasis.opendocument.formula-template":"odft","application/vnd.oasis.opendocument.image-template":"oti","application/vnd.olpc-sugar":"xo","application/vnd.oma.dd2+xml":"dd2","application/vnd.osgeo.mapguide.package":"mgp","application/vnd.osgi.dp":"dp","application/vnd.osgi.subsystem":"esa","application/vnd.palm":"pdb","application/vnd.pawaafile":"paw","application/vnd.pg.format":"str","application/vnd.pg.osasli":"ei6","application/vnd.picsel":"efif","application/vnd.pmi.widget":"wg","application/vnd.pocketlearn":"plf","application/vnd.powerbuilder6":"pbd","application/vnd.previewsystems.box":"box","application/vnd.proteus.magazine":"mgz","application/vnd.publishare-delta-tree":"qps","application/vnd.pvi.ptid1":"ptid","application/vnd.quark.quarkxpress":"qxd","application/vnd.realvnc.bed":"bed","application/vnd.recordare.musicxml":"mxl","application/vnd.recordare.musicxml+xml":"musicxml","application/vnd.rig.cryptonote":"cryptonote","application/vnd.rim.cod":"cod","application/vnd.rn-realmedia":"rm","application/vnd.rn-realmedia-vbr":"rmvb","application/vnd.route66.link66+xml":"link66","application/vnd.sailingtracker.track":"st","application/vnd.seemail":"see","application/vnd.sema":"sema","application/vnd.semd":"semd","application/vnd.semf":"semf","application/vnd.shana.informed.formdata":"ifm","application/vnd.shana.informed.formtemplate":"itp","application/vnd.shana.informed.interchange":"iif","application/vnd.shana.informed.package":"ipk","application/vnd.simtech-mindmapper":"twd","application/vnd.smaf":"mmf","application/vnd.smart.teacher":"teacher","application/vnd.solent.sdkm+xml":"sdkm","application/vnd.spotfire.dxp":"dxp","application/vnd.spotfire.sfs":"sfs","application/vnd.stardivision.calc":"sdc","application/vnd.stardivision.draw":"sda","application/vnd.stardivision.impress":"sdd","application/vnd.stardivision.math":"smf","application/vnd.stardivision.writer":"sdw","application/vnd.stardivision.writer-global":"sgl","application/vnd.stepmania.package":"smzip","application/vnd.stepmania.stepchart":"sm","application/vnd.sun.xml.calc":"sxc","application/vnd.sun.xml.calc.template":"stc","application/vnd.sun.xml.draw":"sxd","application/vnd.sun.xml.draw.template":"std","application/vnd.sun.xml.impress":"sxi","application/vnd.sun.xml.impress.template":"sti","application/vnd.sun.xml.math":"sxm","application/vnd.sun.xml.writer":"sxw","application/vnd.sun.xml.writer.global":"sxg","application/vnd.sun.xml.writer.template":"stw","application/vnd.sus-calendar":"sus","application/vnd.svd":"svd","application/vnd.symbian.install":"sis","application/vnd.syncml+xml":"xsm","application/vnd.syncml.dm+wbxml":"bdm","application/vnd.syncml.dm+xml":"xdm","application/vnd.tao.intent-module-archive":"tao","application/vnd.tcpdump.pcap":"pcap","application/vnd.tmobile-livetv":"tmo","application/vnd.trid.tpt":"tpt","application/vnd.triscape.mxs":"mxs","application/vnd.trueapp":"tra","application/vnd.ufdl":"ufd","application/vnd.uiq.theme":"utz","application/vnd.umajin":"umj","application/vnd.unity":"unityweb","application/vnd.uoml+xml":"uoml","application/vnd.vcx":"vcx","application/vnd.visio":"vsd","application/vnd.visionary":"vis","application/vnd.vsf":"vsf","application/vnd.wap.wbxml":"wbxml","application/vnd.wap.wmlc":"wmlc","application/vnd.wap.wmlscriptc":"wmlsc","application/vnd.webturbo":"wtb","application/vnd.wolfram.player":"nbp","application/vnd.wordperfect":"wpd","application/vnd.wqd":"wqd","application/vnd.wt.stf":"stf","application/vnd.xara":"xar","application/vnd.xfdl":"xfdl","application/vnd.yamaha.hv-dic":"hvd","application/vnd.yamaha.hv-script":"hvs","application/vnd.yamaha.hv-voice":"hvp","application/vnd.yamaha.openscoreformat":"osf","application/vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","application/vnd.yamaha.smaf-audio":"saf","application/vnd.yamaha.smaf-phrase":"spf","application/vnd.yellowriver-custom-menu":"cmp","application/vnd.zul":"zir","application/vnd.zzazz.deck+xml":"zaz","application/voicexml+xml":"vxml","application/widget":"wgt","application/winhlp":"hlp","application/wsdl+xml":"wsdl","application/wspolicy+xml":"wspolicy","application/x-abiword":"abw","application/x-ace-compressed":"ace","application/x-apple-diskimage":"dmg","application/x-authorware-bin":"aab","application/x-authorware-map":"aam","application/x-authorware-seg":"aas","application/x-bcpio":"bcpio","application/x-blorb":"blb","application/x-cbr":"cbr","application/x-cdlink":"vcd","application/x-cfs-compressed":"cfs","application/x-chat":"chat","application/x-chess-pgn":"pgn","application/x-conference":"nsc","application/x-cpio":"cpio","application/x-csh":"csh","application/x-debian-package":"deb","application/x-dgc-compressed":"dgc","application/x-director":"dir","application/x-doom":"wad","application/x-dtbncx+xml":"ncx","application/x-dtbook+xml":"dtb","application/x-dtbresource+xml":"res","application/x-dvi":"dvi","application/x-envoy":"evy","application/x-eva":"eva","application/x-font-bdf":"bdf","application/x-font-ghostscript":"gsf","application/x-font-linux-psf":"psf","application/x-font-pcf":"pcf","application/x-font-snf":"snf","application/x-font-type1":"pfa","application/x-freearc":"arc","application/x-futuresplash":"spl","application/x-gca-compressed":"gca","application/x-glulx":"ulx","application/x-gnumeric":"gnumeric","application/x-gramps-xml":"gramps","application/x-gtar":"gtar","application/x-hdf":"hdf","application/x-install-instructions":"install","application/x-iso9660-image":"iso","application/x-java-jnlp-file":"jnlp","application/x-latex":"latex","application/x-lzh-compressed":"lzh","application/x-mie":"mie","application/x-mobipocket-ebook":"prc","application/x-ms-application":"application","application/x-ms-shortcut":"lnk","application/x-ms-wmd":"wmd","application/x-ms-wmz":"wmz","application/x-ms-xbap":"xbap","application/x-msaccess":"mdb","application/x-msbinder":"obd","application/x-mscardfile":"crd","application/x-msclip":"clp","application/x-msdownload":"dll","application/x-msmediaview":"mvb","application/x-msmetafile":"wmf","application/x-msmoney":"mny","application/x-mspublisher":"pub","application/x-msschedule":"scd","application/x-msterminal":"trm","application/x-mswrite":"wri","application/x-netcdf":"nc","application/x-nzb":"nzb","application/x-pkcs12":"p12","application/x-pkcs7-certificates":"p7b","application/x-pkcs7-certreqresp":"p7r","application/x-research-info-systems":"ris","application/x-shar":"shar","application/x-silverlight-app":"xap","application/x-stuffit":"sit","application/x-stuffitx":"sitx","application/x-subrip":"srt","application/x-sv4cpio":"sv4cpio","application/x-sv4crc":"sv4crc","application/x-t3vm-image":"t3","application/x-tads":"gam","application/x-tcl":"tcl","application/x-tex":"tex","application/x-tex-tfm":"tfm","application/x-texinfo":"texinfo","application/x-tgif":"obj","application/x-ustar":"ustar","application/x-wais-source":"src","application/x-x509-ca-cert":"der","application/x-xfig":"fig","application/x-xliff+xml":"xlf","application/x-xpinstall":"xpi","application/x-zmachine":"z1","application/xaml+xml":"xaml","application/xcap-diff+xml":"xdf","application/xenc+xml":"xenc","application/xhtml+xml":"xhtml","application/xml":"xsl","application/xml-dtd":"dtd","application/xop+xml":"xop","application/xproc+xml":"xpl","application/xslt+xml":"xslt","application/xspf+xml":"xspf","application/xv+xml":"mxml","application/yang":"yang","application/yin+xml":"yin","audio/adpcm":"adp","audio/basic":"au","audio/s3m":"s3m","audio/silk":"sil","audio/vnd.dece.audio":"uva","audio/vnd.digital-winds":"eol","audio/vnd.dra":"dra","audio/vnd.dts":"dts","audio/vnd.dts.hd":"dtshd","audio/vnd.lucent.voice":"lvp","audio/vnd.ms-playready.media.pya":"pya","audio/vnd.nuera.ecelp4800":"ecelp4800","audio/vnd.nuera.ecelp7470":"ecelp7470","audio/vnd.nuera.ecelp9600":"ecelp9600","audio/vnd.rip":"rip","audio/webm":"weba","audio/x-aac":"aac","audio/x-aiff":"aif","audio/x-caf":"caf","audio/x-flac":"flac","audio/x-matroska":"mka","audio/x-mpegurl":"m3u","audio/x-ms-wax":"wax","audio/x-pn-realaudio":"ram","audio/x-pn-realaudio-plugin":"rmp","audio/xm":"xm","chemical/x-cdx":"cdx","chemical/x-cif":"cif","chemical/x-cmdf":"cmdf","chemical/x-cml":"cml","chemical/x-csml":"csml","chemical/x-xyz":"xyz","font/collection":"ttc","font/otf":"otf","font/ttf":"ttf","font/woff":"woff","font/woff2":"woff2","image/cgm":"cgm","image/g3fax":"g3","image/ief":"ief","image/ktx":"ktx","image/prs.btif":"btif","image/sgi":"sgi","image/svg+xml":"svg","image/vnd.dece.graphic":"uvi","image/vnd.djvu":"djvu","image/vnd.dvb.subtitle":"sub","image/vnd.dwg":"dwg","image/vnd.dxf":"dxf","image/vnd.fastbidsheet":"fbs","image/vnd.fpx":"fpx","image/vnd.fst":"fst","image/vnd.fujixerox.edmics-mmr":"mmr","image/vnd.fujixerox.edmics-rlc":"rlc","image/vnd.ms-modi":"mdi","image/vnd.ms-photo":"wdp","image/vnd.net-fpx":"npx","image/vnd.wap.wbmp":"wbmp","image/vnd.xiff":"xif","image/webp":"webp","image/x-3ds":"3ds","image/x-cmu-raster":"ras","image/x-cmx":"cmx","image/x-freehand":"fh","image/x-icon":"ico","image/x-mrsid-image":"sid","image/x-pcx":"pcx","image/x-pict":"pic","image/x-portable-anymap":"pnm","image/x-portable-bitmap":"pbm","image/x-portable-graymap":"pgm","image/x-portable-pixmap":"ppm","image/x-rgb":"rgb","image/x-xpixmap":"xpm","image/x-xwindowdump":"xwd","message/rfc822":"eml","model/iges":"igs","model/mesh":"msh","model/vnd.collada+xml":"dae","model/vnd.dwf":"dwf","model/vnd.gdl":"gdl","model/vnd.gtw":"gtw","model/vnd.vtu":"vtu","model/vrml":"wrl","model/x3d+binary":"x3db","model/x3d+vrml":"x3dv","model/x3d+xml":"x3d","text/cache-manifest":"appcache","text/calendar":"ics","text/n3":"n3","text/prs.lines.tag":"dsc","text/richtext":"rtx","text/sgml":"sgml","text/tab-separated-values":"tsv","text/troff":"t","text/turtle":"ttl","text/uri-list":"uri","text/vcard":"vcard","text/vnd.curl":"curl","text/vnd.curl.dcurl":"dcurl","text/vnd.curl.mcurl":"mcurl","text/vnd.curl.scurl":"scurl","text/vnd.fly":"fly","text/vnd.fmi.flexstor":"flx","text/vnd.graphviz":"gv","text/vnd.in3d.3dml":"3dml","text/vnd.in3d.spot":"spot","text/vnd.sun.j2me.app-descriptor":"jad","text/vnd.wap.wml":"wml","text/vnd.wap.wmlscript":"wmls","text/x-asm":"s","text/x-c":"cc","text/x-fortran":"f","text/x-nfo":"nfo","text/x-opml":"opml","text/x-pascal":"p","text/x-setext":"etx","text/x-sfv":"sfv","text/x-uuencode":"uu","text/x-vcalendar":"vcs","text/x-vcard":"vcf","video/3gpp":"3gp","video/3gpp2":"3g2","video/h261":"h261","video/h263":"h263","video/h264":"h264","video/jpeg":"jpgv","video/jpm":"jpm","video/mj2":"mj2","video/vnd.dece.hd":"uvh","video/vnd.dece.mobile":"uvm","video/vnd.dece.pd":"uvp","video/vnd.dece.sd":"uvs","video/vnd.dece.video":"uvv","video/vnd.dvb.file":"dvb","video/vnd.fvt":"fvt","video/vnd.mpegurl":"mxu","video/vnd.ms-playready.media.pyv":"pyv","video/vnd.uvvu.mp4":"uvu","video/vnd.vivo":"viv","video/x-f4v":"f4v","video/x-fli":"fli","video/x-m4v":"m4v","video/x-mng":"mng","video/x-ms-asf":"asf","video/x-ms-vob":"vob","video/x-ms-wmx":"wmx","video/x-ms-wvx":"wvx","video/x-sgi-movie":"movie","video/x-smv":"smv","x-conference/x-cooltalk":"ice","text/x-httpd-cgi":"cgi","text/x-asap":"asp","text/x-jsp":"jsp"},i.prototype._options={cdns:{ace:"//cdnjs.cloudflare.com/ajax/libs/ace/1.2.9",codemirror:"//cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0",ckeditor:"//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.8.0",tinymce:"//cdnjs.cloudflare.com/ajax/libs/tinymce/4.7.4",simplemde:"//cdnjs.cloudflare.com/ajax/libs/simplemde/1.11.2",hls:"//cdnjs.cloudflare.com/ajax/libs/hls.js/0.8.9/hls.min.js",dash:"//cdnjs.cloudflare.com/ajax/libs/dashjs/2.6.4/dash.all.min.js",prettify:"//cdn.rawgit.com/google/code-prettify/05ad1b76f8af1232da963c17bad144107b07e59a/loader/run_prettify.js",psd:"//cdnjs.cloudflare.com/ajax/libs/psd.js/3.2.0/psd.min.js",rar:"//cdn.rawgit.com/nao-pon/rar.js/6cef13ec66dd67992fc7f3ea22f132d770ebaf8b/rar.min.js",zlibUnzip:"//cdn.rawgit.com/imaya/zlib.js/0.3.1/bin/unzip.min.js",zlibGunzip:"//cdn.rawgit.com/imaya/zlib.js/0.3.1/bin/gunzip.min.js"},url:"",requestType:"get",cors:null,requestMaxConn:3,transport:{},urlUpload:"",dragUploadAllow:"auto",overwriteUploadConfirm:!0,uploadMaxChunkSize:10485760,folderUploadExclude:{win:/^(?:desktop\.ini|thumbs\.db)$/i,mac:/^\.ds_store$/i},iframeTimeout:0,customData:{},handlers:{},customHeaders:{},xhrFields:{},lang:"en",baseUrl:"",cssAutoLoad:!0,cssClass:"",commands:["*"],commandsOptions:{getfile:{onlyURL:!1,multiple:!1,folders:!1,oncomplete:"",getPath:!0,getImgSize:!1},open:{method:"post",into:"window"},upload:{ui:"button"},download:{maxRequests:10,minFilesZipdl:2},quicklook:{autoplay:!0,width:450,height:300,textMaxlen:2e3,contain:!1,docked:0,dockHeight:"auto",dockAutoplay:!1,googleDocsMimes:[],getDimThreshold:2e5,mimeRegexNotEmptyCheck:/^application\/vnd\.google-apps\./},edit:{dialogWidth:void 0,mimes:[],useStoredEditor:!1,editors:[],encodings:["Big5","Big5-HKSCS","Cp437","Cp737","Cp775","Cp850","Cp852","Cp855","Cp857","Cp858","Cp862","Cp866","Cp874","EUC-CN","EUC-JP","EUC-KR","GB18030","ISO-2022-CN","ISO-2022-JP","ISO-2022-KR","ISO-8859-1","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-13","ISO-8859-15","KOI8-R","KOI8-U","Shift-JIS","Windows-1250","Windows-1251","Windows-1252","Windows-1253","Windows-1254","Windows-1257"],extraOptions:{creativeCloudApiKey:"",managerUrl:null}},search:{incsearch:{enable:!0,minlen:1,wait:500}},info:{nullUrlDirLinkSelf:!0,custom:{}},mkdir:{intoNewFolderToolbtn:!1},resize:{grid8px:"disable",presetSize:[[320,240],[400,400],[640,480],[800,600]],getDimThreshold:204800,dimSubImgSize:307200},rm:{quickTrash:!0,infoCheckWait:10,toTrashMaxItems:1e3},help:{view:["about","shortcuts","help","preference","debug"],helpSource:"",selectActions:["open","edit/download","resize/edit/download","download","quicklook"]}},bootCallback:null,getFileCallback:null,defaultView:"icons",startPathHash:"",sound:!0,ui:["toolbar","tree","path","stat"],uiOptions:{toolbar:[["home","back","forward","up","reload"],["netmount"],["mkdir","mkfile","upload"],["open","download","getfile"],["undo","redo"],["copy","cut","paste","rm","empty"],["duplicate","rename","edit","resize","chmod"],["selectall","selectnone","selectinvert"],["quicklook","info"],["extract","archive"],["search"],["view","sort"],["help"],["fullscreen"]],toolbarExtra:{displayTextLabel:!1,labelExcludeUA:["Mobile"],autoHideUA:["Mobile"],defaultHides:["home","reload"],showPreferenceButton:"none"},tree:{openRootOnLoad:!0,openCwdOnOpen:!0,syncTree:!0,subTreeMax:100,subdirsMaxConn:2,subdirsAtOnce:5},navbar:{minWidth:150,maxWidth:500,autoHideUA:[]},navdock:{disabled:!1,initMaxHeight:"50%",maxHeight:"90%"},cwd:{oldSchool:!1,showSelectCheckboxUA:["Touch"],listView:{columns:["perm","date","size","kind"],columnsCustomName:{},fixedHeader:!0}},path:{toWorkzoneWithoutNavbar:!0},dialog:{focusOnMouseOver:!0}},dispInlineRegex:"^(?:(?:image|video|audio)|application/(?:x-mpegURL|dash+xml)|(?:text/plain|application/pdf)$)",onlyMimes:[],sortRules:{},sortType:"name",sortOrder:"asc",sortStickFolders:!0,sortAlsoTreeview:!1,clientFormatDate:!0,UTCDate:!1,dateFormat:"",fancyDateFormat:"",fileModeStyle:"both",width:"auto",height:400,heightBase:null,resizable:!0,notifyDelay:500,notifyDialog:{position:{top:"12px",right:"12px"},width:280},dialogContained:!1,allowShortcuts:!0,rememberLastDir:!0,reloadClearHistory:!1,useBrowserHistory:!0,showFiles:50,showThreshold:50,validName:!1,fileFilter:!1,backupSuffix:"~",sync:0,syncStart:!0,loadTmbs:5,cookie:{expires:30,domain:"",path:"/",secure:!1},contextmenu:{navbar:["open","download","|","upload","mkdir","|","copy","cut","paste","duplicate","|","rm","empty","|","rename","|","archive","|","places","info","chmod","netunmount"],cwd:["undo","redo","|","back","up","reload","|","upload","mkdir","mkfile","paste","|","empty","|","view","sort","selectall","colwidth","|","info","|","fullscreen","|","preference"],files:["getfile","|","open","download","opendir","quicklook","|","upload","mkdir","|","copy","cut","paste","duplicate","|","rm","empty","|","rename","edit","resize","|","archive","extract","|","selectall","selectinvert","|","places","info","chmod","netunmount"]},enableAlways:!1,enableByMouseOver:!0,windowCloseConfirm:["hasNotifyDialog","editingFile"],rawStringDecoder:"object"==typeof Encoding&&e.isFunction(Encoding.convert)?function(e){return Encoding.convert(e,{to:"UNICODE",type:"string"})}:null,debug:["error","warning","event-destroy"]},i.prototype._options.commandsOptions.netmount={ftp:{name:"FTP",inputs:{host:e(''),port:e(''),path:e(''),user:e(''),pass:e(''),FTPS:e(''),encoding:e(''),locale:e('')}},dropbox2:i.prototype.makeNetmountOptionOauth("dropbox2","Dropbox","Dropbox",{noOffline:!0,root:"/",pathI18n:"path"}),googledrive:i.prototype.makeNetmountOptionOauth("googledrive","Google Drive","Google"),onedrive:i.prototype.makeNetmountOptionOauth("onedrive","One Drive","OneDrive"),box:i.prototype.makeNetmountOptionOauth("box","Box","Box",{noOffline:!0})},i.prototype.history=function(t){var n,i=this,a=!0,o=[],r=function(){o=[t.cwd().hash],n=0,a=!0},s=t.options.useBrowserHistory&&window.history&&window.history.pushState?window.history:null,l=function(s){return s&&i.canForward()||!s&&i.canBack()?(a=!1,t.exec("open",o[s?++n:--n]).fail(r)):e.Deferred().reject()};this.canBack=function(){return n>0},this.canForward=function(){return n=0&&e>n+1&&o.splice(n+1),o[o.length-1]!=i&&o.push(i),n=o.length-1),a=!0,s&&(s.state?s.state.thash!=i&&s.pushState({thash:i},null,location.pathname+location.search+"#elf_"+i):s.replaceState({thash:i},null,location.pathname+location.search+"#elf_"+i))}).reload(t.options.reloadClearHistory&&r)},i.prototype.command=function(t){this.fm=t,this.name="",this.className="",this.title="",this.linkedCmds=[],this.state=-1,this.alwaysEnabled=!1,this.noChangeDirOnRemovedCwd=!1,this._disabled=!1,this.disableOnSearch=!1,this.updateOnSelect=!0,this.syncTitleOnChange=!1,this._handlers={enable:function(){this.update(void 0,this.value)},disable:function(){this.update(-1,this.value)},"open reload load sync":function(){this._disabled=!(this.alwaysEnabled||this.fm.isCommandEnabled(this.name)),this.update(void 0,this.value),this.change()}},this.handlers={},this.shortcuts=[],this.options={ui:"button"},this.setup=function(t,n){var i,a,o,r=this,s=this.fm,l=function(t){var n=t.callback||function(){s.exec(r.name,void 0,{_userAction:!0})};t.callback=function(t){var i,a={};r.enabled()&&(s.searchStatus.state<2?i=s.isCommandEnabled(r.name):(e.each(s.selected(),function(t,n){s.optionsByHashes[n]?a[n]=!0:e.each(s.volOptions,function(e){if(!a[e]&&0===n.indexOf(e))return a[e]=!0,!1})}),e.each(a,function(e){if(i=s.isCommandEnabled(r.name,e),!i)return!1})),i&&(r.event=t,n.call(r),delete r.event))}};for(this.name=t,this.title=s.messages["cmd"+t]?s.i18n("cmd"+t):this.extendsCmd&&s.messages["cmd"+this.extendsCmd]?s.i18n("cmd"+this.extendsCmd):t,this.options=Object.assign({},this.options,n),this.listeners=[],n.shortcuts&&("function"==typeof n.shortcuts?o=n.shortcuts(this.fm,this.shortcuts):Array.isArray(n.shortcuts)&&(o=n.shortcuts),this.shortcuts=o||[]),this.updateOnSelect&&(this._handlers.select=function(){this.update(void 0,this.value)}),e.each(Object.assign({},r._handlers,r.handlers),function(t,n){s.bind(t,e.proxy(n,r))}),i=0;i-1},this.active=function(){return this.state>0},this.getstate=function(){return-1},this.update=function(e,t){var n=this.state,i=this.value;this._disabled&&0===this.fm.searchStatus?this.state=-1:this.state=void 0!==e?e:this.getstate(),this.value=t,n==this.state&&i==this.value||this.change()},this.change=function(e){var t,n;if("function"==typeof e)this.listeners.push(e);else for(n=0;n',lock:'',symlink:'',navicon:'',navspinner:'',navdir:'{symlink}{permissions}{name} ',placedir:'{symlink}{permissions}{name} '},mimes:{text:["application/x-empty","application/javascript","application/json","application/xhtml+xml","audio/x-mp3-playlist","application/x-web-config","application/docbook+xml","application/x-php","application/x-perl","application/x-awk","application/x-config","application/x-csh","application/xml","application/sql"]},mixin:{make:function(){var t,n,i,a,o,r,s,l,c,d,p=this,u=this.fm,h=this.name,f=this.requestCmd||h,m=u.getUI("workzone"),g=this.origin&&"navbar"===this.origin?"tree":"cwd",v=u.getUI(g),b="tree"===g,y=b?"navHash2Id":"cwdHash2Id",w=!b&&"list"!=u.storage("view"),x=u.selected(),k=this.move||!1,C=m.hasClass("elfinder-cwd-wrapper-empty"),T=function(){M.is(":hidden")||M.elfinderoverlay("hide").off("click",E),D.removeClass("ui-front").css("position",""),w?n&&n.css("max-height",""):i&&i.css("width","").parent("td").css("overflow","")},z=e.Deferred().fail(function(e){r&&o.attr("class",r),C&&m.addClass("elfinder-cwd-wrapper-empty"),x&&(k&&u.trigger("unlockfiles",{files:x}),u.clipboard([]),u.trigger("selectfiles",{files:x})),e&&u.error(e)}).always(function(){T(),U(),u.enable().unbind("open",H).trigger("resMixinMake")}),I="tmp_"+parseInt(1e5*Math.random()),S=this.data&&this.data.target?this.data.target:b?u.file(x[0]).hash:u.cwd().hash,A=new Date,O={hash:I,phash:S,name:u.uniqueName(this.prefix,S),mime:this.mime,read:!0,write:!0,date:"Today "+A.getHours()+":"+A.getMinutes(),move:k},j=this.data||{},D=v.trigger("create."+u.namespace,O).find("#"+u[y](I)).on("unselect."+u.namespace,function(){setTimeout(function(){F&&F.blur()},50)}),M=u.getUI("overlay"),U=function(){D&&D.length&&(F.off(),D.hide(),u.unselectfiles({files:[I]}).unbind("resize",R),setTimeout(function(){b?D.closest(".elfinder-navbar-wrapper").remove():D.remove()},0))},E=function(e){M.is(":hidden")||i.css("z-index",""),q||(U(),z.reject(),e&&(e.stopPropagation(),e.preventDefault()))},F=e(w?"":'').on("keyup text",function(){w?(this.style.height="1px",this.style.height=this.scrollHeight+"px"):t&&(this.style.width=t+"px",this.scrollWidth>t&&(this.style.width=this.scrollWidth+10+"px"))}).on("keydown",function(t){t.stopImmediatePropagation(),t.keyCode==e.ui.keyCode.ESCAPE?z.reject():t.keyCode==e.ui.keyCode.ENTER&&F.blur()}).on("mousedown click dblclick",function(e){e.stopPropagation(),"dblclick"===e.type&&e.preventDefault()}).on("blur",function(){var t,n=e.trim(F.val()),o=F.parent(),r=!0;if(M.is(":hidden")||i.css("z-index",""),""===n)return E();if(!q&&o.length){if(u.options.validName&&u.options.validName.test)try{r=u.options.validName.test(n)}catch(s){r=!1}if(!n||"."===n||".."===n||!r)return q=!0,u.error("directory"===O.mime?"errInvDirname":"errInvName",{modal:!0,close:function(){setTimeout(P,120)}}),!1;if(u.fileByName(n,S))return q=!0,u.error(["errExists",n],{modal:!0,close:function(){setTimeout(P,120)}}),!1;t=x&&k?u.exec("cut",x):null,e.when(t).done(function(){var t={},i={};T(),F.hide().before(e("").text(n)),u.lockfiles({files:[I]}),u.request({data:Object.assign({cmd:f,name:n,target:S},j||{}),notify:{type:f,cnt:1},preventFail:!0,syncOnFail:!0,navigate:{toast:t}}).fail(function(e){u.unlockfiles({files:[I]}),q=!0,F.show().prev().remove(),u.error(e,{modal:!0,close:function(){setTimeout(P,120)}})}).done(function(n){if(n&&n.added&&n.added[0]){var o=n.added[0],r=o.hash,s=(v.find("#"+u[y](r)),{directory:{cmd:"open",msg:"cmdopendir"},text:{cmd:"edit",msg:"cmdedit"},"default":{cmd:"open",msg:"cmdopen"}});x&&k&&u.one(f+"done",function(){u.exec("paste",r)}),k||(Object.assign(i,a||s[o.mime]||s[o.mime.split("/")[0]]||s[e.inArray(o.mime,u.resources.mimes.text)!==-1?"text":"none"]||s["default"]),Object.assign(t,i.cmd?{incwd:{msg:u.i18n(["complete",u.i18n("cmd"+h)]),action:i},inbuffer:{msg:u.i18n(["complete",u.i18n("cmd"+h)]),action:i}}:{inbuffer:{msg:u.i18n(["complete",u.i18n("cmd"+h)])}}))}z.resolve(n)})}).fail(function(){z.reject()})}}),P=function(){var e=u.splitFileExtention(F.val())[0];q||!u.UA.Mobile||u.UA.iOS||(M.on("click",E).elfinderoverlay("show"),i.css("z-index",M.css("z-index")+1)),q=!1,!u.enabled()&&u.enable(),F.focus().select(),F[0].setSelectionRange&&F[0].setSelectionRange(0,e.length)},R=function(){D.trigger("scrolltoview",{blink:!1})},H=function(){z&&"pending"===z.state()&&z.reject()},q=!1;return u.isCommandEnabled(f,S)&&D.length?(e.isPlainObject(p.nextAction)&&(a=Object.assign({},p.nextAction)),u.UA.iOS&&F.css("font-size","16px"),b?(o=e("#"+u[y](S)),s=u.res("class","navcollapse"),l=u.res("class","navexpand"),c=u.res("class","navarrow"),d=u.res("class","navsubtree"),D.closest("."+d).show(),o.hasClass(s)||(r=o.attr("class"),o.addClass(s+" "+l+" elfinder-subtree-loaded")),o.is("."+s+":not(."+l+")")&&o.children("."+c).click().data("dfrd").done(function(){F.val()===O.name&&F.val(u.uniqueName(this.prefix,S)).select().focus()}.bind(this)),n=D.contents().filter(function(){return 3==this.nodeType&&e(this).parent().attr("id")===u.navHash2Id(O.hash)}),n.replaceWith(F.val(O.name))):(C&&m.removeClass("elfinder-cwd-wrapper-empty"),n=D.find(".elfinder-cwd-filename"),i=n.parent(),D.css("position","relative").addClass("ui-front"),w?n.css("max-height","none"):(t=i.width(),i.width(t-15).parent("td").css("overflow","visible")),n.empty().append(F.val(O.name))),u.bind("resize",R).one("open",H),F.trigger("keyup"),P(),z):z.reject()}},blink:function(e,t){var n,i={slowonce:function(){e.hide().delay(250).fadeIn(750).delay(500).fadeOut(3500)},lookme:function(){e.show().fadeOut(500).fadeIn(750)}};t=t||"slowonce",n=i[t]||i.lookme,e.stop(!0,!0),n()}},e.fn.dialogelfinder=function(t){var n,i="elfinderPosition",a="elfinderDestroyOnClose";if(this.not(".elfinder").each(function(){var n=(e(document),e('")),o=(e(' ').appendTo(n).click(function(e){e.preventDefault(),o.dialogelfinder("close")}),e(this).addClass("dialogelfinder").css("position","absolute").hide().appendTo("body").draggable({handle:".dialogelfinder-drag",containment:"window",stop:function(){o.trigger("resize"),r.trigger("resize")}}).elfinder(t).prepend(n)),r=o.elfinder("instance");o.width(parseInt(o.width())||840).data(a,!!t.destroyOnClose).find(".elfinder-toolbar").removeClass("ui-corner-top"),t.position&&o.data(i,t.position),t.autoOpen!==!1&&e(this).dialogelfinder("open")}),"open"==t)n=e(this),pos=n.data(i)||{top:parseInt(e(document).scrollTop()+(e(window).height()This cannot be undone!",confirmRepl:"Replace old file with new one? (If it contains folders, it will be merged. To backup and replace, select Backup.)",confirmRest:"Replace existing item with the item in trash?",confirmConvUTF8:"Not in UTF-8
Convert to UTF-8?
Contents become UTF-8 by saving after conversion.",confirmNonUTF8:"Character encoding of this file couldn't be detected. It need to temporarily convert to UTF-8 for editting.
Please select character encoding of this file.",confirmNotSave:"It has been modified.
Losing work if you do not save changes.",confirmTrash:"Are you sure you want to move items to trash bin?",apllyAll:"Apply to all",name:"Name",size:"Size",perms:"Permissions",modify:"Modified",kind:"Kind",read:"read",write:"write",noaccess:"no access",and:"and",unknown:"unknown",selectall:"Select all items",selectfiles:"Select item(s)",selectffile:"Select first item",selectlfile:"Select last item",viewlist:"List view",viewicons:"Icons view",places:"Places",calc:"Calculate",path:"Path",aliasfor:"Alias for",locked:"Locked",dim:"Dimensions",files:"Files",folders:"Folders",items:"Items",yes:"yes",no:"no",link:"Link",searcresult:"Search results",selected:"selected items",about:"About",shortcuts:"Shortcuts",help:"Help",webfm:"Web file manager",ver:"Version",protocolver:"protocol version",homepage:"Project home",docs:"Documentation",github:"Fork us on Github",twitter:"Follow us on twitter",facebook:"Join us on facebook",team:"Team",chiefdev:"chief developer",developer:"developer",contributor:"contributor",maintainer:"maintainer",translator:"translator",icons:"Icons",dontforget:"and don't forget to take your towel",shortcutsof:"Shortcuts disabled",dropFiles:"Drop files here",or:"or",selectForUpload:"Select files",moveFiles:"Move items",copyFiles:"Copy items",restoreFiles:"Restore items",rmFromPlaces:"Remove from places",aspectRatio:"Aspect ratio",scale:"Scale",width:"Width",height:"Height",resize:"Resize",crop:"Crop",rotate:"Rotate","rotate-cw":"Rotate 90 degrees CW","rotate-ccw":"Rotate 90 degrees CCW",degree:"°",netMountDialogTitle:"Mount network volume",protocol:"Protocol",host:"Host",port:"Port",user:"User",pass:"Password",confirmUnmount:"Are you unmount $1?",dropFilesBrowser:"Drop or Paste files from browser",dropPasteFiles:"Drop files, Paste URLs or images(clipboard) here",encoding:"Encoding",locale:"Locale",searchTarget:"Target: $1",searchMime:"Search by input MIME Type",owner:"Owner",group:"Group",other:"Other",execute:"Execute",perm:"Permission",mode:"Mode",emptyFolder:"Folder is empty",emptyFolderDrop:"Folder is empty\\A Drop to add items",emptyFolderLTap:"Folder is empty\\A Long tap to add items",quality:"Quality",autoSync:"Auto sync",moveUp:"Move up",getLink:"Get URL link",selectedItems:"Selected items ($1)",folderId:"Folder ID",offlineAccess:"Allow offline access",reAuth:"To re-authenticate",nowLoading:"Now loading...",openMulti:"Open multiple files",openMultiConfirm:"You are trying to open the $1 files. Are you sure you want to open in browser?",emptySearch:"Search results is empty in search target.",editingFile:"It is editing a file.",hasSelected:"You have selected $1 items.",hasClipboard:"You have $1 items in the clipboard.",incSearchOnly:"Incremental search is only from the current view.",reinstate:"Reinstate",complete:"$1 complete",contextmenu:"Context menu",pageTurning:"Page turning",volumeRoots:"Volume roots",reset:"Reset",bgcolor:"Background color",colorPicker:"Color picker","8pxgrid":"8px Grid",enabled:"Enabled",disabled:"Disabled",emptyIncSearch:"Search results is empty in current view.\\APress [Enter] to expand search target.",emptyLetSearch:"First letter search results is empty in current view.",textLabel:"Text label",minsLeft:"$1 mins left",openAsEncoding:"Reopen with selected encoding",saveAsEncoding:"Save with the selected encoding",selectFolder:"Select folder",firstLetterSearch:"First letter search",presets:"Presets",tooManyToTrash:"It's too many items so it can't into trash.",TextArea:"TextArea",folderToEmpty:'Empty the folder "$1".',filderIsEmpty:'There are no items in a folder "$1".',preference:"Preference",language:"Language setting",clearBrowserData:"Initialize the settings saved in this browser",toolbarPref:"Toolbar settings",charsLeft:"... $1 chars left.",sum:"Sum",roughFileSize:"Rough file size",autoFocusDialog:"Focus on the element of dialog with mouseover",select:"Select",selectAction:"Action when select file",useStoredEditor:"Open with the editor used last time",selectinvert:"Invert selection",renameMultiple:"Are you sure you want to rename $1 selected items like $2?
This cannot be undone!",batchRename:"Batch rename",plusNumber:"+ Number",asPrefix:"Add prefix",asSuffix:"Add suffix",changeExtention:"Change extention",columnPref:"Columns settings (List view)",kindUnknown:"Unknown",kindRoot:"Volume Root",kindFolder:"Folder",kindSelects:"Selections",kindAlias:"Alias",kindAliasBroken:"Broken alias",kindApp:"Application",kindPostscript:"Postscript document",kindMsOffice:"Microsoft Office document",kindMsWord:"Microsoft Word document",kindMsExcel:"Microsoft Excel document",kindMsPP:"Microsoft Powerpoint presentation",kindOO:"Open Office document",kindAppFlash:"Flash application",kindPDF:"Portable Document Format (PDF)",kindTorrent:"Bittorrent file",kind7z:"7z archive",kindTAR:"TAR archive",kindGZIP:"GZIP archive",kindBZIP:"BZIP archive",kindXZ:"XZ archive",kindZIP:"ZIP archive",kindRAR:"RAR archive",kindJAR:"Java JAR file",kindTTF:"True Type font",kindOTF:"Open Type font",kindRPM:"RPM package",kindText:"Text document",kindTextPlain:"Plain text",kindPHP:"PHP source",kindCSS:"Cascading style sheet",kindHTML:"HTML document",kindJS:"Javascript source",kindRTF:"Rich Text Format",kindC:"C source",kindCHeader:"C header source",kindCPP:"C++ source",kindCPPHeader:"C++ header source",kindShell:"Unix shell script",kindPython:"Python source",kindJava:"Java source",kindRuby:"Ruby source",kindPerl:"Perl script",kindSQL:"SQL source",kindXML:"XML document",kindAWK:"AWK source",kindCSV:"Comma separated values",kindDOCBOOK:"Docbook XML document",kindMarkdown:"Markdown text",kindImage:"Image",kindBMP:"BMP image",kindJPEG:"JPEG image",kindGIF:"GIF Image",kindPNG:"PNG Image",kindTIFF:"TIFF image",kindTGA:"TGA image",kindPSD:"Adobe Photoshop image",kindXBITMAP:"X bitmap image",kindPXM:"Pixelmator image",kindAudio:"Audio media",kindAudioMPEG:"MPEG audio",kindAudioMPEG4:"MPEG-4 audio",kindAudioMIDI:"MIDI audio",kindAudioOGG:"Ogg Vorbis audio",kindAudioWAV:"WAV audio",AudioPlaylist:"MP3 playlist",kindVideo:"Video media",kindVideoDV:"DV movie",kindVideoMPEG:"MPEG movie",kindVideoMPEG4:"MPEG-4 movie",kindVideoAVI:"AVI movie",kindVideoMOV:"Quick Time movie",kindVideoWM:"Windows Media movie",kindVideoFlash:"Flash movie",kindVideoMKV:"Matroska movie",kindVideoOGG:"Ogg movie"}}),e.fn.elfinderbutton=function(t){return this.each(function(){var n,i="class",a=t.fm,o=a.res(i,"disabled"),r=a.res(i,"active"),s=a.res(i,"hover"),l="elfinder-button-menu-item",c="elfinder-button-menu-item-selected",d=e(''+t.title+""),p=e(this).addClass("ui-state-default elfinder-button").attr("title",t.title).append('',d).hover(function(e){!p.hasClass(o)&&p["mouseleave"==e.type?"removeClass":"addClass"](s)}).click(function(e){p.hasClass(o)||(n&&t.variants.length>=1?(n.is(":hidden")&&t.fm.getUI().click(),e.stopPropagation(),n.slideToggle(100)):a.exec(t.name,void 0,{_userAction:!0,_currentType:"toolbar",_currentNode:p}))}),u=function(){n.hide()};d.hide(),t.button=p,Array.isArray(t.variants)&&(p.addClass("elfinder-menubutton"),n=e('').hide().appendTo(p).on("mouseenter mouseleave","."+l,function(){e(this).toggleClass(s)}).on("click","."+l,function(i){var o=e(this).data("value");i.preventDefault(),i.stopPropagation(),p.removeClass(s),n.hide(),"undefined"==typeof o&&(o={}),"object"==typeof o&&(o._userAction=!0),a.exec(t.name,a.selected(),o)}),t.fm.bind("disable select",u).getUI().click(u),t.change(function(){n.html(""),e.each(t.variants,function(i,a){n.append(e(''+a[1]+"
").data("value",a[0]).addClass(a[0]==t.value?c:""))})})),t.change(function(){t.disabled()?p.removeClass(r+" "+s).addClass(o):(p.removeClass(o),p[t.active()?"addClass":"removeClass"](r)),t.syncTitleOnChange&&(d.html(t.title),p.attr("title",t.title))}).change()})},e.fn.elfindercontextmenu=function(t){return this.each(function(){var n,i,a,o,r,s,l,c=(e(this),"elfinder-contextmenu-item"),d="elfinder-contextsubmenu-item",p="elfinder-contextmenu-extra-icon",u={distance:8,start:function(){h.data("drag",!0).data("touching")&&h.find(".ui-state-hover").removeClass("ui-state-hover")},stop:function(){h.data("draged",!0).removeData("drag")}},h=e(this).addClass("touch-punch ui-helper-reset ui-front ui-widget ui-state-default ui-corner-all elfinder-contextmenu elfinder-contextmenu-"+t.direction).hide().on("touchstart",function(e){h.data("touching",!0).children().removeClass("ui-state-hover")}).on("touchend",function(e){h.removeData("touching")}).on("mouseenter mouseleave","."+c,function(t){e(this).toggleClass("ui-state-hover",!("mouseenter"!==t.type&&(h.data("draged")||!h.data("submenuKeep")))),h.data("draged")&&h.data("submenuKeep")&&h.find(".elfinder-contextmenu-sub:visible").parent().addClass("ui-state-hover")}).on("mouseenter mouseleave","."+p,function(t){e(this).parent().toggleClass("ui-state-hover","mouseleave"===t.type)}).on("mouseenter mouseleave","."+c+",."+d,function(t){var n=function(t,n){e.each(n?r:a,function(e,i){if(t[0]===i)return(n?r:a)._cur=e,n?s=t:o=t,!1})};if(t.originalEvent){var i=e(this),l=function(){o&&!o.children("div.elfinder-contextmenu-sub:visible").length&&o.removeClass("ui-state-hover")};"mouseenter"===t.type?i.hasClass(d)?(s&&s.removeClass("ui-state-hover"),o&&(r=o.find("div."+d)),n(i,!0)):(l(),n(i)):i.hasClass(d)?(s=null,r=null):(l(),function(e){setTimeout(function(){e===o&&(o=null)},250)}(o))}}).on("contextmenu",function(){return!1}).on("mouseup",function(){setTimeout(function(){h.removeData("draged")},100)}).draggable(u),f="ltr"==t.direction?"left":"right",m=Object.assign({},t.options.contextmenu),g='{label}
',v=function(n,i,a,o){var r="",s="",l="";return o&&(o.className&&(r=" "+o.className),o.iconClass&&(l=o.iconClass,i=""),o.iconImg&&(s=" style=\"background:url('"+t.escape(o.iconImg)+"') 0 0 no-repeat;background-size:contain;\"")),e(g.replace("{icon}",i?"elfinder-button-icon-"+i:l?l:"").replace("{label}",n).replace("{style}",s).replace("{className}",r)).click(function(e){e.stopPropagation(),e.preventDefault(),a()})},b=function(e){return{backgroundImage:'url("'+e+'")',backgroundRepeat:"no-repeat",backgroundSize:"contain"}},y=function(){var n="touchstart.contextmenuAutoToggle";h.data("hideTm")&&clearTimeout(h.data("hideTm")),h.is(":visible")&&h.on("touchstart",function(e){e.originalEvent.touches.length>1||(h.stop().show(),h.data("hideTm")&&clearTimeout(h.data("hideTm")))}).data("hideTm",setTimeout(function(){h.is(":visible")&&(i.find(".elfinder-cwd-file").off(n),i.find(".elfinder-cwd-file.ui-selected").one(n,function(t){if(!(t.originalEvent.touches.length>1)){var a=e(t.target);return!h.first().length||a.is("input:checkbox")||a.hasClass("elfinder-cwd-select")?void i.find(".elfinder-cwd-file").off(n):(x(t.originalEvent.touches[0].pageX,t.originalEvent.touches[0].pageY),!1)}}).one("unselect."+t.namespace,function(){i.find(".elfinder-cwd-file").off(n)}),h.fadeOut({duration:300,fail:function(){h.css("opacity","1").show()}}))},4500))},w=function(n){var i=n.keyCode,l=e.ui.keyCode.ESCAPE,c=e.ui.keyCode.ENTER,p=e.ui.keyCode.LEFT,u=e.ui.keyCode.RIGHT,h=e.ui.keyCode.UP,f=e.ui.keyCode.DOWN,m="ltr"===t.direction?u:p,g=m===u?p:u;e.inArray(i,[l,c,p,u,h,f])!==-1&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),i==l||i===g?o&&r&&s?(s.trigger("mouseleave"),o.addClass("ui-state-hover"),r=null,s=null):i==l&&k():i==h||i==f?r?(s&&s.trigger("mouseleave"),i==f&&(!s||r.length<=++r._cur)?r._cur=0:i==h&&(!s||--r._cur<0)&&(r._cur=r.length-1),s=r.eq(r._cur).trigger("mouseenter")):(r=null,o&&o.trigger("mouseleave"),i==f&&(!o||a.length<=++a._cur)?a._cur=0:i==h&&(!o||--a._cur<0)&&(a._cur=a.length-1),o=a.eq(a._cur).addClass("ui-state-hover")):!o||i!=c&&i!==m||(o.hasClass("elfinder-contextmenu-group")?s?i==c&&s.click():(o.trigger("mouseenter"),r=o.find("div."+d),r._cur=0,s=r.first().addClass("ui-state-hover")):i==c&&o.click()))},x=function(i,a,c){var d,p=h.outerWidth(),u=h.outerHeight(),m=n.attr("style"),g=n.offset(),v=n.width(),b=n.height(),x=t.UA.Mobile?40:2,C=t.UA.Mobile?20:2,i=i-(g?g.left:0),a=a-(g?g.top:0),c=Object.assign(c||{},{top:Math.max(0,a+C+u1&&h.append('"),a=e(),e.each(m[i]||[],function(m,y){var w,x,C,T,z,I;if("|"===y)return void(s&&(l=!0));if(r[y]?(x=r[y],C=!0):x=y,w=t.getCommand(x),!w||g||t.searchStatus.state&&w.disableOnSearch||(w.__disabled=w._disabled,w._disabled=!(w.alwaysEnabled||!!t._commands[x]&&(e.inArray(y,u)===-1&&(!C||e.inArray(x,u)===-1))),e.each(w.linkedCmds,function(n,i){var a;(a=t.getCommand(i))&&(a.__disabled=a._disabled,a._disabled=!(a.alwaysEnabled||!!t._commands[i]&&e.inArray(i,u)===-1))})),w&&!w._disabled&&w.getstate(o)!=-1){if(w.variants){if(!w.variants.length)return;T=v(w.title,w.className?w.className:w.name,function(){}),z=e('').hide().appendTo(T.append('')),I=function(e){if(e){var i=n.attr("style");n.width(n.width()),z.css({left:"auto",right:"auto"});var a,o,r,s=T.offset(),l=s.left,c=s.top,d=T.outerWidth(),p=z.outerWidth(!0),u=z.outerHeight(!0),m=n.offset(),g=m.left+n.width(),v=m.top+n.height();r=l+d+p-g,a=l>p&&r>0?t.UA.Mobile?10-p:d-r:d,"right"===f&&l0&&c0?30-u:5,h.find(".elfinder-contextmenu-sub:visible").hide(),z.css({top:o}).css(f,a).show(),n.attr("style",i)}else z.hide()},T.addClass("elfinder-contextmenu-group").on("mouseleave",".elfinder-contextmenu-sub",function(e){h.data("draged")||h.removeData("submenuKeep")}).on("click","."+d,function(n){var a,r;n.stopPropagation(),h.data("draged")||(h.hide(),r=e(this),a=r.data("exec"),"undefined"==typeof a&&(a={}),"object"==typeof a&&(a._userAction=!0,a._currentType=i,a._currentNode=r),k(),t.exec(w.name,o,a))}).on("touchend",function(e){h.data("drag")||(I(!0),h.data("submenuKeep",!0))}).on("mouseenter mouseleave",function(e){h.data("touching")||(T.data("timer")&&(clearTimeout(T.data("timer")),T.removeData("timer")),"mouseleave"===e.type?h.data("submenuKeep")||T.data("timer",setTimeout(function(){T.removeData("timer"),I(!1)},250)):T.data("timer",setTimeout(function(){T.removeData("timer"),I(!0)},a.find("div.elfinder-contextmenu-sub:visible").length?250:0)))}),e.each(w.variants,function(t,n){var i,a="|"===n?'':e(''+n[1]+"
").data("exec",n[0]);"undefined"!=typeof n[2]&&(i=e("").addClass("elfinder-button-icon elfinder-contextmenu-icon"),/\//.test(n[2])?i.css(b(n[2])):i.addClass("elfinder-button-icon-"+n[2]),a.prepend(i).addClass(d+"-icon")),z.append(a)})}else T=v(w.title,w.className?w.className:w.name,function(){h.data("draged")||(k(),t.exec(w.name,o,{_userAction:!0,_currentType:i,_currentNode:T}))}),w.extra&&w.extra.node?(e('').append(w.extra.node).appendTo(T),e(w.extra.node).trigger("ready",{targets:o})):T.remove("."+p);w.extendsCmd&&T.children("span.elfinder-button-icon").addClass("elfinder-button-icon-"+w.extendsCmd),l&&h.append(''),h.append(T),s=!0,l=!1}w&&"undefined"!=typeof w.__disabled&&(w._disabled=w.__disabled,delete w.__disabled,e.each(w.linkedCmds,function(e,n){var i;(i=t.getCommand(n))&&(i._disabled=i.__disabled,delete i.__disabled)}))}),a=h.children("div."+c)},T=function(t){z="raw",e.each(t,function(e,t){var n;"|"===t?h.append(''):t.label&&"function"==typeof t.callback&&(n=v(t.label,t.icon,function(){h.data("draged")||(!t.remain&&k(),t.callback())},t.options||null),h.append(n))}),a=h.children("div."+c)},z=null,I=null,S=null;t.one("load",function(){n=t.getUI(),i=t.getUI("cwd"),t.bind("contextmenu",function(n){var a,o=n.data,r={};o.type&&"files"!==o.type&&i.trigger("unselectall"),k(),o.type&&o.targets?(t.trigger("contextmenucreate",o),C(o.type,o.targets),t.trigger("contextmenucreatedone",o)):o.raw&&T(o.raw),h.children().length&&(a=o.prevNode||null,a&&(h.data("prevNode",h.prev()),a.after(h)),o.fitHeight&&(r={maxHeight:Math.min(t.getUI().height(),e(window).height()),overflowY:"auto"},h.draggable("destroy").removeClass("ui-draggable")),x(o.x,o.y,r),o.opened&&"function"==typeof o.opened&&o.opened.call(h))}).one("destroy",function(){h.remove()}).bind("disable",k).bind("select",function(e){"files"===z&&(!e.data||e.data.selected.toString()!==I.toString())&&k()})}).shortcut({pattern:"mac"===t.OS?"ctrl+m":"contextmenu shift+f10",description:"contextmenu",callback:function(n){n.stopPropagation(),n.preventDefault(),e(document).one("contextmenu."+t.namespace,function(e){e.preventDefault(),e.stopPropagation()});var i,a,o,r,s=t.selected();s.length?(i="files",a=s,r=e("#"+t.cwdHash2Id(s[0]))):(i="cwd",a=[t.cwd().hash],o=t.getUI("workzone").offset()),r&&r.length||(r=t.getUI("workzone")),o=r.offset(),o.top+=r.height()/2,o.left+=r.width()/2,t.trigger("contextmenu",{type:i,targets:a,x:o.left,y:o.top})}})})},e.fn.elfindercwd=function(t,n){return this.not(".elfinder-cwd").each(function(){var i,a,o,r=t.UA.Mobile,s="list"==t.viewType,l="select."+t.namespace,c="unselect."+t.namespace,d="disable."+t.namespace,p="enable."+t.namespace,u="class",h=t.res(u,"cwdfile"),f="."+h+(n.oldSchool?":not(.elfinder-cwd-parent)":""),m="ui-selected",g=t.res(u,"disabled"),v=t.res(u,"draggable"),b=t.res(u,"droppable"),y=t.res(u,"hover"),w=t.res(u,"adroppable"),x=h+"-tmp",k=t.options.loadTmbs>0?t.options.loadTmbs:5,C="",T={},z=[],I=[],S=void 0,A=[],O="",j=function(){for(var e="",t=0;t{'+A[t]+"}";return e},D=function(){return'{marker}{name} '+M+" | "+j()+"
"},M=e.map(n.showSelectCheckboxUA,function(e){return!(!t.UA[e]&&!e.match(/^all$/i))||null}).length?'':"",U=!1,E=null,F={icon:'",row:""},P=t.res("tpl","perms"),R=t.res("tpl","lock"),H=t.res("tpl","symlink"),q={id:function(e){return t.cwdHash2Id(e.hash)},name:function(e){var n=t.escape(e.i18||e.name);return!s&&(n=n.replace(/([_.])/g,"$1")),n},nametitle:function(e){return t.escape(e.i18||e.name)},permsclass:function(e){return t.perms2class(e)},perm:function(e){return t.formatPermissions(e)},dirclass:function(e){var i="directory"==e.mime?"directory":"";return e.isroot&&(i+=" isroot"),e.csscls&&(i+=" "+t.escape(e.csscls)),n.getClass&&(i+=" "+n.getClass(e)),i},style:function(e){return e.icon?t.getIconStyle(e):""},mime:function(e){return t.mime2class(e.mime)},size:function(e){return"directory"!==e.mime||e.size?t.formatSize(e.size):"-"},date:function(e){return t.formatDate(e)},kind:function(e){return t.mime2kind(e)},mode:function(e){return e.perm?t.formatFileMode(e.perm):""},modestr:function(e){return e.perm?t.formatFileMode(e.perm,"string"):""},modeoct:function(e){return e.perm?t.formatFileMode(e.perm,"octal"):""},modeboth:function(e){return e.perm?t.formatFileMode(e.perm,"both"):""},marker:function(e){return(e.alias||"symlink-broken"==e.mime?H:"")+(e.read&&e.write?"":P)+(e.locked?R:"")},tooltip:function(e){var n=t.formatDate(e)+(e.size>0?" ("+t.formatSize(e.size)+")":""),i="";return i=C&&e.path?t.escape(e.path.replace(/\/[^\/]*$/,"")):e.tooltip?t.escape(e.tooltip).replace(/\r/g,"
"):"",s&&(i+=(i?"
":"")+t.escape(e.i18||e.name)),i?i+"
"+n:n}},N={},_=function(n,a){var o,r,s;if(n&&!N[n]&&("undefined"==typeof i&&(e("#elfinderAddBadgeStyle"+t.namespace).length&&e("#elfinderAddBadgeStyle"+t.namespace).remove(),i=e('').insertBefore(e("head").children(":first")).get(0).sheet||null),i)){if(n=n.toLowerCase(),s=n.split("/"),r=t.escape(t.mimeTypes[n]||(a.replace(/.bac?k$/i,"").match(/\.([^.]+)$/)||["",""])[1])){o=".elfinder-cwd-icon-"+s[0].replace(/(\.|\+)/g,"-"),"undefined"!=typeof s[1]&&(o+=".elfinder-cwd-icon-"+s[1].replace(/(\.|\+)/g,"-"));try{i.insertRule(o+':before{content:"'+r.toLowerCase()+'"}',0)}catch(l){}}N[n]=!0}},L=function(e){return e.mime&&"directory"!==e.mime&&!N[e.mime]&&_(e.mime,e.name),F[s?"row":"icon"].replace(/\{([a-z0-9_]+)\}/g,function(n,i){return q[i]?q[i](e,t):e[i]?e[i]:""})},W=e(),$=!1,B=function(t,n){function i(e,t){return e[t+"All"]("[id]:not(."+g+"):not(.elfinder-cwd-parent):first")}var a,o,r,d,p,u=e.ui.keyCode,h=t==u.LEFT||t==u.UP,f=Ie.find("[id]."+m);if(f.length)if(a=f.filter(h?":first":":last"),r=i(a,h?"prev":"next"),r.length)if(s||t==u.LEFT||t==u.RIGHT)o=r;else if(d=a.position().top,p=a.position().left,o=a,h){do o=o.prev("[id]");while(o.length&&!(o.position().topd&&o.position().left>=p));o.hasClass(g)&&(o=i(o,"prev")),o.length||(r=Ie.find("[id]:not(."+g+"):last"),r.position().top>d&&(o=r))}else o=a;else o=W.length?h?W.prev():W:Ie.find("[id]:not(."+g+"):not(.elfinder-cwd-parent):"+(h?"last":"first"));
o&&o.length&&!o.hasClass("elfinder-cwd-parent")&&(a&&n?o=a.add(a[h?"prevUntil":"nextUntil"]("#"+o.attr("id"))).add(o):f.trigger(c),o.trigger(l),ee(o.filter(h?":first":":last")),Z())},V={},X=function(n){e("#"+t.cwdHash2Id(n)).trigger(l)},K=!1,G=function(){t.cwd().hash;M&&Oe.find("input").prop("checked",!0),t.lazy(function(){var n;Ie.find("[id]:not(."+m+"):not(.elfinder-cwd-parent)").trigger(l),t.maxTargets&&(S||I).length>t.maxTargets?(n=e.map(S||I,function(e){return t.file(e)||null}),n=n.slice(0,t.maxTargets),V={},e.each(n,function(e,t){V[t.hash]=!0}),t.toast({mode:"warning",msg:t.i18n(["errMaxTargets",t.maxTargets])})):V=t.arrayFlip(S||I,!0),Z(),M&&Oe.data("pending",!1)},0,{repaint:!0})},J=function(){M&&Oe.find("input").prop("checked",!1),Object.keys(V).length&&($=!1,V={},Ie.find("[id]."+m).trigger(c),M&&Ie.find("input:checkbox").prop("checked",!1)),Z(),M&&Oe.data("pending",!1),Ie.removeClass("elfinder-cwd-allselected")},Y=function(){var n={};K?J():Object.keys(V).length?(e.each(S||I,function(i,a){var o=e("#"+t.cwdHash2Id(a));V[a]?o.length&&o.trigger(c):(n[a]=!0,o.length&&o.trigger(l))}),V=n,Z()):G()},Q=void 0,Z=function(){var e=Object.keys(V),n={selected:e};K=e.length&&e.length===(S||I).length&&(!t.maxTargets||e.length<=t.maxTargets),M&&(Oe.find("input").prop("checked",K),Ie[K?"addClass":"removeClass"]("elfinder-cwd-allselected")),K?n.selectall=!0:e.length||(n.unselectall=!0),t.trigger("select",n)},ee=function(e,n){if(e.length){var i=e.position().top,a=e.outerHeight(!0),o=Se.scrollTop(),r=Se.get(0).clientHeight,l=he?he.outerHeight(!0):0;i+l+a>o+r?Se.scrollTop(parseInt(i+l+a-r)):i"),p=function(n){var i,a,p,u=n||null,h=[],f=!1,g={},v="self"===t.option("tmbUrl"),b=!ne.renderd;i=te.splice(0,pe+(u||0)/(ne.hpi||1)),ne.renderd+=i.length,te.length||(Ae.hide(),Se.off(oe,ue)),a=[],h=e.map(i,function(e){return e.hash&&e.name?("directory"==e.mime&&(f=!0),(e.tmb||v&&0===e.mime.indexOf("image/"))&&(g[e.hash]=e.tmb),T[e.hash]&&a.push(e.hash),L(e)):null}),d.empty().append(h.join("")),f&&!r&&ve(d),p=[],Object.keys(V).length&&d.find("[id]:not(."+m+"):not(.elfinder-cwd-parent)").each(function(){V[t.cwdId2Hash(this.id)]&&p.push(e(this))}),o.append(c?d:d.children()),p.length&&(e.each(p,function(e,t){t.trigger(l)}),Z()),a.length&&t.trigger("lockfiles",{files:a}),!ne.hpi&&Ce(o,i.length),s&&(Ie.find("thead").show(),fe({fitWidth:!E})),Object.keys(g).length&&Object.assign(ne.attachTmbs,g),b&&(r||Ie.data("selectable")||Ie.selectable(se).data("selectable",!0),ce(!0)),!re&&Se.trigger(oe)};ne.renderd||(ne.rendering=!0,Se.scrollTop(0),i=t.cwd().phash,p(),n.oldSchool&&i&&!C&&de(i),s&&(E&&me(),fe({fitWidth:!0})),ne.itemH=(s?o.find("tr:first"):o.find("[id]:first")).outerHeight(!0),t.trigger("cwdrender"),ne.rendering=!1),!ne.rendering&&te.length&&(a=Se.height()+Se.scrollTop()+t.options.showThreshold+ne.row-ne.renderd*ne.hpi)>0&&(ne.rendering=!0,t.lazy(function(){p(a),ne.rendering=!1}))}},he=null,fe=function(i){if(n.listView.fixedHeader){var a,o,r,s,l,c,d,p,u,h,f,m,g,v=function(){var e;e="ltr"===t.direction?Se.scrollLeft()*-1:r.outerWidth(!0)-Se.width()-Se.scrollLeft(),o.css("left")!==e&&o.css("left",e)},b=i||{};if(l=Ie.find("tbody"),p=l.children("tr:first"),p.length){if(r=l.parent(),he?(s=e("#"+t.namespace+"-cwd-thead"),d=s.children("tr:first")):(g=!0,l.addClass("elfinder-cwd-fixheader"),s=Ie.find("thead").attr("id",t.namespace+"-cwd-thead"),d=s.children("tr:first"),c=d.outerHeight(!0),Ie.css("margin-top",c-parseInt(r.css("padding-top"))),o=e("").addClass(Ie.attr("class")).append(e("").append(s)),he=e("").addClass(Se.attr("class")+" elfinder-cwd-fixheader").removeClass("ui-droppable native-droppable").css(Se.position()).css({height:c,width:Ie.outerWidth()}).append(o),"rtl"===t.direction&&he.css("left",Se.data("width")-Se.width()+"px"),v(),Se.after(he).on("scroll.fixheader resize.fixheader",function(e){v(),"resize"===e.type&&(e.stopPropagation(),he.css(Se.position()),Se.data("width",Se.css("overflow","hidden").width()),Se.css("overflow","auto"),fe())})),g||b.fitWidth||Math.abs(p.outerWidth()-d.outerWidth())>2){a=A.length+1;for(var y=0;y").on("load",function(){t.find(".elfinder-cwd-icon").addClass(n.className).css("background-image","url('"+n.url+"')")}).attr("src",n.url)},o=function(n,o){var r,s,l=e("#"+t.cwdHash2Id(n));l.length&&("1"!=o?(r=t.file(n),r.tmb!==o&&(r.tmb=o),s=t.tmb(r),i?l.find(".elfinder-cwd-icon").addClass(s.className).css("background-image","url('"+s.url+"')"):a(l,s),delete ne.attachTmbs[n]):i?ye([n]):ne.tmbLoading[n]||ne.getTmbs.push(n))};e.isPlainObject(n)&&Object.keys(n).length&&(Object.assign(ne.attachTmbs,n),e.each(n,o),i||!ne.getTmbs.length||Object.keys(ne.tmbLoading).length||ye())},ye=function(n){var i=[],a=!1;return t.oldAPI?void t.request({data:{cmd:"tmb",current:t.cwd().hash},preventFail:!0}).done(function(e){e.images&&Object.keys(e.images).length&&be(e.images),e.tmb&&ye()}):(n?(a=!0,i=n.splice(0,k)):i=ne.getTmbs.splice(0,k),void(i.length&&(a||le[i[0]]||le[i[i.length-1]])&&(e.each(i,function(e,t){ne.tmbLoading[t]=!0}),t.request({data:{cmd:"tmb",targets:i},preventFail:!0}).done(function(t){var o,r=[];t.images&&((o=Object.keys(t.images).length)?(o");if(u>pe)ze(),V=t.arrayFlip(e.map(n,function(e){return e.hash}),!0),Z();else{for(u&&Ue.removeClass("elfinder-cwd-wrapper-empty");u--;)a=n[u],o=a.hash,e("#"+t.cwdHash2Id(o)).length||((l=f(a))&&!l.length&&(l=null),!l&&(d=m(a))>=0?te.splice(d,0,a):(v.empty().append(L(a)),"directory"===a.mime&&!r&&ve(v),c=g?v:v.children(),l?l.before(c):p.append(c)),e("#"+t.cwdHash2Id(o)).length&&a.tmb&&(h[o]=a.tmb));s&&(me(),fe({fitWidth:!E})),Ce(p),Object.keys(h).length&&Object.assign(ne.attachTmbs,h)}},xe=function(n){var i,a,o,r,l=n.length,c=t.searchStatus.state>1,d=t.getCommand(t.currentReqCmd)||{};if(!t.cwd().hash&&!d.noChangeDirOnRemovedCwd)return r=t.files(),void e.each(z.reverse(),function(e,n){if(r[n])return t.one(t.currentReqCmd+"done",function(){!t.cwd().hash&&t.exec("open",n)}),!1});for(;l--;){if(i=n[l],(a=e("#"+t.cwdHash2Id(i))).length)try{a.remove(),--ne.renderd}catch(p){t.debug("error",p)}else(o=ie(i))!==-1&&te.splice(o,1);V[i]&&delete V[i],c&&(o=e.inArray(i,I))!==-1&&I.splice(o,1)}c&&t.trigger("cwdhasheschange",I),s&&(me(),fe({fitWidth:!E}))},ke=function(){for(var e="",n="",i=0;i'+e+"";return n},Ce=function(e,t){var n,i=1;e=e||(s?Ie.find("tbody"):Ie),te.length>0&&(e.css({height:"auto"}),n=e.height(),t&&(s||(i=Math.floor(e.width()/e.find("[id]:first").width()),t=Math.ceil(t/i)*i),ne.hpi=n/t,ne.row=ne.hpi*i),Ae.css({top:ne.hpi*te.length+n+"px"}).show())},Te={contextmenu:function(e){e.preventDefault(),t.trigger("contextmenu",{type:"cwd",targets:[t.cwd().hash],x:e.pageX,y:e.pageY})},touchstart:function(e){e.originalEvent.touches.length>1||(Ie.data("longtap",null),Se.data("touching",{x:e.originalEvent.touches[0].pageX,y:e.originalEvent.touches[0].pageY}),e.target!==this&&e.target!==Ie.get(0)||Ie.data("tmlongtap",setTimeout(function(){Ie.data("longtap",!0),t.trigger("contextmenu",{type:"cwd",targets:[t.cwd().hash],x:Se.data("touching").x,y:Se.data("touching").y})},500)))},touchend:function(e){"touchmove"===e.type&&(!Se.data("touching")||Math.abs(Se.data("touching").x-e.originalEvent.touches[0].pageX)+Math.abs(Se.data("touching").y-e.originalEvent.touches[0].pageY)>4)&&Se.data("touching",null),clearTimeout(Ie.data("tmlongtap"))},click:function(e){Ie.data("longtap")&&(e.preventDefault(),e.stopPropagation())}},ze=function(){var n;Ue.append(Oe).removeClass("elfinder-cwd-wrapper-empty elfinder-search-result elfinder-incsearch-result elfinder-letsearch-result"),(t.searchStatus.state>1||t.searchStatus.ininc)&&Ue.addClass("elfinder-search-result"+(t.searchStatus.ininc?" elfinder-"+("/"===C.substr(0,1)?"let":"inc")+"search-result":"")),ne.attachThumbJob&&ne.attachThumbJob._abort(),Ie.data("selectable")&&Ie.selectable("disable").selectable("destroy").removeData("selectable"),t.trigger("cwdinit"),W=e();try{Ie.empty()}catch(i){Ie.html("")}he&&(Se.off("scroll.fixheader resize.fixheader"),he.remove(),he=null),Ie.removeClass("elfinder-cwd-view-icons elfinder-cwd-view-list").addClass("elfinder-cwd-view-"+(s?"list":"icons")).attr("style","").css("height","auto"),Ae.hide(),Se[s?"addClass":"removeClass"]("elfinder-cwd-wrapper-list")._padding=parseInt(Se.css("padding-top"))+parseInt(Se.css("padding-bottom")),t.UA.iOS&&Se.removeClass("overflow-scrolling-touch").addClass("overflow-scrolling-touch"),s&&(Ie.html(""),n=e(''+t.getColumnName("name")+" | "+ke()+"
"),Ie.find("thead").hide().append(n.on("contextmenu."+t.namespace,Te.contextmenu).on("touchstart."+t.namespace,"td",Te.touchstart).on("touchmove."+t.namespace+" touchend."+t.namespace+" mouseup."+t.namespace,"td",Te.touchend).on("click."+t.namespace,"td",Te.click)).find("td:first").append(Oe),e.fn.sortable&&n.addClass("touch-punch touch-punch-keep-default").sortable({axis:"x",distance:8,items:"> .sortable-item",start:function(t,n){e(n.item[0]).data("dragging",!0),n.placeholder.width(n.helper.removeClass("ui-state-hover").width()).removeClass("ui-state-active").addClass("ui-state-hover").css("visibility","visible")},update:function(n,i){var a,o,r=e(i.item[0]).attr("class").split(" ")[0].replace("elfinder-cwd-view-th-","");A=e.map(e(this).children(),function(t){var n=e(t).attr("class").split(" ")[0].replace("elfinder-cwd-view-th-","");return o||(r===n?o=!0:a=n),"name"===n?null:n}),F.row=D(),t.storage("cwdCols",A),a=".elfinder-col-"+a+":first",r=".elfinder-col-"+r+":first",t.lazy(function(){Ie.find("tbody tr").each(function(){var t=e(this);t.children(a).after(t.children(r))})})},stop:function(t,n){setTimeout(function(){e(n.item[0]).removeData("dragging")},100)}}),n.find("td").addClass("touch-punch").resizable({handles:"ltr"===t.direction?"e":"w",start:function(t,n){var i=Ie.find("td.elfinder-col-"+n.element.attr("class").split(" ")[0].replace("elfinder-cwd-view-th-","")+":first");n.element.data("resizeTarget",i).data("targetWidth",i.width()),U=!0,"fixed"!==Ie.find("table").css("table-layout")&&(Ie.find("tbody tr:first td").each(function(){e(this).width(e(this).width())}),Ie.find("table").css("table-layout","fixed"))},resize:function(e,t){t.element.data("resizeTarget").width(t.element.data("targetWidth")-(t.originalSize.width-t.size.width))},stop:function(){U=!1,fe({fitWidth:!0}),E={},Ie.find("tbody tr:first td").each(function(){var t=e(this).attr("class").split(" ")[0].replace("elfinder-col-","");E[t]=e(this).width()}),t.storage("cwdColWidth",E)}}).find(".ui-resizable-handle").addClass("ui-icon ui-icon-grip-dotted-vertical")),t.lazy(function(){te=e.map(S||I,function(e){return t.file(e)||null}),te=t.sortFiles(te),S?S=e.map(te,function(e){return e.hash}):I=e.map(te,function(e){return e.hash}),ne={renderd:0,attachTmbs:{},getTmbs:[],tmbLoading:{},lazyOpts:{tm:0}},Ue[te.length<1?"addClass":"removeClass"]("elfinder-cwd-wrapper-empty"),Se.off(oe,ue).on(oe,ue).trigger(oe),t.cwd().write?(Se[t.isCommandEnabled("upload")?"addClass":"removeClass"]("native-droppable"),Se.droppable(t.isCommandEnabled("paste")?"enable":"disable")):Se.removeClass("native-droppable").droppable("disable").removeClass("ui-state-disabled")})},Ie=e(this).addClass("ui-helper-clearfix elfinder-cwd").attr("unselectable","on").on("click."+t.namespace,f,function(n){var i,a,o,r,s,d=this.id?e(this):e(this).parents("[id]:first"),p=e(n.target);if(M&&(p.is("input:checkbox")||p.hasClass("elfinder-cwd-select")))return n.stopPropagation(),n.preventDefault(),d.trigger(d.hasClass(m)?c:l),Z(),void setTimeout(function(){p.prop("checked",d.hasClass(m))},10);if(Ie.data("longtap"))return void n.stopPropagation();if(O||(O=d.attr("id"),setTimeout(function(){O=""},500)),n.shiftKey&&(i=d.prevAll(Q||"."+m+":first"),a=d.nextAll(Q||"."+m+":first"),o=i.length,r=a.length),n.shiftKey&&(o||r))s=o?d.prevUntil("#"+i.attr("id")):d.nextUntil("#"+a.attr("id")),s.add(d).trigger(l);else if(n.ctrlKey||n.metaKey)d.trigger(d.hasClass(m)?c:l);else{if(Se.data("touching")&&d.hasClass(m))return Se.data("touching",null),void t.dblclick({file:t.cwdId2Hash(this.id)});J(),d.trigger(l)}Z()}).on("dblclick."+t.namespace,f,function(n){if(O){var i=t.cwdId2Hash(O);n.stopPropagation(),this.id!==O&&(e(this).trigger(c),e("#"+O).trigger(l),Z()),t.dblclick({file:i})}}).on("touchstart."+t.namespace,f,function(n){if(!(n.originalEvent.touches.length>1)){var i,a=this.id?e(this):e(this).parents("[id]:first"),o=e(n.target),r=n.target.nodeName;if("INPUT"===r||"TEXTAREA"===r)return void n.stopPropagation();if(a.find("input:text,textarea").length)return n.stopPropagation(),void n.preventDefault();if(Se.data("touching",{x:n.originalEvent.touches[0].pageX,y:n.originalEvent.touches[0].pageY}),M&&(o.is("input:checkbox")||o.hasClass("elfinder-cwd-select")))return void n.stopPropagation();i=a.prevAll("."+m+":first").length+a.nextAll("."+m+":first").length,Ie.data("longtap",null),a.addClass(y).data("tmlongtap",setTimeout(function(){Ie.data("longtap",!0),("TD"!=n.target.nodeName||t.selected().length>0)&&(a.trigger(l),Z(),t.trigger("contextmenu",{type:"files",targets:t.selected(),x:n.originalEvent.touches[0].pageX,y:n.originalEvent.touches[0].pageY}))},500))}}).on("touchmove."+t.namespace+" touchend."+t.namespace,f,function(n){if("INPUT"==n.target.nodeName||"TEXTAREA"==n.target.nodeName||e(n.target).hasClass("elfinder-cwd-select"))return void n.stopPropagation();var i=this.id?e(this):e(this).parents("[id]:first");clearTimeout(i.data("tmlongtap")),"touchmove"===n.type?(Se.data("touching",null),i.removeClass(y)):Se.data("touching")&&!Ie.data("longtap")&&i.hasClass(m)&&(n.preventDefault(),Se.data("touching",null),t.dblclick({file:t.cwdId2Hash(this.id)}))}).on("mouseenter."+t.namespace,f,function(n){if(!re){var i=e(this),a=null,o=s?i:i.children("div.elfinder-cwd-file-wrapper,div.elfinder-cwd-filename");if(!(r||i.data("dragRegisted")||i.hasClass(x)||o.hasClass(v)||o.hasClass(g))){if(i.data("dragRegisted",!0),!t.isCommandEnabled("copy",t.searchStatus.state>1?t.cwdId2Hash(i.attr("id")):void 0))return;o.on("mousedown",function(n){var i=n.shiftKey||n.altKey;i&&!t.UA.IE&&Ie.data("selectable")&&(Ie.selectable("disable").selectable("destroy").removeData("selectable"),setTimeout(function(){Ie.selectable(se).selectable("option",{disabled:!1}).selectable("refresh").data("selectable",!0)},10)),o.draggable("option","disabled",i).removeClass("ui-state-disabled"),i?o.attr("draggable","true"):o.removeAttr("draggable").draggable("option","cursorAt",{left:50-parseInt(e(n.currentTarget).css("margin-left")),top:47})}).on("dragstart",function(n){var i=n.dataTransfer||n.originalEvent.dataTransfer||null;if(a=null,i&&!t.UA.IE){var o,r=this.id?e(this):e(this).parents("[id]:first"),s=e(""),c="",d=null,p=null,u=[],h=function(n){var i,a=n.mime,o=t.tmb(n);return i='',o&&(i=e(i).addClass(o.className).css("background-image","url('"+o.url+"')").get(0).outerHTML),i},f=[];if(r.trigger(l),Z(),e.each(V,function(n){var i=t.file(n),a=i.url;if(i&&"directory"!==i.mime){if(a){if("1"==a)return f.push(n),!0}else a=t.url(i.hash);a&&(a=t.convAbsUrl(a),u.push(n),e("").attr("href",a).text(a).appendTo(s),c+=a+"\n",d||(d=i.mime+":"+i.name+":"+a),p||(p=a+"\n"+i.name))}}),f.length)return e.each(f,function(e,n){var i=t.file(n);i.url="",t.request({data:{cmd:"url",target:n},notify:{type:"url",cnt:1},preventDefault:!0}).always(function(e){i.url=e.url?e.url:"1"})}),!1;if(!c)return!1;i.setDragImage&&(a=e('').append(h(t.file(u[0]))).appendTo(e(document.body)),(o=u.length)>1&&a.append(h(t.file(u[o-1]))+''+o+""),i.setDragImage(a.get(0),50,47)),i.effectAllowed="copyLink",i.setData("DownloadURL",d),i.setData("text/x-moz-url",p),i.setData("text/uri-list",c),i.setData("text/plain",c),i.setData("text/html",s.html()),i.setData("elfinderfrom",window.location.href+t.cwd().hash),i.setData("elfinderfrom:"+i.getData("elfinderfrom"),"")}}).on("dragend",function(e){J(),a&&a.remove()}).draggable(t.draggable)}}}).on(l,f,function(n){var i=e(this),a=t.cwdId2Hash(i.attr("id"));$||i.hasClass(g)||(Q="#"+this.id,i.addClass(m).children().addClass(y).find("input:checkbox").prop("checked",!0),V[a]||(V[a]=!0),W=Ie.find("[id]."+m+":last").next())}).on(c,f,function(n){var i=e(this),a=t.cwdId2Hash(i.attr("id"));$||(i.removeClass(m).children().removeClass(y).find("input:checkbox").prop("checked",!1),Ie.hasClass("elfinder-cwd-allselected")&&(M&&Oe.children("input").prop("checked",!1),Ie.removeClass("elfinder-cwd-allselected")),V[a]&&delete V[a])}).on(d,f,function(){var t=e(this).removeClass(y+" "+m).addClass(g),n=t.children(),i=s?t:n.find("div.elfinder-cwd-file-wrapper,div.elfinder-cwd-filename");n.removeClass(y+" "+m),t.hasClass(b)&&t.droppable("disable"),i.hasClass(v)&&i.draggable("disable")}).on(p,f,function(){var t=e(this).removeClass(g),n=s?t:t.children("div.elfinder-cwd-file-wrapper,div.elfinder-cwd-filename");t.hasClass(b)&&t.droppable("enable"),n.hasClass(v)&&n.draggable("enable")}).on("scrolltoview",f,function(t,n){ee(e(this),!n||"undefined"==typeof n.blink||n.blink)}).on("mouseenter."+t.namespace+" mouseleave."+t.namespace,f,function(n){var i="mouseenter"===n.type;i&&re||(t.trigger("hover",{hash:t.cwdId2Hash(e(this).attr("id")),type:n.type}),e(this).toggleClass(y,"mouseenter"==n.type))}).on("contextmenu."+t.namespace,function(n){var i=e(n.target).closest(f);return i.find("input:text,textarea").length?void n.stopPropagation():void(i.length&&("TD"!=n.target.nodeName||e.inArray(t.cwdId2Hash(i.get(0).id),t.selected())>-1)&&(n.stopPropagation(),n.preventDefault(),i.hasClass(g)||Se.data("touching")||(i.hasClass(m)||(J(),i.trigger(l),Z()),t.trigger("contextmenu",{type:"files",targets:t.selected(),x:n.pageX,y:n.pageY}))))}).on("click."+t.namespace,function(e){e.target!==this||Ie.data("longtap")||!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&J()}).on("create."+t.namespace,function(n,i){var a=s?Ie.find("tbody"):Ie,o=a.find(".elfinder-cwd-parent"),r=i.move||!1,l=e(L(i)).addClass(x),c=t.selected();c.length?r&&t.trigger("lockfiles",{files:c}):J(),o.length?o.after(l):a.prepend(l),me(),Se.scrollTop(0).scrollLeft(0)}).on("unselectall",J).on("selectfile",function(n,i){e("#"+t.cwdHash2Id(i)).trigger(l),Z()}).on("colwidth",function(){s&&(Ie.find("table").css("table-layout","").find("td").css("width",""),fe({fitWidth:!0}),t.storage("cwdColWidth",E=null))}),Se=e('').droppable(Object.assign({},ge,{autoDisable:!1})).on("contextmenu."+t.namespace,Te.contextmenu).on("touchstart."+t.namespace,Te.touchstart).on("touchmove."+t.namespace+" touchend."+t.namespace,Te.touchend).on("click."+t.namespace,Te.click).on("scroll."+t.namespace,function(){re||(Ie.data("selectable")&&Ie.selectable("disable"),Se.trigger(ae)),re=!0,ne.scrtm&&clearTimeout(ne.scrtm),ne.scrtm&&Math.abs((ne.scrolltop||0)-(ne.scrolltop=this.scrollTop||e(this).scrollTop()))<5&&(ne.scrtm=0,Se.trigger(oe)),ne.scrtm=setTimeout(function(){ne.scrtm=0,Se.trigger(oe)},20)}).on(oe,function(){re=!1,ce()}),Ae=e("
").css({position:"absolute",width:"1px",height:"1px"}).hide(),Oe=M?e('').attr("title",t.i18n("selectall")).on("touchstart mousedown click",function(t){return t.stopPropagation(),t.preventDefault(),!e(this).data("pending")&&"click"!==t.type&&(Oe.data("pending",!0),void(Ie.hasClass("elfinder-cwd-allselected")?(Oe.find("input").prop("checked",!1),setTimeout(function(){J()},10)):G()))}):e(),je=null,De=function(t){var n=function(){var t=0;Se.siblings("div.elfinder-panel:visible").each(function(){t+=e(this).outerHeight(!0)}),Se.height(Ue.height()-t-Se._padding)};t&&n(),je&&clearTimeout(je),je=setTimeout(function(){!t&&n();var e,i;Ie.css("height","auto"),e=Se[0].clientHeight-parseInt(Se.css("padding-top"))-parseInt(Se.css("padding-bottom"))-parseInt(Ie.css("margin-top")),i=Ie.outerHeight(!0),iA.length&&e.each(n.listView.columns,function(e,t){A.indexOf(t)===-1&&A.push(t)})):A=n.listView.columns;var o=t.storage("columnhides")||null;o&&Object.keys(o).length&&(A=e.grep(A,function(e){return!o[e]})),F.row=D(),s&&a.repaint&&ze()}).trigger("columnpref"),r&&e("body").on("touchstart touchmove touchend",function(e){}),M&&Ie.addClass("elfinder-has-checkbox"),e(window).on("scroll."+t.namespace,function(){o&&clearTimeout(o),o=setTimeout(function(){Se.trigger(oe)},50)}),e(document).on("keydown."+t.namespace,function(n){n.keyCode==e.ui.keyCode.ESCAPE&&(t.getUI().find(".ui-widget:visible").length||J())}),t.one("init",function(){var n,i,o,s=document.createElement("style"),l=0;document.head&&(document.head.appendChild(s),n=s.sheet,n.insertRule('.elfinder-cwd-wrapper-empty .elfinder-cwd:after{ content:"'+t.i18n("emptyFolder")+'" }',l++),n.insertRule('.elfinder-cwd-wrapper-empty .ui-droppable .elfinder-cwd:after{ content:"'+t.i18n("emptyFolder"+(r?"LTap":"Drop"))+'" }',l++),n.insertRule('.elfinder-cwd-wrapper-empty .ui-droppable-disabled .elfinder-cwd:after{ content:"'+t.i18n("emptyFolder")+'" }',l++),n.insertRule('.elfinder-cwd-wrapper-empty.elfinder-search-result .elfinder-cwd:after{ content:"'+t.i18n("emptySearch")+'" }',l++),n.insertRule('.elfinder-cwd-wrapper-empty.elfinder-search-result.elfinder-incsearch-result .elfinder-cwd:after{ content:"'+t.i18n("emptyIncSearch")+'" }',l++),n.insertRule('.elfinder-cwd-wrapper-empty.elfinder-search-result.elfinder-letsearch-result .elfinder-cwd:after{ content:"'+t.i18n("emptyLetSearch")+'" }',l++)),r||(t.one("open",function(){n&&t.zIndex&&n.insertRule(".ui-selectable-helper{z-index:"+t.zIndex+";}",l++)}),o=e(''),i=t.getUI(),i.on("resize",function(e,t){var n;e.preventDefault(),e.stopPropagation(),t&&t.fullscreen&&(n=i.offset(),"on"===t.fullscreen?(o.css({top:n.top*-1,left:n.left*-1}).appendTo(i),se.appendTo=o):(o.detach(),se.appendTo="body"),Ie.data("selectable")&&Ie.selectable("option",{appendTo:se.appendTo}))})),a=t.getUI("tree").length}).bind("enable",function(){De()}).bind("request.open",function(){ne.getTmbs=[]}).bind("open add remove searchend",function(){var n=t.cwd().hash,i=this.type;if(("open"===i||"searchend"===i||t.searchStatus.state<2)&&(I=e.map(t.files(n),function(e){return e.hash}),t.trigger("cwdhasheschange",I)),"open"===i){var o=function(){var n=!1;return e.each(z,function(e,i){if(t.trashes[i])return n=!0,!1}),n},r=n?t.file(n)?null:a?function(){var n=e.Deferred();return t.one("parents",function(){n.resolve()}),n}():t.request({data:{cmd:"parents",target:t.cwd().hash},preventFail:!0}):null;e.when(r).done(function(){z=t.parents(t.cwd().hash),Se[o()?"addClass":"removeClass"]("elfinder-cwd-wrapper-trash")}),S=void 0,J(),ze(),De()}}).bind("search",function(n){I=e.map(n.data.files,function(e){return e.hash}),t.trigger("cwdhasheschange",I),S=void 0,t.searchStatus.ininc=!1,ze(),t.autoSync("stop"),De()}).bind("searchend",function(e){(C||S)&&(C="",S?t.trigger("incsearchend",e.data):e.data&&e.data.noupdate||ze()),t.autoSync(),De()}).bind("searchstart",function(e){J(),C=e.data.query}).bind("incsearchstart",function(n){V={},t.lazy(function(){var i,a,o="";a=C=n.data.query||"",a?("/"===a.substr(0,1)&&(a=a.substr(1),o="^"),i=new RegExp(o+a.replace(/([\\*\;\.\?\[\]\{\}\(\)\^\$\-\|])/g,"\\$1"),"i"),S=e.grep(I,function(e){var n=t.file(e);return!(!n||!(n.name.match(i)||n.i18&&n.i18.match(i)))}),t.trigger("incsearch",{hashes:S,query:a}).searchStatus.ininc=!0,ze(),t.autoSync("stop")):t.trigger("incsearchend"),De()})}).bind("incsearchend",function(e){C="",t.searchStatus.ininc=!1,S=void 0,e.data&&e.data.noupdate||ze(),t.autoSync()}).bind("sortchange",function(){var e=Se.scrollLeft(),n=Ie.hasClass("elfinder-cwd-allselected");ze(),t.one("cwdrender",function(){Se.scrollLeft(e),n&&(V=t.arrayFlip(S||I,!0)),(n||Object.keys(V).length)&&Z(),De()})}).bind("viewchange",function(){var e="list"==t.storage("view"),n=Ie.hasClass("elfinder-cwd-allselected");e!=s&&(s=e,t.viewType=s?"list":"icons",ze(),n&&(Ie.addClass("elfinder-cwd-allselected"),Oe.find("input").prop("checked",!0)),Object.keys(V).length&&Z()),De()}).bind("wzresize",function(){var e,n=s?Ie.find("tbody"):Ie;De(!0),ne.hpi&&Ce(n,n.find("[id]").length),e=Ie.offset(),Ue.data("rectangle",Object.assign({width:Ue.width(),height:Ue.height(),cwdEdge:"ltr"===t.direction?e.left:e.left+Ie.width()},Ue.offset())),ne.itemH=(s?n.find("tr:first"):n.find("[id]:first")).outerHeight(!0)}).bind("changeclipboard",function(t){T={},t.data&&t.data.clipboard&&t.data.clipboard.length&&e.each(t.data.clipboard,function(e,t){t.cut&&(T[t.hash]=!0)})}).bind("resMixinMake",function(){me()}).bind("tmbreload",function(t){var n={},i=t.data&&t.data.files?t.data.files:null;e.each(i,function(e,t){t.tmb&&"1"!=t.tmb&&(n[t.hash]=t.tmb)}),Object.keys(n).length&&be(n,!0)}).add(function(n){var i=C?new RegExp(C.replace(/([\\*\;\.\?\[\]\{\}\(\)\^\$\-\|])/g,"\\$1"),"i"):null,a=t.searchStatus.mime,o=t.searchStatus.state>1,r=o&&t.searchStatus.target?t.searchStatus.target:t.cwd().hash,l=t.path(r),c=function(n){var s,c;return s=n.phash===r,!s&&o&&(c=n.path||t.path(n.hash),s=l&&0===c.indexOf(l),!s&&t.searchStatus.mixed&&(s=!!e.grep(t.searchStatus.mixed,function(e){return 0===n.hash.indexOf(e)}).length)),s&&o&&(s=a?0===n.mime.indexOf(a):!!(n.name.match(i)||n.i18&&n.i18.match(i))),s},d=e.grep(n.data.added||[],function(e){return!!c(e)});we(d),2===t.searchStatus.state&&(e.each(d,function(t,n){e.inArray(n.hash,I)===-1&&I.push(n.hash)}),t.trigger("cwdhasheschange",I)),s&&De(),Se.trigger(oe)}).change(function(n){var i,a=t.cwd().hash,o=t.selected();C?e.each(n.data.changed||[],function(t,n){xe([n.hash]),n.name.indexOf(C)!==-1&&(we([n],"change"),e.inArray(n.hash,o)!==-1&&X(n.hash),i=!0)}):e.each(e.grep(n.data.changed||[],function(e){return e.phash==a;
}),function(t,n){xe([n.hash]),we([n],"change"),e.inArray(n.hash,o)!==-1&&X(n.hash),i=!0}),i&&(t.trigger("cwdhasheschange",I),s&&De(),Se.trigger(oe)),Z()}).remove(function(e){var t=s?Ie.find("tbody"):Ie;xe(e.data.removed||[]),Z(),te.length<1&&t.children(f).length<1?(Ue.addClass("elfinder-cwd-wrapper-empty"),M&&Oe.find("input").prop("checked",!1),Ae.hide(),Se.off(oe,ue),De()):(Ce(t),Se.trigger(oe))}).dragstart(function(t){var n=e(t.data.target),i=t.data.originalEvent;n.hasClass(h)&&(n.hasClass(m)||(!(i.ctrlKey||i.metaKey||i.shiftKey)&&J(),n.trigger(l),Z())),Ie.removeClass(g).data("selectable")&&Ie.selectable("disable"),$=!0}).dragstop(function(){Ie.data("selectable")&&Ie.selectable("enable"),$=!1}).bind("lockfiles unlockfiles selectfiles unselectfiles",function(n){var i,a,o,r={lockfiles:d,unlockfiles:p,selectfiles:l,unselectfiles:c},s=r[n.type],u=n.data.files||[],h=u.length,f=n.data.helper||e();if(h>0&&(i=t.parents(u[0])),s!==l&&s!==c||(o=s===l,e.each(u,function(e,t){var n=Ie.hasClass("elfinder-cwd-allselected");V[t]?(n&&(M&&Oe.children("input").prop("checked",!1),Ie.removeClass("elfinder-cwd-allselected"),n=!1),!o&&delete V[t]):o&&(V[t]=!0)})),!f.data("locked")){for(;h--;)try{e("#"+t.cwdHash2Id(u[h])).trigger(s)}catch(n){}!n.data.inselect&&Z()}Se.data("dropover")&&i.indexOf(Se.data("dropover"))!==-1&&(a="lockfiles"!==n.type,f.toggleClass("elfinder-drag-helper-plus",a),Se.toggleClass(w,a))}).bind("mkdir mkfile duplicate upload rename archive extract paste multiupload",function(n){if("upload"!=n.type||!n.data._multiupload){var i=t.cwd().hash;J(),e.each((n.data.added||[]).concat(n.data.changed||[]),function(e,t){t&&t.phash==i&&X(t.hash)}),Z()}}).shortcut({pattern:"ctrl+a",description:"selectall",callback:G}).shortcut({pattern:"ctrl+shift+i",description:"selectinvert",callback:Y}).shortcut({pattern:"left right up down shift+left shift+right shift+up shift+down",description:"selectfiles",type:"keydown",callback:function(e){B(e.keyCode,e.shiftKey)}}).shortcut({pattern:"home",description:"selectffile",callback:function(e){J(),ee(Ie.find("[id]:first").trigger(l)),Z()}}).shortcut({pattern:"end",description:"selectlfile",callback:function(e){J(),ee(Ie.find("[id]:last").trigger(l)),Z()}}).shortcut({pattern:"page_up",description:"pageTurning",callback:function(e){ne.itemH&&Se.scrollTop(Math.round(Se.scrollTop()-Math.floor((Se.height()+(s?ne.itemH*-1:16))/ne.itemH)*ne.itemH))}}).shortcut({pattern:"page_down",description:"pageTurning",callback:function(e){ne.itemH&&Se.scrollTop(Math.round(Se.scrollTop()+Math.floor((Se.height()+(s?ne.itemH*-1:16))/ne.itemH)*ne.itemH))}})}),this},e.fn.elfinderdialog=function(t,n){var i,a,o,r=window.navigator.platform.indexOf("Win")!=-1,s={},l={enabled:!1,width:!1,height:!1,defaultSize:null},c=function(t){var i,a;l.enabled&&(a=n.options.dialogContained?o:e(window),i={maxWidth:l.width?a.width()-s.width:null,maxHeight:l.height?a.height()-s.height:null},t.css(i).trigger("resize"),t.data("hasResizable")&&(t.resizable("option","maxWidth")