diff --git a/dist/js/field.js b/dist/js/field.js index ccd99db..c8cb20e 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=3)}([function(t,e,n){var r,i,o,a;a=function(t,e,n){var r=e.document,i=navigator.userAgent,o=i.indexOf("MSIE ")>0||i.indexOf("Trident/")>0,a=p("touchstart"),u=/iemobile/i.test(i),c=/iphone/i.test(i)&&!u;function s(e,r,i){if(!(this instanceof s))return new s(e,r,i);this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,!0!==i&&(t.isPlainObject(e)?r=e:(r=r||{},e&&(r.alias=e)),this.opts=t.extend(!0,{},this.defaults,r),this.noMasksCache=r&&r.definitions!==n,this.userOptions=r||{},this.isRTL=this.opts.numericInput,f(this.opts.alias,r,this.opts))}function f(e,r,i){var o=s.prototype.aliases[e];return o?(o.alias&&f(o.alias,n,i),t.extend(!0,i,o),t.extend(!0,i,r),!0):(null===i.mask&&(i.mask=e),!1)}function l(e,r){function i(e,i,o){var a=!1;if(null!==e&&""!==e||((a=null!==o.regex)?e=(e=o.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(a=!0,e=".*")),1===e.length&&!1===o.greedy&&0!==o.repeat&&(o.placeholder=""),o.repeat>0||"*"===o.repeat||"+"===o.repeat){var u="*"===o.repeat?0:"+"===o.repeat?1:o.repeat;e=o.groupmarker[0]+e+o.groupmarker[1]+o.quantifiermarker[0]+u+","+o.repeat+o.quantifiermarker[1]}var c,f=a?"regex_"+o.regex:o.numericInput?e.split("").reverse().join(""):e;return s.prototype.masksCache[f]===n||!0===r?(c={mask:e,maskToken:s.prototype.analyseMask(e,a,o),validPositions:{},_buffer:n,buffer:n,tests:{},excludes:{},metadata:i,maskLength:n},!0!==r&&(s.prototype.masksCache[f]=c,c=t.extend(!0,{},s.prototype.masksCache[f]))):c=t.extend(!0,{},s.prototype.masksCache[f]),c}if(t.isFunction(e.mask)&&(e.mask=e.mask(e)),t.isArray(e.mask)){if(e.mask.length>1){if(null===e.keepStatic){e.keepStatic="auto";for(var o=0;o1&&(a+=e.groupmarker[1]+e.alternatormarker+e.groupmarker[0]),i.mask===n||t.isFunction(i.mask)?a+=i:a+=i.mask}),i(a+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return e.mask&&e.mask.mask!==n&&!t.isFunction(e.mask.mask)?i(e.mask.mask,e.mask,e):i(e.mask,e.mask,e)}function p(t){var e=r.createElement("input"),n="on"+t,i=n in e;return i||(e.setAttribute(n,"return;"),i="function"==typeof e[n]),e=null,i}function d(i,f,l){f=f||this.maskset,l=l||this.opts;var h,v,y,m,g,_=this,k=this.el,b=this.isRTL,x=!1,w=!1,E=!1,S=!1;function P(t,e,r,i,o){var a=l.greedy;o&&(l.greedy=!1),e=e||0;var u,c,s,f=[],p=0;j();do{if(!0===t&&A().validPositions[p])c=(s=o&&!0===A().validPositions[p].match.optionality&&A().validPositions[p+1]===n&&(!0===A().validPositions[p].generatedInput||A().validPositions[p].input==l.skipOptionalPartCharacter&&p>0)?C(p,F(p,u,p-1)):A().validPositions[p]).match,u=s.locator.slice(),f.push(!0===r?s.input:!1===r?c.nativeDef:Y(p,c));else{c=(s=T(p,u,p-1)).match,u=s.locator.slice();var d=!0!==i&&(!1!==l.jitMasking?l.jitMasking:c.jit);(!1===d||d===n||"number"==typeof d&&isFinite(d)&&d>p)&&f.push(!1===r?c.nativeDef:Y(p,c))}"auto"===l.keepStatic&&c.newBlockMarker&&null!==c.fn&&(l.keepStatic=p-1),p++}while((y===n||pp);return""===f[f.length-1]&&f.pop(),!1===r&&A().maskLength!==n||(A().maskLength=p-1),l.greedy=a,f}function A(){return f}function O(t){var e=A();e.buffer=n,!0!==t&&(e.validPositions={},e.p=0)}function j(t,e,r){var i=-1,o=-1,a=r||A().validPositions;for(var u in t===n&&(t=-1),a){var c=parseInt(u);a[c]&&(e||!0!==a[c].generatedInput)&&(c<=t&&(i=c),c>=t&&(o=c))}return-1===i||i==t?o:-1==o?i:t-i0&&(e=e.split(",")[0]),e!==n?e.toString():""}function R(t,e){var r=(t.alternation!=n?t.mloc[M(t)]:t.locator).join("");if(""!==r)for(;r.length0?t-1:0)),u=0;u500&&v!==n)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+A().mask;if(u===e&&a.matches===n)return s.push({match:a,locator:c.reverse(),cd:p,mloc:{}}),!0;if(a.matches!==n){if(a.isGroup&&v!==a){if(a=h(r.matches[t.inArray(a,r.matches)+1],c,v))return!0}else if(a.isOptional){var k=a;if(a=d(a,i,c,v)){if(t.each(s,function(t,e){e.match.optionality=!0}),o=s[s.length-1].match,v!==n||!y(o,k))return!0;f=!0,u=e}}else if(a.isAlternator){var b,x=a,w=[],E=s.slice(),S=c.length,P=i.length>0?i.shift():-1;if(-1===P||"string"==typeof P){var O,j=u,M=i.slice(),R=[];if("string"==typeof P)R=P.split(",");else for(O=0;O=l.keepStatic)&&(R=R.slice(0,1));for(var N=!1,F=0;F0,a=w.length>0,i=M.slice()}else a=h(x.matches[P]||r.matches[P],[P].concat(c),v);if(a)return!0}else if(a.isQuantifier&&v!==r.matches[t.inArray(a,r.matches)-1])for(var G=a,U=i.length>0?i.shift():0;U<(isNaN(G.quantifier.max)?U+1:G.quantifier.max)&&u<=e;U++){var V=r.matches[t.inArray(G,r.matches)-1];if(a=h(V,[U].concat(c),V)){if((o=s[s.length-1].match).optionalQuantifier=U>G.quantifier.min-1,o.jit=(U||1)*V.matches.indexOf(o)>=G.quantifier.jit,o.optionalQuantifier&&y(o,V)){f=!0,u=e;break}return o.jit&&!o.optionalQuantifier&&(o.jitOffset=V.matches.indexOf(o)),!0}}else if(a=d(a,i,c,v))return!0}else u++;var W,H}for(var v=i.length>0?i.shift():0;ve)break}}if(e>-1){if(r===n){for(var h,v=e-1;(h=A().validPositions[v]||A().tests[v])===n&&v>-1;)v--;h!==n&&v>-1&&(c=function(e,r){var i=[];return t.isArray(r)||(r=[r]),r.length>0&&(r[0].alternation===n?0===(i=C(e,r.slice()).locator.slice()).length&&(i=r[0].locator.slice()):t.each(r,function(t,e){if(""!==e.def)if(0===i.length)i=e.locator.slice();else for(var n=0;ne)break}}return(0===s.length||f)&&s.push({match:{fn:null,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:p}),r!==n&&A().tests[e]?t.extend(!0,[],s):(A().tests[e]=t.extend(!0,[],s),A().tests[e])}function I(){return A()._buffer===n&&(A()._buffer=P(!1,1),A().buffer===n&&(A().buffer=A()._buffer.slice())),A()._buffer}function L(t){return A().buffer!==n&&!0!==t||(A().buffer=P(!0,j(),!0),A()._buffer===n&&(A()._buffer=A().buffer.slice())),A().buffer}function B(t,e,r){var i,o;if(!0===t)O(),t=0,e=r.length;else for(i=t;i=0;y--)if((s=A().validPositions[y])&&s.alternation!==n){if(f&&f.locator[s.alternation]!==s.locator[s.alternation])break;u=y,c=A().validPositions[u].alternation,f=s}if(c!==n){d=parseInt(u),A().excludes[d]=A().excludes[d]||[],!0!==e&&A().excludes[d].push(M(f));var m=[],g=0;for(l=d;l0;){var b=k.shift();if(!(v=G(j(n,!0)+1,b,!1,o,!0)))break}if(v&&r!==n){var x=j(e)+1;for(l=d;lx?x:e,r,i,o,!0)}if(v)break;if(O(),f=D(d),A().validPositions=t.extend(!0,{},h),!A().excludes[d]){v=z(e,r,i,o,d-1);break}var w=M(f);if(-1!==A().excludes[d].indexOf(w)){v=z(e,r,i,o,d-1);break}for(A().excludes[d].push(w),l=d;l1||t.begin-t.end==1:t.end-t.begin>1||t.end-t.begin==1}i=!0===i;var f=e;function p(r,i,a){var u=!1;return t.each(F(r),function(f,p){var d=p.match;if(L(!0),!1!==(u=null!=d.fn?d.fn.test(i,A(),r,a,l,c(e)):(i===d.def||i===l.skipOptionalPartCharacter)&&""!==d.def&&{c:Y(r,d,!0)||d.def,pos:r})){var h=u.c!==n?u.c:i,v=r;return h=h===l.skipOptionalPartCharacter&&null===d.fn?Y(r,d,!0)||d.def:h,u.remove!==n&&(t.isArray(u.remove)||(u.remove=[u.remove]),t.each(u.remove.sort(function(t,e){return e-t}),function(t,e){V({begin:e,end:e+1})})),u.insert!==n&&(t.isArray(u.insert)||(u.insert=[u.insert]),t.each(u.insert.sort(function(t,e){return t-e}),function(t,e){G(e.pos,e.c,!0,o)})),!0!==u&&u.pos!==n&&u.pos!==r&&(v=u.pos),!0!==u&&u.pos===n&&u.c===n?!1:(V(e,t.extend({},p,{input:function(e,n,r){switch(l.casing||n.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var i=A().validPositions[r-1];e=0===r||i&&i.input===String.fromCharCode(s.keyCode.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if(t.isFunction(l.casing)){var o=Array.prototype.slice.call(arguments);o.push(A().validPositions),e=l.casing.apply(this,o)}}return e}(h,d,v)}),o,v)||(u=!1),!1)}}),u}e.begin!==n&&(f=b?e.end:e.begin);var d=!0,h=t.extend(!0,{},A().validPositions);if(t.isFunction(l.preValidation)&&!i&&!0!==o&&!0!==u&&(d=l.preValidation(L(),f,r,c(e),l,A())),!0===d){if(U(n,f,!0),(y===n||f0&&!A().validPositions[e];e--);for(var a=e;at+1?e[t+1]&&null===e[t+1].match.fn&&e[t+1]:e[t+1];return o&&a}return!1}var u=e.begin!==n?e.begin:e,c=e.end!==n?e.end:e;if(e.begin>e.end&&(u=e.end,c=e.begin),o=o!==n?o:u,u!==c||l.insertMode&&A().validPositions[o]!==n&&i===n){var s=t.extend(!0,{},A().validPositions),f=j(n,!0);for(A().p=u,y=f;y>=u;y--)A().validPositions[y]&&"+"===A().validPositions[y].match.nativeDef&&(l.isNegative=!1),delete A().validPositions[y];var p=!0,d=o,h=(A().validPositions,!1),v=d,y=d;for(r&&(A().validPositions[o]=t.extend(!0,{},r),v++,d++,u=c||y>=u&&!0!==m.generatedInput&&a(y,s,{begin:u,end:c}))){for(;""!==D(v).match.def;){if(!1===h&&s[v]&&s[v].match.nativeDef===m.match.nativeDef)A().validPositions[v]=t.extend(!0,{},s[v]),A().validPositions[v].input=m.input,U(n,v,!0),d=v+1,p=!0;else if(l.shiftPositions&&N(v,m.match.def)){var g=G(v,m.input,!0,!0);p=!1!==g,d=g.caret||g.insert?j():v+1,h=!0}else p=!0===m.generatedInput||m.input===l.radixPoint&&!0===l.numericInput;if(p)break;if(!p&&v>c&&W(v,!0)&&(null!==m.match.fn||v>A().maskLength))break;v++}""==D(v).match.def&&(p=!1),v=d}if(!p)break}if(!p)return A().validPositions=t.extend(!0,{},s),O(!0),!1}else r&&(A().validPositions[o]=t.extend(!0,{},r));return O(!0),!0}function W(t,e){var n=T(t).match;if(""===n.def&&(n=D(t).match),null!=n.fn)return n.fn;if(!0!==e&&t>-1){var r=F(t);return r.length>1+(""===r[r.length-1].match.def?1:0)}return!1}function H(t,e){for(var n=t+1;""!==D(n).match.def&&(!0===e&&(!0!==D(n).match.newBlockMarker||!W(n))||!0!==e&&!W(n));)n++;return n}function q(t,e){var n,r=t;if(r<=0)return 0;for(;--r>0&&(!0===e&&!0!==D(r).match.newBlockMarker||!0!==e&&!W(r)&&((n=F(r)).length<2||2===n.length&&""===n[1].match.def)););return r}function K(e,r,i,o,a){if(o&&t.isFunction(l.onBeforeWrite)){var u=l.onBeforeWrite.call(_,o,r,i,l);if(u){if(u.refreshFromBuffer){var c=u.refreshFromBuffer;B(!0===c?c:c.start,c.end,u.buffer||r),r=L(!0)}i!==n&&(i=u.caret!==n?u.caret:i)}}if(e!==n&&(e.inputmask._valueSet(r.join("")),i===n||o!==n&&"blur"===o.type?ct(e,i,0===r.length):nt(e,i),!0===a)){var s=t(e),f=e.inputmask._valueGet();w=!0,s.trigger("input"),setTimeout(function(){f===I().join("")?s.trigger("cleared"):!0===ot(r)&&s.trigger("complete")},0)}}function Y(e,r,i){if((r=r||D(e).match).placeholder!==n||!0===i)return t.isFunction(r.placeholder)?r.placeholder(l):r.placeholder;if(null===r.fn){if(e>-1&&A().validPositions[e]===n){var o,a=F(e),u=[];if(a.length>1+(""===a[a.length-1].match.def?1:0))for(var c=0;c1&&/[0-9a-bA-Z]/.test(u[0].match.def)))return l.placeholder.charAt(e%l.placeholder.length)}return r.def}return l.placeholder.charAt(e%l.placeholder.length)}function Z(t,e){if(o&&t.inputmask._valueGet()!==e){var n=L().slice(),r=t.inputmask._valueGet();r!==e&&(-1===j()&&r===I().join("")?n=[]:it(n),K(t,n))}else t.placeholder!==e&&(t.placeholder=e,""===t.placeholder&&t.removeAttribute("placeholder"))}var Q,J={on:function(e,r,i){var o=function(e){var r=this;if(r.inputmask===n&&"FORM"!==this.nodeName){var o=t.data(r,"_inputmask_opts");o?new s(o).mask(r):J.off(r)}else{if("setvalue"===e.type||"FORM"===this.nodeName||!(r.disabled||r.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===l.tabThrough&&e.keyCode===s.keyCode.TAB))){switch(e.type){case"input":if(!0===w)return w=!1,e.preventDefault();if(a){var f=arguments;return setTimeout(function(){i.apply(r,f),nt(r,r.inputmask.caretPos,n,!0)},0),!1}break;case"keydown":x=!1,w=!1;break;case"keypress":if(!0===x)return e.preventDefault();x=!0;break;case"click":if(u||c){f=arguments;return setTimeout(function(){i.apply(r,f)},0),!1}}var p=i.apply(r,arguments);return!1===p&&(e.preventDefault(),e.stopPropagation()),p}e.preventDefault()}};e.inputmask.events[r]=e.inputmask.events[r]||[],e.inputmask.events[r].push(o),-1!==t.inArray(r,["submit","reset"])?null!==e.form&&t(e.form).on(r,o):t(e).on(r,o)},off:function(e,n){var r;e.inputmask&&e.inputmask.events&&(n?(r=[])[n]=e.inputmask.events[n]:r=e.inputmask.events,t.each(r,function(n,r){for(;r.length>0;){var i=r.pop();-1!==t.inArray(n,["submit","reset"])?null!==e.form&&t(e.form).off(n,i):t(e).off(n,i)}delete e.inputmask.events[n]}))}},X={keydownEvent:function(e){var n=t(this),r=e.keyCode,i=nt(this);if(r===s.keyCode.BACKSPACE||r===s.keyCode.DELETE||c&&r===s.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&r===s.keyCode.X&&!p("cut"))e.preventDefault(),at(this,r,i),K(this,L(!0),A().p,e,this.inputmask._valueGet()!==L().join(""));else if(r===s.keyCode.END||r===s.keyCode.PAGE_DOWN){e.preventDefault();var o=H(j());nt(this,e.shiftKey?i.begin:o,o,!0)}else r===s.keyCode.HOME&&!e.shiftKey||r===s.keyCode.PAGE_UP?(e.preventDefault(),nt(this,0,e.shiftKey?i.begin:0,!0)):(l.undoOnEscape&&r===s.keyCode.ESCAPE||90===r&&e.ctrlKey)&&!0!==e.altKey?(tt(this,!0,!1,h.split("")),n.trigger("click")):r!==s.keyCode.INSERT||e.shiftKey||e.ctrlKey?!0===l.tabThrough&&r===s.keyCode.TAB&&(!0===e.shiftKey?(null===D(i.begin).match.fn&&(i.begin=H(i.begin)),i.end=q(i.begin,!0),i.begin=q(i.end,!0)):(i.begin=H(i.begin,!0),i.end=H(i.begin,!0),i.endo.length?-1:0,c=r.substr(0,i.begin),f=r.substr(i.begin),p=o.substr(0,i.begin+a),d=o.substr(i.begin+a),h=i,v="",y=!1;if(c!==p){var m,g=(y=c.length>=p.length)?c.length:p.length;for(m=0;c.charAt(m)===p.charAt(m)&&md.length?v+=f.slice(0,1):f.length0)t.each(v.split(""),function(e,r){var i=new t.Event("keypress");i.which=r.charCodeAt(0),E=!1,X.keypressEvent.call(n,i)});else{h.begin===h.end-1&&(h.begin=q(h.begin+1),h.begin===h.end-1?nt(n,h.begin):nt(n,h.begin,h.end));var _=new t.Event("keydown");_.keyCode=l.numericInput?s.keyCode.BACKSPACE:s.keyCode.DELETE,X.keydownEvent.call(n,_)}e.preventDefault()}}},beforeInputEvent:function(e){if(e.cancelable){var n=this;switch(e.inputType){case"insertText":return t.each(e.data.split(""),function(e,r){var i=new t.Event("keypress");i.which=r.charCodeAt(0),E=!1,X.keypressEvent.call(n,i)}),e.preventDefault();case"deleteContentBackward":return(r=new t.Event("keydown")).keyCode=s.keyCode.BACKSPACE,X.keydownEvent.call(n,r),e.preventDefault();case"deleteContentForward":var r;return(r=new t.Event("keydown")).keyCode=s.keyCode.DELETE,X.keydownEvent.call(n,r),e.preventDefault()}}},setValueEvent:function(e){this.inputmask.refreshValue=!1;var n=(n=e&&e.detail?e.detail[0]:arguments[1])||this.inputmask._valueGet(!0);t.isFunction(l.onBeforeMask)&&(n=l.onBeforeMask.call(_,n,l)||n),tt(this,!0,!1,n=n.split("")),h=L().join(""),(l.clearMaskOnLostFocus||l.clearIncomplete)&&this.inputmask._valueGet()===I().join("")&&this.inputmask._valueSet("")},focusEvent:function(t){var e=this.inputmask._valueGet();l.showMaskOnFocus&&(!l.showMaskOnHover||l.showMaskOnHover&&""===e)&&(this.inputmask._valueGet()!==L().join("")?K(this,L(),H(j())):!1===S&&nt(this,H(j()))),!0===l.positionCaretOnTab&&!1===S&&X.clickEvent.apply(this,[t,!0]),h=L().join("")},mouseleaveEvent:function(t){S=!1,l.clearMaskOnLostFocus&&r.activeElement!==this&&Z(this,g)},clickEvent:function(e,i){var o=this;setTimeout(function(){if(r.activeElement===o){var e=nt(o);if(i&&(b?e.end=e.begin:e.begin=e.end),e.begin===e.end)switch(l.positionCaretOnClick){case"none":break;case"select":nt(o,0,L().length);break;case"ignore":nt(o,H(j()));break;case"radixFocus":if(function(e){if(""!==l.radixPoint){var r=A().validPositions;if(r[e]===n||r[e].input===Y(e)){if(e=h||u===s)&&(s=h)}nt(o,s)}}}},0)},cutEvent:function(n){t(this);var i=nt(this),o=n.originalEvent||n,a=e.clipboardData||o.clipboardData,u=b?L().slice(i.end,i.begin):L().slice(i.begin,i.end);a.setData("text",b?u.reverse().join(""):u.join("")),r.execCommand&&r.execCommand("copy"),at(this,s.keyCode.DELETE,i),K(this,L(),A().p,n,h!==L().join(""))},blurEvent:function(e){var r=t(this);if(this.inputmask){Z(this,g);var i=this.inputmask._valueGet(),o=L().slice();""===i&&m===n||(l.clearMaskOnLostFocus&&(-1===j()&&i===I().join("")?o=[]:it(o)),!1===ot(o)&&(setTimeout(function(){r.trigger("incomplete")},0),l.clearIncomplete&&(O(),o=l.clearMaskOnLostFocus?[]:I().slice())),K(this,o,n,e)),h!==L().join("")&&(h=o.join(""),r.trigger("change"))}},mouseenterEvent:function(t){S=!0,r.activeElement!==this&&l.showMaskOnHover&&Z(this,(b?L().slice().reverse():L()).join(""))},submitEvent:function(t){h!==L().join("")&&v.trigger("change"),l.clearMaskOnLostFocus&&-1===j()&&k.inputmask._valueGet&&k.inputmask._valueGet()===I().join("")&&k.inputmask._valueSet(""),l.clearIncomplete&&!1===ot(L())&&k.inputmask._valueSet(""),l.removeMaskOnSubmit&&(k.inputmask._valueSet(k.inputmask.unmaskedvalue(),!0),setTimeout(function(){K(k,L())},0))},resetEvent:function(t){k.inputmask.refreshValue=!0,setTimeout(function(){v.trigger("setvalue")},0)}};function tt(e,r,i,o,a){var u=this||e.inputmask,c=o.slice(),f="",p=-1,d=n;if(O(),i||!0===l.autoUnmask)p=H(p);else{var h=I().slice(0,H(-1)).join(""),v=c.join("").match(new RegExp("^"+s.escapeRegex(h),"g"));v&&v.length>0&&(c.splice(0,v.length*h.length),p=H(p))}-1===p?(A().p=H(p),p=0):A().p=p,u.caretPos={begin:p},t.each(c,function(r,o){if(o!==n)if(A().validPositions[r]===n&&c[r]===Y(r)&&W(r,!0)&&!1===G(r,c[r],!0,n,n,!0))A().p++;else{var a=new t.Event("_checkval");a.which=o.charCodeAt(0),f+=o;var s=j(n,!0);!function(t,e){return-1!==P(!0,0,!1).slice(t,H(t)).join("").replace(/'/g,"").indexOf(e)&&!W(t)&&(D(t).match.nativeDef===e.charAt(0)||null===D(t).match.fn&&D(t).match.nativeDef==="'"+e.charAt(0)||" "===D(t).match.nativeDef&&(D(t+1).match.nativeDef===e.charAt(0)||null===D(t+1).match.fn&&D(t+1).match.nativeDef==="'"+e.charAt(0)))}(p,f)?(d=X.keypressEvent.call(e,a,!0,!1,i,u.caretPos.begin))&&(p=u.caretPos.begin+1,f=""):d=X.keypressEvent.call(e,a,!0,!1,i,s+1),d&&(K(n,L(),d.forwardPosition,a,!1),u.caretPos={begin:d.forwardPosition,end:d.forwardPosition})}}),r&&K(e,L(),d?d.forwardPosition:n,a||new t.Event("checkval"),a&&"input"===a.type)}function et(e){if(e){if(e.inputmask===n)return e.value;e.inputmask&&e.inputmask.refreshValue&&X.setValueEvent.call(e)}var r=[],i=A().validPositions;for(var o in i)i[o].match&&null!=i[o].match.fn&&r.push(i[o].input);var a=0===r.length?"":(b?r.reverse():r).join("");if(t.isFunction(l.onUnMask)){var u=(b?L().slice().reverse():L()).join("");a=l.onUnMask.call(_,u,a,l)}return a}function nt(i,o,a,u){function c(t){return!b||"number"!=typeof t||l.greedy&&""===l.placeholder||!k||(t=k.inputmask._valueGet().length-t),t}var s;if(o===n)return"selectionStart"in i?(o=i.selectionStart,a=i.selectionEnd):e.getSelection?(s=e.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==i&&s.commonAncestorContainer!==i||(o=s.startOffset,a=s.endOffset):r.selection&&r.selection.createRange&&(a=(o=0-(s=r.selection.createRange()).duplicate().moveStart("character",-i.inputmask._valueGet().length))+s.text.length),{begin:u?o:c(o),end:u?a:c(a)};if(t.isArray(o)&&(a=b?o[0]:o[1],o=b?o[1]:o[0]),o.begin!==n&&(a=b?o.begin:o.end,o=b?o.end:o.begin),"number"==typeof o){o=u?o:c(o),a="number"==typeof(a=u?a:c(a))?a:o;var f=parseInt(((i.ownerDocument.defaultView||e).getComputedStyle?(i.ownerDocument.defaultView||e).getComputedStyle(i,null):i.currentStyle).fontSize)*a;if(i.scrollLeft=f>i.scrollWidth?f:0,i.inputmask.caretPos={begin:o,end:a},i===r.activeElement){if("selectionStart"in i)i.selectionStart=o,i.selectionEnd=a;else if(e.getSelection){if(s=r.createRange(),i.firstChild===n||null===i.firstChild){var p=r.createTextNode("");i.appendChild(p)}s.setStart(i.firstChild,ou&&(((i=c[r]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||l&&(l!==c[r].locator[s.alternation]&&null!=i.match.fn||null===i.match.fn&&i.locator[s.alternation]&&$(i.locator[s.alternation].toString().split(","),l.toString().split(","))&&""!==F(r)[0].def))&&o[r]===Y(r,i.match));r--)a--;return e?{l:a,def:c[a]?c[a].match:n}:a}function it(t){t.length=0;for(var e,r=P(!0,0,!0,n,!0);(e=r.shift())!==n;)t.push(e);return t}function ot(e){if(t.isFunction(l.isComplete))return l.isComplete(e,l);if("*"===l.repeat)return n;var r=!1,i=rt(!0),o=q(i.l);if(i.def===n||i.def.newBlockMarker||i.def.optionality||i.def.optionalQuantifier){r=!0;for(var a=0;a<=o;a++){var u=T(a).match;if(null!==u.fn&&A().validPositions[a]===n&&!0!==u.optionality&&!0!==u.optionalQuantifier||null===u.fn&&e[a]!==Y(a,u)){r=!1;break}}}return r}function at(t,e,r,i,o){if((l.numericInput||b)&&(e===s.keyCode.BACKSPACE?e=s.keyCode.DELETE:e===s.keyCode.DELETE&&(e=s.keyCode.BACKSPACE),b)){var a=r.end;r.end=r.begin,r.begin=a}if(e===s.keyCode.BACKSPACE&&r.end-r.begin<1?(r.begin=q(r.begin),A().validPositions[r.begin]!==n&&A().validPositions[r.begin].input===l.groupSeparator&&r.begin--):e===s.keyCode.DELETE&&r.begin===r.end&&(r.end=W(r.end,!0)&&A().validPositions[r.end]&&A().validPositions[r.end].input!==l.radixPoint?r.end+1:H(r.end)+1,A().validPositions[r.begin]!==n&&A().validPositions[r.begin].input===l.groupSeparator&&r.end++),V(r),!0!==i&&!1!==l.keepStatic||null!==l.regex){var u=z(!0);if(u){var c=u.caret!==n?u.caret:u.pos?H(u.pos.begin?u.pos.begin:u.pos):j(-1,!0);(e!==s.keyCode.DELETE||r.begin>c)&&r.begin}}var f=j(r.begin,!0);if(f=t){var f=t-s,l=o.offsetWidth-t;o.innerHTML=c.charAt(e),e=(f-=o.offsetWidth/3)",c.push(t)}else c.push(t);else s=!0,c.push(""+t)}if(m!==n){var d=L();if(e===n?e=nt(t):e.begin===n&&(e={begin:e,end:e}),!0!==i){var h=j();do{A().validPositions[f]?(a=A().validPositions[f],o=a.match,u=a.locator.slice(),p(d[f])):(a=T(f,u,f-1),o=a.match,u=a.locator.slice(),!1===l.jitMasking||ff?p(Y(f,o)):s=!1),f++}while((y===n||ff||s);s&&p(),r.activeElement===t&&(c.splice(e.begin,0,e.begin===e.end||e.end>A().maskLength?'':''),c.splice(e.end+1,0,""))}var v=m.getElementsByTagName("div")[0];v.innerHTML=c.join(""),t.inputmask.positionColorMask(t,v)}}if(s.prototype.positionColorMask=function(t,e){t.style.left=e.offsetLeft+"px"},i!==n)switch(i.action){case"isComplete":return k=i.el,ot(L());case"unmaskedvalue":return k!==n&&i.value===n||(Q=i.value,Q=(t.isFunction(l.onBeforeMask)&&l.onBeforeMask.call(_,Q,l)||Q).split(""),tt.call(this,n,!1,!1,Q),t.isFunction(l.onBeforeWrite)&&l.onBeforeWrite.call(_,n,L(),0,l)),et(k);case"mask":!function(e){J.off(e);var i=function(e,i){var o=e.getAttribute("type"),a="INPUT"===e.tagName&&-1!==t.inArray(o,i.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!a)if("INPUT"===e.tagName){var u=r.createElement("input");u.setAttribute("type",o),a="text"===u.type,u=null}else a="partial";return!1!==a?function(e){var o,a;function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==j()||!0!==i.nullable?r.activeElement===this&&i.clearMaskOnLostFocus?(b?it(L().slice()).reverse():it(L().slice())).join(""):o.call(this):"":o.call(this)}function c(e){a.call(this,e),this.inputmask&&t(this).trigger("setvalue",[e])}if(!e.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){return t.constructor.prototype});var s=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):n;s&&s.get&&s.set?(o=s.get,a=s.set,Object.defineProperty(e,"value",{get:u,set:c,configurable:!0})):"INPUT"!==e.tagName&&(o=function(){return this.textContent},a=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:u,set:c,configurable:!0}))}else r.__lookupGetter__&&e.__lookupGetter__("value")&&(o=e.__lookupGetter__("value"),a=e.__lookupSetter__("value"),e.__defineGetter__("value",u),e.__defineSetter__("value",c));e.inputmask.__valueGet=o,e.inputmask.__valueSet=a}e.inputmask._valueGet=function(t){return b&&!0!==t?o.call(this.el).split("").reverse().join(""):o.call(this.el)},e.inputmask._valueSet=function(t,e){a.call(this.el,null===t||t===n?"":!0!==e&&b?t.split("").reverse().join(""):t)},o===n&&(o=function(){return this.value},a=function(t){this.value=t},function(e){if(t.valHooks&&(t.valHooks[e]===n||!0!==t.valHooks[e].inputmaskpatch)){var r=t.valHooks[e]&&t.valHooks[e].get?t.valHooks[e].get:function(t){return t.value},o=t.valHooks[e]&&t.valHooks[e].set?t.valHooks[e].set:function(t,e){return t.value=e,t};t.valHooks[e]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var e=r(t);return-1!==j(n,n,t.inputmask.maskset.validPositions)||!0!==i.nullable?e:""}return r(t)},set:function(e,n){var r,i=t(e);return r=o(e,n),e.inputmask&&i.trigger("setvalue",[n]),r},inputmaskpatch:!0}}}(e.type),function(e){J.on(e,"mouseenter",function(e){var n=t(this);this.inputmask._valueGet()!==L().join("")&&n.trigger("setvalue")})}(e))}}(e):e.inputmask=n,a}(e,l);if(!1!==i&&(v=t(k=e),g=k.placeholder,-1===(y=k!==n?k.maxLength:n)&&(y=n),!0===l.colorMask&&ut(k),a&&("inputmode"in k&&(k.inputmode=l.inputmode,k.setAttribute("inputmode",l.inputmode)),!0===l.disablePredictiveText&&("autocorrect"in k?k.autocorrect=!1:(!0!==l.colorMask&&ut(k),k.type="password"))),!0===i&&(k.setAttribute("im-insert",l.insertMode),J.on(k,"submit",X.submitEvent),J.on(k,"reset",X.resetEvent),J.on(k,"blur",X.blurEvent),J.on(k,"focus",X.focusEvent),!0!==l.colorMask&&(J.on(k,"click",X.clickEvent),J.on(k,"mouseleave",X.mouseleaveEvent),J.on(k,"mouseenter",X.mouseenterEvent)),J.on(k,"paste",X.pasteEvent),J.on(k,"cut",X.cutEvent),J.on(k,"complete",l.oncomplete),J.on(k,"incomplete",l.onincomplete),J.on(k,"cleared",l.oncleared),a||!0===l.inputEventOnly?k.removeAttribute("maxLength"):(J.on(k,"keydown",X.keydownEvent),J.on(k,"keypress",X.keypressEvent)),J.on(k,"input",X.inputFallBackEvent),J.on(k,"beforeinput",X.beforeInputEvent)),J.on(k,"setvalue",X.setValueEvent),h=I().join(""),""!==k.inputmask._valueGet(!0)||!1===l.clearMaskOnLostFocus||r.activeElement===k)){var o=t.isFunction(l.onBeforeMask)&&l.onBeforeMask.call(_,k.inputmask._valueGet(!0),l)||k.inputmask._valueGet(!0);""!==o&&tt(k,!0,!1,o.split(""));var u=L().slice();h=u.join(""),!1===ot(u)&&l.clearIncomplete&&O(),l.clearMaskOnLostFocus&&r.activeElement!==k&&(-1===j()?u=[]:it(u)),(!1===l.clearMaskOnLostFocus||l.showMaskOnFocus&&r.activeElement===k||""!==k.inputmask._valueGet(!0))&&K(k,u),r.activeElement===k&&nt(k,H(j()))}}(k);break;case"format":return Q=(t.isFunction(l.onBeforeMask)&&l.onBeforeMask.call(_,i.value,l)||i.value).split(""),tt.call(this,n,!0,!1,Q),i.metadata?{value:b?L().slice().reverse().join(""):L().join(""),metadata:d.call(this,{action:"getmetadata"},f,l)}:b?L().slice().reverse().join(""):L().join("");case"isValid":i.value?(Q=i.value.split(""),tt.call(this,n,!0,!0,Q)):i.value=L().join("");for(var st=L(),ft=rt(),lt=st.length-1;lt>ft&&!W(lt);lt--);return st.splice(ft,lt+1-ft),ot(st)&&i.value===L().join("");case"getemptymask":return I().join("");case"remove":if(k&&k.inputmask)t.data(k,"_inputmask_opts",null),v=t(k),k.inputmask._valueSet(l.autoUnmask?et(k):k.inputmask._valueGet(!0)),J.off(k),k.inputmask.colorMask&&((m=k.inputmask.colorMask).removeChild(k),m.parentNode.insertBefore(k,m),m.parentNode.removeChild(m)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(k),"value")&&k.inputmask.__valueGet&&Object.defineProperty(k,"value",{get:k.inputmask.__valueGet,set:k.inputmask.__valueSet,configurable:!0}):r.__lookupGetter__&&k.__lookupGetter__("value")&&k.inputmask.__valueGet&&(k.__defineGetter__("value",k.inputmask.__valueGet),k.__defineSetter__("value",k.inputmask.__valueSet)),k.inputmask=n;return k;case"getmetadata":if(t.isArray(f.metadata)){var pt=P(!0,0,!1).join("");return t.each(f.metadata,function(t,e){if(e.mask===pt)return pt=e,!1}),pt}return f.metadata}}return s.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:t.noop,onincomplete:t.noop,oncleared:t.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:t.noop,onBeforeMask:null,onBeforePaste:function(e,n){return t.isFunction(n.onBeforeMask)?n.onBeforeMask.call(this,e,n):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:t.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(i){var o=this;return"string"==typeof i&&(i=r.getElementById(i)||r.querySelectorAll(i)),i=i.nodeName?[i]:i,t.each(i,function(r,i){var a=t.extend(!0,{},o.opts);if(function(r,i,o,a){if(!0===i.importDataAttributes){var u,c,s,l,p=r.getAttribute(a);function d(t,i){null!==(i=i!==n?i:r.getAttribute(a+"-"+t))&&("string"==typeof i&&(0===t.indexOf("on")?i=e[i]:"false"===i?i=!1:"true"===i&&(i=!0)),o[t]=i)}if(p&&""!==p&&(p=p.replace(/'/g,'"'),c=JSON.parse("{"+p+"}")),c)for(l in s=n,c)if("alias"===l.toLowerCase()){s=c[l];break}for(u in d("alias",s),o.alias&&f(o.alias,o,i),i){if(c)for(l in s=n,c)if(l.toLowerCase()===u.toLowerCase()){s=c[l];break}d(u,s)}}return t.extend(!0,i,o),("rtl"===r.dir||i.rightAlign)&&(r.style.textAlign="right"),("rtl"===r.dir||i.numericInput)&&(r.dir="ltr",r.removeAttribute("dir"),i.isRTL=!0),Object.keys(o).length}(i,a,t.extend(!0,{},o.userOptions),o.dataAttribute)){var u=l(a,o.noMasksCache);u!==n&&(i.inputmask!==n&&(i.inputmask.opts.autoUnmask=!0,i.inputmask.remove()),i.inputmask=new s(n,n,!0),i.inputmask.opts=a,i.inputmask.noMasksCache=o.noMasksCache,i.inputmask.userOptions=t.extend(!0,{},o.userOptions),i.inputmask.isRTL=a.isRTL||a.numericInput,i.inputmask.el=i,i.inputmask.maskset=u,t.data(i,"_inputmask_opts",a),d.call(i.inputmask,{action:"mask"}))}}),i&&i[0]&&i[0].inputmask||this},option:function(e,n){return"string"==typeof e?this.opts[e]:"object"==typeof e?(t.extend(this.userOptions,e),this.el&&!0!==n&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"unmaskedvalue",value:t})},remove:function(){return d.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"getmetadata"})},isValid:function(t){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"isValid",value:t})},format:function(t,e){return this.maskset=this.maskset||l(this.opts,this.noMasksCache),d.call(this,{action:"format",value:t,metadata:e})},setValue:function(e){this.el&&t(this.el).trigger("setvalue",[e])},analyseMask:function(e,r,i){var o,a,u,c,f,l,p=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,h=!1,v=new g,y=[],m=[];function g(t,e,n,r){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}function _(e,o,a){a=a!==n?a:e.matches.length;var u=e.matches[a-1];if(r)0===o.indexOf("[")||h&&/\\d|\\s|\\w]/i.test(o)||"."===o?e.matches.splice(a++,0,{fn:new RegExp(o,i.casing?"i":""),optionality:!1,newBlockMarker:u===n?"master":u.def!==o,casing:null,def:o,placeholder:n,nativeDef:o}):(h&&(o=o[o.length-1]),t.each(o.split(""),function(t,r){u=e.matches[a-1],e.matches.splice(a++,0,{fn:null,optionality:!1,newBlockMarker:u===n?"master":u.def!==r&&null!==u.fn,casing:null,def:i.staticDefinitionSymbol||r,placeholder:i.staticDefinitionSymbol!==n?r:n,nativeDef:(h?"'":"")+r})})),h=!1;else{var c=(i.definitions?i.definitions[o]:n)||s.prototype.definitions[o];c&&!h?e.matches.splice(a++,0,{fn:c.validator?"string"==typeof c.validator?new RegExp(c.validator,i.casing?"i":""):new function(){this.test=c.validator}:new RegExp("."),optionality:!1,newBlockMarker:u===n?"master":u.def!==(c.definitionSymbol||o),casing:c.casing,def:c.definitionSymbol||o,placeholder:c.placeholder,nativeDef:o}):(e.matches.splice(a++,0,{fn:null,optionality:!1,newBlockMarker:u===n?"master":u.def!==o&&null!==u.fn,casing:null,def:i.staticDefinitionSymbol||o,placeholder:i.staticDefinitionSymbol!==n?o:n,nativeDef:(h?"'":"")+o}),h=!1)}}function k(){if(y.length>0){if(_(c=y[y.length-1],a),c.isAlternator){f=y.pop();for(var t=0;t0?(c=y[y.length-1]).matches.push(f):v.matches.push(f)}}else _(v,a)}function b(t){var e=new g(!0);return e.openGroup=!1,e.matches=t,e}for(r&&(i.optionalmarker[0]=n,i.optionalmarker[1]=n);o=r?d.exec(e):p.exec(e);){if(a=o[0],r)switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}"}if(h)k();else switch(a.charAt(0)){case"(?=":case"(?!":case"(?<=":case"(?0){if((c=y[y.length-1]).matches.push(u),c.isAlternator){f=y.pop();for(var x=0;x0?(c=y[y.length-1]).matches.push(f):v.matches.push(f)}}else v.matches.push(u);else k();break;case i.optionalmarker[0]:y.push(new g(!1,!0));break;case i.groupmarker[0]:y.push(new g(!0));break;case i.quantifiermarker[0]:var w=new g(!1,!1,!0),E=(a=a.replace(/[{}]/g,"")).split("|"),S=E[0].split(","),P=isNaN(S[0])?S[0]:parseInt(S[0]),A=1===S.length?P:isNaN(S[1])?S[1]:parseInt(S[1]);"*"!==P&&"+"!==P||(P="*"===A?0:1),w.quantifier={min:P,max:A,jit:E[1]};var O=y.length>0?y[y.length-1].matches:v.matches;if((o=O.pop()).isAlternator){O.push(o),O=o.matches;var j=new g(!0),M=O.pop();O.push(j),O=j.matches,o=M}o.isGroup||(o=b([o])),O.push(o),O.push(w);break;case i.alternatormarker:function R(t){var e=t.pop();return e.isQuantifier&&(e=b([t.pop(),e])),e}if(y.length>0){var C=(c=y[y.length-1]).matches[c.matches.length-1];l=c.openGroup&&(C.matches===n||!1===C.isGroup&&!1===C.isAlternator)?y.pop():R(c.matches)}else l=R(v.matches);if(l.isAlternator)y.push(l);else if(l.alternatorGroup?(f=y.pop(),l.alternatorGroup=!1):f=new g(!1,!1,!1,!0),f.matches.push(l),y.push(f),l.openGroup){l.openGroup=!1;var T=new g(!0);T.alternatorGroup=!0,y.push(T)}break;default:k()}}for(;y.length>0;)u=y.pop(),v.matches.push(u);return v.matches.length>0&&(!function e(o){o&&o.matches&&t.each(o.matches,function(t,a){var u=o.matches[t+1];(u===n||u.matches===n||!1===u.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,r||(_(a,i.groupmarker[0],0),!0!==a.openGroup&&_(a,i.groupmarker[1]))),e(a)})}(v),m.push(v)),(i.numericInput||i.isRTL)&&function t(e){for(var r in e.matches=e.matches.reverse(),e.matches)if(e.matches.hasOwnProperty(r)){var o=parseInt(r);if(e.matches[r].isQuantifier&&e.matches[o+1]&&e.matches[o+1].isGroup){var a=e.matches[r];e.matches.splice(r,1),e.matches.splice(o+1,0,a)}e.matches[r].matches!==n?e.matches[r]=t(e.matches[r]):e.matches[r]=((u=e.matches[r])===i.optionalmarker[0]?u=i.optionalmarker[1]:u===i.optionalmarker[1]?u=i.optionalmarker[0]:u===i.groupmarker[0]?u=i.groupmarker[1]:u===i.groupmarker[1]&&(u=i.groupmarker[0]),u)}var u;return e}(m[0]),m}},s.extendDefaults=function(e){t.extend(!0,s.prototype.defaults,e)},s.extendDefinitions=function(e){t.extend(!0,s.prototype.definitions,e)},s.extendAliases=function(e){t.extend(!0,s.prototype.aliases,e)},s.format=function(t,e,n){return s(e).format(t,n)},s.unmask=function(t,e){return s(e).unmaskedvalue(t)},s.isValid=function(t,e){return s(e).isValid(t)},s.remove=function(e){"string"==typeof e&&(e=r.getElementById(e)||r.querySelectorAll(e)),e=e.nodeName?[e]:e,t.each(e,function(t,e){e.inputmask&&e.inputmask.remove()})},s.setValue=function(e,n){"string"==typeof e&&(e=r.getElementById(e)||r.querySelectorAll(e)),e=e.nodeName?[e]:e,t.each(e,function(e,r){r.inputmask?r.inputmask.setValue(n):t(r).trigger("setvalue",[n])})},s.escapeRegex=function(t){return t.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},s.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},s.dependencyLib=t,s},i=[n(16),n(2)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o)},function(t,e){t.exports=function(t,e,n,r,i,o){var a,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,u=t.default);var s,f="function"==typeof u?u.options:u;if(e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId=i),o?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=s):r&&(s=r),s){var l=f.functional,p=l?f.render:f.beforeCreate;l?(f._injectStyles=s,f.render=function(t,e){return s.call(e),p(t,e)}):f.beforeCreate=p?[].concat(p,s):[s]}return{esModule:a,exports:u,options:f}}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_RESULT__=function(){return"undefined"!=typeof window?window:new(eval("require('jsdom').JSDOM"))("").window}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(t,e,n){n(4),t.exports=n(24)},function(t,e,n){Nova.booting(function(t){t.component("index-nova-phone-field",n(5)),t.component("detail-nova-phone-field",n(8)),t.component("form-nova-phone-field",n(11))})},function(t,e,n){var r=n(1)(n(6),n(7),!1,null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["resourceName","field"],computed:{unmaskedValue:function(){return this.field.value.replace(/\D/g,"")}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("a",{staticClass:"no-underline text-primary",attrs:{href:"tel:+"+this.unmaskedValue}},[this._v(" "+this._s(this.field.value)+" ")])},staticRenderFns:[]}},function(t,e,n){var r=n(1)(n(9),n(10),!1,null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["resource","resourceName","resourceId","field"],computed:{unmaskedValue:function(){return this.field.value.replace(/\D/g,"")}}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("panel-item",{attrs:{field:this.field}},[e("template",{slot:"value"},[this.field.value?e("a",{staticClass:"no-underline text-primary",attrs:{href:"tel:+"+this.unmaskedValue}},[this._v("\n "+this._s(this.field.value)+"\n ")]):e("p",[this._v("—")])])],2)},staticRenderFns:[]}},function(t,e,n){var r=n(1)(n(12),n(23),!1,null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=n.n(r),o=n(14),a=n.n(o),u=n(19),c=(n.n(u),n(20));n.n(c);e.default={mixins:[u.FormField,u.HandlesValidationErrors],props:["resourceName","resourceId","field"],data:function(){return{builtInMasks:[],customMasks:[]}},computed:{availableMasks:function(){var t=this,e=this.builtInMasks.concat(this.customMasks);return e=e.sort(),(e=Object(c.map)(e,function(e){return t.formatToInputmask(e)})).length?e:"9{1,20}"}},mounted:function(){this.setBuiltInMasks(),this.setCustomMasks(),a()(this.availableMasks).mask(this.$refs.input)},methods:{setInitialValue:function(){this.value=this.field.value||""},setBuiltInMasks:function(){if(this.field.onlyCustomFormats)return[];var t=this.field.onlyCountries||[],e=t.length?this.loadMasksForCountries(t):i.a;this.builtInMasks=Object(c.map)(e,function(t){return t.mask})},setCustomMasks:function(){this.customMasks=this.field.customFormats||[]},loadMasksForCountries:function(t){return Object(c.filter)(i.a,function(e){return t.includes(e.country_code)})},formatToInputmask:function(t){return t?t.replace(/9/gi,"\\9").replace(/#/gi,"9"):""},fill:function(t){t.append(this.field.attribute,this.value||"")},handleChange:function(t){this.value=t}}}},function(t,e){t.exports=[{country:"Afghanistan",country_code:"AF",description:"",mask:"+93-##-###-####"},{country:"Albania",country_code:"AL",description:"",mask:"+355 (###) ###-###"},{country:"Algeria",country_code:"DZ",description:"",mask:"+213-##-###-####"},{country:"American Samoa",country_code:"AS",description:"",mask:"+1 (684) ###-####"},{country:"Andorra",country_code:"AD",description:"",mask:"+376-###-###"},{country:"Angola",country_code:"AO",description:"",mask:"+244 (###) ###-###"},{country:"Anguilla",country_code:"AI",description:"",mask:"+1 (264) ###-####"},{country:"Antigua & Barbuda",country_code:"AG",description:"",mask:"+1 (268) ###-####"},{country:"Argentina",country_code:"AR",description:"",mask:"+54 (###) ###-####"},{country:"Armenia",country_code:"AM",description:"",mask:"+374-##-###-###"},{country:"Aruba",country_code:"AW",description:"",mask:"+297-###-####"},{country:"Ascension",country_code:"AC",description:"",mask:"+247-####"},{country:"Australia",country_code:"AU",description:"",mask:"+61-#-####-####"},{country:"Australian bases in Antarctica",country_code:"AQ",description:"",mask:"+672-1##-###"},{country:"Austria",country_code:"AT",description:"",mask:"+43 (###) ###-####"},{country:"Azerbaijan",country_code:"AZ",description:"",mask:"+994-##-###-##-##"},{country:"Bahamas",country_code:"BS",description:"",mask:"+1 (242) ###-####"},{country:"Bahrain",country_code:"BH",description:"",mask:"+973-####-####"},{country:"Bangladesh",country_code:"BD",description:"",mask:"+880-##-###-###"},{country:"Barbados",country_code:"BB",description:"",mask:"+1 (246) ###-####"},{country:"Belarus",country_code:"BY",description:"",mask:"+375 (##) ###-##-##"},{country:"Belgium",country_code:"BE",description:"",mask:"+32 (###) ###-###"},{country:"Belize",country_code:"BZ",description:"",mask:"+501-###-####"},{country:"Benin",country_code:"BJ",description:"",mask:"+229-##-##-####"},{country:"Bermuda",country_code:"BM",description:"",mask:"+1 (441) ###-####"},{country:"Bhutan",country_code:"BT",description:"",mask:"+975-#-###-###"},{country:"Bhutan",country_code:"BT",description:"",mask:"+975-17-###-###"},{country:"Bolivia",country_code:"BO",description:"",mask:"+591-#-###-####"},{country:"Bosnia and Herzegovina",country_code:"BA",description:"",mask:"+387-##-####"},{country:"Bosnia and Herzegovina",country_code:"BA",description:"",mask:"+387-##-#####"},{country:"Botswana",country_code:"BW",description:"",mask:"+267-##-###-###"},{country:"Brazil",country_code:"BR",description:"",mask:"+55 (##) ####-####"},{country:"Brazil",country_code:"BR",description:"mobile",mask:"+55 (##) 7###-####"},{country:"Brazil",country_code:"BR",description:"mobile",mask:"+55 (##) 9 ####-####"},{country:"British Virgin Islands",country_code:"VG",description:"",mask:"+1 (284) ###-####"},{country:"Brunei Darussalam",country_code:"BN",description:"",mask:"+673-###-####"},{country:"Bulgaria",country_code:"BG",description:"",mask:"+359 (###) ###-###"},{country:"Burkina Faso",country_code:"BF",description:"",mask:"+226-##-##-####"},{country:"Burma (Myanmar) ",country_code:"MM",description:"",mask:"+95-###-###"},{country:"Burma (Myanmar) ",country_code:"MM",description:"",mask:"+95-##-###-###"},{country:"Burma (Myanmar) ",country_code:"MM",description:"",mask:"+95-#-###-###"},{country:"Burundi",country_code:"BI",description:"",mask:"+257-##-##-####"},{country:"Cambodia",country_code:"KH",description:"",mask:"+855-##-###-###"},{country:"Cameroon",country_code:"CM",description:"",mask:"+237-####-####"},{country:"Canada",country_code:"CA",description:"",mask:"+1 (###) ###-####"},{country:"Cape Verde",country_code:"CV",description:"",mask:"+238 (###) ##-##"},{country:"Cayman Islands",country_code:"KY",description:"",mask:"+1 (345) ###-####"},{country:"Central African Republic",country_code:"CF",description:"",mask:"+236-##-##-####"},{country:"Chad",country_code:"TD",description:"",mask:"+235-##-##-##-##"},{country:"Chile",country_code:"CL",description:"",mask:"+56-#-####-####"},{country:"China (PRC) ",country_code:"CN",description:"",mask:"+86 (###) ####-###"},{country:"China (PRC) ",country_code:"CN",description:"",mask:"+86 (###) ####-####"},{country:"China (PRC) ",country_code:"CN",description:"",mask:"+86-##-#####-#####"},{country:"Colombia",country_code:"CO",description:"",mask:"+57 (###) ###-####"},{country:"Comoros",country_code:"KM",description:"",mask:"+269-##-#####"},{country:"Congo (Brazzaville) ",country_code:"CG",description:"",mask:"+242-##-###-####"},{country:"Cook Islands",country_code:"CK",description:"",mask:"+682-##-###"},{country:"Costa Rica",country_code:"CR",description:"",mask:"+506-####-####"},{country:"Cote d’Ivoire  (Ivory Coast) ",country_code:"CI",description:"",mask:"+225-##-###-###"},{country:"Croatia",country_code:"HR",description:"",mask:"+385-##-###-###"},{country:"Cuba",country_code:"CU",description:"",mask:"+53-#-###-####"},{country:"Curacao",country_code:"CW",description:"",mask:"+599-###-####"},{country:"Cyprus",country_code:"CY",description:"",mask:"+357-##-###-###"},{country:"Czech Republic",country_code:"CZ",description:"",mask:"+420 (###) ###-###"},{country:"DPR Korea (North) ",country_code:"KP",description:"mobile",mask:"+850-191-###-####"},{country:"DPR Korea (North) ",country_code:"KP",description:"",mask:"+850-####-####"},{country:"DPR Korea (North) ",country_code:"KP",description:"",mask:"+850-####-#############"},{country:"DPR Korea (North) ",country_code:"KP",description:"",mask:"+850-###-###"},{country:"DPR Korea (North) ",country_code:"KP",description:"",mask:"+850-###-####-###"},{country:"DPR Korea (North) ",country_code:"KP",description:"",mask:"+850-##-###-###"},{country:"Dem. Rep. Congo",country_code:"CD",description:"",mask:"+243 (###) ###-###"},{country:"Denmark",country_code:"DK",description:"",mask:"+45-##-##-##-##"},{country:"Diego Garcia",country_code:"IO",description:"",mask:"+246-###-####"},{country:"Djibouti",country_code:"DJ",description:"",mask:"+253-##-##-##-##"},{country:"Dominica",country_code:"DM",description:"",mask:"+1 (767) ###-####"},{country:"Dominican Republic",country_code:"DO",description:"",mask:"+1 (809) ###-####"},{country:"Dominican Republic",country_code:"DO",description:"",mask:"+1 (829) ###-####"},{country:"Dominican Republic",country_code:"DO",description:"",mask:"+1 (849) ###-####"},{country:"East Timor",country_code:"TL",description:"",mask:"+670-###-####"},{country:"East Timor",country_code:"TL",description:"",mask:"+670-77#-#####"},{country:"East Timor",country_code:"TL",description:"",mask:"+670-78#-#####"},{country:"Ecuador ",country_code:"EC",description:"mobile",mask:"+593-##-###-####"},{country:"Ecuador",country_code:"EC",description:"",mask:"+593-#-###-####"},{country:"Egypt",country_code:"EG",description:"",mask:"+20 (###) ###-####"},{country:"El Salvador",country_code:"SV",description:"",mask:"+503-##-##-####"},{country:"Equatorial Guinea",country_code:"GQ",description:"",mask:"+240-##-###-####"},{country:"Eritrea",country_code:"ER",description:"",mask:"+291-#-###-###"},{country:"Estonia ",country_code:"EE",description:"mobile",mask:"+372-####-####"},{country:"Estonia",country_code:"EE",description:"",mask:"+372-###-####"},{country:"Ethiopia",country_code:"ET",description:"",mask:"+251-##-###-####"},{country:"F.S. Micronesia",country_code:"FM",description:"",mask:"+691-###-####"},{country:"Falkland Islands",country_code:"FK",description:"",mask:"+500-#####"},{country:"Faroe Islands",country_code:"FO",description:"",mask:"+298-###-###"},{country:"Fiji",country_code:"FJ",description:"",mask:"+679-##-#####"},{country:"Finland",country_code:"FI",description:"",mask:"+358 (###) ###-##-##"},{country:"France",country_code:"FR",description:"",mask:"+33 (###) ###-###"},{country:"French Polynesia",country_code:"PF",description:"",mask:"+689-##-##-##"},{country:"Gabon",country_code:"GA",description:"",mask:"+241-#-##-##-##"},{country:"Gambia",country_code:"GM",description:"",mask:"+220 (###) ##-##"},{country:"Germany",country_code:"DE",description:"",mask:"+49 (####) ###-####"},{country:"Germany",country_code:"DE",description:"",mask:"+49 (###) ###-####"},{country:"Germany",country_code:"DE",description:"",mask:"+49 (###) ##-##"},{country:"Germany",country_code:"DE",description:"",mask:"+49 (###) ##-###"},{country:"Germany",country_code:"DE",description:"",mask:"+49 (###) ##-####"},{country:"Germany",country_code:"DE",description:"",mask:"+49-###-###"},{country:"Ghana",country_code:"GH",description:"",mask:"+233 (###) ###-###"},{country:"Gibraltar",country_code:"GI",description:"",mask:"+350-###-#####"},{country:"Greece",country_code:"GR",description:"",mask:"+30 (###) ###-####"},{country:"Greenland",country_code:"GL",description:"",mask:"+299-##-##-##"},{country:"Grenada",country_code:"GD",description:"",mask:"+1 (473) ###-####"},{country:"Guadeloupe",country_code:"FR",description:"",mask:"+590 (###) ###-###"},{country:"Guam",country_code:"GU",description:"",mask:"+1 (671) ###-####"},{country:"Guatemala",country_code:"GT",description:"",mask:"+502-#-###-####"},{country:"Guiana (French) ",country_code:"GF",description:"",mask:"+594-#####-####"},{country:"Guinea",country_code:"GN",description:"",mask:"+224-##-###-###"},{country:"Guinea-Bissau",country_code:"GW",description:"",mask:"+245-#-######"},{country:"Guyana",country_code:"GY",description:"",mask:"+592-###-####"},{country:"Haiti",country_code:"HT",description:"",mask:"+509-##-##-####"},{country:"Honduras",country_code:"HN",description:"",mask:"+504-####-####"},{country:"Hong Kong",country_code:"HK",description:"",mask:"+852-####-####"},{country:"Hungary",country_code:"HU",description:"",mask:"+36 (###) ###-###"},{country:"Iceland",country_code:"IS",description:"",mask:"+354-###-####"},{country:"India",country_code:"IN",description:"",mask:"+91 (####) ###-###"},{country:"Indonesia ",country_code:"ID",description:"mobile",mask:"+62 (8##) ###-###"},{country:"Indonesia ",country_code:"ID",description:"mobile",mask:"+62 (8##) ###-####"},{country:"Indonesia ",country_code:"ID",description:"mobile",mask:"+62 (8##) ###-##-###"},{country:"Indonesia",country_code:"ID",description:"",mask:"+62-##-###-##"},{country:"Indonesia",country_code:"ID",description:"",mask:"+62-##-###-###"},{country:"Indonesia",country_code:"ID",description:"",mask:"+62-##-###-####"},{country:"Iran",country_code:"IR",description:"",mask:"+98 (###) ###-####"},{country:"Iraq",country_code:"IQ",description:"",mask:"+964 (###) ###-####"},{country:"Ireland",country_code:"IE",description:"",mask:"+353 (###) ###-###"},{country:"Israel ",country_code:"IL",description:"mobile",mask:"+972-5#-###-####"},{country:"Israel",country_code:"IL",description:"",mask:"+972-#-###-####"},{country:"Italy",country_code:"IT",description:"",mask:"+39 (###) ####-###"},{country:"Jamaica",country_code:"JM",description:"",mask:"+1 (876) ###-####"},{country:"Japan ",country_code:"JP",description:"mobile",mask:"+81-##-####-####"},{country:"Japan",country_code:"JP",description:"",mask:"+81 (###) ###-###"},{country:"Jordan",country_code:"JO",description:"",mask:"+962-#-####-####"},{country:"Kazakhstan",country_code:"KZ",description:"",mask:"+7 (6##) ###-##-##"},{country:"Kazakhstan",country_code:"KZ",description:"",mask:"+7 (7##) ###-##-##"},{country:"Kenya",country_code:"KE",description:"",mask:"+254-###-######"},{country:"Kiribati",country_code:"KI",description:"",mask:"+686-##-###"},{country:"Korea (South) ",country_code:"KR",description:"",mask:"+82-##-###-####"},{country:"Kuwait",country_code:"KW",description:"",mask:"+965-####-####"},{country:"Kyrgyzstan",country_code:"KG",description:"",mask:"+996 (###) ###-###"},{country:"Laos ",country_code:"LA",description:"mobile",mask:"+856 (20##) ###-###"},{country:"Laos",country_code:"LA",description:"",mask:"+856-##-###-###"},{country:"Latvia",country_code:"LV",description:"",mask:"+371-##-###-###"},{country:"Lebanon ",country_code:"LB",description:"mobile",mask:"+961-##-###-###"},{country:"Lebanon",country_code:"LB",description:"",mask:"+961-#-###-###"},{country:"Lesotho",country_code:"LS",description:"",mask:"+266-#-###-####"},{country:"Liberia",country_code:"LR",description:"",mask:"+231-##-###-###"},{country:"Libya",country_code:"LY",description:"",mask:"+218-##-###-###"},{country:"Libya",country_code:"LY",description:"",mask:"+218-21-###-####"},{country:"Liechtenstein",country_code:"LI",description:"",mask:"+423 (###) ###-####"},{country:"Lithuania",country_code:"LT",description:"",mask:"+370 (###) ##-###"},{country:"Luxembourg",country_code:"LU",description:"",mask:"+352 (###) ###-###"},{country:"Macau",country_code:"MO",description:"",mask:"+853-####-####"},{country:"Madagascar",country_code:"MG",description:"",mask:"+261-##-##-#####"},{country:"Malawi",country_code:"MW",description:"",mask:"+265-#-####-####"},{country:"Malawi",country_code:"MW",description:"",mask:"+265-1-###-###"},{country:"Malaysia ",country_code:"MY",description:"mobile",mask:"+60-##-###-####"},{country:"Malaysia",country_code:"MY",description:"",mask:"+60 (###) ###-###"},{country:"Malaysia",country_code:"MY",description:"",mask:"+60-##-###-###"},{country:"Malaysia",country_code:"MY",description:"",mask:"+60-#-###-###"},{country:"Maldives",country_code:"MV",description:"",mask:"+960-###-####"},{country:"Mali",country_code:"ML",description:"",mask:"+223-##-##-####"},{country:"Malta",country_code:"MT",description:"",mask:"+356-####-####"},{country:"Marshall Islands",country_code:"MH",description:"",mask:"+692-###-####"},{country:"Martinique",country_code:"MQ",description:"",mask:"+596 (###) ##-##-##"},{country:"Mauritania",country_code:"MR",description:"",mask:"+222-##-##-####"},{country:"Mauritius",country_code:"MU",description:"",mask:"+230-###-####"},{country:"Mayotte",country_code:"FR",description:"",mask:"+262-#####-####"},{country:"Mexico",country_code:"MX",description:"",mask:"+52 (###) ###-####"},{country:"Mexico",country_code:"MX",description:"",mask:"+52-##-##-####"},{country:"Moldova",country_code:"MD",description:"",mask:"+373-####-####"},{country:"Monaco",country_code:"MC",description:"",mask:"+377 (###) ###-###"},{country:"Monaco",country_code:"MC",description:"",mask:"+377-##-###-###"},{country:"Mongolia",country_code:"MN",description:"",mask:"+976-##-##-####"},{country:"Montenegro",country_code:"ME",description:"",mask:"+382-##-###-###"},{country:"Montserrat",country_code:"MS",description:"",mask:"+1 (664) ###-####"},{country:"Morocco",country_code:"MA",description:"",mask:"+212-##-####-###"},{country:"Mozambique",country_code:"MZ",description:"",mask:"+258-##-###-###"},{country:"Namibia",country_code:"NA",description:"",mask:"+264-##-###-####"},{country:"Nauru",country_code:"NR",description:"",mask:"+674-###-####"},{country:"Nepal",country_code:"NP",description:"",mask:"+977-##-###-###"},{country:"Netherlands Antilles",country_code:"AN",description:"",mask:"+599-###-####"},{country:"Netherlands Antilles",country_code:"AN",description:"",mask:"+599-9###-####"},{country:"Netherlands",country_code:"NL",description:"",mask:"+31-##-###-####"},{country:"New Caledonia",country_code:"NC",description:"",mask:"+687-##-####"},{country:"New Zealand",country_code:"NZ",description:"",mask:"+64 (###) ###-###"},{country:"New Zealand",country_code:"NZ",description:"",mask:"+64 (###) ###-####"},{country:"New Zealand",country_code:"NZ",description:"",mask:"+64-##-###-###"},{country:"Nicaragua",country_code:"NI",description:"",mask:"+505-####-####"},{country:"Niger",country_code:"NE",description:"",mask:"+227-##-##-####"},{country:"Nigeria ",country_code:"NG",description:"mobile",mask:"+234 (###) ###-####"},{country:"Nigeria",country_code:"NG",description:"",mask:"+234 (###) ###-####"},{country:"Nigeria",country_code:"NG",description:"",mask:"+234-##-###-##"},{country:"Nigeria",country_code:"NG",description:"",mask:"+234-##-###-###"},{country:"Niue",country_code:"NU",description:"",mask:"+683-####"},{country:"Norfolk Island",country_code:"NF",description:"",mask:"+672-3##-###"},{country:"Northern Mariana Islands",country_code:"MP",description:"",mask:"+1 (670) ###-####"},{country:"Norway",country_code:"NO",description:"",mask:"+47 (###) ##-###"},{country:"Oman",country_code:"OM",description:"",mask:"+968-##-###-###"},{country:"Pakistan",country_code:"PK",description:"",mask:"+92 (###) ###-####"},{country:"Palau",country_code:"PW",description:"",mask:"+680-###-####"},{country:"Palestine",country_code:"PS",description:"",mask:"+970-##-###-####"},{country:"Panama",country_code:"PA",description:"",mask:"+507-###-####"},{country:"Papua New Guinea",country_code:"PG",description:"",mask:"+675 (###) ##-###"},{country:"Paraguay",country_code:"PY",description:"",mask:"+595 (###) ###-###"},{country:"Peru",country_code:"PE",description:"",mask:"+51 (###) ###-###"},{country:"Philippines",country_code:"PH",description:"",mask:"+63 (###) ###-####"},{country:"Poland",country_code:"PL",description:"",mask:"+48 (###) ###-###"},{country:"Portugal",country_code:"PT",description:"",mask:"+351-##-###-####"},{country:"Qatar",country_code:"QA",description:"",mask:"+974-####-####"},{country:"Rep. of Georgia",country_code:"GE",description:"",mask:"+995 (###) ###-###"},{country:"Republic of Macedonia",country_code:"MK",description:"",mask:"+389-##-###-###"},{country:"Reunion",country_code:"RE",description:"",mask:"+262-#####-####"},{country:"Romania",country_code:"RO",description:"",mask:"+40-##-###-####"},{country:"Russia",country_code:"RU",description:"",mask:"+7 (###) ###-##-##"},{country:"Rwanda",country_code:"RW",description:"",mask:"+250 (###) ###-###"},{country:"Saint Helena",country_code:"SH",description:"",mask:"+290-####"},{country:"Saint Kitts & Nevis",country_code:"KN",description:"",mask:"+1 (869) ###-####"},{country:"Saint Lucia",country_code:"LC",description:"",mask:"+1 (758) ###-####"},{country:"Saint Vincent & the Grenadines",country_code:"VC",description:"",mask:"+1 (784) ###-####"},{country:"Samoa",country_code:"WS",description:"",mask:"+685-##-####"},{country:"San Marino",country_code:"SM",description:"",mask:"+378-####-######"},{country:"Sao Tome and Principe",country_code:"ST",description:"",mask:"+239-##-#####"},{country:"Saudi Arabia ",country_code:"SA",description:"mobile",mask:"+966-5-####-####"},{country:"Saudi Arabia",country_code:"SA",description:"",mask:"+966-#-###-####"},{country:"Senegal",country_code:"SN",description:"",mask:"+221-##-###-####"},{country:"Serbia",country_code:"RS",description:"",mask:"+381-##-###-####"},{country:"Seychelles",country_code:"SC",description:"",mask:"+248-#-###-###"},{country:"Sierra Leone",country_code:"SL",description:"",mask:"+232-##-######"},{country:"Singapore",country_code:"SG",description:"",mask:"+65-####-####"},{country:"Sint Maarten",country_code:"SX",description:"",mask:"+1 (721) ###-####"},{country:"Slovakia",country_code:"SK",description:"",mask:"+421 (###) ###-###"},{country:"Slovenia",country_code:"SI",description:"",mask:"+386-##-###-###"},{country:"Solomon Islands ",country_code:"SB",description:"mobile",mask:"+677-###-####"},{country:"Solomon Islands",country_code:"SB",description:"",mask:"+677-#####"},{country:"Somalia",country_code:"SO",description:"",mask:"+252-##-###-###"},{country:"Somalia",country_code:"SO",description:"",mask:"+252-#-###-###"},{country:"South Africa",country_code:"ZA",description:"",mask:"+27-##-###-####"},{country:"South Sudan",country_code:"SS",description:"",mask:"+211-##-###-####"},{country:"Spain",country_code:"ES",description:"",mask:"+34 (###) ###-###"},{country:"Sri Lanka",country_code:"LK",description:"",mask:"+94-##-###-####"},{country:"St Pierre & Miquelon",country_code:"FR",description:"",mask:"+508-##-####"},{country:"Sudan",country_code:"SD",description:"",mask:"+249-##-###-####"},{country:"Suriname ",country_code:"SR",description:"mobile",mask:"+597-###-####"},{country:"Suriname",country_code:"SR",description:"",mask:"+597-###-###"},{country:"Swaziland",country_code:"SZ",description:"",mask:"+268-##-##-####"},{country:"Sweden",country_code:"SE",description:"",mask:"+46-##-###-####"},{country:"Switzerland",country_code:"CH",description:"",mask:"+41-##-###-####"},{country:"Syrian Arab Republic",country_code:"SY",description:"",mask:"+963-##-####-###"},{country:"Taiwan",country_code:"TW",description:"",mask:"+886-####-####"},{country:"Taiwan",country_code:"TW",description:"",mask:"+886-#-####-####"},{country:"Tajikistan",country_code:"TJ",description:"",mask:"+992-##-###-####"},{country:"Tanzania",country_code:"TZ",description:"",mask:"+255-##-###-####"},{country:"Thailand ",country_code:"TH",description:"mobile",mask:"+66-##-###-####"},{country:"Thailand",country_code:"TH",description:"",mask:"+66-##-###-###"},{country:"Togo",country_code:"TG",description:"",mask:"+228-##-###-###"},{country:"Tokelau",country_code:"TK",description:"",mask:"+690-####"},{country:"Tonga",country_code:"TO",description:"",mask:"+676-#####"},{country:"Trinidad & Tobago",country_code:"TT",description:"",mask:"+1 (868) ###-####"},{country:"Tunisia",country_code:"TN",description:"",mask:"+216-##-###-###"},{country:"Turkey",country_code:"TR",description:"",mask:"+90 (###) ###-####"},{country:"Turkmenistan",country_code:"TM",description:"",mask:"+993-#-###-####"},{country:"Turks & Caicos",country_code:"TC",description:"",mask:"+1 (649) ###-####"},{country:"Tuvalu ",country_code:"TV",description:"mobile",mask:"+688-90####"},{country:"Tuvalu",country_code:"TV",description:"",mask:"+688-2####"},{country:"US Virgin Islands",country_code:"VI",description:"",mask:"+1 (340) ###-####"},{country:"USA",country_code:"US",description:"",mask:"+1 (###) ###-####"},{country:"Uganda",country_code:"UG",description:"",mask:"+256 (###) ###-###"},{country:"Ukraine",country_code:"UA",description:"",mask:"+380 (##) ###-##-##"},{country:"United Arab Emirates",country_code:"AE",description:"",mask:"+971 # ### ####"},{country:"United Arab Emirates",country_code:"AE",description:"mobile",mask:"+971 5# ### ####"},{country:"United Kingdom",country_code:"UK",description:"",mask:"+44-##-####-####"},{country:"Uruguay",country_code:"UY",description:"",mask:"+598-#-###-##-##"},{country:"Uzbekistan",country_code:"UZ",description:"",mask:"+998-##-###-####"},{country:"Vanuatu ",country_code:"VU",description:"mobile",mask:"+678-##-#####"},{country:"Vanuatu",country_code:"VU",description:"",mask:"+678-#####"},{country:"Vatican City",country_code:"VA",description:"",mask:"+39-6-698-#####"},{country:"Venezuela",country_code:"VE",description:"",mask:"+58 (###) ###-####"},{country:"Vietnam",country_code:"VN",description:"",mask:"+84 (###) ####-###"},{country:"Vietnam",country_code:"VN",description:"",mask:"+84-##-####-###"},{country:"Wallis and Futuna",country_code:"WF",description:"",mask:"+681-##-####"},{country:"Yemen ",country_code:"YE",description:"mobile",mask:"+967-###-###-###"},{country:"Yemen",country_code:"YE",description:"",mask:"+967-##-###-###"},{country:"Yemen",country_code:"YE",description:"",mask:"+967-#-###-###"},{country:"Zambia",country_code:"ZM",description:"",mask:"+260-##-###-####"},{country:"Zimbabwe",country_code:"ZW",description:"",mask:"+263-#-######"}]},function(t,e,n){n(15),n(17),n(18),t.exports=n(0)},function(t,e,n){var r,i,o,a;a=function(t){return t.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),t.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(t,e,n,r,i){return n-1>-1&&"."!==e.buffer[n-1]?(t=e.buffer[n-1]+t,t=n-2>-1&&"."!==e.buffer[n-2]?e.buffer[n-2]+t:"0"+t):t="00"+t,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(t)}}},onUnMask:function(t,e,n){return t},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(t,e){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(t,e,n){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t},i=[n(0)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){var r,i,o,a;a=function(t){var e=t.document;function n(t){return null!=t&&t===t.window}function r(t){return t instanceof Element}function i(n){return n instanceof i?n:this instanceof i?void(void 0!==n&&null!==n&&n!==t&&(this[0]=n.nodeName?n:void 0!==n[0]&&n[0].nodeName?n[0]:e.querySelector(n),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new i(n)}return i.prototype={on:function(t,e){if(r(this[0])){var n=this[0].eventRegistry,i=this[0];function o(t,r){i.addEventListener?i.addEventListener(t,e,!1):i.attachEvent&&i.attachEvent("on"+t,e),n[t]=n[t]||{},n[t][r]=n[t][r]||[],n[t][r].push(e)}for(var a=t.split(" "),u=0;u0)if(void 0===e)for(i=0,o=n[t][r].length;i0?r:"global",handler:n[t][r][i]});else a.push({ev:t,namespace:r&&r.length>0?r:"global",handler:e});else if(r.length>0)for(var u in n)for(var c in n[u])if(c===r)if(void 0===e)for(i=0,o=n[u][c].length;i0&&e-1 in t)}(t))for(var i=t.length;ra.slice(0,n.length)?a.slice(n.length):e.toString().slice(n.length))}return e}function l(t,e,n){t[o]=f(e),t["raw"+o]=e,void 0!==u&&u.call(t.date,"month"==o?parseInt(t[o])-1:t[o])}if("string"==typeof s){for(;a=i(r).exec(e);){var p=s.slice(0,a[0].length);n.hasOwnProperty(a[0])&&(n[a[0]][0],o=n[a[0]][2],u=n[a[0]][1],l(c,p)),s=s.slice(p.length)}return c}if(s&&"object"==typeof s&&s.hasOwnProperty("date"))return s}return t.extendAliases({datetime:{mask:function(t){return n.S=t.i18n.ordinalSuffix.join("|"),t.inputFormat=r[t.inputFormat]||t.inputFormat,t.displayFormat=r[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=r[t.outputFormat]||t.outputFormat||t.inputFormat,t.placeholder=""!==t.placeholder?t.placeholder:t.inputFormat.replace(/[\[\]]/,""),t.regex=o(t.inputFormat,void 0,t),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(t,e,n,r){r.min=u(r.min,r.inputFormat,r),r.max=u(r.max,r.inputFormat,r);var i=n,a=u(t.join(""),r.inputFormat,r);return i&&a.date.getTime()==a.date.getTime()&&(i=(i=function(t,e){return(!isFinite(t.rawday)||"29"==t.day&&!isFinite(t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)&&e}(a,i))&&function(t,e){var n=!0;if(e.min){if(t.rawyear){var r=t.rawyear.replace(/[^0-9]/g,"");n=e.min.year.substr(0,r.length)<=r}t.year===t.rawyear&&e.min.date.getTime()==e.min.date.getTime()&&(n=e.min.date.getTime()<=t.date.getTime())}return n&&e.max&&e.max.date.getTime()==e.max.date.getTime()&&(n=e.max.date.getTime()>=t.date.getTime()),n}(a,r)),e&&i&&n.pos!==e?{buffer:o(r.inputFormat,a,r),refreshFromBuffer:{start:e,end:n.pos}}:i},onKeyDown:function(n,r,o,u){if(n.ctrlKey&&n.keyCode===t.keyCode.RIGHT){for(var c,s=new Date,f="";c=i(u).exec(u.inputFormat);)"d"===c[0].charAt(0)?f+=a(s.getDate(),c[0].length):"m"===c[0].charAt(0)?f+=a(s.getMonth()+1,c[0].length):"yyyy"===c[0]?f+=s.getFullYear().toString():"y"===c[0].charAt(0)&&(f+=a(s.getYear(),c[0].length));this.inputmask._valueSet(f),e(this).trigger("setvalue")}},onUnMask:function(t,e,n){return o(n.outputFormat,u(t,n.inputFormat,n),n,!0)},casing:function(t,e,n,r){return 0==e.nativeDef.indexOf("[ap]")?t.toLowerCase():0==e.nativeDef.indexOf("[AP]")?t.toUpperCase():t},insertMode:!1,shiftPositions:!1}}),t},i=[n(0)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){var r,i,o,a;a=function(t){var e=t.dependencyLib;function n(e,n){for(var r="",i=0;i1&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&!1===t.integerOptional&&(t.positionCaretOnClick="lvp"),t.definitions[";"]=t.definitions["~"],t.definitions[";"].definitionSymbol="~",!0===t.numericInput&&(t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t.decimalProtect=!1);var i="[+]";if(i+=n(t.prefix,t),!0===t.integerOptional?i+="~{1,"+t.integerDigits+"}":i+="~{"+t.integerDigits+"}",void 0!==t.digits){var o=t.decimalProtect?":":t.radixPoint,a=t.digits.toString().split(",");isFinite(a[0])&&a[1]&&isFinite(a[1])?i+=o+";{"+t.digits+"}":(isNaN(t.digits)||parseInt(t.digits)>0)&&(t.digitsOptional?i+="["+o+";{1,"+t.digits+"}]":i+=o+";{"+t.digits+"}")}return i+=n(t.suffix,t),i+="[-]",t.greedy=!1,i},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputType:"text",inputmode:"numeric",preValidation:function(t,n,r,i,o,a){if("-"===r||r===o.negationSymbol.front)return!0===o.allowMinus&&(o.isNegative=void 0===o.isNegative||!o.isNegative,""===t.join("")||{caret:a.validPositions[n]?n:void 0,dopost:!0});if(!1===i&&r===o.radixPoint&&void 0!==o.digits&&(isNaN(o.digits)||parseInt(o.digits)>0)){var u=e.inArray(o.radixPoint,t);if(-1!==u&&void 0!==a.validPositions[u])return!0===o.numericInput?n===u:{caret:u+1}}return!0},postValidation:function(n,r,i,o){var a=o.suffix.split(""),u=o.prefix.split("");if(void 0===i.pos&&void 0!==i.caret&&!0!==i.dopost)return i;var c=void 0!==i.caret?i.caret:i.pos,s=n.slice();o.numericInput&&(c=s.length-c-1,s=s.reverse());var f=s[c];if(f===o.groupSeparator&&(f=s[c+=1]),c===s.length-o.suffix.length-1&&f===o.radixPoint)return i;void 0!==f&&f!==o.radixPoint&&f!==o.negationSymbol.front&&f!==o.negationSymbol.back&&(s[c]="?",o.prefix.length>0&&c>=(!1===o.isNegative?1:0)&&c0&&c>=s.length-o.suffix.length-(!1===o.isNegative?1:0)&&(a[c-(s.length-o.suffix.length-(!1===o.isNegative?1:0))]="?")),u=u.join(""),a=a.join("");var l=s.join("").replace(u,"");if(l=(l=(l=(l=l.replace(a,"")).replace(new RegExp(t.escapeRegex(o.groupSeparator),"g"),"")).replace(new RegExp("[-"+t.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(o.negationSymbol.back)+"$"),""),isNaN(o.placeholder)&&(l=l.replace(new RegExp(t.escapeRegex(o.placeholder),"g"),"")),l.length>1&&1!==l.indexOf(o.radixPoint)&&("0"===f&&(l=l.replace(/^\?/g,"")),l=l.replace(/^0/g,"")),l.charAt(0)===o.radixPoint&&""!==o.radixPoint&&!0!==o.numericInput&&(l="0"+l),""!==l){if(l=l.split(""),(!o.digitsOptional||o.enforceDigitsOnBlur&&"blur"===i.event)&&isFinite(o.digits)){var p=e.inArray(o.radixPoint,l),d=e.inArray(o.radixPoint,s);-1===p&&(l.push(o.radixPoint),p=l.length-1);for(var h=1;h<=o.digits;h++)o.digitsOptional&&(!o.enforceDigitsOnBlur||"blur"!==i.event)||void 0!==l[p+h]&&l[p+h]!==o.placeholder.charAt(0)?-1!==d&&void 0!==s[d+h]&&(l[p+h]=l[p+h]||s[d+h]):l[p+h]=i.placeholder||o.placeholder.charAt(0)}if(!0!==o.autoGroup||""===o.groupSeparator||f===o.radixPoint&&void 0===i.pos&&!i.dopost)l=l.join("");else{var v=l[l.length-1]===o.radixPoint&&i.c===o.radixPoint;l=t(function(t,e){var n="";if(n+="("+e.groupSeparator+"*{"+e.groupSize+"}){*}",""!==e.radixPoint){var r=t.join("").split(e.radixPoint);r[1]&&(n+=e.radixPoint+"*{"+r[1].match(/^\d*\??\d*/)[0].length+"}")}return n}(l,o),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(l.join("")),v&&(l+=o.radixPoint),l.charAt(0)===o.groupSeparator&&l.substr(1)}}if(o.isNegative&&"blur"===i.event&&(o.isNegative="0"!==l),l=u+l,l+=a,o.isNegative&&(l=o.negationSymbol.front+l,l+=o.negationSymbol.back),l=l.split(""),void 0!==f)if(f!==o.radixPoint&&f!==o.negationSymbol.front&&f!==o.negationSymbol.back)(c=e.inArray("?",l))>-1?l[c]=f:c=i.caret||0;else if(f===o.radixPoint||f===o.negationSymbol.front||f===o.negationSymbol.back){var y=e.inArray(f,l);-1!==y&&(c=y)}o.numericInput&&(c=l.length-c-1,l=l.reverse());var m={caret:void 0!==f&&void 0===i.pos||void 0===c?c:c+(o.numericInput?-1:1),buffer:l,refreshFromBuffer:i.dopost||n.join("")!==l.join("")};return m.refreshFromBuffer?m:i},onBeforeWrite:function(n,r,i,o){if(n)switch(n.type){case"keydown":return o.postValidation(r,i,{caret:i,dopost:!0},o);case"blur":case"checkval":var a;if(function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp(t.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp(t.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(o),null!==o.min||null!==o.max){if(a=o.onUnMask(r.join(""),void 0,e.extend({},o,{unmaskAsNumber:!0})),null!==o.min&&ao.max)return o.isNegative=o.max<0,o.postValidation(o.max.toString().replace(".",o.radixPoint).split(""),i,{caret:i,dopost:!0,placeholder:"0"},o)}return o.postValidation(r,i,{caret:i,placeholder:"0",event:"blur"},o);case"_checkval":return{caret:i}}},regex:{integerPart:function(e,n){return n?new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+t.escapeRegex(e.groupSeparator)+t.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,n,r,i,o,a){var u;if("k"===e||"m"===e){u={insert:[],c:0};for(var c=0,s="k"===e?2:5;c1&&(l[1]=l[1].replace(/0/g,o.placeholder.charAt(0))),"0"===l[0]&&(l[0]=l[0].replace(/0/g,o.placeholder.charAt(0))),f=l[0]+o.radixPoint+l[1]||"";var p=n._buffer.join("");for(f===o.radixPoint&&(f=p);null===f.match(t.escapeRegex(p)+"$");)p=p.slice(1);u=void 0===(f=(f=f.replace(p,"")).split(""))[r]?{pos:r,remove:r}:{pos:r}}}else i||e!==o.radixPoint||void 0!==n.validPositions[r-1]||(u={insert:{pos:r,c:0},pos:r+1});return u},cardinality:1},"+":{validator:function(t,e,n,r,i){return i.allowMinus&&("-"===t||t===i.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(t,e,n,r,i){return i.allowMinus&&t===i.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,n,r,i,o){var a="["+t.escapeRegex(o.radixPoint)+"]",u=new RegExp(a).test(e);return u&&n.validPositions[r]&&n.validPositions[r].match.placeholder===o.radixPoint&&(u={caret:r+1}),u},cardinality:1,placeholder:function(t){return t.radixPoint}}},onUnMask:function(e,n,r){if(""===n&&!0===r.nullable)return n;var i=e.replace(r.prefix,"");return i=(i=i.replace(r.suffix,"")).replace(new RegExp(t.escapeRegex(r.groupSeparator),"g"),""),""!==r.placeholder.charAt(0)&&(i=i.replace(new RegExp(r.placeholder.charAt(0),"g"),"0")),r.unmaskAsNumber?(""!==r.radixPoint&&-1!==i.indexOf(r.radixPoint)&&(i=i.replace(t.escapeRegex.call(this,r.radixPoint),".")),i=(i=i.replace(new RegExp("^"+t.escapeRegex(r.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(r.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,n){var r=(n.numericInput?e.slice().reverse():e).join("");return r=(r=(r=(r=(r=r.replace(new RegExp("^"+t.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(n.negationSymbol.back)+"$"),"")).replace(n.prefix,"")).replace(n.suffix,"")).replace(new RegExp(t.escapeRegex(n.groupSeparator)+"([0-9]{3})","g"),"$1"),","===n.radixPoint&&(r=r.replace(t.escapeRegex(n.radixPoint),".")),isFinite(r)},onBeforeMask:function(n,r){r.isNegative=void 0;var i=r.radixPoint||",";"number"!=typeof n&&"number"!==r.inputType||""===i||(n=n.toString().replace(".",i));var o=n.split(i),a=o[0].replace(/[^\-0-9]/g,""),u=o.length>1?o[1].replace(/[^0-9]/g,""):"";n=a+(""!==u?i+u:u);var c=0;if(""!==i&&(c=u.length,""!==u)){var s=Math.pow(10,c||1);isFinite(r.digits)&&(c=parseInt(r.digits),s=Math.pow(10,c)),n=n.replace(t.escapeRegex(i),"."),isFinite(n)&&(n=Math.round(parseFloat(n)*s)/s),n=n.toString().replace(".",i)}return 0===r.digits&&-1!==n.indexOf(t.escapeRegex(i))&&(n=n.substring(0,n.indexOf(t.escapeRegex(i)))),function(t,n,r){if(n>0){var i=e.inArray(r.radixPoint,t);-1===i&&(t.push(r.radixPoint),i=t.length-1);for(var o=1;o<=n;o++)t[i+o]=t[i+o]||"0"}return t}(n.toString().split(""),c,r).join("")},onKeyDown:function(n,r,i,o){var a=e(this);if(n.ctrlKey)switch(n.keyCode){case t.keyCode.UP:a.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(o.step)),a.trigger("setvalue");break;case t.keyCode.DOWN:a.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(o.step)),a.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),t},i=[n(0)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=47)}([function(t,e,n){"use strict";var r=n(46),i=n(158),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function u(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===o.call(t)}function s(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(o)}),t.exports=c}).call(e,n(73))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(112),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),i=n(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var r=n(14);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){var r=n(11).f,i=n(17),o=n(2)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(58)("keys"),i=n(63);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(52),i=n(27);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(12).Symbol;t.exports=r},function(t,e,n){var r=n(172),i=n(191);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["1/2","1/3","2/3","1/4","3/4","1/5","2/5","3/5","4/5","1/6","5/6"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(156);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(e,"Form",{enumerable:!0,get:function(){return o(r).default}});var i=n(64);function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"Errors",{enumerable:!0,get:function(){return o(i).default}})},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(99),o=n(102),a=n(108),u=n(106),c=n(45),s="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(101);t.exports=function(t){return new Promise(function(f,l){var p=t.data,d=t.headers;r.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||u(t.url)||(h=new window.XDomainRequest,v="onload",y=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+s(m+":"+g)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[v]=function(){if(h&&(4===h.readyState||y)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:e,config:t,request:h};i(f,l,n),h=null}},h.onerror=function(){l(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){l(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var _=n(104),k=(t.withCredentials||u(t.url))&&t.xsrfCookieName?_.read(t.xsrfCookieName):void 0;k&&(d[t.xsrfHeaderName]=k)}if("setRequestHeader"in h&&r.forEach(d,function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),l(t),h=null)}),void 0===p&&(p=null),h.send(p)})}}).call(e,n(73))},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(98);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;rn;)e.push(arguments[n++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},d=function(t){delete m[t]},"process"==n(15)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=(i=new h).port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(34),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.record(e)}return r(t,[{key:"all",value:function(){return this.errors}},{key:"has",value:function(t){var e=this.errors.hasOwnProperty(t);e||(e=Object.keys(this.errors).filter(function(e){return e.startsWith(t+".")||e.startsWith(t+"[")}).length>0);return e}},{key:"first",value:function(t){return this.get(t)[0]}},{key:"get",value:function(t){return this.errors[t]||[]}},{key:"any",value:function(){return Object.keys(this.errors).length>0}},{key:"record",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errors=t}},{key:"clear",value:function(t){if(t){var e=Object.assign({},this.errors);Object.keys(e).filter(function(e){return e===t||e.startsWith(t+".")||e.startsWith(t+"[")}).forEach(function(t){return delete e[t]}),this.errors=e}else this.errors={}}}]),t}();e.default=i},function(t,e,n){var r=n(179),i=n(231),o=n(13),a=n(232),u=n(68),c=n(233),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),p=!n&&!f&&!l&&c(t),d=n||f||l||p,h=d?r(t.length,String):[],v=h.length;for(var y in t)!e&&!s.call(t,y)||d&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||h.push(y);return h}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(243))},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(180);t.exports=function(t){return null==t?"":r(t)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(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:a}catch(t){r=a}}();var c,s=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&d())}function d(){if(!f){var t=u(p);f=!0;for(var e=s.length;e;){for(c=s,s=[];++l1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return this.viaManyToMany?this.detachResources(t):Nova.request({url:"/nova-api/"+this.resourceName,method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.deleteModalOpen=!1,e.getResources()})},deleteSelectedResources:function(){this.deleteResources(this.selectedResources)},deleteAllMatchingResources:function(){var t=this;return this.viaManyToMany?this.detachAllMatchingResources():Nova.request({url:this.deleteAllMatchingResourcesEndpoint,method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then(function(){t.deleteModalOpen=!1,t.getResources()})},detachResources:function(t){var e=this;return Nova.request({url:"/nova-api/"+this.resourceName+"/detach",method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(function(){e.deleteModalOpen=!1,e.getResources()})},detachAllMatchingResources:function(){var t=this;return Nova.request({url:"/nova-api/"+this.resourceName+"/detach",method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then(function(){t.deleteModalOpen=!1,t.getResources()})},forceDeleteResources:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Nova.request({url:"/nova-api/"+this.resourceName+"/force",method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.deleteModalOpen=!1,e.getResources()})},forceDeleteSelectedResources:function(){this.forceDeleteResources(this.selectedResources)},forceDeleteAllMatchingResources:function(){var t=this;return Nova.request({url:this.forceDeleteSelectedResourcesEndpoint,method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then(function(){t.deleteModalOpen=!1,t.getResources()})},restoreResources:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Nova.request({url:"/nova-api/"+this.resourceName+"/restore",method:"put",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.restoreModalOpen=!1,e.getResources()})},restoreSelectedResources:function(){this.restoreResources(this.selectedResources)},restoreAllMatchingResources:function(){var t=this;return Nova.request({url:this.restoreAllMatchingResourcesEndpoint,method:"put",params:(0,o.default)({},this.queryString,{resources:"all"})}).then(function(){t.restoreModalOpen=!1,t.getResources()})}},computed:{deleteAllMatchingResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens:"/nova-api/"+this.resourceName},forceDeleteSelectedResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens+"/force":"/nova-api/"+this.resourceName+"/force"},restoreAllMatchingResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens+"/restore":"/nova-api/"+this.resourceName+"/restore"},queryString:function(){return{search:this.currentSearch,filters:this.encodedFilters,trashed:this.currentTrashed,viaResource:this.viaResource,viaResourceId:this.viaResourceId,viaRelationship:this.viaRelationship}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(26)),i=u(n(110)),o=u(n(228)),a=u(n(230));function u(t){return t&&t.__esModule?t:{default:t}}e.default={data:function(){return{filters:[],currentFilters:[]}},methods:{initializeFilterValuesFromQueryString:function(){this.clearAllFilters(),this.encodedFilters&&(this.currentFilters=JSON.parse(atob(this.encodedFilters)),this.syncFilterValues())},clearAllFilters:function(){this.currentFilters=[],(0,o.default)(this.filters,function(t){t.currentValue=""})},syncFilterValues:function(){var t=this;(0,o.default)(this.filters,function(e){e.currentValue=(0,a.default)(_(t.currentFilters).find(function(t){return e.class==t.class}),"value",e.currentValue)})},filterChanged:function(){var t;this.updateQueryString((t={},(0,r.default)(t,this.pageParameter,1),(0,r.default)(t,this.filterParameter,btoa((0,i.default)(this.currentFilters))),t))}},computed:{encodedFilters:function(){return this.$route.query[this.filterParameter]||""}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{resourceName:{},field:{}},data:function(){return{value:""}},mounted:function(){var t=this;this.setInitialValue(),this.field.fill=this.fill,Nova.$on(this.field.attribute+"-value",function(e){t.value=e})},destroyed:function(){Nova.$off(this.field.attribute+"-value")},methods:{setInitialValue:function(){this.value=void 0!==this.field.value&&null!==this.field.value?this.field.value:""},fill:function(t){t.append(this.field.attribute,this.value||"")},handleChange:function(t){this.value=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(41);e.default={props:{errors:{default:function(){return new r.Errors}}},data:function(){return{errorClass:"border-danger"}},computed:{errorClasses:function(){return this.hasError?[this.errorClass]:[]},fieldAttribute:function(){return this.field.attribute},hasError:function(){return this.errors.has(this.fieldAttribute)},firstError:function(){if(this.hasError)return this.errors.first(this.fieldAttribute)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(115)),i=a(n(113)),o=a(n(40));function a(t){return t&&t.__esModule?t:{default:t}}e.default={props:{loadCards:{type:Boolean,default:!0}},data:function(){return{cards:[]}},created:function(){this.fetchCards()},watch:{cardsEndpoint:function(){this.fetchCards()}},methods:{fetchCards:function(){var t=(0,i.default)(r.default.mark(function t(){var e,n;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.loadCards){t.next=6;break}return t.next=3,Nova.request().get(this.cardsEndpoint);case 3:e=t.sent,n=e.data,this.cards=n;case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},computed:{shouldShowCards:function(){return this.cards.length>0},smallCards:function(){return _.filter(this.cards,function(t){return-1!==o.default.indexOf(t.width)})},largeCards:function(){return _.filter(this.cards,function(t){return"full"==t.width})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{toAppTimezone:function(t){return t?moment.tz(t,this.userTimezone).clone().tz(Nova.config.timezone).format("YYYY-MM-DD HH:mm:ss"):t},fromAppTimezone:function(t){return t?moment.tz(t,Nova.config.timezone).clone().tz(this.userTimezone).format("YYYY-MM-DD HH:mm:ss"):t},localizeDateTimeField:function(t){if(!t.value)return t.value;var e=moment.tz(t.value,Nova.config.timezone).clone().tz(this.userTimezone);return t.format?e.format(t.format):this.usesTwelveHourTime?e.format("YYYY-MM-DD h:mm:ss A"):e.format("YYYY-MM-DD HH:mm:ss")},localizeDateField:function(t){if(!t.value)return t.value;var e=moment.tz(t.value,Nova.config.timezone).clone().tz(this.userTimezone);return t.format?e.format(t.format):e.format("YYYY-MM-DD")}},computed:{userTimezone:function(){return Nova.config.userTimezone?Nova.config.userTimezone:moment.tz.guess()},usesTwelveHourTime:function(){return _.endsWith((new Date).toLocaleString(),"AM")||_.endsWith((new Date).toLocaleString(),"PM")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(227),o=(r=i)&&r.__esModule?r:{default:r};e.default={methods:{updateQueryString:function(t){this.$router.push({query:(0,o.default)(t,this.$route.query)})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{resourceInformation:function(){var t=this;return _.find(Nova.config.resources,function(e){return e.uriKey==t.resourceName})},viaResourceInformation:function(){var t=this;if(this.viaResource)return _.find(Nova.config.resources,function(e){return e.uriKey==t.viaResource})},authorizedToCreate:function(){return this.resourceInformation.authorizedToCreate}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};e.default={methods:{selectPreviousPage:function(){this.updateQueryString((0,o.default)({},this.pageParameter,this.currentPage-1))},selectNextPage:function(){this.updateQueryString((0,o.default)({},this.pageParameter,this.currentPage+1))}},computed:{currentPage:function(){return parseInt(this.$route.query[this.pageParameter]||1)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};e.default={data:function(){return{perPage:25}},methods:{initializePerPageFromQueryString:function(){this.perPage=this.currentPerPage},perPageChanged:function(){this.updateQueryString((0,o.default)({},this.perPageParameter,this.perPage))}},computed:{currentPerPage:function(){return this.$route.query[this.perPageParameter]||25}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(226),o=(r=i)&&r.__esModule?r:{default:r};e.default={data:function(){return{search:"",selectedResource:"",availableResources:[]}},methods:{selectResource:function(t){this.selectedResource=t},handleSearchCleared:function(){this.availableResources=[]},clearSelection:function(){this.selectedResource="",this.availableResources=[]},performSearch:function(t){var e=this;this.search=t;var n=t.trim();""!=n?this.debouncer(function(){e.selectedResource="",e.getAvailableResources(n)},500):this.clearSelection()},debouncer:(0,o.default)(function(t){return t()},500)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{withTrashed:!1}},methods:{toggleWithTrashed:function(){this.withTrashed=!this.withTrashed},enableWithTrashed:function(){this.withTrashed=!0},disableWithTrashed:function(){this.withTrashed=!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t)};var r,i=n(240),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(48),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return o.default.all([t,new o.default(function(t){setTimeout(function(){return t()},e)})]).then(function(t){return t[0]})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t>1||0==t?r.Inflector.pluralize(e):r.Inflector.singularize(e)};var r=n(47)},function(t,e,n){"use strict";var r={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[new RegExp("(m)an$","gi"),"$1en"],[new RegExp("(pe)rson$","gi"),"$1ople"],[new RegExp("(child)$","gi"),"$1ren"],[new RegExp("^(ox)$","gi"),"$1en"],[new RegExp("(ax|test)is$","gi"),"$1es"],[new RegExp("(octop|vir)us$","gi"),"$1i"],[new RegExp("(alias|status)$","gi"),"$1es"],[new RegExp("(bu)s$","gi"),"$1ses"],[new RegExp("(buffal|tomat|potat)o$","gi"),"$1oes"],[new RegExp("([ti])um$","gi"),"$1a"],[new RegExp("sis$","gi"),"ses"],[new RegExp("(?:([^f])fe|([lr])f)$","gi"),"$1$2ves"],[new RegExp("(hive)$","gi"),"$1s"],[new RegExp("([^aeiouy]|qu)y$","gi"),"$1ies"],[new RegExp("(x|ch|ss|sh)$","gi"),"$1es"],[new RegExp("(matr|vert|ind)ix|ex$","gi"),"$1ices"],[new RegExp("([m|l])ouse$","gi"),"$1ice"],[new RegExp("(quiz)$","gi"),"$1zes"],[new RegExp("s$","gi"),"s"],[new RegExp("$","gi"),"s"]],singularRules:[[new RegExp("(m)en$","gi"),"$1an"],[new RegExp("(pe)ople$","gi"),"$1rson"],[new RegExp("(child)ren$","gi"),"$1"],[new RegExp("([ti])a$","gi"),"$1um"],[new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),"$1$2sis"],[new RegExp("(hive)s$","gi"),"$1"],[new RegExp("(tive)s$","gi"),"$1"],[new RegExp("(curve)s$","gi"),"$1"],[new RegExp("([lr])ves$","gi"),"$1f"],[new RegExp("([^fo])ves$","gi"),"$1fe"],[new RegExp("([^aeiouy]|qu)ies$","gi"),"$1y"],[new RegExp("(s)eries$","gi"),"$1eries"],[new RegExp("(m)ovies$","gi"),"$1ovie"],[new RegExp("(x|ch|ss|sh)es$","gi"),"$1"],[new RegExp("([m|l])ice$","gi"),"$1ouse"],[new RegExp("(bus)es$","gi"),"$1"],[new RegExp("(o)es$","gi"),"$1"],[new RegExp("(shoe)s$","gi"),"$1"],[new RegExp("(cris|ax|test)es$","gi"),"$1is"],[new RegExp("(octop|vir)i$","gi"),"$1us"],[new RegExp("(alias|status)es$","gi"),"$1"],[new RegExp("^(ox)en","gi"),"$1"],[new RegExp("(vert|ind)ices$","gi"),"$1ex"],[new RegExp("(matr)ices$","gi"),"$1ix"],[new RegExp("(quiz)zes$","gi"),"$1"],[new RegExp("s$","gi"),""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:new RegExp("(_ids|_id)$","g"),underbar:new RegExp("_","g"),spaceOrUnderbar:new RegExp("[ _]","g"),uppercase:new RegExp("([A-Z])","g"),underbarPrefix:new RegExp("^_"),applyRules:function(t,e,n,r){if(r)t=r;else if(!(n.indexOf(t.toLowerCase())>-1))for(var i=0;i>8-u%1*8)){if((n=o.charCodeAt(u+=.75))>255)throw new i;e=e<<8|n}return a}},function(t,e,n){"use strict";var r=n(0);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))}))}),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(i)&&u.push("path="+i),r.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(0),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){t.exports={default:n(116),__esModule:!0}},function(t,e,n){t.exports={default:n(117),__esModule:!0}},function(t,e,n){t.exports={default:n(118),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(48),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){return function r(i,a){try{var u=e[i](a),c=u.value}catch(t){return void n(t)}if(!u.done)return o.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}("next")})}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(111),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;ef;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16),i=n(127),o=n(126),a=n(4),u=n(61),c=n(146),s={},f={};(e=t.exports=function(t,e,n,l,p){var d,h,v,y,m=p?function(){return t}:c(t),g=r(n,l,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=u(t.length);d>_;_++)if((y=e?g(a(h=t[_])[0],h[1]):g(t[_]))===s||y===f)return y}else for(v=m.call(t);!(h=v.next()).done;)if((y=i(v,g,h.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){t.exports=!n(5)&&!n(29)(function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(10),i=n(2)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(133),i=n(57),o=n(32),a={};n(7)(a,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(1),i=n(60).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(15)(a);t.exports=function(){var t,e,n,s=function(){var r,i;for(c&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(s)}}else n=function(){i.call(r,s)};else{var l=!0,p=document.createTextNode("");new o(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r=n(54),i=n(135),o=n(138),a=n(62),u=n(52),c=Object.assign;t.exports=!c||n(29)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,s=1,f=i.f,l=o.f;c>s;)for(var p,d=u(arguments[s++]),h=f?r(d).concat(f(d)):r(d),v=h.length,y=0;v>y;)l.call(d,p=h[y++])&&(n[p]=d[p]);return n}:c},function(t,e,n){var r=n(4),i=n(134),o=n(50),a=n(33)("IE_PROTO"),u=function(){},c=function(){var t,e=n(28)("iframe"),r=o.length;for(e.style.display="none",n(51).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("