diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js index 98a09af5..89f7997c 100644 --- a/dist/swagger-ui.js +++ b/dist/swagger-ui.js @@ -25533,7 +25533,6 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({ router: this.router }); $('.response-content-type', $(this.el)).append(responseContentTypeView.render().el); - this.showSnippet(); ref4 = this.model.parameters; for (p = 0, len3 = ref4.length; p < len3; p++) { param = ref4[p]; @@ -25542,8 +25541,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({ ref5 = this.model.responseMessages; for (q = 0, len4 = ref5.length; q < len4; q++) { statusCode = ref5[q]; + statusCode.isXML = isXML; + statusCode.isJSON = isJSON; this.addStatusCode(statusCode); } + + this.showSnippet(); return this; }, @@ -27021,7 +27024,6 @@ SwaggerUi.partials.signature = (function () { if (!items) { return getErrorMessage(); } value = createSchemaXML(name, items, models); - value += value; xml = xml || {}; @@ -27369,13 +27371,15 @@ SwaggerUi.Views.StatusCodeView = Backbone.View.extend({ }, render: function(){ + var value = this.router.api.models[this.model.responseModel]; $(this.el).html(Handlebars.templates.status_code(this.model)); if (this.router.api.models.hasOwnProperty(this.model.responseModel)) { var responseModel = { - sampleJSON: JSON.stringify(this.router.api.models[this.model.responseModel].createJSONSample(), null, 2), + sampleJSON: JSON.stringify(SwaggerUi.partials.signature.createJSONSample(value), void 0, 2), + sampleXML: this.model.isXML ? SwaggerUi.partials.signature.createXMLSample(value.definition, value.models) : false, isParam: false, - signature: this.router.api.models[this.model.responseModel].getMockSignature(), + signature: SwaggerUi.partials.signature.getModelSignature(this.model.responseModel, value, this.router.api.models), defaultRendering: this.model.defaultRendering }; diff --git a/dist/swagger-ui.min.js b/dist/swagger-ui.min.js index 477ef4a6..952b3b4f 100644 --- a/dist/swagger-ui.min.js +++ b/dist/swagger-ui.min.js @@ -7,5 +7,5 @@ if(null===e)return!1;try{var t="("+e+")",n=s.parse(t,{range:!0});return"Program" }function Je(){var e,t,n,r;return e=null,t=new J,n=!1,ae("yield"),pn||(r=wn.allowYield,wn.allowYield=!1,n=oe("*"),n?(q(),e=We()):oe(";")||oe("}")||oe(")")||bn.type===Gt.EOF||(e=We()),wn.allowYield=r),t.finishYieldExpression(e,n)}function We(){var e,t,n,r,i;return i=bn,e=bn,!wn.allowYield&&se("yield")?Je():(t=qe(),t.type===nn.ArrowParameterPlaceHolder||oe("=>")?(Cn=xn=!1,r=ze(t),r?(En=null,Ye(r,new W(i))):t):(le()&&(Cn||Z(rn.InvalidLHSInAssignment),sn&&t.type===tn.Identifier&&(h(t.name)&&ne(e,rn.StrictLHSAssignment),f(t.name)&&ne(e,rn.StrictReservedWord)),oe("=")?Fe(t):Cn=xn=!1,e=q(),n=pe(We),t=new W(i).finishAssignmentExpression(e.value,t,n),En=null),t))}function Ke(){var e,t,n=bn;if(e=pe(We),oe(",")){for(t=[e];Dn>mn&&oe(",");)q(),t.push(pe(We));e=new W(n).finishSequenceExpression(t)}return e}function Qe(){if(bn.type===Gt.Keyword)switch(bn.value){case"export":return"module"!==wn.sourceType&&ne(bn,rn.IllegalExportDeclaration),Nt();case"import":return"module"!==wn.sourceType&&ne(bn,rn.IllegalImportDeclaration),Yt();case"const":return ut({inFor:!1});case"function":return It(new J);case"class":return Tt()}return se("let")&&st()?ut({inFor:!1}):Ft()}function Xe(){for(var e=[];Dn>mn&&!oe("}");)e.push(Qe());return e}function Ge(){var e,t=new J;return re("{"),e=Xe(),re("}"),t.finishBlockStatement(e)}function Ze(e){var t,n=new J;return t=q(),t.type===Gt.Keyword&&"yield"===t.value?(sn&&ne(t,rn.StrictReservedWord),wn.allowYield||te(t)):t.type!==Gt.Identifier?sn&&t.type===Gt.Keyword&&f(t.value)?ne(t,rn.StrictReservedWord):(sn||"let"!==t.value||"var"!==e)&&te(t):"module"===wn.sourceType&&t.type===Gt.Identifier&&"await"===t.value&&ne(t),n.finishIdentifier(t.value)}function et(e){var t,n=null,r=new J,i=[];return t=ye(i,"var"),sn&&h(t.name)&&Z(rn.StrictVarName),oe("=")?(q(),n=pe(We)):t.type===tn.Identifier||e.inFor||re("="),r.finishVariableDeclarator(t,n)}function tt(e){var t,n;for(t={inFor:e.inFor},n=[et(t)];oe(",");)q(),n.push(et(t));return n}function nt(e){var t;return ae("var"),t=tt({inFor:!1}),ce(),e.finishVariableDeclaration(t)}function rt(e,t){var n,r=null,i=new J,a=[];return n=ye(a,e),sn&&n.type===tn.Identifier&&h(n.name)&&Z(rn.StrictVarName),"const"===e?se("in")||ue("of")||(re("="),r=pe(We)):(!t.inFor&&n.type!==tn.Identifier||oe("="))&&(re("="),r=pe(We)),i.finishVariableDeclarator(n,r)}function it(e,t){for(var n=[rt(e,t)];oe(",");)q(),n.push(rt(e,t));return n}function at(){return{index:un,lineNumber:ln,lineStart:cn,hasLineTerminator:pn,lastIndex:fn,lastLineNumber:hn,lastLineStart:dn,startIndex:mn,startLineNumber:yn,startLineStart:gn,lookahead:bn,tokenCount:An.tokens?An.tokens.length:0}}function ot(e){un=e.index,ln=e.lineNumber,cn=e.lineStart,pn=e.hasLineTerminator,fn=e.lastIndex,hn=e.lastLineNumber,dn=e.lastLineStart,mn=e.startIndex,yn=e.startLineNumber,gn=e.startLineStart,bn=e.lookahead,An.tokens&&An.tokens.splice(e.tokenCount,An.tokens.length)}function st(){var e,t;return t=at(),q(),e=bn.type===Gt.Identifier||oe("[")||oe("{")||se("let")||se("yield"),ot(t),e}function ut(e){var n,r,i=new J;return n=q().value,t("let"===n||"const"===n,"Lexical declaration must be either let or const"),r=it(n,e),ce(),i.finishLexicalDeclaration(r,n)}function lt(e){var t,n=new J;return q(),oe("{")&&G(rn.ObjectPatternAsRestParameter),e.push(bn),t=Ze(),oe("=")&&G(rn.DefaultRestParameter),oe(")")||G(rn.ParameterAfterRestParameter),n.finishRestElement(t)}function ct(e){return re(";"),e.finishEmptyStatement()}function pt(e){var t=Ke();return ce(),e.finishExpressionStatement(t)}function ft(e){var t,n,r;return ae("if"),re("("),t=Ke(),re(")"),n=Ft(),se("else")?(q(),r=Ft()):r=null,e.finishIfStatement(t,n,r)}function ht(e){var t,n,r;return ae("do"),r=wn.inIteration,wn.inIteration=!0,t=Ft(),wn.inIteration=r,ae("while"),re("("),n=Ke(),re(")"),oe(";")&&q(),e.finishDoWhileStatement(t,n)}function dt(e){var t,n,r;return ae("while"),re("("),t=Ke(),re(")"),r=wn.inIteration,wn.inIteration=!0,n=Ft(),wn.inIteration=r,e.finishWhileStatement(t,n)}function mt(e){var t,n,r,i,a,o,s,u,l,c,p,f,h=wn.allowIn;if(t=a=o=null,n=!0,ae("for"),re("("),oe(";"))q();else if(se("var"))t=new J,q(),wn.allowIn=!1,c=tt({inFor:!0}),wn.allowIn=h,1===c.length&&se("in")?(t=t.finishVariableDeclaration(c),q(),s=t,u=Ke(),t=null):1===c.length&&null===c[0].init&&ue("of")?(t=t.finishVariableDeclaration(c),q(),s=t,u=We(),t=null,n=!1):(t=t.finishVariableDeclaration(c),re(";"));else if(se("const")||se("let"))t=new J,l=q().value,sn||"in"!==bn.value?(wn.allowIn=!1,c=it(l,{inFor:!0}),wn.allowIn=h,1===c.length&&null===c[0].init&&se("in")?(t=t.finishLexicalDeclaration(c,l),q(),s=t,u=Ke(),t=null):1===c.length&&null===c[0].init&&ue("of")?(t=t.finishLexicalDeclaration(c,l),q(),s=t,u=We(),t=null,n=!1):(ce(),t=t.finishLexicalDeclaration(c,l))):(t=t.finishIdentifier(l),q(),s=t,u=Ke(),t=null);else if(i=bn,wn.allowIn=!1,t=fe(We),wn.allowIn=h,se("in"))Cn||Z(rn.InvalidLHSInForIn),q(),Fe(t),s=t,u=Ke(),t=null;else if(ue("of"))Cn||Z(rn.InvalidLHSInForLoop),q(),Fe(t),s=t,u=We(),t=null,n=!1;else{if(oe(",")){for(r=[t];oe(",");)q(),r.push(pe(We));t=new W(i).finishSequenceExpression(r)}re(";")}return"undefined"==typeof s&&(oe(";")||(a=Ke()),re(";"),oe(")")||(o=Ke())),re(")"),f=wn.inIteration,wn.inIteration=!0,p=pe(Ft),wn.inIteration=f,"undefined"==typeof s?e.finishForStatement(t,a,o,p):n?e.finishForInStatement(s,u,p):e.finishForOfStatement(s,u,p)}function yt(e){var t,n=null;return ae("continue"),59===on.charCodeAt(mn)?(q(),wn.inIteration||G(rn.IllegalContinue),e.finishContinueStatement(null)):pn?(wn.inIteration||G(rn.IllegalContinue),e.finishContinueStatement(null)):(bn.type===Gt.Identifier&&(n=Ze(),t="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,t)||G(rn.UnknownLabel,n.name)),ce(),null!==n||wn.inIteration||G(rn.IllegalContinue),e.finishContinueStatement(n))}function gt(e){var t,n=null;return ae("break"),59===on.charCodeAt(fn)?(q(),wn.inIteration||wn.inSwitch||G(rn.IllegalBreak),e.finishBreakStatement(null)):(pn?wn.inIteration||wn.inSwitch||G(rn.IllegalBreak):bn.type===Gt.Identifier&&(n=Ze(),t="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,t)||G(rn.UnknownLabel,n.name)),ce(),null!==n||wn.inIteration||wn.inSwitch||G(rn.IllegalBreak),e.finishBreakStatement(n))}function vt(e){var t=null;return ae("return"),wn.inFunctionBody||Z(rn.IllegalReturn),32===on.charCodeAt(fn)&&l(on.charCodeAt(fn+1))?(t=Ke(),ce(),e.finishReturnStatement(t)):pn?e.finishReturnStatement(null):(oe(";")||oe("}")||bn.type===Gt.EOF||(t=Ke()),ce(),e.finishReturnStatement(t))}function Dt(e){var t,n;return sn&&Z(rn.StrictModeWith),ae("with"),re("("),t=Ke(),re(")"),n=Ft(),e.finishWithStatement(t,n)}function bt(){var e,t,n=[],r=new J;for(se("default")?(q(),e=null):(ae("case"),e=Ke()),re(":");Dn>mn&&!(oe("}")||se("default")||se("case"));)t=Qe(),n.push(t);return r.finishSwitchCase(e,n)}function wt(e){var t,n,r,i,a;if(ae("switch"),re("("),t=Ke(),re(")"),re("{"),n=[],oe("}"))return q(),e.finishSwitchStatement(t,n);for(i=wn.inSwitch,wn.inSwitch=!0,a=!1;Dn>mn&&!oe("}");)r=bt(),null===r.test&&(a&&G(rn.MultipleDefaultsInSwitch),a=!0),n.push(r);return wn.inSwitch=i,re("}"),e.finishSwitchStatement(t,n)}function At(e){var t;return ae("throw"),pn&&G(rn.NewlineAfterThrow),t=Ke(),ce(),e.finishThrowStatement(t)}function xt(){var e,t,n,r,i=[],a={},o=new J;for(ae("catch"),re("("),oe(")")&&te(bn),e=ye(i),n=0;nmn&&bn.type===Gt.StringLiteral&&(t=bn,e=Qe(),l.push(e),e.expression.type===tn.Literal);)n=on.slice(t.start+1,t.end-1),"use strict"===n?(sn=!0,r&&ne(r,rn.StrictOctalLiteral)):!r&&t.octal&&(r=t);for(i=wn.labelSet,a=wn.inIteration,o=wn.inSwitch,s=wn.inFunctionBody,u=wn.parenthesizedCount,wn.labelSet={},wn.inIteration=!1,wn.inSwitch=!1,wn.inFunctionBody=!0,wn.parenthesizedCount=0;Dn>mn&&!oe("}");)l.push(Qe());return re("}"),wn.labelSet=i,wn.inIteration=a,wn.inSwitch=o,wn.inFunctionBody=s,wn.parenthesizedCount=u,c.finishBlockStatement(l)}function Ot(e,t,n){var r="$"+n;sn?(h(n)&&(e.stricted=t,e.message=rn.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=rn.StrictParamDupe)):e.firstRestricted||(h(n)?(e.firstRestricted=t,e.message=rn.StrictParamName):f(n)?(e.firstRestricted=t,e.message=rn.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=rn.StrictParamDupe)),e.paramSet[r]=!0}function jt(e){var t,n,r,i,a=[];if(t=bn,"..."===t.value)return n=lt(a),Ot(e,n.argument,n.argument.name),e.params.push(n),e.defaults.push(null),!1;for(n=ge(a),r=0;rmn&&jt(t);)re(",");return re(")"),0===t.defaultCount&&(t.defaults=[]),{params:t.params,defaults:t.defaults,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}}function It(e,t){var n,r,i,a,o,s,u,l,c,p=null,d=[],m=[];return c=wn.allowYield,ae("function"),l=oe("*"),l&&q(),t&&oe("(")||(r=bn,p=Ze(),sn?h(r.value)&&ne(r,rn.StrictFunctionName):h(r.value)?(o=r,s=rn.StrictFunctionName):f(r.value)&&(o=r,s=rn.StrictReservedWord)),wn.allowYield=!l,a=kt(o),d=a.params,m=a.defaults,i=a.stricted,o=a.firstRestricted,a.message&&(s=a.message),u=sn,n=St(),sn&&o&&te(o,s),sn&&i&&ne(i,s),sn=u,wn.allowYield=c,e.finishFunctionDeclaration(p,d,m,n,l)}function Bt(){var e,t,n,r,i,a,o,s,u,l=null,c=[],p=[],d=new J;return u=wn.allowYield,ae("function"),s=oe("*"),s&&q(),wn.allowYield=!s,oe("(")||(e=bn,l=sn||s||!se("yield")?Ze():Be(),sn?h(e.value)&&ne(e,rn.StrictFunctionName):h(e.value)?(n=e,r=rn.StrictFunctionName):f(e.value)&&(n=e,r=rn.StrictReservedWord)),i=kt(n),c=i.params,p=i.defaults,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),o=sn,a=St(),sn&&n&&te(n,r),sn&&t&&ne(t,r),sn=o,wn.allowYield=u,d.finishFunctionExpression(l,c,p,a,s)}function _t(){var e,t,n,r,i,a,o,s=!1;for(e=new J,re("{"),r=[];!oe("}");)oe(";")?q():(i=new J,t=bn,n=!1,a=oe("["),oe("*")?q():(o=we(),"static"===o.name&&(Ae()||oe("*"))&&(t=bn,n=!0,a=oe("["),oe("*")?q():o=we())),i=xe(t,o,a,i),i?(i["static"]=n,"init"===i.kind&&(i.kind="method"),n?i.computed||"prototype"!==(i.key.name||i.key.value.toString())||te(t,rn.StaticPrototype):i.computed||"constructor"!==(i.key.name||i.key.value.toString())||(("method"!==i.kind||!i.method||i.value.generator)&&te(t,rn.ConstructorSpecialMethod),s?te(t,rn.DuplicateConstructor):s=!0,i.kind="constructor"),i.type=tn.MethodDefinition,delete i.method,delete i.shorthand,r.push(i)):te(bn));return q(),e.finishClassBody(r)}function Tt(e){var t,n=null,r=null,i=new J,a=sn;return sn=!0,ae("class"),e&&bn.type!==Gt.Identifier||(n=Ze()),se("extends")&&(q(),r=pe(Le)),t=_t(),sn=a,i.finishClassDeclaration(n,r,t)}function Pt(){var e,t=null,n=null,r=new J,i=sn;return sn=!0,ae("class"),bn.type===Gt.Identifier&&(t=Ze()),se("extends")&&(q(),n=pe(Le)),e=_t(),sn=i,r.finishClassExpression(t,n,e)}function Lt(){var e=new J;return bn.type!==Gt.StringLiteral&&G(rn.InvalidModuleSpecifier),e.finishLiteral(q())}function $t(){var e,t,n,r=new J;return se("default")?(n=new J,q(),t=n.finishIdentifier("default")):t=Ze(),ue("as")&&(q(),e=Be()),r.finishExportSpecifier(t,e)}function Mt(e){var t,n=null,r=null,i=[];if(bn.type===Gt.Keyword)switch(bn.value){case"let":case"const":return n=ut({inFor:!1}),e.finishExportNamedDeclaration(n,i,null);case"var":case"class":case"function":return n=Qe(),e.finishExportNamedDeclaration(n,i,null)}for(re("{");!oe("}")&&(t=t||se("default"),i.push($t()),oe("}")||(re(","),!oe("}"))););return re("}"),ue("from")?(q(),r=Lt(),ce()):t?G(bn.value?rn.UnexpectedToken:rn.MissingFromClause,bn.value):ce(),e.finishExportNamedDeclaration(n,i,r)}function Ut(e){var t=null,n=null;return ae("default"),se("function")?(t=It(new J,!0),e.finishExportDefaultDeclaration(t)):se("class")?(t=Tt(!0),e.finishExportDefaultDeclaration(t)):(ue("from")&&G(rn.UnexpectedToken,bn.value),n=oe("{")?Ee():oe("[")?ve():We(),ce(),e.finishExportDefaultDeclaration(n))}function Rt(e){var t;return re("*"),ue("from")||G(bn.value?rn.UnexpectedToken:rn.MissingFromClause,bn.value),q(),t=Lt(),ce(),e.finishExportAllDeclaration(t)}function Nt(){var e=new J;return wn.inFunctionBody&&G(rn.IllegalExportDeclaration),ae("export"),se("default")?Ut(e):oe("*")?Rt(e):Mt(e)}function qt(){var e,t,n=new J;return t=Be(),ue("as")&&(q(),e=Ze()),n.finishImportSpecifier(e,t)}function Ht(){var e=[];for(re("{");!oe("}")&&(e.push(qt()),oe("}")||(re(","),!oe("}"))););return re("}"),e}function Vt(){var e,t=new J;return e=Be(),t.finishImportDefaultSpecifier(e)}function zt(){var e,t=new J;return re("*"),ue("as")||G(rn.NoAsAfterImportNamespace),q(),e=Be(),t.finishImportNamespaceSpecifier(e)}function Yt(){var e,t=[],n=new J;return wn.inFunctionBody&&G(rn.IllegalImportDeclaration),ae("import"),bn.type===Gt.StringLiteral?e=Lt():(oe("{")?t=t.concat(Ht()):oe("*")?t.push(zt()):M(bn)&&!se("default")?(t.push(Vt()),oe(",")&&(q(),oe("*")?t.push(zt()):oe("{")?t=t.concat(Ht()):te(bn))):te(q()),ue("from")||G(bn.value?rn.UnexpectedToken:rn.MissingFromClause,bn.value),q(),e=Lt()),ce(),n.finishImportDeclaration(t,e)}function Jt(){for(var e,t,n,r,i=[];Dn>mn&&(t=bn,t.type===Gt.StringLiteral)&&(e=Qe(),i.push(e),e.expression.type===tn.Literal);)n=on.slice(t.start+1,t.end-1),"use strict"===n?(sn=!0,r&&ne(r,rn.StrictOctalLiteral)):!r&&t.octal&&(r=t);for(;Dn>mn&&(e=Qe(),"undefined"!=typeof e);)i.push(e);return i}function Wt(){var e,t;return H(),t=new J,e=Jt(),t.finishProgram(e,wn.sourceType)}function Kt(){var e,t,n,r=[];for(e=0;e0?1:0,cn=0,mn=un,yn=ln,gn=cn,Dn=on.length,bn=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[]},An={},t=t||{},t.tokens=!0,An.tokens=[],An.tokenValues=[],An.tokenize=!0,An.delegate=n,An.openParenToken=-1,An.openCurlyToken=-1,An.range="boolean"==typeof t.range&&t.range,An.loc="boolean"==typeof t.loc&&t.loc,"boolean"==typeof t.comment&&t.comment&&(An.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(An.errors=[]);try{if(H(),bn.type===Gt.EOF)return An.tokens;for(q();bn.type!==Gt.EOF;)try{q()}catch(a){if(An.errors){K(a);break}throw a}i=An.tokens,"undefined"!=typeof An.errors&&(i.errors=An.errors)}catch(o){throw o}finally{An={}}return i}function Xt(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),on=e,un=0,ln=on.length>0?1:0,cn=0,mn=un,yn=ln,gn=cn,Dn=on.length,bn=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[],sourceType:"script"},sn=!1,An={},"undefined"!=typeof t&&(An.range="boolean"==typeof t.range&&t.range,An.loc="boolean"==typeof t.loc&&t.loc,An.attachComment="boolean"==typeof t.attachComment&&t.attachComment,An.loc&&null!==t.source&&void 0!==t.source&&(An.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(An.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(An.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(An.errors=[]),An.attachComment&&(An.range=!0,An.comments=[],An.bottomRightStack=[],An.trailingComments=[],An.leadingComments=[]),"module"===t.sourceType&&(wn.sourceType=t.sourceType,sn=!0));try{n=Wt(),"undefined"!=typeof An.comments&&(n.comments=An.comments),"undefined"!=typeof An.tokens&&(Kt(),n.tokens=An.tokens),"undefined"!=typeof An.errors&&(n.errors=An.errors)}catch(i){throw i}finally{An={}}return n}var Gt,Zt,en,tn,nn,rn,an,on,sn,un,ln,cn,pn,fn,hn,dn,mn,yn,gn,vn,Dn,bn,wn,An,xn,Cn,En;Gt={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9,Template:10},Zt={},Zt[Gt.BooleanLiteral]="Boolean",Zt[Gt.EOF]="",Zt[Gt.Identifier]="Identifier",Zt[Gt.Keyword]="Keyword",Zt[Gt.NullLiteral]="Null",Zt[Gt.NumericLiteral]="Numeric",Zt[Gt.Punctuator]="Punctuator",Zt[Gt.StringLiteral]="String",Zt[Gt.RegularExpression]="RegularExpression",Zt[Gt.Template]="Template",en=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],tn={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},nn={ArrowParameterPlaceHolder:"ArrowParameterPlaceHolder"},rn={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",DefaultRestParameter:"Unexpected token =",ObjectPatternAsRestParameter:"Unexpected token {",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ConstructorSpecialMethod:"Class constructor may not be an accessor",DuplicateConstructor:"A class may only have one constructor",StaticPrototype:"Classes may not have static property named prototype",MissingFromClause:"Unexpected token",NoAsAfterImportNamespace:"Unexpected token",InvalidModuleSpecifier:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalExportDeclaration:"Unexpected token",DuplicateBinding:"Duplicate binding %0"},an={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ },W.prototype=J.prototype={processComment:function(){var e,t,n,r,i,a,o=An.bottomRightStack,s=o[o.length-1];if(!(this.type===tn.Program&&this.body.length>0)){if(this.type===tn.BlockStatement&&0===this.body.length){for(t=[],i=An.leadingComments.length-1;i>=0;--i)a=An.leadingComments[i],this.range[1]>=a.range[1]&&(t.unshift(a),An.leadingComments.splice(i,1),An.trailingComments.splice(i,1));if(t.length)return void(this.innerComments=t)}if(An.trailingComments.length>0){for(r=[],i=An.trailingComments.length-1;i>=0;--i)a=An.trailingComments[i],a.range[0]>=this.range[1]&&(r.unshift(a),An.trailingComments.splice(i,1));An.trailingComments=[]}else s&&s.trailingComments&&s.trailingComments[0].range[0]>=this.range[1]&&(r=s.trailingComments,delete s.trailingComments);for(;s&&s.range[0]>=this.range[0];)e=o.pop(),s=o[o.length-1];if(e){if(e.leadingComments){for(n=[],i=e.leadingComments.length-1;i>=0;--i)a=e.leadingComments[i],a.range[1]<=this.range[0]&&(n.unshift(a),e.leadingComments.splice(i,1));e.leadingComments.length||(e.leadingComments=void 0)}}else if(An.leadingComments.length>0)for(n=[],i=An.leadingComments.length-1;i>=0;--i)a=An.leadingComments[i],a.range[1]<=this.range[0]&&(n.unshift(a),An.leadingComments.splice(i,1));n&&n.length>0&&(this.leadingComments=n),r&&r.length>0&&(this.trailingComments=r),o.push(this)}},finish:function(){An.range&&(this.range[1]=fn),An.loc&&(this.loc.end={line:hn,column:fn-dn},An.source&&(this.loc.source=An.source)),An.attachComment&&this.processComment()},finishArrayExpression:function(e){return this.type=tn.ArrayExpression,this.elements=e,this.finish(),this},finishArrayPattern:function(e){return this.type=tn.ArrayPattern,this.elements=e,this.finish(),this},finishArrowFunctionExpression:function(e,t,n,r){return this.type=tn.ArrowFunctionExpression,this.id=null,this.params=e,this.defaults=t,this.body=n,this.generator=!1,this.expression=r,this.finish(),this},finishAssignmentExpression:function(e,t,n){return this.type=tn.AssignmentExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishAssignmentPattern:function(e,t){return this.type=tn.AssignmentPattern,this.left=e,this.right=t,this.finish(),this},finishBinaryExpression:function(e,t,n){return this.type="||"===e||"&&"===e?tn.LogicalExpression:tn.BinaryExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishBlockStatement:function(e){return this.type=tn.BlockStatement,this.body=e,this.finish(),this},finishBreakStatement:function(e){return this.type=tn.BreakStatement,this.label=e,this.finish(),this},finishCallExpression:function(e,t){return this.type=tn.CallExpression,this.callee=e,this.arguments=t,this.finish(),this},finishCatchClause:function(e,t){return this.type=tn.CatchClause,this.param=e,this.body=t,this.finish(),this},finishClassBody:function(e){return this.type=tn.ClassBody,this.body=e,this.finish(),this},finishClassDeclaration:function(e,t,n){return this.type=tn.ClassDeclaration,this.id=e,this.superClass=t,this.body=n,this.finish(),this},finishClassExpression:function(e,t,n){return this.type=tn.ClassExpression,this.id=e,this.superClass=t,this.body=n,this.finish(),this},finishConditionalExpression:function(e,t,n){return this.type=tn.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n,this.finish(),this},finishContinueStatement:function(e){return this.type=tn.ContinueStatement,this.label=e,this.finish(),this},finishDebuggerStatement:function(){return this.type=tn.DebuggerStatement,this.finish(),this},finishDoWhileStatement:function(e,t){return this.type=tn.DoWhileStatement,this.body=e,this.test=t,this.finish(),this},finishEmptyStatement:function(){return this.type=tn.EmptyStatement,this.finish(),this},finishExpressionStatement:function(e){return this.type=tn.ExpressionStatement,this.expression=e,this.finish(),this},finishForStatement:function(e,t,n,r){return this.type=tn.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r,this.finish(),this},finishForOfStatement:function(e,t,n){return this.type=tn.ForOfStatement,this.left=e,this.right=t,this.body=n,this.finish(),this},finishForInStatement:function(e,t,n){return this.type=tn.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1,this.finish(),this},finishFunctionDeclaration:function(e,t,n,r,i){return this.type=tn.FunctionDeclaration,this.id=e,this.params=t,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishFunctionExpression:function(e,t,n,r,i){return this.type=tn.FunctionExpression,this.id=e,this.params=t,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishIdentifier:function(e){return this.type=tn.Identifier,this.name=e,this.finish(),this},finishIfStatement:function(e,t,n){return this.type=tn.IfStatement,this.test=e,this.consequent=t,this.alternate=n,this.finish(),this},finishLabeledStatement:function(e,t){return this.type=tn.LabeledStatement,this.label=e,this.body=t,this.finish(),this},finishLiteral:function(e){return this.type=tn.Literal,this.value=e.value,this.raw=on.slice(e.start,e.end),e.regex&&(this.regex=e.regex),this.finish(),this},finishMemberExpression:function(e,t,n){return this.type=tn.MemberExpression,this.computed="["===e,this.object=t,this.property=n,this.finish(),this},finishMetaProperty:function(e,t){return this.type=tn.MetaProperty,this.meta=e,this.property=t,this.finish(),this},finishNewExpression:function(e,t){return this.type=tn.NewExpression,this.callee=e,this.arguments=t,this.finish(),this},finishObjectExpression:function(e){return this.type=tn.ObjectExpression,this.properties=e,this.finish(),this},finishObjectPattern:function(e){return this.type=tn.ObjectPattern,this.properties=e,this.finish(),this},finishPostfixExpression:function(e,t){return this.type=tn.UpdateExpression,this.operator=e,this.argument=t,this.prefix=!1,this.finish(),this},finishProgram:function(e,t){return this.type=tn.Program,this.body=e,this.sourceType=t,this.finish(),this},finishProperty:function(e,t,n,r,i,a){return this.type=tn.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=a,this.finish(),this},finishRestElement:function(e){return this.type=tn.RestElement,this.argument=e,this.finish(),this},finishReturnStatement:function(e){return this.type=tn.ReturnStatement,this.argument=e,this.finish(),this},finishSequenceExpression:function(e){return this.type=tn.SequenceExpression,this.expressions=e,this.finish(),this},finishSpreadElement:function(e){return this.type=tn.SpreadElement,this.argument=e,this.finish(),this},finishSwitchCase:function(e,t){return this.type=tn.SwitchCase,this.test=e,this.consequent=t,this.finish(),this},finishSuper:function(){return this.type=tn.Super,this.finish(),this},finishSwitchStatement:function(e,t){return this.type=tn.SwitchStatement,this.discriminant=e,this.cases=t,this.finish(),this},finishTaggedTemplateExpression:function(e,t){return this.type=tn.TaggedTemplateExpression,this.tag=e,this.quasi=t,this.finish(),this},finishTemplateElement:function(e,t){return this.type=tn.TemplateElement,this.value=e,this.tail=t,this.finish(),this},finishTemplateLiteral:function(e,t){return this.type=tn.TemplateLiteral,this.quasis=e,this.expressions=t,this.finish(),this},finishThisExpression:function(){return this.type=tn.ThisExpression,this.finish(),this},finishThrowStatement:function(e){return this.type=tn.ThrowStatement,this.argument=e,this.finish(),this},finishTryStatement:function(e,t,n){return this.type=tn.TryStatement,this.block=e,this.guardedHandlers=[],this.handlers=t?[t]:[],this.handler=t,this.finalizer=n,this.finish(),this},finishUnaryExpression:function(e,t){return this.type="++"===e||"--"===e?tn.UpdateExpression:tn.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0,this.finish(),this},finishVariableDeclaration:function(e){return this.type=tn.VariableDeclaration,this.declarations=e,this.kind="var",this.finish(),this},finishLexicalDeclaration:function(e,t){return this.type=tn.VariableDeclaration,this.declarations=e,this.kind=t,this.finish(),this},finishVariableDeclarator:function(e,t){return this.type=tn.VariableDeclarator,this.id=e,this.init=t,this.finish(),this},finishWhileStatement:function(e,t){return this.type=tn.WhileStatement,this.test=e,this.body=t,this.finish(),this},finishWithStatement:function(e,t){return this.type=tn.WithStatement,this.object=e,this.body=t,this.finish(),this},finishExportSpecifier:function(e,t){return this.type=tn.ExportSpecifier,this.exported=t||e,this.local=e,this.finish(),this},finishImportDefaultSpecifier:function(e){return this.type=tn.ImportDefaultSpecifier,this.local=e,this.finish(),this},finishImportNamespaceSpecifier:function(e){return this.type=tn.ImportNamespaceSpecifier,this.local=e,this.finish(),this},finishExportNamedDeclaration:function(e,t,n){return this.type=tn.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n,this.finish(),this},finishExportDefaultDeclaration:function(e){return this.type=tn.ExportDefaultDeclaration,this.declaration=e,this.finish(),this},finishExportAllDeclaration:function(e){return this.type=tn.ExportAllDeclaration,this.source=e,this.finish(),this},finishImportSpecifier:function(e,t){return this.type=tn.ImportSpecifier,this.local=e||t,this.imported=t,this.finish(),this},finishImportDeclaration:function(e,t){return this.type=tn.ImportDeclaration,this.specifiers=e,this.source=t,this.finish(),this},finishYieldExpression:function(e,t){return this.type=tn.YieldExpression,this.argument=e,this.delegate=t,this.finish(),this}},e.version="2.7.1",e.tokenize=Qt,e.parse=Xt,e.Syntax=function(){var e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in tn)tn.hasOwnProperty(e)&&(t[e]=tn[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],51:[function(e,t,n){t.exports=e("./lib/inherit")},{"./lib/inherit":52}],52:[function(e,n,r){!function(e){function i(e){var t=f(e);if(v)for(var n,r=0;n=w[r++];)e.hasOwnProperty(n)&&t.push(n);return t}function a(e,t,n){for(var r,a,o=i(n),s=0,l=o.length;l>s;)"__self"!==(r=o[s++])&&(a=n[r],y(a)&&(!u||a.toString().indexOf(".__base")>-1)?t[r]=function(n,r){var i=e[n]?e[n]:"__constructor"===n?t.__self.__parent:g;return function(){var e=this.__base;this.__base=i;var t=r.apply(this,arguments);return this.__base=e,t}}(r,a):t[r]=a)}function o(e,t){for(var n,r=1;n=e[r++];)t?y(n)?s.self(t,n.prototype,n):s.self(t,n):t=y(n)?s(e[0],n.prototype,n):s(e[0],n);return t||e[0]}function s(){var e=arguments,t=m(e[0]),n=t||y(e[0]),r=n?t?o(e[0]):e[0]:l,i=e[n?1:0]||{},s=e[n?2:1],u=i.__constructor||n&&r.prototype.__constructor?function(){return this.__constructor.apply(this,arguments)}:n?function(){return r.apply(this,arguments)}:function(){};if(!n)return u.prototype=i,u.prototype.__self=u.prototype.constructor=u,h(u,s);h(u,r),u.__parent=r;var c=r.prototype,f=u.prototype=p(c);return f.__self=f.constructor=u,i&&a(c,f,i),s&&a(r,u,s),u}var u=function(){"_"}.toString().indexOf("_")>-1,l=function(){},c=Object.prototype.hasOwnProperty,p=Object.create||function(e){var t=function(){};return t.prototype=e,new t},f=Object.keys||function(e){var t=[];for(var n in e)c.call(e,n)&&t.push(n);return t},h=function(e,t){for(var n in t)c.call(t,n)&&(e[n]=t[n]);return e},d=Object.prototype.toString,m=Array.isArray||function(e){return"[object Array]"===d.call(e)},y=function(e){return"[object Function]"===d.call(e)},g=function(){},v=!0,D={toString:""};for(var b in D)D.hasOwnProperty(b)&&(v=!1);var w=v?["toString","valueOf"]:null;s.self=function(){var e=arguments,t=m(e[0]),n=t?o(e[0],e[0][0]):e[0],r=e[1],i=e[2],s=n.prototype;return r&&a(s,s,r),i&&a(n,n,i),n};var A=!0;"object"==typeof r&&(n.exports=s,A=!1),"object"==typeof modules&&(modules.define("inherit",function(e){e(s)}),A=!1),"function"==typeof t&&(t(function(e,t,n){n.exports=s}),A=!1),A&&(e.inherit=s)}(this)},{}],53:[function(e,t,n){function r(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=0>n?o(r+n,0):n;else if(n){var s=a(e,t);return r>s&&(t===t?t===e[s]:e[s]!==e[s])?s:-1}return i(e,t,n||0)}var i=e("../internal/baseIndexOf"),a=e("../internal/binaryIndex"),o=Math.max;t.exports=r},{"../internal/baseIndexOf":82,"../internal/binaryIndex":96}],54:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],55:[function(e,t,n){function r(e){if(u(e)&&!s(e)&&!(e instanceof i)){if(e instanceof a)return e;if(p.call(e,"__chain__")&&p.call(e,"__wrapped__"))return l(e)}return new a(e)}var i=e("../internal/LazyWrapper"),a=e("../internal/LodashWrapper"),o=e("../internal/baseLodash"),s=e("../lang/isArray"),u=e("../internal/isObjectLike"),l=e("../internal/wrapperClone"),c=Object.prototype,p=c.hasOwnProperty;r.prototype=o.prototype,t.exports=r},{"../internal/LazyWrapper":64,"../internal/LodashWrapper":65,"../internal/baseLodash":86,"../internal/isObjectLike":130,"../internal/wrapperClone":141,"../lang/isArray":144}],56:[function(e,t,n){t.exports=e("./forEach")},{"./forEach":58}],57:[function(e,t,n){var r=e("../internal/baseEach"),i=e("../internal/createFind"),a=i(r);t.exports=a},{"../internal/baseEach":75,"../internal/createFind":106}],58:[function(e,t,n){var r=e("../internal/arrayEach"),i=e("../internal/baseEach"),a=e("../internal/createForEach"),o=a(r,i);t.exports=o},{"../internal/arrayEach":67,"../internal/baseEach":75,"../internal/createForEach":107}],59:[function(e,t,n){function r(e,t,n,r){var f=e?a(e):0;return u(f)||(e=c(e),f=e.length),n="number"!=typeof n||r&&s(t,n,r)?0:0>n?p(f+n,0):n||0,"string"==typeof e||!o(e)&&l(e)?f>=n&&e.indexOf(t,n)>-1:!!f&&i(e,t,n)>-1}var i=e("../internal/baseIndexOf"),a=e("../internal/getLength"),o=e("../lang/isArray"),s=e("../internal/isIterateeCall"),u=e("../internal/isLength"),l=e("../lang/isString"),c=e("../object/values"),p=Math.max;t.exports=r},{"../internal/baseIndexOf":82,"../internal/getLength":116,"../internal/isIterateeCall":126,"../internal/isLength":129,"../lang/isArray":144,"../lang/isString":150,"../object/values":156}],60:[function(e,t,n){function r(e,t,n){var r=s(e)?i:o;return t=a(t,n,3),r(e,t)}var i=e("../internal/arrayMap"),a=e("../internal/baseCallback"),o=e("../internal/baseMap"),s=e("../lang/isArray");t.exports=r},{"../internal/arrayMap":68,"../internal/baseCallback":71,"../internal/baseMap":87,"../lang/isArray":144}],61:[function(e,t,n){var r=e("../internal/getNative"),i=r(Date,"now"),a=i||function(){return(new Date).getTime()};t.exports=a},{"../internal/getNative":118}],62:[function(e,t,n){var r=e("../internal/createWrapper"),i=e("../internal/replaceHolders"),a=e("./restParam"),o=1,s=32,u=a(function(e,t,n){var a=o;if(n.length){var l=i(n,u.placeholder);a|=s}return r(e,a,t,n,l)});u.placeholder={},t.exports=u},{"../internal/createWrapper":110,"../internal/replaceHolders":136,"./restParam":63}],63:[function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(i);return t=a(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=a(n.length-t,0),o=Array(i);++rr;)e=i(e)[t[r++]];return r&&r==a?e:void 0}}var i=e("./toObject");t.exports=r},{"./toObject":139}],82:[function(e,t,n){function r(e,t,n){if(t!==t)return i(e,n);for(var r=n-1,a=e.length;++rt&&(t=-t>i?0:i+t),n=void 0===n||n>i?i:+n||0,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=o){for(;o>r;){var u=r+o>>>1,l=e[u];(n?t>=l:t>l)&&null!==l?r=u+1:o=u}return o}return i(e,t,a,n)}var i=e("./binaryIndexBy"),a=e("../utility/identity"),o=4294967295,s=o>>>1;t.exports=r},{"../utility/identity":158,"./binaryIndexBy":97}],97:[function(e,t,n){function r(e,t,n,r){t=n(t);for(var o=0,u=e?e.length:0,l=t!==t,c=null===t,p=void 0===t;u>o;){var f=i((o+u)/2),h=n(e[f]),d=void 0!==h,m=h===h;if(l)var y=m||r;else y=c?m&&d&&(r||null!=h):p?m&&(r||d):null==h?!1:r?t>=h:t>h;y?o=f+1:u=f}return a(u,s)}var i=Math.floor,a=Math.min,o=4294967295,s=o-1;t.exports=r},{}],98:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return i;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)};case 5:return function(n,r,i,a,o){return e.call(t,n,r,i,a,o)}}return function(){return e.apply(t,arguments)}}var i=e("../utility/identity");t.exports=r},{"../utility/identity":158}],99:[function(e,t,n){(function(e){function n(e){var t=new r(e.byteLength),n=new i(t);return n.set(new i(e)),t}var r=e.ArrayBuffer,i=e.Uint8Array;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],100:[function(e,t,n){function r(e,t,n){for(var r=n.length,a=-1,o=i(e.length-r,0),s=-1,u=t.length,l=Array(u+o);++s-1?n[l]:void 0}return a(n,r,e)}}var i=e("./baseCallback"),a=e("./baseFind"),o=e("./baseFindIndex"),s=e("../lang/isArray");t.exports=r},{"../lang/isArray":144,"./baseCallback":71,"./baseFind":76,"./baseFindIndex":77}],107:[function(e,t,n){function r(e,t){return function(n,r,o){return"function"==typeof r&&void 0===o&&a(n)?e(n,r):t(n,i(r,o,3))}}var i=e("./bindCallback"),a=e("../lang/isArray");t.exports=r},{"../lang/isArray":144,"./bindCallback":98}],108:[function(e,t,n){(function(n){function r(e,t,w,A,x,C,E,F,S,O){function j(){for(var d=arguments.length,m=d,y=Array(d);m--;)y[m]=arguments[m];if(A&&(y=a(y,A,x)),C&&(y=o(y,C,E)),_||P){var D=j.placeholder,$=c(y,D);if(d-=$.length,O>d){var M=F?i(F):void 0,U=b(O-d,0),R=_?$:void 0,N=_?void 0:$,q=_?y:void 0,H=_?void 0:y;t|=_?g:v,t&=~(_?v:g),T||(t&=~(f|h));var V=[e,t,w,q,R,H,N,M,S,U],z=r.apply(void 0,V);return u(e)&&p(z,V),z.placeholder=D,z}}var Y=I?w:this,J=B?Y[e]:e;return F&&(y=l(y,F)),k&&Sl))return!1;for(;++u-1&&e%1==0&&t>e}var i=/^\d+$/,a=9007199254740991;t.exports=r},{}],126:[function(e,t,n){function r(e,t,n){if(!o(n))return!1;var r=typeof t;if("number"==r?i(n)&&a(t,n.length):"string"==r&&t in n){var s=n[t];return e===e?e===s:s!==s}return!1}var i=e("./isArrayLike"),a=e("./isIndex"),o=e("../lang/isObject");t.exports=r},{"../lang/isObject":148,"./isArrayLike":123,"./isIndex":125}],127:[function(e,t,n){function r(e,t){var n=typeof e;if("string"==n&&s.test(e)||"number"==n)return!0;if(i(e))return!1;var r=!o.test(e);return r||null!=t&&e in a(t)}var i=e("../lang/isArray"),a=e("./toObject"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"../lang/isArray":144,"./toObject":139}],128:[function(e,t,n){function r(e){var t=o(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=a(n);return!!r&&e===r[0]}var i=e("./LazyWrapper"),a=e("./getData"),o=e("./getFuncName"),s=e("../chain/lodash");t.exports=r},{"../chain/lodash":55,"./LazyWrapper":64,"./getData":114,"./getFuncName":115}],129:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&i>=e}var i=9007199254740991;t.exports=r},{}],130:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],131:[function(e,t,n){function r(e){return e===e&&!i(e)}var i=e("../lang/isObject");t.exports=r},{"../lang/isObject":148}],132:[function(e,t,n){function r(e,t){var n=e[1],r=t[1],m=n|r,y=p>m,g=r==p&&n==c||r==p&&n==f&&e[7].length<=t[8]||r==(p|f)&&n==c;if(!y&&!g)return e;r&u&&(e[2]=t[2],m|=n&u?0:l);var v=t[3];if(v){var D=e[3];e[3]=D?a(D,v,t[4]):i(v),e[4]=D?s(e[3],h):i(t[4])}return v=t[5],v&&(D=e[5],e[5]=D?o(D,v,t[6]):i(v),e[6]=D?s(e[5],h):i(t[6])),v=t[7],v&&(e[7]=i(v)),r&p&&(e[8]=null==e[8]?t[8]:d(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=m,e}var i=e("./arrayCopy"),a=e("./composeArgs"),o=e("./composeArgsRight"),s=e("./replaceHolders"),u=1,l=4,c=8,p=128,f=256,h="__lodash_placeholder__",d=Math.min;t.exports=r},{"./arrayCopy":66,"./composeArgs":100,"./composeArgsRight":101,"./replaceHolders":136}],133:[function(e,t,n){(function(n){var r=e("./getNative"),i=r(n,"WeakMap"),a=i&&new i;t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./getNative":118}],134:[function(e,t,n){var r={};t.exports=r},{}],135:[function(e,t,n){function r(e,t){for(var n=e.length,r=o(t.length,n),s=i(e);r--;){var u=t[r];e[r]=a(u,n)?s[u]:void 0}return e}var i=e("./arrayCopy"),a=e("./isIndex"),o=Math.min;t.exports=r},{"./arrayCopy":66,"./isIndex":125}],136:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=-1,o=[];++n0){if(++e>=a)return n}else e=0;return r(n,s)}}();t.exports=s},{"../date/now":61,"./baseSetData":92}],138:[function(e,t,n){function r(e){for(var t=l(e),n=t.length,r=n&&e.length,c=!!r&&s(r)&&(a(e)||i(e)||u(e)),f=-1,h=[];++f0,g=f.enumErrorProps&&(e===x||e instanceof Error),v=f.enumPrototypes&&s(e);++r=Y&&le>=r}function l(){if(q)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=s(n);if(!r)return;return V=r[0],r[1]}}function c(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack),e.apply(e,arguments)}}function p(e){return e instanceof m?e:D(e)?O(e):S(e)}function f(){function e(e){t=e,a.source=e,X(n,function(t,n){p.nextTick(function(){e.promiseDispatch.apply(e,n)})},void 0),n=void 0,r=void 0}var t,n=[],r=[],i=ee(f.prototype),a=ee(m.prototype);if(a.promiseDispatch=function(e,i,a){var o=Q(arguments);n?(n.push(o),"when"===i&&a[1]&&r.push(a[1])):p.nextTick(function(){t.promiseDispatch.apply(t,o)})},a.valueOf=function(){if(n)return a;var e=g(t);return v(e)&&(t=e),e},a.inspect=function(){return t?t.inspect():{state:"pending"}},p.longStackSupport&&q)try{throw new Error}catch(o){a.stack=o.stack.substring(o.stack.indexOf("\n")+1)}return i.promise=a,i.resolve=function(n){t||e(p(n))},i.fulfill=function(n){t||e(S(n))},i.reject=function(n){t||e(F(n))},i.notify=function(e){t||X(r,function(t,n){p.nextTick(function(){n(e)})},void 0)},i}function h(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=f();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function d(e){return h(function(t,n){for(var r=0,i=e.length;i>r;r++)p(e[r]).then(t,n)})}function m(e,t,n){void 0===t&&(t=function(e){return F(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=ee(m.prototype);if(r.promiseDispatch=function(n,i,a){var o;try{o=e[i]?e[i].apply(r,a):t.call(r,i,a)}catch(s){o=F(s)}n&&n(o)},r.inspect=n,n){var i=n();"rejected"===i.state&&(r.exception=i.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function y(e,t,n,r){return p(e).then(t,n,r)}function g(e){if(v(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function v(e){return e instanceof m}function D(e){return n(e)&&"function"==typeof e.then}function b(e){return v(e)&&"pending"===e.inspect().state}function w(e){return!v(e)||"fulfilled"===e.inspect().state}function A(e){return v(e)&&"rejected"===e.inspect().state}function x(){ae.length=0,oe.length=0,ue||(ue=!0)}function C(t,n){ue&&("object"==typeof e&&"function"==typeof e.emit&&p.nextTick.runAfter(function(){-1!==G(oe,t)&&(e.emit("unhandledRejection",n,t),se.push(t))}),oe.push(t),n&&"undefined"!=typeof n.stack?ae.push(n.stack):ae.push("(no stack) "+n))}function E(t){if(ue){var n=G(oe,t);-1!==n&&("object"==typeof e&&"function"==typeof e.emit&&p.nextTick.runAfter(function(){var r=G(se,t);-1!==r&&(e.emit("rejectionHandled",ae[n],t),se.splice(r,1))}),oe.splice(n,1),ae.splice(n,1))}}function F(e){var t=m({when:function(t){return t&&E(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return C(t,e),t}function S(e){return m({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},"delete":function(t){delete e[t]},post:function(t,n){return null===t||void 0===t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return ne(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function O(e){var t=f();return p.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}}),t.promise}function j(e){return m({isDef:function(){}},function(t,n){return P(e,t,n)},function(){return p(e).inspect()})}function k(e,t,n){return p(e).spread(t,n)}function I(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(s){return F(s)}return o.done?p(o.value):y(o.value,i,a)}try{o=n[e](t)}catch(s){return r(s)?p(s.value):F(s)}return y(o,i,a)}var n=e.apply(this,arguments),i=t.bind(t,"next"),a=t.bind(t,"throw");return i()}}function B(e){p.done(p.async(e)())}function _(e){throw new z(e)}function T(e){return function(){return k([this,L(arguments)],function(t,n){return e.apply(t,n)})}}function P(e,t,n){return p(e).dispatch(t,n)}function L(e){return y(e,function(e){var t=0,n=f();return X(e,function(r,i,a){var o;v(i)&&"fulfilled"===(o=i.inspect()).state?e[a]=o.value:(++t,y(i,function(r){e[a]=r,0===--t&&n.resolve(e)},n.reject,function(e){n.notify({index:a,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function $(e){if(0===e.length)return p.resolve();var t=p.defer(),n=0;return X(e,function(r,i,a){function o(e){t.resolve(e)}function s(){n--,0===n&&t.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected."))}function u(e){t.notify({index:a,value:e})}var l=e[a];n++,y(l,o,s,u)},void 0),t.promise}function M(e){return y(e,function(e){return e=Z(e,p),y(L(Z(e,function(e){return y(e,J,J)})),function(){return e})})}function U(e){return p(e).allSettled()}function R(e,t){return p(e).then(void 0,void 0,t)}function N(e,t){return p(e).nodeify(t)}var q=!1;try{throw new Error}catch(H){q=!!H.stack}var V,z,Y=l(),J=function(){},W=function(){function t(){for(var e,t;r.next;)r=r.next,e=r.task,r.task=void 0,t=r.domain,t&&(r.domain=void 0,t.enter()),n(e,t);for(;u.length;)e=u.pop(),n(e);a=!1}function n(e,n){try{e()}catch(r){if(s)throw n&&n.exit(),setTimeout(t,0),n&&n.enter(),r;setTimeout(function(){throw r},0)}n&&n.exit()}var r={task:void 0,next:null},i=r,a=!1,o=void 0,s=!1,u=[];if(W=function(t){i=i.next={task:t,domain:s&&e.domain,next:null},a||(a=!0,o())},"object"==typeof e&&"[object process]"===e.toString()&&e.nextTick)s=!0,o=function(){e.nextTick(t)};else if("function"==typeof setImmediate)o="undefined"!=typeof window?setImmediate.bind(window,t):function(){setImmediate(t)};else if("undefined"!=typeof MessageChannel){var l=new MessageChannel;l.port1.onmessage=function(){o=c,l.port1.onmessage=t,t()};var c=function(){l.port2.postMessage(0)};o=function(){setTimeout(t,0),c()}}else o=function(){setTimeout(t,0)};return W.runAfter=function(e){u.push(e),a||(a=!0,o())},W}(),K=Function.call,Q=t(Array.prototype.slice),X=t(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;r>n;n++)n in this&&(t=e(t,this[n],n));return t}),G=t(Array.prototype.indexOf||function(e){for(var t=0;t2?e.resolve(Q(arguments,1)):e.resolve(n)}},p.Promise=h,p.promise=h,h.race=d,h.all=L,h.reject=F,h.resolve=p,p.passByCopy=function(e){return e},m.prototype.passByCopy=function(){return this},p.join=function(e,t){return p(e).join(t)},m.prototype.join=function(e){return p([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},p.race=d,m.prototype.race=function(){return this.then(p.race)},p.makePromise=m,m.prototype.toString=function(){return"[object Promise]"},m.prototype.then=function(e,t,n){function r(t){try{return"function"==typeof e?e(t):t}catch(n){return F(n)}}function a(e){if("function"==typeof t){i(e,s);try{return t(e)}catch(n){return F(n)}}return F(e)}function o(e){return"function"==typeof n?n(e):e}var s=this,u=f(),l=!1;return p.nextTick(function(){s.promiseDispatch(function(e){l||(l=!0,u.resolve(r(e)))},"when",[function(e){l||(l=!0,u.resolve(a(e)))}])}),s.promiseDispatch(void 0,"when",[void 0,function(e){var t,n=!1;try{t=o(e)}catch(r){if(n=!0,!p.onerror)throw r;p.onerror(r)}n||u.notify(t)}]),u.promise},p.tap=function(e,t){return p(e).tap(t)},m.prototype.tap=function(e){return e=p(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},p.when=y,m.prototype.thenResolve=function(e){return this.then(function(){return e})},p.thenResolve=function(e,t){return p(e).thenResolve(t)},m.prototype.thenReject=function(e){return this.then(function(){throw e})},p.thenReject=function(e,t){return p(e).thenReject(t)},p.nearer=g,p.isPromise=v,p.isPromiseAlike=D,p.isPending=b,m.prototype.isPending=function(){return"pending"===this.inspect().state},p.isFulfilled=w,m.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},p.isRejected=A,m.prototype.isRejected=function(){return"rejected"===this.inspect().state};var ae=[],oe=[],se=[],ue=!0;p.resetUnhandledRejections=x,p.getUnhandledReasons=function(){return ae.slice()},p.stopUnhandledRejectionTracking=function(){x(),ue=!1},x(),p.reject=F,p.fulfill=S,p.master=j,p.spread=k,m.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},p.async=I,p.spawn=B,p["return"]=_,p.promised=T,p.dispatch=P,m.prototype.dispatch=function(e,t){var n=this,r=f();return p.nextTick(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},p.get=function(e,t){return p(e).dispatch("get",[t])},m.prototype.get=function(e){return this.dispatch("get",[e])},p.set=function(e,t,n){return p(e).dispatch("set",[t,n])},m.prototype.set=function(e,t){return this.dispatch("set",[e,t])},p.del=p["delete"]=function(e,t){return p(e).dispatch("delete",[t])},m.prototype.del=m.prototype["delete"]=function(e){return this.dispatch("delete",[e])},p.mapply=p.post=function(e,t,n){return p(e).dispatch("post",[t,n])},m.prototype.mapply=m.prototype.post=function(e,t){return this.dispatch("post",[e,t])},p.send=p.mcall=p.invoke=function(e,t){return p(e).dispatch("post",[t,Q(arguments,2)])},m.prototype.send=m.prototype.mcall=m.prototype.invoke=function(e){return this.dispatch("post",[e,Q(arguments,1)])},p.fapply=function(e,t){return p(e).dispatch("apply",[void 0,t])},m.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},p["try"]=p.fcall=function(e){return p(e).dispatch("apply",[void 0,Q(arguments,1)])},m.prototype.fcall=function(){return this.dispatch("apply",[void 0,Q(arguments)])},p.fbind=function(e){var t=p(e),n=Q(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(Q(arguments))])}},m.prototype.fbind=function(){var e=this,t=Q(arguments);return function(){return e.dispatch("apply",[this,t.concat(Q(arguments))])}},p.keys=function(e){return p(e).dispatch("keys",[])},m.prototype.keys=function(){return this.dispatch("keys",[])},p.all=L,m.prototype.all=function(){return L(this)},p.any=$,m.prototype.any=function(){return $(this)},p.allResolved=c(M,"allResolved","allSettled"),m.prototype.allResolved=function(){return M(this)},p.allSettled=U,m.prototype.allSettled=function(){return this.then(function(e){return L(Z(e,function(e){function t(){return e.inspect()}return e=p(e),e.then(t,t)}))})},p.fail=p["catch"]=function(e,t){return p(e).then(void 0,t)},m.prototype.fail=m.prototype["catch"]=function(e){return this.then(void 0,e)},p.progress=R,m.prototype.progress=function(e){return this.then(void 0,void 0,e)},p.fin=p["finally"]=function(e,t){return p(e)["finally"](t)},m.prototype.fin=m.prototype["finally"]=function(e){return e=p(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},p.done=function(e,t,n,r){return p(e).done(t,n,r)},m.prototype.done=function(t,n,r){var a=function(e){p.nextTick(function(){if(i(e,o),!p.onerror)throw e;p.onerror(e)})},o=t||n||r?this.then(t,n,r):this;"object"==typeof e&&e&&e.domain&&(a=e.domain.bind(a)),o.then(void 0,a)},p.timeout=function(e,t,n){return p(e).timeout(t,n)},m.prototype.timeout=function(e,t){var n=f(),r=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+e+" ms"),t.code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},p.delay=function(e,t){return void 0===t&&(t=e,e=void 0),p(e).delay(t)},m.prototype.delay=function(e){return this.then(function(t){var n=f();return setTimeout(function(){n.resolve(t)},e),n.promise})},p.nfapply=function(e,t){return p(e).nfapply(t)},m.prototype.nfapply=function(e){var t=f(),n=Q(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},p.nfcall=function(e){var t=Q(arguments,1);return p(e).nfapply(t)},m.prototype.nfcall=function(){var e=Q(arguments),t=f();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},p.nfbind=p.denodeify=function(e){var t=Q(arguments,1);return function(){var n=t.concat(Q(arguments)),r=f();return n.push(r.makeNodeResolver()),p(e).fapply(n).fail(r.reject),r.promise}},m.prototype.nfbind=m.prototype.denodeify=function(){var e=Q(arguments);return e.unshift(this),p.denodeify.apply(void 0,e)},p.nbind=function(e,t){var n=Q(arguments,2);return function(){function r(){return e.apply(t,arguments)}var i=n.concat(Q(arguments)),a=f();return i.push(a.makeNodeResolver()),p(r).fapply(i).fail(a.reject),a.promise}},m.prototype.nbind=function(){var e=Q(arguments,0);return e.unshift(this),p.nbind.apply(void 0,e)},p.nmapply=p.npost=function(e,t,n){return p(e).npost(t,n)},m.prototype.nmapply=m.prototype.npost=function(e,t){var n=Q(t||[]),r=f();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},p.nsend=p.nmcall=p.ninvoke=function(e,t){var n=Q(arguments,2),r=f();return n.push(r.makeNodeResolver()),p(e).dispatch("post",[t,n]).fail(r.reject),r.promise},m.prototype.nsend=m.prototype.nmcall=m.prototype.ninvoke=function(e){var t=Q(arguments,1),n=f();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},p.nodeify=N,m.prototype.nodeify=function(e){return e?void this.then(function(t){p.nextTick(function(){e(null,t)})},function(t){p.nextTick(function(){e(t)})}):this},p.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var le=l();return p})}).call(this,e("_process"))},{_process:13}],162:[function(e,t,n){function r(){}function i(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function a(e){return e===Object(e)}function o(e){if(!a(e))return e;var t=[];for(var n in e)null!=e[n]&&s(t,n,e[n]);return t.join("&")}function s(e,t,n){return Array.isArray(n)?n.forEach(function(n){s(e,t,n)}):void e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}function u(e){for(var t,n,r={},i=e.split("&"),a=0,o=i.length;o>a;++a)n=i[a],t=n.split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function l(e){var t,n,r,i,a=e.split(/\r?\n/),o={};a.pop();for(var s=0,u=a.length;u>s;++s)n=a[s],t=n.indexOf(":"),r=n.slice(0,t).toLowerCase(),i=D(n.slice(t+1)),o[r]=i;return o}function c(e){return e.split(/ *; */).shift()}function p(e){return v(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e},{})}function f(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=l(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function h(e,t){var n=this;g.call(this),this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new f(n)}catch(r){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=r,n.callback(e)}if(n.emit("response",t),e)return n.callback(e,t);if(t.status>=200&&t.status<300)return n.callback(e,t);var i=new Error(t.statusText||"Unsuccessful HTTP response");i.original=e,i.response=t,i.status=t.status,n.callback(i,t)})}function d(e,t){return"function"==typeof t?new h("GET",e).end(t):1==arguments.length?new h("GET",e):new h(e,t)}function m(e,t){var n=d("DELETE",e);return t&&n.end(t),n}var y,g=e("emitter"),v=e("reduce");y="undefined"!=typeof window?window:"undefined"!=typeof self?self:this,d.getXHR=function(){if(!(!y.XMLHttpRequest||y.location&&"file:"==y.location.protocol&&y.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP"); -}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var D="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};d.serializeObject=o,d.parseString=u,d.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":o,"application/json":JSON.stringify},d.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=c(t);var n=p(t);for(var r in n)this[r]=n[r]},f.prototype.parseBody=function(e){var t=d.parse[this.type];return t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=4==t||5==t?this.toError():!1,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot "+t+" "+n+" ("+this.status+")",i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},d.Response=f,g(h.prototype),h.prototype.use=function(e){return e(this),this},h.prototype.timeout=function(e){return this._timeout=e,this},h.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},h.prototype.abort=function(){return this.aborted?void 0:(this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this)},h.prototype.set=function(e,t){if(a(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},h.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},h.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},h.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},h.prototype.parse=function(e){return this._parser=e,this},h.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},h.prototype.auth=function(e,t){var n=btoa(e+":"+t);return this.set("Authorization","Basic "+n),this},h.prototype.query=function(e){return"string"!=typeof e&&(e=o(e)),e&&this._query.push(e),this},h.prototype.field=function(e,t){return this._formData||(this._formData=new y.FormData),this._formData.append(e,t),this},h.prototype.attach=function(e,t,n){return this._formData||(this._formData=new y.FormData),this._formData.append(e,t,n),this},h.prototype.send=function(e){var t=a(e),n=this.getHeader("Content-Type");if(t&&a(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||i(e)?this:(n||this.type("json"),this)},h.prototype.callback=function(e,t){var n=this._callback;this.clearTimeout(),n(e,t)},h.prototype.crossDomainError=function(){var e=new Error("Origin is not allowed by Access-Control-Allow-Origin");e.crossDomain=!0,this.callback(e)},h.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},h.prototype.withCredentials=function(){return this._withCredentials=!0,this},h.prototype.end=function(e){var t=this,n=this.xhr=d.getXHR(),a=this._query.join("&"),o=this._timeout,s=this._formData||this._data;this._callback=e||r,n.onreadystatechange=function(){if(4==n.readyState){var e;try{e=n.status}catch(r){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var u=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.emit("progress",e)};this.hasListeners("progress")&&(n.onprogress=u);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=u)}catch(l){}if(o&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},o)),a&&(a=d.serializeObject(a),this.url+=~this.url.indexOf("?")?"&"+a:"?"+a),n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof s&&!i(s)){var c=this.getHeader("Content-Type"),p=this._parser||d.serialize[c?c.split(";")[0]:""];p&&(s=p(s))}for(var f in this.header)null!=this.header[f]&&n.setRequestHeader(f,this.header[f]);return this.emit("request",this),n.send("undefined"!=typeof s?s:null),this},h.prototype.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},d.Request=h,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=m,d["delete"]=m,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},t.exports=d},{emitter:163,reduce:164}],163:[function(e,t,n){function r(e){return e?i(e):void 0}function i(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){r.off(e,n),t.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var r,i=0;ir;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],164:[function(e,t,n){t.exports=function(e,t,n){for(var r=0,i=e.length,a=3==arguments.length?n:e[r++];i>r;)a=t.call(null,a,e[r],++r,e);return a}},{}]},{},[1])(1)}),window.SwaggerUi=Backbone.Router.extend({dom_id:"swagger_ui",options:null,api:null,headerView:null,mainView:null,initialize:function(e){e=e||{},"model"!==e.defaultModelRendering&&(e.defaultModelRendering="schema"),e.highlightSizeThreshold||(e.highlightSizeThreshold=1e5),e.dom_id&&(this.dom_id=e.dom_id,delete e.dom_id),e.supportedSubmitMethods||(e.supportedSubmitMethods=["get","put","post","delete","head","options","patch"]),"string"==typeof e.oauth2RedirectUrl&&(window.oAuthRedirectUrl=e.redirectUrl),$("#"+this.dom_id).length||$("body").append('
'),this.options=e,marked.setOptions({gfm:!0});var t=this;this.options.success=function(){return t.render()},this.options.progress=function(e){return t.showMessage(e)},this.options.failure=function(e){return t.onLoadFailure(e)},this.headerView=new SwaggerUi.Views.HeaderView({el:$("#header")}),this.headerView.on("update-swagger-ui",function(e){return t.updateSwaggerUi(e)}),JSONEditor.defaults.iconlibs.swagger=JSONEditor.AbstractIconLib.extend({mapping:{collapse:"collapse",expand:"expand"},icon_prefix:"swagger-"})},setOption:function(e,t){this.options[e]=t},getOption:function(e){return this.options[e]},updateSwaggerUi:function(e){this.options.url=e.url,this.load()},load:function(){this.mainView&&this.mainView.clear();var e=this.options.url;e&&0!==e.indexOf("http")&&(e=this.buildUrl(window.location.href.toString(),e)),this.api&&(this.options.authorizations=this.api.clientAuthorizations.authz),this.options.url=e,this.headerView.update(e),this.api=new SwaggerClient(this.options)},collapseAll:function(){Docs.collapseEndpointListForResource("")},listAll:function(){Docs.collapseOperationsForResource("")},expandAll:function(){Docs.expandOperationsForResource("")},render:function(){switch(this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."),this.mainView=new SwaggerUi.Views.MainView({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options,router:this}).render(),this.showMessage(),this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}this.renderGFM(),this.options.onComplete&&this.options.onComplete(this.api,this),setTimeout(Docs.shebang.bind(this),100)},buildUrl:function(e,t){if(0===t.indexOf("/")){var n=e.split("/");return e=n[0]+"//"+n[2],e+t}var r=e.length;return e.indexOf("?")>-1&&(r=Math.min(r,e.indexOf("?"))),e.indexOf("#")>-1&&(r=Math.min(r,e.indexOf("#"))),e=e.substring(0,r),-1!==e.indexOf("/",e.length-1)?e+t:e+"/"+t},showMessage:function(e){void 0===e&&(e="");var t=$("#message-bar");t.removeClass("message-fail"),t.addClass("message-success"),t.text(e),window.SwaggerTranslator&&window.SwaggerTranslator.translate(t)},onLoadFailure:function(e){void 0===e&&(e=""),$("#message-bar").removeClass("message-success"),$("#message-bar").addClass("message-fail");var t=$("#message-bar").text(e);return this.options.onFailure&&this.options.onFailure(e),t},renderGFM:function(){$(".markdown").each(function(){$(this).html(marked($(this).html()))}),$(".propDesc",".model-signature .description").each(function(){$(this).html(marked($(this).html())).addClass("markdown")})}}),window.SwaggerUi.Views={},window.SwaggerUi.partials={},function(){function e(e){"console"in window&&"function"==typeof window.console.warn&&console.warn(e)}window.authorizations={add:function(){if(e("Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add()."),"undefined"==typeof window.swaggerUi)throw new TypeError("window.swaggerUi is not defined");window.swaggerUi instanceof SwaggerUi&&window.swaggerUi.api.clientAuthorizations.add.apply(window.swaggerUi.api.clientAuthorizations,arguments)}},window.ApiKeyAuthorization=function(){e("window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization."),SwaggerClient.ApiKeyAuthorization.apply(window,arguments)},window.PasswordAuthorization=function(){e("window.PasswordAuthorization is deprecated. Please use SwaggerClient.PasswordAuthorization."),SwaggerClient.PasswordAuthorization.apply(window,arguments)}}(),function(e,t){"function"==typeof define&&define.amd?define(["b"],function(n){return e.SwaggerUi=t(n)}):"object"==typeof exports?module.exports=t(require("b")):e.SwaggerUi=t(e.b)}(this,function(){return SwaggerUi}),SwaggerUi.Views.ApiKeyButton=Backbone.View.extend({events:{"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"},initialize:function(e){this.options=e||{},this.router=this.options.router},render:function(){var e=this.template();return $(this.el).html(e(this.model)),this},applyApiKey:function(){var e=new SwaggerClient.ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"]);this.router.api.clientAuthorizations.add(this.model.name,e),this.router.load(),$("#apikey_container").show()},toggleApiKeyContainer:function(){if($("#apikey_container").length){var e=$("#apikey_container").first();e.is(":visible")?e.hide():($(".auth_container").hide(),e.show())}},template:function(){return Handlebars.templates.apikey_button_view}}),SwaggerUi.Views.BasicAuthButton=Backbone.View.extend({initialize:function(e){this.options=e||{},this.router=this.options.router},render:function(){var e=this.template();return $(this.el).html(e(this.model)),this},events:{"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"},applyPassword:function(e){e.preventDefault();var t=$("#input_username").val(),n=$("#input_password").val(),r=new SwaggerClient.PasswordAuthorization("basic",t,n);this.router.api.clientAuthorizations.add(this.model.type,r),this.router.load(),$("#basic_auth_container").hide()},togglePasswordContainer:function(){if($("#basic_auth_container").length){var e=$("#basic_auth_container").show();e.is(":visible")?e.slideUp():($(".auth_container").hide(),e.show())}},template:function(){return Handlebars.templates.basic_auth_button_view}}),SwaggerUi.Views.ContentTypeView=Backbone.View.extend({initialize:function(){},render:function(){return this.model.contentTypeId="ct"+Math.random(),$(this.el).html(Handlebars.templates.content_type(this.model)),this}}),SwaggerUi.Views.HeaderView=Backbone.View.extend({events:{"click #show-pet-store-icon":"showPetStore","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"},initialize:function(){},showPetStore:function(){this.trigger("update-swagger-ui",{url:"http://petstore.swagger.io/v2/swagger.json"})},showCustomOnKeyup:function(e){13===e.keyCode&&this.showCustom()},showCustom:function(e){e&&e.preventDefault(),this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})},update:function(e,t,n){void 0===n&&(n=!1),$("#input_baseUrl").val(e),n&&this.trigger("update-swagger-ui",{url:e})}}),SwaggerUi.Views.MainView=Backbone.View.extend({apisSorter:{alpha:function(e,t){return e.name.localeCompare(t.name)}},operationsSorters:{alpha:function(e,t){return e.path.localeCompare(t.path)},method:function(e,t){return e.method.localeCompare(t.method)}},initialize:function(e){var t,n,r,i;if(e=e||{},this.router=e.router,e.swaggerOptions.apisSorter&&(t=e.swaggerOptions.apisSorter,n=_.isFunction(t)?t:this.apisSorter[t],_.isFunction(n)&&this.model.apisArray.sort(n)),e.swaggerOptions.operationsSorter&&(t=e.swaggerOptions.operationsSorter,n=_.isFunction(t)?t:this.operationsSorters[t],_.isFunction(n)))for(r in this.model.apisArray)this.model.apisArray[r].operationsArray.sort(n);this.model.auths=[];for(r in this.model.securityDefinitions)i=this.model.securityDefinitions[r],this.model.auths.push({name:r,type:i.type,value:i});"validatorUrl"in e.swaggerOptions?this.model.validatorUrl=e.swaggerOptions.validatorUrl:this.model.url.indexOf("localhost")>0||this.model.url.indexOf("127.0.0.1")>0?this.model.validatorUrl=null:"https:"===window.location.protocol?this.model.validatorUrl="https://online.swagger.io/validator":this.model.validatorUrl="http://online.swagger.io/validator";var a;for(a in this.model.definitions)this.model.definitions[a].type||(this.model.definitions[a].type="object")},render:function(){if(this.model.securityDefinitions)for(var e in this.model.securityDefinitions){var t,n=this.model.securityDefinitions[e];"apiKey"===n.type&&0===$("#apikey_button").length&&(t=new SwaggerUi.Views.ApiKeyButton({model:n,router:this.router}).render().el,$(".auth_main_container").append(t)),"basicAuth"===n.type&&0===$("#basic_auth_button").length&&(t=new SwaggerUi.Views.BasicAuthButton({model:n,router:this.router}).render().el,$(".auth_main_container").append(t))}$(this.el).html(Handlebars.templates.main(this.model));for(var r={},i=0,a=0;ao&&(n=o-u),i>n&&(n=i),r+l>s&&(r=s-l),a>r&&(r=a);var c={};c.top=r,c.left=n,t.css(c)},render:function(){var e,t,n,r,i,a,o,s,u,l,c,p,f,h,d,m,y,g,v,D,b,w,A,x,C,E,F,S,O,j,k,I,B,_,T,P,L,M,U,R,N;if(a=jQuery.inArray(this.model.method,this.model.supportedSubmitMethods())>=0,a||(this.model.isReadOnly=!0),this.model.description=this.model.description||this.model.notes,this.model.oauth=null,m=this.model.authorizations||this.model.security)if(Array.isArray(m))for(u=0,l=m.length;l>u;u++){n=m[u];for(s in n)for(e in this.auths)if(t=this.auths[e],s===t.name&&"oauth2"===t.type){this.model.oauth={},this.model.oauth.scopes=[],A=t.value.scopes;for(o in A)L=A[o],I=n[s].indexOf(o),I>=0&&(g={scope:o,description:L},this.model.oauth.scopes.push(g))}}else for(o in m)if(L=m[o],"oauth2"===o)for(null===this.model.oauth&&(this.model.oauth={}),void 0===this.model.oauth.scopes&&(this.model.oauth.scopes=[]),d=0,c=L.length;c>d;d++)g=L[d],this.model.oauth.scopes.push(g);if("undefined"!=typeof this.model.responses){this.model.responseMessages=[],x=this.model.responses;for(r in x)M=x[r],j=null,k=this.model.responses[r].schema,k&&k.$ref&&(j=k.$ref,-1!==j.indexOf("#/definitions/")&&(j=j.replace(/^.*#\/definitions\//,""))),this.model.responseMessages.push({code:r,message:M.description,responseModel:j,headers:M.headers})}if("undefined"==typeof this.model.responseMessages&&(this.model.responseMessages=[]),B=null,U=this.model.produces,R=this.contains(U,"xml"),N=R?this.contains(U,"json"):!0,this.model.successResponse){T=this.model.successResponse;for(s in T)M=T[s],this.model.successCode=s,"object"==typeof M&&"function"==typeof M.createJSONSample&&(this.model.successDescription=M.description,this.model.headers=this.parseResponseHeaders(M.headers),B={sampleJSON:N?JSON.stringify(SwaggerUi.partials.signature.createJSONSample(M),void 0,2):!1,isParam:!1,sampleXML:R?SwaggerUi.partials.signature.createXMLSample(M.definition,M.models):!1,signature:SwaggerUi.partials.signature.getModelSignature(M.name,M.definition,M.models,M.modelPropertyMacro)})}else this.model.responseClassSignature&&"string"!==this.model.responseClassSignature&&(B={sampleJSON:this.model.responseSampleJSON,isParam:!1,signature:this.model.responseClassSignature});for($(this.el).html(Handlebars.templates.operation(this.model)),B?(B.defaultRendering=this.model.defaultRendering,O=new SwaggerUi.Views.SignatureView({model:B,router:this.router,tagName:"div"}),$(".model-signature",$(this.el)).append(O.render().el)):(this.model.responseClassSignature="string",$(".model-signature",$(this.el)).html(this.model.type)),i={isParam:!1},i.consumes=this.model.consumes,i.produces=this.model.produces,C=this.model.parameters,y=0,p=C.length;p>y;y++)D=C[y],P=D.type||D.dataType||"","undefined"==typeof P&&(j=D.schema,j&&j.$ref&&(w=j.$ref,P=0===w.indexOf("#/definitions/")?w.substring("#/definitions/".length):w)),P&&"file"===P.toLowerCase()&&(i.consumes||(i.consumes="multipart/form-data")),D.type=P;for(S=new SwaggerUi.Views.ResponseContentTypeView({model:i,router:this.router}),$(".response-content-type",$(this.el)).append(S.render().el),this.showSnippet(),E=this.model.parameters,v=0,f=E.length;f>v;v++)D=E[v],this.addParameter(D,i.consumes);for(F=this.model.responseMessages,b=0,h=F.length;h>b;b++)_=F[b],this.addStatusCode(_);return this},contains:function(e,t){return e.filter(function(e){return e.indexOf(t)>-1?!0:void 0}).length},parseResponseHeaders:function(e){var t="; ",n=_.clone(e);return _.forEach(n,function(e){var n=[];_.forEach(e,function(e,t){var r=["type","description"];-1===r.indexOf(t.toLowerCase())&&n.push(t+": "+e)}),n.join(t),e.other=n}),n},addParameter:function(e,t){e.consumes=t,e.defaultRendering=this.model.defaultRendering,e.schema&&($.extend(!0,e.schema,this.model.definitions[e.type]),e.schema.definitions=this.model.definitions,e.schema.type||(e.schema.type="object"),e.schema.title||(e.schema.title=" "));var n=new SwaggerUi.Views.ParameterView({model:e,tagName:"tr",readOnly:this.model.isReadOnly,swaggerOptions:this.options.swaggerOptions});$(".operation-params",$(this.el)).append(n.render().el)},addStatusCode:function(e){e.defaultRendering=this.model.defaultRendering;var t=new SwaggerUi.Views.StatusCodeView({model:e,tagName:"tr",router:this.router});$(".operation-status",$(this.el)).append(t.render().el)},submitOperation:function(e){var t,n,r,i,a;if(null!==e&&e.preventDefault(),n=$(".sandbox",$(this.el)),t=!0,n.find("input.required").each(function(){$(this).removeClass("error"),""===jQuery.trim($(this).val())&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){$(e).focus()}}(this)}),t=!1)}),n.find("textarea.required:visible").each(function(){$(this).removeClass("error"),""===jQuery.trim($(this).val())&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),t=!1)}),n.find("select.required").each(function(){$(this).removeClass("error"),-1===this.selectedIndex&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){$(e).focus()}}(this)}),t=!1)}),t){if(i=this.getInputMap(n),r=this.isFileUpload(n),a={parent:this},this.options.swaggerOptions)for(var o in this.options.swaggerOptions)a[o]=this.options.swaggerOptions[o];var s;for(s=0;s"),$(".request_url pre",$(this.el)).text(this.invocationUrl),a.useJQuery=!0,i.parameterContentType="multipart/form-data",this.map=i,this.model.execute(i,a,this.showCompleteStatus,this.showErrorStatus,this)):(this.map=i,this.model.execute(i,a,this.showCompleteStatus,this.showErrorStatus,this))}},getInputMap:function(e){var t,n,r,i,a,o,s,u,l,c,p,f;for(t={},n=e.find("input"),r=0,i=n.length;i>r;r++)a=n[r],null!==a.value&&jQuery.trim(a.value).length>0&&(t[a.name]=a.value),"file"===a.type&&(t[a.name]=a.files[0]);for(o=e.find("textarea"),s=0,u=o.length;u>s;s++)a=o[s],l=this.getTextAreaValue(a),null!==l&&jQuery.trim(l).length>0&&(t[a.name]=l);for(c=e.find("select"),p=0,f=c.length;f>p;p++)a=c[p],l=this.getSelectedValue(a),null!==l&&jQuery.trim(l).length>0&&(t[a.name]=l);return t},isFileUpload:function(e){var t,n,r,i,a=!1;for(t=e.find("input"),n=0,r=t.length;r>n;n++)i=t[n],"file"===i.type&&(a=!0);return a},success:function(e,t){t.showCompleteStatus(e)},wrap:function(e){var t,n,r,i,a,o,s;for(r={},n=e.getAllResponseHeaders().split("\r"),a=0,o=n.length;o>a;a++)i=n[a],t=i.match(/^([^:]*?):(.*)$/),t||(t=[]),t.shift(),void 0!==t[0]&&void 0!==t[1]&&(r[t[0].trim()]=t[1].trim());return s={},s.content={},s.content.data=e.responseText,s.headers=r,s.request={},s.request.url=this.invocationUrl,s.status=e.status,s},getSelectedValue:function(e){if(e.multiple){for(var t=[],n=0,r=e.options.length;r>n;n++){var i=e.options[n];i.selected&&t.push(i.value)}return t.length>0?t:null}return e.value},hideResponse:function(e){e&&e.preventDefault(),$(".response",$(this.el)).slideUp(),$(".response_hider",$(this.el)).fadeOut()},showResponse:function(e){var t=JSON.stringify(e,null," ").replace(/\n/g,"
");$(".response_body",$(this.el)).html(_.escape(t))},showErrorStatus:function(e,t){t.showStatus(e)},showCompleteStatus:function(e,t){t.showStatus(e)},formatXml:function(e){var t,n,r,i,a,o,s,u,l,c,p,f,h;for(p=/(>)(<)(\/*)/g,h=/[ ]*(.*)[ ]+\n/g,t=/(<.+>)(.+\n)/g,e=e.replace(p,"$1\n$2$3").replace(h,"$1\n").replace(t,"$1\n$2"),c=0,r="",u=e.split("\n"),i=0,o="other",f={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},n=function(e){var t,n,a,s,u,l,c;l={single:Boolean(e.match(/<.+\/>/)),closing:Boolean(e.match(/<\/.+>/)),opening:Boolean(e.match(/<[^!?].*>/))},u=function(){var e;e=[];for(a in l)c=l[a],c&&e.push(a);return e}()[0],u=void 0===u?"other":u,t=o+"->"+u,o=u,s="",i+=f[t],s=function(){var e,t,r;for(r=[],n=e=0,t=i;t>=0?t>e:e>t;n=t>=0?++e:--e)r.push(" ");return r}().join(""),"opening->closing"===t?r=r.substr(0,r.length-1)+e+"\n":r+=s+e+"\n"},a=0,s=u.length;s>a;a++)l=u[a],n(l);return r},showStatus:function(e){var t,n;void 0===e.content?(n=e.data,t=e.url):(n=e.content.data,t=e.request.url);var r=e.headers;n=jQuery.trim(n);var i=null;r&&(i=r["Content-Type"]||r["content-type"],i&&(i=i.split(";")[0].trim())),$(".response_body",$(this.el)).removeClass("json"),$(".response_body",$(this.el)).removeClass("xml");var a,o,s=function(e){var t=document.createElement("audio");return!(!t.canPlayType||!t.canPlayType(e).replace(/no/,""))};if(n)if("application/json"===i||/\+json$/.test(i)){var u=null;try{u=JSON.stringify(JSON.parse(n),null," ")}catch(l){u="can't parse JSON. Raw result:\n\n"+n}o=$("").text(u),a=$('
').append(o)}else if("application/xml"===i||/\+xml$/.test(i))o=$("").text(this.formatXml(n)),a=$('
').append(o);else if("text/html"===i)o=$("").html(_.escape(n)),a=$('
').append(o);else if(/text\/plain/.test(i))o=$("").text(n),a=$('
').append(o);else if(/^image\//.test(i))a=$("").attr("src",t);else if(/^audio\//.test(i)&&s(i))a=$("
"),$(".request_url pre",$(this.el)).text(this.invocationUrl),a.useJQuery=!0,i.parameterContentType="multipart/form-data",this.map=i,this.model.execute(i,a,this.showCompleteStatus,this.showErrorStatus,this)):(this.map=i,this.model.execute(i,a,this.showCompleteStatus,this.showErrorStatus,this))}},getInputMap:function(e){var t,n,r,i,a,o,s,u,l,c,p,f;for(t={},n=e.find("input"),r=0,i=n.length;i>r;r++)a=n[r],null!==a.value&&jQuery.trim(a.value).length>0&&(t[a.name]=a.value),"file"===a.type&&(t[a.name]=a.files[0]);for(o=e.find("textarea"),s=0,u=o.length;u>s;s++)a=o[s],l=this.getTextAreaValue(a),null!==l&&jQuery.trim(l).length>0&&(t[a.name]=l);for(c=e.find("select"),p=0,f=c.length;f>p;p++)a=c[p],l=this.getSelectedValue(a),null!==l&&jQuery.trim(l).length>0&&(t[a.name]=l);return t},isFileUpload:function(e){var t,n,r,i,a=!1;for(t=e.find("input"),n=0,r=t.length;r>n;n++)i=t[n],"file"===i.type&&(a=!0);return a},success:function(e,t){t.showCompleteStatus(e)},wrap:function(e){var t,n,r,i,a,o,s;for(r={},n=e.getAllResponseHeaders().split("\r"),a=0,o=n.length;o>a;a++)i=n[a],t=i.match(/^([^:]*?):(.*)$/),t||(t=[]),t.shift(),void 0!==t[0]&&void 0!==t[1]&&(r[t[0].trim()]=t[1].trim());return s={},s.content={},s.content.data=e.responseText,s.headers=r,s.request={},s.request.url=this.invocationUrl,s.status=e.status,s},getSelectedValue:function(e){if(e.multiple){for(var t=[],n=0,r=e.options.length;r>n;n++){var i=e.options[n];i.selected&&t.push(i.value)}return t.length>0?t:null}return e.value},hideResponse:function(e){e&&e.preventDefault(),$(".response",$(this.el)).slideUp(),$(".response_hider",$(this.el)).fadeOut()},showResponse:function(e){var t=JSON.stringify(e,null," ").replace(/\n/g,"
");$(".response_body",$(this.el)).html(_.escape(t))},showErrorStatus:function(e,t){t.showStatus(e)},showCompleteStatus:function(e,t){t.showStatus(e)},formatXml:function(e){var t,n,r,i,a,o,s,u,l,c,p,f,h;for(p=/(>)(<)(\/*)/g,h=/[ ]*(.*)[ ]+\n/g,t=/(<.+>)(.+\n)/g,e=e.replace(p,"$1\n$2$3").replace(h,"$1\n").replace(t,"$1\n$2"),c=0,r="",u=e.split("\n"),i=0,o="other",f={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},n=function(e){var t,n,a,s,u,l,c;l={single:Boolean(e.match(/<.+\/>/)),closing:Boolean(e.match(/<\/.+>/)),opening:Boolean(e.match(/<[^!?].*>/))},u=function(){var e;e=[];for(a in l)c=l[a],c&&e.push(a);return e}()[0],u=void 0===u?"other":u,t=o+"->"+u,o=u,s="",i+=f[t],s=function(){var e,t,r;for(r=[],n=e=0,t=i;t>=0?t>e:e>t;n=t>=0?++e:--e)r.push(" ");return r}().join(""),"opening->closing"===t?r=r.substr(0,r.length-1)+e+"\n":r+=s+e+"\n"},a=0,s=u.length;s>a;a++)l=u[a],n(l);return r},showStatus:function(e){var t,n;void 0===e.content?(n=e.data,t=e.url):(n=e.content.data,t=e.request.url);var r=e.headers;n=jQuery.trim(n);var i=null;r&&(i=r["Content-Type"]||r["content-type"],i&&(i=i.split(";")[0].trim())),$(".response_body",$(this.el)).removeClass("json"),$(".response_body",$(this.el)).removeClass("xml");var a,o,s=function(e){var t=document.createElement("audio");return!(!t.canPlayType||!t.canPlayType(e).replace(/no/,""))};if(n)if("application/json"===i||/\+json$/.test(i)){var u=null;try{u=JSON.stringify(JSON.parse(n),null," ")}catch(l){u="can't parse JSON. Raw result:\n\n"+n}o=$("").text(u),a=$('
').append(o)}else if("application/xml"===i||/\+xml$/.test(i))o=$("").text(this.formatXml(n)),a=$('
').append(o);else if("text/html"===i)o=$("").html(_.escape(n)),a=$('
').append(o);else if(/text\/plain/.test(i))o=$("").text(n),a=$('
').append(o);else if(/^image\//.test(i))a=$("").attr("src",t);else if(/^audio\//.test(i)&&s(i))a=$("