Repository: constkhi/vue-simple-alert Branch: master Commit: cc0eaa54990d Files: 31 Total size: 192.7 KB Directory structure: gitextract_lv5soxqi/ ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .vscode/ │ └── settings.json ├── LICENSE ├── README.md ├── docs/ │ ├── css/ │ │ └── app.css │ ├── index.html │ └── js/ │ ├── app.js │ └── chunk-vendors.js ├── example/ │ ├── .browserslistrc │ ├── .editorconfig │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package.json │ ├── postcss.config.js │ ├── public/ │ │ └── index.html │ ├── src/ │ │ ├── App.vue │ │ ├── components/ │ │ │ └── GithubRibbon.vue │ │ ├── main.ts │ │ ├── shims-tsx.d.ts │ │ └── shims-vue.d.ts │ ├── tsconfig.json │ └── vue.config.js ├── package.json ├── src/ │ └── index.ts └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # EditorConfig defines and maintains consistent coding styles between different # editors and IDEs: http://EditorConfig.org/ # Top-most EditorConfig file root = true # All files [*] # Widely Supported by Editors indent_style = space indent_size = 2 tab_width = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true # Supported By A Limited Number of Editors max_line_length = 80 # Domain-Specific Properties quote_type = double spaces_around_operators = true ================================================ FILE: .eslintignore ================================================ **/node_modules/* **/dist/* **/lib/* ================================================ FILE: .eslintrc.js ================================================ module.exports = { root: true, env: { node: true }, extends: [ "plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended" ], rules: { "no-console": "error", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" }, parserOptions: { parser: "@typescript-eslint/parser" } }; ================================================ FILE: .gitignore ================================================ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # Misc .DS_Store # Dependency directories node_modules/ # Local history .history/ # Dist /dist/ /lib/ ================================================ FILE: .vscode/settings.json ================================================ { "typescript.tsdk": "node_modules/typescript/lib" } ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2019 constkhi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Vue Simple Alert ![screenshot](./example/src/assets/screenshot.gif) [![version](https://img.shields.io/npm/v/vue-simple-alert)](https://www.npmjs.com/package/vue-simple-alert) [![Vue.js version](https://badgen.net/badge/vue.js/2.x/4fc08d)](https://vuejs.org) [![total downloads](https://img.shields.io/npm/dt/vue-simple-alert)](https://www.npmjs.com/package/vue-simple-alert) [![downloads](https://img.shields.io/npm/dw/vue-simple-alert)](https://www.npmjs.com/package/vue-simple-alert) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/97f03b2ea96049fbaff5591a94a7d0aa)](https://www.codacy.com/manual/constkhi/vue-simple-alert?utm_source=github.com&utm_medium=referral&utm_content=constkhi/vue-simple-alert&utm_campaign=Badge_Grade) [![license](https://img.shields.io/npm/l/vue-simple-alert)](LICENSE) Simple _**alert()**_, _**confirm()**_, _**prompt()**_ for Vue.js, using sweetalert2. ## Demo Check out live demo ## Features - Provides simple _alert()_, _confirm()_, _prompt()_ like DOM Window methods. - Based on sweetalert2. - Installed as a Vue.js plugin. - Promise based API. - Support typescript. ## Install ```bash npm i vue-simple-alert ``` ## Basic Usage ### install plugin ```javascript // main.js import Vue from "vue"; import VueSimpleAlert from "vue-simple-alert"; Vue.use(VueSimpleAlert); ``` ### Alert ```javascript // in any component this.$alert("Hello Vue Simple Alert."); ``` ### Confirm ```javascript // in any component this.$confirm("Are you sure?").then(() => { //do something... }); ``` ### Prompt ```javascript // in any component this.$prompt("Input your name").then(text => { // do somthing with text }); ``` ## Advanced Usage ### Global options Global options can be set when initialize plugin. Refer to [sweetalert2 documentation](https://sweetalert2.github.io/#configuration) ```javascript // main.js import Vue from "vue"; import VueSimpleAlert from "vue-simple-alert"; Vue.use(VueSimpleAlert, { reverseButtons: true }); ``` ### More advanced usage You can use sweetalert2's _**fire()**_ method through _**\$fire()**_. For detailed usage, refer to [sweetalert2](https://sweetalert2.github.io) documentation. ```javascript // in any component this.$fire({ title: "Title", text: "text", type: "success", timer: 3000 }).then(r => { console.log(r.value); }); ``` ## API ### alert(message?, title?, type?, options?) The _alert()_ method displays an alert box with a specified message and an OK button. - message: string > Optional. Specifies the text to display in the alert box - title: string > Optional. Specifies title of the alert box - type: 'success' | 'error' | 'warning' | 'info' | 'question' > Optional. Specifies icon type. - options: SweetAlertOptions > Optional. Advanced options. Refer to [sweetalert2 documentation](https://sweetalert2.github.io/#configuration). - returns: Promise\ > Will be resolved with true when alert box closed. ### confirm(message?, title?, type?, options?) The confirm() method displays a dialog box with a specified message, along with an OK and a Cancel button. - message: string > Optional. Specifies the text to display in the confirm box - title: string > Optional. Specifies title of the confirm box - type: 'success' | 'error' | 'warning' | 'info' | 'question' > Optional. Specifies icon type. - options: SweetAlertOptions > Optional. Advanced options. Refer to [sweetalert2 documentation](https://sweetalert2.github.io/#configuration). - returns: Promise\ > Will be resolved when OK button clicked. If confirm box closed by any other reason, this promise will be rejected. ### prompt(message, defaultText?, title?, type?, options?) The prompt() method displays a dialog box that prompts the user for input. - message: string > Required. Specifies the text to display in the dialog box - defaultText: string > Optional. The default input text - title: string > Optional. Specifies title of the confirm box - type: 'success' | 'error' | 'warning' | 'info' | 'question' > Optional. Specifies icon type. - options: SweetAlertOptions > Optional. Advanced options. Refer to [sweetalert2 documentation](https://sweetalert2.github.io/#configuration). - returns: Promise\ > Will be resolved with input text when OK button clicked. If the user clicks OK without entering any text, promise will be resolved with an empty string. If dialog box closed by any other reason, this promise will be rejected. ## Versioning We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/constkhi/vue-simple-alert/tags). ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details ================================================ FILE: docs/css/app.css ================================================ .github-corner:hover .octo-arm{-webkit-animation:octocat-wave .56s ease-in-out;animation:octocat-wave .56s ease-in-out}@-webkit-keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{-webkit-animation:none;animation:none}.github-corner .octo-arm{-webkit-animation:octocat-wave .56s ease-in-out;animation:octocat-wave .56s ease-in-out}}body,html{height:100%}body{margin:0;background-image:-webkit-gradient(linear,right top,left bottom,from(#b3d7ff),to(#b3ffec));background-image:linear-gradient(to left bottom,#b3d7ff 0,#b3ffec);background-position:initial initial;background-repeat:no-repeat;background-attachment:fixed}#app{font-family:Dosis,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:20px}#header{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#logo{height:100px}h1{font-weight:500;font-size:3rem}h1 small{font-size:1.25rem}h2{font-weight:500;font-size:2rem;margin:0 0 10px}h3{font-weight:200;font-size:1.5rem;text-align:left} ================================================ FILE: docs/index.html ================================================ vue-simple-alert example
================================================ FILE: docs/js/app.js ================================================ (function(t){function e(e){for(var o,i,l=e[0],s=e[1],c=e[2],p=0,m=[];pAdvanced   example",text:"This dialog will be closed after 3 seconds.",footer:"Check out sweetalert2 documentation.",type:"success",showCancelButton:!0,confirmButtonText:" Great!",cancelButtonText:"No, cancel!",reverseButtons:!0,timer:3e3,width:500,animation:!1,customClass:{popup:"animated tada"},padding:"3em",background:"#fff",backdrop:"\n rgba(0,0,123,0.4)\n center left\n no-repeat\n "};this.$fire(e).then((function(e){e.value&&t.$alert(e.value,"Result")}))},e.prototype.advancedExample2=function(){this.$alert("This is advanced alert with custom button text","Example","success",{confirmButtonText:"Got it!"})},e.prototype.advancedExample3=function(){this.$confirm("This is dialog has reversed buttons.","Error","error",{reverseButtons:!0}).then((function(t){console.log(t)})).catch((function(){console.log("OK not selected.")}))},e=l["a"]([Object(s["a"])({components:{GithubRibbon:v}})],e),e}(s["c"]),x=y,w=x,g=(n("034f"),Object(h["a"])(w,a,i,!1,null,null,null)),C=g.exports;o["a"].config.productionTip=!1,o["a"].use(r["a"],{title:"Vue Simple Alert",width:"420px"}),new o["a"]({render:function(t){return t(C)}}).$mount("#app")},cf05:function(t,e,n){t.exports=n.p+"img/logo.png"}}); //# sourceMappingURL=app.js.map ================================================ FILE: docs/js/chunk-vendors.js ================================================ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"01f9":function(t,e,n){"use strict";var o=n("2d00"),r=n("5ca1"),a=n("2aba"),i=n("32e9"),s=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",m="keys",h="values",v=function(){return this};t.exports=function(t,e,n,w,g,y,b){c(n,e,w);var _,x,k,C=function(t){if(!d&&t in P)return P[t];switch(t){case m:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",A=g==h,S=!1,P=t.prototype,$=P[f]||P[p]||g&&P[g],j=$||C(g),E=g?A?C("entries"):j:void 0,T="Array"==e&&P.entries||$;if(T&&(k=u(T.call(new t)),k!==Object.prototype&&k.next&&(l(k,O,!0),o||"function"==typeof k[f]||i(k,f,v))),A&&$&&$.name!==h&&(S=!0,j=function(){return $.call(this)}),o&&!b||!d&&!S&&P[f]||i(P,f,j),s[e]=j,s[O]=v,g)if(_={values:A?j:C(h),keys:y?j:C(m),entries:E},b)for(x in _)x in P||a(P,x,_[x]);else r(r.P+r.F*(d||S),e,_);return _}},"097d":function(t,e,n){"use strict";var o=n("5ca1"),r=n("8378"),a=n("7726"),i=n("ebd6"),s=n("bcaa");o(o.P+o.R,"Promise",{finally:function(t){var e=i(this,r.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},"0cab":function(t){t.exports=JSON.parse('{"a":"Simple alert(), confirm(), prompt() for Vue.js, using sweetalert2.","b":"1.1.1"}')},"0d58":function(t,e,n){var o=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return o(t,r)}},1495:function(t,e,n){var o=n("86cc"),r=n("cb7c"),a=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,i=a(e),s=i.length,c=0;while(s>c)o.f(t,n=i[c++],e[n]);return t}},1991:function(t,e,n){var o,r,a,i=n("9b43"),s=n("31f4"),c=n("fab2"),l=n("230e"),u=n("7726"),f=u.process,d=u.setImmediate,p=u.clearImmediate,m=u.MessageChannel,h=u.Dispatch,v=0,w={},g="onreadystatechange",y=function(){var t=+this;if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},b=function(t){y.call(t.data)};d&&p||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++v]=function(){s("function"==typeof t?t:Function(t),e)},o(v),v},p=function(t){delete w[t]},"process"==n("2d95")(f)?o=function(t){f.nextTick(i(y,t,1))}:h&&h.now?o=function(t){h.now(i(y,t,1))}:m?(r=new m,a=r.port2,r.port1.onmessage=b,o=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(o=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):o=g in l("script")?function(t){c.appendChild(l("script"))[g]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(i(y,t,1),0)}),t.exports={set:d,clear:p}},"1fa8":function(t,e,n){var o=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(i){var a=t["return"];throw void 0!==a&&o(a.call(t)),i}}},"230e":function(t,e,n){var o=n("d3f4"),r=n("7726").document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},"23c6":function(t,e,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),a="Arguments"==o(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),r))?n:a?o(e):"Object"==(s=o(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"27ee":function(t,e,n){var o=n("23c6"),r=n("2b4c")("iterator"),a=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||a[o(t)]}},2877:function(t,e,n){"use strict";function o(t,e,n,o,r,a,i,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return o}))},"2aba":function(t,e,n){var o=n("7726"),r=n("32e9"),a=n("69a8"),i=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||r(n,i,t[e]?""+t[e]:l.join(String(e)))),t===o?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[i]||s.call(this)}))},"2aeb":function(t,e,n){var o=n("cb7c"),r=n("1495"),a=n("e11e"),i=n("613b")("IE_PROTO"),s=function(){},c="prototype",l=function(){var t,e=n("230e")("iframe"),o=a.length,r="<",i=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+i+"document.F=Object"+r+"/script"+i),t.close(),l=t.F;while(o--)delete l[c][a[o]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=o(t),n=new s,s[c]=null,n[i]=t):n=l(),void 0===e?n:r(n,e)}},"2b0e":function(t,e,n){"use strict";(function(t){ /*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You * Released under the MIT License. */ var n=Object.freeze({});function o(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function a(t){return!0===t}function i(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function f(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return r(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),o=t.split(","),r=0;r-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function _(t){var e=Object.create(null);return function(n){var o=e[n];return o||(e[n]=t(n))}}var x=/-(\w)/g,k=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,A=_((function(t){return t.replace(O,"-$1").toLowerCase()}));function S(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function P(t,e){return t.bind(e)}var $=Function.prototype.bind?P:S;function j(t,e){e=e||0;var n=t.length-e,o=new Array(n);while(n--)o[n]=t[n+e];return o}function E(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,ot=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),rt=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),at={}.watch,it=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,st)}catch(ki){}var ct=function(){return void 0===Y&&(Y=!X&&!G&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},lt=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ft="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=M,mt=0,ht=function(){this.id=mt++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){g(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(a&&!b(r,"default"))i=!1;else if(""===i||i===A(t)){var c=te(String,r.type);(c<0||s0&&(i=Se(i,(e||"")+"_"+n),Ae(i[0])&&Ae(l)&&(u[c]=xt(l.text+i[0].text),i.shift()),u.push.apply(u,i)):s(i)?Ae(l)?u[c]=xt(l.text+i):""!==i&&u.push(xt(i)):Ae(i)&&Ae(l)?u[c]=xt(l.text+i.text):(a(t._isVList)&&r(i.tag)&&o(i.key)&&r(e)&&(i.key="__vlist"+e+"_"+n+"__"),u.push(i)));return u}function Pe(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function $e(t){var e=je(t.$options.inject,t);e&&($t(!1),Object.keys(e).forEach((function(n){Lt(t,n,e[n])})),$t(!0))}function je(t,e){if(t){for(var n=Object.create(null),o=dt?Reflect.ownKeys(t):Object.keys(t),r=0;r0,i=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(i&&o&&o!==n&&s===o.$key&&!a&&!o.$hasNormal)return o;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=Le(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=Be(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),q(r,"$stable",i),q(r,"$key",s),q(r,"$hasNormal",a),r}function Le(t,e,n){var o=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Oe(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:o,enumerable:!0,configurable:!0}),o}function Be(t,e){return function(){return t[e]}}function Ie(t,e){var n,o,a,i,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),o=0,a=t.length;o1?j(n):n;for(var o=j(arguments,1),r='event handler for "'+t+'"',a=0,i=n.length;adocument.createEvent("Event").timeStamp&&(Yn=function(){return Zn.now()})}function Xn(){var t,e;for(Kn=Yn(),Un=!0,zn.sort((function(t,e){return t.id-e.id})),qn=0;qnqn&&zn[n].id>t.id)n--;zn.splice(n+1,0,t)}else zn.push(t);Hn||(Hn=!0,me(Xn))}}var eo=0,no=function(t,e,n,o,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++eo,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};no.prototype.get=function(){var t;wt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ki){if(!this.user)throw ki;ee(ki,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),gt(),this.cleanupDeps()}return t},no.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},no.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},no.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():to(this)},no.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ki){ee(ki,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},no.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},no.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},no.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var oo={enumerable:!0,configurable:!0,get:M,set:M};function ro(t,e,n){oo.get=function(){return this[e][n]},oo.set=function(t){this[e][n]=t},Object.defineProperty(t,n,oo)}function ao(t){t._watchers=[];var e=t.$options;e.props&&io(t,e.props),e.methods&&ho(t,e.methods),e.data?so(t):Mt(t._data={},!0),e.computed&&uo(t,e.computed),e.watch&&e.watch!==at&&vo(t,e.watch)}function io(t,e){var n=t.$options.propsData||{},o=t._props={},r=t.$options._propKeys=[],a=!t.$parent;a||$t(!1);var i=function(a){r.push(a);var i=Xt(a,e,n,t);Lt(o,a,i),a in t||ro(t,"_props",a)};for(var s in e)i(s);$t(!0)}function so(t){var e=t.$options.data;e=t._data="function"===typeof e?co(e,t):e||{},u(e)||(e={});var n=Object.keys(e),o=t.$options.props,r=(t.$options.methods,n.length);while(r--){var a=n[r];0,o&&b(o,a)||U(a)||ro(t,"_data",a)}Mt(e,!0)}function co(t,e){wt();try{return t.call(e,e)}catch(ki){return ee(ki,e,"data()"),{}}finally{gt()}}var lo={lazy:!0};function uo(t,e){var n=t._computedWatchers=Object.create(null),o=ct();for(var r in e){var a=e[r],i="function"===typeof a?a:a.get;0,o||(n[r]=new no(t,i||M,M,lo)),r in t||fo(t,r,a)}}function fo(t,e,n){var o=!ct();"function"===typeof n?(oo.get=o?po(e):mo(n),oo.set=M):(oo.get=n.get?o&&!1!==n.cache?po(e):mo(n.get):M,oo.set=n.set||M),Object.defineProperty(t,e,oo)}function po(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function mo(t){return function(){return t.call(this,this)}}function ho(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?M:$(e[n],t)}function vo(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var r=0;r-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ao(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function So(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,r=t._Ctor||(t._Ctor={});if(r[o])return r[o];var a=t.name||n.options.name;var i=function(t){this._init(t)};return i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.cid=e++,i.options=Yt(n.options,t),i["super"]=n,i.options.props&&Po(i),i.options.computed&&$o(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,z.forEach((function(t){i[t]=n[t]})),a&&(i.options.components[a]=i),i.superOptions=n.options,i.extendOptions=t,i.sealedOptions=E({},i.options),r[o]=i,i}}function Po(t){var e=t.options.props;for(var n in e)ro(t.prototype,"_props",n)}function $o(t){var e=t.options.computed;for(var n in e)fo(t.prototype,n,e[n])}function jo(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Eo(t){return t&&(t.Ctor.options.name||t.tag)}function To(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Mo(t,e){var n=t.cache,o=t.keys,r=t._vnode;for(var a in n){var i=n[a];if(i){var s=Eo(i.componentOptions);s&&!e(s)&&Lo(n,a,o,r)}}}function Lo(t,e,n,o){var r=t[e];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),t[e]=null,g(n,e)}bo(Co),go(Co),$n(Co),Mn(Co),gn(Co);var Bo=[String,RegExp,Array],Io={name:"keep-alive",abstract:!0,props:{include:Bo,exclude:Bo,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lo(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Mo(t,(function(t){return To(e,t)}))})),this.$watch("exclude",(function(e){Mo(t,(function(t){return!To(e,t)}))}))},render:function(){var t=this.$slots.default,e=kn(t),n=e&&e.componentOptions;if(n){var o=Eo(n),r=this,a=r.include,i=r.exclude;if(a&&(!o||!To(a,o))||i&&o&&To(i,o))return e;var s=this,c=s.cache,l=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,g(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&Lo(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Do={KeepAlive:Io};function No(t){var e={get:function(){return V}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:E,mergeOptions:Yt,defineReactive:Lt},t.set=Bt,t.delete=It,t.nextTick=me,t.observable=function(t){return Mt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Do),Oo(t),Ao(t),So(t),jo(t)}No(Co),Object.defineProperty(Co.prototype,"$isServer",{get:ct}),Object.defineProperty(Co.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Co,"FunctionalRenderContext",{value:Ge}),Co.version="2.6.10";var Ro=v("style,class"),zo=v("input,textarea,option,select,progress"),Fo=function(t,e,n){return"value"===n&&zo(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vo=v("contenteditable,draggable,spellcheck"),Ho=v("events,caret,typing,plaintext-only"),Uo=function(t,e){return Zo(e)||"false"===e?"false":"contenteditable"===t&&Ho(e)?e:"true"},qo=v("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"),Wo="http://www.w3.org/1999/xlink",Ko=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yo=function(t){return Ko(t)?t.slice(6,t.length):""},Zo=function(t){return null==t||!1===t};function Xo(t){var e=t.data,n=t,o=t;while(r(o.componentInstance))o=o.componentInstance._vnode,o&&o.data&&(e=Go(o.data,e));while(r(n=n.parent))n&&n.data&&(e=Go(e,n.data));return Jo(e.staticClass,e.class)}function Go(t,e){return{staticClass:Qo(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Jo(t,e){return r(t)||r(e)?Qo(t,tr(e)):""}function Qo(t,e){return t?e?t+" "+e:t:e||""}function tr(t){return Array.isArray(t)?er(t):c(t)?nr(t):"string"===typeof t?t:""}function er(t){for(var e,n="",o=0,a=t.length;o-1?cr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:cr[t]=/HTMLUnknownElement/.test(e.toString())}var ur=v("text,number,password,search,email,tel,url");function fr(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function dr(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function pr(t,e){return document.createElementNS(or[t],e)}function mr(t){return document.createTextNode(t)}function hr(t){return document.createComment(t)}function vr(t,e,n){t.insertBefore(e,n)}function wr(t,e){t.removeChild(e)}function gr(t,e){t.appendChild(e)}function yr(t){return t.parentNode}function br(t){return t.nextSibling}function _r(t){return t.tagName}function xr(t,e){t.textContent=e}function kr(t,e){t.setAttribute(e,"")}var Cr=Object.freeze({createElement:dr,createElementNS:pr,createTextNode:mr,createComment:hr,insertBefore:vr,removeChild:wr,appendChild:gr,parentNode:yr,nextSibling:br,tagName:_r,setTextContent:xr,setStyleScope:kr}),Or={create:function(t,e){Ar(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ar(t,!0),Ar(e))},destroy:function(t){Ar(t,!0)}};function Ar(t,e){var n=t.data.ref;if(r(n)){var o=t.context,a=t.componentInstance||t.elm,i=o.$refs;e?Array.isArray(i[n])?g(i[n],a):i[n]===a&&(i[n]=void 0):t.data.refInFor?Array.isArray(i[n])?i[n].indexOf(a)<0&&i[n].push(a):i[n]=[a]:i[n]=a}}var Sr=new yt("",{},[]),Pr=["create","activate","update","remove","destroy"];function $r(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&jr(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&o(e.asyncFactory.error))}function jr(t,e){if("input"!==t.tag)return!0;var n,o=r(n=t.data)&&r(n=n.attrs)&&n.type,a=r(n=e.data)&&r(n=n.attrs)&&n.type;return o===a||ur(o)&&ur(a)}function Er(t,e,n){var o,a,i={};for(o=e;o<=n;++o)a=t[o].key,r(a)&&(i[a]=o);return i}function Tr(t){var e,n,i={},c=t.modules,l=t.nodeOps;for(e=0;eh?(f=o(n[g+1])?null:n[g+1].elm,k(t,f,n,m,g,a)):m>g&&O(t,e,d,h)}function P(t,e,n,o){for(var a=n;a-1?Hr(t,e,n):qo(e)?Zo(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vo(e)?t.setAttribute(e,Uo(e,n)):Ko(e)?Zo(n)?t.removeAttributeNS(Wo,Yo(e)):t.setAttributeNS(Wo,e,n):Hr(t,e,n)}function Hr(t,e,n){if(Zo(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}var Ur={create:Fr,update:Fr};function qr(t,e){var n=e.elm,a=e.data,i=t.data;if(!(o(a.staticClass)&&o(a.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Xo(e),c=n._transitionClasses;r(c)&&(s=Qo(s,tr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wr,Kr={create:qr,update:qr},Yr="__r",Zr="__c";function Xr(t){if(r(t[Yr])){var e=tt?"change":"input";t[e]=[].concat(t[Yr],t[e]||[]),delete t[Yr]}r(t[Zr])&&(t.change=[].concat(t[Zr],t.change||[]),delete t[Zr])}function Gr(t,e,n){var o=Wr;return function r(){var a=e.apply(null,arguments);null!==a&&ta(t,r,n,o)}}var Jr=ie&&!(rt&&Number(rt[1])<=53);function Qr(t,e,n,o){if(Jr){var r=Kn,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Wr.addEventListener(t,e,it?{capture:n,passive:o}:n)}function ta(t,e,n,o){(o||Wr).removeEventListener(t,e._wrapper||e,n)}function ea(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Wr=e.elm,Xr(n),be(n,r,Qr,ta,Gr,e.context),Wr=void 0}}var na,oa={create:ea,update:ea};function ra(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,a,i=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in r(c.__ob__)&&(c=e.data.domProps=E({},c)),s)n in c||(i[n]="");for(n in c){if(a=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=a;var l=o(a)?"":String(a);aa(i,l)&&(i.value=l)}else if("innerHTML"===n&&ar(i.tagName)&&o(i.innerHTML)){na=na||document.createElement("div"),na.innerHTML=""+a+"";var u=na.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(u.firstChild)i.appendChild(u.firstChild)}else if(a!==s[n])try{i[n]=a}catch(ki){}}}}function aa(t,e){return!t.composing&&("OPTION"===t.tagName||ia(t,e)||sa(t,e))}function ia(t,e){var n=!0;try{n=document.activeElement!==t}catch(ki){}return n&&t.value!==e}function sa(t,e){var n=t.value,o=t._vModifiers;if(r(o)){if(o.number)return h(n)!==h(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}var ca={create:ra,update:ra},la=_((function(t){var e={},n=/;(?![^(]*\))/g,o=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(o);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ua(t){var e=fa(t.style);return t.staticStyle?E(t.staticStyle,e):e}function fa(t){return Array.isArray(t)?T(t):"string"===typeof t?la(t):t}function da(t,e){var n,o={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=ua(r.data))&&E(o,n)}(n=ua(t.data))&&E(o,n);var a=t;while(a=a.parent)a.data&&(n=ua(a.data))&&E(o,n);return o}var pa,ma=/^--/,ha=/\s*!important$/,va=function(t,e,n){if(ma.test(e))t.style.setProperty(e,n);else if(ha.test(n))t.style.setProperty(A(e),n.replace(ha,""),"important");else{var o=ga(e);if(Array.isArray(n))for(var r=0,a=n.length;r-1?e.split(_a).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ka(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_a).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";while(n.indexOf(o)>=0)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Ca(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&E(e,Oa(t.name||"v")),E(e,t),e}return"string"===typeof t?Oa(t):void 0}}var Oa=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Aa=X&&!et,Sa="transition",Pa="animation",$a="transition",ja="transitionend",Ea="animation",Ta="animationend";Aa&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&($a="WebkitTransition",ja="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ea="WebkitAnimation",Ta="webkitAnimationEnd"));var Ma=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function La(t){Ma((function(){Ma(t)}))}function Ba(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xa(t,e))}function Ia(t,e){t._transitionClasses&&g(t._transitionClasses,e),ka(t,e)}function Da(t,e,n){var o=Ra(t,e),r=o.type,a=o.timeout,i=o.propCount;if(!r)return n();var s=r===Sa?ja:Ta,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=i&&l()};setTimeout((function(){c0&&(n=Sa,u=i,f=a.length):e===Pa?l>0&&(n=Pa,u=l,f=c.length):(u=Math.max(i,l),n=u>0?i>l?Sa:Pa:null,f=n?n===Sa?a.length:c.length:0);var d=n===Sa&&Na.test(o[$a+"Property"]);return{type:n,timeout:u,propCount:f,hasTransform:d}}function za(t,e){while(t.length1}function Wa(t,e){!0!==e.data.show&&Va(e)}var Ka=X?{create:Wa,activate:Wa,remove:function(t,e){!0!==t.data.show?Ha(t,e):e()}}:{},Ya=[Ur,Kr,oa,ca,ba,Ka],Za=Ya.concat(zr),Xa=Tr({nodeOps:Cr,modules:Za});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ri(t,"input")}));var Ga={inserted:function(t,e,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?_e(n,"postpatch",(function(){Ga.componentUpdated(t,e,n)})):Ja(t,e,n.context),t._vOptions=[].map.call(t.options,ei)):("textarea"===n.tag||ur(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ni),t.addEventListener("compositionend",oi),t.addEventListener("change",oi),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ja(t,e,n.context);var o=t._vOptions,r=t._vOptions=[].map.call(t.options,ei);if(r.some((function(t,e){return!I(t,o[e])}))){var a=t.multiple?e.value.some((function(t){return ti(t,r)})):e.value!==e.oldValue&&ti(e.value,r);a&&ri(t,"change")}}}};function Ja(t,e,n){Qa(t,e,n),(tt||nt)&&setTimeout((function(){Qa(t,e,n)}),0)}function Qa(t,e,n){var o=e.value,r=t.multiple;if(!r||Array.isArray(o)){for(var a,i,s=0,c=t.options.length;s-1,i.selected!==a&&(i.selected=a);else if(I(ei(i),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function ti(t,e){return e.every((function(e){return!I(e,t)}))}function ei(t){return"_value"in t?t._value:t.value}function ni(t){t.target.composing=!0}function oi(t){t.target.composing&&(t.target.composing=!1,ri(t.target,"input"))}function ri(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ai(t){return!t.componentInstance||t.data&&t.data.transition?t:ai(t.componentInstance._vnode)}var ii={bind:function(t,e,n){var o=e.value;n=ai(n);var r=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;o&&r?(n.data.show=!0,Va(n,(function(){t.style.display=a}))):t.style.display=o?a:"none"},update:function(t,e,n){var o=e.value,r=e.oldValue;if(!o!==!r){n=ai(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,o?Va(n,(function(){t.style.display=t.__vOriginalDisplay})):Ha(n,(function(){t.style.display="none"}))):t.style.display=o?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,o,r){r||(t.style.display=t.__vOriginalDisplay)}},si={model:Ga,show:ii},ci={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 li(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?li(kn(e.children)):t}function ui(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var r=n._parentListeners;for(var a in r)e[k(a)]=r[a];return e}function fi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function di(t){while(t=t.parent)if(t.data.transition)return!0}function pi(t,e){return e.key===t.key&&e.tag===t.tag}var mi=function(t){return t.tag||xn(t)},hi=function(t){return"show"===t.name},vi={name:"transition",props:ci,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(mi),n.length)){0;var o=this.mode;0;var r=n[0];if(di(this.$vnode))return r;var a=li(r);if(!a)return r;if(this._leaving)return fi(t,r);var i="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?i+"comment":i+a.tag:s(a.key)?0===String(a.key).indexOf(i)?a.key:i+a.key:a.key;var c=(a.data||(a.data={})).transition=ui(this),l=this._vnode,u=li(l);if(a.data.directives&&a.data.directives.some(hi)&&(a.data.show=!0),u&&u.data&&!pi(a,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=E({},c);if("out-in"===o)return this._leaving=!0,_e(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fi(t,r);if("in-out"===o){if(xn(a))return l;var d,p=function(){d()};_e(c,"afterEnter",p),_e(c,"enterCancelled",p),_e(f,"delayLeave",(function(t){d=t}))}}return r}}},wi=E({tag:String,moveClass:String},ci);delete wi.mode;var gi={props:wi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,o){var r=En(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,o)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],i=ui(this),s=0;s1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},U=function(t){t.style.opacity="",t.style.display="none"},q=function(t,e,n){e?H(t,n):U(t)},W=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},K=function(t){return!!(t.scrollHeight>t.clientHeight)},Y=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},Z=function(t,e){if("function"===typeof t.contains)return t.contains(e)},X=function(){return document.body.querySelector("."+$.container)},G=function(t){var e=X();return e?e.querySelector(t):null},J=function(t){return G("."+t)},Q=function(){return J($.popup)},tt=function(){var t=Q();return w(t.querySelectorAll("."+$.icon))},et=function(){var t=tt().filter((function(t){return W(t)}));return t.length?t[0]:null},nt=function(){return J($.title)},ot=function(){return J($.content)},rt=function(){return J($.image)},at=function(){return J($["progress-steps"])},it=function(){return J($["validation-message"])},st=function(){return G("."+$.actions+" ."+$.confirm)},ct=function(){return G("."+$.actions+" ."+$.cancel)},lt=function(){return J($.actions)},ut=function(){return J($.header)},ft=function(){return J($.footer)},dt=function(){return J($.close)},pt='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',mt=function(){var t=w(Q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),e=parseInt(e.getAttribute("tabindex")),t>e?1:t\n
\n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n').replace(/(^|\n)\s*/g,""),bt=function(){var t=X();t&&(t.parentNode.removeChild(t),z([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]))},_t=function(t){bo.isVisible()&&I!==t.target.value&&bo.resetValidationMessage(),I=t.target.value},xt=function(){var t=ot(),e=F(t,$.input),n=F(t,$.file),o=t.querySelector(".".concat($.range," input")),r=t.querySelector(".".concat($.range," output")),a=F(t,$.select),i=t.querySelector(".".concat($.checkbox," input")),s=F(t,$.textarea);e.oninput=_t,n.onchange=_t,a.onchange=_t,i.onchange=_t,s.oninput=_t,o.oninput=function(t){_t(t),r.value=o.value},o.onchange=function(t){_t(t),o.nextSibling.value=o.value}},kt=function(t){return"string"===typeof t?document.querySelector(t):t},Ct=function(t){var e=Q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Ot=function(t){"rtl"===window.getComputedStyle(t).direction&&R(X(),$.rtl)},At=function(t){if(bt(),gt())y("SweetAlert2 requires document to initialize");else{var e=document.createElement("div");e.className=$.container,e.innerHTML=yt;var n=kt(t.target);n.appendChild(e),Ct(t),Ot(n),xt()}},St=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?Pt(n,e):e&&(n.innerHTML=e)},Pt=function(t,e){if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},$t=function(){if(gt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"undefined"!==typeof t.style[n])return e[n];return!1}(),jt=function(){var t="ontouchstart"in window||navigator.msMaxTouchPoints;if(t)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},Et=function(t,e){var n=lt(),o=st(),r=ct();e.showConfirmButton||e.showCancelButton||U(n),L(n,e.customClass,"actions"),Mt(o,"confirm",e),Mt(r,"cancel",e),e.buttonsStyling?Tt(o,r,e):(z([o,r],$.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor=""),e.reverseButtons&&o.parentNode.insertBefore(r,o)};function Tt(t,e,n){R([t,e],$.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);var o=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=o,t.style.borderRightColor=o}function Mt(t,e,n){q(t,n["showC"+e.substring(1)+"Button"],"inline-block"),t.innerHTML=n[e+"ButtonText"],t.setAttribute("aria-label",n[e+"ButtonAriaLabel"]),t.className=$[e],L(t,n.customClass,e+"Button"),R(t,n[e+"ButtonClass"])}function Lt(t,e){"string"===typeof e?t.style.background=e:e||R([document.documentElement,document.body],$["no-backdrop"])}function Bt(t,e){e in $?R(t,$[e]):(g('The "position" parameter is not valid, defaulting to "center"'),R(t,$.center))}function It(t,e){if(e&&"string"===typeof e){var n="grow-"+e;n in $&&R(t,$[n])}}var Dt=function(t,e){var n=X();n&&(Lt(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),Bt(n,e.position),It(n,e.grow),L(n,e.customClass,"container"),e.customContainerClass&&R(n,e.customContainerClass))},Nt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Rt=["input","file","range","select","radio","checkbox","textarea"],zt=function(t,e){var n=ot(),o=Nt.innerParams.get(t),r=!o||e.input!==o.input;Rt.forEach((function(t){var o=$[t],a=F(n,o);Ht(t,e.inputAttributes),a.className=o,r&&U(a)})),e.input&&(r&&Ft(e),Ut(e))},Ft=function(t){if(!Kt[t.input])return y('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Wt(t.input),n=Kt[t.input](e,t);H(n),setTimeout((function(){D(n)}))},Vt=function(t){for(var e=0;en?e+"px":null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var Yt=function(t,e){var n=ot().querySelector("#"+$.content);e.html?(St(e.html,n),H(n,"block")):e.text?(n.textContent=e.text,H(n,"block")):U(n),zt(t,e),L(ot(),e.customClass,"content")},Zt=function(t,e){var n=ft();q(n,e.footer),e.footer&&St(e.footer,n),L(n,e.customClass,"footer")},Xt=function(t,e){var n=dt();n.innerHTML=e.closeButtonHtml,L(n,e.customClass,"closeButton"),q(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Gt=function(t,e){var n=Nt.innerParams.get(t);if(n&&e.type===n.type&&et())L(et(),e.customClass,"icon");else if(Jt(),e.type)if(Qt(),-1!==Object.keys(j).indexOf(e.type)){var o=G(".".concat($.icon,".").concat(j[e.type]));H(o),L(o,e.customClass,"icon"),N(o,"swal2-animate-".concat(e.type,"-icon"),e.animation)}else y('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},Jt=function(){for(var t=tt(),e=0;e=e.progressSteps.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,r){var a=ee(t);if(n.appendChild(a),r===o&&R(a,$["active-progress-step"]),r!==e.progressSteps.length-1){var i=ne(t);n.appendChild(i)}}))},re=function(t,e){var n=nt();q(n,e.title||e.titleText),e.title&&St(e.title,n),e.titleText&&(n.innerText=e.titleText),L(n,e.customClass,"title")},ae=function(t,e){var n=ut();L(n,e.customClass,"header"),oe(t,e),Gt(t,e),te(t,e),re(t,e),Xt(t,e)},ie=function(t,e){var n=Q();V(n,"width",e.width),V(n,"padding",e.padding),e.background&&(n.style.background=e.background),n.className=$.popup,e.toast?(R([document.documentElement,document.body],$["toast-shown"]),R(n,$.toast)):R(n,$.modal),L(n,e.customClass,"popup"),"string"===typeof e.customClass&&R(n,e.customClass),N(n,$.noanimation,!e.animation)},se=function(t,e){ie(t,e),Dt(t,e),ae(t,e),Yt(t,e),Et(t,e),Zt(t,e),"function"===typeof e.onRender&&e.onRender(Q())},ce=function(){return W(Q())},le=function(){return st()&&st().click()},ue=function(){return ct()&&ct().click()};function fe(){for(var t=this,e=arguments.length,n=new Array(e),o=0;owindow.innerHeight&&(E.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=E.previousBodyPadding+jt()+"px")},Ue=function(){null!==E.previousBodyPadding&&(document.body.style.paddingRight=E.previousBodyPadding+"px",E.previousBodyPadding=null)},qe=function(){var t=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;if(t&&!T(document.body,$.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",R(document.body,$.iosfix),We()}},We=function(){var t,e=X();e.ontouchstart=function(n){t=n.target===e||!K(e)&&"INPUT"!==n.target.tagName},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},Ke=function(){if(T(document.body,$.iosfix)){var t=parseInt(document.body.style.top,10);z(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},Ye=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Ze=function(){var t=X(),e=Q();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},Xe=function(){"undefined"!==typeof window&&Ye()&&(Ze(),window.addEventListener("resize",Ze))},Ge=function(){"undefined"!==typeof window&&Ye()&&window.removeEventListener("resize",Ze)},Je=function(){var t=w(document.body.children);t.forEach((function(t){t===X()||Z(t,X())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},Qe=function(){var t=w(document.body.children);t.forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},tn={swalPromiseResolve:new WeakMap};function en(t,e,n,o){n?ln(t,o):(xe().then((function(){return ln(t,o)})),be.keydownTarget.removeEventListener("keydown",be.keydownHandler,{capture:be.keydownListenerCapture}),be.keydownHandlerAdded=!1),e.parentNode&&e.parentNode.removeChild(e),ht()&&(Ue(),Ke(),Ge(),Qe()),nn()}function nn(){z([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"],$["toast-column"]])}function on(t){delete t.params,delete be.keydownHandler,delete be.keydownTarget,cn(Nt),cn(tn)}function rn(t){var e=Q();if(e&&!T(e,$.hide)){var n=Nt.innerParams.get(this);if(n){var o=tn.swalPromiseResolve.get(this);z(e,$.show),R(e,$.hide),an(this,e,n),o(t||{})}}}var an=function(t,e,n){var o=X(),r=$t&&Y(e),a=n.onClose,i=n.onAfterClose;null!==a&&"function"===typeof a&&a(e),r?sn(t,e,o,i):en(t,o,vt(),i)},sn=function(t,e,n,o){be.swalCloseEventFinishedCallback=en.bind(null,t,n,vt(),o),e.addEventListener($t,(function(t){t.target===e&&(be.swalCloseEventFinishedCallback(),delete be.swalCloseEventFinishedCallback)}))},cn=function(t){for(var e in t)t[e]=new WeakMap},ln=function(t,e){setTimeout((function(){null!==e&&"function"===typeof e&&e(),Q()||on(t)}))};function un(t,e,n){var o=Nt.domCache.get(t);e.forEach((function(t){o[t].disabled=n}))}function fn(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode,o=n.querySelectorAll("input"),r=0;r")),At(t)}function $n(t,e){t.removeEventListener($t,$n),e.style.overflowY="auto"}var jn=function(t){var e=X(),n=Q();"function"===typeof t.onBeforeOpen&&t.onBeforeOpen(n),Mn(e,n,t),En(e,n),ht()&&Tn(e,t.scrollbarPadding),vt()||be.previousActiveElement||(be.previousActiveElement=document.activeElement),"function"===typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)}))},En=function(t,e){$t&&Y(e)?(t.style.overflowY="hidden",e.addEventListener($t,$n.bind(null,e,t))):t.style.overflowY="auto"},Tn=function(t,e){qe(),Xe(),Je(),e&&He(),setTimeout((function(){t.scrollTop=0}))},Mn=function(t,e,n){n.animation&&R(e,$.show),H(e),R([document.documentElement,document.body,t],$.shown),n.heightAuto&&n.backdrop&&!n.toast&&R([document.documentElement,document.body],$["height-auto"])},Ln=function(t,e){"select"===e.input||"radio"===e.input?Rn(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&C(e.inputValue)&&zn(t,e)},Bn=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return In(n);case"radio":return Dn(n);case"file":return Nn(n);default:return e.inputAutoTrim?n.value.trim():n.value}},In=function(t){return t.checked?1:0},Dn=function(t){return t.checked?t.value:null},Nn=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},Rn=function(e,n){var o=ot(),r=function(t){return Fn[n.input](o,Vn(t),n)};C(n.inputOptions)?(ge(),n.inputOptions.then((function(t){e.hideLoading(),r(t)}))):"object"===t(n.inputOptions)?r(n.inputOptions):y("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},zn=function(t,e){var n=t.getInput();U(n),e.inputValue.then((function(o){n.value="number"===e.input?parseFloat(o)||0:o+"",H(n),n.focus(),t.hideLoading()}))["catch"]((function(e){y("Error in inputValue promise: "+e),n.value="",H(n),n.focus(),t.hideLoading()}))},Fn={select:function(t,e,n){var o=F(t,$.select);e.forEach((function(t){var e=t[0],r=t[1],a=document.createElement("option");a.value=e,a.innerHTML=r,n.inputValue.toString()===e.toString()&&(a.selected=!0),o.appendChild(a)})),o.focus()},radio:function(t,e,n){var o=F(t,$.radio);e.forEach((function(t){var e=t[0],r=t[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=$.radio,a.value=e,n.inputValue.toString()===e.toString()&&(a.checked=!0);var s=document.createElement("span");s.innerHTML=r,s.className=$.label,i.appendChild(a),i.appendChild(s),o.appendChild(i)}));var r=o.querySelectorAll("input");r.length&&r[0].focus()}},Vn=function(t){var e=[];return"undefined"!==typeof Map&&t instanceof Map?t.forEach((function(t,n){e.push([n,t])})):Object.keys(t).forEach((function(n){e.push([n,t[n]])})),e},Hn=function(t,e){t.disableButtons(),e.input?qn(t,e):Kn(t,e,!0)},Un=function(t,e){t.disableButtons(),e(O.cancel)},qn=function(t,e){var n=Bn(t,e);if(e.inputValidator){t.disableInput();var o=Promise.resolve().then((function(){return e.inputValidator(n,e.validationMessage)}));o.then((function(o){t.enableButtons(),t.enableInput(),o?t.showValidationMessage(o):Kn(t,e,n)}))}else t.getInput().checkValidity()?Kn(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Wn=function(t,e){t.closePopup({value:e})},Kn=function(t,e,n){if(e.showLoaderOnConfirm&&ge(),e.preConfirm){t.resetValidationMessage();var o=Promise.resolve().then((function(){return e.preConfirm(n,e.validationMessage)}));o.then((function(e){W(it())||!1===e?t.hideLoading():Wn(t,"undefined"===typeof e?n:e)}))}else Wn(t,n)},Yn=function(t,e,n,o){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return Jn(t,e,n,o)},e.keydownTarget=n.keydownListenerCapture?window:Q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Zn=function(t,e,n){for(var o=mt(),r=0;r:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-webkit-input-placeholder,.swal2-input::-webkit-input-placeholder,.swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:inherit}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:inherit;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon::before{display:flex;align-items:center;height:92%;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning::before{content:"!"}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info::before{content:"i"}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question::before{content:"?"}.swal2-icon.swal2-question.swal2-arabic-question-mark::before{content:"؟"}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},"41a0":function(t,e,n){"use strict";var o=n("2aeb"),r=n("4630"),a=n("7f20"),i={};n("32e9")(i,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(i,{next:r(1,n)}),a(t,e+" Iterator")}},4588:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4a59":function(t,e,n){var o=n("9b43"),r=n("1fa8"),a=n("33a4"),i=n("cb7c"),s=n("9def"),c=n("27ee"),l={},u={};e=t.exports=function(t,e,n,f,d){var p,m,h,v,w=d?function(){return t}:c(t),g=o(n,f,e?2:1),y=0;if("function"!=typeof w)throw TypeError(t+" is not iterable!");if(a(w)){for(p=s(t.length);p>y;y++)if(v=e?g(i(m=t[y])[0],m[1]):g(t[y]),v===l||v===u)return v}else for(h=w.call(t);!(m=h.next()).done;)if(v=r(h,g,m.value,e),v===l||v===u)return v};e.BREAK=l,e.RETURN=u},"4bf8":function(t,e,n){var o=n("be13");t.exports=function(t){return Object(o(t))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var o,r,a,i,s=n("2d00"),c=n("7726"),l=n("9b43"),u=n("23c6"),f=n("5ca1"),d=n("d3f4"),p=n("d8e8"),m=n("f605"),h=n("4a59"),v=n("ebd6"),w=n("1991").set,g=n("8079")(),y=n("a5b8"),b=n("9c80"),_=n("a25f"),x=n("bcaa"),k="Promise",C=c.TypeError,O=c.process,A=O&&O.versions,S=A&&A.v8||"",P=c[k],$="process"==u(O),j=function(){},E=r=y.f,T=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(j,j)};return($||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e&&0!==S.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(o){}}(),M=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){var o=t._v,r=1==t._s,a=0,i=function(e){var n,a,i,s=r?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(r||(2==t._h&&D(t),t._h=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?l(C("Promise-chain cycle")):(a=M(n))?a.call(n,c,l):c(n)):l(o)}catch(f){u&&!i&&u.exit(),l(f)}};while(n.length>a)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){w.call(c,(function(){var e,n,o,r=t._v,a=I(t);if(a&&(e=b((function(){$?O.emit("unhandledRejection",r,t):(n=c.onunhandledrejection)?n({promise:t,reason:r}):(o=c.console)&&o.error&&o.error("Unhandled promise rejection",r)})),t._h=$||I(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){w.call(c,(function(){var e;$?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},N=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=M(t))?g((function(){var o={_w:n,_d:!1};try{e.call(t,l(R,o,1),l(N,o,1))}catch(r){N.call(o,r)}})):(n._v=t,n._s=1,L(n,!1))}catch(o){N.call({_w:n,_d:!1},o)}}};T||(P=function(t){m(this,P,k,"_h"),p(t),o.call(this);try{t(l(R,this,1),l(N,this,1))}catch(e){N.call(this,e)}},o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n("dcbc")(P.prototype,{then:function(t,e){var n=E(v(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new o;this.promise=t,this.resolve=l(R,t,1),this.reject=l(N,t,1)},y.f=E=function(t){return t===P||t===i?new a(t):r(t)}),f(f.G+f.W+f.F*!T,{Promise:P}),n("7f20")(P,k),n("7a56")(k),i=n("8378")[k],f(f.S+f.F*!T,k,{reject:function(t){var e=E(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!T),k,{resolve:function(t){return x(s&&this===i?P:this,t)}}),f(f.S+f.F*!(T&&n("5cc5")((function(t){P.all(t)["catch"](j)}))),k,{all:function(t){var e=this,n=E(e),o=n.resolve,r=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,c=!1;n.push(void 0),i++,e.resolve(t).then((function(t){c||(c=!0,n[s]=t,--i||o(n))}),r)})),--i||o(n)}));return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=E(e),o=n.reject,r=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,o)}))}));return r.e&&o(r.v),n.promise}})},5537:function(t,e,n){var o=n("8378"),r=n("7726"),a="__core-js_shared__",i=r[a]||(r[a]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var o=n("7726"),r=n("8378"),a=n("32e9"),i=n("2aba"),s=n("9b43"),c="prototype",l=function(t,e,n){var u,f,d,p,m=t&l.F,h=t&l.G,v=t&l.S,w=t&l.P,g=t&l.B,y=h?o:v?o[e]||(o[e]={}):(o[e]||{})[c],b=h?r:r[e]||(r[e]={}),_=b[c]||(b[c]={});for(u in h&&(n=e),n)f=!m&&y&&void 0!==y[u],d=(f?y:n)[u],p=g&&f?s(d,o):w&&"function"==typeof d?s(Function.call,d):d,y&&i(y,u,d,t&l.U),b[u]!=d&&a(b,u,p),w&&_[u]!=d&&(_[u]=d)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5cc5":function(t,e,n){var o=n("2b4c")("iterator"),r=!1;try{var a=[7][o]();a["return"]=function(){r=!0},Array.from(a,(function(){throw 2}))}catch(i){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var a=[7],s=a[o]();s.next=function(){return{done:n=!0}},a[o]=function(){return s},t(a)}catch(i){}return n}},"60a3":function(t,e,n){"use strict";var o=n("2b0e"),r="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys; /** * vue-class-component v7.1.0 * (c) 2015-present Evan You * @license MIT */function a(t,e){i(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){i(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){i(t,e,n)}))}function i(t,e,n){var o=n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e);o.forEach((function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)}))}var s={__proto__:[]},c=s instanceof Array;function l(t){return function(e,n,o){var r="function"===typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!==typeof o&&(o=void 0),r.__decorators__.push((function(e){return t(e,n,o)}))}}function u(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function f(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(r[t]=o[t])})),r}var d=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function p(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(d.indexOf(t)>-1)e[t]=n[t];else{var o=Object.getOwnPropertyDescriptor(n,t);void 0!==o.value?"function"===typeof o.value?(e.methods||(e.methods={}))[t]=o.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=o.value,e}}):(o.get||o.set)&&((e.computed||(e.computed={}))[t]={get:o.get,set:o.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return f(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),c=s instanceof o["a"]?s.constructor:o["a"],l=c.extend(e);return h(l,t,c),r&&a(l,t),l}var m={prototype:!0,arguments:!0,callee:!0,caller:!0};function h(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!m[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(e,o);if(!c){if("cid"===o)return;var i=Object.getOwnPropertyDescriptor(n,o);if(!u(a.value)&&i&&i.value===a.value)return}0,Object.defineProperty(t,o,a)}}}))}function v(t){return"function"===typeof t?p(t):function(e){return p(e,t)}}v.registerHooks=function(t){d.push.apply(d,t)};var w=v;n.d(e,"b",(function(){return b})),n.d(e,"a",(function(){return w})),n.d(e,"c",(function(){return o["a"]}));var g="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function y(t,e,n){g&&(Array.isArray(t)||"function"===typeof t||"undefined"!==typeof t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}function b(t){return void 0===t&&(t={}),function(e,n){y(t,e,n),l((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}},"613b":function(t,e,n){var o=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return o[t]||(o[t]=r(t))}},"626a":function(t,e,n){var o=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},6821:function(t,e,n){var o=n("626a"),r=n("be13");t.exports=function(t){return o(r(t))}},"683f":function(t,e,n){"use strict";var o=n("3d20"),r=n.n(o),a=function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;nu){var p,m=c(arguments[u++]),h=f?r(m).concat(f(m)):r(m),v=h.length,w=0;while(v>w)p=h[w++],o&&!d.call(m,p)||(n[p]=m[p])}return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var o=n("4588"),r=Math.max,a=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):a(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var o=n("7726"),r=n("86cc"),a=n("9e1e"),i=n("2b4c")("species");t.exports=function(t){var e=o[t];a&&e&&!e[i]&&r.f(e,i,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var o=n("86cc").f,r=n("69a8"),a=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&o(t,a,{configurable:!0,value:e})}},8079:function(t,e,n){var o=n("7726"),r=n("1991").set,a=o.MutationObserver||o.WebKitMutationObserver,i=o.process,s=o.Promise,c="process"==n("2d95")(i);t.exports=function(){var t,e,n,l=function(){var o,r;c&&(o=i.domain)&&o.exit();while(t){r=t.fn,t=t.next;try{r()}catch(a){throw t?n():e=void 0,a}}e=void 0,o&&o.enter()};if(c)n=function(){i.nextTick(l)};else if(!a||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(o,l)};else{var f=!0,d=document.createTextNode("");new a(l).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(o){var r={fn:o,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var o=n("cb7c"),r=n("c69a"),a=n("6a99"),i=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(o(t),e=a(e,!0),o(n),r)try{return i(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9ab4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e,n,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(i=(a<3?r(i):a>3?r(e,n,i):r(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}},"9b43":function(t,e,n){var o=n("d8e8");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var o=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[o]&&n("32e9")(r,o,{}),t.exports=function(t){r[o][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var o=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a25f:function(t,e,n){var o=n("7726"),r=o.navigator;t.exports=r&&r.userAgent||""},a5b8:function(t,e,n){"use strict";var o=n("d8e8");function r(t){var e,n;this.promise=new t((function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)}t.exports.f=function(t){return new r(t)}},bcaa:function(t,e,n){var o=n("cb7c"),r=n("d3f4"),a=n("a5b8");t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=a.f(t),i=n.resolve;return i(e),n.promise}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var o=n("6821"),r=n("9def"),a=n("77f1");t.exports=function(t){return function(e,n,i){var s,c=o(e),l=r(c.length),u=a(i,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},cadf:function(t,e,n){"use strict";var o=n("9c6c"),r=n("d53b"),a=n("84f2"),i=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},cb7c:function(t,e,n){var o=n("d3f4");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var o=n("69a8"),r=n("6821"),a=n("c366")(!1),i=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,l=[];for(n in s)n!=i&&o(s,n)&&l.push(n);while(e.length>c)o(s,n=e[c++])&&(~a(l,n)||l.push(n));return l}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var o=n("2aba");t.exports=function(t,e,n){for(var r in e)o(t,r,e[r],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},ebd6:function(t,e,n){var o=n("cb7c"),r=n("d8e8"),a=n("2b4c")("species");t.exports=function(t,e){var n,i=o(t).constructor;return void 0===i||void 0==(n=o(i)[a])?e:r(n)}},f605:function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},f751:function(t,e,n){var o=n("5ca1");o(o.S+o.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var o=n("7726").document;t.exports=o&&o.documentElement}}]); //# sourceMappingURL=chunk-vendors.js.map ================================================ FILE: example/.browserslistrc ================================================ > 1% last 2 versions ================================================ FILE: example/.editorconfig ================================================ # EditorConfig defines and maintains consistent coding styles between different # editors and IDEs: http://EditorConfig.org/ # Top-most EditorConfig file root = true # All files [*] # Widely Supported by Editors indent_style = space indent_size = 2 tab_width = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true # Supported By A Limited Number of Editors max_line_length = 80 # Domain-Specific Properties quote_type = double spaces_around_operators = true ================================================ FILE: example/.eslintignore ================================================ **/.history/* **/node_modules/* **/public/* ================================================ FILE: example/.eslintrc.js ================================================ module.exports = { root: true, env: { node: true }, extends: ["plugin:vue/recommended", "@vue/prettier", "@vue/typescript"], rules: { "no-console": "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" }, parserOptions: { parser: "@typescript-eslint/parser" } }; ================================================ FILE: example/.gitignore ================================================ .DS_Store node_modules/ dist/ # local env files .env.local .env.*.local # Log files npm-debug.log* yarn-debug.log* yarn-error.log* # Editor directories and files .idea .vscode *.suo *.ntvs* *.njsproj *.sln *.sw? ================================================ FILE: example/README.md ================================================ # example ## Project setup ```shell npm install ``` ### Compiles and hot-reloads for development ```shell npm run serve ``` ### Compiles and minifies for production ```shell npm run build ``` ### Lints and fixes files ```shell npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ================================================ FILE: example/babel.config.js ================================================ module.exports = { presets: ["@vue/app"] }; ================================================ FILE: example/package.json ================================================ { "name": "vue-simple-alert-example", "version": "1.0.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "core-js": "^2.6.5", "serve": "11.2.0", "vue": "^2.6.10", "vue-class-component": "^7.1.0", "vue-property-decorator": "^8.1.0", "vue-simple-alert": "1.1.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.12.0", "@vue/cli-plugin-eslint": "^3.12.0", "@vue/cli-plugin-typescript": "^3.12.0", "@vue/cli-service": "^3.12.0", "@vue/eslint-config-prettier": "^5.0.0", "@vue/eslint-config-typescript": "^4.0.0", "babel-eslint": "^10.0.1", "eslint": "^5.16.0", "eslint-plugin-prettier": "^3.1.0", "eslint-plugin-vue": "^5.0.0", "prettier": "^1.18.2", "typescript": "3.5.3", "vue-template-compiler": "^2.6.10" } } ================================================ FILE: example/postcss.config.js ================================================ module.exports = { plugins: { autoprefixer: {} } }; ================================================ FILE: example/public/index.html ================================================ vue-simple-alert example
    ================================================ FILE: example/src/App.vue ================================================ ================================================ FILE: example/src/components/GithubRibbon.vue ================================================ ================================================ FILE: example/src/main.ts ================================================ import Vue from "vue"; import VueSimpleAlert from "vue-simple-alert"; import App from "./App.vue"; Vue.config.productionTip = false; //Vue.use(VueSimpleAlert); Vue.use(VueSimpleAlert, { title: "Vue Simple Alert", width: "420px" }); new Vue({ render: h => h(App) }).$mount("#app"); ================================================ FILE: example/src/shims-tsx.d.ts ================================================ import Vue, { VNode } from "vue"; declare global { namespace JSX { // tslint:disable no-empty-interface interface Element extends VNode {} // tslint:disable no-empty-interface interface ElementClass extends Vue {} interface IntrinsicElements { [elem: string]: any; } } } ================================================ FILE: example/src/shims-vue.d.ts ================================================ declare module "*.vue" { import Vue from "vue"; export default Vue; } ================================================ FILE: example/tsconfig.json ================================================ { "compilerOptions": { "target": "es5", "module": "es2015", "strict": true, "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "experimentalDecorators": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "sourceMap": true, "baseUrl": ".", "resolveJsonModule": true, "types": [ "webpack-env" ], "paths": { "@/*": [ "src/*" ] }, "lib": [ "es5", "es2015", "esnext", "dom", "dom.iterable", "scripthost" ] }, "include": [ "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx" ], "exclude": [ ".history", "node_modules" ] } ================================================ FILE: example/vue.config.js ================================================ module.exports = { publicPath: process.env.NODE_ENV === "production" ? "/vue-simple-alert" : "/", outputDir: "../docs", configureWebpack: { optimization: { //splitChunks: false } }, filenameHashing: false, chainWebpack: config => config.resolve.symlinks(false) }; ================================================ FILE: package.json ================================================ { "name": "vue-simple-alert", "version": "1.1.1", "description": "Simple alert(), confirm(), prompt() for Vue.js, using sweetalert2.", "main": "./lib/index.js", "types": "./lib/index.d.ts", "scripts": { "dev": "tsc -w", "build": "tsc" }, "dependencies": { "sweetalert2": "^8.18.6" }, "peerDependencies": { "vue": "2.x" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "2.6.0", "@typescript-eslint/parser": "2.6.0", "eslint": "6.6.0", "eslint-config-prettier": "6.5.0", "eslint-plugin-prettier": "3.1.1", "prettier": "1.18.2", "typescript": "^3.6.4" }, "repository": { "type": "git", "url": "git+https://github.com/constkhi/vue-simple-alert.git" }, "keywords": [ "alert", "confirm", "prompt", "dialog", "simple", "sweetalert2", "vue" ], "author": "constkhi", "license": "MIT", "bugs": { "url": "https://github.com/constkhi/vue-simple-alert/issues" }, "homepage": "https://github.com/constkhi/vue-simple-alert#readme", "files": [ "/lib" ] } ================================================ FILE: src/index.ts ================================================ import _Vue from "vue"; import Swal, { SweetAlertOptions, SweetAlertResult, SweetAlertType } from "sweetalert2"; export class VueSimpleAlert { public static globalOptions: SweetAlertOptions; public static alert( message?: string, title?: string, type?: SweetAlertType, options?: SweetAlertOptions ): Promise { return new Promise(resolve => { const mixedOptions: SweetAlertOptions = { ...VueSimpleAlert.globalOptions, ...options }; mixedOptions.title = title || mixedOptions.title; mixedOptions.text = message || mixedOptions.text; mixedOptions.type = type || mixedOptions.type; Swal.fire(mixedOptions) .then(() => { resolve(true); }) .catch(() => { resolve(true); }); }); } public static confirm( message?: string, title?: string, type?: SweetAlertType, options?: SweetAlertOptions ): Promise { return new Promise((resolve, reject) => { const mixedOptions: SweetAlertOptions = { ...VueSimpleAlert.globalOptions, ...options }; mixedOptions.title = title || mixedOptions.title; mixedOptions.text = message || mixedOptions.text; mixedOptions.type = type || mixedOptions.type; mixedOptions.showCancelButton = true; Swal.fire(mixedOptions) .then((r: SweetAlertResult) => { if (r.value === true) { // Closed by OK button resolve(true); } else reject(); }) .catch(() => reject()); }); } public static prompt( message: string, defaultText?: string, title?: string, type?: SweetAlertType, options?: SweetAlertOptions ): Promise { return new Promise((resolve, reject) => { const mixedOptions: SweetAlertOptions = { ...VueSimpleAlert.globalOptions, ...options }; mixedOptions.title = title || mixedOptions.title; mixedOptions.inputValue = defaultText; mixedOptions.text = message || mixedOptions.text; mixedOptions.type = type || mixedOptions.type; mixedOptions.showCancelButton = true; mixedOptions.input = mixedOptions.input || "text"; Swal.fire(mixedOptions) .then(r => { if (r.value) { // Closed by OK button resolve(r.value); } else reject(); }) .catch(() => { return reject(); }); }); } public static fire(options: SweetAlertOptions): Promise { return Swal.fire(options); } static install(Vue: typeof _Vue, options: SweetAlertOptions): void { VueSimpleAlert.globalOptions = options; // Global properties Vue.alert = VueSimpleAlert.alert; Vue.confirm = VueSimpleAlert.confirm; Vue.prompt = VueSimpleAlert.prompt; Vue.fire = VueSimpleAlert.fire; // Instance properties if (!Vue.prototype.hasOwnProperty("$alert")) { Vue.prototype.$alert = VueSimpleAlert.alert; } if (!Vue.prototype.hasOwnProperty("$confirm")) { Vue.prototype.$confirm = VueSimpleAlert.confirm; } if (!Vue.prototype.hasOwnProperty("$prompt")) { Vue.prototype.$prompt = VueSimpleAlert.prompt; } if (!Vue.prototype.hasOwnProperty("$fire")) { Vue.prototype.$fire = VueSimpleAlert.fire; } } } declare module "vue/types/vue" { interface Vue { $alert: typeof VueSimpleAlert.alert; $confirm: typeof VueSimpleAlert.confirm; $prompt: typeof VueSimpleAlert.prompt; $fire: typeof VueSimpleAlert.fire; } interface VueConstructor { alert: typeof VueSimpleAlert.alert; confirm: typeof VueSimpleAlert.confirm; prompt: typeof VueSimpleAlert.prompt; fire: typeof VueSimpleAlert.fire; } } export default VueSimpleAlert; ================================================ FILE: tsconfig.json ================================================ { "compilerOptions": { "target": "es5", "lib": [ "es2017", "es7", "es6", "dom" ], "module": "es2015", "moduleResolution": "node", "outDir": "lib", "declaration": true, "strict": true, "esModuleInterop": true, "experimentalDecorators": true, "removeComments": true, "suppressImplicitAnyIndexErrors": true, "allowSyntheticDefaultImports": true, "baseUrl": ".", "resolveJsonModule": true, "sourceMap": true, "types": [ "node" ], "paths": { "@/*": [ "./src/*" ] } }, "include": [ "./src/**/*.ts" ], "exclude": [ "node_modules", "lib", "example", ".history" ] }