!function(){vart,e,r,n,i,o,s,a,u,h,l,p,c,d={}.hasOwnProperty,f=[].indexOf||function(t){for(vare=0,r=this.length;r>e;e++)if(einthis&&this[e]===t)returne;return-1},y=function(t,e){functionr(){this.constructor=t}for(varnine)d.call(e,n)&&(t[n]=e[n]);returnr.prototype=e.prototype,t.prototype=newr,t.__super__=e.prototype,t};if(c=function(){functiont(){}returnt}(),c.Util=function(){functiont(){}returnt}(),c.Http=function(){functiont(){}returnt}(),c.File=function(){functiont(){}returnt}(),"undefined"!=typeofglobal&&"undefined"!=typeofmodule&&"exports"inmodule)n=global,i=module.require.bind(module),module.exports=c;elseif("undefined"!=typeofwindow&&"undefined"!=typeofnavigator)n=window,i=null,window.Dropbox&&function(){vart,e,r,n;r=window.Dropbox,n=[];for(tinr)d.call(r,t)&&(e=r[t],n.push(c[t]=e));returnn}(),window.Dropbox=c;else{if("undefined"==typeofself||"undefined"==typeofnavigator)thrownewError("dropbox.js loaded in an unsupported JavaScript environment.");n=self,i=self.importScripts.bind(self),self.Dropbox=c}if(c.Env=function(){functiont(){}returnt.global=n,t.require=i,t}(),c.Util.EventSource=function(){functiont(t){this._cancelable=t&&t.cancelable,this._listeners=[]}returnt.prototype.addListener=function(t){if("function"!=typeoft)thrownewTypeError("Invalid listener type; expected function");returnf.call(this._listeners,t)<0&&this._listeners.push(t),this},t.prototype.removeListener=function(t){vare,r,n,i,o,s;if(this._listeners.indexOf)r=this._listeners.indexOf(t),-1!==r&&this._listeners.splice(r,1);elsefor(s=this._listeners,e=i=0,o=s.length;o>i;e=++i)if(n=s[e],n===t){this._listeners.splice(e,1);break}returnthis},t.prototype.dispatch=function(t){vare,r,n,i,o;for(o=this._listeners,n=0,i=o.length;i>n;n++)if(e=o[n],r=e(t),this._cancelable&&r===!1)return!1;return!0},t}(),c.AccountInfo=function(){functiont(t){vare;this._json=t,this.name=t.display_name,this.email=t.email,this.countryCode=t.country||null,this.uid=t.uid.toString(),t.public_app_url?(this.publicAppUrl=t.public_app_url,e=this.publicAppUrl.length-1,e>=0&&"/"===this.publicAppUrl.substring(e)&&(this.publicAppUrl=this.publicAppUrl.substring(0,e))):this.publicAppUrl=null,this.referralUrl=t.referral_link,this.quota=t.quota_info.quota,this.privateBytes=t.quota_info.normal||0,this.sharedBytes=t.quota_info.shared||0,this.usedQuota=this.privateBytes+this.sharedBytes}returnt.parse=function(t){returnt&&"object"==typeoft?newc.AccountInfo(t):t},t.prototype.name=null,t.prototype.email=null,t.prototype.countryCode=null,t.prototype.uid=null,t.prototype.referralUrl=null,t.prototype.publicAppUrl=null,t.prototype.quota=null,t.prototype.usedQuota=null,t.prototype.privateBytes=null,t.prototype.sharedBytes=null,t.prototype.json=function(){returnthis._json},t}(),c.ApiError=function(){functiont(t,e,r){varn,i;if(this.method=e,this.url=r,this.status=t.status,t.responseType)try{n=t.response||t.responseText}catch(o){i=o;try{n=t.responseText}catch(o){i=o,n=null}}elsetry{n=t.responseText}catch(o){i=o,n=null}if(n)try{this.responseText=n.toString(),this.response=JSON.parse(n)}catch(o){i=o,this.response=null}elsethis.responseText="(no response)",this.response=null}returnt.prototype.status=null,t.prototype.method=null,t.prototype.url=null,t.prototype.responseText=null,t.prototype.response=null,t.NETWORK_ERROR=0,t.NO_CONTENT=304,t.INVALID_PARAM=400,t.INVALID_TOKEN=401,t.OAUTH_ERROR=403,t.NOT_FOUND=404,t.INVALID_METHOD=405,t.NOT_ACCEPTABLE=406,t.CONFLICT=409,t.RATE_LIMITED=429,t.SERVER_ERROR=503,t.OVER_QUOTA=507,t.prototype.toString=function(){return"Dropbox API error "+this.status+" from "+this.method+" "+this.url+" :: "+this.responseText},t.prototype.inspect=function(){returnthis.toString()},t}(),c.AuthDriver=function(){functiont(){}returnt.prototype.authType=function(){return"code"},t.prototype.url=function(){return"https://some.url"},t.prototype.doAuthorize=function(t,e,r,n){returnn({code:"access-code"})},t.prototype.getStateParam=function(t,e){returne(c.Util.Oauth.randomAuthStateParam())},t.prototype.resumeAuthorize=function(t,e,r){return