(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){n("bUC5"),t.exports=n("pyCd")},"7O5W":function(t,e,n){"use strict";(function(t,r){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n-1;a--){var o=n[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=o)}return g.head.insertBefore(e,r),t}}function G(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function J(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Z(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function K(t){return t.size!==X.size||t.x!==X.x||t.y!==X.y||t.rotate!==X.rotate||t.flipX||t.flipY}function tt(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,a={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),i="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(o," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var et={x:0,y:0,width:"100%",height:"100%"};function nt(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function rt(t){var e=t.icons,n=e.main,r=e.mask,a=t.prefix,o=t.iconName,i=t.transform,c=t.symbol,l=t.title,u=t.extra,f=t.watchable,d=void 0!==f&&f,p=r.found?r:n,m=p.width,h=p.height,v="fa-w-".concat(Math.ceil(m/h*16)),g=[T.replacementClass,o?"".concat(T.familyPrefix,"-").concat(o):"",v].filter((function(t){return-1===u.classes.indexOf(t)})).concat(u.classes).join(" "),b={children:[],attributes:s({},u.attributes,{"data-prefix":a,"data-icon":o,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)})};d&&(b.attributes["data-fa-i2svg"]=""),l&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(G())},children:[l]});var y=s({},b,{prefix:a,iconName:o,main:n,mask:r,transform:i,symbol:c,styles:u.styles}),w=r.found&&n.found?function(t){var e,n=t.children,r=t.attributes,a=t.main,o=t.mask,i=t.transform,c=a.width,l=a.icon,u=o.width,f=o.icon,d=tt({transform:i,containerWidth:u,iconWidth:c}),p={tag:"rect",attributes:s({},et,{fill:"white"})},m=l.children?{children:l.children.map(nt)}:{},h={tag:"g",attributes:s({},d.inner),children:[nt(s({tag:l.tag,attributes:s({},l.attributes,d.path)},m))]},v={tag:"g",attributes:s({},d.outer),children:[h]},g="mask-".concat(G()),b="clip-".concat(G()),y={tag:"mask",attributes:s({},et,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=f,"g"===e.tag?e.children:[e])},y]};return n.push(w,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(g,")")},et)}),{children:n,attributes:r}}(y):function(t){var e=t.children,n=t.attributes,r=t.main,a=t.transform,o=Z(t.styles);if(o.length>0&&(n.style=o),K(a)){var i=tt({transform:a,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:s({},i.outer),children:[{tag:"g",attributes:s({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,i.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(y),_=w.children,A=w.attributes;return y.children=_,y.attributes=A,c?function(t){var e=t.prefix,n=t.iconName,r=t.children,a=t.attributes,o=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},a,{id:!0===o?"".concat(e,"-").concat(T.familyPrefix,"-").concat(n):o}),children:r}]}]}(y):function(t){var e=t.children,n=t.main,r=t.mask,a=t.attributes,o=t.styles,i=t.transform;if(K(i)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};a.style=Z(s({},o,{"transform-origin":"".concat(c.x+i.x/16,"em ").concat(c.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:e}]}(y)}function at(t){var e=t.content,n=t.width,r=t.height,a=t.transform,o=t.title,i=t.extra,c=t.watchable,l=void 0!==c&&c,u=s({},i.attributes,o?{title:o}:{},{class:i.classes.join(" ")});l&&(u["data-fa-i2svg"]="");var f=s({},i.styles);K(a)&&(f.transform=function(t){var e=t.transform,n=t.width,r=void 0===n?16:n,a=t.height,o=void 0===a?16:a,i=t.startCentered,s=void 0!==i&&i,c="";return c+=s&&w?"translate(".concat(e.x/Y-r/2,"em, ").concat(e.y/Y-o/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Y,"em), calc(-50% + ").concat(e.y/Y,"em)) "):"translate(".concat(e.x/Y,"em, ").concat(e.y/Y,"em) "),c+="scale(".concat(e.size/Y*(e.flipX?-1:1),", ").concat(e.size/Y*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=Z(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[e]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}var ot=function(){},it=(T.measurePerformance&&b&&b.mark&&b.measure,function(t,e,n,r){var a,o,i,s=Object.keys(t),c=s.length,l=void 0!==r?function(t,e){return function(n,r,a,o){return t.call(e,n,r,a,o)}}(e,r):e;for(void 0===n?(a=1,i=t[s[0]]):(a=0,i=n);a2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,a=void 0!==r&&r,o=Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{});"function"!=typeof S.hooks.addPack||a?S.styles[t]=s({},S.styles[t]||{},o):S.hooks.addPack(t,o),"fas"===t&&st("fa",e)}var ct=S.styles,lt=S.shims,ut=function(){var t=function(t){return it(ct,(function(e,n,r){return e[r]=it(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in ct;it(lt,(function(t,n){var r=n[0],a=n[1],o=n[2];return"far"!==a||e||(a="fas"),t[r]={prefix:a,iconName:o},t}),{})};ut();S.styles;function ft(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function dt(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,a=t.children,o=void 0===a?[]:a;return"string"==typeof t?J(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(J(t[n]),'" ')}),"").trim()}(r),">").concat(o.map(dt).join(""),"")}var pt=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return t.flipX=!0,t;if(r&&"v"===a)return t.flipY=!0,t;if(a=parseFloat(a),isNaN(a))return t;switch(r){case"grow":t.size=t.size+a;break;case"shrink":t.size=t.size-a;break;case"left":t.x=t.x-a;break;case"right":t.x=t.x+a;break;case"up":t.y=t.y-a;break;case"down":t.y=t.y+a;break;case"rotate":t.rotate=t.rotate+a}return t}),e):e};function mt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}mt.prototype=Object.create(Error.prototype),mt.prototype.constructor=mt;var ht={fill:"currentColor"},vt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},gt={tag:"path",attributes:s({},ht,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},bt=s({},vt,{attributeName:"opacity"});s({},ht,{cx:"256",cy:"364",r:"28"}),s({},vt,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},bt,{values:"1;0;1;1;0;1;"}),s({},ht,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},bt,{values:"1;0;0;0;0;1;"}),s({},ht,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},bt,{values:"0;0;1;1;0;0;"}),S.styles;function yt(t){var e=t[0],n=t[1],r=c(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.GROUP)},children:[{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}S.styles;function wt(){var t="svg-inline--fa",e=T.familyPrefix,n=T.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==e||n!==t){var a=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(i,".".concat(n))}return r}function _t(){T.autoAddCss&&!Tt&&(W(wt()),Tt=!0)}function At(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return dt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(y){var e=g.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function xt(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return ft(Ct.definitions,n,r)||ft(S.styles,n,r)}var kt,Ct=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n,r;return e=t,(n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,a=e.symbol,o=void 0!==a&&a,i=e.mask,c=void 0===i?null:i,l=e.title,u=void 0===l?null:l,f=e.classes,d=void 0===f?[]:f,p=e.attributes,m=void 0===p?{}:p,h=e.styles,v=void 0===h?{}:h;if(t){var g=t.prefix,b=t.iconName,y=t.icon;return At(s({type:"icon"},t),(function(){return _t(),T.autoA11y&&(u?m["aria-labelledby"]="".concat(T.replacementClass,"-title-").concat(G()):(m["aria-hidden"]="true",m.focusable="false")),rt({icons:{main:yt(y),mask:c?yt(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:b,transform:s({},X,r),symbol:o,title:u,extra:{attributes:m,styles:v,classes:d}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:xt(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:xt(r||{})),kt(n,s({},e,{mask:r}))}),Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,a=e.title,o=void 0===a?null:a,i=e.classes,c=void 0===i?[]:i,u=e.attributes,f=void 0===u?{}:u,d=e.styles,p=void 0===d?{}:d;return At({type:"text",content:t},(function(){return _t(),at({content:t,transform:s({},X,r),title:o,extra:{attributes:f,styles:p,classes:["".concat(T.familyPrefix,"-layers-text")].concat(l(c))}})}))}}).call(this,n("yLpj"),n("URgk").setImmediate)},"8oxB":function(t,e){var n,r,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++f1)for(var n=1;n
You can connect using the email address demo@2fauth.app and the password demo"}},commons:{cancel:"Cancel",update:"Update",copy_to_clipboard:"Copy to clipboard",profile:"Profile",edit:"Edit",delete:"Delete",save:"Save",close:"Close",demo_do_not_post_sensitive_data:"This is a demo app, do not post any sensitive data"},errors:{resource_not_found:"Resource not found",error_occured:"An error occured:",already_one_user_registered:"There is already a registered user.",cannot_register_more_user:"You cannot register more than one user.",refresh:"refresh",please:"Please ",response:{no_valid_otp:"No valid OTP resource in this QR code"},something_wrong_with_server:"Something is wrong with your server",Unable_to_decrypt_uri:"Unable to decrypt uri",wrong_current_password:"Wrong current password, nothing has changed"},languages:{en:"English",fr:"French"},pagination:{previous:"« Previous",next:"Next »"},passwords:{password:"Passwords must be at least eight characters and match the confirmation.",reset:"Your password has been reset!",sent:"We have e-mailed your password reset link!",token:"This password reset token is invalid.",user:"We can't find a user with that e-mail address."},settings:{settings:"Settings",account:"Account",password:"Password",options:"Options",confirm:[],forms:{edit_settings:"Edit settings",setting_saved:"Settings saved",language:{label:"Language",help:"Change the language used to translate the app interface."},show_token_as_dot:{label:"Show generated tokens as dot",help:"Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature."},close_token_on_copy:{label:"Close token after copy",help:"Automatically close the popup showing the generated token after it has been copied"}}},twofaccounts:{service:"Service",account:"Account",icon:"Icon",new:"New",no_account_here:"No 2FA here!",add_first_account:"Add your first account",use_full_form:"Use the full form",add_one:"Add one",manage:"Manage",done:"Done",forms:{service:{placeholder:"example.com"},account:{placeholder:"John DOE"},new_account:"New account",edit_account:"Edit account",otp_uri:"OTP Uri",hotp_counter:"HOTP Counter",use_qrcode:{val:"Use a qrcode",title:"Use a QR code to fill the form magically"},unlock:{val:"Unlock",title:"Unlock it (at your own risk)"},lock:{val:"Lock",title:"Lock it"},choose_image:"Choose an image…",create:"Create",save:"Save",test:"Test"},confirm:{delete:"Are you sure you want to delete this account?",cancel:"The account will be lost. Are you sure?"}},validation:{accepted:"The {attribute} must be accepted.",active_url:"The {attribute} is not a valid URL.",after:"The {attribute} must be a date after {date}.",after_or_equal:"The {attribute} must be a date after or equal to {date}.",alpha:"The {attribute} may only contain letters.",alpha_dash:"The {attribute} may only contain letters, numbers, dashes and underscores.",alpha_num:"The {attribute} may only contain letters and numbers.",array:"The {attribute} must be an array.",before:"The {attribute} must be a date before {date}.",before_or_equal:"The {attribute} must be a date before or equal to {date}.",between:{numeric:"The {attribute} must be between {min} and {max}.",file:"The {attribute} must be between {min} and {max} kilobytes.",string:"The {attribute} must be between {min} and {max} characters.",array:"The {attribute} must have between {min} and {max} items."},boolean:"The {attribute} field must be true or false.",confirmed:"The {attribute} confirmation does not match.",date:"The {attribute} is not a valid date.",date_equals:"The {attribute} must be a date equal to {date}.",date_format:"The {attribute} does not match the format {format}.",different:"The {attribute} and {other} must be different.",digits:"The {attribute} must be {digits} digits.",digits_between:"The {attribute} must be between {min} and {max} digits.",dimensions:"The {attribute} has invalid image dimensions.",distinct:"The {attribute} field has a duplicate value.",email:"The {attribute} must be a valid email address.",ends_with:"The {attribute} must end with one of the following: {values}",exists:"The selected {attribute} is invalid.",file:"The {attribute} must be a file.",filled:"The {attribute} field must have a value.",gt:{numeric:"The {attribute} must be greater than {value}.",file:"The {attribute} must be greater than {value} kilobytes.",string:"The {attribute} must be greater than {value} characters.",array:"The {attribute} must have more than {value} items."},gte:{numeric:"The {attribute} must be greater than or equal {value}.",file:"The {attribute} must be greater than or equal {value} kilobytes.",string:"The {attribute} must be greater than or equal {value} characters.",array:"The {attribute} must have {value} items or more."},image:"The {attribute} must be an image.",in:"The selected {attribute} is invalid.",in_array:"The {attribute} field does not exist in {other}.",integer:"The {attribute} must be an integer.",ip:"The {attribute} must be a valid IP address.",ipv4:"The {attribute} must be a valid IPv4 address.",ipv6:"The {attribute} must be a valid IPv6 address.",json:"The {attribute} must be a valid JSON string.",lt:{numeric:"The {attribute} must be less than {value}.",file:"The {attribute} must be less than {value} kilobytes.",string:"The {attribute} must be less than {value} characters.",array:"The {attribute} must have less than {value} items."},lte:{numeric:"The {attribute} must be less than or equal {value}.",file:"The {attribute} must be less than or equal {value} kilobytes.",string:"The {attribute} must be less than or equal {value} characters.",array:"The {attribute} must not have more than {value} items."},max:{numeric:"The {attribute} may not be greater than {max}.",file:"The {attribute} may not be greater than {max} kilobytes.",string:"The {attribute} may not be greater than {max} characters.",array:"The {attribute} may not have more than {max} items."},mimes:"The {attribute} must be a file of type: {values}.",mimetypes:"The {attribute} must be a file of type: {values}.",min:{numeric:"The {attribute} must be at least {min}.",file:"The {attribute} must be at least {min} kilobytes.",string:"The {attribute} must be at least {min} characters.",array:"The {attribute} must have at least {min} items."},not_in:"The selected {attribute} is invalid.",not_regex:"The {attribute} format is invalid.",numeric:"The {attribute} must be a number.",present:"The {attribute} field must be present.",regex:"The {attribute} format is invalid.",required:"The {attribute} field is required.",required_if:"The {attribute} field is required when {other} is {value}.",required_unless:"The {attribute} field is required unless {other} is in {values}.",required_with:"The {attribute} field is required when {values} is present.",required_with_all:"The {attribute} field is required when {values} are present.",required_without:"The {attribute} field is required when {values} is not present.",required_without_all:"The {attribute} field is required when none of {values} are present.",same:"The {attribute} and {other} must match.",size:{numeric:"The {attribute} must be {size}.",file:"The {attribute} must be {size} kilobytes.",string:"The {attribute} must be {size} characters.",array:"The {attribute} must contain {size} items."},starts_with:"The {attribute} must start with one of the following: {values}",string:"The {attribute} must be a string.",timezone:"The {attribute} must be a valid zone.",unique:"The {attribute} has already been taken.",uploaded:"The {attribute} failed to upload.",url:"The {attribute} format is invalid.",uuid:"The {attribute} must be a valid UUID.",custom:{"attribute-name":{"rule-name":"custom-message"},icon:{image:"Supported format are jpeg, png, bmp, gif, svg, or webp"},qrcode:{image:"Supported format are jpeg, png, bmp, gif, svg, or webp"},uri:{starts_with:"Only valid OTP uri are supported"},email:{exists:"No account found using this email"}},attributes:[]}},fr:{auth:{sign_out:"Déconnexion",sign_in:"Se connecter",register:"Créer un compte",hello:"Hi {username} !",throttle:"Trop de tentatives de connexion. Veuillez réessayer dans {seconds} secondes.",already_authenticated:"Déjà authentifié",confirm:{logout:"Etes-vous sûrs de vouloir vous déconnecter ?"},forms:{name:"Nom",login:"Connexion",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",confirm_new_password:"Confirmez le nouveau mot de passe",dont_have_account_yet:"Pas encore de compte ?",already_register:"Déjà enregistré ?",password_do_not_match:"Le mot de passe ne correspond pas",forgot_your_password:"Mot de passe oublié ?",request_password_reset:"Réinitialiser le mot de passe",reset_password:"Mot de passe oublié",new_password:"Nouveau mot de passe",current_password:{label:"Mot de passe actuel",help:"Indiquez votre mot de passe actuel pour confirmer qu'il s'agit bien de vous"},change_password:"Modifier le mot de passe",send_password_reset_link:"Envoyer",change_your_password:"Modifier votre mot de passe",password_successfully_changed:"Mot de passe modifié avec succès",edit_account:"Mis à jour du profil",profile_saved:"Profil mis à jour avec succès !",welcome_to_demo_app_use_those_credentials:"bienvenue sur la démo de 2FAuth.

Vous pouvez vous connecter en utilisant l'adresse email demo@2fauth.app et le mot de passe demo"}},commons:{cancel:"Annuler",update:"Mettre à jour",copy_to_clipboard:"Copier",profile:"Profil",edit:"Modifier",delete:"Supprimer",save:"Enregistrer",close:"Fermer",demo_do_not_post_sensitive_data:"Site de démonstration, ne postez aucune donnée sensible"},errors:{resource_not_found:"Ressource introuvable",error_occured:"Une erreur est survenue :",already_one_user_registered:"Un compte utilisateur existe déjà.",cannot_register_more_user:"Vous ne pouvez pas enregistrer plus d'un utilisateur.",refresh:"Actualiser",please:"",response:{no_valid_otp:"Aucune donnée OTP valide dans ce QR code"},something_wrong_with_server:"Il y a un problème avec votre serveur",Unable_to_decrypt_uri:"uri impossible à décoder",wrong_current_password:"Mot de passe actuel érroné, rien n\\a été modifié"},languages:{en:"Anglais",fr:"Français"},pagination:{previous:"« Précédent",next:"Suivant »"},passwords:{password:"Les mots de passe doivent contenir au moins huit caractères et être identiques.",reset:"Votre mot de passe a été réinitialisé !",sent:"Le lien pour réinitialiser votre mot de passe vient d'être envoyé !",token:"Ce jeton de réinitialisation n'est pas valide.",user:"Cette adresse email n'est pas celle de votre compte."},settings:{settings:"Réglages",account:"Compte",password:"Mot de passe",options:"Options",confirm:[],forms:{edit_settings:"Modifier les réglages",setting_saved:"Réglages sauvegardés",language:{label:"Langue",help:"Traduit l'application dans la langue choisie"},show_token_as_dot:{label:"Rendre illisibles les codes générés",help:"Remplace les caractères des codes générés par des ●●● pour garantir leur confidentialité. N'affecte pas la fonction de copier/coller qui reste utilisable."},close_token_on_copy:{label:"Ne plus afficher les codes copiés",help:"Ferme automatiquement le popup affichant le code généré dès que ce dernier a été copié."}}},twofaccounts:{service:"Service",account:"Compte",icon:"Icône",new:"Nouveau",no_account_here:"Aucun compte 2FA !",add_first_account:"Ajouter votre premier compte",use_full_form:"Utiliser le formulaire détaillé",add_one:"Add one",manage:"Gérer",done:"Terminé",forms:{service:{placeholder:"example.com"},account:{placeholder:"Marc Dupont"},new_account:"Nouveau compte",edit_account:"Modifier le compte",otp_uri:"OTP Uri",hotp_counter:"Compteur HOTP",use_qrcode:{val:"Utiliser un QR code",title:"Utiliser un QR code pour renseigner le formulaire d'un seul coup d'un seul"},unlock:{val:"Déverouiller",title:"Déverouiller le champ (à vos risques et périls)"},lock:{val:"Vérouiller",title:"Vérouiller le champ"},choose_image:"Choisir une image…",create:"Créer",save:"Enregistrer",test:"Tester"},confirm:{delete:"Etes-vous sûrs de vouloir supprimer le compte ?",cancel:"Les données seront perdues, êtes-vous sûrs ?"}},validation:{accepted:"Le champ {attribute} doit être accepté.",active_url:"Le champ {attribute} n'est pas une URL valide.",after:"Le champ {attribute} doit être une date postérieure au {date}.",after_or_equal:"Le champ {attribute} doit être une date postérieure ou égale au {date}.",alpha:"Le champ {attribute} doit contenir uniquement des lettres.",alpha_dash:"Le champ {attribute} doit contenir uniquement des lettres, des chiffres et des tirets.",alpha_num:"Le champ {attribute} doit contenir uniquement des chiffres et des lettres.",array:"Le champ {attribute} doit être un tableau.",before:"Le champ {attribute} doit être une date antérieure au {date}.",before_or_equal:"Le champ {attribute} doit être une date antérieure ou égale au {date}.",between:{numeric:"La valeur de {attribute} doit être comprise entre {min} et {max}.",file:"La taille du fichier de {attribute} doit être comprise entre {min} et {max} kilo-octets.",string:"Le texte {attribute} doit contenir entre {min} et {max} caractères.",array:"Le tableau {attribute} doit contenir entre {min} et {max} éléments."},boolean:"Le champ {attribute} doit être vrai ou faux.",confirmed:"Le champ de confirmation {attribute} ne correspond pas.",date:"Le champ {attribute} n'est pas une date valide.",date_equals:"Le champ {attribute} doit être une date égale à {date}.",date_format:"Le champ {attribute} ne correspond pas au format {format}.",different:"Les champs {attribute} et {other} doivent être différents.",digits:"Le champ {attribute} doit contenir {digits} chiffres.",digits_between:"Le champ {attribute} doit contenir entre {min} et {max} chiffres.",dimensions:"La taille de l'image {attribute} n'est pas conforme.",distinct:"Le champ {attribute} a une valeur en double.",email:"Le champ {attribute} doit être une adresse email valide.",ends_with:"Le champ {attribute} doit se terminer par une des valeurs suivantes : {values}",exists:"Le champ {attribute} sélectionné est invalide.",file:"Le champ {attribute} doit être un fichier.",filled:"Le champ {attribute} doit avoir une valeur.",gt:{numeric:"La valeur de {attribute} doit être supérieure à {value}.",file:"La taille du fichier de {attribute} doit être supérieure à {value} kilo-octets.",string:"Le texte {attribute} doit contenir plus de {value} caractères.",array:"Le tableau {attribute} doit contenir plus de {value} éléments."},gte:{numeric:"La valeur de {attribute} doit être supérieure ou égale à {value}.",file:"La taille du fichier de {attribute} doit être supérieure ou égale à {value} kilo-octets.",string:"Le texte {attribute} doit contenir au moins {value} caractères.",array:"Le tableau {attribute} doit contenir au moins {value} éléments."},image:"Le champ {attribute} doit être une image.",in:"Le champ {attribute} est invalide.",in_array:"Le champ {attribute} n'existe pas dans {other}.",integer:"Le champ {attribute} doit être un entier.",ip:"Le champ {attribute} doit être une adresse IP valide.",ipv4:"Le champ {attribute} doit être une adresse IPv4 valide.",ipv6:"Le champ {attribute} doit être une adresse IPv6 valide.",json:"Le champ {attribute} doit être un document JSON valide.",lt:{numeric:"La valeur de {attribute} doit être inférieure à {value}.",file:"La taille du fichier de {attribute} doit être inférieure à {value} kilo-octets.",string:"Le texte {attribute} doit contenir moins de {value} caractères.",array:"Le tableau {attribute} doit contenir moins de {value} éléments."},lte:{numeric:"La valeur de {attribute} doit être inférieure ou égale à {value}.",file:"La taille du fichier de {attribute} doit être inférieure ou égale à {value} kilo-octets.",string:"Le texte {attribute} doit contenir au plus {value} caractères.",array:"Le tableau {attribute} doit contenir au plus {value} éléments."},max:{numeric:"La valeur de {attribute} ne peut être supérieure à {max}.",file:"La taille du fichier de {attribute} ne peut pas dépasser {max} kilo-octets.",string:"Le texte de {attribute} ne peut contenir plus de {max} caractères.",array:"Le tableau {attribute} ne peut contenir plus de {max} éléments."},mimes:"Le champ {attribute} doit être un fichier de type : {values}.",mimetypes:"Le champ {attribute} doit être un fichier de type : {values}.",min:{numeric:"La valeur de {attribute} doit être supérieure ou égale à {min}.",file:"La taille du fichier de {attribute} doit être supérieure à {min} kilo-octets.",string:"Le texte {attribute} doit contenir au moins {min} caractères.",array:"Le tableau {attribute} doit contenir au moins {min} éléments."},not_in:"Le champ {attribute} sélectionné n'est pas valide.",not_regex:"Le format du champ {attribute} n'est pas valide.",numeric:"Le champ {attribute} doit contenir un nombre.",password:"Le mot de passe est incorrect",present:"Le champ {attribute} doit être présent.",regex:"Le format du champ {attribute} est invalide.",required:"Le champ {attribute} est obligatoire.",required_if:"Le champ {attribute} est obligatoire quand la valeur de {other} est {value}.",required_unless:"Le champ {attribute} est obligatoire sauf si {other} est {values}.",required_with:"Le champ {attribute} est obligatoire quand {values} est présent.",required_with_all:"Le champ {attribute} est obligatoire quand {values} sont présents.",required_without:"Le champ {attribute} est obligatoire quand {values} n'est pas présent.",required_without_all:"Le champ {attribute} est requis quand aucun de {values} n'est présent.",same:"Les champs {attribute} et {other} doivent être identiques.",size:{numeric:"La valeur de {attribute} doit être {size}.",file:"La taille du fichier de {attribute} doit être de {size} kilo-octets.",string:"Le texte de {attribute} doit contenir {size} caractères.",array:"Le tableau {attribute} doit contenir {size} éléments."},starts_with:"Le champ {attribute} doit commencer avec une des valeurs suivantes : {values}",string:"Le champ {attribute} doit être une chaîne de caractères.",timezone:"Le champ {attribute} doit être un fuseau horaire valide.",unique:"La valeur du champ {attribute} est déjà utilisée.",uploaded:"Le fichier du champ {attribute} n'a pu être téléversé.",url:"Le format de l'URL de {attribute} n'est pas valide.",uuid:"Le champ {attribute} doit être un UUID valide",custom:{"attribute-name":{"rule-name":"custom-message"},icon:{image:"Les formats acceptés sont jpeg, png, bmp, gif, svg, or webp"},qrcode:{image:"Les formats acceptés sont jpeg, png, bmp, gif, svg, or webp"},uri:{starts_with:"La valeur n'est pas une uri OTP valide"},email:{exists:"Aucun compte utilisateur n'utilise cette email"}},attributes:[]}}}},NnI0:function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,n){var r,a;n(10),r=n(1);var o=n(8);a=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some((function(t){return"default"!==t&&"__esModule"!==t}))&&console.error("named exports are not supported in *.vue files."),a=r=r.default),"function"==typeof a&&(a=a.options),a.__file="/Users/linbin/Desktop/workspace/vue-pull-refresh/src/vue-pull-refresh.vue",a.render=o.render,a.staticRenderFns=o.staticRenderFns,a.functional&&console.error("[vue-loader] vue-pull-refresh.vue: functional components are not supported and should be defined in plain js files using render functions."),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["数据异常","下拉刷新数据","松开刷新数据","数据刷新中..."];e.default={props:{onRefresh:{type:Function},config:{type:Object,default:function(){return{}}}},data:function(){return{pullDown:{status:0,height:0,msg:""},canPull:!1}},computed:{label:function(){return-1===this.pullDown.status?this.pullDown.msg:this.customLabels[this.pullDown.status+1]},customLabels:function(){return[void 0!==this.config.errorLabel?this.config.errorLabel:r[0],void 0!==this.config.startLabel?this.config.startLabel:r[1],void 0!==this.config.readyLabel?this.config.readyLabel:r[2],void 0!==this.config.loadingLabel?this.config.loadingLabel:r[3]]},iconClass:function(){return 2===this.pullDown.status?"pull-down-refresh":-1===this.pullDown.status?"pull-down-error":""},pullDownContentStyle:function(){return{bottom:(this.config.pullDownHeight-40)/2+"px"}}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.$el,n=e.querySelector(".pull-down-header"),r=n.querySelector(".pull-down-content--icon");t.config.pullDownHeight=t.config.pullDownHeight||60;var a=function(t,e){e&&(n.style.transition="height .2s ease"),t.height=0,t.status=0},o={start:0,distance:0},i=!1;try{var s=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,s)}catch(t){}e.addEventListener("touchstart",(function(n){0===e.scrollTop?t.canPull=!0:t.canPull=!1,o.start=n.touches.item(0).pageY}),!!i&&{passive:!0}),e.addEventListener("touchmove",(function(n){if(t.canPull){var a=n.touches.item(0).pageY-o.start;(a=a>180?180:a)>0&&(e.style.overflow="hidden"),o.distance=a,t.pullDown.height=a,a>t.config.pullDownHeight?(t.pullDown.status=1,r.style.transform="rotate(180deg)"):(t.pullDown.status=0,r.style.transform="rotate("+a/t.config.pullDownHeight*180+"deg)")}}),!!i&&{passive:!0}),e.addEventListener("touchend",(function(i){if(t.canPull=!1,e.style.overflowY="auto",n.style.transition="height .2s ease",r.style.transform="",o.distance-e.scrollTop>t.config.pullDownHeight)if(e.scrollTop=0,t.pullDown.height=t.config.pullDownHeight,t.pullDown.status=2,t.onRefresh&&"function"==typeof t.onRefresh){var s=t.onRefresh();s&&s.then&&"function"==typeof s.then?s.then((function(e){a(t.pullDown,!0)}),(function(e){"string"!=typeof e&&(e=!1),t.pullDown.msg=e||t.customLabels[0],t.pullDown.status=-1,setTimeout((function(){a(t.pullDown,!0)}),1e3)})):a(t.pullDown)}else a(t.pullDown),console.warn("please use :on-refresh to pass onRefresh callback");else a(t.pullDown);o.distance=0,o.start=0})),n.addEventListener("transitionend",(function(){n.style.transition=""})),n.addEventListener("webkitTransitionEnd",(function(){n.style.transition=""}))}))}}},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));t.exports=r.default},function(t,e,n){(t.exports=n(4)()).push([t.i,'\n.pull-down-container {\n height: 100%;\n max-height: 100%;\n overflow-y: auto;\n}\n.pull-down-header {\n width: 100%;\n height: 0px;\n overflow: hidden;\n position: relative;\n background-color: #2c3133;\n}\n.pull-down-content {\n position: absolute;\n max-width: 90%;\n bottom: 10px;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n height: 40px;\n color: #d5d5d5;\n text-align: center;\n border-left: 20px solid transparent;\n font-family: "noto-thin", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n}\n.pull-down-content--icon {\n float: left;\n height: 20px;\n width: 20px;\n margin-top: 10px;\n margin-left: -20px;\n background: url('+n(5)+") no-repeat center center;\n background-size: 20px 20px;\n}\n.pull-down-content--icon.pull-down-refresh {\n background: url("+n(7)+") no-repeat center center;\n background-size: 20px 20px;\n -webkit-animation: rotate 2s infinite;\n animation: rotate 2s infinite;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n.pull-down-content--icon.pull-down-error {\n background: url("+n(6)+") no-repeat center center;\n background-size: 20px 20px;\n}\n.pull-down-content--label {\n float: left;\n height: 20px;\n line-height: 20px;\n margin-left: 10px;\n margin-top: 10px;\n}\n@-webkit-keyframes rotate {\nfrom {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\nto {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@keyframes rotate {\nfrom {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\nto {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&m.splice(e,1)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function i(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=h(e,a);else{var o=document.createTextNode(a),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(o,i[e]):t.appendChild(o)}}function s(t,e){var n=e.css,r=e.media,a=e.sourceMap;if(r&&t.setAttribute("media",r),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c={},l=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},u=l((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),f=l((function(){return document.head||document.getElementsByTagName("head")[0]})),d=null,p=0,m=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(e=e||{}).singleton&&(e.singleton=u()),void 0===e.insertAt&&(e.insertAt="bottom");var a=r(t);return n(a,e),function(t){for(var o=[],i=0;i=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,a,o,i,s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){m(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){m(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):r=function(t){setTimeout(m,0,t)}:(i="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&m(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(i+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n otp.replace(/ /g, '')"},{name:"clipboard",rawName:"v-clipboard:success",value:t.clipboardSuccessHandler,expression:"clipboardSuccessHandler",arg:"success"}],staticClass:"is-size-1 has-text-white",attrs:{id:"otp",title:t.$t("commons.copy_to_clipboard")}},[t._v(t._s(t.displayedOtp))]),t._v(" "),"totp"===t.type?n("ul",{staticClass:"dots"},t._l(30,(function(t){return n("li")})),0):"hotp"===t.type?n("ul",[n("li",[t._v("counter: "+t._s(t.counter))])]):t._e()])}),[],!1,null,null,null).exports;function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n0}},{key:"get",value:function(t){if(this.has(t))return this.getAll(t)[0]}},{key:"getAll",value:function(t){return y(this.errors[t]||[])}},{key:"only",value:function(){for(var t=this,e=[],n=arguments.length,r=new Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};k(this,t),this.isBusy=!1,this.isDisabled=!1,this.errors=new b,Object.assign(this,e)}var e,n,r;return e=t,(n=[{key:"fill",value:function(t){var e=this;this.keys().forEach((function(n){e[n]=t[n]}))}},{key:"data",value:function(){var t=this;return this.keys().reduce((function(e,n){return A({},e,x({},n,t[n]))}),{})}},{key:"keys",value:function(){return Object.keys(this).filter((function(e){return!t.ignore.includes(e)}))}},{key:"startProcessing",value:function(){this.errors.clear(),this.isBusy=!0}},{key:"finishProcessing",value:function(){this.isBusy=!1}},{key:"clear",value:function(){this.errors.clear()}},{key:"reset",value:function(){var e=this;Object.keys(this).filter((function(e){return!t.ignore.includes(e)})).forEach((function(t){e[t]=deepCopy(e.originalData[t])}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("get",t,e)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("post",t,e)}},{key:"patch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("patch",t,e)}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("put",t,e)}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("delete",t,e)}},{key:"submit",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.startProcessing();var o="get"===t?{params:this.data()}:this.data();return new Promise((function(i,s){a.a.axios.request(A({url:n.route(e),method:t,data:o},r)).then((function(t){n.finishProcessing(),i(t)})).catch((function(t){n.isBusy=!1,t.response&&n.errors.set(n.extractErrors(t.response)),s(t)}))}))}},{key:"upload",value:function(t,e){var n=this;return arguments.length>2&&void 0!==arguments[2]&&arguments[2],this.startProcessing(),new Promise((function(r,o){a.a.axios.request({url:n.route(t),method:"post",data:e,header:{"Content-Type":"multipart/form-data"}}).then((function(t){n.finishProcessing(),r(t)})).catch((function(t){n.isBusy=!1,t.response&&n.errors.set(n.extractErrors(t.response)),o(t)}))}))}},{key:"extractErrors",value:function(e){return e.data&&"object"===w(e.data)?e.data.errors?A({},e.data.errors):e.data.message?{error:e.data.message}:A({},e.data):{error:t.errorMessage}}},{key:"route",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;return t.routes.hasOwnProperty(e)&&(r=decodeURI(t.routes[e])),"object"!==w(n)&&(n={id:n}),Object.keys(n).forEach((function(t){r=r.replace("{".concat(t,"}"),n[t])})),r}},{key:"onKeydown",value:function(t){t.target.name&&this.errors.clear(t.target.name)}}])&&C(e.prototype,n),r&&C(e,r),t}();T.routes={},T.errorMessage="Something went wrong. Please try again.",T.ignore=["isBusy","isDisabled","errors","originalData"];var L=T,S=n("NnI0");function E(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function O(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){E(o,r,a,i,s,"next",t)}function s(t){E(o,r,a,i,s,"throw",t)}i(void 0)}))}}var I,M,N=c({data:function(){return{accounts:[],selectedAccounts:[],ShowTwofaccountInModal:!1,search:"",editMode:this.InitialEditMode,showQuickForm:!1,form:new L({qrcode:null})}},computed:{filteredAccounts:function(){var t=this;return this.accounts.filter((function(e){return e.service.toLowerCase().includes(t.search.toLowerCase())||e.account.toLowerCase().includes(t.search.toLowerCase())}))},showAccounts:function(){return this.accounts.length>0&&!this.showQuickForm}},props:["InitialEditMode"],created:function(){this.fetchAccounts(),this.$on("modalClose",(function(){console.log("modalClose triggered"),this.$refs.TwofaccountShow.clearOTP()}))},components:{Modal:l,TwofaccountShow:p,"vue-pull-refresh":n.n(S).a},methods:{onRefresh:function(){var t=this;return new Promise((function(e,n){setTimeout((function(){t.fetchAccounts(),e()}),1e3)}))},uploadQrcode:(M=O(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).append("qrcode",this.$refs.qrcodeInput.files[0]),t.next=4,this.form.upload("/api/qrcode/decode",n);case 4:r=t.sent,a=r.data,this.$router.push({name:"create",params:{qrAccount:a}});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return M.apply(this,arguments)}),fetchAccounts:function(){var t=this;this.accounts=[],this.selectedAccounts=[],this.axios.get("api/twofaccounts").then((function(e){e.data.forEach((function(e){t.accounts.push({id:e.id,service:e.service,account:e.account?e.account:"-",icon:e.icon})})),t.showQuickForm=0===e.data.length}))},showAccount:function(t){if(this.editMode){for(var e=0;e0},attrs:{disabled:0==t.selectedAccounts.length},on:{click:t.destroyAccounts}},[n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","trash"]}})],1),t._v(" "),n("span",[t._v(t._s(t.$t("commons.delete")))])])]):n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input is-rounded is-search",attrs:{type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),n("span",{staticClass:"icon is-small is-right"},[t.search?t._e():n("font-awesome-icon",{attrs:{icon:["fas","search"]}}),t._v(" "),t.search?n("a",{staticClass:"delete",on:{click:function(e){t.search=""}}}):t._e()],1)])])])]),t._v(" "),n("vue-pull-refresh",{staticClass:"accounts columns is-multiline is-centered",attrs:{"on-refresh":t.onRefresh,config:{errorLabel:"error",startLabel:"",readyLabel:"",loadingLabel:"refreshing"}}},t._l(t.filteredAccounts,(function(e){return n("div",{staticClass:"tfa column is-narrow has-text-white"},[n("div",{staticClass:"tfa-container"},[n("transition",{attrs:{name:"slideCheckbox"}},[t.editMode?n("div",{staticClass:"tfa-checkbox"},[n("div",{staticClass:"field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAccounts,expression:"selectedAccounts"}],staticClass:"is-checkradio is-small is-white",attrs:{id:"ckb_"+e.id,type:"checkbox",name:"ckb_"+e.id},domProps:{value:e.id,checked:Array.isArray(t.selectedAccounts)?t._i(t.selectedAccounts,e.id)>-1:t.selectedAccounts},on:{change:function(n){var r=t.selectedAccounts,a=n.target,o=!!a.checked;if(Array.isArray(r)){var i=e.id,s=t._i(r,i);a.checked?s<0&&(t.selectedAccounts=r.concat([i])):s>-1&&(t.selectedAccounts=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedAccounts=o}}}),t._v(" "),n("label",{attrs:{for:"ckb_"+e.id}})])]):t._e()]),t._v(" "),n("div",{staticClass:"tfa-content is-size-3 is-size-4-mobile",on:{click:function(n){return n.stopPropagation(),t.showAccount(e)}}},[n("div",{staticClass:"tfa-text has-ellipsis"},[e.icon?n("img",{attrs:{src:"/storage/icons/"+e.icon}}):t._e(),t._v("\n "+t._s(e.service)+"\n "),n("span",{staticClass:"is-family-primary is-size-6 is-size-7-mobile has-text-grey "},[t._v(t._s(e.account))])])]),t._v(" "),n("transition",{attrs:{name:"fadeInOut"}},[t.editMode?n("div",{staticClass:"tfa-dots has-text-grey"},[n("router-link",{staticClass:"tag is-dark is-rounded",attrs:{to:{name:"edit",params:{twofaccountId:e.id}}}},[t._v("\n\t "+t._s(t.$t("commons.edit"))+"\n\t ")])],1):t._e()])],1)])})),0)],1):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showQuickForm,expression:"showQuickForm"}],staticClass:"container has-text-centered"},[n("div",{staticClass:"columns is-mobile",class:{"is-invisible":this.accounts.length>0}},[n("div",{staticClass:"column quickform-header"},[t._v("\n "+t._s(t.$t("twofaccounts.no_account_here"))),n("br"),t._v("\n "+t._s(t.$t("twofaccounts.add_first_account"))+"\n ")])]),t._v(" "),n("div",{staticClass:"container"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"columns is-mobile no-account is-vcentered"},[n("div",{staticClass:"column has-text-centered"},[n("label",{staticClass:"button is-link is-medium is-rounded is-focused",class:{"is-loading":t.form.isBusy}},[n("input",{ref:"qrcodeInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadQrcode}}),t._v("\n "+t._s(t.$t("twofaccounts.forms.use_qrcode.val"))+"\n ")])])]),t._v(" "),n("field-error",{attrs:{form:t.form,field:"qrcode"}})],1)]),t._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column quickform-footer"},[n("router-link",{staticClass:"is-link",attrs:{to:{name:"create"}}},[t._v(t._s(t.$t("twofaccounts.use_full_form")))])],1)])]),t._v(" "),n("modal",{model:{value:t.ShowTwofaccountInModal,callback:function(e){t.ShowTwofaccountInModal=e},expression:"ShowTwofaccountInModal"}},[n("twofaccount-show",{ref:"TwofaccountShow"})],1),t._v(" "),n("vue-footer",{attrs:{showButtons:this.accounts.length>0}},[t.showQuickForm||t.editMode?t._e():n("p",{staticClass:"control"},[n("a",{staticClass:"button is-link is-rounded is-focus",on:{click:function(e){t.showQuickForm=!0}}},[n("span",[t._v(t._s(t.$t("twofaccounts.new")))]),t._v(" "),n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","qrcode"]}})],1)])]),t._v(" "),t.showQuickForm||t.editMode?t._e():n("p",{staticClass:"control"},[n("a",{staticClass:"button is-dark is-rounded",on:{click:function(e){return t.setEditModeTo(!0)}}},[t._v(t._s(t.$t("twofaccounts.manage")))])]),t._v(" "),!t.showQuickForm&&t.editMode?n("p",{staticClass:"control"},[n("a",{staticClass:"button is-success is-rounded",on:{click:function(e){return t.setEditModeTo(!1)}}},[n("span",[t._v(t._s(t.$t("twofaccounts.done")))]),t._v(" "),n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","check"]}})],1)])]):t._e(),t._v(" "),t.showQuickForm?n("p",{staticClass:"control"},[n("a",{staticClass:"button is-dark is-rounded",on:{click:t.cancelQuickForm}},[t._v("\n "+t._s(t.$t("commons.cancel"))+"\n ")])]):t._e()])],1)}),[],!1,null,null,null).exports;function P(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function j(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){P(o,r,a,i,s,"next",t)}function s(t){P(o,r,a,i,s,"throw",t)}i(void 0)}))}}var $,q,z=c({data:function(){return{isQuickForm:!1,ShowTwofaccountInModal:!1,uriIsLocked:!0,tempIcon:"",form:new L({service:"",account:"",uri:"",icon:"",qrcode:null})}},watch:{tempIcon:function(t){this.isQuickForm&&(this.$refs.TwofaccountShow.internal_icon=t)}},mounted:function(){this.$route.params.qrAccount&&(this.isQuickForm=!0,this.form.fill(this.$route.params.qrAccount)),this.$on("modalClose",(function(){this.$refs.TwofaccountPreview.stopLoop()}))},components:{Modal:l,TwofaccountShow:p},methods:{createAccount:(q=j(s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.form.icon=this.tempIcon,this.isQuickForm&&this.$refs.TwofaccountShow.next_uri?this.form.uri=this.$refs.TwofaccountShow.next_uri:this.$refs.TwofaccountPreview&&this.$refs.TwofaccountPreview.next_uri&&(this.form.uri=this.$refs.TwofaccountPreview.next_uri),t.next=4,this.form.post("/api/twofaccounts");case 4:!1===this.form.errors.any()&&this.$router.push({name:"accounts",params:{InitialEditMode:!1}});case 5:case"end":return t.stop()}}),t,this)}))),function(){return q.apply(this,arguments)}),previewAccount:function(){this.form.uri&&this.$refs.TwofaccountPreview.showAccount()},cancelCreation:function(){this.form.service&&this.form.uri&&!1===confirm(this.$t("twofaccounts.confirm.cancel"))||(this.deleteIcon(),this.$router.push({name:"accounts",params:{InitialEditMode:!1}}))},uploadQrcode:function(){var t=j(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).append("qrcode",this.$refs.qrcodeInput.files[0]),t.next=4,this.form.upload("/api/qrcode/decode",n);case 4:r=t.sent,a=r.data,this.form.fill(a);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),uploadIcon:($=j(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.deleteIcon(),(n=new FormData).append("icon",this.$refs.iconInput.files[0]),t.next=5,this.form.upload("/api/icon/upload",n);case 5:r=t.sent,a=r.data,this.tempIcon=a;case 8:case"end":return t.stop()}}),t,this)}))),function(t){return $.apply(this,arguments)}),deleteIcon:function(t){this.tempIcon&&(this.axios.delete("/api/icon/delete/"+this.tempIcon),this.tempIcon="")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isQuickForm?n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"container preview has-text-centered"},[n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column"},[t.tempIcon?t._e():n("label",{staticClass:"add-icon-button"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("font-awesome-icon",{attrs:{icon:["fas","image"],size:"2x"}})],1),t._v(" "),t.tempIcon?n("button",{staticClass:"delete delete-icon-button is-medium",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}}):t._e(),t._v(" "),n("twofaccount-show",{ref:"TwofaccountShow",attrs:{service:t.form.service,account:t.form.account,uri:t.form.uri}})],1)]),t._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column quickform-footer"},[n("div",{staticClass:"field is-grouped is-grouped-centered"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.save")))])],1),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])])])])]):n("form-wrapper",{attrs:{title:t.$t("twofaccounts.forms.new_account")}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"file is-dark is-boxed"},[n("label",{staticClass:"file-label",attrs:{title:t.$t("twofaccounts.forms.use_qrcode.title")}},[n("input",{ref:"qrcodeInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadQrcode}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","qrcode"],size:"lg"}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.use_qrcode.val")))])])])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"qrcode"}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"service",inputType:"text",label:t.$t("twofaccounts.service"),placeholder:t.$t("twofaccounts.forms.service.placeholder"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"account",inputType:"text",label:t.$t("twofaccounts.account"),placeholder:t.$t("twofaccounts.forms.account.placeholder")}}),t._v(" "),n("div",{staticClass:"field",staticStyle:{"margin-bottom":"0.5rem"}},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.forms.otp_uri")))])]),t._v(" "),n("div",{staticClass:"field has-addons"},[n("div",{staticClass:"control is-expanded"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.uri,expression:"form.uri"}],staticClass:"input",attrs:{type:"text",placeholder:"otpauth://totp/...",disabled:t.uriIsLocked},domProps:{value:t.form.uri},on:{input:function(e){e.target.composing||t.$set(t.form,"uri",e.target.value)}}})]),t._v(" "),t.uriIsLocked?n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-lock",attrs:{title:t.$t("twofaccounts.forms.unlock.title")},on:{click:function(e){t.uriIsLocked=!1}}},[n("span",{staticClass:"icon"},[n("font-awesome-icon",{attrs:{icon:["fas","lock"]}})],1)])]):n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-unlock",attrs:{title:t.$t("twofaccounts.forms.lock.title")},on:{click:function(e){t.uriIsLocked=!0}}},[n("span",{staticClass:"icon has-text-danger"},[n("font-awesome-icon",{attrs:{icon:["fas","lock-open"]}})],1)])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"uri"}}),t._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.icon")))]),t._v(" "),n("div",{staticClass:"file is-dark"},[n("label",{staticClass:"file-label"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","image"]}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.choose_image")))])])]),t._v(" "),t.tempIcon?n("span",{staticClass:"tag is-black is-large"},[n("img",{staticClass:"icon-preview",attrs:{src:"/storage/icons/"+t.tempIcon}}),t._v(" "),n("button",{staticClass:"delete is-small",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}})]):t._e()])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"icon"}}),t._v(" "),n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.create")))])],1),t._v(" "),t.form.uri?n("div",{staticClass:"control"},[n("button",{staticClass:"button is-success",attrs:{type:"button"},on:{click:t.previewAccount}},[t._v(t._s(t.$t("twofaccounts.forms.test")))])]):t._e(),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])],1),t._v(" "),n("modal",{model:{value:t.ShowTwofaccountInModal,callback:function(e){t.ShowTwofaccountInModal=e},expression:"ShowTwofaccountInModal"}},[n("twofaccount-show",{ref:"TwofaccountPreview",attrs:{service:t.form.service,account:t.form.account,uri:t.form.uri,icon:t.tempIcon}})],1)],1)}),[],!1,null,null,null).exports;function D(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function B(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){D(o,r,a,i,s,"next",t)}function s(t){D(o,r,a,i,s,"throw",t)}i(void 0)}))}}var F,R,Q=c({data:function(){return{counterIsLocked:!0,twofaccountExists:!1,tempIcon:"",form:new L({service:"",account:"",uri:"",icon:"",qrcode:null,type:"",counter:null})}},created:function(){this.getAccount()},methods:{getAccount:(R=B(s.a.mark((function t(){var e,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("/api/twofaccounts/"+this.$route.params.twofaccountId);case 2:e=t.sent,n=e.data,this.form.fill(n),this.twofaccountExists=!0,this.tempIcon=this.form.icon;case 7:case"end":return t.stop()}}),t,this)}))),function(){return R.apply(this,arguments)}),updateAccount:(F=B(s.a.mark((function t(){var e;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.tempIcon!==this.form.icon&&(e=this.form.icon,this.form.icon=this.tempIcon,this.tempIcon=e,this.deleteIcon()),t.next=3,this.form.put("/api/twofaccounts/"+this.$route.params.twofaccountId);case 3:!1===this.form.errors.any()&&this.$router.push({name:"accounts",params:{InitialEditMode:!0}});case 4:case"end":return t.stop()}}),t,this)}))),function(){return F.apply(this,arguments)}),cancelCreation:function(){this.deleteIcon(),this.$router.push({name:"accounts",params:{InitialEditMode:!0}})},uploadIcon:function(){var t=B(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.deleteIcon(),(n=new FormData).append("icon",this.$refs.iconInput.files[0]),t.next=5,this.form.upload("/api/icon/upload",n);case 5:r=t.sent,a=r.data,this.tempIcon=a;case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),deleteIcon:function(t){this.tempIcon&&this.tempIcon!==this.form.icon&&this.axios.delete("/api/icon/delete/"+this.tempIcon),this.tempIcon=""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("twofaccounts.forms.edit_account")}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.updateAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"service",inputType:"text",label:t.$t("twofaccounts.service"),placeholder:t.$t("twofaccounts.forms.service.placeholder"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"account",inputType:"text",label:t.$t("twofaccounts.account"),placeholder:t.$t("twofaccounts.forms.account.placeholder")}}),t._v(" "),"hotp"===t.form.type?n("div",[n("div",{staticClass:"field",staticStyle:{"margin-bottom":"0.5rem"}},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.forms.hotp_counter")))])]),t._v(" "),n("div",{staticClass:"field has-addons"},[n("div",{staticClass:"control is-expanded"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.counter,expression:"form.counter"}],staticClass:"input",attrs:{type:"text",placeholder:"",disabled:t.counterIsLocked},domProps:{value:t.form.counter},on:{input:function(e){e.target.composing||t.$set(t.form,"counter",e.target.value)}}})]),t._v(" "),t.counterIsLocked?n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-lock",attrs:{title:t.$t("twofaccounts.forms.unlock.title")},on:{click:function(e){t.counterIsLocked=!1}}},[n("span",{staticClass:"icon"},[n("font-awesome-icon",{attrs:{icon:["fas","lock"]}})],1)])]):n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-unlock",attrs:{title:t.$t("twofaccounts.forms.lock.title")},on:{click:function(e){t.counterIsLocked=!0}}},[n("span",{staticClass:"icon has-text-danger"},[n("font-awesome-icon",{attrs:{icon:["fas","lock-open"]}})],1)])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"uri"}})],1):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.icon")))]),t._v(" "),n("div",{staticClass:"file is-dark"},[n("label",{staticClass:"file-label"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","image"]}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.choose_image")))])])]),t._v(" "),t.tempIcon?n("span",{staticClass:"tag is-black is-large"},[n("img",{staticClass:"icon-preview",attrs:{src:"/storage/icons/"+t.tempIcon}}),t._v(" "),n("button",{staticClass:"delete is-small",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}})]):t._e()])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"icon"}}),t._v(" "),n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.save")))])],1),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])],1)])}),[],!1,null,null,null).exports,H=c({data:function(){return{success:"",fail:"",form:new L({email:"",password:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/login",{returnError:!0}).then((function(t){localStorage.setItem("user",t.data.message.name),localStorage.setItem("jwt",t.data.message.token),null!=localStorage.getItem("jwt")&&e.$router.go("/")})).catch((function(t){401===t.response.status?e.fail=e.$t("auth.forms.password_do_not_match"):422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}},beforeRouteEnter:function(t,e,n){if(localStorage.getItem("jwt"))return n("/");n()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.login"),fail:t.fail,success:t.success}},[t.$root.appSettings.isDemoApp?n("div",{staticClass:"notification is-info has-text-centered",domProps:{innerHTML:t._s(t.$t("auth.forms.welcome_to_demo_app_use_those_credentials"))}}):t._e(),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.sign_in")}})],1),t._v(" "),n("p",[t._v(t._s(t.$t("auth.forms.dont_have_account_yet"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"register"}}},[t._v(t._s(t.$t("auth.register")))])],1),t._v(" "),t.$root.appSettings.isDemoApp?t._e():n("p",[t._v(t._s(t.$t("auth.forms.forgot_your_password"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"password.request"}}},[t._v(t._s(t.$t("auth.forms.request_password_reset")))])],1)])}),[],!1,null,null,null).exports;function U(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function V(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){U(o,r,a,i,s,"next",t)}function s(t){U(o,r,a,i,s,"throw",t)}i(void 0)}))}}var Y,X=c({data:function(){return{success:"",fail:"",form:new L({name:"",email:"",password:"",password_confirmation:""})}},methods:{handleSubmit:(Y=V(s.a.mark((function t(e){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.next=3,this.form.post("api/register");case 3:n=t.sent,r=n.data,!1===this.form.errors.any()&&(localStorage.setItem("user",r.message.name),localStorage.setItem("jwt",r.message.token),null!=localStorage.getItem("jwt")&&this.$router.push({name:"accounts"}));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return Y.apply(this,arguments)})},beforeRouteEnter:function(t,e,n){if(localStorage.getItem("jwt"))return n("/");n(function(){var t=V(s.a.mark((function t(e){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.axios.post("api/checkuser");case 2:n=t.sent,n.data.userCount>0&&(e.form.isDisabled=!0,e.fail=e.$t("errors.already_one_user_registered")+" "+e.$t("errors.cannot_register_more_user"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.register"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"name",inputType:"text",label:t.$t("auth.forms.name"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,isDisabled:t.form.isDisabled,caption:t.$t("auth.register")}})],1),t._v(" "),n("p",[t._v(t._s(t.$t("auth.forms.already_register"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"login"}}},[t._v(t._s(t.$t("auth.sign_in")))])],1)])}),[],!1,null,null,null).exports,W=c({data:function(){return{success:"",fail:"",form:new L({email:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/password/email",{returnError:!0}).then((function(t){e.success=t.data.status})).catch((function(t){t.response.data.requestFailed?e.fail=t.response.data.requestFailed:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.reset_password"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),autofocus:""}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.send_password_reset_link"),showCancelButton:!0,cancelLandingView:"login"}})],1)])}),[],!1,null,null,null).exports,G=c({data:function(){return{success:"",fail:"",form:new L({email:"",password:"",password_confirmation:"",token:""})}},created:function(){this.form.email=this.$route.query.email,this.form.token=this.$route.params.token},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/password/reset",{returnError:!0}).then((function(t){e.success=t.data.status})).catch((function(t){t.response.data.resetFailed?e.fail=t.response.data.resetFailed:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.new_password"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),disabled:"",readonly:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.change_password"),showCancelButton:!0,cancelLandingView:"login"}})],1)])}),[],!1,null,null,null).exports,J=c({data:function(){return{success:"",fail:"",form:new L({lang:this.$root.$i18n.locale,showTokenAsDot:this.$root.appSettings.showTokenAsDot,closeTokenOnCopy:this.$root.appSettings.closeTokenOnCopy}),options:[{text:this.$t("languages.en"),value:"en"},{text:this.$t("languages.fr"),value:"fr"}]}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.post("/api/settings/options",{returnError:!0}).then((function(t){e.success=t.data.message,t.data.settings.lang!==e.$root.$i18n.locale?e.$router.go():e.$root.appSettings=t.data.settings})).catch((function(t){e.fail=t.response.data.message}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag is-dark"},[t._v("2FAuth")]),t._v(" "),n("span",{staticClass:"tag is-info"},[t._v("v"+t._s(t.$root.appVersion))])]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},change:t.handleSubmit,keydown:function(e){return t.form.onKeydown(e)}}},[n("form-select",{attrs:{options:t.options,form:t.form,fieldName:"lang",label:t.$t("settings.forms.language.label"),help:t.$t("settings.forms.language.help")}}),t._v(" "),n("form-switch",{attrs:{form:t.form,fieldName:"showTokenAsDot",label:t.$t("settings.forms.show_token_as_dot.label"),help:t.$t("settings.forms.show_token_as_dot.help")}}),t._v(" "),n("form-switch",{attrs:{form:t.form,fieldName:"closeTokenOnCopy",label:t.$t("settings.forms.close_token_on_copy.label"),help:t.$t("settings.forms.close_token_on_copy.help")}})],1)])}),[],!1,null,null,null).exports;function Z(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}var K,tt=c({data:function(){return{success:"",fail:"",form:new L({name:"",email:"",password:""})}},mounted:(K=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){Z(o,r,a,i,s,"next",t)}function s(t){Z(o,r,a,i,s,"throw",t)}i(void 0)}))}}(s.a.mark((function t(){var e,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.form.get("/api/settings/account");case 2:e=t.sent,n=e.data,this.form.fill(n);case 5:case"end":return t.stop()}}),t,this)}))),function(){return K.apply(this,arguments)}),methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.patch("/api/settings/account",{returnError:!0}).then((function(t){e.success=t.data.message})).catch((function(t){400===t.response.status?e.fail=t.response.data.message:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"name",label:t.$t("auth.forms.name"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.current_password.label"),help:t.$t("auth.forms.current_password.help"),hasOffset:!0}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("commons.update")}})],1)])}),[],!1,null,null,null).exports,et=c({data:function(){return{success:"",fail:"",form:new L({currentPassword:"",password:"",password_confirmation:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.patch("/api/settings/password",{returnError:!0}).then((function(t){e.success=t.data.message})).catch((function(t){400===t.response.status?e.fail=t.response.data.message:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"currentPassword",inputType:"password",label:t.$t("auth.forms.current_password.label"),help:t.$t("auth.forms.current_password.help"),hasOffset:!0}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.change_password")}})],1)])}),[],!1,null,null,null),nt=c({data:function(){return{tabs:[{name:this.$t("settings.options"),isActive:!0},{name:this.$t("settings.account"),isActive:!1},{name:this.$t("settings.password"),isActive:!1}],activeTab:this.$t("settings.options")}},components:{Options:J,Account:tt,Password:et.exports},methods:{selectTab:function(t){var e=this;this.tabs.forEach((function(n){n.isActive=n.name==t.name,n.name==t.name&&(e.activeTab=t.name)}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"form-column column is-two-thirds-tablet is-half-desktop is-one-third-widescreen is-one-quarter-fullhd"},[n("div",{staticClass:"tabs is-centered is-fullwidth"},[n("ul",t._l(t.tabs,(function(e){return n("li",{class:{"is-active":e.isActive}},[n("a",{on:{click:function(n){return t.selectTab(e)}}},[t._v(t._s(e.name))])])})),0)])])]),t._v(" "),t.activeTab===t.$t("settings.options")?n("options"):t._e(),t._v(" "),t.activeTab===t.$t("settings.account")?n("account"):t._e(),t._v(" "),t.activeTab===t.$t("settings.password")?n("password"):t._e(),t._v(" "),n("vue-footer",{attrs:{showButtons:!0}},[n("p",{staticClass:"control"},[n("router-link",{staticClass:"button is-dark is-rounded",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("commons.close")))])],1)])],1)}),[],!1,null,null,null).exports,rt=c({data:function(){return{ShowModal:!0}},computed:{debugMode:function(){return"production"},error:function(){return void 0===this.err?null:this.err.data?(console.log(this.err.data),this.err.data):{statusText:this.err}}},props:["err"],components:{Modal:l},mounted:function(){this.$on("modalClose",(function(){this.$router.push({name:"accounts"})}))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-message"},[n("modal",{model:{value:t.ShowModal,callback:function(e){t.ShowModal=e},expression:"ShowModal"}},["404"==t.$route.name?n("div",{staticClass:"error-message"},[n("p",{staticClass:"error-404"}),t._v(" "),n("p",[t._v(t._s(t.$t("errors.resource_not_found")))]),t._v(" "),n("p",{},[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("errors.refresh")))])],1)]):"flooded"==t.$route.name?n("div",[n("p",{staticClass:"error-generic"}),t._v(" "),n("p",[t._v("\n "+t._s(t.$t("errors.already_one_user_registered"))),n("br"),t._v("\n "+t._s(t.$t("errors.cannot_register_more_user"))+"\n ")]),t._v(" "),n("p",[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("auth.sign_in")))])],1)]):n("div",[n("p",{staticClass:"error-generic"}),t._v(" "),n("p",[t._v(t._s(t.$t("errors.error_occured")))]),t._v(" "),t.error?n("p",{staticClass:"has-text-grey-lighter"},[t._v(t._s(t.error.message))]):t._e(),t._v(" "),n("p",[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("errors.refresh")))])],1),t._v(" "),"development"==t.debugMode&&t.error?n("p",[n("br"),t._v("\n "+t._s(t.error.debug)+"\n ")]):t._e()])])],1)}),[],!1,null,null,null).exports;a.a.use(o.default);var at=new o.default({mode:"history",routes:[{path:"/",name:"accounts",component:N,props:!0},{path:"/login",name:"login",component:H},{path:"/register",name:"register",component:X},{path:"/settings",name:"settings",component:nt},{path:"/create",name:"create",component:z},{path:"/edit/:twofaccountId",name:"edit",component:Q},{path:"/password/request",name:"password.request",component:W},{path:"/password/reset/:token",name:"password.reset",component:G},{path:"/flooded",name:"flooded",component:rt,props:!0},{path:"/error",name:"genericError",component:rt,props:!0},{path:"/404",name:"404",component:rt,props:!0},{path:"*",redirect:{name:"404"}}]}),ot=n("vDqi"),it=n.n(ot),st=n("p/7L"),ct=n.n(st);a.a.use(ct.a,it.a),a.a.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var lt=document.head.querySelector('meta[name="csrf-token"]');lt?a.a.axios.defaults.headers.common["X-CSRF-TOKEN"]=lt.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"),a.a.axios.interceptors.request.use((function(t){var e=localStorage.getItem("jwt");return e&&(t.headers.common.Authorization="Bearer "+e),t.headers.common["Content-Type"]="application/json",t})),a.a.axios.interceptors.response.use((function(t){return t}),(function(t){if(t.config.hasOwnProperty("returnError")&&!0===t.config.returnError)return Promise.reject(t);if(422===t.response.status)return Promise.reject(t);var e="genericError";throw 401===t.response.status&&(localStorage.removeItem("jwt"),localStorage.removeItem("user"),e="login"),404===t.response.status&&(e="404"),at.push({name:e,params:{err:t.response}}),new a.a.axios.Cancel}));var ut=n("qSUR"),ft=n("95I4");a.a.use(ut.default);var dt=document.documentElement.lang.substr(0,2),pt=new ut.default({locale:dt,messages:ft.default}),mt=pt,ht=n("7O5W"),vt=n("rT2p"),gt={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},bt={prefix:"fas",iconName:"edit",icon:[576,512,[],"f044","M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]},yt={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},wt={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]},_t={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},At={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"]},xt={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},kt={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"]},Ct={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Tt={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]};ht.c.add(xt,kt,wt,Tt,bt,gt,_t,At,Ct,yt),a.a.component("font-awesome-icon",vt.a);var Lt=n("SubT"),St=n.n(Lt);a.a.use(St.a);var Et,Ot=c({name:"App",data:function(){return{}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this.$root.appSettings.isDemoApp?e("div",{staticClass:"demo has-background-warning has-text-centered is-size-7-mobile"},[this._v("\n "+this._s(this.$t("commons.demo_do_not_post_sensitive_data"))+"\n ")]):this._e(),this._v(" "),e("main",{staticClass:"main-section"},[e("router-view")],1)])}),[],!1,null,null,null).exports;function It(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}[c({name:"VButton",props:{color:{type:String,default:"is-link"},nativeType:{type:String,default:"submit"},isLoading:{type:Boolean,default:!1}}},(function(){var t,e=this.$createElement;return(this._self._c||e)("button",{class:(t={button:!0},t[""+this.color]=!0,t["is-loading"]=this.isLoading,t),attrs:{type:this.nativeType,disabled:this.isLoading}},[this._t("default")],2)}),[],!1,null,null,null).exports,c({name:"field-error",props:{form:{type:Object,required:!0},field:{type:String,required:!0}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.form.errors.has(this.field)?e("p",{staticClass:"help is-danger",domProps:{innerHTML:this._s(this.form.errors.get(this.field))}}):this._e()}),[],!1,null,null,null).exports,c({name:"FormWrapper",data:function(){return{}},computed:{showTag:function(){return!(!this.fail&&!this.success)}},props:{title:{type:String,default:""},fail:{type:String,default:""},success:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"form-column column is-two-thirds-tablet is-half-desktop is-one-third-widescreen is-one-quarter-fullhd"},[t.title?n("h1",{staticClass:"title",domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t._t("default"),t._v(" "),t.showTag?n("p",[t.fail?n("notification",{attrs:{message:t.fail,type:"is-danger"}}):t._e(),t._v(" "),t.success?n("notification",{attrs:{message:t.success,type:"is-success"}}):t._e()],1):t._e()],2)])}),[],!1,null,null,null).exports,c({name:"FormField",inheritAttrs:!1,data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},inputType:{type:String,default:"text"},form:{type:Object,required:!0},placeholder:{type:String,default:""},help:{type:String,default:""},hasOffset:{type:Boolean,default:!1}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:{"with-offset":t.hasOffset}},[n("label",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("div",{staticClass:"control"},["checkbox"===t.inputType?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:"checkbox"},domProps:{checked:Array.isArray(t.form[t.fieldName])?t._i(t.form[t.fieldName],null)>-1:t.form[t.fieldName]},on:{change:function(e){var n=t.form[t.fieldName],r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,t.fieldName,n.concat([null])):o>-1&&t.$set(t.form,t.fieldName,n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,t.fieldName,a)}}},"input",t.$attrs,!1)):"radio"===t.inputType?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:"radio"},domProps:{checked:t._q(t.form[t.fieldName],null)},on:{change:function(e){return t.$set(t.form,t.fieldName,null)}}},"input",t.$attrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:t.inputType},domProps:{value:t.form[t.fieldName]},on:{input:function(e){e.target.composing||t.$set(t.form,t.fieldName,e.target.value)}}},"input",t.$attrs,!1))]),t._v(" "),n("field-error",{attrs:{form:t.form,field:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()],1)}),[],!1,null,null,null).exports,c({name:"FormSelect",data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},options:{type:Array,required:!0},form:{type:Object,required:!0},help:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field"},[n("label",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("div",{staticClass:"control"},[n("div",{staticClass:"select"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,t.fieldName,e.target.multiple?n:n[0])}}},t._l(t.options,(function(e){return n("option",{domProps:{value:e.value}},[t._v(t._s(e.text))])})),0)])]),t._v(" "),n("field-error",{attrs:{form:t.form,field:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()],1)}),[],!1,null,null,null).exports,c({name:"FormSwitch",data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},form:{type:Object,required:!0},help:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:t.fieldName},domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"switch is-thin is-info",attrs:{id:t.fieldName,type:"checkbox",name:t.fieldName},domProps:{checked:Array.isArray(t.form[t.fieldName])?t._i(t.form[t.fieldName],null)>-1:t.form[t.fieldName]},on:{change:function(e){var n=t.form[t.fieldName],r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,t.fieldName,n.concat([null])):o>-1&&t.$set(t.form,t.fieldName,n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,t.fieldName,a)}}}),t._v(" "),n("label",{staticClass:"label",attrs:{for:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()])}),[],!1,null,null,null).exports,c({name:"FormButtons",data:function(){return{}},props:{showCancelButton:{type:Boolean,default:!1},isBusy:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},caption:{type:String,default:"Submit"},cancelLandingView:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.isBusy,disabled:t.isDisabled}},[t._v(t._s(t.caption))])],1),t._v(" "),t.showCancelButton?n("div",{staticClass:"control"},[n("router-link",{staticClass:"button is-text",attrs:{to:{name:t.cancelLandingView}}},[t._v(t._s(t.$t("commons.cancel")))])],1):t._e()])}),[],!1,null,null,null).exports,c({name:"Notification",data:function(){return{show:!0}},props:{type:{type:String,default:"is-primary"},message:{type:String,default:""},isDeletable:{type:Boolean,default:!0}},methods:{close:function(t){t&&(this.show=!1)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{staticClass:"notification",class:t.type},[t.isDeletable?n("button",{staticClass:"delete",on:{click:t.close}}):t._e(),t._v("\n "+t._s(t.message)+"\n")]):t._e()}),[],!1,null,null,null).exports,c({name:"VueFooter",data:function(){return{}},props:{showButtons:!0},methods:{logout:(Et=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){It(o,r,a,i,s,"next",t)}function s(t){It(o,r,a,i,s,"throw",t)}i(void 0)}))}}(s.a.mark((function t(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!confirm(this.$t("auth.confirm.logout"))){t.next=7;break}return t.next=3,this.axios.get("api/logout");case 3:localStorage.removeItem("jwt"),localStorage.removeItem("user"),delete this.axios.defaults.headers.common.Authorization,this.$router.push({name:"login"});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return Et.apply(this,arguments)})}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"has-background-black-ter"},[t.showButtons?n("div",{staticClass:"columns is-gapless"},[n("div",{staticClass:"column has-text-centered"},[n("div",{staticClass:"field is-grouped"},[t._t("default")],2)])]):t._e(),t._v(" "),n("div",{staticClass:"content has-text-centered"},[n("router-link",{staticClass:"has-text-grey",attrs:{to:{name:"settings"}}},[t._v(t._s(t.$t("settings.settings")))]),t._v(" - "),n("a",{staticClass:"has-text-grey",on:{click:t.logout}},[t._v(t._s(t.$t("auth.sign_out")))])],1)])}),[],!1,null,null,null).exports].forEach((function(t){a.a.component(t.name,t)}));new a.a({el:"#app",data:{appSettings:window.appSettings,appVersion:window.appVersion},components:{App:Ot},i18n:mt,router:at})},ls82:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var a=e&&e.prototype instanceof u?e:u,o=Object.create(a.prototype),i=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return k()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function u(){}function f(){}function d(){}var p={};p[a]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(x([])));h&&h!==e&&n.call(h,a)&&(p=h);var v=d.prototype=u.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t){var e;this._invoke=function(r,a){function o(){return new Promise((function(e,o){!function e(r,a,o,i){var s=c(t[r],t,a);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,i)}),(function(t){e("throw",t,o,i)})):Promise.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,i)}))}i(s.arg)}(r,a,e,o)}))}return e=e?e.then(o,o):o()}}function y(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,y(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},o0o1:function(t,e,n){t.exports=n("ls82")},pyCd:function(t,e){},rT2p:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return g}));var r=n("7O5W"),a="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var o=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){!function(e){var n=function(t,e,r){if(!c(e)||u(e)||f(e)||d(e)||s(e))return e;var a,o=0,i=0;if(l(e))for(a=[],i=e.length;o=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function u(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.indexOf(":"),r=o.camelize(e.slice(0,n)),a=e.slice(n+1).trim();return t[r]=a,t}),{})}function f(t){return t.split(/\s+/).reduce((function(t,e){return t[e]=!0,t}),{})}function d(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(e.children||[]).map(p.bind(null,t)),o=Object.keys(e.attributes||{}).reduce((function(t,n){var r=e.attributes[n];switch(n){case"class":t.class=f(r);break;case"style":t.style=u(r);break;default:t.attrs[n]=r}return t}),{class:{},style:{},attrs:{}}),i=r.class,s=void 0===i?{}:i,m=r.style,h=void 0===m?{}:m,v=r.attrs,g=void 0===v?{}:v,b=l(r,["class","style","attrs"]);return"string"==typeof e?e:t(e.tag,c({class:d(o.class,s),style:c({},o.style,h),attrs:c({},o.attrs,g)},b,{props:n}),a)}var m=!1;try{m=!0}catch(t){}function h(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?s({},t,e):{}}function v(t){return null===t?null:"object"===(void 0===t?"undefined":i(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}var g={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,a=n.icon,o=n.mask,i=n.symbol,l=n.title,u=v(a),f=h("classes",function(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},s(e,"fa-"+t.size,null!==t.size),s(e,"fa-rotate-"+t.rotation,null!==t.rotation),s(e,"fa-pull-"+t.pull,null!==t.pull),s(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))}(n)),d=h("transform","string"==typeof n.transform?r.d.transform(n.transform):n.transform),g=h("mask",v(o)),b=Object(r.b)(u,c({},f,d,g,{symbol:i,title:l}));if(!b)return function(){var t;!m&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find one or more icon(s)",u,g);var y=b.abstract;return p.bind(null,t)(y[0],{},e.data)}};Boolean,Boolean}).call(this,n("yLpj"))},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}},[[0,0,3]]]);