remonon-partners/assets/libs/intl-tel-input/js/utils.min.js

1 line
240 KiB
JavaScript
Raw Normal View History

2022-10-20 11:02:45 +00:00
!function(){var e=this||self;function d(d,$){d=d.split(".");var n,t=e;d[0]in t||void 0===t.execScript||t.execScript("var "+d[0]);for(;d.length&&(n=d.shift());)d.length||void 0===$?t=t[n]&&t[n]!==Object.prototype[n]?t[n]:t[n]={}:t[n]=$}function $(d,r){function $(){}$.prototype=r.prototype,d.$=r.prototype,d.prototype=new $,(d.prototype.constructor=d).fa=function(d,$,n){for(var t=Array(arguments.length-2),e=2;e<arguments.length;e++)t[e-2]=arguments[e];return r.prototype[$].apply(d,t)}}function a(d,$){null!=d&&this.g.apply(this,arguments)}a.prototype.i="",a.prototype.set=function(d){this.i=""+d},a.prototype.g=function(d,$,n){if(this.i+=String(d),null!=$)for(var t=1;t<arguments.length;t++)this.i+=arguments[t];return this},a.prototype.toString=function(){return this.i};var i=Array.prototype.indexOf?function(d,$,n){return Array.prototype.indexOf.call(d,$,n)}:function(d,$,n){if(n=null==n?0:n<0?Math.max(0,d.length+n):n,"string"==typeof d)return"string"!=typeof $||1!=$.length?-1:d.indexOf($,n);for(;n<d.length;n++)if(n in d&&d[n]===$)return n;return-1};function u(d,$){d.sort($||n)}function n(d,$){return $<d?1:d<$?-1:0}function r(d,$){switch(this.g=d,this.m=!!$.o,this.i=$.h,this.v=$.type,this.u=!1,this.i){case l:case f:case g:case h:case s:case o:case t:this.u=!0}this.l=$.defaultValue}var t=1,o=2,l=3,f=4,g=6,h=16,s=18;function c(d,$){for(this.i=d,this.g={},d=0;d<$.length;d++){var n=$[d];this.g[n.g]=n}}function p(d){return u(d=function(d){var $,n=[],t=0;for($ in d)n[t++]=d[$];return n}(d.g),function(d,$){return d.g-$.g}),d}function C(){this.g={},this.l=this.j().g,this.i=this.m=null}function S(d,$){var n=d.g[$];if(null==n)return null;if(d.m){if($ in d.i)return d.i[$];var t=d.m,e=d.l[$];if(null!=n)if(e.m){for(var r=[],i=0;i<n.length;i++)r[i]=t.i(e,n[i]);n=r}else n=t.i(e,n);return d.i[$]=n}return n}function m(d,$,n){var t=S(d,$);return d.l[$].m?t[n||0]:t}function M(d,$){if(null!=d.g[$])d=m(d,$,void 0);else d:{if(void 0===(d=d.l[$]).l)if(($=d.v)===Boolean)d.l=!1;else if($===Number)d.l=0;else{if($!==String){d=new $;break d}d.l=d.u?"0":""}d=d.l}return d}function y(d,$){return S(d,$)||[]}function T(d,$){return d.l[$].m?null!=d.g[$]?d.g[$].length:0:null!=d.g[$]?1:0}function A(d,$,n){d.g[$]=n,d.i&&(d.i[$]=n)}function E(d,$,n){d.g[$]||(d.g[$]=[]),d.g[$].push(n),d.i&&delete d.i[$]}function N(d,$){var n,t=[];for(n in $)0!=n&&t.push(new r(n,$[n]));return new c(d,t)}function I(){C.call(this)}C.prototype.has=function(d){return null!=this.g[d.g]},C.prototype.get=function(d,$){return m(this,d.g,$)},C.prototype.set=function(d,$){A(this,d.g,$)},C.prototype.add=function(d,$){E(this,d.g,$)},C.prototype.clone=function(){var d=new this.constructor;return d!=this&&(d.g={},d.i&&(d.i={}),function d($,n){for(var t=p($.j()),e=0;e<t.length;e++){var r=t[e],i=r.g;if(null!=n.g[i]){$.i&&delete $.i[r.g];var u=11==r.i||10==r.i;if(r.m){r=y(n,i);for(var o=0;o<r.length;o++)E($,i,u?r[o].clone():r[o])}else r=S(n,i),u?(u=S($,i))?d(u,r):A($,i,r.clone()):A($,i,r)}}}(d,this)),d},$(I,C);var G=null;function _(){C.call(this)}$(_,C);var b=null;function B(){C.call(this)}$(B,C);var L=null;I.j=I.prototype.j=function(){var d=G;return d||(G=d=N(I,{0:{name:"NumberFormat",s:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,h:9,type:String},2:{name:"format",required:!0,h:9,type:String},3:{name:"leading_digits_pattern",o:!0,h:9,type:String},4:{name:"national_prefix_formatting_rule",h:9,type:String},6:{name:"national_prefix_optional_when_formatting",h:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",h:9,type:String}})),d},_.j=_.prototype.j=function(){var d=b;return d||(b=d=N(_,{0:{name:"PhoneNumberDesc",s:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",h:9,type:String},9:{name:"possible_length",o:!0,h:5,type:Number},10:{name:"possible_length_local_only",o:!0,h:5,type:Number},6:{name:"example_number",h:9,type:String}})),d},B.j=B.prototype.j=function(){var d=L;return d||(L=d=N(B,{0:{name:"PhoneMetadata",s:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",h:11,type:_},2:{name:"fixed_line",h:11,type:_},3:{name:"mobile"