From a718dbaeb3c898958a7147682ca78bee02b3d9dc Mon Sep 17 00:00:00 2001 From: craftisan Date: Wed, 23 Sep 2020 02:38:10 +0530 Subject: [PATCH] [Update] Fixes after fork - Renamed namespaces - Updated package versions compatible only for laravel 7.0 & above - changed config('api-tester.enabled') value to env('API_TESTER') - Fixed https://github.com/asvae/laravel-api-tester/issues/50#issue-706564026 - Fixed https://github.com/asvae/laravel-api-tester/issues/49#issue-706479260 --- .gitignore | 16 +++---- README.md | 8 ++-- composer.json | 26 +++++++---- config/api-tester.php | 29 ++++++------ resources/assets/build/api-tester.js | 2 +- resources/assets/js/api-tester.vue | 26 +++++------ src/Collections/RequestCollection.php | 16 ++++--- src/Collections/RouteCollection.php | 15 +++--- src/Contracts/RequestRepositoryInterface.php | 11 +++-- src/Contracts/RouteRepositoryInterface.php | 3 +- src/Contracts/StorageInterface.php | 7 +-- src/Entities/BaseEntity.php | 9 ++-- src/Entities/RequestEntity.php | 6 +-- src/Entities/RouteInfo.php | 49 +++++++++++--------- src/Exceptions/ApiTesterException.php | 6 ++- src/Exceptions/FireBaseException.php | 2 +- src/Http/Controllers/AssetsController.php | 22 +++++---- src/Http/Controllers/HomeController.php | 3 +- src/Http/Controllers/RequestController.php | 26 ++++++----- src/Http/Controllers/RouteController.php | 8 ++-- src/Http/Middleware/DetectRoute.php | 10 ++-- src/Http/Middleware/PreventRedirect.php | 13 ++++-- src/Http/Requests/StoreRequest.php | 9 ++-- src/Http/Requests/UpdateRequest.php | 10 ++-- src/Http/routes.php | 26 +++-------- src/Providers/RepositoryServiceProvider.php | 13 ++---- src/Providers/RouteServiceProvider.php | 30 ++++++------ src/Providers/StorageServiceProvide.php | 16 +++---- src/Providers/ViewServiceProvider.php | 5 +- src/Repositories/RequestRepository.php | 23 +++++---- src/Repositories/RouteDingoRepository.php | 22 ++++----- src/Repositories/RouteLaravelRepository.php | 13 +++--- src/Repositories/RouteRepository.php | 13 +++--- src/ServiceProvider.php | 11 +++-- src/Storages/FireBaseStorage.php | 17 +++---- src/Storages/JsonStorage.php | 13 ++++-- src/View/Composers/ApiTesterComposer.php | 6 +-- tests/JsonStorageTest.php | 27 ++++++----- tests/RequestCollectionTest.php | 28 +++++------ tests/RouteCollectionTest.php | 22 ++++----- tests/TestCase.php | 9 +++- 41 files changed, 332 insertions(+), 294 deletions(-) diff --git a/.gitignore b/.gitignore index 1619fb4..32b74b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ -/.idea/ -/node_modules/ -/vendor/ -/composer.lock +.idea/ +node_modules/ +vendor/ +composer.lock *.map -/resources/assets/tmp/ - -/phpunit.bat -/tests/tmp/ +resources/assets/tmp/ +.phpunit.result.cache +phpunit.bat +tests/tmp/ diff --git a/README.md b/README.md index b03edff..97fe439 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![Unit tests](https://travis-ci.org/asvae/laravel-api-tester.svg?branch=master)](https://travis-ci.org/asvae/laravel-api-tester) [![PHP version](https://badge.fury.io/ph/asvae%2Flaravel-api-tester.svg)](https://badge.fury.io/ph/asvae%2Flaravel-api-tester) +#####Forked from https://github.com/asvae/laravel-api-tester + ![Interface](http://i.imgur.com/3geJtzb.png) ## Live demo @@ -19,13 +21,13 @@ Those are short and easy to read. Take a look. Require this package with composer: ``` -composer require asvae/laravel-api-tester +composer require craftisan/laravel-api-tester ``` After updating composer, add the ServiceProvider to the providers array in config/app.php ``` -Asvae\ApiTester\ServiceProvider::class, +Craftisan\ApiTester\ServiceProvider::class, ``` That's it. Go to `[your site]/api-tester` and start testing routes. It works for Laravel 5.1+. @@ -35,7 +37,7 @@ That's it. Go to `[your site]/api-tester` and start testing routes. It works fo By default, the package is bound to `APP_DEBUG` `.env` value. But you can easily override it. Just publish config: ``` -php artisan vendor:publish --provider="Asvae\ApiTester\ServiceProvider" +php artisan vendor:publish --provider="Craftisan\ApiTester\ServiceProvider" ``` And edit `config/api-tester.php` as you please. diff --git a/composer.json b/composer.json index 40f4f35..e73f0d6 100644 --- a/composer.json +++ b/composer.json @@ -1,21 +1,27 @@ { - "name": "asvae/laravel-api-tester", + "name": "craftisan/laravel-api-tester", "description": "Api tester for Laravel Framework", - "keywords": ["laravel", "api", "debug"], + "keywords": [ + "laravel", + "api", + "debug", + "laravel api tester" + ], "license": "MIT", "authors": [ { - "name": "Yauheni Prakopchyk", - "email": "ontrew@gmail.com" + "name": "Deekshant Joshi", + "email": "deekshant.joshi@gmail.com" } ], "require": { - "php": ">=5.4.0" + "php": "^7.2.5", + "ext-json": "*" }, "require-dev": { - "laravel/framework": "5.2.*", - "phpunit/phpunit": "~4.0", - "mockery/mockery": "^0.9.5" + "laravel/framework": "^7.0", + "phpunit/phpunit": "^8.5", + "mockery/mockery": "^1.3.1" }, "suggest": { "ktamas77/firebase-php": "Keep your requests stored in cloud", @@ -28,13 +34,13 @@ }, "autoload": { "psr-4": { - "Asvae\\ApiTester\\": "src/" + "Craftisan\\ApiTester\\": "src/" } }, "extra": { "laravel": { "providers": [ - "Asvae\\ApiTester\\ServiceProvider" + "Craftisan\\ApiTester\\ServiceProvider" ] } } diff --git a/config/api-tester.php b/config/api-tester.php index ac9dbb4..2eee426 100644 --- a/config/api-tester.php +++ b/config/api-tester.php @@ -12,8 +12,7 @@ | */ - 'enabled' => env('APP_DEBUG', false), - + 'enabled' => env('API_TESTER', false), /* |-------------------------------------------------------------------------- @@ -27,7 +26,6 @@ 'route' => 'api-tester', - /* |-------------------------------------------------------------------------- | Middleware @@ -59,7 +57,6 @@ 'route_meta' => true, - /* |-------------------------------------------------------------------------- | Request analysis @@ -123,8 +120,8 @@ */ 'route_repositories' => [ - Asvae\ApiTester\Repositories\RouteLaravelRepository::class, - //Asvae\ApiTester\Repositories\RouteDingoRepository::class, + Craftisan\ApiTester\Repositories\RouteLaravelRepository::class, + //Craftisan\ApiTester\Repositories\RouteDingoRepository::class, ], /* @@ -135,13 +132,13 @@ | */ - 'request_repository' => Asvae\ApiTester\Repositories\RequestRepository::class, + 'request_repository' => Craftisan\ApiTester\Repositories\RequestRepository::class, /* |-------------------------------------------------------------------------- - | Asvae\ApiTester\Repositories\RequestRepository configuration + | Craftisan\ApiTester\Repositories\RequestRepository configuration |-------------------------------------------------------------------------- - | This config matters only when using Asvae\ApiTester\Repositories\RequestRepository + | This config matters only when using Craftisan\ApiTester\Repositories\RequestRepository | or similar implementations. | */ @@ -150,13 +147,13 @@ 'storage_drivers' => [ 'file' => [ - 'class' => Asvae\ApiTester\Storages\JsonStorage::class, + 'class' => Craftisan\ApiTester\Storages\JsonStorage::class, 'options' => [ - 'path' => 'storage/api-tester/requests.db' - ] + 'path' => 'storage/api-tester/requests.db', + ], ], 'firebase' => [ - 'class' => Asvae\ApiTester\Storages\FireBaseStorage::class, + 'class' => Craftisan\ApiTester\Storages\FireBaseStorage::class, 'options' => [ 'base' => env('API_TESTER_FIREBASE_ADDRESS', 'https://example.firebaseio.com/api-tester/'), ], @@ -164,7 +161,7 @@ 'secret' => env('API_TESTER_FIREBASE_SECRET', ''), 'options' => ['admin' => true], 'data' => [], - ] - ] - ] + ], + ], + ], ]; diff --git a/resources/assets/build/api-tester.js b/resources/assets/build/api-tester.js index aebd665..2f60fb2 100644 --- a/resources/assets/build/api-tester.js +++ b/resources/assets/build/api-tester.js @@ -26,5 +26,5 @@ for(var v=arguments.length,y=Lc(v),w=v;w--;)y[w]=arguments[w];if(p)var b=no(u),_ mo.lang=Ir,K("X",0,0,"unix"),K("x",0,0,"valueOf"),X("x",zi),X("X",Yi),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(_(e))}),n.version="2.14.1",i(wt),n.fn=Kr,n.min=_t,n.max=At,n.now=Lr,n.utc=h,n.unix=jn,n.months=Vn,n.isDate=a,n.locale=Ze,n.invalid=m,n.duration=It,n.isMoment=w,n.weekdays=zn,n.parseZone=Nn,n.localeData=nt,n.isDuration=Et,n.monthsShort=Un,n.weekdaysMin=Gn,n.defineLocale=et,n.updateLocale=tt,n.locales=it,n.weekdaysShort=Kn,n.normalizeUnits=P,n.relativeTimeRounding=hi,n.relativeTimeThreshold=di,n.calendarFormat=Kt,n.prototype=Kr;var go=n;return go})},{}],122:[function(e,t,n){(function(e){!function(i){function r(e){throw new RangeError(B[e])}function o(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function s(e,t){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(T,".");var r=e.split("."),s=o(r,t).join(".");return i+s}function a(e){for(var t,n,i=[],r=0,o=e.length;r=55296&&t<=56319&&r65535&&(e-=65536,t+=M(e>>>10&1023|55296),e=56320|1023&e),t+=M(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:A}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,n){var i=0;for(e=n?O(e/F):e>>1,e+=O(e/t);e>L*E>>1;i+=A)e=O(e/L);return O(i+(L+1)*e/(e+x))}function d(e){var t,n,i,o,s,a,u,d,f,p,m=[],g=e.length,v=0,y=k,w=S;for(n=e.lastIndexOf($),n<0&&(n=0),i=0;i=128&&r("not-basic"),m.push(e.charCodeAt(i));for(o=n>0?n+1:0;o=g&&r("invalid-input"),d=c(e.charCodeAt(o++)),(d>=A||d>O((_-v)/a))&&r("overflow"),v+=d*a,f=u<=w?C:u>=w+E?E:u-w,!(dO(_/p)&&r("overflow"),a*=p;t=m.length+1,w=h(v-s,t,0==s),O(v/t)>_-y&&r("overflow"),y+=O(v/t),v%=t,m.splice(v++,0,y)}return l(m)}function f(e){var t,n,i,o,s,l,c,d,f,p,m,g,v,y,w,b=[];for(e=a(e),g=e.length,t=k,n=0,s=S,l=0;l=t&&mO((_-n)/v)&&r("overflow"),n+=(c-t)*v,t=c,l=0;l_&&r("overflow"),m==t){for(d=n,f=A;p=f<=s?C:f>=s+E?E:f-s,!(d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=A-C,O=Math.floor,M=String.fromCharCode;if(w={version:"1.4.1",ucs2:{decode:a,encode:l},decode:d,encode:f,toASCII:m,toUnicode:p},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return w});else if(g&&v)if(t.exports==g)v.exports=w;else for(b in w)w.hasOwnProperty(b)&&(g[b]=w[b]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],123:[function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(h=m.substr(0,g),d=m.substr(g+1)):(h=m,d=""),f=decodeURIComponent(h),p=decodeURIComponent(d),i(s,f)?r(s[f])?s[f].push(p):s[f]=[s[f],p]:s[f]=p}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],124:[function(e,t,n){"use strict";function i(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(f),m=["'"].concat(p),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],y=255,w=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");i.prototype.parse=function(e,t,n){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),r=i!==-1&&i127?"x":L[M];if(!O.match(w)){var j=T.slice(0,S),N=T.slice(S+1),I=L.match(b);I&&(j.push(I[1]),N.unshift(I[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=j.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=l.toASCII(this.hostname));var W=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+W,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!_[p])for(var S=0,B=m.length;S0)&&n.host.split("@");x&&(n.auth=x.shift(),n.host=n.hostname=x.shift())}return n.search=e.search,n.query=e.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var F=_.slice(-1)[0],S=(n.host||e.host||_.length>1)&&("."===F||".."===F)||""===F,k=0,$=_.length;$>=0;$--)F=_[$],"."===F?_.splice($,1):".."===F?(_.splice($,1),k++):k&&(_.splice($,1),k--);if(!w&&!b)for(;k--;k)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var D=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(E){n.hostname=n.host=D?"":_.length?_.shift():"";var x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.host=n.hostname=x.shift())}return w=w||n.host&&_.length,w&&!D&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=h.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":133,punycode:122,querystring:125}],133:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],134:[function(e,t,n){(function(e){"use strict";function n(e,t,i){if(r(e,t))return void(e[t]=i);if(e._isVue)return void n(e._data,t,i);var o=e.__ob__;if(!o)return void(e[t]=i);if(o.convert(t,i),o.dep.notify(),o.vms)for(var s=o.vms.length;s--;){var a=o.vms[s];a._proxy(t),a._digest()}return i}function i(e,t){if(r(e,t)){delete e[t];var n=e.__ob__;if(!n)return void(e._isVue&&(delete e._data[t],e._digest()));if(n.dep.notify(),n.vms)for(var i=n.vms.length;i--;){var o=n.vms[i];o._unproxy(t),o._digest()}}}function r(e,t){return Dn.call(e,t)}function o(e){return Rn.test(e)}function s(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function a(e){return null==e?"":e.toString()}function l(e){if("string"!=typeof e)return e;var t=Number(e);return isNaN(t)?e:t}function c(e){return"true"===e||"false"!==e&&e}function u(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function h(e){return e.replace(Tn,d)}function d(e,t){return t?t.toUpperCase():""}function f(e){return e.replace(Bn,"$1-$2").toLowerCase()}function p(e){return e.replace(Ln,d)}function m(e,t){return function(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function g(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function v(e,t){for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}function y(e){return null!==e&&"object"==typeof e}function w(e){return On.call(e)===Mn}function b(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function _(e,t){var n,i,r,o,s,a=function l(){var a=Date.now()-o;a=0?n=setTimeout(l,t-a):(n=null,s=e.apply(r,i),n||(r=i=null))};return function(){return r=this,i=arguments,o=Date.now(),n||(n=setTimeout(a,t)),s}}function A(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function C(e){var t=function n(){if(!n.cancelled)return e.apply(this,arguments)};return t.cancel=function(){t.cancelled=!0},t}function E(e,t){return e==t||!(!y(e)||!y(t))&&JSON.stringify(e)===JSON.stringify(t)}function x(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap=Object.create(null)}function F(){var e,t=ri.slice(ui,li).trim();if(t){e={};var n=t.match(vi);e.name=n[0],n.length>1&&(e.args=n.slice(1).map(S))}e&&(oi.filters=oi.filters||[]).push(e),ui=li+1}function S(e){if(yi.test(e))return{value:l(e),dynamic:!1};var t=u(e),n=t===e;return{value:n?e:t,dynamic:n}}function k(e){var t=gi.get(e);if(t)return t;for(ri=e,hi=di=!1,fi=pi=mi=0,ui=0,oi={},li=0,ci=ri.length;lic&&l.push({value:e.slice(c,i)}),r=Ci.test(n[0]),o=r?n[1]:n[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,l.push({tag:!0,value:o.trim(),html:r,oneTime:a}),c=i+n[0].length;return c1?e.map(function(e){return B(e,t)}).join("+"):B(e[0],t,!0)}function B(e,t,n){return e.tag?e.oneTime&&t?'"'+t.$eval(e.value)+'"':L(e.value,n):'"'+e.value+'"'}function L(e,t){if(Ei.test(e)){var n=k(e);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+e+")"}return t?e:"("+e+")"}function O(e,t,n,i){j(e,1,function(){t.appendChild(e)},n,i)}function M(e,t,n,i){j(e,1,function(){V(e,t)},n,i)}function P(e,t,n){j(e,-1,function(){z(e)},t,n)}function j(e,t,n,i,r){var o=e.__v_trans;if(!o||!o.hooks&&!Jn||!i._isCompiled||i.$parent&&!i.$parent._isCompiled)return n(),void(r&&r());var s=t>0?"enter":"leave";o[s](n,r)}function N(e){return"string"==typeof e&&(e=document.querySelector(e)),e}function I(e){if(!e)return!1;var t=e.ownerDocument.documentElement,n=e.parentNode;return t===e||t===n||!(!n||1!==n.nodeType||!t.contains(n))}function W(e,t){var n=e.getAttribute(t);return null!==n&&e.removeAttribute(t),n}function H(e,t){var n=W(e,":"+t);return null===n&&(n=W(e,"v-bind:"+t)),n}function q(e,t){return e.hasAttribute(t)||e.hasAttribute(":"+t)||e.hasAttribute("v-bind:"+t)}function V(e,t){t.parentNode.insertBefore(e,t)}function U(e,t){t.nextSibling?V(e,t.nextSibling):t.parentNode.appendChild(e)}function z(e){e.parentNode.removeChild(e)}function K(e,t){t.firstChild?V(e,t.firstChild):t.appendChild(e)}function G(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)}function Y(e,t,n,i){e.addEventListener(t,n,i)}function J(e,t,n){e.removeEventListener(t,n)}function Q(e){var t=e.className;return"object"==typeof t&&(t=t.baseVal||""),t}function X(e,t){qn&&!/svg$/.test(e.namespaceURI)?e.className=t:e.setAttribute("class",t)}function Z(e,t){if(e.classList)e.classList.add(t);else{var n=" "+Q(e)+" ";n.indexOf(" "+t+" ")<0&&X(e,(n+t).trim())}}function ee(e,t){if(e.classList)e.classList.remove(t);else{for(var n=" "+Q(e)+" ",i=" "+t+" ";n.indexOf(i)>=0;)n=n.replace(i," ");X(e,n.trim())}e.className||e.removeAttribute("class")}function te(e,t){var n,i;if(re(e)&&ce(e.content)&&(e=e.content),e.hasChildNodes())for(ne(e),i=t?document.createDocumentFragment():document.createElement("div");n=e.firstChild;)i.appendChild(n);return i}function ne(e){for(var t;t=e.firstChild,ie(t);)e.removeChild(t);for(;t=e.lastChild,ie(t);)e.removeChild(t)}function ie(e){return e&&(3===e.nodeType&&!e.data.trim()||8===e.nodeType)}function re(e){return e.tagName&&"template"===e.tagName.toLowerCase()}function oe(e,t){var n=ki.debug?document.createComment(e):document.createTextNode(t?" ":"");return n.__v_anchor=!0,n}function se(e){if(e.hasAttributes())for(var t=e.attributes,n=0,i=t.length;n=l.length){for(var e=0;e=97&&t<=122||t>=65&&t<=90?"ident":t>=49&&t<=57?"number":"else"}function $e(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(o(t)?u(t):"*"+t)}function De(e){function t(){var t=e[u+1];if(h===Zi&&"'"===t||h===er&&'"'===t)return u++,i="\\"+t,f[Vi](),!0}var n,i,r,o,s,a,l,c=[],u=-1,h=Gi,d=0,f=[];for(f[Ui]=function(){void 0!==r&&(c.push(r),r=void 0)},f[Vi]=function(){void 0===r?r=i:r+=i},f[zi]=function(){f[Vi](),d++},f[Ki]=function(){if(d>0)d--,h=Xi,f[Vi]();else{if(d=0,r=$e(r),r===!1)return!1;f[Ui]()}};null!=h;)if(u++,n=e[u],"\\"!==n||!t()){if(o=ke(n),l=ir[h],s=l[o]||l["else"]||nr,s===nr)return;if(h=s[0],a=f[s[1]],a&&(i=s[2],i=void 0===i?n:i,a()===!1))return;if(h===tr)return c.raw=e,c}}function Re(e){var t=qi.get(e);return t||(t=De(e),t&&qi.put(e,t)),t}function Te(e,t){return We(t).get(e)}function Be(e,t,i){var r=e;if("string"==typeof t&&(t=De(t)),!t||!y(e))return!1;for(var o,s,a=0,l=t.length;a-1?n.replace(fr,Pe):n, t+"scope."+n)}function Pe(e,t){return vr[t]}function je(e){cr.test(e),vr.length=0;var t=e.replace(dr,Oe).replace(ur,"");return t=(" "+t).replace(mr,Me).replace(fr,Pe),Ne(t)}function Ne(e){try{return new Function("scope","return "+e+";")}catch(t){return Le}}function Ie(e){var t=Re(e);if(t)return function(e,n){Be(e,t,n)}}function We(e,t){e=e.trim();var n=or.get(e);if(n)return t&&!n.set&&(n.set=Ie(n.exp)),n;var i={exp:e};return i.get=He(e)&&e.indexOf("[")<0?Ne("scope."+e):je(e),t&&(i.set=Ie(e)),or.put(e,i),i}function He(e){return pr.test(e)&&!gr.test(e)&&"Math."!==e.slice(0,5)}function qe(){wr.length=0,br.length=0,_r={},Ar={},Cr=!1}function Ve(){for(var e=!0;e;)e=!1,Ue(wr),Ue(br),wr.length?e=!0:(In&&ki.devtools&&In.emit("flush"),qe())}function Ue(e){for(var t=0;t0){var s=o+(i?t:ue(t));r=Pr.get(s),r||(r=Mt(n,e.$options,!0),Pr.put(s,r))}else r=Mt(n,e.$options,!0);this.linker=r}function lt(e,t,n){var i=e.node.previousSibling;if(i){for(e=i.__v_frag;!(e&&e.forId===n&&e.inserted||i===t);){if(i=i.previousSibling,!i)return;e=i.__v_frag}return e}}function ct(e){var t=e.node;if(e.end)for(;!t.__vue__&&t!==e.end&&t.nextSibling;)t=t.nextSibling;return t.__vue__}function ut(e){for(var t=-1,n=new Array(Math.floor(e));++t47&&t<58?parseInt(e,10):1===e.length&&(t=e.toUpperCase().charCodeAt(0),t>64&&t<91)?t:ro[e]});return n=[].concat.apply([],n),function(t){if(n.indexOf(t.keyCode)>-1)return e.call(this,t)}}function mt(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function gt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function vt(e){return function(t){if(t.target===t.currentTarget)return e.call(this,t)}}function yt(e){if(co[e])return co[e];var t=wt(e);return co[e]=co[t]=t,t}function wt(e){e=f(e);var t=h(e),n=t.charAt(0).toUpperCase()+t.slice(1);uo||(uo=document.createElement("div"));var i,r=so.length;if("filter"!==t&&t in uo.style)return{kebab:e,camel:t};for(;r--;)if(i=ao[r]+n,i in uo.style)return{kebab:so[r]+e,camel:i}}function bt(e){var t=[];if(Pn(e))for(var n=0,i=e.length;n=r?n():e[o].call(t,i)}var r=e.length,o=0;e[0].call(t,i)}function Ct(e,t,n){for(var i,r,s,a,l,c,u,d=[],p=Object.keys(t),m=p.length;m--;)r=p[m],i=t[r]||So,l=h(r),ko.test(l)&&(u={name:r,path:l,options:i,mode:Fo.ONE_WAY,raw:null},s=f(r),null===(a=H(e,s))&&(null!==(a=H(e,s+".sync"))?u.mode=Fo.TWO_WAY:null!==(a=H(e,s+".once"))&&(u.mode=Fo.ONE_TIME)),null!==a?(u.raw=a,c=k(a),a=c.expression,u.filters=c.filters,o(a)&&!c.filters?u.optimizedLiteral=!0:u.dynamic=!0,u.parentPath=a):null!==(a=W(e,s))&&(u.raw=a),d.push(u));return Et(d)}function Et(e){return function(t,n){t._props={};for(var i,o,s,a,h,d=t.$options.propsData,p=e.length;p--;)if(i=e[p],h=i.raw,o=i.path,s=i.options,t._props[o]=i,d&&r(d,o)&&Ft(t,i,d[o]),null===h)Ft(t,i,void 0);else if(i.dynamic)i.mode===Fo.ONE_TIME?(a=(n||t._context||t).$get(i.parentPath),Ft(t,i,a)):t._context?t._bindDir({name:"prop",def:Do,prop:i},null,null,n):Ft(t,i,t.$get(i.parentPath));else if(i.optimizedLiteral){var m=u(h);a=m===h?c(l(h)):m,Ft(t,i,a)}else a=s.type===Boolean&&(""===h||h===f(i.name))||h,Ft(t,i,a)}}function xt(e,t,n,i){var r=t.dynamic&&He(t.parentPath),o=n;void 0===o&&(o=kt(e,t)),o=Dt(t,o,e);var s=o!==n;$t(t,o,e)||(o=void 0),r&&!s?_e(function(){i(o)}):i(o)}function Ft(e,t,n){xt(e,t,n,function(n){Fe(e,t.path,n)})}function St(e,t,n){xt(e,t,n,function(n){e[t.path]=n})}function kt(e,t){var n=t.options;if(!r(n,"default"))return n.type!==Boolean&&void 0;var i=n["default"];return y(i),"function"==typeof i&&n.type!==Function?i.call(e):i}function $t(e,t,n){if(!e.options.required&&(null===e.raw||null==t))return!0;var i=e.options,r=i.type,o=!r,s=[];if(r){Pn(r)||(r=[r]);for(var a=0;at?-1:e===t?0:1}function Nt(e,t,n,i){function r(r){It(e,t,r),n&&i&&It(n,i)}return r.dirs=t,r}function It(e,t,n){for(var i=t.length;i--;)t[i]._teardown()}function Wt(e,t,n,i){var r=Ct(t,n,e),o=Pt(function(){r(e,i)},e);return Nt(e,o)}function Ht(e,t,n){var i,r,o=t._containerAttrs,s=t._replacerAttrs;return 11!==e.nodeType&&(t._asComponent?(o&&n&&(i=nn(o,n)),s&&(r=nn(s,t))):r=nn(e.attributes,t)),t._containerAttrs=t._replacerAttrs=null,function(e,t,n){var o,s=e._context;s&&i&&(o=Pt(function(){i(s,t,null,n)},s));var a=Pt(function(){r&&r(e,t)},e);return Nt(e,a,s,o)}}function qt(e,t){var n=e.nodeType;return 1!==n||an(e)?3===n&&e.data.trim()?Ut(e,t):null:Vt(e,t)}function Vt(e,t){if("TEXTAREA"===e.tagName){var n=R(e.value);n&&(e.setAttribute(":value",T(n)),e.value="")}var i,r=e.hasAttributes(),o=r&&g(e.attributes);return r&&(i=Zt(e,o,t)),i||(i=Qt(e,t)),i||(i=Xt(e,t)),!i&&r&&(i=nn(o,t)),i}function Ut(e,t){if(e._skip)return zt;var n=R(e.wholeText);if(!n)return null;for(var i=e.nextSibling;i&&3===i.nodeType;)i._skip=!0,i=i.nextSibling;for(var r,o,s=document.createDocumentFragment(),a=0,l=n.length;af.priority)&&(f=d,u=r.name,a=rn(r.name),s=r.value,c=l[1],h=l[2]));return f?tn(e,c,s,n,f,u,h,a):void 0}function en(){}function tn(e,t,n,i,r,o,s,a){var l=k(n),c={name:t,arg:s,expression:l.expression,filters:l.filters,raw:n,attr:o,modifiers:a,def:r};"for"!==t&&"router-view"!==t||(c.ref=se(e));var u=function(e,t,n,i,r){c.ref&&Fe((i||e).$refs,c.ref,null),e._bindDir(c,t,n,i,r)};return u.terminal=!0,u}function nn(e,t){function n(e,t,n){var i=n&&sn(n),r=!i&&k(o);m.push({name:e,attr:s,raw:a,def:t,arg:c,modifiers:u,expression:r&&r.expression,filters:r&&r.filters,interp:n,hasOneTime:i})}for(var i,r,o,s,a,l,c,u,h,d,f,p=e.length,m=[];p--;)if(i=e[p],r=s=i.name,o=a=i.value,d=R(o),c=null,u=rn(r),r=r.replace(Uo,""),d)o=T(d),c=r,n("bind",Co.bind,d);else if(zo.test(r))u.literal=!Ho.test(r),n("transition",Wo.transition);else if(qo.test(r))c=r.replace(qo,""),n("on",Co.on);else if(Ho.test(r))l=r.replace(Ho,""),"style"===l||"class"===l?n(l,Wo[l]):(c=l,n("bind",Co.bind));else if(f=r.match(Vo)){if(l=f[1],c=f[2],"else"===l)continue;h=we(t,"directives",l,!0),h&&n(l,h)}if(m.length)return on(m)}function rn(e){var t=Object.create(null),n=e.match(Uo);if(n)for(var i=n.length;i--;)t[n[i].slice(1)]=!0;return t}function on(e){return function(t,n,i,r,o){for(var s=e.length;s--;)t._bindDir(e[s],n,i,r,o)}}function sn(e){for(var t=e.length;t--;)if(e[t].oneTime)return!0}function an(e){return"SCRIPT"===e.tagName&&(!e.hasAttribute("type")||"text/javascript"===e.getAttribute("type"))}function ln(e,t){return t&&(t._containerAttrs=un(e)),re(e)&&(e=Ze(e)),t&&(t._asComponent&&!t.template&&(t.template=""),t.template&&(t._content=te(e),e=cn(e,t))),ce(e)&&(K(oe("v-start",!0),e),e.appendChild(oe("v-end",!0))),e}function cn(e,t){var n=t.template,i=Ze(n,!0);if(i){var r=i.firstChild,o=r.tagName&&r.tagName.toLowerCase();return t.replace?(e===document.body,i.childNodes.length>1||1!==r.nodeType||"component"===o||we(t,"components",o)||q(r,"is")||we(t,"elementDirectives",o)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?i:(t._replacerAttrs=un(r),hn(e,r),r)):(e.appendChild(i),e)}}function un(e){if(1===e.nodeType&&e.hasAttributes())return g(e.attributes)}function hn(e,t){for(var n,i,r=e.attributes,o=r.length;o--;)n=r[o].name,i=r[o].value,t.hasAttribute(n)||Yo.test(n)?"class"===n&&!R(i)&&(i=i.trim())&&i.split(/\s+/).forEach(function(e){Z(t,e)}):t.setAttribute(n,i)}function dn(e,t){if(t){for(var n,i,r=e._slotContents=Object.create(null),o=0,s=t.children.length;o1?g(n):n;var r=t&&n.some(function(e){return e._fromParent});r&&(i=!1);for(var o=g(arguments,1),s=0,a=n.length;st?o:-o}var n=null,i=void 0;e=ns(e);var r=g(arguments,1),o=r[r.length-1];"number"==typeof o?(o=o<0?-1:1,r=r.length>1?r.slice(0,-1):r):o=1;var s=r[0];return s?("function"==typeof s?n=function(e,t){return s(e,t)*o}:(i=Array.prototype.concat.apply([],r),n=function(e,r,o){return o=o||0,o>=i.length-1?t(e,r,o):t(e,r,o)||n(e,r,o+1)}),e.slice().sort(n)):e}function kn(e,t){var n;if(w(e)){var i=Object.keys(e);for(n=i.length;n--;)if(kn(e[i[n]],t))return!0}else if(Pn(e)){for(n=e.length;n--;)if(kn(e[n],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function $n(e){function t(e){return new Function("return function "+p(e)+" (options) { this._init(options) }")()}e.options={directives:Co,elementDirectives:ts,filters:rs,transitions:{},components:{},partials:{},replace:!0},e.util=Wi,e.config=ki,e.set=n,e["delete"]=i,e.nextTick=ti,e.compiler=Jo,e.FragmentFactory=at,e.internalDirectives=Wo,e.parsers={path:rr,text:xi,template:Or,directive:wi,expression:yr},e.cid=0;var r=1;e.extend=function(e){e=e||{};var n=this,i=0===n.cid;if(i&&e._Ctor)return e._Ctor;var o=e.name||n.options.name,s=t(o||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=r++,s.options=ye(n.options,e),s["super"]=n,s.extend=n.extend,ki._assetTypes.forEach(function(e){s[e]=n[e]}),o&&(s.options.components[o]=s),i&&(e._Ctor=s),s},e.use=function(e){if(!e.installed){var t=g(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}},e.mixin=function(t){e.options=ye(e.options,t)},ki._assetTypes.forEach(function(t){e[t]=function(n,i){return i?("component"===t&&w(i)&&(i.name||(i.name=n),i=e.extend(i)),this.options[t+"s"][n]=i,i):this.options[t+"s"][n]}}),v(e.transition,Di)}var Dn=Object.prototype.hasOwnProperty,Rn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Tn=/-(\w)/g,Bn=/([a-z\d])([A-Z])/g,Ln=/(?:^|[-_\/])(\w)/g,On=Object.prototype.toString,Mn="[object Object]",Pn=Array.isArray,jn="__proto__"in{},Nn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),In=Nn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Wn=Nn&&window.navigator.userAgent.toLowerCase(),Hn=Wn&&Wn.indexOf("trident")>0,qn=Wn&&Wn.indexOf("msie 9.0")>0,Vn=Wn&&Wn.indexOf("android")>0,Un=Wn&&/(iphone|ipad|ipod|ios)/i.test(Wn),zn=Un&&Wn.match(/os ([\d_]+)/),Kn=zn&&zn[1].split("_"),Gn=Kn&&Number(Kn[0])>=9&&Number(Kn[1])>=3&&!window.indexedDB,Yn=void 0,Jn=void 0,Qn=void 0,Xn=void 0;if(Nn&&!qn){var Zn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ei=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Yn=Zn?"WebkitTransition":"transition",Jn=Zn?"webkitTransitionEnd":"transitionend",Qn=ei?"WebkitAnimation":"animation",Xn=ei?"webkitAnimationEnd":"animationend"}var ti=function(){function t(){r=!1;var e=i.slice(0);i=[];for(var t=0;t=this.length&&(this.length=Number(e)+1),this.splice(e,1,t)[0]}),b(Pi,"$remove",function(e){if(this.length){var t=A(this,e);return t>-1?this.splice(t,1):void 0}});var Ni=Object.getOwnPropertyNames(ji),Ii=!0;Ae.prototype.walk=function(e){for(var t=Object.keys(e),n=0,i=t.length;n",""],tr:[2,"","
"],col:[2,"","
"]};$r.td=$r.th=[3,"","
"],$r.option=$r.optgroup=[1,'"],$r.thead=$r.tbody=$r.colgroup=$r.caption=$r.tfoot=[1,"","
"],$r.g=$r.defs=$r.symbol=$r.use=$r.image=$r.text=$r.circle=$r.ellipse=$r.line=$r.path=$r.polygon=$r.polyline=$r.rect=[1,'',""];var Dr=/<([\w:-]+)/,Rr=/&#?\w+?;/,Tr=/