diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index 0ffda5aa1d1d..3d7c12bf014a 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -5,12 +5,21 @@ namespace App\Http\Controllers; use App\Http\Requests\Client\EditClientRequest; use App\Http\Requests\Client\UpdateClientRequest; use App\Models\Client; +use App\Repositories\ClientRepository; use Illuminate\Http\Request; use Yajra\DataTables\Facades\DataTables; use Yajra\DataTables\Html\Builder; class ClientController extends Controller { + + protected $clientRepo; + + public function __construct(ClientRepository $clientRepo) + { + $this->clientRepo = $clientRepo; + } + /** * Display a listing of the resource. * @@ -122,14 +131,11 @@ class ClientController extends Controller public function edit(EditClientRequest $request, Client $client) { - $client->load('contacts', 'primary_contact'); - $data = [ 'header' => $this->headerData(), 'client' => $client, ]; - return view('client.edit', $data); } @@ -140,16 +146,10 @@ class ClientController extends Controller * @param int $id * @return \Illuminate\Http\Response */ - public function update(UpdateClientRequest $request, $id) + public function update(UpdateClientRequest $request, Client $client) { - $client = $request->entity(Client::class, request('client')); - - $client->fill($request->all())->save(); - - $client->contacts()->delete(); - $client->contacts()->create($request->input('contacts')); - + $client = $this->clientRepo->save($request, $client); $client->load('contacts', 'primary_contact'); return response()->json($client, 200); diff --git a/app/Models/ClientContact.php b/app/Models/ClientContact.php index 767c32643b2e..cf7cf376d5dc 100644 --- a/app/Models/ClientContact.php +++ b/app/Models/ClientContact.php @@ -27,7 +27,6 @@ class ClientContact extends Authenticatable ]; protected $hidden = [ - 'id', 'password', 'remember_token', ]; diff --git a/app/Models/Presenters/ClientContactPresenter.php b/app/Models/Presenters/ClientContactPresenter.php new file mode 100644 index 000000000000..d1d20827f58d --- /dev/null +++ b/app/Models/Presenters/ClientContactPresenter.php @@ -0,0 +1,8 @@ +decodePrimaryKey($value))->first() ?? abort(404); + $client = \App\Models\Client::where('id', $this->decodePrimaryKey($value))->first() ?? abort(404); + $client->load('contacts', 'primary_contact'); + + return $client; + }); Route::bind('invoice', function ($value) { diff --git a/app/Repositories/BaseRepository.php b/app/Repositories/BaseRepository.php new file mode 100644 index 000000000000..4d33b97600f5 --- /dev/null +++ b/app/Repositories/BaseRepository.php @@ -0,0 +1,12 @@ +clientContactRepository = $clientContactRepository; + } + + public function save($data) + { + $client->fill($request->all())->save(); + + } + +} \ No newline at end of file diff --git a/package.json b/package.json index 9fe1c52472ae..d092f2a9c671 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,8 @@ "laravel-echo": "^1.4.0", "quill": "^1.3.6", "socket.io-client": "^2.1.1", + "ts-loader": "3.5.0", + "typescript": "^3.1.6", "vue-i18n": "^8.3.0" } } diff --git a/public/js/client_edit.js b/public/js/client_edit.js new file mode 100644 index 000000000000..27f68c7b0b8e --- /dev/null +++ b/public/js/client_edit.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}({0:function(e,t,n){e.exports=n("PqS7")},"162o":function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("mypn"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n("DuR2"))},"21It":function(e,t,n){"use strict";var r=n("FtD3");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"5VQ+":function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},"7GwW":function(e,t,n){"use strict";var r=n("cGG2"),i=n("21It"),o=n("DQCr"),a=n("oJlt"),s=n("GHBc"),c=n("FtD3"),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n("thJu");e.exports=function(e){return new Promise(function(t,l){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,v="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+u(m+":"+y)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[v]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};i(t,l,r),d=null}},d.onerror=function(){l(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n("p1b6"),_=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;_&&(p[e.xsrfHeaderName]=_)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),l(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},DQCr:function(e,t,n){"use strict";var r=n("cGG2");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},FtD3:function(e,t,n){"use strict";var r=n("t8qj");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},GHBc:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},"I3G/":function(e,t,n){"use strict";(function(t,n){var r=Object.freeze({});function i(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,$=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),C=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\B([A-Z])/g,A=w(function(e){return e.replace(k,"-$1").toLowerCase()});var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function S(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Z=W&&W.indexOf("edge/")>0,Q=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),ee=(W&&/chrome\/\d+/.test(W),{}.watch),te=!1;if(z)try{var ne={};Object.defineProperty(ne,"passive",{get:function(){te=!0}}),window.addEventListener("test-passive",null,ne)}catch(e){}var re=function(){return void 0===q&&(q=!z&&!J&&void 0!==t&&"server"===t.process.env.VUE_ENV),q},ie=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}var ae,se="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);ae="undefined"!=typeof Set&&oe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ce=j,ue=0,le=function(){this.id=ue++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===A(e)){var c=He(String,i.type);(c<0||s0&&(ft((u=e(u,(n||"")+"_"+c))[0])&&ft(f)&&(r[l]=ye(f.text+u[0].text),u.shift()),r.push.apply(r,u)):s(u)?ft(f)?r[l]=ye(f.text+u):""!==u&&r.push(ye(u)):ft(u)&&ft(f)?r[l]=ye(f.text+u.text):(a(t._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+c+"__"),r.push(u)));return r}(e):void 0}function ft(e){return o(e)&&o(e.text)&&!1===e.isComment}function pt(e,t){return(e.__esModule||se&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function dt(e){return e.isComment&&e.asyncFactory}function vt(e){if(Array.isArray(e))for(var t=0;tEt&&kt[n].id>e.id;)n--;kt.splice(n+1,0,e)}else kt.push(e);Tt||(Tt=!0,tt(jt))}}(this)},Lt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ge(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Lt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Lt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Lt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Nt={enumerable:!0,configurable:!0,get:j,set:j};function Pt(e,t,n){Nt.get=function(){return this[t][n]},Nt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Nt)}function Dt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Fe(o,t,n,e);Te(r,o,a),o in e||Pt(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?j:O(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&b(r,o)||U(o)||Pt(e,"_data",o)}Oe(t,!0)}(e):Oe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=re();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Lt(e,a||j,j,Rt)),i in e||Mt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==ee&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function dn(e){this._init(e)}function vn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Re(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)Pt(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)Mt(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,M.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=S({},a.options),i[r]=a,a}}function hn(e){return e&&(e.Ctor.options.name||e.tag)}function mn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function yn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=hn(a.componentOptions);s&&!t(s)&&gn(n,o,r,i)}}}function gn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=ln++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(fn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=gt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return un(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return un(e,t,n,r,i,!0)};var o=n&&n.data;Te(e,"$attrs",o&&o.attrs||r,null,!0),Te(e,"$listeners",t._parentListeners||r,null,!0)}(t),Ct(t,"beforeCreate"),function(e){var t=Ut(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){Te(e,n,t[n])}),$e(!0))}(t),Dt(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Ct(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=Ee,e.prototype.$watch=function(e,t,n){if(l(t))return Bt(this,e,t,n);(n=n||{}).user=!0;var r=new Lt(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}}}(dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var r=0,i=e.length;r1?T(n):n;for(var r=T(arguments,1),i=0,o=n.length;iparseInt(this.max)&&gn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:S,mergeOptions:Re,defineReactive:Te},e.set=Se,e.delete=Ee,e.nextTick=tt,e.options=Object.create(null),M.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,S(e.options.components,bn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){M.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(dn),Object.defineProperty(dn.prototype,"$isServer",{get:re}),Object.defineProperty(dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:en}),dn.version="2.5.17";var wn=h("style,class"),xn=h("input,textarea,option,select,progress"),$n=function(e,t,n){return"value"===n&&xn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Cn=h("contenteditable,draggable,spellcheck"),kn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),An="http://www.w3.org/1999/xlink",On=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Tn=function(e){return On(e)?e.slice(6,e.length):""},Sn=function(e){return null==e||!1===e};function En(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=jn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=jn(t,n.data));return function(e,t){if(o(e)||o(t))return In(e,Ln(t));return""}(t.staticClass,t.class)}function jn(e,t){return{staticClass:In(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function In(e,t){return e?t?e+" "+t:e:t||""}function Ln(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?ir(e,t,n):kn(t)?Sn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Cn(t)?e.setAttribute(t,Sn(n)||"false"===n?"false":"true"):On(t)?Sn(n)?e.removeAttributeNS(An,Tn(t)):e.setAttributeNS(An,t,n):ir(e,t,n)}function ir(e,t,n){if(Sn(n))e.removeAttribute(t);else{if(X&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var or={create:nr,update:nr};function ar(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=En(t),c=n._transitionClasses;o(c)&&(s=In(s,Ln(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var sr,cr,ur,lr,fr,pr,dr={create:ar,update:ar},vr=/[\w).+\-_$\]]/;function hr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&vr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,lr),key:'"'+e.slice(lr+1)+'"'}:{exp:e,key:null};cr=e,lr=fr=pr=0;for(;!Sr();)Er(ur=Tr())?Ir(ur):91===ur&&jr(ur);return{exp:e.slice(0,fr),key:e.slice(fr+1,pr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Tr(){return cr.charCodeAt(++lr)}function Sr(){return lr>=sr}function Er(e){return 34===e||39===e}function jr(e){var t=1;for(fr=lr;!Sr();)if(Er(e=Tr()))Ir(e);else if(91===e&&t++,93===e&&t--,0===t){pr=lr;break}}function Ir(e){for(var t=e;!Sr()&&(e=Tr())!==t;);}var Lr,Nr="__r",Pr="__c";function Dr(e,t,n,r,i){var o;t=(o=t)._withTask||(o._withTask=function(){Ye=!0;var e=o.apply(null,arguments);return Ye=!1,e}),n&&(t=function(e,t,n){var r=Lr;return function i(){null!==e.apply(null,arguments)&&Rr(t,i,n,r)}}(t,e,r)),Lr.addEventListener(e,t,te?{capture:r,passive:i}:r)}function Rr(e,t,n,r){(r||Lr).removeEventListener(e,t._withTask||t,n)}function Mr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Lr=t.elm,function(e){if(o(e[Nr])){var t=X?"change":"input";e[t]=[].concat(e[Nr],e[t]||[]),delete e[Nr]}o(e[Pr])&&(e.change=[].concat(e[Pr],e.change||[]),delete e[Pr])}(n),st(n,r,Dr,Rr,t.context),Lr=void 0}}var Fr={create:Mr,update:Mr};function Br(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=S({},c)),s)i(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=r;var u=i(r)?"":String(r);Ur(a,u)&&(a.value=u)}else a[n]=r}}}function Ur(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Hr={create:Br,update:Br},Gr=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function qr(e){var t=Vr(e.style);return e.staticStyle?S(e.staticStyle,t):t}function Vr(e){return Array.isArray(e)?E(e):"string"==typeof e?Gr(e):e}var zr,Jr=/^--/,Kr=/\s*!important$/,Wr=function(e,t,n){if(Jr.test(t))e.style.setProperty(t,n);else if(Kr.test(n))e.style.setProperty(t,n.replace(Kr,""),"important");else{var r=Yr(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ti(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ni(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&S(t,ri(e.name||"v")),S(t,e),t}return"string"==typeof e?ri(e):void 0}}var ri=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ii=z&&!Y,oi="transition",ai="animation",si="transition",ci="transitionend",ui="animation",li="animationend";ii&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(si="WebkitTransition",ci="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ui="WebkitAnimation",li="webkitAnimationEnd"));var fi=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function pi(e){fi(function(){fi(e)})}function di(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ei(e,t))}function vi(e,t){e._transitionClasses&&g(e._transitionClasses,t),ti(e,t)}function hi(e,t,n){var r=yi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===oi?ci:li,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=oi,l=a,f=o.length):t===ai?u>0&&(n=ai,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?oi:ai:null)?n===oi?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===oi&&mi.test(r[si+"Property"])}}function gi(e,t){for(;e.length1}function Ci(e,t){!0!==t.data.show&&bi(t)}var ki=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;tv?_(e,i(n[y+1])?null:n[y+1].elm,n,d,y,r):d>y&&w(0,t,p,v)}(c,d,v,n,s):o(v)?(o(e.text)&&u.setTextContent(c,""),_(c,null,v,0,v.length-1,n)):o(d)?w(0,d,0,d.length-1):o(e.text)&&u.setTextContent(c,""):e.text!==t.text&&u.setTextContent(c,t.text),o(p)&&o(l=p.hook)&&o(l=l.postpatch)&&l(e,t)}}}function k(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(Ei(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Si(e,t){return t.every(function(t){return!N(t,e)})}function Ei(e){return"_value"in e?e._value:e.value}function ji(e){e.target.composing=!0}function Ii(e){e.target.composing&&(e.target.composing=!1,Li(e.target,"input"))}function Li(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ni(e){return!e.componentInstance||e.data&&e.data.transition?e:Ni(e.componentInstance._vnode)}var Pi={model:Ai,show:{bind:function(e,t,n){var r=t.value,i=(n=Ni(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,bi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ni(n)).data&&n.data.transition?(n.data.show=!0,r?bi(n,function(){e.style.display=e.__vOriginalDisplay}):wi(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Di={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(vt(t.children)):e}function Mi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[$(o)]=i[o];return t}function Fi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Bi={name:"transition",props:Di,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||dt(e)})).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Fi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Mi(this),u=this._vnode,l=Ri(u);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!dt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=S({},c);if("out-in"===r)return this._leaving=!0,ct(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Fi(e,i);if("in-out"===r){if(dt(o))return u;var p,d=function(){p()};ct(c,"afterEnter",d),ct(c,"enterCancelled",d),ct(f,"delayLeave",function(e){p=e})}}return i}}},Ui=S({tag:String,moveClass:String},Di);function Hi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Gi(e){e.data.newPos=e.elm.getBoundingClientRect()}function qi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ui.mode;var Vi={Transition:Bi,TransitionGroup:{props:Ui,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Mi(this),s=0;s-1?Fn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Fn[e]=/HTMLUnknownElement/.test(t.toString())},S(dn.options.directives,Pi),S(dn.options.components,Vi),dn.prototype.__patch__=z?ki:j,dn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=me),Ct(e,"beforeMount"),new Lt(e,function(){e._update(e._render(),n)},j,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Ct(e,"mounted")),e}(this,e=e&&z?Un(e):void 0,t)},z&&setTimeout(function(){B.devtools&&ie&&ie.emit("init",dn)},0);var zi=/\{\{((?:.|\n)+?)\}\}/g,Ji=/[-.*+?^${}()|[\]\/\\]/g,Ki=w(function(e){var t=e[0].replace(Ji,"\\$&"),n=e[1].replace(Ji,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Wi(e,t){var n=t?Ki(t):zi;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=hr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io="[a-zA-Z_][\\w\\-\\.]*",oo="((?:"+io+"\\:)?"+io+")",ao=new RegExp("^<"+oo),so=/^\s*(\/?)>/,co=new RegExp("^<\\/"+oo+"[^>]*>"),uo=/^]+>/i,lo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},yo=/&(?:lt|gt|quot|amp);/g,go=/&(?:lt|gt|quot|amp|#10|#9);/g,_o=h("pre,textarea",!0),bo=function(e,t){return e&&_o(e)&&"\n"===t[0]};function wo(e,t){var n=t?go:yo;return e.replace(n,function(e){return mo[e]})}var xo,$o,Co,ko,Ao,Oo,To,So,Eo=/^@|^v-on:/,jo=/^v-|^@|^:/,Io=/([^]*?)\s+(?:in|of)\s+([^]*)/,Lo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,No=/^\(|\)$/g,Po=/:(.*)$/,Do=/^:|^v-bind:/,Ro=/\.[^.]+/g,Mo=w(Qi);function Fo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,vo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),bo(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(lo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),$(v+3);continue}}if(fo.test(e)){var h=e.indexOf("]>");if(h>=0){$(h+2);continue}}var m=e.match(uo);if(m){$(m[0].length);continue}var y=e.match(co);if(y){var g=c;$(y[0].length),A(y[1],g,c);continue}var _=C();if(_){k(_),bo(r,e)&&$(1);continue}}var b=void 0,w=void 0,x=void 0;if(d>=0){for(w=e.slice(d);!(co.test(w)||ao.test(w)||lo.test(w)||fo.test(w)||(x=w.indexOf("<",1))<0);)d+=x,w=e.slice(d);b=e.substring(0,d),$(d)}d<0&&(b=e,e=""),t.chars&&b&&t.chars(b)}if(e===n){t.chars&&t.chars(e);break}}function $(t){c+=t,e=e.substring(t)}function C(){var t=e.match(ao);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for($(t[0].length);!(n=e.match(so))&&(r=e.match(ro));)$(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],$(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&no(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=r&&r.ns||So(e);X&&"svg"===l&&(o=function(e){for(var t=[],n=0;n-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),$r(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Or(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Or(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Or(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Cr(e,"value")||"null";_r(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),$r(e,"change",Or(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Nr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Or(t,l);c&&(f="if($event.target.composing)return;"+f),_r(e,"value","("+t+")"),$r(e,u,f,null,!0),(s||a)&&$r(e,"blur","$forceUpdate()")}(e,r,i);else if(!B.isReservedTag(o))return Ar(e,r,i),!1;return!0},text:function(e,t){t.value&&_r(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&_r(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:eo,mustUseProp:$n,canBeLeftOpenTag:to,isReservedTag:Rn,getTagNamespace:Mn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Ko)},Zo=w(function(e){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function Qo(e,t){e&&(Wo=Zo(t.staticKeys||""),Xo=t.isReservedTag||I,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||m(e.tag)||!Xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Wo)))}(t);if(1===t.type){if(!Xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,ta=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,na={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ra={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},ia=function(e){return"if("+e+")return null;"},oa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ia("$event.target !== $event.currentTarget"),ctrl:ia("!$event.ctrlKey"),shift:ia("!$event.shiftKey"),alt:ia("!$event.altKey"),meta:ia("!$event.metaKey"),left:ia("'button' in $event && $event.button !== 0"),middle:ia("'button' in $event && $event.button !== 1"),right:ia("'button' in $event && $event.button !== 2")};function aa(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+sa(i,e[i])+",";return r.slice(0,-1)+"}"}function sa(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return sa(e,t)}).join(",")+"]";var n=ta.test(t.value),r=ea.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(oa[s])o+=oa[s],na[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=ia(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!('button' in $event)&&"+e.map(ca).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function ca(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=na[e],r=ra[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ua={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:j},la=function(e){this.options=e,this.warn=e.warn||yr,this.transforms=gr(e.modules,"transformCode"),this.dataGenFns=gr(e.modules,"genData"),this.directives=S(S({},ua),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function fa(e,t){var n=new la(t);return{render:"with(this){return "+(e?pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function pa(e,t){if(e.staticRoot&&!e.staticProcessed)return da(e,t);if(e.once&&!e.onceProcessed)return va(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";0;return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||pa)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return ha(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ga(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return $(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ga(t,n,!0);return"_c("+e+","+ma(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r=e.plain?void 0:ma(e,t),i=e.inlineTemplate?null:ga(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',ka.innerHTML.indexOf(" ")>0}var Ta=!!z&&Oa(!1),Sa=!!z&&Oa(!0),Ea=w(function(e){var t=Un(e);return t&&t.innerHTML}),ja=dn.prototype.$mount;dn.prototype.$mount=function(e,t){if((e=e&&Un(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ea(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=Aa(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:Sa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ja.call(this,e,t)},dn.compile=Aa,e.exports=dn}).call(t,n("DuR2"),n("162o").setImmediate)},"JP+z":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(o)}),e.exports=c}).call(t,n("W2nU"))},PqS7:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("I3G/")),o=r(n("mtWM"));new(0,i.default)({el:"#client_edit",data:function(){return{client:[],errors:[]}},mounted:function(){this.client=clientObject,console.dir(this.client)},beforeMount:function(){console.log("before mount")},created:function(){console.dir("created")},updated:function(){console.dir("updated")},methods:{remove:function(e){var t=this.client.contacts.indexOf(e);this.client.contacts.splice(t,1)},add:function(){var e=this;console.dir("i will add a contact here"),this.client.contacts.push({first_name:"",last_name:"",email:"",phone:""}),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),this.$nextTick(function(){var t=e.client.contacts.length-1;e.$refs.first_name[t].focus()})},submit:function(){var e=this;this.errors={},o.default.put("/clients/",this.client).then(function(t){e.client=t.data}).catch(function(t){422===t.response.status?e.errors=t.response.data.errors||{}:t.response.status})},copy:function(e){e.includes("copy_billing")?(this.client.shipping_address1=this.client.address1,this.client.shipping_address2=this.client.address2,this.client.shipping_city=this.client.city,this.client.shipping_state=this.client.state,this.client.shipping_postal_code=this.client.postal_code,this.client.shipping_country_id=this.client.country_id):(this.client.address1=this.client.shipping_address1,this.client.address2=this.client.shipping_address2,this.client.city=this.client.shipping_city,this.client.state=this.client.shipping_state,this.client.postal_code=this.client.shipping_postal_code,this.client.country_id=this.client.shipping_country_id)}}})},Re3r:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},TNV1:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},W2nU:function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},p1b6:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},qRfI:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},t8qj:function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},tIFN:function(e,t,n){"use strict";var r=n("cGG2"),i=n("JP+z"),o=n("XmWM"),a=n("KCLY");function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(a);c.Axios=o,c.create=function(e){return s(r.merge(a,e))},c.Cancel=n("dVOP"),c.CancelToken=n("cWxy"),c.isCancel=n("pBtG"),c.all=function(e){return Promise.all(e)},c.spread=n("pxG4"),e.exports=c,e.exports.default=c},thJu:function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,o=String(e),a="",s=0,c=r;o.charAt(0|s)||(c="=",s%1);a+=c.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new i;t=t<<8|n}return a}},xLtR:function(e,t,n){"use strict";var r=n("cGG2"),i=n("TNV1"),o=n("pBtG"),a=n("KCLY"),s=n("dIwP"),c=n("qRfI");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}}}); \ No newline at end of file diff --git a/public/js/ninja.js b/public/js/ninja.js index 913b030339bd..4b3d19feea70 100644 --- a/public/js/ninja.js +++ b/public/js/ninja.js @@ -1,4 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,n){"use strict";function r(e,t){for(var n=0;nn+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(o)};e.ajax({type:"GET",url:o.subpagesDirectory+t,dataType:"html",beforeSend:function(){e(a.VIEW_SCRIPT).remove()},success:function(r){var o=document.createElement("div");o.innerHTML=r;var a=Array.from(o.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});o.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),e("body").animate({scrollTop:0},0),e(n).html(o),a.length&&i(a),window.location.hash=t},error:function(){window.location.href=o.errorPage}})},n.setUpUrl=function(t){e(a.NAV_LINK).removeClass(r.ACTIVE),e(a.NAV_DROPDOWN).removeClass(r.OPEN),e(a.NAV_DROPDOWN+':has(a[href="'+t.replace(/^\//,"").split("?")[0]+'"])').addClass(r.OPEN),e(a.NAV_ITEM+' a[href="'+t.replace(/^\//,"").split("?")[0]+'"]').addClass(r.ACTIVE),this.loadPage(t)},n.loadBlank=function(e){window.open(e)},n.loadTop=function(e){window.location=e},n._getConfig=function(e){return e=Object.assign({},s,e)},n._addEventListeners=function(){var t=this;e(document).on(i.CLICK,a.NAV_LINK+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data("coreui.ajaxLoad"),o="object"==typeof n&&n;r||(r=new t(this,o),e(this).data("coreui.ajaxLoad",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}},{key:"Default",get:function(){return s}}]),t}();return e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=n,c._jQueryInterface},c}(t),a=function(e){return-1!==e.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)},s=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);a(r)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},c=function(e){var t="aside-menu",n="coreui.aside-menu",r=e.fn[t],i={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},a={BODY:"body",ASIDE_MENU:".aside-menu",ASIDE_MENU_TOGGLER:".aside-menu-toggler"},c=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],u=function(){function t(e){this._element=e,this._addEventListeners()}return t.prototype._addEventListeners=function(){e(a.ASIDE_MENU_TOGGLER).on(i.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,c)})},t._jQueryInterface=function(){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(this),r.data(n,o))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(i.LOAD_DATA_API,function(){var t=e(a.ASIDE_MENU);u._jQueryInterface.call(t)}),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface},u}(t),u=function(e){var t="sidebar",r=e.fn[t],i={transition:400},a={ACTIVE:"active",BRAND_MINIMIZED:"brand-minimized",NAV_DROPDOWN_TOGGLE:"nav-dropdown-toggle",OPEN:"open",SIDEBAR_FIXED:"sidebar-fixed",SIDEBAR_MINIMIZED:"sidebar-minimized",SIDEBAR_OFF_CANVAS:"sidebar-off-canvas"},c={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},u={BODY:"body",BRAND_MINIMIZER:".brand-minimizer",NAV_DROPDOWN_TOGGLE:".nav-dropdown-toggle",NAV_DROPDOWN_ITEMS:".nav-dropdown-items",NAV_ITEM:".nav-item",NAV_LINK:".nav-link",NAVIGATION_CONTAINER:".sidebar-nav",NAVIGATION:".sidebar-nav > .nav",SIDEBAR:".sidebar",SIDEBAR_MINIMIZER:".sidebar-minimizer",SIDEBAR_TOGGLER:".sidebar-toggler"},l=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],f=function(){function t(e){this._element=e,this.ps=null,this.perfectScrollbar(c.INIT),this.setActiveLink(),this._addEventListeners()}var r=t.prototype;return r.perfectScrollbar=function(e){var t=this;void 0!==n&&(e!==c.INIT||document.body.classList.contains(a.SIDEBAR_MINIMIZED)||(this.ps=this.makeScrollbar()),e===c.DESTROY&&this.destroyScrollbar(),e===c.TOGGLE&&(document.body.classList.contains(a.SIDEBAR_MINIMIZED)?this.destroyScrollbar():this.ps=this.makeScrollbar()),e!==c.UPDATE||document.body.classList.contains(a.SIDEBAR_MINIMIZED)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar()},i.transition))},r.makeScrollbar=function(e){void 0===e&&(e=u.NAVIGATION_CONTAINER);var t=new n(document.querySelector(e),{suppressScrollX:!0});return t.isRtl=!1,t},r.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},r.setActiveLink=function(){e(u.NAVIGATION).find(u.NAV_LINK).each(function(t,n){var r=n,o=String(window.location).split("?")[0];"#"===o.substr(o.length-1)&&(o=o.slice(0,-1)),e(e(r))[0].href===o&&e(r).addClass(a.ACTIVE).parents(u.NAV_DROPDOWN_ITEMS).add(r).each(function(t,n){r=n,e(r).parent().addClass(a.OPEN)})})},r._addEventListeners=function(){var t=this;e(u.BRAND_MINIMIZER).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e(u.BODY).toggleClass(a.BRAND_MINIMIZED)}),e(u.NAV_DROPDOWN_TOGGLE).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation();var r=n.target;e(r).parent().toggleClass(a.OPEN),t.perfectScrollbar(c.UPDATE)}),e(u.SIDEBAR_MINIMIZER).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation(),e(u.BODY).toggleClass(a.SIDEBAR_MINIMIZED),t.perfectScrollbar(c.TOGGLE)}),e(u.SIDEBAR_TOGGLER).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,l)}),e(u.NAVIGATION+" > "+u.NAV_ITEM+" "+u.NAV_LINK+":not("+u.NAV_DROPDOWN_TOGGLE+")").on(c.CLICK,function(){document.body.classList.remove("sidebar-show")})},t._jQueryInterface=function(){return this.each(function(){var n=e(this),r=n.data("coreui.sidebar");r||(r=new t(this),n.data("coreui.sidebar",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(c.LOAD_DATA_API,function(){var t=e(u.SIDEBAR);f._jQueryInterface.call(t)}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=r,f._jQueryInterface},f}(t),l=function(){for(var e={},t=document.styleSheets,n="",r=t.length-1;r>-1;r--){for(var o=t[r].cssRules,i=o.length-1;i>-1;i--)if(".ie-custom-properties"===o[i].selectorText){n=o[i].cssText;break}if(n)break}return n=n.substring(n.lastIndexOf("{")+1,n.lastIndexOf("}")),n.split(";").forEach(function(t){if(t){var n=t.split(": ")[0],r=t.split(": ")[1];n&&r&&(e["--"+n.trim()]=r.trim())}}),e},f=function(){return Boolean(document.documentMode)&&document.documentMode>=10},d=function(e){return e.match(/^--.*/i)},p=function(e,t){void 0===t&&(t=document.body);var n;if(d(e)&&f()){n=l()[e]}else n=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},v=function(e){if(void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var t,n,r;return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},h=function(e,t){if(void 0===t&&(t=100),void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var n,r,o;return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},m=function(e){if(void 0===e)throw new Error("Hex color is not defined");if("transparent"===e)return"#00000000";var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)};!function(e){if(void 0===e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=p,window.hexToRgb=v,window.hexToRgba=h,window.rgbToHex=m,e.AjaxLoad=i,e.AsideMenu=c,e.Sidebar=u,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=0)}({0:function(e,t,n){e.exports=n("F1kH")},"162o":function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("mypn"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n("DuR2"))},"21It":function(e,t,n){"use strict";var r=n("FtD3");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"5VQ+":function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},"7GwW":function(e,t,n){"use strict";var r=n("cGG2"),o=n("21It"),i=n("DQCr"),a=n("oJlt"),s=n("GHBc"),c=n("FtD3"),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n("thJu");e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest,v="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(e.url)||(p=new window.XDomainRequest,v="onload",h=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";d.Authorization="Basic "+u(m+":"+g)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[v]=function(){if(p&&(4===p.readyState||h)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:e,request:p};o(t,l,r),p=null}},p.onerror=function(){l(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n("p1b6"),_=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},DQCr:function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n("cGG2");e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},"Dlg+":function(e,t,n){window.axios=n("mtWM"),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},F1kH:function(e,t,n){n("Dlg+"),window.Vue=n("I3G/"),Vue.config.devtools=!0,window.axios=n("mtWM"),window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},window.onload=function(){new Vue({el:"#app"})}},FtD3:function(e,t,n){"use strict";var r=n("t8qj");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},GHBc:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},"I3G/":function(e,t,n){"use strict";(function(t,n){function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===Hn.call(e)}function u(e){return"[object RegExp]"===Hn.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function h(e,t){return Wn.call(e,t)}function m(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function g(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function _(e){for(var t={},n=0;n-1)if(i&&!h(o,"default"))a=!1;else if(""===a||a===Zn(e)){var c=W(String,o.type);(c<0||s0&&(ie((c=e(c,(n||"")+"_"+s))[0])&&ie(l)&&(f[u]=k(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?ie(l)?f[u]=k(l.text+c):""!==c&&f.push(k(c)):ie(c)&&ie(l)?f[u]=k(l.text+c.text):(i(t._isVList)&&o(c.tag)&&r(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+s+"__"),f.push(c)));return f}(e):void 0}function ie(e){return o(e)&&o(e.text)&&!1===e.isComment}function ae(e,t){return(e.__esModule||Cr&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function se(e){return e.isComment&&e.asyncFactory}function ce(e){if(Array.isArray(e))for(var t=0;t=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function He(e){this._init(e)}function qe(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=G(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)_e(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)we(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,rr.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),o[r]=a,a}}function Ke(e){return e&&(e.Ctor.options.name||e.tag)}function We(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function ze(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Ke(a.componentOptions);s&&!t(s)&&Je(n,i,r,o)}}}function Je(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}function Xe(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Qe(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Qe(t,n.data));return function(e,t){return o(e)||o(t)?Ze(e,Ye(t)):""}(t.staticClass,t.class)}function Qe(e,t){return{staticClass:Ze(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Ze(e,t){return e?t?e+" "+t:e:t||""}function Ye(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?ft(e,t,n):$o(t)?ko(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ao(t)?e.setAttribute(t,ko(n)||"false"===n?"false":"true"):Io(t)?ko(n)?e.removeAttributeNS(Oo,To(t)):e.setAttributeNS(Oo,t,n):ft(e,t,n)}function ft(e,t,n){if(ko(n))e.removeAttribute(t);else{if(dr&&!pr&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}function dt(e,t){var n=t.elm,i=t.data,a=e.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xe(t),c=n._transitionClasses;o(c)&&(s=Ze(s,Ye(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function pt(e){function t(){(a||(a=[])).push(e.slice(v,o).trim()),v=o+1}var n,r,o,i,a,s=!1,c=!1,u=!1,l=!1,f=0,d=0,p=0,v=0;for(o=0;o=0&&" "===(m=e.charAt(h));h--);m&&qo.test(m)||(l=!0)}}else void 0===i?(v=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==v&&t(),a)for(o=0;o-1?{exp:e.slice(0,mo),key:'"'+e.slice(mo+1)+'"'}:{exp:e,key:null};for(vo=e,mo=go=yo=0;!It();)Tt(ho=Ot())?Et(ho):91===ho&&kt(ho);return{exp:e.slice(0,go),key:e.slice(go+1,yo)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ot(){return vo.charCodeAt(++mo)}function It(){return mo>=po}function Tt(e){return 34===e||39===e}function kt(e){var t=1;for(go=mo;!It();)if(Tt(e=Ot()))Et(e);else if(91===e&&t++,93===e&&t--,0===t){yo=mo;break}}function Et(e){for(var t=e;!It()&&(e=Ot())!==t;);}function St(e,t,n,r,o){var i;t=(i=t)._withTask||(i._withTask=function(){Vr=!0;var e=i.apply(null,arguments);return Vr=!1,e}),n&&(t=function(e,t,n){var r=_o;return function o(){null!==e.apply(null,arguments)&&Nt(t,o,n,r)}}(t,e,r)),_o.addEventListener(e,t,gr?{capture:r,passive:o}:r)}function Nt(e,t,n,r){(r||_o).removeEventListener(e,t._withTask||t,n)}function Lt(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};_o=t.elm,function(e){if(o(e[Ko])){var t=dr?"change":"input";e[t]=[].concat(e[Ko],e[t]||[]),delete e[Ko]}o(e[Wo])&&(e.change=[].concat(e[Wo],e.change||[]),delete e[Wo])}(n),te(n,i,St,Nt,t.context),_o=void 0}}function Dt(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,i,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=y({},c)),s)r(c[n])&&(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=i;var u=r(i)?"":String(i);jt(a,u)&&(a.value=u)}else a[n]=i}}}function jt(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return d(n)!==d(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}function Rt(e){var t=Pt(e.style);return e.staticStyle?y(e.staticStyle,t):t}function Pt(e){return Array.isArray(e)?_(e):"string"==typeof e?Xo(e):e}function Mt(e,t){var n=t.data,i=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=t.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,d=Pt(t.data.style)||{};t.data.normalizedStyle=o(d.__ob__)?y({},d):d;var p=function(e,t){for(var n,r={},o=e;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=Rt(o.data))&&y(r,n);(n=Rt(e.data))&&y(r,n);for(var i=e;i=i.parent;)i.data&&(n=Rt(i.data))&&y(r,n);return r}(t);for(s in f)r(p[s])&&Yo(c,s,"");for(s in p)(a=p[s])!==f[s]&&Yo(c,s,null==a?"":a)}}function Bt(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ft(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Vt(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,ri(e.name||"v")),y(t,e),t}return"string"==typeof e?ri(e):void 0}}function Gt(e){fi(function(){fi(e)})}function Ut(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Bt(e,t))}function Ht(e,t){e._transitionClasses&&v(e._transitionClasses,t),Ft(e,t)}function qt(e,t,n){var r=Kt(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===ii?ci:li,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=ii,l=a,f=i.length):t===ai?u>0&&(n=ai,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ii:ai:null)?n===ii?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ii&&di.test(r[si+"Property"])}}function Wt(e,t){for(;e.length1}function Yt(e,t){!0!==t.data.show&&Jt(t)}function en(e,t,n){tn(e,t,n),(dr||vr)&&setTimeout(function(){tn(e,t,n)},0)}function tn(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(w(rn(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function nn(e,t){return t.every(function(t){return!w(t,e)})}function rn(e){return"_value"in e?e._value:e.value}function on(e){e.target.composing=!0}function an(e){e.target.composing&&(e.target.composing=!1,sn(e.target,"input"))}function sn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function cn(e){return!e.componentInstance||e.data&&e.data.transition?e:cn(e.componentInstance._vnode)}function un(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?un(ce(t.children)):e}function ln(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Jn(i)]=o[i];return t}function fn(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function dn(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function pn(e){e.data.newPos=e.elm.getBoundingClientRect()}function vn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function hn(e,t){var n=t?xi(t):wi;if(n.test(e)){for(var r,o,i,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(o=r.index)>c&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=pt(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=o+r[0].length}return c=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var o,i,a=[],s=t.expectHTML,c=t.isUnaryTag||er,u=t.canBeLeftOpenTag||er,l=0;e;){if(o=e,i&&Xi(i)){var f=0,d=i.toLowerCase(),p=Qi[d]||(Qi[d]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=e.replace(p,function(e,n,r){return f=r.length,Xi(d)||"noscript"===d||(n=n.replace(//g,"$1").replace(//g,"$1")),na(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(d,l-f,l)}else{var h=e.indexOf("<");if(0===h){if(Pi.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(Mi.test(e)){var g=e.indexOf("]>");if(g>=0){n(g+2);continue}}var y=e.match(Ri);if(y){n(y[0].length);continue}var _=e.match(ji);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var w=function(){var t=e.match(Li);if(t){var r,o,i={tagName:t[1],attrs:[],start:l};for(n(t[0].length);!(r=e.match(Di))&&(o=e.match(Ei));)n(o[0].length),i.attrs.push(o);if(r)return i.unarySlash=r[1],n(r[0].length),i.end=l,i}}();if(w){(function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&ki(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,d=new Array(f),p=0;p=0){for(x=e.slice(h);!(ji.test(x)||Li.test(x)||Pi.test(x)||Mi.test(x)||(A=x.indexOf("<",1))<0);)h+=A,x=e.slice(h);C=e.substring(0,h),n(h)}h<0&&(C=e,e=""),t.chars&&C&&t.chars(C)}if(e===o){t.chars&&t.chars(e);break}}r()}(e,{warn:Fi,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||Wi(e);dr&&"svg"===l&&(a=function(e){for(var t=[],n=0;n':'
',Oa.innerHTML.indexOf(" ")>0}var Gn,Un=Object.freeze({}),Hn=Object.prototype.toString,qn=p("slot,component",!0),Kn=p("key,ref,slot,slot-scope,is"),Wn=Object.prototype.hasOwnProperty,zn=/-(\w)/g,Jn=m(function(e){return e.replace(zn,function(e,t){return t?t.toUpperCase():""})}),Xn=m(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Qn=/\B([A-Z])/g,Zn=m(function(e){return e.replace(Qn,"-$1").toLowerCase()}),Yn=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n},er=function(e,t,n){return!1},tr=function(e){return e},nr="data-server-rendered",rr=["component","directive","filter"],or=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],ir={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:er,isReservedAttr:er,isUnknownElement:er,getTagNamespace:b,parsePlatformTagName:tr,mustUseProp:er,_lifecycleHooks:or},ar=/[^\w.$]/,sr="__proto__"in{},cr="undefined"!=typeof window,ur="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,lr=ur&&WXEnvironment.platform.toLowerCase(),fr=cr&&window.navigator.userAgent.toLowerCase(),dr=fr&&/msie|trident/.test(fr),pr=fr&&fr.indexOf("msie 9.0")>0,vr=fr&&fr.indexOf("edge/")>0,hr=(fr&&fr.indexOf("android"),fr&&/iphone|ipad|ipod|ios/.test(fr)||"ios"===lr),mr=(fr&&/chrome\/\d+/.test(fr),{}.watch),gr=!1;if(cr)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){gr=!0}}),window.addEventListener("test-passive",null,yr)}catch(e){}var _r,br=function(){return void 0===Gn&&(Gn=!cr&&!ur&&void 0!==t&&"server"===t.process.env.VUE_ENV),Gn},wr=cr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Cr="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys);_r="undefined"!=typeof Set&&O(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var xr=b,Ar=0,$r=function(){this.id=Ar++,this.subs=[]};$r.prototype.addSub=function(e){this.subs.push(e)},$r.prototype.removeSub=function(e){v(this.subs,e)},$r.prototype.depend=function(){$r.target&&$r.target.addDep(this)},$r.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;teo&&Jr[n].id>e.id;)n--;Jr.splice(n+1,0,e)}else Jr.push(e);Zr||(Zr=!0,Z(ye))}}(this)},no.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){z(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},no.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},no.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},no.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var ro={enumerable:!0,configurable:!0,get:b,set:b},oo={lazy:!0};Re(Pe.prototype);var io={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;io.prepatch(i,i)}else(e.componentInstance=function(e,t,n,r){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return o(a)&&(i.render=a.render,i.staticRenderFns=a.staticRenderFns),new e.componentOptions.Ctor(i)}(e,zr,n,r)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==Un);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||Un,e.$listeners=n||Un,t&&e.$options.props){S(!1);for(var a=e._props,s=e.$options._propKeys||[],c=0;c1?g(n):n;for(var r=g(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Je(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return ir}};Object.defineProperty(e,"config",t),e.util={warn:xr,extend:y,mergeOptions:G,defineReactive:j},e.set=R,e.delete=P,e.nextTick=Z,e.options=Object.create(null),rr.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,fo),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=g(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=G(this.options,e),this}}(e),qe(e),function(e){rr.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(He),Object.defineProperty(He.prototype,"$isServer",{get:br}),Object.defineProperty(He.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(He,"FunctionalRenderContext",{value:Pe}),He.version="2.5.17";var po,vo,ho,mo,go,yo,_o,bo,wo=p("style,class"),Co=p("input,textarea,option,select,progress"),xo=function(e,t,n){return"value"===n&&Co(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ao=p("contenteditable,draggable,spellcheck"),$o=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oo="http://www.w3.org/1999/xlink",Io=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},To=function(e){return Io(e)?e.slice(6,e.length):""},ko=function(e){return null==e||!1===e},Eo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},So=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),No=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Lo=function(e){return So(e)||No(e)},Do=Object.create(null),jo=p("text,number,password,search,email,tel,url"),Ro=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Eo[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Po={create:function(e,t){nt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(nt(e,!0),nt(t))},destroy:function(e){nt(e,!0)}},Mo=new Ir("",{},[]),Bo=["create","activate","update","remove","destroy"],Fo={create:it,update:it,destroy:function(e){it(e,Mo)}},Vo=Object.create(null),Go=[Po,Fo],Uo={create:ut,update:ut},Ho={create:dt,update:dt},qo=/[\w).+\-_$\]]/,Ko="__r",Wo="__c",zo={create:Lt,update:Lt},Jo={create:Dt,update:Dt},Xo=m(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),Qo=/^--/,Zo=/\s*!important$/,Yo=function(e,t,n){if(Qo.test(t))e.style.setProperty(t,n);else if(Zo.test(n))e.style.setProperty(t,n.replace(Zo,""),"important");else{var r=ti(t);if(Array.isArray(n))for(var o=0,i=n.length;op?v(e,r(i[b+1])?null:i[b+1].elm,i,d,b,a):d>b&&m(0,t,f,p)}(c,d,p,a,s):o(p)?(o(e.text)&&O.setTextContent(c,""),v(c,null,p,0,p.length-1,a)):o(d)?m(0,d,0,d.length-1):o(e.text)&&O.setTextContent(c,""):e.text!==t.text&&O.setTextContent(c,t.text),o(f)&&o(u=f.hook)&&o(u=u.postpatch)&&u(e,t)}}}function b(e,t,n){if(i(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1?Do[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Do[e]=/HTMLUnknownElement/.test(t.toString())},y(He.options.directives,hi),y(He.options.components,_i),He.prototype.__patch__=cr?pi:b,He.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=kr),ge(e,"beforeMount"),new no(e,function(){e._update(e._render(),n)},b,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,ge(e,"mounted")),e}(this,e=e&&cr?tt(e):void 0,t)},cr&&setTimeout(function(){ir.devtools&&wr&&wr.emit("init",He)},0);var bi,wi=/\{\{((?:.|\n)+?)\}\}/g,Ci=/[-.*+?^${}()|[\]\/\\]/g,xi=m(function(e){var t=e[0].replace(Ci,"\\$&"),n=e[1].replace(Ci,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),Ai={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=xt(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ct(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},$i={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=xt(e,"style");n&&(e.staticStyle=JSON.stringify(Xo(n)));var r=Ct(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Oi=function(e){return(bi=bi||document.createElement("div")).innerHTML=e,bi.textContent -},Ii=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ti=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ki=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ei=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Si="[a-zA-Z_][\\w\\-\\.]*",Ni="((?:"+Si+"\\:)?"+Si+")",Li=new RegExp("^<"+Ni),Di=/^\s*(\/?)>/,ji=new RegExp("^<\\/"+Ni+"[^>]*>"),Ri=/^]+>/i,Pi=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Yi=/&(?:lt|gt|quot|amp);/g,ea=/&(?:lt|gt|quot|amp|#10|#9);/g,ta=p("pre,textarea",!0),na=function(e,t){return e&&ta(e)&&"\n"===t[0]},ra=/^@|^v-on:/,oa=/^v-|^@|^:/,ia=/([^]*?)\s+(?:in|of)\s+([^]*)/,aa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,sa=/^\(|\)$/g,ca=/:(.*)$/,ua=/^:|^v-bind:/,la=/\.[^.]+/g,fa=m(Oi),da=/^xmlns:NS\d+/,pa=/^NS\d+:/,va=[Ai,$i,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ct(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var o=xt(e,"v-if",!0),i=o?"&&("+o+")":"",a=null!=xt(e,"v-else",!0),s=xt(e,"v-else-if",!0),c=xn(e);bn(c),_t(c,"type","checkbox"),_n(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+i,wn(c,{exp:c.if,block:c});var u=xn(e);xt(u,"v-for",!0),_t(u,"type","radio"),_n(u,t),wn(c,{exp:"("+n+")==='radio'"+i,block:u});var l=xn(e);return xt(l,"v-for",!0),_t(l,":type",n),_n(l,t),wn(c,{exp:o,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}],ha={expectHTML:!0,modules:va,directives:{model:function(e,t,n){var r=t.value,o=t.modifiers,i=e.tag,a=e.attrsMap.type;if(e.component)return At(e,r,o),!1;if("select"===i)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+$t(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),wt(e,"change",r,null,!0)}(e,r,o);else if("input"===i&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,o=Ct(e,"value")||"null",i=Ct(e,"true-value")||"true",a=Ct(e,"false-value")||"false";gt(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),wt(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$t(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$t(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$t(t,"$$c")+"}",null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=Ct(e,"value")||"null";gt(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),wt(e,"change",$t(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Ko:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=$t(t,l);c&&(f="if($event.target.composing)return;"+f),gt(e,"value","("+t+")"),wt(e,u,f,null,!0),(s||a)&&wt(e,"blur","$forceUpdate()")}(e,r,o);else if(!ir.isReservedTag(i))return At(e,r,o),!1;return!0},text:function(e,t){t.value&>(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&>(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Ii,mustUseProp:xo,canBeLeftOpenTag:Ti,isReservedTag:Lo,getTagNamespace:et,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(va)},ma=m(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))}),ga=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,ya=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ba={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},wa=function(e){return"if("+e+")return null;"},Ca={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:wa("$event.target !== $event.currentTarget"),ctrl:wa("!$event.ctrlKey"),shift:wa("!$event.shiftKey"),alt:wa("!$event.altKey"),meta:wa("!$event.metaKey"),left:wa("'button' in $event && $event.button !== 0"),middle:wa("'button' in $event && $event.button !== 1"),right:wa("'button' in $event && $event.button !== 2")},xa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:b},Aa=function(e){this.options=e,this.warn=e.warn||ht,this.transforms=mt(e.modules,"transformCode"),this.dataGenFns=mt(e.modules,"genData"),this.directives=y(y({},xa),e.directives);var t=e.isReservedTag||er;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var $a,Oa,Ia=($a=function(e,t){var n=yn(e.trim(),t);!1!==t.optimize&&An(n,t);var r=Tn(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),o=[],i=[];if(r.warn=function(e,t){(t?i:o).push(e)},n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=y(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);var s=$a(t,r);return s.errors=o,s.tips=i,s}return{compile:t,compileToFunctions:function(e){var t=Object.create(null);return function(n,r,o){(r=y({},r)).warn,delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(t[i])return t[i];var a=e(n,r),s={},c=[];return s.render=Fn(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Fn(e,c)}),t[i]=s}}(t)}})(ha).compileToFunctions,Ta=!!cr&&Vn(!1),ka=!!cr&&Vn(!0),Ea=m(function(e){var t=tt(e);return t&&t.innerHTML}),Sa=He.prototype.$mount;He.prototype.$mount=function(e,t){if((e=e&&tt(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ea(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var o=Ia(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:ka,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return Sa.call(this,e,t)},He.compile=Ia,e.exports=He}).call(t,n("DuR2"),n("162o").setImmediate)},"JP+z":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){c.headers[e]={}}),i.forEach(["post","put","patch"],function(e){c.headers[e]=i.merge(s)}),e.exports=c}).call(t,n("W2nU"))},Re3r:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},TNV1:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},W2nU:function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function i(){v&&d&&(v=!1,d.length?p=d.concat(p):h=-1,p.length&&a())}function a(){if(!v){var e=o(i);v=!0;for(var t=p.length;t;){for(d=p,p=[];++h1)for(var n=1;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},p1b6:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},qRfI:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},t8qj:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},tIFN:function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n("cGG2"),i=n("JP+z"),a=n("XmWM"),s=n("KCLY"),c=r(s);c.Axios=a,c.create=function(e){return r(o.merge(s,e))},c.Cancel=n("dVOP"),c.CancelToken=n("cWxy"),c.isCancel=n("pBtG"),c.all=function(e){return Promise.all(e)},c.spread=n("pxG4"),e.exports=c,e.exports.default=c},thJu:function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,o=String(e),i="",a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|a)||(s="=",a%1);i+=s.charAt(63&t>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new r;t=t<<8|n}return i}},xLtR:function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n("cGG2"),i=n("TNV1"),a=n("pBtG"),s=n("KCLY"),c=n("dIwP"),u=n("qRfI");e.exports=function(e){return r(e),e.baseURL&&!c(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}}}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,n){"use strict";function r(e,t){for(var n=0;nn+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(o)};e.ajax({type:"GET",url:o.subpagesDirectory+t,dataType:"html",beforeSend:function(){e(i.VIEW_SCRIPT).remove()},success:function(r){var o=document.createElement("div");o.innerHTML=r;var i=Array.from(o.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});o.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),e("body").animate({scrollTop:0},0),e(n).html(o),i.length&&a(i),window.location.hash=t},error:function(){window.location.href=o.errorPage}})},n.setUpUrl=function(t){e(i.NAV_LINK).removeClass(r.ACTIVE),e(i.NAV_DROPDOWN).removeClass(r.OPEN),e(i.NAV_DROPDOWN+':has(a[href="'+t.replace(/^\//,"").split("?")[0]+'"])').addClass(r.OPEN),e(i.NAV_ITEM+' a[href="'+t.replace(/^\//,"").split("?")[0]+'"]').addClass(r.ACTIVE),this.loadPage(t)},n.loadBlank=function(e){window.open(e)},n.loadTop=function(e){window.location=e},n._getConfig=function(e){return e=Object.assign({},s,e)},n._addEventListeners=function(){var t=this;e(document).on(a.CLICK,i.NAV_LINK+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data("coreui.ajaxLoad"),o="object"==typeof n&&n;r||(r=new t(this,o),e(this).data("coreui.ajaxLoad",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}},{key:"Default",get:function(){return s}}]),t}();return e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=n,c._jQueryInterface},c}(t),i=function(e){return-1!==e.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)},s=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);i(r)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},c=function(e){var t="aside-menu",n="coreui.aside-menu",r=e.fn[t],a={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},i={BODY:"body",ASIDE_MENU:".aside-menu",ASIDE_MENU_TOGGLER:".aside-menu-toggler"},c=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],u=function(){function t(e){this._element=e,this._addEventListeners()}return t.prototype._addEventListeners=function(){e(i.ASIDE_MENU_TOGGLER).on(a.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,c)})},t._jQueryInterface=function(){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(this),r.data(n,o))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(a.LOAD_DATA_API,function(){var t=e(i.ASIDE_MENU);u._jQueryInterface.call(t)}),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface},u}(t),u=function(e){var t="sidebar",r=e.fn[t],a={transition:400},i={ACTIVE:"active",BRAND_MINIMIZED:"brand-minimized",NAV_DROPDOWN_TOGGLE:"nav-dropdown-toggle",OPEN:"open",SIDEBAR_FIXED:"sidebar-fixed",SIDEBAR_MINIMIZED:"sidebar-minimized",SIDEBAR_OFF_CANVAS:"sidebar-off-canvas"},c={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},u={BODY:"body",BRAND_MINIMIZER:".brand-minimizer",NAV_DROPDOWN_TOGGLE:".nav-dropdown-toggle",NAV_DROPDOWN_ITEMS:".nav-dropdown-items",NAV_ITEM:".nav-item",NAV_LINK:".nav-link",NAVIGATION_CONTAINER:".sidebar-nav",NAVIGATION:".sidebar-nav > .nav",SIDEBAR:".sidebar",SIDEBAR_MINIMIZER:".sidebar-minimizer",SIDEBAR_TOGGLER:".sidebar-toggler"},l=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],d=function(){function t(e){this._element=e,this.ps=null,this.perfectScrollbar(c.INIT),this.setActiveLink(),this._addEventListeners()}var r=t.prototype;return r.perfectScrollbar=function(e){var t=this;void 0!==n&&(e!==c.INIT||document.body.classList.contains(i.SIDEBAR_MINIMIZED)||(this.ps=this.makeScrollbar()),e===c.DESTROY&&this.destroyScrollbar(),e===c.TOGGLE&&(document.body.classList.contains(i.SIDEBAR_MINIMIZED)?this.destroyScrollbar():this.ps=this.makeScrollbar()),e!==c.UPDATE||document.body.classList.contains(i.SIDEBAR_MINIMIZED)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar()},a.transition))},r.makeScrollbar=function(e){void 0===e&&(e=u.NAVIGATION_CONTAINER);var t=new n(document.querySelector(e),{suppressScrollX:!0});return t.isRtl=!1,t},r.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},r.setActiveLink=function(){e(u.NAVIGATION).find(u.NAV_LINK).each(function(t,n){var r=n,o=String(window.location).split("?")[0];"#"===o.substr(o.length-1)&&(o=o.slice(0,-1)),e(e(r))[0].href===o&&e(r).addClass(i.ACTIVE).parents(u.NAV_DROPDOWN_ITEMS).add(r).each(function(t,n){r=n,e(r).parent().addClass(i.OPEN)})})},r._addEventListeners=function(){var t=this;e(u.BRAND_MINIMIZER).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e(u.BODY).toggleClass(i.BRAND_MINIMIZED)}),e(u.NAV_DROPDOWN_TOGGLE).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation();var r=n.target;e(r).parent().toggleClass(i.OPEN),t.perfectScrollbar(c.UPDATE)}),e(u.SIDEBAR_MINIMIZER).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation(),e(u.BODY).toggleClass(i.SIDEBAR_MINIMIZED),t.perfectScrollbar(c.TOGGLE)}),e(u.SIDEBAR_TOGGLER).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,l)}),e(u.NAVIGATION+" > "+u.NAV_ITEM+" "+u.NAV_LINK+":not("+u.NAV_DROPDOWN_TOGGLE+")").on(c.CLICK,function(){document.body.classList.remove("sidebar-show")})},t._jQueryInterface=function(){return this.each(function(){var n=e(this),r=n.data("coreui.sidebar");r||(r=new t(this),n.data("coreui.sidebar",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(c.LOAD_DATA_API,function(){var t=e(u.SIDEBAR);d._jQueryInterface.call(t)}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=r,d._jQueryInterface},d}(t),l=function(){for(var e={},t=document.styleSheets,n="",r=t.length-1;r>-1;r--){for(var o=t[r].cssRules,a=o.length-1;a>-1;a--)if(".ie-custom-properties"===o[a].selectorText){n=o[a].cssText;break}if(n)break}return n=n.substring(n.lastIndexOf("{")+1,n.lastIndexOf("}")),n.split(";").forEach(function(t){if(t){var n=t.split(": ")[0],r=t.split(": ")[1];n&&r&&(e["--"+n.trim()]=r.trim())}}),e},d=function(){return Boolean(document.documentMode)&&document.documentMode>=10},f=function(e){return e.match(/^--.*/i)},I=function(e,t){void 0===t&&(t=document.body);var n;if(f(e)&&d()){n=l()[e]}else n=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},p=function(e){if(void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var t,n,r;return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},h=function(e,t){if(void 0===t&&(t=100),void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var n,r,o;return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},g=function(e){if(void 0===e)throw new Error("Hex color is not defined");if("transparent"===e)return"#00000000";var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)};!function(e){if(void 0===e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=I,window.hexToRgb=p,window.hexToRgba=h,window.rgbToHex=g,e.AjaxLoad=a,e.AsideMenu=c,e.Sidebar=u,Object.defineProperty(e,"__esModule",{value:!0})}); diff --git a/public/js/ninja.min.js b/public/js/ninja.min.js index 913b030339bd..4b3d19feea70 100644 --- a/public/js/ninja.min.js +++ b/public/js/ninja.min.js @@ -1,4 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,n){"use strict";function r(e,t){for(var n=0;nn+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(o)};e.ajax({type:"GET",url:o.subpagesDirectory+t,dataType:"html",beforeSend:function(){e(a.VIEW_SCRIPT).remove()},success:function(r){var o=document.createElement("div");o.innerHTML=r;var a=Array.from(o.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});o.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),e("body").animate({scrollTop:0},0),e(n).html(o),a.length&&i(a),window.location.hash=t},error:function(){window.location.href=o.errorPage}})},n.setUpUrl=function(t){e(a.NAV_LINK).removeClass(r.ACTIVE),e(a.NAV_DROPDOWN).removeClass(r.OPEN),e(a.NAV_DROPDOWN+':has(a[href="'+t.replace(/^\//,"").split("?")[0]+'"])').addClass(r.OPEN),e(a.NAV_ITEM+' a[href="'+t.replace(/^\//,"").split("?")[0]+'"]').addClass(r.ACTIVE),this.loadPage(t)},n.loadBlank=function(e){window.open(e)},n.loadTop=function(e){window.location=e},n._getConfig=function(e){return e=Object.assign({},s,e)},n._addEventListeners=function(){var t=this;e(document).on(i.CLICK,a.NAV_LINK+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data("coreui.ajaxLoad"),o="object"==typeof n&&n;r||(r=new t(this,o),e(this).data("coreui.ajaxLoad",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}},{key:"Default",get:function(){return s}}]),t}();return e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=n,c._jQueryInterface},c}(t),a=function(e){return-1!==e.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)},s=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);a(r)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},c=function(e){var t="aside-menu",n="coreui.aside-menu",r=e.fn[t],i={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},a={BODY:"body",ASIDE_MENU:".aside-menu",ASIDE_MENU_TOGGLER:".aside-menu-toggler"},c=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],u=function(){function t(e){this._element=e,this._addEventListeners()}return t.prototype._addEventListeners=function(){e(a.ASIDE_MENU_TOGGLER).on(i.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,c)})},t._jQueryInterface=function(){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(this),r.data(n,o))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(i.LOAD_DATA_API,function(){var t=e(a.ASIDE_MENU);u._jQueryInterface.call(t)}),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface},u}(t),u=function(e){var t="sidebar",r=e.fn[t],i={transition:400},a={ACTIVE:"active",BRAND_MINIMIZED:"brand-minimized",NAV_DROPDOWN_TOGGLE:"nav-dropdown-toggle",OPEN:"open",SIDEBAR_FIXED:"sidebar-fixed",SIDEBAR_MINIMIZED:"sidebar-minimized",SIDEBAR_OFF_CANVAS:"sidebar-off-canvas"},c={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},u={BODY:"body",BRAND_MINIMIZER:".brand-minimizer",NAV_DROPDOWN_TOGGLE:".nav-dropdown-toggle",NAV_DROPDOWN_ITEMS:".nav-dropdown-items",NAV_ITEM:".nav-item",NAV_LINK:".nav-link",NAVIGATION_CONTAINER:".sidebar-nav",NAVIGATION:".sidebar-nav > .nav",SIDEBAR:".sidebar",SIDEBAR_MINIMIZER:".sidebar-minimizer",SIDEBAR_TOGGLER:".sidebar-toggler"},l=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],f=function(){function t(e){this._element=e,this.ps=null,this.perfectScrollbar(c.INIT),this.setActiveLink(),this._addEventListeners()}var r=t.prototype;return r.perfectScrollbar=function(e){var t=this;void 0!==n&&(e!==c.INIT||document.body.classList.contains(a.SIDEBAR_MINIMIZED)||(this.ps=this.makeScrollbar()),e===c.DESTROY&&this.destroyScrollbar(),e===c.TOGGLE&&(document.body.classList.contains(a.SIDEBAR_MINIMIZED)?this.destroyScrollbar():this.ps=this.makeScrollbar()),e!==c.UPDATE||document.body.classList.contains(a.SIDEBAR_MINIMIZED)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar()},i.transition))},r.makeScrollbar=function(e){void 0===e&&(e=u.NAVIGATION_CONTAINER);var t=new n(document.querySelector(e),{suppressScrollX:!0});return t.isRtl=!1,t},r.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},r.setActiveLink=function(){e(u.NAVIGATION).find(u.NAV_LINK).each(function(t,n){var r=n,o=String(window.location).split("?")[0];"#"===o.substr(o.length-1)&&(o=o.slice(0,-1)),e(e(r))[0].href===o&&e(r).addClass(a.ACTIVE).parents(u.NAV_DROPDOWN_ITEMS).add(r).each(function(t,n){r=n,e(r).parent().addClass(a.OPEN)})})},r._addEventListeners=function(){var t=this;e(u.BRAND_MINIMIZER).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e(u.BODY).toggleClass(a.BRAND_MINIMIZED)}),e(u.NAV_DROPDOWN_TOGGLE).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation();var r=n.target;e(r).parent().toggleClass(a.OPEN),t.perfectScrollbar(c.UPDATE)}),e(u.SIDEBAR_MINIMIZER).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation(),e(u.BODY).toggleClass(a.SIDEBAR_MINIMIZED),t.perfectScrollbar(c.TOGGLE)}),e(u.SIDEBAR_TOGGLER).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,l)}),e(u.NAVIGATION+" > "+u.NAV_ITEM+" "+u.NAV_LINK+":not("+u.NAV_DROPDOWN_TOGGLE+")").on(c.CLICK,function(){document.body.classList.remove("sidebar-show")})},t._jQueryInterface=function(){return this.each(function(){var n=e(this),r=n.data("coreui.sidebar");r||(r=new t(this),n.data("coreui.sidebar",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(c.LOAD_DATA_API,function(){var t=e(u.SIDEBAR);f._jQueryInterface.call(t)}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=r,f._jQueryInterface},f}(t),l=function(){for(var e={},t=document.styleSheets,n="",r=t.length-1;r>-1;r--){for(var o=t[r].cssRules,i=o.length-1;i>-1;i--)if(".ie-custom-properties"===o[i].selectorText){n=o[i].cssText;break}if(n)break}return n=n.substring(n.lastIndexOf("{")+1,n.lastIndexOf("}")),n.split(";").forEach(function(t){if(t){var n=t.split(": ")[0],r=t.split(": ")[1];n&&r&&(e["--"+n.trim()]=r.trim())}}),e},f=function(){return Boolean(document.documentMode)&&document.documentMode>=10},d=function(e){return e.match(/^--.*/i)},p=function(e,t){void 0===t&&(t=document.body);var n;if(d(e)&&f()){n=l()[e]}else n=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},v=function(e){if(void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var t,n,r;return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},h=function(e,t){if(void 0===t&&(t=100),void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var n,r,o;return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},m=function(e){if(void 0===e)throw new Error("Hex color is not defined");if("transparent"===e)return"#00000000";var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)};!function(e){if(void 0===e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=p,window.hexToRgb=v,window.hexToRgba=h,window.rgbToHex=m,e.AjaxLoad=i,e.AsideMenu=c,e.Sidebar=u,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=0)}({0:function(e,t,n){e.exports=n("F1kH")},"162o":function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("mypn"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n("DuR2"))},"21It":function(e,t,n){"use strict";var r=n("FtD3");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"5VQ+":function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},"7GwW":function(e,t,n){"use strict";var r=n("cGG2"),o=n("21It"),i=n("DQCr"),a=n("oJlt"),s=n("GHBc"),c=n("FtD3"),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n("thJu");e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest,v="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(e.url)||(p=new window.XDomainRequest,v="onload",h=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";d.Authorization="Basic "+u(m+":"+g)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[v]=function(){if(p&&(4===p.readyState||h)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:e,request:p};o(t,l,r),p=null}},p.onerror=function(){l(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n("p1b6"),_=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},DQCr:function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n("cGG2");e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},"Dlg+":function(e,t,n){window.axios=n("mtWM"),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},F1kH:function(e,t,n){n("Dlg+"),window.Vue=n("I3G/"),Vue.config.devtools=!0,window.axios=n("mtWM"),window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},window.onload=function(){new Vue({el:"#app"})}},FtD3:function(e,t,n){"use strict";var r=n("t8qj");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},GHBc:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},"I3G/":function(e,t,n){"use strict";(function(t,n){function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===Hn.call(e)}function u(e){return"[object RegExp]"===Hn.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function h(e,t){return Wn.call(e,t)}function m(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function g(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function _(e){for(var t={},n=0;n-1)if(i&&!h(o,"default"))a=!1;else if(""===a||a===Zn(e)){var c=W(String,o.type);(c<0||s0&&(ie((c=e(c,(n||"")+"_"+s))[0])&&ie(l)&&(f[u]=k(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?ie(l)?f[u]=k(l.text+c):""!==c&&f.push(k(c)):ie(c)&&ie(l)?f[u]=k(l.text+c.text):(i(t._isVList)&&o(c.tag)&&r(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+s+"__"),f.push(c)));return f}(e):void 0}function ie(e){return o(e)&&o(e.text)&&!1===e.isComment}function ae(e,t){return(e.__esModule||Cr&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function se(e){return e.isComment&&e.asyncFactory}function ce(e){if(Array.isArray(e))for(var t=0;t=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function He(e){this._init(e)}function qe(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=G(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)_e(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)we(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,rr.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),o[r]=a,a}}function Ke(e){return e&&(e.Ctor.options.name||e.tag)}function We(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function ze(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Ke(a.componentOptions);s&&!t(s)&&Je(n,i,r,o)}}}function Je(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}function Xe(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Qe(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Qe(t,n.data));return function(e,t){return o(e)||o(t)?Ze(e,Ye(t)):""}(t.staticClass,t.class)}function Qe(e,t){return{staticClass:Ze(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Ze(e,t){return e?t?e+" "+t:e:t||""}function Ye(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?ft(e,t,n):$o(t)?ko(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ao(t)?e.setAttribute(t,ko(n)||"false"===n?"false":"true"):Io(t)?ko(n)?e.removeAttributeNS(Oo,To(t)):e.setAttributeNS(Oo,t,n):ft(e,t,n)}function ft(e,t,n){if(ko(n))e.removeAttribute(t);else{if(dr&&!pr&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}function dt(e,t){var n=t.elm,i=t.data,a=e.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xe(t),c=n._transitionClasses;o(c)&&(s=Ze(s,Ye(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function pt(e){function t(){(a||(a=[])).push(e.slice(v,o).trim()),v=o+1}var n,r,o,i,a,s=!1,c=!1,u=!1,l=!1,f=0,d=0,p=0,v=0;for(o=0;o=0&&" "===(m=e.charAt(h));h--);m&&qo.test(m)||(l=!0)}}else void 0===i?(v=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==v&&t(),a)for(o=0;o-1?{exp:e.slice(0,mo),key:'"'+e.slice(mo+1)+'"'}:{exp:e,key:null};for(vo=e,mo=go=yo=0;!It();)Tt(ho=Ot())?Et(ho):91===ho&&kt(ho);return{exp:e.slice(0,go),key:e.slice(go+1,yo)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ot(){return vo.charCodeAt(++mo)}function It(){return mo>=po}function Tt(e){return 34===e||39===e}function kt(e){var t=1;for(go=mo;!It();)if(Tt(e=Ot()))Et(e);else if(91===e&&t++,93===e&&t--,0===t){yo=mo;break}}function Et(e){for(var t=e;!It()&&(e=Ot())!==t;);}function St(e,t,n,r,o){var i;t=(i=t)._withTask||(i._withTask=function(){Vr=!0;var e=i.apply(null,arguments);return Vr=!1,e}),n&&(t=function(e,t,n){var r=_o;return function o(){null!==e.apply(null,arguments)&&Nt(t,o,n,r)}}(t,e,r)),_o.addEventListener(e,t,gr?{capture:r,passive:o}:r)}function Nt(e,t,n,r){(r||_o).removeEventListener(e,t._withTask||t,n)}function Lt(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};_o=t.elm,function(e){if(o(e[Ko])){var t=dr?"change":"input";e[t]=[].concat(e[Ko],e[t]||[]),delete e[Ko]}o(e[Wo])&&(e.change=[].concat(e[Wo],e.change||[]),delete e[Wo])}(n),te(n,i,St,Nt,t.context),_o=void 0}}function Dt(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,i,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=y({},c)),s)r(c[n])&&(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=i;var u=r(i)?"":String(i);jt(a,u)&&(a.value=u)}else a[n]=i}}}function jt(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return d(n)!==d(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}function Rt(e){var t=Pt(e.style);return e.staticStyle?y(e.staticStyle,t):t}function Pt(e){return Array.isArray(e)?_(e):"string"==typeof e?Xo(e):e}function Mt(e,t){var n=t.data,i=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=t.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,d=Pt(t.data.style)||{};t.data.normalizedStyle=o(d.__ob__)?y({},d):d;var p=function(e,t){for(var n,r={},o=e;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=Rt(o.data))&&y(r,n);(n=Rt(e.data))&&y(r,n);for(var i=e;i=i.parent;)i.data&&(n=Rt(i.data))&&y(r,n);return r}(t);for(s in f)r(p[s])&&Yo(c,s,"");for(s in p)(a=p[s])!==f[s]&&Yo(c,s,null==a?"":a)}}function Bt(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ft(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Vt(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,ri(e.name||"v")),y(t,e),t}return"string"==typeof e?ri(e):void 0}}function Gt(e){fi(function(){fi(e)})}function Ut(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Bt(e,t))}function Ht(e,t){e._transitionClasses&&v(e._transitionClasses,t),Ft(e,t)}function qt(e,t,n){var r=Kt(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===ii?ci:li,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=ii,l=a,f=i.length):t===ai?u>0&&(n=ai,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ii:ai:null)?n===ii?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ii&&di.test(r[si+"Property"])}}function Wt(e,t){for(;e.length1}function Yt(e,t){!0!==t.data.show&&Jt(t)}function en(e,t,n){tn(e,t,n),(dr||vr)&&setTimeout(function(){tn(e,t,n)},0)}function tn(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(w(rn(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function nn(e,t){return t.every(function(t){return!w(t,e)})}function rn(e){return"_value"in e?e._value:e.value}function on(e){e.target.composing=!0}function an(e){e.target.composing&&(e.target.composing=!1,sn(e.target,"input"))}function sn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function cn(e){return!e.componentInstance||e.data&&e.data.transition?e:cn(e.componentInstance._vnode)}function un(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?un(ce(t.children)):e}function ln(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Jn(i)]=o[i];return t}function fn(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function dn(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function pn(e){e.data.newPos=e.elm.getBoundingClientRect()}function vn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function hn(e,t){var n=t?xi(t):wi;if(n.test(e)){for(var r,o,i,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(o=r.index)>c&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=pt(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=o+r[0].length}return c=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var o,i,a=[],s=t.expectHTML,c=t.isUnaryTag||er,u=t.canBeLeftOpenTag||er,l=0;e;){if(o=e,i&&Xi(i)){var f=0,d=i.toLowerCase(),p=Qi[d]||(Qi[d]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=e.replace(p,function(e,n,r){return f=r.length,Xi(d)||"noscript"===d||(n=n.replace(//g,"$1").replace(//g,"$1")),na(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(d,l-f,l)}else{var h=e.indexOf("<");if(0===h){if(Pi.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(Mi.test(e)){var g=e.indexOf("]>");if(g>=0){n(g+2);continue}}var y=e.match(Ri);if(y){n(y[0].length);continue}var _=e.match(ji);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var w=function(){var t=e.match(Li);if(t){var r,o,i={tagName:t[1],attrs:[],start:l};for(n(t[0].length);!(r=e.match(Di))&&(o=e.match(Ei));)n(o[0].length),i.attrs.push(o);if(r)return i.unarySlash=r[1],n(r[0].length),i.end=l,i}}();if(w){(function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&ki(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,d=new Array(f),p=0;p=0){for(x=e.slice(h);!(ji.test(x)||Li.test(x)||Pi.test(x)||Mi.test(x)||(A=x.indexOf("<",1))<0);)h+=A,x=e.slice(h);C=e.substring(0,h),n(h)}h<0&&(C=e,e=""),t.chars&&C&&t.chars(C)}if(e===o){t.chars&&t.chars(e);break}}r()}(e,{warn:Fi,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||Wi(e);dr&&"svg"===l&&(a=function(e){for(var t=[],n=0;n':'
',Oa.innerHTML.indexOf(" ")>0}var Gn,Un=Object.freeze({}),Hn=Object.prototype.toString,qn=p("slot,component",!0),Kn=p("key,ref,slot,slot-scope,is"),Wn=Object.prototype.hasOwnProperty,zn=/-(\w)/g,Jn=m(function(e){return e.replace(zn,function(e,t){return t?t.toUpperCase():""})}),Xn=m(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Qn=/\B([A-Z])/g,Zn=m(function(e){return e.replace(Qn,"-$1").toLowerCase()}),Yn=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n},er=function(e,t,n){return!1},tr=function(e){return e},nr="data-server-rendered",rr=["component","directive","filter"],or=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],ir={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:er,isReservedAttr:er,isUnknownElement:er,getTagNamespace:b,parsePlatformTagName:tr,mustUseProp:er,_lifecycleHooks:or},ar=/[^\w.$]/,sr="__proto__"in{},cr="undefined"!=typeof window,ur="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,lr=ur&&WXEnvironment.platform.toLowerCase(),fr=cr&&window.navigator.userAgent.toLowerCase(),dr=fr&&/msie|trident/.test(fr),pr=fr&&fr.indexOf("msie 9.0")>0,vr=fr&&fr.indexOf("edge/")>0,hr=(fr&&fr.indexOf("android"),fr&&/iphone|ipad|ipod|ios/.test(fr)||"ios"===lr),mr=(fr&&/chrome\/\d+/.test(fr),{}.watch),gr=!1;if(cr)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){gr=!0}}),window.addEventListener("test-passive",null,yr)}catch(e){}var _r,br=function(){return void 0===Gn&&(Gn=!cr&&!ur&&void 0!==t&&"server"===t.process.env.VUE_ENV),Gn},wr=cr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Cr="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys);_r="undefined"!=typeof Set&&O(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var xr=b,Ar=0,$r=function(){this.id=Ar++,this.subs=[]};$r.prototype.addSub=function(e){this.subs.push(e)},$r.prototype.removeSub=function(e){v(this.subs,e)},$r.prototype.depend=function(){$r.target&&$r.target.addDep(this)},$r.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;teo&&Jr[n].id>e.id;)n--;Jr.splice(n+1,0,e)}else Jr.push(e);Zr||(Zr=!0,Z(ye))}}(this)},no.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){z(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},no.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},no.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},no.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var ro={enumerable:!0,configurable:!0,get:b,set:b},oo={lazy:!0};Re(Pe.prototype);var io={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;io.prepatch(i,i)}else(e.componentInstance=function(e,t,n,r){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return o(a)&&(i.render=a.render,i.staticRenderFns=a.staticRenderFns),new e.componentOptions.Ctor(i)}(e,zr,n,r)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==Un);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||Un,e.$listeners=n||Un,t&&e.$options.props){S(!1);for(var a=e._props,s=e.$options._propKeys||[],c=0;c1?g(n):n;for(var r=g(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Je(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return ir}};Object.defineProperty(e,"config",t),e.util={warn:xr,extend:y,mergeOptions:G,defineReactive:j},e.set=R,e.delete=P,e.nextTick=Z,e.options=Object.create(null),rr.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,fo),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=g(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=G(this.options,e),this}}(e),qe(e),function(e){rr.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(He),Object.defineProperty(He.prototype,"$isServer",{get:br}),Object.defineProperty(He.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(He,"FunctionalRenderContext",{value:Pe}),He.version="2.5.17";var po,vo,ho,mo,go,yo,_o,bo,wo=p("style,class"),Co=p("input,textarea,option,select,progress"),xo=function(e,t,n){return"value"===n&&Co(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ao=p("contenteditable,draggable,spellcheck"),$o=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oo="http://www.w3.org/1999/xlink",Io=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},To=function(e){return Io(e)?e.slice(6,e.length):""},ko=function(e){return null==e||!1===e},Eo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},So=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),No=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Lo=function(e){return So(e)||No(e)},Do=Object.create(null),jo=p("text,number,password,search,email,tel,url"),Ro=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Eo[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Po={create:function(e,t){nt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(nt(e,!0),nt(t))},destroy:function(e){nt(e,!0)}},Mo=new Ir("",{},[]),Bo=["create","activate","update","remove","destroy"],Fo={create:it,update:it,destroy:function(e){it(e,Mo)}},Vo=Object.create(null),Go=[Po,Fo],Uo={create:ut,update:ut},Ho={create:dt,update:dt},qo=/[\w).+\-_$\]]/,Ko="__r",Wo="__c",zo={create:Lt,update:Lt},Jo={create:Dt,update:Dt},Xo=m(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),Qo=/^--/,Zo=/\s*!important$/,Yo=function(e,t,n){if(Qo.test(t))e.style.setProperty(t,n);else if(Zo.test(n))e.style.setProperty(t,n.replace(Zo,""),"important");else{var r=ti(t);if(Array.isArray(n))for(var o=0,i=n.length;op?v(e,r(i[b+1])?null:i[b+1].elm,i,d,b,a):d>b&&m(0,t,f,p)}(c,d,p,a,s):o(p)?(o(e.text)&&O.setTextContent(c,""),v(c,null,p,0,p.length-1,a)):o(d)?m(0,d,0,d.length-1):o(e.text)&&O.setTextContent(c,""):e.text!==t.text&&O.setTextContent(c,t.text),o(f)&&o(u=f.hook)&&o(u=u.postpatch)&&u(e,t)}}}function b(e,t,n){if(i(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1?Do[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Do[e]=/HTMLUnknownElement/.test(t.toString())},y(He.options.directives,hi),y(He.options.components,_i),He.prototype.__patch__=cr?pi:b,He.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=kr),ge(e,"beforeMount"),new no(e,function(){e._update(e._render(),n)},b,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,ge(e,"mounted")),e}(this,e=e&&cr?tt(e):void 0,t)},cr&&setTimeout(function(){ir.devtools&&wr&&wr.emit("init",He)},0);var bi,wi=/\{\{((?:.|\n)+?)\}\}/g,Ci=/[-.*+?^${}()|[\]\/\\]/g,xi=m(function(e){var t=e[0].replace(Ci,"\\$&"),n=e[1].replace(Ci,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),Ai={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=xt(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ct(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},$i={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=xt(e,"style");n&&(e.staticStyle=JSON.stringify(Xo(n)));var r=Ct(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Oi=function(e){return(bi=bi||document.createElement("div")).innerHTML=e,bi.textContent -},Ii=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ti=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ki=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ei=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Si="[a-zA-Z_][\\w\\-\\.]*",Ni="((?:"+Si+"\\:)?"+Si+")",Li=new RegExp("^<"+Ni),Di=/^\s*(\/?)>/,ji=new RegExp("^<\\/"+Ni+"[^>]*>"),Ri=/^]+>/i,Pi=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Yi=/&(?:lt|gt|quot|amp);/g,ea=/&(?:lt|gt|quot|amp|#10|#9);/g,ta=p("pre,textarea",!0),na=function(e,t){return e&&ta(e)&&"\n"===t[0]},ra=/^@|^v-on:/,oa=/^v-|^@|^:/,ia=/([^]*?)\s+(?:in|of)\s+([^]*)/,aa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,sa=/^\(|\)$/g,ca=/:(.*)$/,ua=/^:|^v-bind:/,la=/\.[^.]+/g,fa=m(Oi),da=/^xmlns:NS\d+/,pa=/^NS\d+:/,va=[Ai,$i,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ct(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var o=xt(e,"v-if",!0),i=o?"&&("+o+")":"",a=null!=xt(e,"v-else",!0),s=xt(e,"v-else-if",!0),c=xn(e);bn(c),_t(c,"type","checkbox"),_n(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+i,wn(c,{exp:c.if,block:c});var u=xn(e);xt(u,"v-for",!0),_t(u,"type","radio"),_n(u,t),wn(c,{exp:"("+n+")==='radio'"+i,block:u});var l=xn(e);return xt(l,"v-for",!0),_t(l,":type",n),_n(l,t),wn(c,{exp:o,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}],ha={expectHTML:!0,modules:va,directives:{model:function(e,t,n){var r=t.value,o=t.modifiers,i=e.tag,a=e.attrsMap.type;if(e.component)return At(e,r,o),!1;if("select"===i)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+$t(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),wt(e,"change",r,null,!0)}(e,r,o);else if("input"===i&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,o=Ct(e,"value")||"null",i=Ct(e,"true-value")||"true",a=Ct(e,"false-value")||"false";gt(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),wt(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$t(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$t(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$t(t,"$$c")+"}",null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=Ct(e,"value")||"null";gt(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),wt(e,"change",$t(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Ko:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=$t(t,l);c&&(f="if($event.target.composing)return;"+f),gt(e,"value","("+t+")"),wt(e,u,f,null,!0),(s||a)&&wt(e,"blur","$forceUpdate()")}(e,r,o);else if(!ir.isReservedTag(i))return At(e,r,o),!1;return!0},text:function(e,t){t.value&>(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&>(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Ii,mustUseProp:xo,canBeLeftOpenTag:Ti,isReservedTag:Lo,getTagNamespace:et,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(va)},ma=m(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))}),ga=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,ya=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ba={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},wa=function(e){return"if("+e+")return null;"},Ca={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:wa("$event.target !== $event.currentTarget"),ctrl:wa("!$event.ctrlKey"),shift:wa("!$event.shiftKey"),alt:wa("!$event.altKey"),meta:wa("!$event.metaKey"),left:wa("'button' in $event && $event.button !== 0"),middle:wa("'button' in $event && $event.button !== 1"),right:wa("'button' in $event && $event.button !== 2")},xa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:b},Aa=function(e){this.options=e,this.warn=e.warn||ht,this.transforms=mt(e.modules,"transformCode"),this.dataGenFns=mt(e.modules,"genData"),this.directives=y(y({},xa),e.directives);var t=e.isReservedTag||er;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var $a,Oa,Ia=($a=function(e,t){var n=yn(e.trim(),t);!1!==t.optimize&&An(n,t);var r=Tn(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),o=[],i=[];if(r.warn=function(e,t){(t?i:o).push(e)},n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=y(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);var s=$a(t,r);return s.errors=o,s.tips=i,s}return{compile:t,compileToFunctions:function(e){var t=Object.create(null);return function(n,r,o){(r=y({},r)).warn,delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(t[i])return t[i];var a=e(n,r),s={},c=[];return s.render=Fn(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Fn(e,c)}),t[i]=s}}(t)}})(ha).compileToFunctions,Ta=!!cr&&Vn(!1),ka=!!cr&&Vn(!0),Ea=m(function(e){var t=tt(e);return t&&t.innerHTML}),Sa=He.prototype.$mount;He.prototype.$mount=function(e,t){if((e=e&&tt(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ea(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var o=Ia(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:ka,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return Sa.call(this,e,t)},He.compile=Ia,e.exports=He}).call(t,n("DuR2"),n("162o").setImmediate)},"JP+z":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){c.headers[e]={}}),i.forEach(["post","put","patch"],function(e){c.headers[e]=i.merge(s)}),e.exports=c}).call(t,n("W2nU"))},Re3r:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},TNV1:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},W2nU:function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function i(){v&&d&&(v=!1,d.length?p=d.concat(p):h=-1,p.length&&a())}function a(){if(!v){var e=o(i);v=!0;for(var t=p.length;t;){for(d=p,p=[];++h1)for(var n=1;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},p1b6:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},qRfI:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},t8qj:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},tIFN:function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n("cGG2"),i=n("JP+z"),a=n("XmWM"),s=n("KCLY"),c=r(s);c.Axios=a,c.create=function(e){return r(o.merge(s,e))},c.Cancel=n("dVOP"),c.CancelToken=n("cWxy"),c.isCancel=n("pBtG"),c.all=function(e){return Promise.all(e)},c.spread=n("pxG4"),e.exports=c,e.exports.default=c},thJu:function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,o=String(e),i="",a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|a)||(s="=",a%1);i+=s.charAt(63&t>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new r;t=t<<8|n}return i}},xLtR:function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n("cGG2"),i=n("TNV1"),a=n("pBtG"),s=n("KCLY"),c=n("dIwP"),u=n("qRfI");e.exports=function(e){return r(e),e.baseURL&&!c(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}}}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,n){"use strict";function r(e,t){for(var n=0;nn+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(o)};e.ajax({type:"GET",url:o.subpagesDirectory+t,dataType:"html",beforeSend:function(){e(i.VIEW_SCRIPT).remove()},success:function(r){var o=document.createElement("div");o.innerHTML=r;var i=Array.from(o.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});o.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),e("body").animate({scrollTop:0},0),e(n).html(o),i.length&&a(i),window.location.hash=t},error:function(){window.location.href=o.errorPage}})},n.setUpUrl=function(t){e(i.NAV_LINK).removeClass(r.ACTIVE),e(i.NAV_DROPDOWN).removeClass(r.OPEN),e(i.NAV_DROPDOWN+':has(a[href="'+t.replace(/^\//,"").split("?")[0]+'"])').addClass(r.OPEN),e(i.NAV_ITEM+' a[href="'+t.replace(/^\//,"").split("?")[0]+'"]').addClass(r.ACTIVE),this.loadPage(t)},n.loadBlank=function(e){window.open(e)},n.loadTop=function(e){window.location=e},n._getConfig=function(e){return e=Object.assign({},s,e)},n._addEventListeners=function(){var t=this;e(document).on(a.CLICK,i.NAV_LINK+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data("coreui.ajaxLoad"),o="object"==typeof n&&n;r||(r=new t(this,o),e(this).data("coreui.ajaxLoad",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}},{key:"Default",get:function(){return s}}]),t}();return e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=n,c._jQueryInterface},c}(t),i=function(e){return-1!==e.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)},s=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);i(r)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},c=function(e){var t="aside-menu",n="coreui.aside-menu",r=e.fn[t],a={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},i={BODY:"body",ASIDE_MENU:".aside-menu",ASIDE_MENU_TOGGLER:".aside-menu-toggler"},c=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],u=function(){function t(e){this._element=e,this._addEventListeners()}return t.prototype._addEventListeners=function(){e(i.ASIDE_MENU_TOGGLER).on(a.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,c)})},t._jQueryInterface=function(){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(this),r.data(n,o))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(a.LOAD_DATA_API,function(){var t=e(i.ASIDE_MENU);u._jQueryInterface.call(t)}),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface},u}(t),u=function(e){var t="sidebar",r=e.fn[t],a={transition:400},i={ACTIVE:"active",BRAND_MINIMIZED:"brand-minimized",NAV_DROPDOWN_TOGGLE:"nav-dropdown-toggle",OPEN:"open",SIDEBAR_FIXED:"sidebar-fixed",SIDEBAR_MINIMIZED:"sidebar-minimized",SIDEBAR_OFF_CANVAS:"sidebar-off-canvas"},c={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},u={BODY:"body",BRAND_MINIMIZER:".brand-minimizer",NAV_DROPDOWN_TOGGLE:".nav-dropdown-toggle",NAV_DROPDOWN_ITEMS:".nav-dropdown-items",NAV_ITEM:".nav-item",NAV_LINK:".nav-link",NAVIGATION_CONTAINER:".sidebar-nav",NAVIGATION:".sidebar-nav > .nav",SIDEBAR:".sidebar",SIDEBAR_MINIMIZER:".sidebar-minimizer",SIDEBAR_TOGGLER:".sidebar-toggler"},l=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],d=function(){function t(e){this._element=e,this.ps=null,this.perfectScrollbar(c.INIT),this.setActiveLink(),this._addEventListeners()}var r=t.prototype;return r.perfectScrollbar=function(e){var t=this;void 0!==n&&(e!==c.INIT||document.body.classList.contains(i.SIDEBAR_MINIMIZED)||(this.ps=this.makeScrollbar()),e===c.DESTROY&&this.destroyScrollbar(),e===c.TOGGLE&&(document.body.classList.contains(i.SIDEBAR_MINIMIZED)?this.destroyScrollbar():this.ps=this.makeScrollbar()),e!==c.UPDATE||document.body.classList.contains(i.SIDEBAR_MINIMIZED)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar()},a.transition))},r.makeScrollbar=function(e){void 0===e&&(e=u.NAVIGATION_CONTAINER);var t=new n(document.querySelector(e),{suppressScrollX:!0});return t.isRtl=!1,t},r.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},r.setActiveLink=function(){e(u.NAVIGATION).find(u.NAV_LINK).each(function(t,n){var r=n,o=String(window.location).split("?")[0];"#"===o.substr(o.length-1)&&(o=o.slice(0,-1)),e(e(r))[0].href===o&&e(r).addClass(i.ACTIVE).parents(u.NAV_DROPDOWN_ITEMS).add(r).each(function(t,n){r=n,e(r).parent().addClass(i.OPEN)})})},r._addEventListeners=function(){var t=this;e(u.BRAND_MINIMIZER).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e(u.BODY).toggleClass(i.BRAND_MINIMIZED)}),e(u.NAV_DROPDOWN_TOGGLE).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation();var r=n.target;e(r).parent().toggleClass(i.OPEN),t.perfectScrollbar(c.UPDATE)}),e(u.SIDEBAR_MINIMIZER).on(c.CLICK,function(n){n.preventDefault(),n.stopPropagation(),e(u.BODY).toggleClass(i.SIDEBAR_MINIMIZED),t.perfectScrollbar(c.TOGGLE)}),e(u.SIDEBAR_TOGGLER).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;s(t,l)}),e(u.NAVIGATION+" > "+u.NAV_ITEM+" "+u.NAV_LINK+":not("+u.NAV_DROPDOWN_TOGGLE+")").on(c.CLICK,function(){document.body.classList.remove("sidebar-show")})},t._jQueryInterface=function(){return this.each(function(){var n=e(this),r=n.data("coreui.sidebar");r||(r=new t(this),n.data("coreui.sidebar",r))})},o(t,null,[{key:"VERSION",get:function(){return"2.0.18"}}]),t}();return e(window).on(c.LOAD_DATA_API,function(){var t=e(u.SIDEBAR);d._jQueryInterface.call(t)}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=r,d._jQueryInterface},d}(t),l=function(){for(var e={},t=document.styleSheets,n="",r=t.length-1;r>-1;r--){for(var o=t[r].cssRules,a=o.length-1;a>-1;a--)if(".ie-custom-properties"===o[a].selectorText){n=o[a].cssText;break}if(n)break}return n=n.substring(n.lastIndexOf("{")+1,n.lastIndexOf("}")),n.split(";").forEach(function(t){if(t){var n=t.split(": ")[0],r=t.split(": ")[1];n&&r&&(e["--"+n.trim()]=r.trim())}}),e},d=function(){return Boolean(document.documentMode)&&document.documentMode>=10},f=function(e){return e.match(/^--.*/i)},I=function(e,t){void 0===t&&(t=document.body);var n;if(f(e)&&d()){n=l()[e]}else n=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},p=function(e){if(void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var t,n,r;return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},h=function(e,t){if(void 0===t&&(t=100),void 0===e)throw new Error("Hex color is not defined");if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");var n,r,o;return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},g=function(e){if(void 0===e)throw new Error("Hex color is not defined");if("transparent"===e)return"#00000000";var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)};!function(e){if(void 0===e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=I,window.hexToRgb=p,window.hexToRgba=h,window.rgbToHex=g,e.AjaxLoad=a,e.AsideMenu=c,e.Sidebar=u,Object.defineProperty(e,"__esModule",{value:!0})}); diff --git a/resources/js/app.js b/resources/js/app.js index 05e6c9294e04..0a4ec72e0f62 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -6,7 +6,7 @@ */ require('./bootstrap'); -window.Vue = require('vue'); +//window.Vue = require('vue'); /* Development only*/ Vue.config.devtools = true; @@ -31,7 +31,7 @@ Vue.component('client-primary-address', require('./components/client/ClientPrima Vue.component('generic-address', require('./components/generic/Address.vue')); Vue.component('client-edit-form', require('./components/client/ClientEditForm.vue')); Vue.component('contact-edit', require('./components/client/ClientContactEdit.vue')); - */ + window.onload = function () { const app = new Vue({ @@ -39,3 +39,4 @@ window.onload = function () { }); } +*/ \ No newline at end of file diff --git a/resources/js/components/client/ClientEditForm.vue b/resources/js/components/client/ClientEditForm.vue index 53486cfc5399..345c1000c3dd 100644 --- a/resources/js/components/client/ClientEditForm.vue +++ b/resources/js/components/client/ClientEditForm.vue @@ -89,7 +89,6 @@ export default { submit() { this.errors = {}; - axios.put('/clients/' + this.client.hash_id, this.client).then(response => { this.client = response.data; console.dir(response); diff --git a/resources/js/ts/client/client_edit.ts b/resources/js/ts/client/client_edit.ts new file mode 100644 index 000000000000..8201c8db0763 --- /dev/null +++ b/resources/js/ts/client/client_edit.ts @@ -0,0 +1,79 @@ +//import * as Vue from 'vue'; +import Vue from 'vue'; +import axios, { AxiosRequestConfig, AxiosPromise } from 'axios'; + +var VueApp: any = Vue; + +declare var clientObject: any; + +var App = new VueApp({ + el : '#client_edit', + data: function () { + return { + 'client': [], + 'errors': [], + } + }, + mounted(this: any) { + //this.client = {!! $client !!}; + this.client = clientObject; + console.dir(this.client); + }, + beforeMount: function () { + console.log('before mount') + }, + created:function() { + console.dir('created') + }, + updated:function() { + console.dir('updated') + }, + methods:{ + remove(this: any, contact:any){ + let index = this.client.contacts.indexOf(contact); + this.client.contacts.splice(index, 1); + }, + add(this: any){ + console.dir('i will add a contact here') + this.client.contacts.push({first_name: '', last_name: '', email: '', phone: ''}); + window.scrollTo(0, document.body.scrollHeight || document.documentElement.scrollHeight); + this.$nextTick(() => { + let index = this.client.contacts.length - 1; + let input = this.$refs.first_name[index]; + input.focus(); + }); + }, + submit(this: any) { + this.errors = {}; + + axios.put('/clients/', this.client).then(response => { +// axios.put('/clients/' + {{ $client->present()->id }}, this.client).then(response => { + this.client = response.data; + }).catch(error => { + if (error.response.status === 422) { + this.errors = error.response.data.errors || {}; + } + else if(error.response.status === 419) { + //csrf token has expired, we'll need to force a page reload + } + }); + }, + copy(type: any) { + if(type.includes('copy_billing')){ + this.client.shipping_address1 = this.client.address1; + this.client.shipping_address2 = this.client.address2; + this.client.shipping_city = this.client.city; + this.client.shipping_state = this.client.state; + this.client.shipping_postal_code = this.client.postal_code; + this.client.shipping_country_id = this.client.country_id; + }else { + this.client.address1 = this.client.shipping_address1; + this.client.address2 = this.client.shipping_address2; + this.client.city = this.client.shipping_city; + this.client.state = this.client.shipping_state; + this.client.postal_code = this.client.shipping_postal_code; + this.client.country_id = this.client.shipping_country_id; + } + } + } + }); \ No newline at end of file diff --git a/resources/views/client/edit.blade.php b/resources/views/client/edit.blade.php index c8cc71a87e1f..f7202c6930aa 100644 --- a/resources/views/client/edit.blade.php +++ b/resources/views/client/edit.blade.php @@ -2,29 +2,12 @@ @section('body')
+ {{ Breadcrumbs::render('clients.edit', $client) }} -
+
-
-
- - - -
-
@@ -42,7 +25,7 @@
{{ trans('texts.contact_information') }} - +
@@ -53,56 +36,22 @@
-
+
+ +
+
+ +
+
+
- + + @endsection \ No newline at end of file diff --git a/resources/views/client/partial/client_details.blade.php b/resources/views/client/partial/client_details.blade.php index 855a06b897d9..4fa29c23d423 100644 --- a/resources/views/client/partial/client_details.blade.php +++ b/resources/views/client/partial/client_details.blade.php @@ -4,7 +4,8 @@
- + +
@{{ errors.name[0] }}
diff --git a/resources/views/client/partial/contact_details.blade.php b/resources/views/client/partial/contact_details.blade.php index 3b1351020eb9..43c9fde7bfa7 100644 --- a/resources/views/client/partial/contact_details.blade.php +++ b/resources/views/client/partial/contact_details.blade.php @@ -3,7 +3,7 @@
- +
@@ -42,7 +42,7 @@
- +
diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000000..fbd43bf6ca84 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,62 @@ +{ + "compilerOptions": { + /* Basic Options */ + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', -> 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": false, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + // "outDir": "./", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "removeComments": true, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + "strict": false, /* Enable all strict type-checking options. */ + "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* Enable strict null checks. */ + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + // "noUnusedLocals": true, /* Report errors on unused locals. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + }, + "include": [ + "resources/js/ts/**/*" + ] +} \ No newline at end of file diff --git a/webpack.mix.js b/webpack.mix.js index 82b090758e89..71a372c1d5f1 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -11,11 +11,27 @@ const mix = require('laravel-mix'); | */ +mix.webpackConfig({ + resolve: { + extensions: ['.ts'] + }, + module: { + rules: [ + { + test: /\.ts$/, + loader: 'ts-loader' + } + ] + } + }); + +mix.js('resources/js/ts/client/client_edit.ts', 'public/js'); + mix.js('resources/js/app.js', 'public/js/vendor'); mix.scripts([ 'node_modules/@coreui/coreui/dist/js/coreui.js', - 'public/js/vendor/app.js' + //'public/js/vendor/app.js' ], 'public/js/ninja.js'); mix.minify('public/js/ninja.js'); @@ -31,5 +47,4 @@ mix.minify('public/css/ninja.css'); mix.copyDirectory('node_modules/font-awesome/fonts', 'public/fonts'); - mix.version();