text: /*! jComponent v9.0.0 | (c) Peter Sirka | www.petersirka.com */
  var Tangular={};Tangular.helpers={},Tangular.version='v1.8.2',Tangular.cache={},Tangular.ENCODE=/[<>&"]/g,Tangular.TRIM=/\n$/g,Tangular.debug=!1,Tangular.settings={delimiters:['{{','}}']},Tangular.register=function(r,n){return Tangular.helpers[r]=n,Tangular},Tangular.compile=function(r){r||(r='');for(var n,e=-1,t=[],a=-1,u=0,i=r.length,l=0,s=Tangular.settings.delimiters[0].length,g=[],c=-1;i>e++;){var o=r.substring(e,e+s);if(a===-1)if(o!==Tangular.settings.delimiters[0]);else{if(a!==-1){l++;continue}n=r.substring(u,e),n&&(c=g.indexOf(n),c===-1&&(c=g.length,g.push(n))),t.push(n?'txt['+c+']':'""'),a=e+s}else if(o===Tangular.settings.delimiters[1]){if(l>0){l--;continue}var f=r.substring(a,e).trim(),p=f.substring(0,3);if('if '===p||'for'===p||'end'===f||'fi'===f||'else'===f||'else if'===f){var h=g.length-1;g[h]&&(g[h]=g[h].replace(Tangular.TRIM,''))}t.push(f),u=e+s,a=-1;continue}}n=r.substring(u,i),n&&(c=g.indexOf(n),c===-1&&(c=g.length,g.push(n))),t.push(n?'txt['+c+']':'""'),i=t.length;for(var T='$output+=',d='var $s=this,$output="",$t,$v;',$=[],v=!1,b=0,m=0;m<i;m++)if(m%2!==0){var f=t[m],w=!1,e=f.lastIndexOf('|'),x=null,O=f.substring(0,3);'if '===O&&(f='if( '+f.substring(3)+'){',w=!0),'foreach '===f.substring(0,8)&&(x=f.split(' '),'var'===x[1]&&x.splice(1,1),$.push(x[1]),w=!0,v=!0,b++);var C=f.substring(0,5);if('endif'===C||'fi'===f?(f='}',w=!0):'else'===C?(f='}else{',w=!0):'else if'===f.substring(0,7)?(f='}else if( '+f.substring(8)+'){',w=!0):'end'!==O&&'endfor'!==f.substring(0,6)||(f=$.length?'}})()}':'}}',$.pop(),w=!0,b--,b||(v=!1)),f=w?Tangular.append(f,$,v,'$s').trim():Tangular.helper(f,$,v,'$s'),w){if(x){var E=Tangular.append(x[3],$,v,'$s');f='if ('+E+'&&'+E+'.length){(function(){for(var i=0,length='+E+'.length;i<length;i++){var '+x[1]+'='+E+'[i];var $index=i;'}d+=f}else d+=T+f+';'}else d+=T+t[m]+';';var y=59===d.charCodeAt(d.length-1);return Tangular.debug&&(console.log('Tangular:'),console.log('function(helpers,$){'+d+(y?'':';')+'return $output;'),console.log(r.trim()),console.log('---------------------------'),console.log('')),function(r,n){return new Function('helpers','$','txt',d+(y?'':';')+'return $output;').call(r,Tangular.helperhandling,n,g)}},Tangular.helperhandling=function(r){var n=Tangular.helpers[r];return n?n:(console.warn('Tangular helper "'+r+'" not found.'),function(r){return void 0===r?'undefined':null===r?'null':r.toString()})},Tangular.helper=function(r,n,e){var t,a=r.indexOf('|');if(a===-1)return t=Tangular.append(r.trim(),n,e,'$s').trim(),'helpers("encode").call($s,'+t+')';t=Tangular.append(r.substring(0,a).trim(),n,e).trim(),r=r.substring(a+1).trim().split('|');for(var u='',i=0,l=r.length;i<l;i++){var s,g=r[i].trim().replace('()','');a=g.indexOf('('),a===-1?(s=g,g='.call($s,$t)'):(s=g.substring(0,a),g='.call($s,$t,'+g.substring(a+1)),g='$t=helpers("'+s+'")'+g,u+=g+';'}return'"";$t='+t+';'+u+'$output+=$t'},Tangular.append=function(r,n,e,t){return void 0===n&&(n=[]),r?r.replace(/[\_\$a-zá-žÁ-ŽA-Z0-9\s\.\[\]]+/g,function(r,e,a){var u=a.substring(e-1,e),i=!1,l=r.trim();switch('"'!==u&&'\''!==u&&'.'!==u||(i=!0),r.trim()){case'else':case'end':case'endfor':case'endif':case'fi':case'foreach':case'if':case'else if':return r;case'$index':if(!i)return r}if(!l)return'';if(i)return r;i=!1;for(var s=0,g=n.length;s<g;s++){var c=n[s].length;if(l.substring(0,c)===n[s]){if(l.length!==c){var u=l.substring(c,c+1);if('.'!==u&&'+'!==u)continue}i=!0;break}}if('$'===l)return'Tangular.$wrap($)';if('$.'===l.substring(0,2)&&(t='$',l=l.substring(2)),i)return l;u=l.substring(0,1);var o=u.charCodeAt(0);return o>47&&o<58?l:'Tangular.$wrap('+(t||'$s')+',"'+l+'")'}):'Tangular.$wrap('+(t||'$s')+')'},Tangular.$wrap=function(r,n,e){if(!r||!n)return r;var t=Tangular.cache[n];if(null===t)return r[n];if(t)return t(r);if(1===n.split('.').length)return Tangular.cache[n]=null,r[n];try{t=Tangular.cache[n]=new Function('XYZ','try{return XYZ.'+n+'}catch(e){return ""}')}catch(r){t=new Function('return ""')}return t(r)},Tangular.render=function(r,n,e){return null==n&&(n={}),'string'==typeof r&&(r=Tangular.compile(r)),r(n,e)},Tangular.register('encode',function(r){return null==r?'':r.toString().replace(Tangular.ENCODE,function(r){switch(r){case'&':return'&amp;';case'<':return'&lt;';case'>':return'&gt;';case'"':return'&quot;'}return r})}),Tangular.register('raw',function(r){return null==r?'':r}),window.Tangular=window.Ta=Tangular;
  Tangular.register('pluralize',function(r,e,t,a,n){return r||(r=0),'number'!=typeof r&&(r=parseFloat(r.toString().replace(/\s/g,'').replace(',','.'))),r.pluralize(e,t,a,n)}),Tangular.register('format',function(r,e,t,a){var n=typeof r;if(void 0===r||null===r)return'';if('number'===n||r instanceof Date)return r.format(e,t,a);'string'!==n&&(r=r.toString()),r=r.trim();for(var i=!1,o=0,f=0,u=0,l=r.length;l>u;u++){var g=r.charCodeAt(u);if(58===g||32===g||84===g){i=!0;break}if(45===g){if(o++,1===o)continue;i=!0;break}if(46===g){if(f++,1===f)continue;i=!0;break}}return i?r.parseDate().format(e||'dd.MM.yyyy'):r.parseFloat().format(e,t,a)});
  function jRinit(){jR.async(),$.fn.jRouting=function(r){if(jR.hashtags||!jR.isModernBrowser)return this;var t=$.fn.jquery.replace(/\./g,'').parseInt();if(t>=300&&r===!0)throw Error('$(selector).jRouting() doesn\'t work in jQuery +3. Instead of this use jR.clientside(selector).');var n=function(r){r.preventDefault(),jR.redirect($(this).attr('href'))};return r?$(document).on('click',this.selector,n):this.filter('a').bind('click',n),this},$(document).ready(function(){jR.async(),jR.hashtags?jR.url=location.hash||JRFU.path(JRFU.prepareUrl(location.pathname)):jR.url=JRFU.path(JRFU.prepareUrl(location.pathname)),setTimeout(function(){jR.isReady=!0,jR.location(jR.url)},5),$(window).on('hashchange',function(){jR.isReady&&jR.hashtags&&jR.location(JRFU.path(location.hash))}),$(window).on('popstate',function(){if(jR.isReady&&!jR.hashtags){var r=JRFU.path(location.pathname);jR.url!==r&&jR.location(r)}})})}var JRFU={},jR={LIMIT_HISTORY:100,LIMIT_HISTORY_ERROR:100,version:'v3.0.0',cache:{},routes:[],history:[],errors:[],global:{},query:{},params:[],middlewares:{},repository:{},url:'',model:null,isFirst:!0,isReady:!1,isRefresh:!1,isModernBrowser:!!history.pushState,hashtags:!1,count:0};window.jR||(window.jR=jR),window.jRouting||(window.jRouting=jR),window.JRFU||(window.JRFU=JRFU),window.NAVIGATION||(window.NAVIGATION=jR),jR.remove=function(r){for(var t=[],n=0,e=jR.routes.length;n<e;n++)jR.routes[n].id!==r&&t.push(jR.routes[n]);return jR.routes=t,jR},jR.on=function(r,t){return ON(r,t),jR},jR.emit=function(){EMIT.apply(window,arguments)},jR.route=function(r,t,n,e){var i;if(t instanceof Array){var i=n;n=t,t=i}'function'==typeof n&&(i=e,e=n,n=i);var o=r.count('/')+(r.indexOf('*')===-1?0:10),a=jR._route(r.trim()),u=[];if('string'==typeof n&&(n=n.split(',')),r.indexOf('{')!==-1){o-=100;for(var R=0;R<a.length;R++)'{'===a[R].substring(0,1)&&u.push(R);o-=u.length}return jR.routes.remove(r),jR.routes.push({id:r,url:a,fn:t,priority:o,params:u,middleware:n||null,init:e,count:0,pending:!1}),jR.routes.sort(function(r,t){return r.priority>t.priority?-1:r.priority<t.priority?1:0}),jR},jR.middleware=function(r,t){return jR.middlewares[r]=t,jR},jR.refresh=function(){return jR.location(jR.url,!0)},jR.reload=function(){return jR.refresh()},jR.async=function(){if(window.jRoute&&window.jRoute.length){for(;;){var r=window.jRoute.shift();if(!r)break;r()}jR.is404&&jR.location(jR.url)}},jR._route=function(r){47===r.charCodeAt(0)&&(r=r.substring(1)),47===r.charCodeAt(r.length-1)&&(r=r.substring(0,r.length-1));var t=r.split('/');return 1!==t.length||t[0]||(t[0]='/'),t},jR._route_param=function(r,t){var n=[];if(!t||!r)return n;var e=t.params.length;if(e)for(var i=0;i<e;i++){var o=r[t.params[i]];n.push('/'===o?'':o)}return n},jR._route_compare=function(r,t){var n=r.length,e=1===n&&'/'===r[0];if(t.length!==n)return!1;for(var i=0;i<n;i++){var o=t[i];if(!o)return!1;if(e||123!==o.charCodeAt(0)){if('*'===o)return!0;if(r[i]!==o)return!1}}return!0},jR.location=function(r,t){if(jR.isReady){var n=r.indexOf('?');n!==-1&&(r=r.substring(0,n)),r=JRFU.prepareUrl(r),r=JRFU.path(r);var e=jR._route(r),i=[],o=!0,a=[];a.push.apply(a,e);for(var u=0,R=e.length;u<R;u++)e[u]=e[u].toLowerCase();jR.isRefresh=t||!1,jR.count++,!t&&jR.url.length&&jR.history[jR.history.length-1]!==jR.url&&(jR.history.push(jR.url),jR.history.length>jR.LIMIT_HISTORY&&jR.history.shift());for(var R=jR.routes.length,u=0;u<R;u++){var s=jR.routes[u];if(jR._route_compare(e,s.url)&&(s.url.indexOf('*')===-1&&(o=!1),!(s.once&&s.count>0))){s.count++,i.push(s);break}}var j=!1,l=[];jR.url.length&&(jR.cache[jR.url]=jR.repository),jR.url=r,jR.repository=jR.cache[r],jR.repository||(jR.repository={}),jR._params(),jR.params=jR._route_param(a,s),jR.is404=!1,jR.emit('location',r),R=i.length;for(var u=0;u<R;u++){var s=i[u];if(!s.pending)if(s.middleware&&s.middleware.length)!function(r){for(var t=r.middleware.length,n=[],e=0;e<t;e++)!function(r,t){n.push(function(n){t.call(jR,n,r)})}(r,jR.middlewares[r.middleware[e]]);return r.init?(r.pending=!0,r.init(function(){n.middleware(function(){!err&&r.fn.apply(jR,jR.params),r.pending=!1})}),void(r.init=null)):(r.pending=!0,void n.middleware(function(t){!t&&r.fn.apply(jR,jR.params),r.pending=!1}))}(s);else{if(!s.init){s.fn.apply(jR,jR.params);continue}s.pending=!0,function(r){r.init(function(){r.fn.apply(jR,jR.params),r.pending=!1})}(s),s.init=null}}j&&jR.status(500,l),jR.is404=!0,o&&jR.status(404,new Error('Route not found.'))}},jR.prev=function(){return jR.history[jR.history.length-1]},jR.back=function(){var r=jR.history.pop()||'/';return jR.url='',jR.redirect(r,!0),jR},jR.status=function(r,t){return EMIT(r,t),jR},jR.redirect=window.REDIRECT=function(r,t){return 35===r.charCodeAt(0)?(location.hash=r,jR.model=t||null,jR.location(r,!1),jR):jR.isModernBrowser?(history.pushState(null,null,r),jR.model=t||null,jR.location(r,!1),jR):(location.href=r,!1)},jR._params=function(){for(var r={},t=location.href.slice(location.href.indexOf('?')+1).split('&'),n=0;n<t.length;n++){var e=t[n].split('=');if(2===e.length){var i=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]),a=r[i]instanceof Array;r[i]&&!a&&(r[i]=[r[i]]),a?r[i].push(o):r[i]=o}}return jR.query=r,jR},jR.path=JRFU.path=function(r,t){if('#'===r.substring(0,1))return r;t||(t='/');var n=r.indexOf('?'),e='';n!==-1&&(e=r.substring(n),r=r.substring(0,n));var i=r.length,o=r.substring(i-1,i);return o!==t&&(r+=t),r+e},JRFU.prepareUrl=function(r){return'#'===r.substring(0,1)?r:(index=r.indexOf('#'),index!==-1?r.substring(0,index):r)},Array.prototype.middleware||(Array.prototype.middleware=function(r){var t=this,n=t.shift();return void 0===n?(r&&r(),t):(n(function(n){n instanceof Error||n===!1?r&&r(n===!1||n):setTimeout(function(){t.middleware(r)},1)}),t)}),String.prototype.count||(String.prototype.count=function(r){var t=0,n=0;do t=this.indexOf(r,t+r.length),t>0&&n++;while(t>0);return n}),jR.clientside=function(r){return $(document).on('click',r,function(r){r.preventDefault();var t=$(this),n=t.attr('href')||t.attr('data-jrouting')||t.attr('data-jr');'javascript:void(0)'!==n&&'#'!==n&&jR.redirect(n)}),jRouting},window.jQuery?jRinit():jR.init=setInterval(function(){window.jQuery&&(clearInterval(jR.init),jRinit())},100),setTimeout(jR.async,500),setTimeout(jR.async,1e3),setTimeout(jR.async,2e3),setTimeout(jR.async,3e3),setTimeout(jR.async,5e3),window.ROUTE=function(r,t,n,e){return jR.route(r,t,n,e)};
  function $jc_url(t){var e=t.indexOf('?'),n=[];return COM.$version&&n.push('version='+encodeURIComponent(COM.$version)),COM.$language&&n.push('language='+encodeURIComponent(COM.$language)),n.length?(t+=e!==-1?'&':'?',t+n.join('&')):t}function $jc_ready(){clearTimeout(MAN.timeout),MAN.timeout=setTimeout(function(){$MEDIAQUERY(),MAN.refresh(),MAN.initialize();var t=MAN.components.length;if($(document).trigger('components',[t]),MAN.isReady||(MAN.clear('valid','dirty','broadcast','find'),MAN.isReady=!0,EMIT('init'),EMIT('ready')),MAN.timeoutcleaner&&clearTimeout(MAN.timeoutcleaner),MAN.timeoutcleaner=setTimeout(function(){MAN.cleaner(),MAN.autofill.splice(0).forEach(function(t){var e=t.element.find(COMPATTR_B).eq(0),n=e.val();if(n){var r=t.parser(n);t.set(r),COM.$emitwildcard(t.path,r,3)}})},1e3),MAN.isCompiling=!1,$(COMPATTR_S).each(function(){if(this.$initialized&&!this.$ready){var t=$(this);this.$ready=!0;var e=COMPATTR(t,'class');e&&!function(e){e=e.split(' '),setTimeout(function(){for(var n=0,r=e.length;n<r;n++)t.toggleClass(e[n])},5)}(e);var n=COMPATTR(this,'controller');if(n){var r=CONTROLLER(n);r?r.$init(this.$jcscope,t):(!MAN.warning[n]&&window.console&&window.console.warn('jComponent: The controller "{0}" not found.'.format(n)),MAN.warning[n]=!0)}var i=COMPATTR(this,'init');if(i)if(MAN.isOperation(i)){var a=OPERATION(i);a?a.call(t,this.$jcscope,t):window.console&&(!MAN.warning[i]&&window.console.warn('jComponent: The operation '+i+' not found.'),MAN.warning[i]=!0)}else{var o=GET(i);'function'==typeof o&&o.call(t,this.$jcscope,t)}}}),MAN.recompile&&(MAN.recompile=!1,COM.compile()),MAN.ready){for(var e=MAN.ready,n=0,r=e.length;n<r;n++)e[n](t);MAN.ready=void 0}},100)}function $jc_init(t,e){var n,r=t.get(0),i=r.tagName;'INPUT'===i||'SELECT'===i||'TEXTAREA'===i?(e.$input=!0,n=e.element):n=t.find(COMPATTR_B),n.each(function(){this.$component||(this.$component=e)}),e.released&&e.released(e.$released),MAN.components.push(e),MAN.init.push(e),'BODY'!==i&&MAN.regexpcom.test(t.get(0).innerHTML)&&COM.compile(t),$jc_ready()}function $jc_compare(t,e,n,r,i,a){var o=n+'='+r+'='+i,s=MAN.temp[o];if(void 0!==s)return s;if(0===n){for(var c=0,u=t.length;c<u;c++)if(void 0!==e[c])if(a){if(t[c]!==e[c].raw)return MAN.temp[o]=!1,!1}else if(t[c]!==e[c].path)return MAN.temp[o]=!1,!1;return MAN.temp[o]=!0,!0}if(1===n){if(t.length!==e.length)return!1;for(var c=0,u=e.length;c<u;c++)if(t[c]!==e[c].raw)return MAN.temp[o]=!1,!1;return MAN.temp[o]=!0,!0}if(2===n){for(var c=0,u=t.length;c<u;c++)if(void 0!==e[c]&&t[c]!==e[c].raw)return MAN.temp[o]=!1,!1;return MAN.temp[o]=!0,!0}}function COMUSAGE(){this.init=0,this.manually=0,this.input=0,this.default=0,this.custom=0,this.dirty=0,this.valid=0}function COMP(t){this._id='component'+MAN.counter++,this.usage=new COMUSAGE,this.$dirty=!0,this.$valid=!0,this.$validate=!1,this.$parser=[],this.$formatter=[],this.$skip=!1,this.$ready=!1,this.$path,this.trim=!0,this.middleware='',this.$released=!1,this.name=t,this.path,this.type,this.id,this.disabled=!1,this.caller,this.make,this.done,this.prerender,this.destroy,this.state,this.dependencies,this.validate,this.released,this.release=function(t){var e=this;return void 0===t||e.$removed?e.$released:(e.element.find(COMPATTR_C).each(function(){var n=$(this);n.attr('data-jc-released',t?'true':'false');var r=n.data(COMPATTR_C);r&&(r instanceof Array?r.forEach(function(n){n.$removed||n.$released===t||(r.$released=t,r.released&&r.released(t,e))}):r.$removed||r.$released===t||(r.$released=t,r.released&&r.released(t,e)))}),e.$released!==t&&(e.$released=t,e.released&&this.released(t,e)),t)},this.getter=function(t,e,n,r,i){return t=this.parser(t),2!==e||i||(this.$skip=!0),2!==e||null!==r&&void 0!==r?(COM.validate(this.path),this):(this.trim&&'string'==typeof t&&(t=t.trim()),t===this.get()?(n&&COM.validate(this.path),this):(i&&(this.$skip=!1),this.getter2&&this.getter2.apply(this,arguments),this.set(this.path+this.middleware,t,e),this))},this.setter=function(t,e,n){var r=this;if(2===n&&r.$skip)return r.$skip=!1,r;this.setter2&&this.setter2.apply(this,arguments);var i=r.$input===!0?this.element:this.element.find(COMPATTR_B),a='select-one';t=r.formatter(t),i.each(function(){var e=this.$component.path;if(!e||!e.length||e===r.path){var i;return'checkbox'===this.type?(i=null!=t?t.toString().toLowerCase():'',void(this.checked='true'===i||'1'===i||'on'===i)):(null==t&&(t=''),n||this.type===a||'range'===this.type||t&&(!r.$default||r.$default()!==t)||MAN.autofill.push(this.$component),this.type===a||'select'===this.type?$(this).val(t):void(this.value=t))}})}}function component(t,e){return COMPONENT(t,e)}function $jc_async(t,e,n){var r=t.shift();return null==r?n&&n():void e(r,function(){$jc_async(t,e,n)})}function CMAN(){this.kkcounter=0,this.kkinterval=setInterval(function(){window.DATETIME=new Date;for(var t=MAN.components,e=0,n=t.length;e<n;e++)t[e].knockknock&&t[e].knockknock(MAN.kkcounter);EMIT('knockknock',MAN.kkcounter++)},6e4),this.autofill=[],this.const_emit2=[null,null,null],this.const_notify=[null,null],this.counter=1,this.mcounter=1,this.tic,this.tis,this.isReady=!1,this.isCompiling=!1,this.init=[],this.register={},this.cache={},this.storage={},this.cacheblocked={},this.temp={},this.model={},this.components=[],this.schemas={},this.toggle=[],this.ready=[],this.events={},this.timeout,this.pending=[],this.imports={},this.styles=[],this.operations={},this.controllers={},this.initializers={},this.warning={},this.waits={},this.defaults={},this.middleware={},this.others={},this.schedulers=[],this.singletons={},this.extends={},this.ajax={},this.regexpcom=/(data-jc|data-component)\=/,this.jsonconverter={'text json':function(t){return PARSE(t)}}}function $jc_save(){try{COM.defaults.localstorage&&localStorage.setItem(COM.$localstorage+'.cache',JSON.stringify(MAN.storage))}catch(t){}}function $BROADCAST_EVAL(t,e,n){return n||(n=null),function(){for(var r=arguments,i=0,a=t.length;i<a;i++){var o=t[i];'function'==typeof o[e]&&(o.caller=n,o[e].apply(o[e],r),o.caller=null)}}}function $jc_keypress(t,e,n){if(t.value!==e){if(clearTimeout2('M$timeout'),t.value!==t.$value2){var r=!1;9!==n.keyCode&&(t.$component.$dirty&&(r=!0),t.$component.dirty(!1,!0)),t.$component.getter(t.value,2,r,e,'focusout'===n.type||13===n.keyCode),t.value2=t.value}setTimeout2('M$cleanup',function(){t.$value2=void 0,t.$value=void 0},3e5)}}function COMPATTR(t,e){return e=e?'-'+e:'',t.getAttribute?t.getAttribute('data-jc'+e)||t.getAttribute('data-component'+e):t.attr('data-jc'+e)||t.attr('data-component'+e)}function $MEDIAQUERY(){if(MAN.mediaquery&&MAN.mediaquery.length)for(var t=window.orientation?90===Math.abs(window.orientation)?'landscape':'portrait':'',e=$(window),n=e.width(),r=e.height(),i=COM.defaults.devices,a=0,o=MAN.mediaquery.length;a<o;a++){var s=MAN.mediaquery[a],c=n,u=r;if(s.element&&(c=s.element.width(),u=s.element.height()),s.orientation){if(!t&&'portrait'!==s.orientation)continue;if(t!==s.orientation)continue}if(!(s.minW&&s.minW>=c)&&!(s.maxW&&s.maxW<=c)&&!(s.minH&&s.minH>=u)&&!(s.maxH&&s.maxH<=u)&&(s.oldW!==c||s.oldH===u||s.maxH||s.minH)&&(s.oldH!==u||s.oldW===c||s.maxW||s.minW)&&(s.oldW!==c||s.oldH!==u)){var l;c>=i.md.min&&c<=i.md.max?l='md':c>=i.sm.min&&c<=i.sm.max?l='sm':c>i.lg.min?l='lg':c<=i.xs.max&&(l='xs'),s.oldW=c,s.oldH=u,s.fn(c,u,l,s.id)}}}function $MIDDLEWARE(t,e,n,r){var i=t.indexOf(' #');if(i===-1)return r(t,e),t;var a=t.substring(0,i);return void 0===e&&(e=COM.get(a)),MIDDLEWARE(t.substring(i+1).trim().replace(/\#/g,'').split(' '),e,function(t){r(a,t)},a),a}var MAN=new CMAN;window.MAN||(window.MAN=MAN);var COMPATTR_B='input[data-jc-bind],textarea[data-jc-bind],select[data-jc-bind],input[data-component-bind],textarea[data-component-bind],select[data-component-bind]',COMPATTR_C='[data-jc],[data-component]',COMPATTR_U='[data-jc-url],[data-component-url]',COMPATTR_S='[data-jc-scope],[data-component-scope],[data-jc-controller],[data-component-controller]',COMPATTR_R='data-jc-removed',DIACRITICS={225:'a',228:'a',269:'c',271:'d',233:'e',283:'e',357:'t',382:'z',250:'u',367:'u',252:'u',369:'u',237:'i',239:'i',244:'o',243:'o',246:'o',353:'s',318:'l',314:'l',253:'y',255:'y',263:'c',345:'r',341:'r',328:'n',337:'o'};window.isMOBILE=!!('ontouchstart'in window||navigator.maxTouchPoints),window.isROBOT=!navigator.userAgent||/search|agent|bot|crawler|spider/i.test(navigator.userAgent),window.isSTANDALONE=navigator.standalone||window.matchMedia('(display-mode: standalone)').matches,window.EMPTYARRAY=[],window.EMPTYOBJECT={},window.setTimeout2=function(t,e,n){var r=':'+t;return MAN.others[r]&&clearTimeout(MAN.others[r]),MAN.others[r]=setTimeout(e,n)},window.clearTimeout2=function(t){var e=':'+t;MAN.others[e]&&clearTimeout(MAN.others[e])},window.TRY=function(t,e){try{return t(),!0}catch(t){e&&e(t)}return!1},Object.freeze&&(Object.freeze(EMPTYOBJECT),Object.freeze(EMPTYARRAY)),window.SINGLETON=function(t,e){return MAN.singletons[t]||(MAN.singletons[t]=new Function('return '+(e||'{}'))())},window.COM=window.jC=function(t){return COM.compile(t)},COM.clean=function(t){return clearTimeout(MAN.tic),MAN.tic=setTimeout(function(){MAN.cleaner()},t||10),COM},COM.evaluate=function(t,e,n){var r,i='eval'+e,a=MAN.cache[i];return r=n?t:COM.get(t),void 0!==a?a.call(r,r,t):(e.indexOf('return')===-1&&(e='return '+e),a=new Function('value','path',e),MAN.cache[i]=a,a.call(r,r,t))},COM.defaults={},COM.defaults.delay=300,COM.defaults.keypress=!0,COM.defaults.localstorage=!0,COM.defaults.jsoncompress=!1,COM.defaults.jsondate=!0,COM.defaults.headers={'X-Requested-With':'XMLHttpRequest'},COM.defaults.devices={xs:{max:768},sm:{min:768,max:992},md:{min:992,max:1200},lg:{min:1200}},COM.defaults.importcache='session',COM.version='v9.0.0',COM.$localstorage='jc',COM.$version='',COM.$language='',COM.$formatter=[],COM.$parser=[],COM.$parser.push(function(t,e,n){if('number'===n||'currency'===n||'float'===n){'string'==typeof e&&(e=e.replace(/\s/g,'').replace(/,/g,'.'));var r=parseFloat(e);return isNaN(r)?null:r}return e}),COM.cookies={get:function(t){for(var e=document.cookie.split(';'),n=0;n<e.length;n++){var r=e[n];' '===r.charAt(0)&&(r=r.substring(1));var i=r.split('=');if(i.length>1&&i[0]===t)return i[1]}return''},set:function(t,e,n){var r=typeof n;if('number'===r){var i=DATETIME;i.setTime(i.getTime()+24*n*60*60*1e3),n=i}else'string'===r&&(n=new Date(Date.now()+n.parseExpire()));document.cookie=t+'='+e+'; expires='+n.toGMTString()+'; path=/'},rem:function(t){this.set(t,'',-1)}},COM.formatter=function(t,e,n){if('function'==typeof t)return COM.$formatter||(COM.$formatter=[]),COM.$formatter.push(t),COM;var r=COM.$formatter;if(r&&r.length)for(var i=0,a=r.length;i<a;i++)t=r[i].call(COM,e,t,n);return t},COM.usage=function(t,e,n,r){var i=typeof e;'string'===i?e=DATETIME.add('-'+e):'number'===i&&(e=Date.now()-e),'function'==typeof n&&(r=n,n=void 0);var a=[];return n?COM.findByPath(n,function(n){n.usage[t]>e||(r?r(n):a.push(n))}):MAN.components.forEach(function(n){n.usage[t]>e||(r?r(n):a.push(n))}),r?COM:a},COM.schedule=function(t,e,n,r){'-'!==n.substring(0,1)&&(n='-'+n);var i=n.split(' '),a=i[1].toLowerCase().substring(0,1);return MAN.schedulers.push({name:e,expire:n,selector:t,callback:r,type:'y'===a||'d'===a?'h':a}),COM},COM.parser=function(t,e,n){if('function'==typeof t)return COM.$parser||(COM.$parser=[]),COM.$parser.push(t),this;var r=COM.$parser;if(r&&r.length)for(var i=0,a=r.length;i<a;i++)t=r[i].call(COM,e,t,n);return t},COM.compile=function(t){if(MAN.isCompiling)return MAN.recompile=!0,COM;var e=window.READY||window.jComponent;if(e&&e.length)for(;;){var n=e.shift();if(!n)break;n()}if(MAN.isCompiling=!0,COM.$inject(),MAN.pending.length)return function(t){MAN.pending.push(function(){COM.compile(t)})}(t),COM;var r=$(COMPATTR_S),i=r.length,a=!1;return COM.crawler(t,function(t,e){var n=$(e);if(a=!0,MAN.initializers['$ST_'+t])return e.$jc=!0,n.attr(COMPATTR_R,!0),void n.remove();var o=[],s=t.split(',');s.forEach(function(t){t=t.trim();var a=MAN.register[t||''];if(!a){var c=COMPATTR(n,'import');if(!c)return void(!MAN.initializers['$NE_'+t]&&(MAN.initializers['$NE_'+t]=!0));if(1===MAN.imports[c])return;return 2===MAN.imports[c]?void(!MAN.initializers['$NE_'+t]&&(MAN.initializers['$NE_'+t]=!0)):(MAN.imports[c]=1,void IMPORT(c,function(){MAN.imports[c]=2}))}var u=a(n);u.init&&(MAN.initializers[t]||(MAN.initializers[t]=!0,u.init()),u.init=void 0),u.$init=COMPATTR(n,'init')||null,u.type=COMPATTR(n,'type')||'',u.id=COMPATTR(n,'id')||u._id,u.dependencies=[],u.siblings=s.length>1,e.$jc=!0,u.$noscope||(u.$noscope='true'===COMPATTR(n,'noscope')),'true'===COMPATTR(n,'singleton')&&(MAN.initializers['$ST_'+t]=!0);var l=u.path?u.path.charCodeAt(0):0;if(!u.$noscope&&i&&u.path&&33!==l&&35!==l)for(var d=0;d<i;d++)if($.contains(r[d],e)){var f=r[d].$jcscope||COMPATTR(r[d],'scope');if(r[d].$initialized=!0,!r[d].$processed){r[d].$processed=!0,f&&'?'!==f||(f=GUID(25).replace(/\d/g,''),r[d].$jcscope=f);var h=COMPATTR(r[d],'value');if(h){var p=new Function('return '+h);MAN.defaults['#'+HASH(f)]=p,h=p(),MAN.set(f,h),COM.$emitwildcard(f,h,1)}}u.setPath('?'===u.path?f:u.path.indexOf('?')===-1?f+'.'+u.path:u.path.replace(/\?/g,f)),u.scope=r[d],u.$controller=COMPATTR(r[d],'controller'),u.pathscope=f}for(var M=(COMPATTR(n,'dependencies')||'').split(','),d=0,v=M.length;d<v;d++){var m=M[d].trim();m&&u.dependencies.push(m)}o.push(u);var g=COMPATTR(n,'template')||u.template;if(g&&(u.template=g),'true'===COMPATTR(n,'released')&&(u.$released=!0),COMPATTR(n,'url'))return void(window.console&&window.console.warn('jComponent: You cannot use [data-jc-url] for the component: '+u.name+'['+u.path+']. Instead of it you have to use data-jc-template.'));if('string'==typeof g){var p=function(t){u.prerender&&(t=prerender(t)),'function'==typeof u.make&&u.make(t),$jc_init(n,u)},A=g.substring(0,1);if('.'===A||'#'===A||'['===A)return void p($(A).html());var C='TE'+HASH(g),O=MAN.temp[C];return O?p(O):void $.get($jc_url(g),function(t){MAN.temp[C]=t,p(t)})}return'string'==typeof u.make?u.make.indexOf('<')!==-1?(u.prerender&&(u.make=u.prerender(u.make)),n.html(u.make),void $jc_init(n,u)):void $.get($jc_url(u.make),function(t){u.prerender&&(t=prerender(t)),n.html(t),$jc_init(n,u)}):(u.make&&u.make(),void $jc_init(n,u))}),n.data(COMPATTR_C,o.length>1?o:o[0])}),a||(MAN.isCompiling=!1),void 0===t&&MAN.toggle.length?void $jc_async(MAN.toggle,function(t,e){for(var n=0,r=t.toggle.length;n<r;n++)t.element.toggleClass(t.toggle[n]);e()},function(){MAN.next()}):MAN.next()};var COUNTER=0;COM.crawler=function(t,e,n){if(t=t?$(t).get(0):document.body,!t)return COM;var r=COMPATTR(t);!t.$jc&&null!=r&&e(r,t,0);var i=t.childNodes,a=[];void 0===n?n=0:n++;for(var o=0,s=i.length;o<s;o++){var c=i[o];c&&(c.tagName&&c.childNodes.length&&'SCRIPT'!==c.tagName&&MAN.regexpcom.test(c.innerHTML)&&a.push(c),!c.$jc&&c.tagName&&(c.hasAttribute('data-jc')||c.hasAttribute('data-component'))&&e(COMPATTR(c)||'',c,n))}for(var o=0,s=a.length;o<s;o++)c=a[o],c&&COM.crawler(c,e,n);return COM},COM.$inject=function(){var t=$(COMPATTR_U),e=[],n=0;if(t.each(function(){var t=$(this);if(!t.data(COMPATTR_U)){t.data(COMPATTR_U,'1');var n=COMPATTR(t,'url'),r='once '===n.substring(0,5).toLowerCase();if('!'===n.substring(0,1)||r){if(n=r?n.substring(5):n.substring(1),MAN.others[n])return;MAN.others[n]=2}e.push({element:t,cb:COMPATTR(t,'init'),path:COMPATTR(t,'path'),url:n,toggle:(COMPATTR(t,'class')||'').split(' ')})}}),e.length){var r=!1;$jc_async(e,function(t,e){var i=$jc_url(t.url),a=!1;AJAXCACHE('GET '+i,null,function(o){if(i='$import'+i,MAN.cache[i]&&(o=MAN.removescripts(o)),a=o&&MAN.regexpcom.test(o),a&&(r=!0),t.element.html(o),MAN.cache[i]=!0,a&&t.path){var s=t.element.find(COMPATTR_C);s.each(function(){var e=$(this);$.each(this.attributes,function(){this.specified&&e.attr(this.name,this.value.replace('$',t.path))})})}if(t.toggle.length&&t.toggle[0]&&MAN.toggle.push(t),t.cb&&!COMPATTR(t.element)){var c=MAN.get(t.cb);'function'==typeof c&&c(t.element)}n++,e()},COM.defaults.importcache)},function(){MAN.clear('valid','dirty','broadcast','find'),n&&r&&window.COMPILE()})}},COM.components=function(){return Object.keys(MAN.register).trim()},COM.inject=COM.import=function(t,e,n,r,i){var a=t.substring(0,1),o='once '===t.substring(0,5).toLowerCase();'function'==typeof e?('function'==typeof n?(i=n,r=!0):'function'==typeof r&&(i=r,r=!0),n=e,e='body'):'function'==typeof r&&(i=r,r=!0),void 0===r&&(r=!0);var s=t.lastIndexOf(' .'),c='';if(s!==-1&&(c=t.substring(s).trim().toLowerCase(),t=t.substring(0,s).trim()),'!'===a||o){if(t=o?t.substring(5):t.substring(1),MAN.others[t])return n?2===MAN.others[t]?(n(),COM):(WAIT(function(){return 2===MAN.others[t]},function(){n()}),COM):COM;MAN.others[t]=1}if(e&&e.setPath&&(e=e.element),e||(e='body'),!c)if(s=t.lastIndexOf('?'),s!==-1){var u=t.lastIndexOf('.',s);u!==-1&&(c=t.substring(u,s).toLowerCase())}else s=t.lastIndexOf('.'),s!==-1&&(c=t.substring(s).toLowerCase());var l=document;if('.js'===c){var d=l.createElement('script');return d.type='text/javascript',d.async=!0,d.onload=function(){MAN.others[t]=2,n&&n(),window.jQuery&&setTimeout(COM.compile,300)},d.src=t,void l.getElementsByTagName('head')[0].appendChild(d)}if('.css'===c){var f=l.createElement('link');return f.type='text/css',f.rel='stylesheet',f.href=t,l.getElementsByTagName('head')[0].appendChild(f),MAN.others[t]=2,void(n&&setTimeout(n,200))}return WAIT(function(){return!!window.jQuery},function(){MAN.others[t]=2;var a='';r&&(a='data-jc-imported="'+(1e5*Math.random()>>0)+'"',$(e).append('<div '+a+'></div>'),e=$(e).find('> div['+a+']')),key=$jc_url(t),AJAXCACHE('GET '+key,null,function(t){key='$import'+key,i&&(t=i(t)),t=MAN.cache[key]?MAN.removescripts(t):MAN.importstyles(t,a),$(e).html(t),MAN.cache[key]=!0,setTimeout(function(){t&&MAN.regexpcom.test(t)&&COM.compile(e),n&&n()},10)},COM.defaults.importcache)}),COM},COM.createURL=function(t,e){'object'==typeof t&&(e=t,t=location.pathname+location.search);var n,r=t.indexOf('?');r!==-1?(n=COM.parseQuery(t.substring(r+1)),t=t.substring(0,r)):n={};for(var i=Object.keys(e),a=0,o=i.length;a<o;a++){var s=i[a];n[s]=e[s]}var c=$.param(n,!0);return t+(c?'?'+c:'')},COM.parseCookie=COM.parseCookies=function(){for(var t=document.cookie.split(';'),e={},n=0,r=t.length;n<r;n++){var i=t[n].trim(),a=i.indexOf('=');a!==-1&&(e[i.substring(0,a)]=decodeURIComponent(i.substring(a+1)))}return e},COM.parseQuery=function(t){if(t||(t=location.search),!t)return EMPTYOBJECT;var e=t.indexOf('?');e!==-1&&(t=t.substring(e+1));for(var n=t.split('&'),r={},i=0,a=n.length;i<a;i++){var o=n[i].split('='),s=o[0],c=decodeURIComponent((o[1]||'').replace(/\+/g,'%20'));r[s]?(r[s]instanceof Array||(r[s]=[r[s]]),r[s].push(c)):r[s]=c}return r},COM.UPLOAD=function(t,e,n,r,i){return t||(t=location.pathname),'number'==typeof n&&(r=n,n=void 0),setTimeout(function(){var r=new XMLHttpRequest,a={};a.process=!0,a.error=!1,a.upload=!0,a.method='POST',a.url=t,a.data=e,r.addEventListener('load',function(){var t=this.responseText;try{t=PARSE(t,COM.defaults.jsondate)}catch(t){}if(i&&('string'==typeof i?MAN.remap(i,100):i(100)),a.response=t,a.status=this.status,a.error=200!==this.status,a.headers=this.getAllResponseHeaders(),EMIT('response',a),a.process){if(!a.error)return'string'==typeof n?MAN.remap(n,t):n&&n(t);t||(t=a.response=this.status+': '+this.statusText),EMIT('error',a),a.process&&'function'==typeof n&&n({},t,a)}},!1),r.upload.onprogress=function(t){if(i){var e=0;t.lengthComputable&&(e=Math.round(100*t.loaded/t.total)),'string'==typeof i?MAN.remap(i,e):i(e,t.transferSpeed,t.timeRemaining)}},r.open('POST',t),r.send(e)},r||0),COM},window.TEMPLATE=COM.TEMPLATE=function(t,e,n){return MAN.cache[t]?('string'==typeof e?SET(e,MAN.cache[t]):e(MAN.cache[t]),COM):(AJAX('GET '+t,function(r,i){i&&(r='');var a=MAN.cache[t]=n?n(r):r;'string'==typeof e?SET(e,a):e(a)}),COM)},COM.AJAX=function(t,e,n,r){'function'==typeof t&&(r=n,n=e,e=t,t=location.pathname);var i,a=typeof e;n||'function'!==a&&'string'!==a||(r=n,n=e,e=void 0);var o=t.indexOf(' ');if(o===-1)return COM;var s=t.substring(0,o).toUpperCase(),c='!'===s.substring(0,1);c&&(s=s.substring(1));var u={};i=t.match(/\{.*?\}/g),i&&(t=t.replace(i,'').replace(/\s{2,}/g,' '),i=new Function('return '+i)(),'object'==typeof i&&(u=i)),t=t.substring(o).trim(),o=t.indexOf(' #');var l='';return o!==-1&&(l=t.substring(o),t=t.substring(0,o)),setTimeout(function(){'GET'===s&&e&&(t+='?'+('string'==typeof e?e:jQuery.param(e,!0)));var r={};r.type=s,r.converters=MAN.jsonconverter,'GET'!==s&&('string'==typeof e?r.data=e:(r.contentType='application/json; charset=utf-8',r.data=STRINGIFY(e))),t.match(/http\:\/\/|https\:\/\//i)&&(r.crossDomain=!0,c&&(r.xhrFields={withCredentials:!0})),r.headers=$.extend(u,COM.defaults.headers);var i=HASH(t+STRINGIFY(r)),a=MAN.ajax[i];a&&(a.jcabort=!0,a.abort(),a=void 0);var o={};o.url=t,o.process=!0,o.error=!1,o.upload=!1,o.method=s,o.data=e,r.success=function(t,e,r){delete MAN.ajax[i],o.response=t,o.status=e,o.headers=r.getAllResponseHeaders(),EMIT('response',o),o.process&&$MIDDLEWARE(l,o.response,1,function(t,e){'string'==typeof n?MAN.remap(n,e):n&&n(e,void 0,o)})},r.error=function(t,e,r){if(delete MAN.ajax[i],o.response=t.responseText,o.status=e+': '+r,o.error=!0,o.headers=t.getAllResponseHeaders(),o.headers.indexOf('/json')!==-1)try{o.response=PARSE(o.response,COM.defaults.jsondate)}catch(t){}EMIT('response',o),o.process&&EMIT('error',o),o.process&&'function'==typeof n&&n(o.response,o.status,o)},MAN.ajax[i]=$.ajax($jc_url(t),r)},r||0),COM},COM.AJAXCACHEREVIEW=function(t,e,n,r,i,a){return AJAXCACHE(t,e,n,r,i,a,!0)},COM.AJAXCACHE=function(t,e,n,r,i,a,o){'function'==typeof t&&(error=i,i=n,n=e,e=t,t=location.pathname);var s=typeof e;if(n&&'number'!=typeof n||'function'!==s&&'string'!==s||(a=i,i=r,r=n,n=e,e=void 0),'boolean'==typeof i){var c=a;a=i,i=c}var u=t.indexOf(' ');if(u===-1)return COM;var l=t.substring(0,u).toUpperCase(),d=t.substring(u).trim();return setTimeout(function(){var i=a?void 0:MAN.cacherest(l,d,e,void 0,r);if(void 0!==i){var s=o?STRINGIFY(i):null;return'string'==typeof n?MAN.remap(n,i):n(i,!0),o?(AJAX(t,e,function(t,i){i&&(t=i),s!==STRINGIFY(t)&&(MAN.cacherest(l,d,e,t,r),'string'==typeof n?MAN.remap(n,t):n(t,!1,!0))}),COM):COM}COM.AJAX(t,e,function(t,i){i&&(t=i),MAN.cacherest(l,d,e,t,r),'string'==typeof n?MAN.remap(n,t):n(t,!1)})},i||1),COM},COM.cachepath=function(t,e,n){var r='$jcpath';if(WATCH(t,function(n,i){var a=MAN.cachestorage(r);a?a[t]=i:(a={},a[t]=i),MAN.cachestorage(r,a,e)}),void 0===n||n){var i=MAN.cachestorage(r);i&&void 0!==i[t]&&i[t]!==GET(t)&&SET(t,i[t],!0)}return COM},COM.cache=function(t,e,n){return MAN.cachestorage(t,e,n)},COM.removeCache=function(t,e){if(e)for(var n in MAN.storage)n.indexOf(t)!==-1&&delete MAN.storage[t];else delete MAN.storage[t];return $jc_save(),COM},COM.REMOVECACHE=function(t,e,n){var r=t.indexOf(' ');r!==-1&&(n=e,e=t.substring(r).trim(),t=t.substring(0,r)),n=STRINGIFY(n);var i=HASH(t+'#'+e.replace(/\//g,'')+n).toString();return delete MAN.storage[i],$jc_save(),COM},COM.ready=function(t){return MAN.ready&&MAN.ready.push(t),COM},COM.watch=function(t,e,n){return'function'==typeof t&&(n=e,e=t,t='*'),ON('watch',t,e),n&&e.call(COM,t,MAN.get(t),0),COM},COM.on=function(t,e,n,r){'function'==typeof e?(n=e,e='watch'===t?'*':''):e=e.replace('.*','');var i=null;return 33===e.charCodeAt(0)&&(e=e.substring(1),i=e),MAN.events[e]?MAN.events[e][t]||(MAN.events[e][t]=[]):(MAN.events[e]={},MAN.events[e][t]=[]),MAN.events[e][t].push({fn:n,id:this._id,path:i}),r&&n.call(COM,e,MAN.get(e),!0),MAN.isReady&&('ready'===t||'init'===t)&&n(),COM},COM.$emit2=function(t,e,n){var r=MAN.events[e];if(!r)return!1;if(r=r[t],!r)return!1;for(var i=0,a=r.length;i<a;i++){var o=r[i];o.path&&o.path!==e||o.fn.apply(o.context,n)}return!0},COM.$emitwildcard=function(t,e,n){MAN.const_emit2[0]=t,MAN.const_emit2[1]=e,MAN.const_emit2[2]=n,COM.$emit2('watch','*',MAN.const_emit2)},COM.$emitonly=function(t,e,n,r){for(var i={},a=Object.keys(e),o=0,s=a.length;o<s;o++)for(var c=a[o].split('.'),u='',l=0,d=c.length;l<d;l++)u+=(u?'.':'')+c[l],i[u]=e[u];return COM.$emitwildcard(r,i[r],n),Object.keys(i).forEach(function(e){MAN.const_emit2[1]=i[e],COM.$emit2(t,e,MAN.const_emit2)}),this},COM.$emit=function(t,e){if(e){for(var n=e.split('.'),r=[],i='watch'===t,a=i?3:arguments.length,o=i?1:2;o<a;o++)r.push(arguments[o]);i&&r.push(arguments[3]),i&&(MAN.const_emit2[0]=e,MAN.const_emit2[1]=COM.get(e),MAN.const_emit2[2]=arguments[3],COM.$emit2(t,'*',MAN.const_emit2));for(var s='',o=0,a=n.length;o<a;o++){var c=n[o],u=n[o];if('*'!==c){if(']'===u.substring(u.length-1,u.length)){var l=u.lastIndexOf('[');u=u.substring(0,l)}s+=o?'.':'',r[1]=COM.get(s+c),COM.$emit2(t,s+c,r),c!==u&&COM.$emit2(t,s+u,r),s+=c}}return!0}},COM.emit=function(t){var e=MAN.events[''];if(!e)return!1;if(e=MAN.events[''][t],!e)return!1;for(var n=[],r=1,i=arguments.length;r<i;r++)n.push(arguments[r]);for(var r=0,i=e.length;r<i;r++){var a=e[r].context;(void 0===a||null!==a&&!a.$removed)&&e[r].fn.apply(a||window,n)}return!0},COM.change=function(t,e){return void 0===e?!COM.dirty(t):!COM.dirty(t,!e)},COM.used=function(t){return COM.each(function(t){t.used()},t,!0),COM},COM.valid=function(t,e,n){var r,i=e instanceof Array,a='valid'+t+(i?'>'+e.join('|'):'');if(i&&(r=e,e=void 0),'boolean'!=typeof e&&void 0!==MAN.cache[a])return MAN.cache[a];var o=!0,s=void 0!==e?[]:null;return COM.each(function(a,c,u){if(!i||r.indexOf(a.path)===-1){if(a.disabled||a.$valid_disabled)return void(s&&a.state&&s.push(a));if(void 0===e)return void(a.$valid===!1&&(o=!1));a.state&&s.push(a),n?n._id===a._id&&(a.$valid=e,a.$interaction(102)):(u||a.path===t)&&(a.$valid=e,a.$validate=!1,a.$interaction(102)),a.$valid===!1&&(o=!1)}},t,!0),MAN.clear('valid'),MAN.cache[a]=o,COM.state(s,1,1),o},COM.dirty=function(t,e,n,r){var i,a=e instanceof Array,o='dirty'+t+(a?'>'+e.join('|'):'');if(a&&(i=e,e=void 0),'boolean'!=typeof e&&void 0!==MAN.cache[o])return MAN.cache[o];var s=!0,c=void 0!==e?[]:null;return COM.each(function(r,o,u){if(!a||i.indexOf(r.path)===-1){if(r.disabled||r.$dirty_disabled)return void(c&&r.state&&c.push(r));if(void 0===e)return void(r.$dirty===!1&&(s=!1));r.state&&c.push(r),n?n._id===r._id&&(r.$dirty=e,r.$interaction(101)):(u||r.path===t)&&(r.$dirty=e,r.$interaction(101)),r.$dirty===!1&&(s=!1)}},t,!0),MAN.clear('dirty'),MAN.cache[o]=s,!r&&COM.state(c,1,2),s},COM.update=function(t,e,n){var r=33===t.charCodeAt(0);return r&&(t=t.substring(1)),t=t.replace(/\.\*/,''),$MIDDLEWARE(t,void 0,n,function(t){if(!t)return COM;var i=[],a=!1,o={},s=t;void 0===n&&(n=1);var c=s.split('.'),u=c.length,l=t.indexOf('[')!==-1;COM.each(function(r){if(r.path&&!r.disabled){for(var s=!0,d=0;d<u;d++){var f=r.$$path[d];if(!f)return;if(l){if(f.raw!==c[d])return}else{if(f.path&&f.path!==c[d])return;f.is&&(s=!1)}}if(!s||!r.$path||r.$path===t){var h=r.get();r.setter&&(r.$skip=!1,$MIDDLEWARE(r.middleware,h,n,function(e,i){r.setter(i,t,n)}),r.$interaction(n)),r.$ready=!0,e===!0?(r.$dirty_disabled||(r.$dirty=!0,r.$interaction(101)),r.$valid_disabled||(r.$valid=!0,r.$validate=!1,r.validate&&(r.$valid=r.validate(h),r.$interaction(102))),r.element.find(COMPATTR_B).each(function(){this.$value=this.$value2=void 0})):r.validate&&!r.$valid_disabled&&r.valid(r.validate(h),!0),r.state&&i.push(r),r.path===t&&(a=!0),o[r.path]=h}}},r?t:void 0,void 0,r),e&&MAN.clear('dirty','valid'),o[t]||(o[t]=COM.get(t));for(var d=0,f=i.length;d<f;d++)i[d].state(1,4);f=t.length,Object.keys(MAN.events).forEach(function(e){e!==t&&e.substring(0,f+1)!==t+'.'||(o[e]=COM.get(e))}),COM.$emitonly('watch',o,n,t)}),COM},COM.notify=function(){var t=arguments,e=arguments.length;return COM.each(function(n){if(n.path&&!n.disabled){for(var r=!1,i=0;i<e;i++)if(n.path===t[i]){r=!0;break}r&&(n.setter(n.get(),n.path,1),n.$interaction(1))}}),Object.keys(MAN.events).forEach(function(n){for(var r=!1,i=0;i<e;i++)if(n===t[i]){r=!0;break}r&&(MAN.const_notify[0]=n,MAN.const_notify[1]=COM.get(n),COM.$emit2('watch',n,MAN.const_notify))}),COM},COM.extend=function(t,e,n){var r=COM.get(t);return null==r&&(r={}),COM.set(t,$.extend(r,e),n),COM},COM.rewrite=function(t,e){return $MIDDLEWARE(t,e,1,function(t,e){MAN.set(t,e,1),COM.$emitwildcard(t,e,1)}),COM},COM.set=function(t,e,n){return $MIDDLEWARE(t,e,n,function(t,r){var i=33===t.charCodeAt(0);if(i&&(t=t.substring(1)),43===t.charCodeAt(0))return t=t.substring(1),COM.push(t,r,n);if(!t)return COM;var a='object'==typeof r&&!(r instanceof Array)&&null!==r&&void 0!==r,o=n===!0;if(o&&(n=1),MAN.set(t,r,n),a)return COM.update(t,o,n);var s=e!==r,c=MAN.get(t),u=[];void 0===n&&(n=1);var l=t.split('.'),d=l.length;COM.each(function(e){if(e.path&&!e.disabled){for(var r=0;r<d;r++){var i=e.$$path[r];if(i&&i.raw!==l[r])return}e.$path&&e.$path!==t||(e.path===t?e.setter&&(s&&(e.$skip=!1),$MIDDLEWARE(e.middleware,c,n,function(r,i){e.setter(i,t,n)}),e.$interaction(n)):e.setter&&(s&&(e.$skip=!1),$MIDDLEWARE(e.middleware,COM.get(e.path),n,function(r,i){e.setter(i,t,n)}),e.$interaction(n)),e.$ready=!0,e.state&&u.push(e),o?(e.$dirty_disabled||(e.$dirty=!0),e.$valid_disabled||(e.$valid=!0,e.$validate=!1,e.validate&&(e.$valid=e.validate(c),e.$interaction(102))),e.element.find(COMPATTR_B).each(function(){this.$value=this.$value2=void 0})):e.validate&&!e.$valid_disabled&&e.valid(e.validate(c),!0))}},t,!0,i),o&&MAN.clear('dirty','valid');for(var f=0,h=u.length;f<h;f++)u[f].state(n,5);COM.$emit('watch',t,void 0,n,i)}),COM},COM.push=function(t,e,n){var r=COM.get(t),i=!1;r instanceof Array||(r=[],i=!0);var a=!0;return e instanceof Array?e.length?r.push.apply(r,e):a=!1:r.push(e),i?COM.set(t,r,n):a&&COM.update(t,n),COM},COM.get=function(t,e){return MAN.get(t,e)},COM.remove=function(t){if(t instanceof jQuery){t.find(COMPATTR_C).attr(COMPATTR_R,'true').each(function(){var t=$(this).data(COMPATTR_C);t&&(t instanceof Array?t.forEach(function(t){t.$removed=!0}):t.$removed=!0)}),COMPATTR(t,'template')&&t.attr(COMPATTR_R,'true');var e=t.data(COMPATTR_C);return e&&(e instanceof Array?e.forEach(function(t){t.$removed=!0}):e.$removed=!0),clearTimeout(MAN.tic),MAN.tic=setTimeout(function(){MAN.cleaner()},100),COM}return MAN.clear(),COM.each(function(t){t.remove(!0)},t),clearTimeout(MAN.tic),MAN.tic=setTimeout(function(){MAN.cleaner()},100),COM},COM.schema=function(t,e){if(!e)return $.extend(!0,{},MAN.schemas[t]);if('object'==typeof e)return MAN.schemas[t]=e,e;if('function'==typeof e){var n=e();return MAN.schemas[t]=n,n}if('string'==typeof e){var r=e.substring(0,1),i=e.substring(e.length-1);if('"'===r&&'"'===i||'['===r&&']'===i||'{'===r&&'}'===i){var a=PARSE(e,COM.defaults.jsondate);return MAN.schemas[t]=a,a}}},COM.validate=function(t,e){var n=[],r=!0;return COM.each(function(t){t.disabled||e&&e.indexOf(t.path)!==-1||(t.state&&n.push(t),t.$valid_disabled||(t.$validate=!0,t.validate&&(t.$valid=t.validate(MAN.get(t.path)),t.$interaction(102),t.$valid||(r=!1))))},t),MAN.clear('valid'),COM.state(n,1,1),COM.$emit('validate',t),r},COM.errors=function(t,e){t instanceof Array&&(e=t,t=void 0);var n=[];return COM.each(function(t){e&&e.indexOf(t.path)!==-1||t.$valid!==!1||t.$valid_disabled||n.push(t)},t),n},COM.can=function(t,e){return!COM.dirty(t,e)&&COM.valid(t,e)},COM.disabled=COM.disable=function(t,e){return COM.dirty(t,e)||!COM.valid(t,e)},COM.invalid=function(t,e){return COM.dirty(t,!1,e,!0),COM.valid(t,!1,e),COM},COM.blocked=function(t,e,n){var r=t,i=MAN.cacheblocked[r],a=Date.now();if(i>a)return!0;var o=COM.defaults.localstorage&&e>1e4;MAN.cacheblocked[r]=a+e;try{o&&localStorage.setItem(COM.$localstorage+'.blocked',JSON.stringify(MAN.cacheblocked))}catch(t){}return n&&n(),!1},COM.state=function(t,e,n){if(t&&t.length)return setTimeout(function(){for(var r=0,i=t.length;r<i;r++)t[r].state(e,n)},2),COM},COM.broadcast=function(t,e,n){return BROADCAST(t,e,n)},COM.default=function(t,e,n,r){if(e>0)return setTimeout(function(){COM.default(t,0,n,r)},e),COM;'boolean'==typeof n&&(r=n,n=null),void 0===r&&(r=!0);var i,a=t.replace(/\.\*$/,''),o=MAN.defaults['#'+HASH(a)];o&&(i=o(),MAN.set(a,i),COM.$emitwildcard(a,i,3));var s=[];return COM.each(function(t){t.disabled||(t.state&&s.push(t),
  n&&n._id!==t._id||(t.$default&&t.path&&t.set(t.path,t.$default(),3),r&&(t.element.find(COMPATTR_B).each(function(){this.$value=this.$value2=void 0}),t.$dirty_disabled||(t.$dirty=!0),t.$valid_disabled||(t.$valid=!0,t.$validate=!1,t.validate&&(t.$valid=t.validate(t.get()),t.$interaction(102))))))},t),COM.$emit('default',t),r?(MAN.clear('valid','dirty'),COM.state(s,3,3),COM.$emit('reset',t),COM):COM},COM.reset=function(t,e,n){if(e>0)return setTimeout(function(){COM.reset(t)},e),COM;var r=[];return COM.each(function(t){t.disabled||(t.state&&r.push(t),n&&n._id!==t._id||(t.element.find(COMPATTR_B).each(function(){this.$value2=this.$value=void 0}),t.$dirty_disabled||(t.$dirty=!0,t.$interaction(101)),t.$valid_disabled||(t.$valid=!0,t.$validate=!1,t.validate&&(t.$valid=t.validate(t.get()),t.$interaction(102)))))},t),MAN.clear('valid','dirty'),COM.state(r,1,3),COM.$emit('reset',t),COM},COM.findByPath=function(t,e){var n=typeof t;'function'!==n&&'boolean'!==n||(e=t,t=void 0);var r,i=typeof e,a='function'===i,o='boolean'===i;return o&&(e=void 0,r=[]),COM.each(function(t){return a?e(t):o?void r.push(t):(r=t,!0)},t),a?COM:r},COM.findByName=function(t,e,n){return COM.findByProperty('name',t,e,n)},COM.findById=function(t,e,n){return COM.findByProperty('id',t,e,n)},COM.findByProperty=function(t,e,n,r){var i=typeof n;'function'!==i&&'boolean'!==i||(r=n,n=void 0);var a,o=typeof r,s='function'===o,c='boolean'===o;return c&&(r=void 0,a=[]),COM.each(function(n){if(n[t]===e)return s?r(n):c?void a.push(n):(a=n,!0)},n),s?COM:a},COM.each=function(t,e,n,r){var i=!!e&&e.lastIndexOf('*')!==-1;i&&(e=e.replace('.*',''));var a;a=e?e.split('.'):[];for(var o=0,s=!!e&&e.indexOf('[')!==-1,c=0,u=MAN.components.length;c<u;c++){var l=MAN.components[c];if(!(!l||l.$removed||r&&l.path!==e)){if(e){if(!l.path)continue;if(i){var d=$jc_compare(a,l.$$path,0,e,l.path,s);if(!d)continue}else if(e!==l.path){if(!n)continue;var d=$jc_compare(a,l.$$path,2,e,l.path||'',s);if(!d)continue}}var f=t(l,o++,i);if(f===!0)return COM}}return COM},COMUSAGE.prototype.compare=function(t,e){'string'==typeof e&&'-'!==e.substring(0,1)&&(e=DATETIME.add('-'+e));var n=this[t];return 0!==n&&n<e.getTime()},COMUSAGE.prototype.convert=function(t){var e=Date.now(),n={},r=1;switch(t.toLowerCase().substring(0,3)){case'min':case'mm':case'm':r=6e4;break;case'hou':case'hh':case'h':r=36e4;break;case'sec':case'ss':case's':r=1e3}return n.init=0===this.init?0:(e-this.init)/r>>0,n.manually=0===this.manually?0:(e-this.manually)/r>>0,n.input=0===this.input?0:(e-this.input)/r>>0,n.default=0===this.default?0:(e-this.default)/r>>0,n.custom=0===this.custom?0:(e-this.custom)/r>>0,n.dirty=0===this.dirty?0:(e-this.dirty)/r>>0,n.valid=0===this.valid?0:(e-this.valid)/r>>0,n},COMP.prototype.controller=function(){return CONTROLLER(this.$controller)},COMP.prototype.compile=function(t){return COM.compile(t||this.element),this},COMP.prototype.nested=function(){var t=[];return this.find(COMPATTR_C).each(function(){var e=$(this),n=e.data(COMPATTR_C);n&&!e.attr(COMPATTR_R)&&(n instanceof Array?t.push.apply(t,n):t.push(n))}),t},COMP.prototype.$interaction=function(t){var e=Date.now();switch(t){case 0:this.usage.init=e,this.$binded=!0;break;case 1:this.usage.manually=e,this.$binded=!0;break;case 2:this.usage.input=e,this.$binded=!0;break;case 3:this.usage.default=e,this.$binded=!0;break;case 100:this.usage.custom=e;break;case 101:this.usage.dirty=e;break;case 102:this.usage.valid=e}return this},COMP.prototype.update=COMP.prototype.refresh=function(t){var e=this;return t?e.set(e.get()):(e.setter&&e.setter(e.get(),e.path,1),e.$interaction(1)),e},COMP.prototype.classes=function(t){var e='cls.'+t,n=MAN.temp[e],r=this.element;if(n)return n.add&&r.addClass(n.add),n.rem&&r.removeClass(n.rem),this;for(var i=t instanceof Array?t:t.split(' '),a='',o='',s=0,c=i.length;s<c;s++){var u=i[s].substring(0,1);'-'===u?o+=(o?' ':'')+i[s].substring(1):a+=(a?' ':'')+('+'===u?i[s].substring(1):i[s])}return a&&r.addClass(a),o&&r.removeClass(o),t instanceof Array?this:(MAN.temp[e]={add:a,rem:o},this)},COMP.prototype.toggle=function(t,e,n){var r=!1;'string'!=typeof t&&(n=e,e=t,t='hidden',r=!0),'number'==typeof e?(n=e,e=void 0):r&&void 0!==e&&(e=!e);var i=this.element;return n?(setTimeout(function(){i.toggleClass(t,e)},n),this):(i.toggleClass(t,e),this)},COMP.prototype.noscope=function(t){return this.$noscope=void 0===t||t===!0,this},COMP.prototype.singleton=function(){var t=this;return MAN.initializers['$ST_'+t.name]=!0,t},COMP.prototype.blind=function(){var t=this;return t.path=null,t.$path=null,t.$$path=null,t},COMP.prototype.readonly=function(){return this.noDirty(),this.noValid(),this.getter=null,this.setter=null,this.$parser=null,this.$formatter=null,this},COMP.prototype.broadcast=function(t,e){return void 0===e?(e=t,t=this.dependencies,t&&t.length||(t=this)):'*'===t&&(t=this),BROADCAST(t,e,this)},COMP.prototype.noValid=COMP.prototype.noValidate=function(t){return void 0===t&&(t=!0),this.$valid_disabled=t,this.$valid=t,this},COMP.prototype.noDirty=function(t){return void 0===t&&(t=!0),this.$dirty_disabled=t,this.$dirty=!t,this},COMP.prototype.setPath=function(t,e){var n=null;33===t.charCodeAt(0)&&(t=t.substring(1),n=t);var r=t.indexOf(' #');r!==-1?(this.middleware=t.substring(r),t=t.substring(0,r)):this.middleware='',this.path=t,this.$path=n;for(var i=t.split('.'),a=[],o=0,s=i.length;o<s;o++){var c=i[o],u=c;r=c.indexOf('['),r!==-1&&(c=c.substring(0,r)),a.push({path:c,raw:u,is:r!==-1})}return this.$$path=a,!e&&MAN.isReady&&MAN.refresh(),this},COMP.prototype.attr=function(t,e){var n=this.element;return void 0===e?n.attr(t):(n.attr(t,e),this)},COMP.prototype.css=function(t,e){var n=this.element;return void 0===e?n.css(t):(n.css(t,e),this)},COMP.prototype.html=function(t){var e=this.element,n=e.html();if(void 0===t)return n;if(t instanceof Array&&(t=t.join('')),t===n)return e;var r=typeof t;return t||'number'===r||'boolean'===r?e.empty().append(t):e.empty()},COMP.prototype.empty=function(){var t=this.element;return t.empty(),t},COMP.prototype.append=function(t){var e=this.element;return t instanceof Array&&(t=t.join('')),t?e.append(t):e},COMP.prototype.event=function(){return this.element.on.apply(this.element,arguments),this},COMP.prototype.find=function(t){return this.element.find(t)},COMP.prototype.isInvalid=function(){var t=!this.$valid;return t&&!this.$validate&&(t=!this.$dirty),t},COMP.prototype.watch=function(t,e,n){var r=this;return'function'==typeof t&&(n=e,e=t,t=r.path),r.on('watch',t,e),n&&e.call(r,t,r.get(t),0),r},COMP.prototype.invalid=function(){return COM.invalid(this.path,this)},COMP.prototype.valid=function(t,e){return void 0===t?this.$valid:this.$valid_disabled?this:(this.$valid=t,this.$validate=!1,this.$interaction(102),MAN.clear('valid'),!e&&this.state&&this.state(1,1),this)},COMP.prototype.style=function(t){return STYLE(t),this},COMP.prototype.change=function(t){return COM.change(this.path,void 0===t||t,this),this},COMP.prototype.used=function(){return this.$interaction(100)},COMP.prototype.dirty=function(t,e){return void 0===t?this.$dirty:this.$dirty_disabled?this:(this.$dirty=t,this.$interaction(101),MAN.clear('dirty'),!e&&this.state&&this.state(2,2),this)},COMP.prototype.reset=function(){return COM.reset(this.path,0,this),this},COMP.prototype.setDefault=function(t){return this.$default=function(){return t},this},COMP.prototype.default=function(t){return COM.default(this.path,0,this,t),this},COMP.prototype.remove=function(t){return this.element.removeData(COMPATTR_C),this.element.find(COMPATTR_C).attr(COMPATTR_R,'true'),this.element.attr(COMPATTR_R,'true'),!t&&MAN.clear(),COM.$removed=!0,!!t||(clearTimeout(MAN.tic),MAN.tic=setTimeout(function(){MAN.cleaner()},100),!0)},COMP.prototype.on=function(t,e,n,r){'function'==typeof e?(r=n,n=e,e=''):e=e.replace('.*','');var i=null;return 33===e.charCodeAt(0)&&(e=e.substring(1),i=e),MAN.events[e]?MAN.events[e][t]||(MAN.events[e][t]=[]):(MAN.events[e]={},MAN.events[e][t]=[]),MAN.events[e][t].push({fn:n,context:this,id:this._id,path:i}),r&&n.call(COM,e,MAN.get(e)),this},COMP.prototype.formatter=function(t){if('function'==typeof t)return this.$formatter||(this.$formatter=[]),this.$formatter.push(t),this;var e=this.$formatter;if(e&&e.length)for(var n=0,r=e.length;n<r;n++)t=e[n].call(this,this.path,t,this.type);if(e=COM.$formatter,e&&e.length)for(var n=0,r=e.length;n<r;n++)t=e[n].call(this,this.path,t,this.type);return t},COMP.prototype.parser=function(t){if('function'==typeof t)return this.$parser||(this.$parser=[]),this.$parser.push(t),this;var e=this.$parser;if(e&&e.length)for(var n=0,r=e.length;n<r;n++)t=e[n].call(this,this.path,t,this.type);if(e=COM.$parser,e&&e.length)for(var n=0,r=e.length;n<r;n++)t=e[n].call(this,this.path,t,this.type);return t},COMP.prototype.emit=function(){return COM.emit.apply(COM,arguments),COM},COMP.prototype.evaluate=function(t,e,n){return e||(e=t,t=this.path),COM.evaluate(t,e,n)},COMP.prototype.get=function(t){if(t||(t=this.path),t)return MAN.get(t)},COMP.prototype.set=function(t,e,n){var r=this;return void 0===e&&(e=t,t=this.path),t&&COM.set(t,e,n),r},COMP.prototype.inc=function(t,e,n){var r=this;return void 0===e&&(e=t,t=this.path),t&&COM.inc(t,e,n),r},COMP.prototype.extend=function(t,e,n){var r=this;return void 0===e&&(e=t,t=this.path),t&&COM.extend(t,e,n),r},COMP.prototype.push=function(t,e,n){var r=this;return void 0===e&&(e=t,t=this.path),t&&COM.push(t,e,n,r),r},window.COMPONENT_EXTEND=function(t,e){MAN.extends[t]||(MAN.extends[t]=[]),MAN.extends[t].push(e),MAN.components.forEach(function(n){n.$removed&&t!==n.name||e.apply(n,n)})},window.COMPONENT=function(t,e){var n={},r=function(r){var i=new COMP(t);return i.global=n,i.element=r,i.setPath(COMPATTR(r,'path')||i._id,!0),e.call(i),i};MAN.register[t]&&window.console&&window.console.warn('jComponent: Overwriting component:',t),MAN.register[t]=r},MAN.cacherest=function(t,e,n,r,i){n&&!n.version&&COM.$version&&(n.version=COM.$version),n&&!n.language&&COM.$language&&(n.language=COM.$language),n=STRINGIFY(n);var a=HASH(t+'#'+e.replace(/\//g,'')+n).toString();return this.cachestorage(a,r,i)},MAN.cachestorage=function(t,e,n){var r=Date.now();if(void 0!==e)return'session'===n?(MAN.cache['$session'+t]=e,e):('string'==typeof n&&(n=n.parseExpire()),this.storage[t]={expire:r+n,value:e},$jc_save(),e);var i=MAN.cache['$session'+t];return i?i:(i=this.storage[t],i&&i.expire>r?i.value:void 0)},MAN.initialize=function(){var t=this.init.pop();return void 0===t?!MAN.isReady&&COM.compile():(!t.$removed&&this.prepare(t),this.initialize()),this},MAN.remap=function(t,e){return $MIDDLEWARE(t,e,1,function(t,e){var n=t.replace('-->','->').indexOf('->');if(n===-1)return COM.set(t,e);var r=t.substring(0,n).trim(),i=t.substring(n+2).trim();COM.set(i,e[r])}),this},MAN.importstyles=function(t,e){return t.replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,function(t){return t=t.replace('<style>','<style type="text/css">'),e&&(t=t.replace('<style','<style '+e)),$(t).appendTo('head'),''})},MAN.removescripts=function(t){return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>|<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,function(t){var e=t.indexOf('>'),n=t.substring(0,e+1);return'<style'===n.substring(0,6)||'<script>'===n||n.indexOf('/javascript"')!==-1?'':t})},MAN.prepare=function(t){if(!t)return this;var e,n=t.get(),r=t.element;MAN.extends[t.name]&&MAN.extends[t.name].forEach(function(e){e.call(t,t)}),t.setter&&(t.$prepared||(t.$prepared=!0,t.$ready=!0,e=COMPATTR(t,'value'),e&&(MAN.defaults[e]||(MAN.defaults[e]=new Function('return '+e)),t.$default=MAN.defaults[e],void 0===n&&(n=t.$default(),MAN.set(t.path,n),COM.$emitwildcard(t.path,n,0))),t.$binded?t.$interaction(0):(t.$binded=!0,$MIDDLEWARE(t.middleware,n,1,function(e,n){t.setter(n,t.path,0),t.$interaction(0)})))),t.validate&&!t.$valid_disabled&&(t.$valid=t.validate(t.get(),!0)),t.done&&setTimeout(function(){t.done()},20),t.state&&t.state(0,3),t.$init&&setTimeout(function(){if(MAN.isOperation(t.$init)){var e=OPERATION(t.$init);return e&&e.call(t,t),void(t.$init=void 0)}var n=COM.get(t.$init);'function'==typeof n&&n.call(t,t),t.$init=void 0},5),r.trigger('component'),r.off('component');var i=COMPATTR(r,'class');return i&&function(t){setTimeout(function(){t=t.split(' ');for(var e=0,n=t.length;e<n;e++)r.toggleClass(t[e])},5)}(i),t.id&&EMIT('#'+t.id,t),EMIT('@'+t.name,t),EMIT('component',t),this},MAN.next=function(){var t=this.pending.shift();return void 0===t?(this.isReady&&(this.isCompiling=!1),this):void t()},MAN.clear=function(){var t=this;if(!arguments.length)return t.cache={},t;for(var e=Object.keys(t.cache),n=0,r=e.length;n<r;n++){for(var i=e[n],a=!1,o=0;o<arguments.length;o++)if(i.substring(0,arguments[o].length)===arguments[o]){a=!0;break}a&&delete t.cache[i]}return t},MAN.isArray=function(t){var e=t.lastIndexOf('[');return e!==-1&&(t=t.substring(e+1,t.length-1).substring(0,1),!('"'===t||'\''===t))},MAN.isOperation=function(t){return 35===t.charCodeAt(0)},MAN.get=function(t,e){if(35===t.charCodeAt(0)){var n=OPERATION(t);return n?n:NOOP}var r='='+t,i=this;if(i.temp[r])return i.temp[r](e||window);if(t.indexOf('?')===-1){for(var a=t.split('.'),o=[],s='',c=0,u=a.length-1;c<u;c++){var l=a[c],d=l.lastIndexOf('[');d!==-1&&o.push('if(!w.'+(s?s+'.':'')+l.substring(0,d)+')return'),s+=(''!==s?'.':'')+a[c],o.push('if(!w.'+s+')return')}var f=new Function('w',o.join(';')+';return w.'+t.replace(/\'/,'\''));return i.temp[r]=f,f(e||window)}},MAN.set=function(t,e){if(35===t.charCodeAt(0)){var n=OPERATION(t);return n?n(e,t):window.console&&(!MAN.warning[t]&&window.console.warn('jComponent: The operation '+t+' not found.'),MAN.warning[t]=!0),i}var r='+'+t,i=this;if(i.cache[r])return i.cache[r](window,e,t);if(t.indexOf('?')!==-1)return t='',i;for(var a=t.split('.'),o=[],s='',c=0,u=a.length;c<u;c++){s+=(''!==s?'.':'')+a[c];var l=i.isArray(a[c])?'[]':'{}';{if(c===u-1){if('{}'===l)break;s=s.substring(0,s.lastIndexOf('[')),o.push('if(!(w.'+s+' instanceof Array))w.'+s+'='+l);break}o.push('if(typeof(w.'+s+')!=="object"||w.'+s+'===null)w.'+s+'='+l)}}var d=new Function('w','a','b',o.join(';')+';var v=typeof(a) === \'function\' ? a(MAN.get(b)) : a;w.'+t.replace(/\'/,'\'')+'=v;return v');return i.cache[r]=d,d(window,e,t),i},COM.inc=function(t,e,n){var r=COM.get(t);return r?'number'!=typeof r&&(r=parseFloat(r),isNaN(r)&&(r=0)):r=0,r+=e,COM.set(t,r,n),self},MAN.refresh=function(){var t=this;return setTimeout2('M$refresh',function(){t.components.sort(function(t,e){if(t.$removed||!t.path)return 1;if(e.$removed||!e.path)return-1;var n=t.path.length,r=e.path.length;return n>r?-1:n===r?t.path.localeCompare(e.path):1})},200),t},MAN.cleaner=function(){for(var t=this,e=Object.keys(t.events),n=!0,r=0,i=e.length;r<i;r++){var a=e[r];if(t.events[a])for(var o=Object.keys(t.events[a]),s=0,c=o.length;s<c;s++){var u=o[s],l=t.events[a][u];if(l)for(var d=0;;){var f=l[d++];if(void 0===f)break;null==f.context||f.context.element&&f.context.element.closest(document.documentElement).length||(f.context&&f.context.element&&f.context.element.remove(),f.context.$removed=!0,f.context=null,t.events[a][u].splice(d-1,1),t.events[a][u].length||(delete t.events[a][u],Object.keys(t.events[a]).length||delete t.events[a]),d-=2,n=!0)}}}for(var d=0,h=MAN.components.length;d<h;){var p=MAN.components[d++];p?p.$removed||(p.element&&p.element.closest(document.documentElement).length&&!p.attr(COMPATTR_R)?(p.$parser&&!p.$parser.length&&(p.$parser=void 0),p.$formatter&&!p.$formatter.length&&(p.$formatter=void 0)):(EMIT('destroy',p.name,p),p.destroy&&p.destroy(),p.element.off(),p.element.find('*').off(),p.element.remove(),p.element=null,p.$removed=!0,p.path=null,p.setter=null,p.getter=null,p.make=null,d--,MAN.components.splice(d,1),h=MAN.components.length,n=!0)):(d--,MAN.components.splice(d,1),h=MAN.components.length)}MAN.clear('find');var M=Date.now(),v=!1,m=!1;for(var g in t.cacheblocked)t.cacheblocked[g]>M||(delete t.cacheblocked[g],v=!0);if(COM.defaults.localstorage&&v)try{localStorage.setItem(COM.$localstorage+'.blocked',JSON.stringify(t.cacheblocked))}catch(t){}for(var g in t.storage){var f=t.storage[g];(!f.expire||f.expire<=M)&&(delete t.storage[g],m=!0)}return m&&$jc_save(),n&&t.refresh(),t},MAN.$$=function(){if(delete MAN.$load,COM.defaults.localstorage){var t;try{t=localStorage.getItem(COM.$localstorage+'.cache'),t&&'string'==typeof t&&(MAN.storage=PARSE(t))}catch(t){}try{t=localStorage.getItem(COM.$localstorage+'.blocked'),t&&'string'==typeof t&&(MAN.cacheblocked=PARSE(t))}catch(t){}}if(MAN.storage){var e=MAN.storage.$jcpath;e&&Object.keys(e.value).forEach(function(t){SET(t,e.value[t],!0)})}window.jQuery&&setTimeout(COM.compile,2)},COMPONENT('',function(){var t=this,e=t.element.get(0).tagName;if('INPUT'!==e&&'SELECT'!==e&&'TEXTAREA'!==e)t.readonly(),t.setter=function(e){e=t.formatter(e,!0),t.element.html(e)};else{var n='data-jc-bind';!t.element.attr(n)&&t.element.attr(n,'1'),t.element.attr('required')&&(t.validate=function(t,e){return!!e||!!t}),t.element.$component=t}}),window.REWRITE=COM.rewrite,window.SET=function(t,e,n,r){return'boolean'==typeof n?COM.set(t,e,n):!n||n<5?COM.set(t,e,n):(setTimeout(function(){COM.set(t,e,r)},n),COM)},window.INC=function(t,e,n,r){return'boolean'==typeof n?COM.inc(t,e,n):!n||n<5?COM.inc(t,e,n):(setTimeout(function(){COM.inc(t,e,r)},n),COM)},window.EXTEND=function(t,e,n,r){return'boolean'==typeof n?COM.extend(t,e,n):!n||n<5?COM.extend(t,e,n):(setTimeout(function(){COM.extend(t,e,r)},n),COM)},window.PUSH=function(t,e,n,r){return'boolean'==typeof n?COM.push(t,e,n):!n||n<5?COM.push(t,e,n):(setTimeout(function(){COM.push(t,e,r)},n),COM)},window.INVALID=COM.invalid,window.RESET=COM.reset,window.DEFAULT=function(t,e,n){return COM.default(t,e,null,n)},window.WATCH=function(t,e,n){return ON('watch',t,e,n)},window.PING=function(t,e,n){if(null==navigator.onLine||navigator.onLine){if('function'==typeof e){var r=n;n=e,e=r}var i=t.indexOf(' '),a='GET';i!==-1&&(a=t.substring(0,i).toUpperCase(),t=t.substring(i).trim());var o={},s=$jc_url(t);return o.type=a,o.headers={'X-Ping':location.pathname},o.success=function(t){'string'==typeof n?MAN.remap(n,t):n&&n(t)},o.error=function(e,r,i){r=r+': '+i,EMIT('error',i,r,t),'function'==typeof n&&n(void 0,r,t)},setInterval(function(){$.ajax(s,o)},e||3e4)}},window.AJAX=COM.AJAX,window.AJAXCACHE=COM.AJAXCACHE,window.AJAXCACHEREVIEW=COM.AJAXCACHEREVIEW,window.GET=COM.get,window.CACHE=COM.cache,window.CACHEPATH=COM.cachepath,window.NOTIFY=COM.notify,window.NOTMODIFIED=function(t,e,n){void 0===e&&(e=COM.get(t)),void 0===e&&(e=null),n&&(t=t.concat('#',n));var r=HASH(STRINGIFY(e,n)),i='notmodified.'+t;return MAN.cache[i]===r||(MAN.cache[i]=r,!1)},window.SCHEDULE=COM.schedule,window.FIND=function(t,e,n,r){var i=!1;if('function'==typeof e)i=!0,r=e,e=void 0;else if('function'==typeof n){var a=r;i=!0,r=n,n=a}if(i)return void WAIT(function(){var r=FIND(t,e,n);return r instanceof Array?r.length>0:!!r},function(n){if(!n){var i=FIND(t,e);r.call(i?i:window,i)}},500,n);var o,s;return!n&&(o='find.'+t+'.'+(e?0:1),s=MAN.cache[o])?s:46===t.charCodeAt(0)?(s=COM.findByPath(t.substring(1),e),n||(MAN.cache[o]=s),s):35===t.charCodeAt(0)?(s=COM.findById(t.substring(1),void 0,e),n||(MAN.cache[o]=s),s):(s=COM.findByName(t,void 0,e),n||(MAN.cache[o]=s),s)},window.BROADCAST=function(t,e,n){if('object'==typeof t){t=t.element?t.element:$(t);var r=[];return t.find(COMPATTR_C).each(function(){var t=$(this).data(COMPATTR_C);if(t)if(t instanceof Array)for(var n=0,i=t.length;n<i;n++)t[n]&&'function'==typeof t[n][e]&&r.push(t[n]);else t&&'function'==typeof t[e]&&r.push(t)}),$BROADCAST_EVAL(r,e,n)}var i='broadcast=';if('string'==typeof t){if(i+=t,MAN.cache[i])return $BROADCAST_EVAL(MAN.cache[i],e,n);t=t.split(',')}else if(i+=t.join(','),MAN.cache[i])return $BROADCAST_EVAL(MAN.cache[i],e,n);for(var r=[],a=0,o=t.length;a<o;a++){var s=t[a].trim(),c=FIND(s,!0,!0);c&&'function'==typeof c[e]&&r.push.apply(r,c)}return MAN.cache[i]=r,$BROADCAST_EVAL(r,e,n)},window.UPDATE=function(t,e,n){return'boolean'==typeof e?COM.update(t,e):e?void setTimeout(function(){COM.update(t,n)},e):COM.update(t,n)},window.CHANGE=COM.change,window.INJECT=window.IMPORT=COM.import,window.SCHEMA=function(t,e){return COM.schema(t,e)},window.OPERATION=function(t,e){return e?MAN.operations[t]=e:e=MAN.operations[35===t.charCodeAt(0)?t.substring(1):t],e},window.ON=function(t,e,n,r){return COM.on(t,e,n,r)},window.EMIT=COM.emit,window.EVALUATE=COM.evaluate,window.STYLE=function(t){clearTimeout(MAN.tis),MAN.styles.push(t instanceof Array?t.join('\n'):t),MAN.tis=setTimeout(function(){$('<style type="text/css">'+MAN.styles.join('')+'</style>').appendTo('head'),MAN.styles=[]},50)},window.BLOCKED=function(t,e,n){return COM.blocked(t,e,n)},window.HASH=function(t){if(!t)return 0;'string'!=typeof t&&(t=STRINGIFY(t));var e,n,r=0;if(!t.length)return r;var i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),r=(r<<5)-r+n,r|=0;return r},window.GUID=function(t){t||(t=10);for(var e=(t/24>>0)+1,n=[],r=0;r<e;r++)n.push(Math.random().toString(36).substring(2));return n.join('').substring(0,t)},window.KEYPRESS=function(t,e,n){e||(e=300);var r=t.toString(),i=r.length-20;i<0&&(i=0);var a=n?n:HASH(r.substring(0,20)+'X'+r.substring(i))+'_keypress';clearTimeout(MAN.waits[a]),MAN.waits[a]=setTimeout(t,e)},window.WAIT=function(t,e,n,r){var i=(1e4*Math.random()>>0).toString(16),a=r>0?i+'_timeout':0;if('number'==typeof e){var o=n;n=e,e=o}var s='string'==typeof t,c=!1;if(s){var u=MAN.get(t);u&&(c=!0)}else t()&&(c=!0);return c?(e(null,function(i){setTimeout(function(){WATCH(t,e,n,r)},i||1)}),COM):(a&&(MAN.waits[a]=setTimeout(function(){clearInterval(MAN.waits[i]),delete MAN.waits[a],delete MAN.waits[i],e(new Error('Timeout.'))},r)),MAN.waits[i]=setInterval(function(){if(s){var r=MAN.get(t);if(null==r)return}else if(!t())return;clearInterval(MAN.waits[i]),delete MAN.waits[i],a&&(clearTimeout(MAN.waits[a]),delete MAN.waits[a]),e&&e(null,function(r){setTimeout(function(){WATCH(t,e,n)},r||1)})},n||500),COM)},window.COMPILE=function(t){return COM.compile(t)},window.CONTROLLER=function(){var t=arguments[arguments.length-1];if('function'!=typeof t)return MAN.controllers[arguments[0]];var e={};return e.name=e.path=arguments[0],MAN.controllers[e.name]=e,e.get=function(t){return COM.get(e.path+(t?'.'+t:''))},e.set=function(t,n,r){return 1===arguments.length&&(n=t,t=void 0),COM.set(e.path+(t?'.'+t:''),n,r),e},e.destroy=function(){e.element.remove(),delete MAN.controllers[e.name],setTimeout(function(){MAN.cleaner()},500)},e.$init=function(n,r){return e.$init=void 0,n&&(e.path=n),e.element=r,t.call(e,e,n,r),e}},MAN.$load=setTimeout(MAN.$$,2),WAIT(function(){return!!window.jQuery},function(){setInterval(function(){MAN.temp={},MAN.cleaner()},3e5),MAN.sc=0,setInterval(function(){MAN.sc++;for(var t=new Date,e=0,n=MAN.schedulers.length;e<n;e++){var r=MAN.schedulers[e];if('m'===r.type){if(MAN.sc%30!==0)continue}else if('h'===r.type&&MAN.sc%900!==0)continue;var i=t.add(r.expire);FIND(r.selector,!0).forEach(function(t){t&&t.usage.compare(r.name,i)&&r.callback(t)})}},2e3),$.fn.component=function(){return this.data(COMPATTR_C)},$.fn.components=function(t){var e,n=this.find(COMPATTR_C);return n.each(function(n){var r=$(this).data(COMPATTR_C);if(r)if(r instanceof Array)r.forEach(function(r){if(r&&r.$ready&&!r.$removed){if(t)return t.call(r,n);e||(e=[]),e.push(r)}});else if(r&&r.$ready&&!r.$removed){if(t)return t.call(r,n);e||(e=[]),e.push(r)}}),t?n:e},$.components=window.COM||window.jC,$(document).ready(function(){MAN.$load&&(clearTimeout(MAN.$load),MAN.$$()),$(window).on('resize',$MEDIAQUERY),$(window).on('orientationchange',$MEDIAQUERY),$MEDIAQUERY(),$(document).on('input change keypress keydown blur',COMPATTR_B,function(t){var e=this;if('input'===t.type&&'range'!==e.type||'keypress'===t.type)return!('TEXTAREA'!==e.tagName&&13===t.keyCode);var n='checkbox'===e.type||'radio'===e.type||'range'===e.type;if(!('focusout'===t.type&&n||'change'===t.type&&!n&&'SELECT'!==e.tagName||!e.$component||e.$component.$removed)&&e.$component.getter){var r=t.keyCode;if((!(t.metaKey||9===r||r>15&&r<21||r>36&&r<41)||86===r||88===r)&&(8!==t.keyCode||e.value)){if(e.$skip&&'focusout'===t.type)return void $jc_keypress(e,e.$value,t);var i,a=e.$value;if(e.$value=null,'checkbox'===e.type||'radio'===e.type){if('keydown'===t.type)return;var i=e.checked;return e.$component.dirty(!1,!0),e.$component.getter(i,2),void(e.$component.$skip=!1)}if('SELECT'===e.tagName){if('keydown'===t.type||e.selectedIndex===-1)return;var o=e[e.selectedIndex];i=o.value;var s=!1;return e.$component.$dirty&&(s=!0),e.$component.dirty(!1,!0),e.$component.getter(i,2,s,a,'focusout'===t.type),void(e.$component.$skip=!1)}if(void 0===e.$delay&&(e.$delay=parseInt(COMPATTR(e,'keypress-delay')||'0')),void 0===e.$only&&(e.$only='true'===COMPATTR(e,'keypress-only')),(!e.$only||'focusout'!==t.type&&'change'!==t.type)&&('keydown'!==t.type||void 0!==t.keyCode&&9!==t.keyCode)){if(t.keyCode<41&&8!==t.keyCode&&32!==t.keyCode){if(13!==t.keyCode)return;if('TEXTAREA'!==t.tagName)return e.$value=e.value,clearTimeout2('M$timeout'),void $jc_keypress(e,a,t)}if(void 0===e.$nokeypress){var c=COMPATTR(e,'keypress');c?e.$nokeypress='false'===c:e.$nokeypress=COM.defaults.keypress===!1}var u=e.$delay;if(e.$nokeypress){if('keydown'===t.type||'focusout'===t.type)return;u||(u=1)}else u||(u=COM.defaults.delay);'focusout'===t.type&&(u=0),setTimeout2('M$timeout',function(){$jc_keypress(e,a,t)},u)}}}}),setTimeout(COM.compile,2)})},100),Array.prototype.waitFor=function(t,e){void 0===t.index&&(t.index=0);var n=t.index,r=this,i=r[t.index++];return i?(t.call(r,i,function(n){t.value=n,r.waitFor(t,e)},n),r):(e&&e(t.value),delete t.value,r)},Array.prototype.compare=function(t,e,n){for(var r=this,i=[],a=[],o=[],s=r.length,c=e.length,u=0;u<s;u++){for(var l=r[u],d=!1,f=0;f<c;f++){var h=e[f];if(h[t]===l[t]){STRINGIFY(l,n)!==STRINGIFY(h,n)&&i.push({oldIndex:u,newIndex:f,oldItem:l,newItem:h}),d=!0;break}}!d&&o.push({oldIndex:u,newIndex:f,oldItem:l,newItem:h})}for(var u=0;u<c;u++){for(var l=e[u],d=!0,f=0;f<s;f++){var h=r[f];if(h[t]===l[t]){d=!1;break}}d&&a.push({oldIndex:null,newIndex:u,oldItem:null,newItem:l})}var p=o.length/s*100,M=i.length/s*100;return{change:!!(a.length||o.length||i.length),redraw:p>60||M>60,append:a,remove:o,update:i}},Array.prototype.async=function(t,e){if('function'==typeof t){var n=e;e=t,t=n}t||(t={});var r=this,i=0,a=function(){var n=r[i++];return n?void n.call(t,a,i-1):e&&e.call(t)};return a(),this},Array.prototype.ticks=function(t,e){var n=this.length;if(n<t)return this;var r=Math.round(n/t),i=[],a=0,o=0;if(e)for(var s=0;s<n&&(o++%r===0&&(a++,i.push(this[s])),a!==t);s++);else{for(var s=n-1;s>-1&&(o++%r===0&&(a++,i.push(this[s])),a!==t);s--);i.reverse()}return i},Array.prototype.take=function(t){for(var e=[],n=this,r=n.length,i=0;i<r;i++)if(e.push(n[i]),e.length>=t)return e;return e},Array.prototype.skip=function(t){for(var e=[],n=this,r=n.length,i=0;i<r;i++)i>=t&&e.push(n[i]);return e},String.prototype.isJSONDate=function(){var t=this.length-1;return t>22&&t<30&&90===this.charCodeAt(t)&&84===this.charCodeAt(10)&&45===this.charCodeAt(4)&&58===this.charCodeAt(13)&&58===this.charCodeAt(16)},String.prototype.parseExpire=function(){var t=this.split(' '),e=parseInt(t[0]);if(isNaN(e))return 0;var n=36e5;switch(t[1].trim().replace(/\./g,'')){case'minutes':case'minute':case'min':case'mm':case'm':return 6e4*e;case'hours':case'hour':case'HH':case'hh':case'h':case'H':return n*e;case'seconds':case'second':case'sec':case'ss':case's':return 1e3*e;case'days':case'day':case'DD':case'dd':case'd':return 24*n*e;case'months':case'month':case'MM':case'M':return 24*n*28*e;case'weeks':case'week':case'W':case'w':return 24*n*7*e;case'years':case'year':case'yyyy':case'yy':case'y':return 24*n*365*e;default:return 0}},String.prototype.removeDiacritics=function(){for(var t='',e=0,n=this.length;e<n;e++){var r=this[e],i=r.charCodeAt(0),a=!1,o=DIACRITICS[i];void 0===o&&(i=r.toLowerCase().charCodeAt(0),o=DIACRITICS[i],a=!0),void 0!==o?(r=o,t+=a?r.toUpperCase():r):t+=r}return t},String.prototype.toSearch=function(){for(var t=this.replace(/[^a-zA-Zá-žÁ-Ž\d\s:]/g,'').trim().toLowerCase().removeDiacritics(),e=[],n='',r=0,i=t.length;r<i;r++){var a=t.substring(r,r+1);'y'===a&&(a='i'),a!==n&&(n=a,e.push(a))}return e.join('')},String.prototype.slug=function(t){t=t||60;for(var e=this.trim().toLowerCase().removeDiacritics(),n='',r=e.length,i=0;i<r;i++){var a=e.substring(i,i+1),o=e.charCodeAt(i);if(n.length>=t)break;o>31&&o<48?'-'!==n.substring(n.length-1,n.length)&&(n+='-'):o>47&&o<58?n+=a:o>94&&o<123&&(n+=a)}var s=n.length-1;return'-'===n[s]?n.substring(0,s):n},String.prototype.isEmail=function(){var t=this,e=/^[a-zA-Z0-9-_.+]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i;return!(t.length<=4)&&e.test(t)},String.prototype.isPhone=function(){var t=this,e=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im;return!(t.length<6)&&e.test(t)},String.prototype.isURL=function(){var t=this,e=/^(http|https):\/\/(?:(?:(?:[\w\.\-\+!$&'\(\)*\+,;=]|%[0-9a-f]{2})+:)*(?:[\w\.\-\+%!$&'\(\)*\+,;=]|%[0-9a-f]{2})+@)?(?:(?:[a-z0-9\-\.]|%[0-9a-f]{2})+|(?:\[(?:[0-9a-f]{0,4}:)*(?:[0-9a-f]{0,4})\]))(?::[0-9]+)?(?:[\/|\?](?:[\w#!:\.\?\+=&@!$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2})*)?$/i;return!(t.length<=7)&&e.test(t)},String.prototype.parseInt=function(t){var e=this.trim(),n=e.match(/(\-|\+)?[0-9]+/);return n?(n=+n[0],isNaN(n)?t||0:n):t||0},String.prototype.parseFloat=function(t){var e=this.trim(),n=e.match(/(\-|\+)?[0-9\.\,]+/);return n?(n=n[0],n.indexOf(',')!==-1&&(n=n.replace(',','.')),n=+n,isNaN(n)?t||0:n):t||0},Array.prototype.trim=function(){for(var t=this,e=[],n=0,r=t.length;n<r;n++)'string'==typeof t[n]&&(t[n]=t[n].trim()),t[n]&&e.push(t[n]);return e},Array.prototype.findIndex=function(t,e){for(var n=this,r='function'==typeof t,i=void 0!==e,a=0,o=n.length;a<o;a++)if(r){if(t.call(n,n[a],a))return a}else if(i){if(n[a][t]===e)return a}else if(n[a]===t)return a;return-1},Array.prototype.findItem=function(t,e){var n=this.findIndex(t,e);if(n!==-1)return this[n]},Array.prototype.remove=function(t,e){for(var n=this,r=[],i='function'==typeof t,a=void 0!==e,o=0,s=n.length;o<s;o++)i?!t.call(n,n[o],o)&&r.push(n[o]):a?n[o][t]!==e&&r.push(n[o]):n[o]!==t&&r.push(n[o]);return r},Date.prototype.parseDate=function(){return this},Date.prototype.add=function(t,e){if(void 0===e){var n=t.split(' ');t=n[1],e=parseInt(n[0])}var r=this,i=new Date(r.getTime());switch(t.substring(0,3)){case's':case'ss':case'sec':return i.setSeconds(i.getSeconds()+e),i;case'm':case'mm':case'min':return i.setMinutes(i.getMinutes()+e),i;case'h':case'hh':case'hou':return i.setHours(i.getHours()+e),i;case'd':case'dd':case'day':return i.setDate(i.getDate()+e),i;case'w':case'ww':case'wee':return i.setDate(i.getDate()+7*e),i;case'M':case'MM':case'mon':return i.setMonth(i.getMonth()+e),i;case'y':case'yy':case'yyy':case'yea':return i.setFullYear(i.getFullYear()+e),i}return i},Date.prototype.format=function(t){var e=this,n=!1;if(t&&33===t.charCodeAt(0)&&(n=!0,t=t.substring(1)),void 0===t||null===t||''===t)return e.getFullYear()+'-'+(e.getMonth()+1).toString().padLeft(2,'0')+'-'+e.getDate().toString().padLeft(2,'0')+'T'+e.getHours().toString().padLeft(2,'0')+':'+e.getMinutes().toString().padLeft(2,'0')+':'+e.getSeconds().toString().padLeft(2,'0')+'.'+e.getMilliseconds().padLeft(3,'0').toString()+'Z';var r=e.getHours();return n&&r>=12&&(r-=12),t.replace(/yyyy|yy|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|a|ww|w/g,function(t){switch(t){case'yyyy':return e.getFullYear();case'yy':return e.getYear().toString().substring(1);case'MM':return(e.getMonth()+1).toString().padLeft(2,'0');case'M':return e.getMonth()+1;case'dd':return e.getDate().toString().padLeft(2,'0');case'd':return e.getDate();case'HH':case'hh':return r.toString().padLeft(2,'0');case'H':case'h':return e.getHours();case'mm':return e.getMinutes().toString().padLeft(2,'0');case'm':return e.getMinutes();case'ss':return e.getSeconds().toString().padLeft(2,'0');case's':return e.getSeconds();case'w':case'ww':var n=new Date(+e);return n.setHours(0,0,0),
  n.setDate(n.getDate()+4-(n.getDay()||7)),n=Math.ceil(((n-new Date(n.getFullYear(),0,1))/864e5+1)/7),'ww'===key?n.toString().padLeft(2,'0'):n;case'a':return e.getHours()>=12?'PM':'AM'}})},Number.prototype.pluralize=function(t,e,n,r){var i=this,a='';return a=0==i?t||'':1==i?e||'':i>1&&i<5?n||'':r,a.indexOf('#')===-1?a:a.replace(/\#{1,}/g,function(t){return'##'===t?i.format():i.toString()})},Number.prototype.format=function(t,e,n){var r=this,i=r.toString(),a='',o='',s='-'===i.substring(0,1)?'-':'';s&&(i=i.substring(1));var c=i.indexOf('.');if('string'==typeof t){var u=e;e=t,t=u}void 0===e&&(e=' '),c!==-1&&(a=i.substring(c+1),i=i.substring(0,c)),c=-1;for(var l=i.length-1;l>=0;l--)c++,c>0&&c%3===0&&(o=e+o),o=i[l]+o;return(t||a.length)&&(a=a.length>t?a.substring(0,t||0):a.padRight(t||0,'0')),a.length&&void 0===n&&(n='.'===e?',':'.'),s+o+(a.length?n+a:'')},String.prototype.padLeft=function(t,e){var n=this.toString();return Array(Math.max(0,t-n.length+1)).join(e||' ')+n},String.prototype.padRight=function(t,e){var n=this.toString();return n+Array(Math.max(0,t-n.length+1)).join(e||' ')},Number.prototype.padLeft=function(t,e){return this.toString().padLeft(t,e||'0')},Number.prototype.padRight=function(t,e){return this.toString().padRight(t,e||'0')},Number.prototype.add=Number.prototype.inc=function(t,e){if(null==t)return this;if('number'==typeof t)return this+t;var n=t.charCodeAt(0),r=!1;(n<48||n>57)&&(r=!0,t=t.substring(1));var i,a=t.length,o=!1;if('%'===t[a-1]){if(t=t.substring(0,a-1),o=!0,r){var s=t.parseFloat();switch(n){case 42:i=this*(this/100*s);break;case 43:i=this+this/100*s;break;case 45:i=this-this/100*s;break;case 47:i=this/(this/100*s)}return void 0!==e?i.floor(e):i}return i=this/100*t.parseFloat(),void 0!==e?i.floor(e):i}switch(i=t.parseFloat(),n){case 42:i=this*i;break;case 43:i=this+i;break;case 45:i=this-i;break;case 47:i=this/i;break;case 47:i=this/i;break;default:i=this}return void 0!==e?i.floor(e):i},Number.prototype.floor=function(t){return Math.floor(this*Math.pow(10,t))/Math.pow(10,t)},String.prototype.format=function(){var t=arguments;return this.replace(/\{\d+\}/g,function(e){var n=t[+e.substring(1,e.length-1)];return null==n?'':n instanceof Array?n.join(''):n})},String.prototype.parseDate=function(){var t=this.trim();if(!t)return null;var e=t.charCodeAt(t.length-1);if(41===e)return new Date(t);if(90===e)return new Date(Date.parse(t));var n=t.indexOf(' ')===-1?t.split('T'):t.split(' '),r=n[0].indexOf(':'),i=n[0].length;if(r!==-1){var a=n[1];n[1]=n[0],n[0]=a}void 0===n[0]&&(n[0]='');for(var o=void 0===n[1]||0===n[1].length,s=0;s<i;s++){var c=n[0].charCodeAt(s);if(!(c>47&&c<58||45===c||46===c)&&o)return new Date(t)}void 0===n[1]&&(n[1]='00:00:00');var u=n[0].indexOf('-')===-1,l=(n[0]||'').split(u?'.':'-'),d=(n[1]||'').split(':'),f=[];if(l.length<4&&d.length<2)return new Date(t);r=(d[2]||'').indexOf('.'),r!==-1?(d[3]=d[2].substring(r+1),d[2]=d[2].substring(0,r)):d[3]='0',f.push(+l[u?2:0]),f.push(+l[1]),f.push(+l[u?0:2]),f.push(+d[0]),f.push(+d[1]),f.push(+d[2]),f.push(+d[3]);for(var h=new Date,s=0,i=f.length;s<i;s++){isNaN(f[s])&&(f[s]=0);var p=f[s];if(0===p)switch(s){case 0:p<=0&&(f[s]=h.getFullYear());break;case 1:p<=0&&(f[s]=h.getMonth()+1);break;case 2:p<=0&&(f[s]=h.getDate())}}return new Date(f[0],f[1]-1,f[2],f[3],f[4],f[5])},Array.prototype.last=function(t){var e=this[this.length-1];return void 0===e?t:e},Array.prototype.quicksort=function(t,e,n){var r=this.length;if(!r||1===r)return this;'boolean'==typeof t&&(e=t,t=void 0),void 0===n&&(n=3),void 0===e&&(e=!0);var i=this,a=0,o=t?i[0][t]:i[0];switch(typeof o){case'string':a=o.isJSONDate()?4:1;break;case'number':a=2;break;case'boolean':a=3;break;default:if(!(o instanceof Date))return i;a=4}return i.sort(function(r,i){var o=t?r[t]:r,s=t?i[t]:i;if(1===a)return o&&s?e?o.substring(0,n).removeDiacritics().localeCompare(s.substring(0,n).removeDiacritics()):s.substring(0,n).removeDiacritics().localeCompare(o.substring(0,n).removeDiacritics()):0;if(2===a)return o>s?e?1:-1:o<s?e?-1:1:0;if(3===a)return o===!0&&s===!1?e?1:-1:o===!1&&s===!0?e?-1:1:0;if(4===a){if(!o||!s)return 0;o.getTime||(o=new Date(o)),s.getTime||(s=new Date(s));var c=o.getTime(),u=s.getTime();return c>u?e?1:-1:c<u?e?-1:1:0}return 0}),i},Array.prototype.attr=function(t,e){if(2===arguments.length){if(null==e)return this}else void 0===e&&(e=t.toString());return this.push(t+'="'+e.toString().replace(/[<>&"]/g,function(t){switch(t){case'&':return'&amp;';case'<':return'&lt;';case'>':return'&gt;';case'"':return'&quot;'}return t})+'"'),this},Array.prototype.scalar=function(t,e,n){for(var r=n,i=!1,a='avg'===t||'average'===t,o='distinct'===t,s=0,c=this.length;s<c;s++){var u=e?this[s][e]:this[s];if('string'==typeof u&&(u=u.parseFloat()),u instanceof Date&&(i=!0,u=u.getTime()),o)r||(r=[]),r.indexOf(u)===-1&&r.push(u);else if('median'!==t)if('sum'===t||a)r?r+=u:r=u;else switch('range'!==t?r||(r=u):r||(r=new Array(2),r[0]=u,r[1]=u),t){case'range':r[0]=Math.min(r[0],u),r[1]=Math.max(r[1],u);break;case'min':r=Math.min(r,u);break;case'max':r=Math.max(r,u)}else r||(r=[]),r.push(u)}if(o)return r;if(a)return r/=this.length,i?new Date(r):r;if('median'===t){r.sort(function(t,e){return t-e});var l=Math.floor(r.length/2);r=r.length%2?r[l]:(r[l-1]+r[l])/2}if(i){if('number'==typeof r)return new Date(r);r[0]=new Date(r[0]),r[1]=new Date(r[1])}return r},window.WIDTH=function(t){t||(t=$(window));var e=t.width(),n=COM.defaults.devices;return e>=n.md.min&&e<=n.md.max?'md':e>=n.sm.min&&e<=n.sm.max?'sm':e>n.lg.min?'lg':e<=n.xs.max?'xs':''},window.WORKFLOW=function(t,e){if(!e){if(!MAN.workflows)return NOOP;var n=MAN.workflows[t];return n instanceof Array?function(){for(var t=0,e=n.length;t<e;t++)n[t].apply(this,arguments)}:NOOP}MAN.workflows||(MAN.workflows={});var n=MAN.workflows[t];n?n.push(e):MAN.workflows[t]=[e]},window.MEDIAQUERY=function(t,e,n){if('number'==typeof t)return MAN.mediaquery.remove('id',t),!0;'function'==typeof e&&(n=e,e=null),MAN.mediaquery||(MAN.mediaquery=[]),t=t.toLowerCase();var r;if(t.indexOf(',')!==-1){var i=[];return t.split(',').forEach(function(t){t=t.trim(),t&&i.push(window.MEDIAQUERY(t,e,n))}),i}var a=COM.defaults.devices;'md'===t?t='min-width:{0}px and max-width:{1}px'.format(a.md.min,a.md.max):'lg'===t?t='min-width:{0}px'.format(a.lg.min):'xs'===t?t='max-width:{0}px'.format(a.xs.max):'sm'===t&&(t='min-width:{0}px and max-width:{1}px'.format(a.sm.min,a.sm.max));var o=t.match(/(max-width|min-width|max-device-width|min-device-width|max-height|min-height|max-device-height|height|width):(\s)\d+(px|em|in)?/gi),s={},c=function(t){var e=parseInt(t.match(/\d+/),10);return t.match(/\d+(em)/)?16*e:t.match(/\d+(in)/)?.010416667*e>>0:e};if(o)for(var u=0,l=o.length;u<l;u++){var d=o[u],f=d.indexOf(':');switch(d.substring(0,f).toLowerCase().trim()){case'min-width':case'min-device-width':case'width':s.minW=c(d);break;case'max-width':case'max-device-width':case'width':s.maxW=c(d);break;case'min-height':case'min-device-height':case'height':s.minH=c(d);break;case'max-height':case'max-device-height':case'height':s.maxH=c(d)}}if(o=t.match(/orientation:(\s)(landscape|portrait)/gi))for(var u=0,l=o.length;u<l;u++){var d=o[u];d.toLowerCase().indexOf('portrait')!==-1?s.orientation='portrait':s.orientation='landscape'}return s.id=MAN.mcounter++,s.fn=n,s.type=r,e&&(s.element=e),MAN.mediaquery.push(s),s.id},window.UPLOAD=function(t,e,n,r,i,a){return COM.UPLOAD(t,e,n,r,i,a)},window.MIDDLEWARE=function(t,e,n,r){if(!(t instanceof Array))return void(MAN.middleware[t]=e);if('function'!=typeof n){var i=n;n=e,e=i}var a={};t.waitFor(function(t,n){var i=MAN.middleware[t];return i?void i.call(a,n,e,r):(!MAN.warning[t]&&window.console&&window.console.warn('jComponent: Middleware "'+t+'" not found.'),MAN.warning[t]=!0,void n())},function(t){n&&n.call(a,void 0!==t?t:e,r)})},window.FN=function(t){var e=t.indexOf('=>'),n=t.substring(0,e).trim(),r=t.substring(e+2).trim(),i=!1;n=n.replace(/\(|\)|\s/g,'').trim(),n&&(n=n.split(',')),123===r.charCodeAt(0)&&(i=!0,r=r.substring(1,r.length-1).trim());var a=(i?'':'return ')+r;switch(n.length){case 1:return new Function(n[0],a);case 2:return new Function(n[0],n[1],a);case 3:return new Function(n[0],n[1],n[2],a);case 4:return new Function(n[0],n[1],n[2],n[3],a);case 0:default:return new Function(a)}};window.SETTER=function(t,e){for(var n=window,r=[],i=t===!0?3:2,a=i;a<arguments.length;a++)r.push(arguments[a]);return 3===i?(t=e,e=arguments[2],FIND(t,function(t){'function'==typeof t[e]?t[e].apply(t,r):t[e]=r[0]})):FIND(t,!0).forEach(function(t){'function'==typeof t[e]?t[e].apply(t,r):t[e]=r[0]}),n.SETTER};window.EXEC=function(t){for(var e=window,n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=t.charCodeAt(0);if(35===i)return OPERATION(t).apply(e,n),EXEC;var a=t.indexOf('/');if(a!==-1){var o=CONTROLLER(t.substring(0,a)),s=t.substring(a+1);return o&&'function'==typeof o[s]&&o[s].apply(o,n),e.EXEC}var s=GET(t);return'function'==typeof s&&s.apply(e,n),e.EXEC},window.MAKE=function(t,e,n){switch(typeof t){case'function':e=t,t={};break;case'string':var r=t,i=!0;return t=GET(r),null==t&&(i=!1,t={}),e.call(t,t,r),!i||void 0!==n&&n!==!0?MAN.isReady?SET(r,t,!0):MAN.set(r,t):UPDATE(r,!0),t}return e.call(t,t,''),t},window.CLONE=function(t){return PARSE(JSON.stringify(t))},window.STRINGIFY=function(t,e){return void 0===e&&(e=COM.defaults.jsoncompress),JSON.stringify(t,function(t,n){if(e===!0){var r=typeof n;if('string'===r)return n=n.trim(),n?n:void 0;if(n===!1||null==n)return}return n})},window.PARSE=function(t,e){void 0===e&&(e=COM.defaults.jsondate);try{return JSON.parse(t,function(t,n){return'string'==typeof n&&e&&n.isJSONDate()?new Date(n):n})}catch(t){return null}},window.NOOP=function(){},window.DATETIME=new Date;