store-libs.js 569 KB

1234567891011121314151617181920
  1. !function(){!function(e){var t=this||(0,eval)("this"),i=t.document,n=t.navigator,s=t.jQuery,o=t.JSON;s||"undefined"==typeof jQuery||(s=jQuery),function(e){"function"==typeof define&&define.amd?define("knockout",["exports","require"],e):e("object"==typeof exports&&"object"==typeof module?module.exports||exports:t.ko={})}(function(r,a){function l(e,t){return(null===e||typeof e in f)&&e===t}function u(t,i){var n;return function(){n||(n=p.a.setTimeout(function(){n=e,t()},i))}}function h(e,t){var i;return function(){clearTimeout(i),i=p.a.setTimeout(e,t)}}function c(e,t){t&&"change"!==t?"beforeChange"===t?this.oc(e):this.bb(e,t):this.pc(e)}function d(e,t){null!==t&&t.s&&t.s()}function _(e,t){var i=this.pd,n=i[O];n.qa||(this.Pb&&this.kb[t]?(i.tc(t,e,this.kb[t]),this.kb[t]=null,--this.Pb):n.F[t]||i.tc(t,e,n.G?{da:e}:i.Zc(e)),e.Ka&&e.fd())}var p="undefined"!=typeof r?r:{};p.b=function(e,t){for(var i=e.split("."),n=p,s=0;s<i.length-1;s++)n=n[i[s]];n[i[i.length-1]]=t},p.J=function(e,t,i){e[t]=i},p.version="3.5.0",p.b("version",p.version),p.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},p.a=function(){function r(e,t){for(var i in e)h.call(e,i)&&t(i,e[i])}function a(e,t){if(t)for(var i in t)h.call(t,i)&&(e[i]=t[i]);return e}function l(e,t){return e.__proto__=t,e}function u(e,t,i,n){var s=e[t].match(m)||[];p.a.C(i.match(m),function(e){p.a.Oa(s,e,n)}),e[t]=s.join(" ")}var h=Object.prototype.hasOwnProperty,c={__proto__:[]}instanceof Array,d="function"==typeof Symbol,_={},f={};_[n&&/Firefox\/2/i.test(n.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],_.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),r(_,function(e,t){if(t.length)for(var i=0,n=t.length;i<n;i++)f[t[i]]=e});var E,T={propertychange:!0},g=i&&function(){for(var t=3,n=i.createElement("div"),s=n.getElementsByTagName("i");n.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->",s[0];);return 4<t?t:e}(),m=/\S+/g;return{Ic:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],C:function(e,t,i){for(var n=0,s=e.length;n<s;n++)t.call(i,e[n],n,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},Lb:function(t,i,n){for(var s=0,o=t.length;s<o;s++)if(i.call(n,t[s],s,t))return t[s];return e},hb:function(e,t){var i=p.a.A(e,t);0<i?e.splice(i,1):0===i&&e.shift()},vc:function(e){var t=[];return e&&p.a.C(e,function(e){0>p.a.A(t,e)&&t.push(e)}),t},Mb:function(e,t,i){var n=[];if(e)for(var s=0,o=e.length;s<o;s++)n.push(t.call(i,e[s],s));return n},fb:function(e,t,i){var n=[];if(e)for(var s=0,o=e.length;s<o;s++)t.call(i,e[s],s)&&n.push(e[s]);return n},gb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var i=0,n=t.length;i<n;i++)e.push(t[i]);return e},Oa:function(e,t,i){var n=p.a.A(p.a.$b(e),t);0>n?i&&e.push(t):i||e.splice(n,1)},Ba:c,extend:a,setPrototypeOf:l,zb:c?l:a,O:r,Ha:function(e,t,i){if(!e)return e;var n,s={};for(n in e)h.call(e,n)&&(s[n]=t.call(i,e[n],n,e));return s},Sb:function(e){for(;e.firstChild;)p.removeNode(e.firstChild)},Xb:function(e){e=p.a.la(e);for(var t=(e[0]&&e[0].ownerDocument||i).createElement("div"),n=0,s=e.length;n<s;n++)t.appendChild(p.na(e[n]));return t},Ca:function(e,t){for(var i=0,n=e.length,s=[];i<n;i++){var o=e[i].cloneNode(!0);s.push(t?p.na(o):o)}return s},ua:function(e,t){if(p.a.Sb(e),t)for(var i=0,n=t.length;i<n;i++)e.appendChild(t[i])},Wc:function(e,t){var i=e.nodeType?[e]:e;if(0<i.length){for(var n=i[0],s=n.parentNode,o=0,r=t.length;o<r;o++)s.insertBefore(t[o],n);for(o=0,r=i.length;o<r;o++)p.removeNode(i[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var i=e[0],n=e[e.length-1];for(e.length=0;i!==n;)e.push(i),i=i.nextSibling;e.push(n)}}return e},Yc:function(e,t){7>g?e.setAttribute("selected",t):e.selected=t},Cb:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Td:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},ud:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Rb:function(e){return p.a.ud(e,e.ownerDocument.documentElement)},jd:function(e){return!!p.a.Lb(e,p.a.Rb)},P:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},zc:function(e){return p.onError?function(){try{return e.apply(this,arguments)}catch(e){throw p.onError&&p.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(p.a.zc(e),t)},Fc:function(e){setTimeout(function(){throw p.onError&&p.onError(e),e},0)},H:function(e,t,i){var n=p.a.zc(i);if(i=T[t],p.options.useOnlyNativeEvents||i||!s)if(i||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var o=function(t){n.call(e,t)},r="on"+t;e.attachEvent(r,o),p.a.I.za(e,function(){e.detachEvent(r,o)})}else e.addEventListener(t,n,!1);else E||(E="function"==typeof s(e).on?"on":"bind"),s(e)[E](t,n)},Fb:function(e,n){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var o;if("input"===p.a.P(e)&&e.type&&"click"==n.toLowerCase()?(o=e.type,o="checkbox"==o||"radio"==o):o=!1,p.options.useOnlyNativeEvents||!s||o)if("function"==typeof i.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");o=i.createEvent(f[n]||"HTMLEvents"),o.initEvent(n,!0,!0,t,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(o)}else if(o&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+n)}else s(e).trigger(n)},c:function(e){return p.N(e)?e():e},$b:function(e){return p.N(e)?e.w():e},Eb:function(e,t,i){var n;t&&("object"==typeof e.classList?(n=e.classList[i?"add":"remove"],p.a.C(t.match(m),function(t){n.call(e.classList,t)})):"string"==typeof e.className.baseVal?u(e.className,"baseVal",t,i):u(e,"className",t,i))},Ab:function(t,i){var n=p.a.c(i);null!==n&&n!==e||(n="");var s=p.h.firstChild(t);!s||3!=s.nodeType||p.h.nextSibling(s)?p.h.ua(t,[t.ownerDocument.createTextNode(n)]):s.data=n,p.a.zd(t)},Xc:function(e,t){if(e.name=t,7>=g)try{var n=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(i.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},zd:function(e){9<=g&&(e=1==e.nodeType?e:e.parentNode,e.style&&(e.style.zoom=e.style.zoom))},vd:function(e){if(g){var t=e.style.width;e.style.width=0,e.style.width=t}},Od:function(e,t){e=p.a.c(e),t=p.a.c(t);for(var i=[],n=e;n<=t;n++)i.push(n);return i},la:function(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t},Da:function(e){return d?Symbol(e):e},Xd:6===g,Yd:7===g,W:g,Kc:function(e,t){for(var i=p.a.la(e.getElementsByTagName("input")).concat(p.a.la(e.getElementsByTagName("textarea"))),n="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},s=[],o=i.length-1;0<=o;o--)n(i[o])&&s.push(i[o]);return s},Md:function(e){return"string"==typeof e&&(e=p.a.Cb(e))?o&&o.parse?o.parse(e):new Function("return "+e)():null},fc:function(e,t,i){if(!o||!o.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return o.stringify(p.a.c(e),t,i)},Nd:function(e,t,n){n=n||{};var s=n.params||{},o=n.includeFields||this.Ic,a=e;if("object"==typeof e&&"form"===p.a.P(e))for(var a=e.action,l=o.length-1;0<=l;l--)for(var u=p.a.Kc(e,o[l]),h=u.length-1;0<=h;h--)s[u[h].name]=u[h].value;t=p.a.c(t);var c=i.createElement("form");c.style.display="none",c.action=a,c.method="post";for(var d in t)e=i.createElement("input"),e.type="hidden",e.name=d,e.value=p.a.fc(p.a.c(t[d])),c.appendChild(e);r(s,function(e,t){var n=i.createElement("input");n.type="hidden",n.name=e,n.value=t,c.appendChild(n)}),i.body.appendChild(c),n.submitter?n.submitter(c):c.submit(),setTimeout(function(){c.parentNode.removeChild(c)},0)}}}(),p.b("utils",p.a),p.b("utils.arrayForEach",p.a.C),p.b("utils.arrayFirst",p.a.Lb),p.b("utils.arrayFilter",p.a.fb),p.b("utils.arrayGetDistinctValues",p.a.vc),p.b("utils.arrayIndexOf",p.a.A),p.b("utils.arrayMap",p.a.Mb),p.b("utils.arrayPushAll",p.a.gb),p.b("utils.arrayRemoveItem",p.a.hb),p.b("utils.cloneNodes",p.a.Ca),p.b("utils.createSymbolOrString",p.a.Da),p.b("utils.extend",p.a.extend),p.b("utils.fieldsIncludedWithJsonPost",p.a.Ic),p.b("utils.getFormFields",p.a.Kc),p.b("utils.objectMap",p.a.Ha),p.b("utils.peekObservable",p.a.$b),p.b("utils.postJson",p.a.Nd),p.b("utils.parseJson",p.a.Md),p.b("utils.registerEventHandler",p.a.H),p.b("utils.stringifyJson",p.a.fc),p.b("utils.range",p.a.Od),p.b("utils.toggleDomNodeCssClass",p.a.Eb),p.b("utils.triggerEvent",p.a.Fb),p.b("utils.unwrapObservable",p.a.c),p.b("utils.objectForEach",p.a.O),p.b("utils.addOrRemoveItem",p.a.Oa),p.b("utils.setTextContent",p.a.Ab),p.b("unwrap",p.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var i=Array.prototype.slice.call(arguments,1);return function(){var n=i.slice(0);return n.push.apply(n,arguments),t.apply(e,n)}}),p.a.g=new function(){var t,i,n=0,s="__ko__"+(new Date).getTime(),o={};return p.a.W?(t=function(t,i){var r=t[s];if(!r||"null"===r||!o[r]){if(!i)return e;r=t[s]="ko"+n++,o[r]={}}return o[r]},i=function(e){var t=e[s];return!!t&&(delete o[t],e[s]=null,!0)}):(t=function(e,t){var i=e[s];return!i&&t&&(i=e[s]={}),i},i=function(e){return!!e[s]&&(delete e[s],!0)}),{get:function(e,i){var n=t(e,!1);return n&&n[i]},set:function(i,n,s){(i=t(i,s!==e))&&(i[n]=s)},Tb:function(e,i,n){return e=t(e,!0),e[i]||(e[i]=n)},clear:i,Z:function(){return n++ +s}}},p.b("utils.domData",p.a.g),p.b("utils.domData.clear",p.a.g.clear),p.a.I=new function(){function t(t,i){var n=p.a.g.get(t,o);return n===e&&i&&(n=[],p.a.g.set(t,o,n)),n}function i(e){var i=t(e,!1);if(i)for(var i=i.slice(0),s=0;s<i.length;s++)i[s](e);p.a.g.clear(e),p.a.I.cleanExternalData(e),a[e.nodeType]&&n(e.childNodes,!0)}function n(e,t){for(var n,s=[],o=0;o<e.length;o++)if((!t||8===e[o].nodeType)&&(i(s[s.length]=n=e[o]),e[o]!==n))for(;o--&&-1==p.a.A(s,e[o]););}var o=p.a.g.Z(),r={1:!0,8:!0,9:!0},a={1:!0,9:!0};return{za:function(e,i){if("function"!=typeof i)throw Error("Callback must be a function");t(e,!0).push(i)},xb:function(i,n){var s=t(i,!1);s&&(p.a.hb(s,n),0==s.length&&p.a.g.set(i,o,e))},na:function(e){return r[e.nodeType]&&(i(e),a[e.nodeType]&&n(e.getElementsByTagName("*"))),e},removeNode:function(e){p.na(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){s&&"function"==typeof s.cleanData&&s.cleanData([e])}}},p.na=p.a.I.na,p.removeNode=p.a.I.removeNode,p.b("cleanNode",p.na),p.b("removeNode",p.removeNode),p.b("utils.domNodeDisposal",p.a.I),p.b("utils.domNodeDisposal.addDisposeCallback",p.a.I.za),p.b("utils.domNodeDisposal.removeDisposeCallback",p.a.I.xb),function(){var n=[0,"",""],o=[1,"<table>","</table>"],r=[3,"<table><tbody><tr>","</tr></tbody></table>"],a=[1,"<select multiple='multiple'>","</select>"],l={thead:o,tbody:o,tfoot:o,tr:[2,"<table><tbody>","</tbody></table>"],td:r,th:r,option:a,optgroup:a},u=8>=p.a.W;p.a.ta=function(e,o){var r;if(s){if(s.parseHTML)r=s.parseHTML(e,o)||[];else if((r=s.clean([e],o))&&r[0]){for(var a=r[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(r=o)||(r=i);var h,a=r.parentWindow||r.defaultView||t,c=p.a.Cb(e).toLowerCase(),d=r.createElement("div");for(h=(c=c.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&l[c[1]]||n,c=h[0],h="ignored<div>"+h[1]+e+h[2]+"</div>","function"==typeof a.innerShiv?d.appendChild(a.innerShiv(h)):(u&&r.body.appendChild(d),d.innerHTML=h,u&&d.parentNode.removeChild(d));c--;)d=d.lastChild;r=p.a.la(d.lastChild.childNodes)}return r},p.a.Ld=function(e,t){var i=p.a.ta(e,t);return i.length&&i[0].parentElement||p.a.Xb(i)},p.a.dc=function(t,i){if(p.a.Sb(t),i=p.a.c(i),null!==i&&i!==e)if("string"!=typeof i&&(i=i.toString()),s)s(t).html(i);else for(var n=p.a.ta(i,t.ownerDocument),o=0;o<n.length;o++)t.appendChild(n[o])}}(),p.b("utils.parseHtmlFragment",p.a.ta),p.b("utils.setHtml",p.a.dc),p.aa=function(){function t(e,i){if(e)if(8==e.nodeType){var n=p.aa.Tc(e.nodeValue);null!=n&&i.push({sd:e,Jd:n})}else if(1==e.nodeType)for(var n=0,s=e.childNodes,o=s.length;n<o;n++)t(s[n],i)}var i={};return{Wb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return i[t]=e,"<!--[ko_memo:"+t+"]-->"},ad:function(t,n){var s=i[t];if(s===e)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return s.apply(null,n||[]),!0}finally{delete i[t]}},bd:function(e,i){var n=[];t(e,n);for(var s=0,o=n.length;s<o;s++){var r=n[s].sd,a=[r];i&&p.a.gb(a,i),p.aa.ad(n[s].Jd,a),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)}},Tc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),p.b("memoization",p.aa),p.b("memoization.memoize",p.aa.Wb),p.b("memoization.unmemoize",p.aa.ad),p.b("memoization.parseMemoText",p.aa.Tc),p.b("memoization.unmemoizeDomNodeAndDescendants",p.aa.bd),p.ma=function(){function e(){if(r)for(var e,t=r,i=0;l<r;)if(e=o[l++]){if(l>t){if(5e3<=++i){l=r,p.a.Fc(Error("'Too much recursion' after processing "+i+" task groups."));break}t=r}try{e()}catch(e){p.a.Fc(e)}}}function n(){e(),l=r=o.length=0}var s,o=[],r=0,a=1,l=0;return s=t.MutationObserver?function(e){var t=i.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(n):i&&"onreadystatechange"in i.createElement("script")?function(e){var t=i.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,i.documentElement.removeChild(t),t=null,e()},i.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:s,yb:function(e){return r||p.ma.scheduler(n),o[r++]=e,a++},cancel:function(e){e-=a-r,e>=l&&e<r&&(o[e]=null)},resetForTesting:function(){var e=r-l;return l=r=o.length=0,e},Rd:e}}(),p.b("tasks",p.ma),p.b("tasks.schedule",p.ma.yb),p.b("tasks.runEarly",p.ma.Rd),p.Ta={throttle:function(e,t){e.throttleEvaluation=t;var i=null;return p.$({read:e,write:function(n){clearTimeout(i),i=p.a.setTimeout(function(){e(n)},t)}})},rateLimit:function(e,t){var i,n,s;"number"==typeof t?i=t:(i=t.timeout,n=t.method),e.Hb=!1,s="function"==typeof n?n:"notifyWhenChangesStop"==n?h:u,e.tb(function(e){return s(e,i,t)})},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.Hb||(t.Hb=!0,t.tb(function(i){var n,s=!1;return function(){if(!s){p.ma.cancel(n),n=p.ma.yb(i);try{s=!0,t.notifySubscribers(e,"dirty")}finally{s=!1}}}}))},notify:function(e,t){e.equalityComparer="always"==t?null:l}};var f={undefined:1,boolean:1,number:1,string:1};p.b("extenders",p.Ta),p.gc=function(e,t,i){this.da=e,this.kc=t,this.lc=i,this.Ib=!1,this.ab=this.Jb=null,p.J(this,"dispose",this.s),p.J(this,"disposeWhenNodeIsRemoved",this.l)},p.gc.prototype.s=function(){this.Ib||(this.ab&&p.a.I.xb(this.Jb,this.ab),this.Ib=!0,this.lc(),this.da=this.kc=this.lc=this.Jb=this.ab=null)},p.gc.prototype.l=function(e){this.Jb=e,p.a.I.za(e,this.ab=this.s.bind(this))},p.R=function(){p.a.zb(this,E),E.ob(this)};var E={ob:function(e){e.S={change:[]},e.rc=1},subscribe:function(e,t,i){var n=this;i=i||"change";var s=new p.gc(n,t?e.bind(t):e,function(){p.a.hb(n.S[i],s),n.cb&&n.cb(i)});return n.Qa&&n.Qa(i),n.S[i]||(n.S[i]=[]),n.S[i].push(s),s},notifySubscribers:function(e,t){if(t=t||"change","change"===t&&this.Gb(),this.Wa(t)){var i="change"===t&&this.dd||this.S[t].slice(0);try{p.v.wc();for(var n,s=0;n=i[s];++s)n.Ib||n.kc(e)}finally{p.v.end()}}},mb:function(){return this.rc},Cd:function(e){return this.mb()!==e},Gb:function(){++this.rc},tb:function(e){var t,i,n,s,o,r=this,a=p.N(r);r.bb||(r.bb=r.notifySubscribers,r.notifySubscribers=c);var l=e(function(){r.Ka=!1,a&&s===r&&(s=r.mc?r.mc():r());var e=i||o&&r.qb(n,s);o=i=t=!1,e&&r.bb(n=s)});r.pc=function(e,i){i&&r.Ka||(o=!i),r.dd=r.S.change.slice(0),r.Ka=t=!0,s=e,l()},r.oc=function(e){t||(n=e,r.bb(e,"beforeChange"))},r.qc=function(){o=!0},r.fd=function(){r.qb(n,r.w(!0))&&(i=!0)}},Wa:function(e){return this.S[e]&&this.S[e].length},Ad:function(e){if(e)return this.S[e]&&this.S[e].length||0;var t=0;return p.a.O(this.S,function(e,i){"dirty"!==e&&(t+=i.length)}),t},qb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&p.a.O(e,function(e,i){var n=p.Ta[e];"function"==typeof n&&(t=n(t,i)||t)}),t}};p.J(E,"init",E.ob),p.J(E,"subscribe",E.subscribe),p.J(E,"extend",E.extend),p.J(E,"getSubscriptionsCount",E.Ad),p.a.Ba&&p.a.setPrototypeOf(E,Function.prototype),p.R.fn=E,p.Pc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},p.b("subscribable",p.R),p.b("isSubscribable",p.Pc),p.U=p.v=function(){function e(e){n.push(i),i=e}function t(){i=n.pop()}var i,n=[],s=0;return{wc:e,end:t,ac:function(e){if(i){if(!p.Pc(e))throw Error("Only subscribable things can act as dependencies");i.nd.call(i.od,e,e.ed||(e.ed=++s))}},K:function(i,n,s){try{return e(),i.apply(n,s||[])}finally{t()}},pa:function(){if(i)return i.o.pa()},Va:function(){if(i)return i.o.Va()},rb:function(){if(i)return i.rb},o:function(){if(i)return i.o}}}(),p.b("computedContext",p.U),p.b("computedContext.getDependenciesCount",p.U.pa),p.b("computedContext.getDependencies",p.U.Va),p.b("computedContext.isInitial",p.U.rb),p.b("computedContext.registerDependency",p.U.ac),p.b("ignoreDependencies",p.Wd=p.v.K);var T=p.a.Da("_latestValue");p.sa=function(e){function t(){return 0<arguments.length?(t.qb(t[T],arguments[0])&&(t.xa(),t[T]=arguments[0],t.wa()),this):(p.v.ac(t),t[T])}return t[T]=e,p.a.Ba||p.a.extend(t,p.R.fn),p.R.fn.ob(t),p.a.zb(t,g),p.options.deferUpdates&&p.Ta.deferred(t,!0),t};var g={equalityComparer:l,w:function(){return this[T]},wa:function(){this.notifySubscribers(this[T],"spectate"),this.notifySubscribers(this[T])},xa:function(){this.notifySubscribers(this[T],"beforeChange")}};p.a.Ba&&p.a.setPrototypeOf(g,p.R.fn);var m=p.sa.Na="__ko_proto__";g[m]=p.sa,p.N=function(e){if((e="function"==typeof e&&e[m])&&e!==g[m]&&e!==p.o.fn[m])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},p.Ya=function(e){return"function"==typeof e&&(e[m]===g[m]||e[m]===p.o.fn[m]&&e.Mc)},p.b("observable",p.sa),p.b("isObservable",p.N),p.b("isWriteableObservable",p.Ya),p.b("isWritableObservable",p.Ya),p.b("observable.fn",g),p.J(g,"peek",g.w),p.J(g,"valueHasMutated",g.wa),p.J(g,"valueWillMutate",g.xa),p.Ia=function(e){if(e=e||[],"object"!=typeof e||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=p.sa(e),p.a.zb(e,p.Ia.fn),e.extend({trackArrayChanges:!0})},p.Ia.fn={remove:function(e){for(var t=this.w(),i=[],n="function"!=typeof e||p.N(e)?function(t){return t===e}:e,s=0;s<t.length;s++){var o=t[s];if(n(o)){if(0===i.length&&this.xa(),t[s]!==o)throw Error("Array modified during remove; cannot remove item");i.push(o),t.splice(s,1),s--}}return i.length&&this.wa(),i},removeAll:function(t){if(t===e){var i=this.w(),n=i.slice(0);return this.xa(),i.splice(0,i.length),this.wa(),n}return t?this.remove(function(e){return 0<=p.a.A(t,e)}):[]},destroy:function(e){var t=this.w(),i="function"!=typeof e||p.N(e)?function(t){return t===e}:e;this.xa();for(var n=t.length-1;0<=n;n--){var s=t[n];i(s)&&(s._destroy=!0)}this.wa()},destroyAll:function(t){return t===e?this.destroy(function(){return!0}):t?this.destroy(function(e){return 0<=p.a.A(t,e)}):[]},indexOf:function(e){var t=this();return p.a.A(t,e)},replace:function(e,t){var i=this.indexOf(e);0<=i&&(this.xa(),this.w()[i]=t,this.wa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},p.a.Ba&&p.a.setPrototypeOf(p.Ia.fn,p.sa.fn),p.a.C("pop push reverse shift sort splice unshift".split(" "),function(e){p.Ia.fn[e]=function(){var t=this.w();this.xa(),this.yc(t,e,arguments);var i=t[e].apply(t,arguments);return this.wa(),i===t?this:i}}),p.a.C(["slice"],function(e){p.Ia.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),p.Oc=function(e){return p.N(e)&&"function"==typeof e.remove&&"function"==typeof e.push},p.b("observableArray",p.Ia),p.b("isObservableArray",p.Oc),p.Ta.trackArrayChanges=function(t,i){function n(){function e(){if(u){var e=[].concat(t.w()||[]);if(t.Wa("arrayChange")){var i;(!l||1<u)&&(l=p.a.Ob(o,e,t.Nb)),i=l}o=e,l=null,u=0,i&&i.length&&t.notifySubscribers(i,"arrayChange")}}a?e():(a=!0,r=t.notifySubscribers,t.notifySubscribers=function(e,t){return t&&"change"!==t||++u,r.apply(this,arguments)},o=[].concat(t.w()||[]),l=null,s=t.subscribe(e))}if(t.Nb={},i&&"object"==typeof i&&p.a.extend(t.Nb,i),t.Nb.sparse=!0,!t.yc){var s,o,r,a=!1,l=null,u=0,h=t.Qa,c=t.cb;t.Qa=function(e){h&&h.call(t,e),"arrayChange"===e&&n()},t.cb=function(i){c&&c.call(t,i),"arrayChange"!==i||t.Wa("arrayChange")||(r&&(t.notifySubscribers=r,r=e),s&&s.s(),s=null,a=!1,o=e)},t.yc=function(e,t,i){function n(e,t,i){return s[s.length]={status:e,value:t,index:i}}if(a&&!u){var s=[],o=e.length,r=i.length,h=0;switch(t){case"push":h=o;case"unshift":for(t=0;t<r;t++)n("added",i[t],h+t);break;case"pop":h=o-1;case"shift":o&&n("deleted",e[h],h);break;case"splice":t=Math.min(Math.max(0,0>i[0]?o+i[0]:i[0]),o);for(var o=1===r?o:Math.min(t+(i[1]||0),o),r=t+r-2,h=Math.max(o,r),c=[],d=[],_=2;t<h;++t,++_)t<o&&d.push(n("deleted",e[t],t)),t<r&&c.push(n("added",i[_],t));p.a.Jc(d,c);break;default:return}l=s}}}};var O=p.a.Da("_state");p.o=p.$=function(t,i,n){function s(){if(0<arguments.length){if("function"!=typeof o)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return o.apply(r.lb,arguments),this}return r.qa||p.v.ac(s),(r.ka||r.G&&s.Xa())&&s.ha(),r.X}if("object"==typeof t?n=t:(n=n||{},t&&(n.read=t)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var o=n.write,r={X:e,ra:!0,ka:!0,pb:!1,hc:!1,qa:!1,vb:!1,G:!1,Vc:n.read,lb:i||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Qb:null,F:{},V:0,Hc:null};return s[O]=r,s.Mc="function"==typeof o,p.a.Ba||p.a.extend(s,p.R.fn),p.R.fn.ob(s),p.a.zb(s,N),n.pure?(r.vb=!0,r.G=!0,p.a.extend(s,I)):n.deferEvaluation&&p.a.extend(s,R),p.options.deferUpdates&&p.Ta.deferred(s,!0),r.l&&(r.hc=!0,r.l.nodeType||(r.l=null)),r.G||n.deferEvaluation||s.ha(),r.l&&s.ja()&&p.a.I.za(r.l,r.Qb=function(){s.s()}),s};var N={equalityComparer:l,pa:function(){return this[O].V},Va:function(){var e=[];return p.a.O(this[O].F,function(t,i){e[i.La]=i.da}),e},Ub:function(e){if(!this[O].V)return!1;var t=this.Va();return-1!==p.a.A(t,e)||!!p.a.Lb(t,function(t){return t.Ub&&t.Ub(e)})},tc:function(e,t,i){if(this[O].vb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[O].F[e]=i,i.La=this[O].V++,i.Ma=t.mb()},Xa:function(){var e,t,i=this[O].F;for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)&&(t=i[e],this.Ja&&t.da.Ka||t.da.Cd(t.Ma)))return!0},Id:function(){this.Ja&&!this[O].pb&&this.Ja(!1)},ja:function(){var e=this[O];return e.ka||0<e.V},Qd:function(){this.Ka?this[O].ka&&(this[O].ra=!0):this.Gc()},Zc:function(e){if(e.Hb){var t=e.subscribe(this.Id,this,"dirty"),i=e.subscribe(this.Qd,this);return{da:e,s:function(){t.s(),i.s()}}}return e.subscribe(this.Gc,this)},Gc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[O].Hc),this[O].Hc=p.a.setTimeout(function(){e.ha(!0)},t)):e.Ja?e.Ja(!0):e.ha(!0)},ha:function(e){var t=this[O],i=t.Sa,n=!1;if(!t.pb&&!t.qa){if(t.l&&!p.a.Rb(t.l)||i&&i()){if(!t.hc)return void this.s()}else t.hc=!1;t.pb=!0;try{n=this.yd(e)}finally{t.pb=!1}return n}},yd:function(t){var i=this[O],n=!1,s=i.vb?e:!i.V,n={pd:this,kb:i.F,Pb:i.V};p.v.wc({od:n,nd:_,o:this,rb:s}),i.F={},i.V=0;var o=this.xd(i,n);return i.V?n=this.qb(i.X,o):(this.s(),n=!0),n&&(i.G?this.Gb():this.notifySubscribers(i.X,"beforeChange"),i.X=o,this.notifySubscribers(i.X,"spectate"),!i.G&&t&&this.notifySubscribers(i.X),this.qc&&this.qc()),s&&this.notifySubscribers(i.X,"awake"),n},xd:function(e,t){try{var i=e.Vc;return e.lb?i.call(e.lb):i()}finally{p.v.end(),t.Pb&&!e.G&&p.a.O(t.kb,d),e.ra=e.ka=!1}},w:function(e){var t=this[O];return(t.ka&&(e||!t.V)||t.G&&this.Xa())&&this.ha(),t.X},tb:function(e){p.R.fn.tb.call(this,e),this.mc=function(){return this[O].G||(this[O].ra?this.ha():this[O].ka=!1),this[O].X},this.Ja=function(e){this.oc(this[O].X),this[O].ka=!0,e&&(this[O].ra=!0),this.pc(this,!e)}},s:function(){var t=this[O];!t.G&&t.F&&p.a.O(t.F,function(e,t){t.s&&t.s()}),t.l&&t.Qb&&p.a.I.xb(t.l,t.Qb),t.F=e,t.V=0,t.qa=!0,t.ra=!1,t.ka=!1,t.G=!1,t.l=e,t.Sa=e,t.Vc=e,this.Mc||(t.lb=e)}},I={Qa:function(e){var t=this,i=t[O];if(!i.qa&&i.G&&"change"==e){if(i.G=!1,i.ra||t.Xa())i.F=null,i.V=0,t.ha()&&t.Gb();else{var n=[];p.a.O(i.F,function(e,t){n[t.La]=e}),p.a.C(n,function(e,n){var s=i.F[e],o=t.Zc(s.da);o.La=n,o.Ma=s.Ma,i.F[e]=o}),t.Xa()&&t.ha()&&t.Gb()}i.qa||t.notifySubscribers(i.X,"awake")}},cb:function(t){var i=this[O];i.qa||"change"!=t||this.Wa("change")||(p.a.O(i.F,function(e,t){t.s&&(i.F[e]={da:t.da,La:t.La,Ma:t.Ma},t.s())}),i.G=!0,this.notifySubscribers(e,"asleep"))},mb:function(){var e=this[O];return e.G&&(e.ra||this.Xa())&&this.ha(),p.R.fn.mb.call(this)}},R={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.w()}};p.a.Ba&&p.a.setPrototypeOf(N,p.R.fn);var S=p.sa.Na;N[S]=p.o,p.Nc=function(e){return"function"==typeof e&&e[S]===N[S]},p.Ed=function(e){return p.Nc(e)&&e[O]&&e[O].vb},p.b("computed",p.o),p.b("dependentObservable",p.o),p.b("isComputed",p.Nc),p.b("isPureComputed",p.Ed),p.b("computed.fn",N),p.J(N,"peek",N.w),p.J(N,"dispose",N.s),p.J(N,"isActive",N.ja),p.J(N,"getDependenciesCount",N.pa),p.J(N,"getDependencies",N.Va),p.wb=function(e,t){return"function"==typeof e?p.o(e,t,{pure:!0}):(e=p.a.extend({},e),e.pure=!0,p.o(e,t))},p.b("pureComputed",p.wb),function(){function t(s,o,r){if(r=r||new n,s=o(s),"object"!=typeof s||null===s||s===e||s instanceof RegExp||s instanceof Date||s instanceof String||s instanceof Number||s instanceof Boolean)return s;var a=s instanceof Array?[]:{};return r.save(s,a),i(s,function(i){var n=o(s[i]);switch(typeof n){case"boolean":case"number":case"string":case"function":a[i]=n;break;case"object":case"undefined":var l=r.get(n);a[i]=l!==e?l:t(n,o,r)}}),a}function i(e,t){if(e instanceof Array){for(var i=0;i<e.length;i++)t(i);"function"==typeof e.toJSON&&t("toJSON")}else for(i in e)t(i)}function n(){this.keys=[],this.values=[]}p.$c=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(e,function(e){for(var t=0;p.N(e)&&10>t;t++)e=e();return e})},p.toJSON=function(e,t,i){return e=p.$c(e),p.a.fc(e,t,i)},n.prototype={constructor:n,save:function(e,t){var i=p.a.A(this.keys,e);0<=i?this.values[i]=t:(this.keys.push(e),this.values.push(t))},get:function(t){return t=p.a.A(this.keys,t),0<=t?this.values[t]:e}}}(),p.b("toJS",p.$c),p.b("toJSON",p.toJSON),p.Vd=function(e,t,i){function n(t){var n=p.wb(e,i).extend({Ga:"always"}),s=n.subscribe(function(e){e&&(s.s(),t(e))});return n.notifySubscribers(n.w()),s}return"function"!=typeof Promise||t?n(t.bind(i)):new Promise(n)},p.b("when",p.Vd),function(){p.u={L:function(t){switch(p.a.P(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?p.a.g.get(t,p.f.options.Yb):7>=p.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?p.u.L(t.options[t.selectedIndex]):e;default:return t.value}},ya:function(t,i,n){switch(p.a.P(t)){case"option":"string"==typeof i?(p.a.g.set(t,p.f.options.Yb,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=i):(p.a.g.set(t,p.f.options.Yb,i),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof i?i:"");break;case"select":""!==i&&null!==i||(i=e);for(var s,o=-1,r=0,a=t.options.length;r<a;++r)if(s=p.u.L(t.options[r]),s==i||""===s&&i===e){o=r;break}(n||0<=o||i===e&&1<t.size)&&(t.selectedIndex=o,6===p.a.W&&p.a.setTimeout(function(){t.selectedIndex=o},0));break;default:null!==i&&i!==e||(i=""),t.value=i}}}}(),p.b("selectExtensions",p.u),p.b("selectExtensions.readValue",p.u.L),p.b("selectExtensions.writeValue",p.u.ya),p.m=function(){function e(e){e=p.a.Cb(e),123===e.charCodeAt(0)&&(e=e.slice(1,-1)),e+="\n,";var t,i=[],r=e.match(n),a=[],l=0;if(1<r.length){for(var u,h=0;u=r[h];++h){var c=u.charCodeAt(0);if(44===c){if(0>=l){i.push(t&&a.length?{key:t,value:a.join("")}:{unknown:t||a.join("")}),t=l=0,a=[];continue}}else if(58===c){if(!l&&!t&&1===a.length){t=a.pop();continue}}else{if(47===c&&1<u.length&&(47===u.charCodeAt(1)||42===u.charCodeAt(1)))continue;47===c&&h&&1<u.length?(c=r[h-1].match(s))&&!o[c[0]]&&(e=e.substr(e.indexOf(u)+1),r=e.match(n),h=-1,u="/"):40===c||123===c||91===c?++l:41===c||125===c||93===c?--l:t||a.length||34!==c&&39!==c||(u=u.slice(1,-1))}a.push(u)}if(0<l)throw Error("Unbalanced parentheses, braces, or brackets")}return i}var t=["true","false","null","undefined"],i=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,n=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),s=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},r={};return{Ra:[],va:r,Zb:e,ub:function(n,s){function o(e,n){var s;if(!h){var c=p.getBindingHandler(e);if(c&&c.preprocess&&!(n=c.preprocess(n,e,o)))return;(c=r[e])&&(s=n,0<=p.a.A(t,s)?s=!1:(c=s.match(i),s=null!==c&&(c[1]?"Object("+c[1]+")"+c[2]:s)),c=s),c&&l.push("'"+("string"==typeof r[e]?r[e]:e)+"':function(_z){"+s+"=_z}")}u&&(n="function(){return "+n+" }"),a.push("'"+e+"':"+n)}s=s||{};var a=[],l=[],u=s.valueAccessors,h=s.bindingParams,c="string"==typeof n?e(n):n;return p.a.C(c,function(e){o(e.key||e.unknown,e.value)}),l.length&&o("_ko_property_writers","{"+l.join(",")+" }"),a.join(",")},Hd:function(e,t){for(var i=0;i<e.length;i++)if(e[i].key==t)return!0;return!1},$a:function(e,t,i,n,s){e&&p.N(e)?!p.Ya(e)||s&&e.w()===n||e(n):(e=t.get("_ko_property_writers"))&&e[i]&&e[i](n)}}}(),p.b("expressionRewriting",p.m),p.b("expressionRewriting.bindingRewriteValidators",p.m.Ra),p.b("expressionRewriting.parseObjectLiteral",p.m.Zb),p.b("expressionRewriting.preProcessBindings",p.m.ub),p.b("expressionRewriting._twoWayBindings",p.m.va),p.b("jsonExpressionRewriting",p.m),p.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",p.m.ub),function(){function e(e){return 8==e.nodeType&&r.test(o?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(o?e.text:e.nodeValue)}function n(i,n){for(var s=i,o=1,r=[];s=s.nextSibling;){if(t(s)&&(p.a.g.set(s,u,!0),o--,0===o))return r;r.push(s),e(s)&&o++}if(!n)throw Error("Cannot find closing comment tag to match: "+i.nodeValue);return null}function s(e,t){var i=n(e,t);return i?0<i.length?i[i.length-1].nextSibling:e.nextSibling:null}var o=i&&"<!--test-->"===i.createComment("test").text,r=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,l={ul:!0,ol:!0},u="__ko_matchedEndComment__";p.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},
  2. Ea:function(t){if(e(t)){t=p.h.childNodes(t);for(var i=0,n=t.length;i<n;i++)p.removeNode(t[i])}else p.a.Sb(t)},ua:function(t,i){if(e(t)){p.h.Ea(t);for(var n=t.nextSibling,s=0,o=i.length;s<o;s++)n.parentNode.insertBefore(i[s],n)}else p.a.ua(t,i)},Uc:function(t,i){e(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},Vb:function(t,i,n){n?e(t)?t.parentNode.insertBefore(i,n.nextSibling):n.nextSibling?t.insertBefore(i,n.nextSibling):t.appendChild(i):p.h.Uc(t,i)},firstChild:function(i){if(e(i))return!i.nextSibling||t(i.nextSibling)?null:i.nextSibling;if(i.firstChild&&t(i.firstChild))throw Error("Found invalid end comment, as the first child of "+i);return i.firstChild},nextSibling:function(i){if(e(i)&&(i=s(i)),i.nextSibling&&t(i.nextSibling)){var n=i.nextSibling;if(t(n)&&!p.a.g.get(n,u))throw Error("Found end comment without a matching opening comment, as child of "+i);return null}return i.nextSibling},Bd:e,Ud:function(e){return(e=(o?e.text:e.nodeValue).match(r))?e[1]:null},Rc:function(i){if(l[p.a.P(i)]){var n=i.firstChild;if(n)do if(1===n.nodeType){var o;o=n.firstChild;var r=null;if(o)do if(r)r.push(o);else if(e(o)){var a=s(o,!0);a?o=a:r=[o]}else t(o)&&(r=[o]);while(o=o.nextSibling);if(o=r)for(r=n.nextSibling,a=0;a<o.length;a++)r?i.insertBefore(o[a],r):i.appendChild(o[a])}while(n=n.nextSibling)}}}}(),p.b("virtualElements",p.h),p.b("virtualElements.allowedBindings",p.h.ea),p.b("virtualElements.emptyNode",p.h.Ea),p.b("virtualElements.insertAfter",p.h.Vb),p.b("virtualElements.prepend",p.h.Uc),p.b("virtualElements.setDomNodeChildren",p.h.ua),function(){p.ga=function(){this.md={}},p.a.extend(p.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||p.i.getComponentNameForNode(e);case 8:return p.h.Bd(e);default:return!1}},getBindings:function(e,t){var i=this.getBindingsString(e,t),i=i?this.parseBindingsString(i,t,e):null;return p.i.sc(i,e,t,!1)},getBindingAccessors:function(e,t){var i=this.getBindingsString(e,t),i=i?this.parseBindingsString(i,t,e,{valueAccessors:!0}):null;return p.i.sc(i,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return p.h.Ud(e);default:return null}},parseBindingsString:function(e,t,i,n){try{var s,o=this.md,r=e+(n&&n.valueAccessors||"");if(!(s=o[r])){var a,l="with($context){with($data||{}){return{"+p.m.ub(e,n)+"}}}";a=new Function("$context","$element",l),s=o[r]=a}return s(t,i)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),p.ga.instance=new p.ga}(),p.b("bindingProvider",p.ga),function(){function n(e){var t=(e=p.a.g.get(e,I))&&e.M;t&&(e.M=null,t.Sc())}function o(e,t,i){this.node=e,this.xc=t,this.ib=[],this.T=!1,t.M||p.a.I.za(e,n),i&&i.M&&(i.M.ib.push(e),this.Kb=i)}function r(e){return function(){return e}}function a(e){return e()}function l(e){return p.a.Ha(p.v.K(e),function(t,i){return function(){return e()[i]}})}function u(e,t,i){return"function"==typeof e?l(e.bind(null,t,i)):p.a.Ha(e,r)}function h(e,t){return l(this.getBindings.bind(this,e,t))}function c(e,t){var i=p.h.firstChild(t);if(i){var n,s=p.ga.instance,o=s.preprocessNode;if(o){for(;n=i;)i=p.h.nextSibling(n),o.call(s,n);i=p.h.firstChild(t)}for(;n=i;)i=p.h.nextSibling(n),d(e,n)}p.j.Ga(t,p.j.T)}function d(e,t){var i=e,n=1===t.nodeType;n&&p.h.Rc(t),(n||p.ga.instance.nodeHasBindings(t))&&(i=f(t,null,e).bindingContextForDescendants),i&&!O[p.a.P(t)]&&c(i,t)}function _(e){var t=[],i={},n=[];return p.a.O(e,function s(o){if(!i[o]){var r=p.getBindingHandler(o);r&&(r.after&&(n.push(o),p.a.C(r.after,function(t){if(e[t]){if(-1!==p.a.A(n,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+n.join(", "));s(t)}}),n.length--),t.push({key:o,Lc:r})),i[o]=!0}}),t}function f(t,i,n){var s=p.a.g.Tb(t,I,{}),o=s.gd;if(!i){if(o)throw Error("You cannot apply bindings multiple times to the same element.");s.gd=!0}o||(s.context=n);var r;if(i&&"function"!=typeof i)r=i;else{var l=p.ga.instance,u=l.getBindingAccessors||h,c=p.$(function(){return(r=i?i(n,t):u.call(l,t,n))&&(n[T]&&n[T](),n[m]&&n[m]()),r},null,{l:t});r&&c.ja()||(c=null)}var d,f=n;if(r){var E=function(){return p.a.Ha(c?c():r,a)},g=c?function(e){return function(){return a(c()[e])}}:function(e){return r[e]};E.get=function(e){return r[e]&&a(g(e))},E.has=function(e){return e in r},p.j.T in r&&p.j.subscribe(t,p.j.T,function(){var e=(0,r[p.j.T])();if(e){var i=p.h.childNodes(t);i.length&&e(i,p.Dc(i[0]))}}),p.j.oa in r&&(f=p.j.Bb(t,n),p.j.subscribe(t,p.j.oa,function(){var e=(0,r[p.j.oa])();e&&p.h.firstChild(t)&&e(t)})),s=_(r),p.a.C(s,function(i){var n=i.Lc.init,s=i.Lc.update,o=i.key;if(8===t.nodeType&&!p.h.ea[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof n&&p.v.K(function(){var i=n(t,g(o),E,f.$data,f);if(i&&i.controlsDescendantBindings){if(d!==e)throw Error("Multiple bindings ("+d+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=o}}),"function"==typeof s&&p.$(function(){s(t,g(o),E,f.$data,f)},null,{l:t})}catch(e){throw e.message='Unable to process binding "'+o+": "+r[o]+'"\nMessage: '+e.message,e}})}return s=d===e,{shouldBindDescendants:s,bindingContextForDescendants:s&&f}}function E(t,i){return t&&t instanceof p.fa?t:new p.fa(t,e,e,i)}var T=p.a.Da("_subscribable"),g=p.a.Da("_ancestorBindingInfo"),m=p.a.Da("_dataDependency");p.f={};var O={script:!0,textarea:!0,template:!0};p.getBindingHandler=function(e){return p.f[e]};var N={};p.fa=function(t,i,n,s,o){function r(){var e=c?h():h,t=p.a.c(e);return i?(p.a.extend(l,i),g in i&&(l[g]=i[g])):(l.$parents=[],l.$root=t,l.ko=p),l[T]=a,u?t=l.$data:(l.$rawData=e,l.$data=t),n&&(l[n]=t),s&&s(l,i,t),i&&i[T]&&!p.U.o().Ub(i[T])&&i[T](),d&&(l[m]=d),l.$data}var a,l=this,u=t===N,h=u?e:t,c="function"==typeof h&&!p.N(h),d=o&&o.dataDependency;o&&o.exportDependencies?r():(a=p.wb(r),a.w(),a.ja()?a.equalityComparer=null:l[T]=e)},p.fa.prototype.createChildContext=function(e,t,i,n){if(!n&&t&&"object"==typeof t&&(n=t,t=n.as,i=n.extend),t&&n&&n.noChildContext){var s="function"==typeof e&&!p.N(e);return new p.fa(N,this,null,function(n){i&&i(n),n[t]=s?e():e},n)}return new p.fa(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),i&&i(e)},n)},p.fa.prototype.extend=function(e,t){return new p.fa(N,this,null,function(t){p.a.extend(t,"function"==typeof e?e(t):e)},t)};var I=p.a.g.Z();o.prototype.Sc=function(){this.Kb&&this.Kb.M&&this.Kb.M.rd(this.node)},o.prototype.rd=function(e){p.a.hb(this.ib,e),!this.ib.length&&this.T&&this.Bc()},o.prototype.Bc=function(){this.T=!0,this.xc.M&&!this.ib.length&&(this.xc.M=null,p.a.I.xb(this.node,n),p.j.Ga(this.node,p.j.oa),this.Sc())},p.j={T:"childrenComplete",oa:"descendantsComplete",subscribe:function(e,t,i,n){return e=p.a.g.Tb(e,I,{}),e.Fa||(e.Fa=new p.R),e.Fa.subscribe(i,n,t)},Ga:function(t,i){var n=p.a.g.get(t,I);if(n&&(n.Fa&&n.Fa.notifySubscribers(t,i),i==p.j.T))if(n.M)n.M.Bc();else if(n.M===e&&n.Fa&&n.Fa.Wa(p.j.oa))throw Error("descendantsComplete event not supported for bindings on this node")},Bb:function(e,t){var i=p.a.g.Tb(e,I,{});return i.M||(i.M=new o(e,i,t[g])),t[g]==i?t:t.extend(function(e){e[g]=i})}},p.Sd=function(e){return(e=p.a.g.get(e,I))&&e.context},p.eb=function(e,t,i){return 1===e.nodeType&&p.h.Rc(e),f(e,t,E(i))},p.kd=function(e,t,i){return i=E(i),p.eb(e,u(t,i,e),i)},p.Pa=function(e,t){1!==t.nodeType&&8!==t.nodeType||c(E(e),t)},p.uc=function(e,n,o){if(!s&&t.jQuery&&(s=t.jQuery),2>arguments.length){if(n=i.body,!n)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(E(e,o),n)},p.Cc=function(t){return!t||1!==t.nodeType&&8!==t.nodeType?e:p.Sd(t)},p.Dc=function(t){return(t=p.Cc(t))?t.$data:e},p.b("bindingHandlers",p.f),p.b("bindingEvent",p.j),p.b("bindingEvent.subscribe",p.j.subscribe),p.b("bindingEvent.startPossiblyAsyncContentBinding",p.j.Bb),p.b("applyBindings",p.uc),p.b("applyBindingsToDescendants",p.Pa),p.b("applyBindingAccessorsToNode",p.eb),p.b("applyBindingsToNode",p.kd),p.b("contextFor",p.Cc),p.b("dataFor",p.Dc)}(),function(e){function t(t,n){var r,a=Object.prototype.hasOwnProperty.call(s,t)?s[t]:e;a?a.subscribe(n):(a=s[t]=new p.R,a.subscribe(n),i(t,function(e,i){var n=!(!i||!i.synchronous);o[t]={definition:e,Fd:n},delete s[t],r||n?a.notifySubscribers(e):p.ma.yb(function(){a.notifySubscribers(e)})}),r=!0)}function i(e,t){n("getConfig",[e],function(i){i?n("loadComponent",[e,i],function(e){t(e,i)}):t(null,null)})}function n(t,i,s,o){o||(o=p.i.loaders.slice(0));var r=o.shift();if(r){var a=r[t];if(a){var l=!1;if(a.apply(r,i.concat(function(e){l?s(null):null!==e?s(e):n(t,i,s,o)}))!==e&&(l=!0,!r.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else n(t,i,s,o)}else s(null)}var s={},o={};p.i={get:function(i,n){var s=Object.prototype.hasOwnProperty.call(o,i)?o[i]:e;s?s.Fd?p.v.K(function(){n(s.definition)}):p.ma.yb(function(){n(s.definition)}):t(i,n)},Ac:function(e){delete o[e]},nc:n},p.i.loaders=[],p.b("components",p.i),p.b("components.get",p.i.get),p.b("components.clearCachedDefinition",p.i.Ac)}(),function(){function e(e,t,i,n){function s(){0===--a&&n(o)}var o={},a=2,l=i.template;i=i.viewModel,l?r(t,l,function(t){p.i.nc("loadTemplate",[e,t],function(e){o.template=e,s()})}):s(),i?r(t,i,function(t){p.i.nc("loadViewModel",[e,t],function(e){o[h]=e,s()})}):s()}function n(e,t,i){if("function"==typeof t)i(function(e){return new t(e)});else if("function"==typeof t[h])i(t[h]);else if("instance"in t){var s=t.instance;i(function(){return s})}else"viewModel"in t?n(e,t.viewModel,i):e("Unknown viewModel value: "+t)}function s(e){switch(p.a.P(e)){case"script":return p.a.ta(e.text);case"textarea":return p.a.ta(e.value);case"template":if(o(e.content))return p.a.Ca(e.content.childNodes)}return p.a.Ca(e.childNodes)}function o(e){return t.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function r(e,i,n){"string"==typeof i.require?a||t.require?(a||t.require)([i.require],n):e("Uses require, but no AMD loader is present"):n(i)}function l(e){return function(t){throw Error("Component '"+e+"': "+t)}}var u={};p.i.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(p.i.sb(e))throw Error("Component "+e+" is already registered");u[e]=t},p.i.sb=function(e){return Object.prototype.hasOwnProperty.call(u,e)},p.i.unregister=function(e){delete u[e],p.i.Ac(e)},p.i.Ec={getConfig:function(e,t){t(p.i.sb(e)?u[e]:null)},loadComponent:function(t,i,n){var s=l(t);r(s,i,function(i){e(t,s,i,n)})},loadTemplate:function(e,n,r){if(e=l(e),"string"==typeof n)r(p.a.ta(n));else if(n instanceof Array)r(n);else if(o(n))r(p.a.la(n.childNodes));else if(n.element)if(n=n.element,t.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)r(s(n));else if("string"==typeof n){var a=i.getElementById(n);a?r(s(a)):e("Cannot find element with ID "+n)}else e("Unknown element type: "+n);else e("Unknown template value: "+n)},loadViewModel:function(e,t,i){n(l(e),t,i)}};var h="createViewModel";p.b("components.register",p.i.register),p.b("components.isRegistered",p.i.sb),p.b("components.unregister",p.i.unregister),p.b("components.defaultLoader",p.i.Ec),p.i.loaders.push(p.i.Ec),p.i.cd=u}(),function(){function e(e,i){var n=e.getAttribute("params");if(n){var n=t.parseBindingsString(n,i,e,{valueAccessors:!0,bindingParams:!0}),n=p.a.Ha(n,function(t){return p.o(t,null,{l:e})}),s=p.a.Ha(n,function(t){var i=t.w();return t.ja()?p.o({read:function(){return p.a.c(t())},write:p.Ya(i)&&function(e){t()(e)},l:e}):i});return Object.prototype.hasOwnProperty.call(s,"$raw")||(s.$raw=n),s}return{$raw:{}}}p.i.getComponentNameForNode=function(e){var t=p.a.P(e);if(p.i.sb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=p.a.W&&e.tagName===t))return t},p.i.sc=function(t,i,n,s){if(1===i.nodeType){var o=p.i.getComponentNameForNode(i);if(o){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var r={name:o,params:e(i,n)};t.component=s?function(){return r}:r}}return t};var t=new p.ga;9>p.a.W&&(p.i.register=function(e){return function(t){return e.apply(this,arguments)}}(p.i.register),i.createDocumentFragment=function(e){return function(){var t,i=e(),n=p.i.cd;for(t in n);return i}}(i.createDocumentFragment))}(),function(){function e(e,t,i){if(t=t.template,!t)throw Error("Component '"+e+"' has no template");e=p.a.Ca(t),p.h.ua(i,e)}function t(e,t,i){var n=e.createViewModel;return n?n.call(e,t,i):t}var i=0;p.f.component={init:function(n,s,o,r,a){function l(){var e=u&&u.dispose;"function"==typeof e&&e.call(u),c&&c.s(),h=u=c=null}var u,h,c,d=p.a.la(p.h.childNodes(n));return p.h.Ea(n),p.a.I.za(n,l),p.o(function(){var o,r,_=p.a.c(s());if("string"==typeof _?o=_:(o=p.a.c(_.name),r=p.a.c(_.params)),!o)throw Error("No component name specified");var f=p.j.Bb(n,a),E=h=++i;p.i.get(o,function(i){if(h===E){if(l(),!i)throw Error("Unknown component '"+o+"'");e(o,i,n);var s=t(i,r,{element:n,templateNodes:d});i=f.createChildContext(s,{extend:function(e){e.$component=s,e.$componentTemplateNodes=d}}),s&&s.koDescendantsComplete&&(c=p.j.subscribe(n,p.j.oa,s.koDescendantsComplete,s)),u=s,p.Pa(i,n)}})},null,{l:n}),{controlsDescendantBindings:!0}}},p.h.ea.component=!0}();var A={class:"className",for:"htmlFor"};p.f.attr={update:function(t,i){var n=p.a.c(i())||{};p.a.O(n,function(i,n){n=p.a.c(n);var s=i.indexOf(":"),s="lookupNamespaceURI"in t&&0<s&&t.lookupNamespaceURI(i.substr(0,s)),o=!1===n||null===n||n===e;o?s?t.removeAttributeNS(s,i):t.removeAttribute(i):n=n.toString(),8>=p.a.W&&i in A?(i=A[i],o?t.removeAttribute(i):t[i]=n):o||(s?t.setAttributeNS(s,i,n):t.setAttribute(i,n)),"name"===i&&p.a.Xc(t,o?"":n)})}},function(){p.f.checked={after:["value","attr"],init:function(t,i,n){function s(){var s=t.checked,o=r();if(!p.U.rb()&&(s||!l&&!p.U.pa())){var u=p.v.K(i);if(h){var d=c?u.w():u,f=_;_=o,f!==o?s&&(p.a.Oa(d,o,!0),p.a.Oa(d,f,!1)):p.a.Oa(d,o,s),c&&p.Ya(u)&&u(d)}else a&&(o===e?o=s:s||(o=e)),p.m.$a(u,n,"checked",o,!0)}}function o(){var n=p.a.c(i()),s=r();h?(t.checked=0<=p.a.A(n,s),_=s):t.checked=a&&s===e?!!n:r()===n}var r=p.wb(function(){return n.has("checkedValue")?p.a.c(n.get("checkedValue")):d?n.has("value")?p.a.c(n.get("value")):t.value:void 0}),a="checkbox"==t.type,l="radio"==t.type;if(a||l){var u=i(),h=a&&p.a.c(u)instanceof Array,c=!(h&&u.push&&u.splice),d=l||h,_=h?r():e;l&&!t.name&&p.f.uniqueName.init(t,function(){return!0}),p.o(s,null,{l:t}),p.a.H(t,"click",s),p.o(o,null,{l:t}),u=e}}},p.m.va.checked=!0,p.f.checkedValue={update:function(e,t){e.value=p.a.c(t())}}}(),p.f.class={update:function(e,t){var i=p.a.Cb(p.a.c(t()));p.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=i,p.a.Eb(e,i,!0)}},p.f.css={update:function(e,t){var i=p.a.c(t());null!==i&&"object"==typeof i?p.a.O(i,function(t,i){i=p.a.c(i),p.a.Eb(e,t,i)}):p.f.class.update(e,t)}},p.f.enable={update:function(e,t){var i=p.a.c(t());i&&e.disabled?e.removeAttribute("disabled"):i||e.disabled||(e.disabled=!0)}},p.f.disable={update:function(e,t){p.f.enable.update(e,function(){return!p.a.c(t())})}},p.f.event={init:function(e,t,i,n,s){var o=t()||{};p.a.O(o,function(o){"string"==typeof o&&p.a.H(e,o,function(e){var r,a=t()[o];if(a){try{var l=p.a.la(arguments);n=s.$data,l.unshift(n),r=a.apply(n,l)}finally{!0!==r&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===i.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},p.f.foreach={Qc:function(e){return function(){var t=e(),i=p.a.$b(t);return i&&"number"!=typeof i.length?(p.a.c(t),{foreach:i.data,as:i.as,noChildContext:i.noChildContext,includeDestroyed:i.includeDestroyed,afterAdd:i.afterAdd,beforeRemove:i.beforeRemove,afterRender:i.afterRender,beforeMove:i.beforeMove,afterMove:i.afterMove,templateEngine:p.ba.Na}):{foreach:t,templateEngine:p.ba.Na}}},init:function(e,t){return p.f.template.init(e,p.f.foreach.Qc(t))},update:function(e,t,i,n,s){return p.f.template.update(e,p.f.foreach.Qc(t),i,n,s)}},p.m.Ra.foreach=!1,p.h.ea.foreach=!0,p.f.hasfocus={init:function(e,t,i){function n(n){e.__ko_hasfocusUpdating=!0;var s=e.ownerDocument;if("activeElement"in s){var o;try{o=s.activeElement}catch(e){o=s.body}n=o===e}s=t(),p.m.$a(s,i,"hasfocus",n,!0),e.__ko_hasfocusLastValue=n,e.__ko_hasfocusUpdating=!1}var s=n.bind(null,!0),o=n.bind(null,!1);p.a.H(e,"focus",s),p.a.H(e,"focusin",s),p.a.H(e,"blur",o),p.a.H(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var i=!!p.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===i||(i?e.focus():e.blur(),!i&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),p.v.K(p.a.Fb,null,[e,i?"focusin":"focusout"]))}},p.m.va.hasfocus=!0,p.f.hasFocus=p.f.hasfocus,p.m.va.hasFocus="hasfocus",p.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){p.a.dc(e,t())}},function(){function e(e,t,i){p.f[e]={init:function(e,n,s,o,r){var a,l,u,h,c,d={};if(t){o=s.get("as");var _=s.get("noChildContext");c=!(o&&_),d={as:o,noChildContext:_,exportDependencies:c}}return h=(u="render"==s.get("completeOn"))||s.has(p.j.oa),p.o(function(){var s,o=p.a.c(n()),_=!i!=!o,f=!l;(c||_!==a)&&(h&&(r=p.j.Bb(e,r)),_&&(t&&!c||(d.dataDependency=p.U.o()),s=t?r.createChildContext("function"==typeof o?o:n,d):p.U.pa()?r.extend(null,d):r),f&&p.U.pa()&&(l=p.a.Ca(p.h.childNodes(e),!0)),_?(f||p.h.ua(e,p.a.Ca(l)),p.Pa(s,e)):(p.h.Ea(e),u||p.j.Ga(e,p.j.T)),a=_)},null,{l:e}),{controlsDescendantBindings:!0}}},p.m.Ra[e]=!1,p.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),p.f.let={init:function(e,t,i,n,s){return t=s.extend(t),p.Pa(t,e),{controlsDescendantBindings:!0}}},p.h.ea.let=!0;var D={};p.f.options={init:function(e){if("select"!==p.a.P(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,n){function s(){return p.a.fb(t.options,function(e){return e.selected})}function o(e,t,i){var n=typeof t;return"function"==n?t(e):"string"==n?e[t]:i}function r(e,i){if(f&&h)p.u.ya(t,p.a.c(n.get("value")),!0);else if(_.length){var s=0<=p.a.A(_,p.u.L(i[0]));p.a.Yc(i[0],s),f&&!s&&p.v.K(p.a.Fb,null,[t,"change"])}}var a=t.multiple,l=0!=t.length&&a?t.scrollTop:null,u=p.a.c(i()),h=n.get("valueAllowUnset")&&n.has("value"),c=n.get("optionsIncludeDestroyed");i={};var d,_=[];h||(a?_=p.a.Mb(s(),p.u.L):0<=t.selectedIndex&&_.push(p.u.L(t.options[t.selectedIndex]))),u&&("undefined"==typeof u.length&&(u=[u]),d=p.a.fb(u,function(t){return c||t===e||null===t||!p.a.c(t._destroy)}),n.has("optionsCaption")&&(u=p.a.c(n.get("optionsCaption")),null!==u&&u!==e&&d.unshift(D)));var f=!1;i.beforeRemove=function(e){t.removeChild(e)},u=r,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(u=function(t,i){r(0,i),p.v.K(n.get("optionsAfterRender"),null,[i[0],t!==D?t:e])}),p.a.cc(t,d,function(i,s,r){return r.length&&(_=!h&&r[0].selected?[p.u.L(r[0])]:[],f=!0),s=t.ownerDocument.createElement("option"),i===D?(p.a.Ab(s,n.get("optionsCaption")),p.u.ya(s,e)):(r=o(i,n.get("optionsValue"),i),p.u.ya(s,p.a.c(r)),i=o(i,n.get("optionsText"),r),p.a.Ab(s,i)),[s]},i,u),p.v.K(function(){if(h)p.u.ya(t,p.a.c(n.get("value")),!0);else{var e;e=a?_.length&&s().length<_.length:_.length&&0<=t.selectedIndex?p.u.L(t.options[t.selectedIndex])!==_[0]:_.length||0<=t.selectedIndex,e&&p.a.Fb(t,"change")}}),p.a.vd(t),l&&20<Math.abs(l-t.scrollTop)&&(t.scrollTop=l)}},p.f.options.Yb=p.a.g.Z(),p.f.selectedOptions={after:["options","foreach"],init:function(e,t,i){p.a.H(e,"change",function(){var n=t(),s=[];p.a.C(e.getElementsByTagName("option"),function(e){e.selected&&s.push(p.u.L(e))}),p.m.$a(n,i,"selectedOptions",s)})},update:function(e,t){if("select"!=p.a.P(e))throw Error("values binding applies only to SELECT elements");var i=p.a.c(t()),n=e.scrollTop;i&&"number"==typeof i.length&&p.a.C(e.getElementsByTagName("option"),function(e){var t=0<=p.a.A(i,p.u.L(e));e.selected!=t&&p.a.Yc(e,t)}),e.scrollTop=n}},p.m.va.selectedOptions=!0,p.f.style={update:function(t,i){var n=p.a.c(i()||{});p.a.O(n,function(i,n){if(n=p.a.c(n),null!==n&&n!==e&&!1!==n||(n=""),s)s(t).css(i,n);else if(/^--/.test(i))t.style.setProperty(i,n);else{i=i.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var o=t.style[i];t.style[i]=n,n===o||t.style[i]!=o||isNaN(n)||(t.style[i]=n+"px")}})}},p.f.submit={init:function(e,t,i,n,s){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");p.a.H(e,"submit",function(i){var n,o=t();try{n=o.call(s.$data,e)}finally{!0!==n&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}},p.f.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){p.a.Ab(e,t())}},p.h.ea.text=!0,function(){if(t&&t.navigator){var i,n,s,o,r,a=function(e){if(e)return parseFloat(e[1])},l=t.navigator.userAgent;(i=t.opera&&t.opera.version&&parseInt(t.opera.version()))||(r=a(l.match(/Edge\/([^ ]+)$/)))||a(l.match(/Chrome\/([^ ]+)/))||(n=a(l.match(/Version\/([^ ]+) Safari/)))||(s=a(l.match(/Firefox\/([^ ]+)/)))||(o=p.a.W||a(l.match(/MSIE ([^ ]+)/)))||(o=a(l.match(/rv:([^ )]+)/)))}if(8<=o&&10>o)var u=p.a.g.Z(),h=p.a.g.Z(),c=function(e){var t=this.activeElement;(t=t&&p.a.g.get(t,h))&&t(e)},d=function(e,t){var i=e.ownerDocument;p.a.g.get(i,u)||(p.a.g.set(i,u,!0),p.a.H(i,"selectionchange",c)),p.a.g.set(e,h,t)};p.f.textInput={init:function(t,a,l){function u(e,i){p.a.H(t,e,i)}function h(){var i=p.a.c(a());null!==i&&i!==e||(i=""),E!==e&&i===E?p.a.setTimeout(h,4):t.value!==i&&(m=!0,t.value=i,m=!1,T=t.value)}function c(){f||(E=t.value,f=p.a.setTimeout(_,4))}function _(){clearTimeout(f),E=f=e;var i=t.value;T!==i&&(T=i,p.m.$a(a(),l,"textInput",i))}var f,E,T=t.value,g=9==p.a.W?c:_,m=!1;o&&u("keypress",_),11>o&&u("propertychange",function(e){m||"value"!==e.propertyName||g(e)}),8==o&&(u("keyup",_),u("keydown",_)),d&&(d(t,g),u("dragend",c)),(!o||9<=o)&&u("input",g),5>n&&"textarea"===p.a.P(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>i?u("keydown",c):4>s?(u("DOMAutoComplete",_),u("dragdrop",_),u("drop",_)):r&&"number"===t.type&&u("keydown",c),u("change",_),u("blur",_),p.o(h,null,{l:t})}},p.m.va.textInput=!0,p.f.textinput={preprocess:function(e,t,i){i("textInput",e)}}}(),p.f.uniqueName={init:function(e,t){if(t()){var i="ko_unique_"+ ++p.f.uniqueName.qd;p.a.Xc(e,i)}}},p.f.uniqueName.qd=0,p.f.using={init:function(e,t,i,n,s){var o;return i.has("as")&&(o={as:i.get("as"),noChildContext:i.get("noChildContext")}),t=s.createChildContext(t,o),p.Pa(t,e),{controlsDescendantBindings:!0}}},p.h.ea.using=!0,p.f.value={after:["options","foreach"],init:function(t,i,n){var s=p.a.P(t),o="input"==s;if(!o||"checkbox"!=t.type&&"radio"!=t.type){var r=["change"],a=n.get("valueUpdate"),l=!1,u=null;a&&("string"==typeof a&&(a=[a]),p.a.gb(r,a),r=p.a.vc(r));var h=function(){u=null,l=!1;var e=i(),s=p.u.L(t);p.m.$a(e,n,"value",s)};!p.a.W||!o||"text"!=t.type||"off"==t.autocomplete||t.form&&"off"==t.form.autocomplete||-1!=p.a.A(r,"propertychange")||(p.a.H(t,"propertychange",function(){l=!0}),p.a.H(t,"focus",function(){l=!1}),p.a.H(t,"blur",function(){l&&h()})),p.a.C(r,function(e){var i=h;p.a.Td(e,"after")&&(i=function(){u=p.u.L(t),p.a.setTimeout(h,0)},e=e.substring(5)),p.a.H(t,e,i)});var c;c=o&&"file"==t.type?function(){var n=p.a.c(i());null===n||n===e||""===n?t.value="":p.v.K(h)}:function(){var o=p.a.c(i()),r=p.u.L(t);null!==u&&o===u?p.a.setTimeout(c,0):o===r&&r!==e||("select"===s?(r=n.get("valueAllowUnset"),p.u.ya(t,o,r),r||o===p.u.L(t)||p.v.K(h)):p.u.ya(t,o))},p.o(c,null,{l:t})}else p.eb(t,{checkedValue:i})},update:function(){}},p.m.va.value=!0,p.f.visible={update:function(e,t){var i=p.a.c(t()),n="none"!=e.style.display;i&&!n?e.style.display="":!i&&n&&(e.style.display="none")}},p.f.hidden={update:function(e,t){p.f.visible.update(e,function(){return!p.a.c(t())})}},function(e){p.f[e]={init:function(t,i,n,s,o){return p.f.event.init.call(this,t,function(){var t={};return t[e]=i(),t},n,s,o)}}}("click"),p.ca=function(){},p.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},p.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},p.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){t=t||i;var n=t.getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new p.B.D(n)}if(1==e.nodeType||8==e.nodeType)return new p.B.ia(e);throw Error("Unknown template type: "+e)},p.ca.prototype.renderTemplate=function(e,t,i,n){return e=this.makeTemplateSource(e,n),this.renderTemplateSource(e,t,i,n)},p.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},p.ca.prototype.rewriteTemplate=function(e,t,i){e=this.makeTemplateSource(e,i),t=t(e.text()),e.text(t),e.data("isRewritten",!0)},p.b("templateEngine",p.ca),p.ic=function(){function e(e,t,i,n){e=p.m.Zb(e);for(var s=p.m.Ra,o=0;o<e.length;o++){var r=e[o].key;if(Object.prototype.hasOwnProperty.call(s,r)){var a=s[r];if("function"==typeof a){if(r=a(e[o].value))throw Error(r)}else if(!a)throw Error("This template engine does not support the '"+r+"' binding within its templates")}}return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+p.m.ub(e,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",n.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{wd:function(e,t,i){t.isTemplateRewritten(e,i)||t.rewriteTemplate(e,function(e){return p.ic.Kd(e,t)},i)},Kd:function(n,s){return n.replace(t,function(t,i,n,o,r){return e(r,i,n,s)}).replace(i,function(t,i){return e(i,"<!-- ko -->","#comment",s)})},ld:function(e,t){return p.aa.Wb(function(i,n){var s=i.nextSibling;s&&s.nodeName.toLowerCase()===t&&p.eb(s,e,n)})}}}(),p.b("__tr_ambtns",p.ic.ld),function(){p.B={},p.B.D=function(e){if(this.D=e){var t=p.a.P(e);this.Db="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},p.B.D.prototype.text=function(){var e=1===this.Db?"text":2===this.Db?"value":"innerHTML";if(0==arguments.length)return this.D[e];var t=arguments[0];"innerHTML"===e?p.a.dc(this.D,t):this.D[e]=t};var t=p.a.g.Z()+"_";p.B.D.prototype.data=function(e){return 1===arguments.length?p.a.g.get(this.D,t+e):void p.a.g.set(this.D,t+e,arguments[1])};var i=p.a.g.Z();p.B.D.prototype.nodes=function(){var t=this.D;if(0==arguments.length){var n=p.a.g.get(t,i)||{},s=n.jb||(3===this.Db?t.content:4===this.Db?t:e);return s&&!n.hd||(n=this.text())&&(s=p.a.Ld(n,t.ownerDocument),this.text(""),p.a.g.set(t,i,{jb:s,hd:!0})),s}p.a.g.set(t,i,{jb:arguments[0]})},p.B.ia=function(e){this.D=e},p.B.ia.prototype=new p.B.D,p.B.ia.prototype.constructor=p.B.ia,p.B.ia.prototype.text=function(){if(0==arguments.length){var t=p.a.g.get(this.D,i)||{};return t.jc===e&&t.jb&&(t.jc=t.jb.innerHTML),t.jc}p.a.g.set(this.D,i,{jc:arguments[0]})},p.b("templateSources",p.B),p.b("templateSources.domElement",p.B.D),p.b("templateSources.anonymousTemplate",p.B.ia)}(),function(){function t(e,t,i){var n;for(t=p.h.nextSibling(t);e&&(n=e)!==t;)e=p.h.nextSibling(n),i(n,e)}function i(e,i){if(e.length){var n=e[0],s=e[e.length-1],o=n.parentNode,r=p.ga.instance,a=r.preprocessNode;if(a){if(t(n,s,function(e,t){var i=e.previousSibling,o=a.call(r,e);o&&(e===n&&(n=o[0]||t),e===s&&(s=o[o.length-1]||i))}),e.length=0,!n)return;n===s?e.push(n):(e.push(n,s),p.a.Ua(e,o))}t(n,s,function(e){1!==e.nodeType&&8!==e.nodeType||p.uc(i,e)}),t(n,s,function(e){1!==e.nodeType&&8!==e.nodeType||p.aa.bd(e,[i])}),p.a.Ua(e,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function s(e,t,s,o,a){a=a||{};var l=(e&&n(e)||s||{}).ownerDocument,u=a.templateEngine||r;if(p.ic.wd(s,u,l),s=u.renderTemplate(s,o,a,l),"number"!=typeof s.length||0<s.length&&"number"!=typeof s[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(l=!1,t){case"replaceChildren":p.h.ua(e,s),l=!0;break;case"replaceNode":p.a.Wc(e,s),l=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t)}return l&&(i(s,o),a.afterRender&&p.v.K(a.afterRender,null,[s,o[a.as||"$data"]]),"replaceChildren"==t&&p.j.Ga(e,p.j.T)),s}function o(e,t,i){return p.N(e)?e():"function"==typeof e?e(t,i):e}var r;p.ec=function(t){if(t!=e&&!(t instanceof p.ca))throw Error("templateEngine must inherit from ko.templateEngine");r=t},p.bc=function(t,i,a,l,u){if(a=a||{},(a.templateEngine||r)==e)throw Error("Set a template engine before calling renderTemplate");if(u=u||"replaceChildren",l){var h=n(l);return p.$(function(){var e=i&&i instanceof p.fa?i:new p.fa(i,null,null,null,{exportDependencies:!0}),r=o(t,e.$data,e),e=s(l,u,r,e,a);"replaceNode"==u&&(l=e,h=n(l))},null,{Sa:function(){return!h||!p.a.Rb(h)},l:h&&"replaceNode"==u?h.parentNode:h})}return p.aa.Wb(function(e){p.bc(t,i,a,e,"replaceNode")})},p.Pd=function(t,n,r,a,l){function u(e,t){p.v.K(p.a.cc,null,[a,e,c,r,h,t]),p.j.Ga(a,p.j.T)}function h(e,t){i(t,d),r.afterRender&&r.afterRender(t,e),d=null}function c(e,i){d=l.createChildContext(e,{as:_,noChildContext:r.noChildContext,extend:function(e){e.$index=i,_&&(e[_+"Index"]=i)}});var n=o(t,e,d);return s(a,"ignoreTargetNode",n,d,r)}var d,_=r.as,f=!1===r.includeDestroyed||p.options.foreachHidesDestroyed&&!r.includeDestroyed;if(f||r.beforeRemove||!p.Oc(n))return p.$(function(){var t=p.a.c(n)||[];"undefined"==typeof t.length&&(t=[t]),f&&(t=p.a.fb(t,function(t){return t===e||null===t||!p.a.c(t._destroy)})),u(t)},null,{l:a});u(n.w());var E=n.subscribe(function(e){u(n(),e)},null,"arrayChange");return E.l(a),E};var a=p.a.g.Z(),l=p.a.g.Z();p.f.template={init:function(e,t){var i=p.a.c(t());if("string"==typeof i||i.name)p.h.Ea(e);else if("nodes"in i){if(i=i.nodes||[],p.N(i))throw Error('The "nodes" option must be a plain, non-observable array.');var n=i[0]&&i[0].parentNode;n&&p.a.g.get(n,l)||(n=p.a.Xb(i),p.a.g.set(n,l,!0)),new p.B.ia(e).nodes(n)}else{if(i=p.h.childNodes(e),!(0<i.length))throw Error("Anonymous template defined, but no template content was provided");n=p.a.Xb(i),new p.B.ia(e).nodes(n)}return{controlsDescendantBindings:!0}},update:function(t,i,n,s,o){var r=i();i=p.a.c(r),n=!0,s=null,"string"==typeof i?i={}:(r=i.name,"if"in i&&(n=p.a.c(i.if)),n&&"ifnot"in i&&(n=!p.a.c(i.ifnot))),"foreach"in i?s=p.Pd(r||t,n&&i.foreach||[],i,t,o):n?(n=o,"data"in i&&(n=o.createChildContext(i.data,{as:i.as,noChildContext:i.noChildContext,exportDependencies:!0})),s=p.bc(r||t,n,i,t)):p.h.Ea(t),o=s,(i=p.a.g.get(t,a))&&"function"==typeof i.s&&i.s(),p.a.g.set(t,a,!o||o.ja&&!o.ja()?e:o)}},p.m.Ra.template=function(e){return e=p.m.Zb(e),1==e.length&&e[0].unknown||p.m.Hd(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},p.h.ea.template=!0}(),p.b("setTemplateEngine",p.ec),p.b("renderTemplate",p.bc),p.a.Jc=function(e,t,i){if(e.length&&t.length){var n,s,o,r,a;for(n=s=0;(!i||n<i)&&(r=e[s]);++s){for(o=0;a=t[o];++o)if(r.value===a.value){r.moved=a.index,a.moved=r.index,t.splice(o,1),n=o=0;break}n+=o}}},p.a.Ob=function(){function e(e,t,i,n,s){var o,r,a,l,u,h=Math.min,c=Math.max,d=[],_=e.length,f=t.length,E=f-_||1,T=_+f+1;for(o=0;o<=_;o++)for(l=a,d.push(a=[]),u=h(f,o+E),r=c(0,o-1);r<=u;r++)a[r]=r?o?e[o-1]===t[r-1]?l[r-1]:h(l[r]||T,a[r-1]||T)+1:r+1:o+1;for(h=[],c=[],E=[],o=_,r=f;o||r;)f=d[o][r]-1,r&&f===d[o][r-1]?c.push(h[h.length]={status:i,value:t[--r],index:r}):o&&f===d[o-1][r]?E.push(h[h.length]={status:n,value:e[--o],index:o}):(--r,--o,s.sparse||h.push({status:"retained",value:t[r]}));return p.a.Jc(E,c,!s.dontLimitMoves&&10*_),h.reverse()}return function(t,i,n){
  3. return n="boolean"==typeof n?{dontLimitMoves:n}:n||{},t=t||[],i=i||[],t.length<i.length?e(t,i,"added","deleted",n):e(i,t,"deleted","added",n)}}(),p.b("utils.compareArrays",p.a.Ob),function(){function t(t,i,n,s,o){var r=[],a=p.$(function(){var e=i(n,o,p.a.Ua(r,t))||[];0<r.length&&(p.a.Wc(r,e),s&&p.v.K(s,null,[n,e,o])),r.length=0,p.a.gb(r,e)},null,{l:t,Sa:function(){return!p.a.jd(r)}});return{Y:r,$:a.ja()?a:e}}var i=p.a.g.Z(),n=p.a.g.Z();p.a.cc=function(s,o,r,a,l,u){function h(e){_={Aa:e,nb:p.sa(m++)},T.push(_),E||S.push(_)}function c(e){_=f[e],m!==_.nb.w()&&R.push(_),_.nb(m++),p.a.Ua(_.Y,s),T.push(_)}function d(e,t){if(e)for(var i=0,n=t.length;i<n;i++)p.a.C(t[i].Y,function(n){e(n,i,t[i].Aa)})}o=o||[],"undefined"==typeof o.length&&(o=[o]),a=a||{};var _,f=p.a.g.get(s,i),E=!f,T=[],g=0,m=0,O=[],N=[],I=[],R=[],S=[],A=0;if(E)p.a.C(o,h);else{if(!u||f&&f._countWaitingForRemove){var D=p.a.Mb(f,function(e){return e.Aa});u=p.a.Ob(D,o,{dontLimitMoves:a.dontLimitMoves,sparse:!0})}for(var P,v,C,D=0;P=u[D];D++)switch(v=P.moved,C=P.index,P.status){case"deleted":for(;g<C;)c(g++);v===e&&(_=f[g],_.$&&(_.$.s(),_.$=e),p.a.Ua(_.Y,s).length&&(a.beforeRemove&&(T.push(_),A++,_.Aa===n?_=null:I.push(_)),_&&O.push.apply(O,_.Y))),g++;break;case"added":for(;m<C;)c(g++);v!==e?(N.push(T.length),c(v)):h(P.value)}for(;m<o.length;)c(g++);T._countWaitingForRemove=A}p.a.g.set(s,i,T),d(a.beforeMove,R),p.a.C(O,a.beforeRemove?p.na:p.removeNode);var y,b,L;try{L=s.ownerDocument.activeElement}catch(e){}if(N.length)for(;(D=N.shift())!=e;){for(_=T[D],y=e;D;)if((b=T[--D].Y)&&b.length){y=b[b.length-1];break}for(o=0;g=_.Y[o];y=g,o++)p.h.Vb(s,g,y)}for(D=0,N=p.h.firstChild(s);_=T[D];D++){for(_.Y||p.a.extend(_,t(s,r,_.Aa,l,_.nb)),o=0;g=_.Y[o];N=g.nextSibling,y=g,o++)g!==N&&p.h.Vb(s,g,y);!_.Dd&&l&&(l(_.Aa,_.Y,_.nb),_.Dd=!0,y=_.Y[_.Y.length-1])}for(L&&s.ownerDocument.activeElement!=L&&L.focus(),d(a.beforeRemove,I),D=0;D<I.length;++D)I[D].Aa=n;d(a.afterMove,R),d(a.afterAdd,S)}}(),p.b("utils.setDomNodeChildrenFromArrayMapping",p.a.cc),p.ba=function(){this.allowTemplateRewriting=!1},p.ba.prototype=new p.ca,p.ba.prototype.constructor=p.ba,p.ba.prototype.renderTemplateSource=function(e,t,i,n){return(t=(9>p.a.W?0:e.nodes)?e.nodes():null)?p.a.la(t.cloneNode(!0).childNodes):(e=e.text(),p.a.ta(e,n))},p.ba.Na=new p.ba,p.ec(p.ba.Na),p.b("nativeTemplateEngine",p.ba),function(){p.Za=function(){var e=this.Gd=function(){if(!s||!s.tmpl)return 0;try{if(0<=s.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,o,r){if(r=r||i,o=o||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var a=t.data("precompiled");return a||(a=t.text()||"",a=s.template(null,"{{ko_with $item.koBindingContext}}"+a+"{{/ko_with}}"),t.data("precompiled",a)),t=[n.$data],n=s.extend({koBindingContext:n},o.templateOptions),n=s.tmpl(a,t,n),n.appendTo(r.createElement("div")),s.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){i.write("<script type='text/html' id='"+e+"'>"+t+"</script>")},0<e&&(s.tmpl.tag.ko_code={open:"__.push($1 || '');"},s.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},p.Za.prototype=new p.ca,p.Za.prototype.constructor=p.Za;var e=new p.Za;0<e.Gd&&p.ec(e),p.b("jqueryTmplTemplateEngine",p.Za)}()})}()}(),function(e){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?e(require("knockout"),exports):"function"==typeof define&&define.amd?define("koMapping",["knockout","exports"],e):e(ko,ko.mapping={})}(function(e,t){function i(e,n){var s,o;for(o in n)if(n.hasOwnProperty(o)&&n[o])if(s=t.getType(e[o]),o&&e[o]&&"array"!==s&&"string"!==s)i(e[o],n[o]);else if("array"===t.getType(e[o])&&"array"===t.getType(n[o])){s=e;for(var r=o,a=e[o],l=n[o],u={},h=a.length-1;0<=h;--h)u[a[h]]=a[h];for(h=l.length-1;0<=h;--h)u[l[h]]=l[h];a=[],l=void 0;for(l in u)a.push(u[l]);s[r]=a}else e[o]=n[o]}function n(e,t){var n={};return i(n,e),i(n,t),n}function s(e,t){for(var i=n({},e),s=O.length-1;0<=s;s--){var r=O[s];i[r]&&(i[""]instanceof Object||(i[""]={}),i[""][r]=i[r],delete i[r])}return t&&(i.ignore=o(t.ignore,i.ignore),i.include=o(t.include,i.include),i.copy=o(t.copy,i.copy),i.observe=o(t.observe,i.observe)),i.ignore=o(i.ignore,R.ignore),i.include=o(i.include,R.include),i.copy=o(i.copy,R.copy),i.observe=o(i.observe,R.observe),i.mappedProperties=i.mappedProperties||{},i.copiedProperties=i.copiedProperties||{},i}function o(i,n){return"array"!==t.getType(i)&&(i="undefined"===t.getType(i)?[]:[i]),"array"!==t.getType(n)&&(n="undefined"===t.getType(n)?[]:[n]),e.utils.arrayGetDistinctValues(i.concat(n))}function r(i,s,o,l,_,p,m){var O="array"===t.getType(e.utils.unwrapObservable(s));if(p=p||"",t.isMapped(i)){var I=e.utils.unwrapObservable(i)[T];o=n(I,o)}var R=m||_,S=function(){return o[l]&&o[l].create instanceof Function},A=function(t){var i=f,n=e.dependentObservable;return e.dependentObservable=function(t,n,s){s=s||{},t&&"object"==typeof t&&(s=t);var o=s.deferEvaluation,r=!1;if(s.deferEvaluation=!0,t=new g(t,n,s),!o){var a=t,o=e.dependentObservable;e.dependentObservable=g,t=e.isWriteableObservable(a),e.dependentObservable=o,o=g({read:function(){return r||(e.utils.arrayRemoveItem(i,a),r=!0),a.apply(a,arguments)},write:t&&function(e){return a(e)},deferEvaluation:!0}),o.__DO=a,t=o,i.push(t)}return t},e.dependentObservable.fn=g.fn,e.computed=e.dependentObservable,t=e.utils.unwrapObservable(_)instanceof Array?o[l].create({data:t||s,parent:R,skip:N}):o[l].create({data:t||s,parent:R}),e.dependentObservable=n,e.computed=e.dependentObservable,t},D=function(){return o[l]&&o[l].update instanceof Function},P=function(t,i){var n={data:i||s,parent:R,target:e.utils.unwrapObservable(t)};return e.isWriteableObservable(t)&&(n.observable=t),o[l].update(n)};if(m=E.get(s))return m;if(l=l||"",O){var O=[],v=!1,C=function(e){return e};o[l]&&o[l].key&&(C=o[l].key,v=!0),e.isObservable(i)||(i=e.observableArray([]),i.mappedRemove=function(e){var t="function"==typeof e?e:function(t){return t===C(e)};return i.remove(function(e){return t(C(e))})},i.mappedRemoveAll=function(t){var n=h(t,C);return i.remove(function(t){return-1!=e.utils.arrayIndexOf(n,C(t))})},i.mappedDestroy=function(e){var t="function"==typeof e?e:function(t){return t===C(e)};return i.destroy(function(e){return t(C(e))})},i.mappedDestroyAll=function(t){var n=h(t,C);return i.destroy(function(t){return-1!=e.utils.arrayIndexOf(n,C(t))})},i.mappedIndexOf=function(t){var n=h(i(),C);return t=C(t),e.utils.arrayIndexOf(n,t)},i.mappedGet=function(e){return i()[i.mappedIndexOf(e)]},i.mappedCreate=function(t){if(-1!==i.mappedIndexOf(t))throw Error("There already is an object with the key that you specified.");var n=S()?A(t):t;return D()&&(t=P(n,t),e.isWriteableObservable(n)?n(t):n=t),i.push(n),n}),m=h(e.utils.unwrapObservable(i),C).sort(),I=h(s,C),v&&I.sort(),v=e.utils.compareArrays(m,I),m={};var y,b=e.utils.unwrapObservable(s),L={},w=!0,I=0;for(y=b.length;I<y;I++){var M=C(b[I]);if(void 0===M||M instanceof Object){w=!1;break}L[M]=b[I]}var b=[],U=0,I=0;for(y=v.length;I<y;I++){var G,M=v[I],k=p+"["+I+"]";switch(M.status){case"added":var x=w?L[M.value]:u(e.utils.unwrapObservable(s),M.value,C);G=r(void 0,x,o,l,i,k,_),S()||(G=e.utils.unwrapObservable(G)),k=a(e.utils.unwrapObservable(s),x,m),G===N?U++:b[k-U]=G,m[k]=!0;break;case"retained":x=w?L[M.value]:u(e.utils.unwrapObservable(s),M.value,C),G=u(i,M.value,C),r(G,x,o,l,i,k,_),k=a(e.utils.unwrapObservable(s),x,m),b[k]=G,m[k]=!0;break;case"deleted":G=u(i,M.value,C)}O.push({event:M.status,item:G})}i(b),o[l]&&o[l].arrayChanged&&e.utils.arrayForEach(O,function(e){o[l].arrayChanged(e.event,e.item)})}else if(d(s)){if(i=e.utils.unwrapObservable(i),!i){if(S())return v=A(),D()&&(v=P(v)),v;if(D())return P(v);i={}}if(D()&&(i=P(i)),E.save(s,i),D())return i;c(s,function(t){var n=p.length?p+"."+t:t;if(-1==e.utils.arrayIndexOf(o.ignore,n))if(-1!=e.utils.arrayIndexOf(o.copy,n))i[t]=s[t];else if("object"!=typeof s[t]&&"array"!=typeof s[t]&&0<o.observe.length&&-1==e.utils.arrayIndexOf(o.observe,n))i[t]=s[t],o.copiedProperties[n]=!0;else{var a=E.get(s[t]),l=r(i[t],s[t],o,t,i,n,i),a=a||l;0<o.observe.length&&-1==e.utils.arrayIndexOf(o.observe,n)?(i[t]=a(),o.copiedProperties[n]=!0):(e.isWriteableObservable(i[t])?(a=e.utils.unwrapObservable(a),i[t]()!==a&&i[t](a)):(a=void 0===i[t]?a:e.utils.unwrapObservable(a),i[t]=a),o.mappedProperties[n]=!0)}})}else switch(t.getType(s)){case"function":D()?e.isWriteableObservable(s)?(s(P(s)),i=s):i=P(s):i=s;break;default:if(e.isWriteableObservable(i))return G=D()?P(i):e.utils.unwrapObservable(s),i(G),G;S()||D(),i=S()?A():e.observable(e.utils.unwrapObservable(s)),D()&&i(P(i))}return i}function a(e,t,i){for(var n=0,s=e.length;n<s;n++)if(!0!==i[n]&&e[n]===t)return n;return null}function l(i,n){var s;return n&&(s=n(i)),"undefined"===t.getType(s)&&(s=i),e.utils.unwrapObservable(s)}function u(t,i,n){t=e.utils.unwrapObservable(t);for(var s=0,o=t.length;s<o;s++){var r=t[s];if(l(r,n)===i)return r}throw Error("When calling ko.update*, the key '"+i+"' was not found!")}function h(t,i){return e.utils.arrayMap(e.utils.unwrapObservable(t),function(e){return i?l(e,i):e})}function c(e,i){if("array"===t.getType(e))for(var n=0;n<e.length;n++)i(n);else for(n in e)i(n)}function d(e){var i=t.getType(e);return("object"===i||"array"===i)&&null!==e}function _(){var t=[],i=[];this.save=function(n,s){var o=e.utils.arrayIndexOf(t,n);0<=o?i[o]=s:(t.push(n),i.push(s))},this.get=function(n){return n=e.utils.arrayIndexOf(t,n),0<=n?i[n]:void 0}}function p(){var e={},t=function(t){var i;try{i=t}catch(e){i="$$$"}return t=e[i],void 0===t&&(t=new _,e[i]=t),t};this.save=function(e,i){t(e).save(e,i)},this.get=function(e){return t(e).get(e)}}var f,E,T="__ko_mapping__",g=e.dependentObservable,m=0,O=["create","update","key","arrayChanged"],N={},I={include:["_destroy"],ignore:[],copy:[],observe:[]},R=I;t.isMapped=function(t){return(t=e.utils.unwrapObservable(t))&&t[T]},t.fromJS=function(e){if(0==arguments.length)throw Error("When calling ko.fromJS, pass the object you want to convert.");try{m++||(f=[],E=new p);var t,i;2==arguments.length&&(arguments[1][T]?i=arguments[1]:t=arguments[1]),3==arguments.length&&(t=arguments[1],i=arguments[2]),i&&(t=n(t,i[T])),t=s(t);var o=r(i,e,t);if(i&&(o=i),!--m)for(;f.length;){var a=f.pop();a&&(a(),a.__DO.throttleEvaluation=a.throttleEvaluation)}return o[T]=n(o[T],t),o}catch(e){throw m=0,e}},t.fromJSON=function(i){var n=e.utils.parseJson(i);return arguments[0]=n,t.fromJS.apply(this,arguments)},t.updateFromJS=function(){throw Error("ko.mapping.updateFromJS, use ko.mapping.fromJS instead. Please note that the order of parameters is different!")},t.updateFromJSON=function(){throw Error("ko.mapping.updateFromJSON, use ko.mapping.fromJSON instead. Please note that the order of parameters is different!")},t.toJS=function(i,n){if(R||t.resetDefaultOptions(),0==arguments.length)throw Error("When calling ko.mapping.toJS, pass the object you want to convert.");if("array"!==t.getType(R.ignore))throw Error("ko.mapping.defaultOptions().ignore should be an array.");if("array"!==t.getType(R.include))throw Error("ko.mapping.defaultOptions().include should be an array.");if("array"!==t.getType(R.copy))throw Error("ko.mapping.defaultOptions().copy should be an array.");return n=s(n,i[T]),t.visitModel(i,function(t){return e.utils.unwrapObservable(t)},n)},t.toJSON=function(i,n){var s=t.toJS(i,n);return e.utils.stringifyJson(s)},t.defaultOptions=function(){return 0<arguments.length?void(R=arguments[0]):R},t.resetDefaultOptions=function(){R={include:I.include.slice(0),ignore:I.ignore.slice(0),copy:I.copy.slice(0)}},t.getType=function(e){if(e&&"object"==typeof e){if(e.constructor===Date)return"date";if(e.constructor===Array)return"array"}return typeof e},t.visitModel=function(i,n,o){o=o||{},o.visitedObjects=o.visitedObjects||new p;var r,a=e.utils.unwrapObservable(i);if(!d(a))return n(i,o.parentName);o=s(o,a[T]),n(i,o.parentName),r="array"===t.getType(a)?[]:{},o.visitedObjects.save(i,r);var l=o.parentName;return c(a,function(i){if(!o.ignore||-1==e.utils.arrayIndexOf(o.ignore,i)){var s=a[i],u=o,h=l||"";if("array"===t.getType(a)?l&&(h+="["+i+"]"):(l&&(h+="."),h+=i),u.parentName=h,-1!==e.utils.arrayIndexOf(o.copy,i)||-1!==e.utils.arrayIndexOf(o.include,i)||!a[T]||!a[T].mappedProperties||a[T].mappedProperties[i]||!a[T].copiedProperties||a[T].copiedProperties[i]||"array"===t.getType(a))switch(t.getType(e.utils.unwrapObservable(s))){case"object":case"array":case"undefined":u=o.visitedObjects.get(s),r[i]="undefined"!==t.getType(u)?u:t.visitModel(s,n,o);break;default:r[i]=n(s,o.parentName)}}}),r}}),function(e,t){var n={};e.trafficCop=function(t,s){var o,r=t;if(2===arguments.length&&(r=e.extend(!0,s,{url:t})),o=JSON.stringify(r),o in n)for(i in{success:1,error:1,complete:1})n[o][i]=r[i];else n[o]=e.ajax(r).always(function(){delete n[o]});return n[o]}}(jQuery),define("trafficCop",["jquery"],function(){}),function(e,t,i){var n={templates:{},storeTemplate:function(e,t){this.templates[e]=t},getTemplate:function(e){return this.templates[e]},purge:function(){this.templates={}}},s={templateIds:[],storeTemplate:function(e,t){var i=document.getElementById(e);null===i&&(this.templateIds.push(e),i=document.createElement("script"),i.type="text/html",i.id=e,document.body.appendChild(i)),i.text=t},getTemplate:function(e){return document.getElementById(e)},purge:function(){for(var e=0;e<this.templateIds.length;e++)document.body.removeChild(document.getElementById(this.templateIds[e]));this.templateIds=[]}},o="<div class='infuser-error'>The template <a href='{TEMPLATEURL}'>{TEMPLATEID}</a> could not be loaded. {STATUS}</div>",r=function(e,t,i){return o.replace("{STATUS}",e).replace("{TEMPLATEID}",t).replace("{TEMPLATEURL}",i)},a=[],l={getTemplatePath:function(e){var t=e.templatePrefix+e.templateId+e.templateSuffix;return e.templateUrl===i||""===e.templateUrl?t:e.templateUrl+"/"+t},templateGetSuccess:function(e,t){return function(i){u.store.storeTemplate(e,i),t(u.store.getTemplate(e))}},templateGetError:function(t,i,n){return function(s){e.inArray(t,a)===-1&&a.push(t);var o=r("HTTP Status code: "+s.status,t,i);u.store.storeTemplate(t,o),n(u.store.getTemplate(t))}},getAjaxOptions:function(e){}},u={storageOptions:{hash:n,script:s},store:n,defaults:{templateUrl:"",templateSuffix:".html",templatePrefix:"",ajax:{async:!0,dataType:"html",type:"GET"},target:function(e){return"#"+e},loadingTemplate:{content:'<div class="infuser-loading"></div>',transitionIn:function(t,i){var n=e(t);n.hide(),n.html(i),n.fadeIn()},transitionOut:function(t){e(t).html("")}},postRender:function(e){},preRender:function(e,t){},render:function(t,i){var n=e(t);0===n.children().length?n.append(e(i)):n.children().replaceWith(e(i))},bindingInstruction:function(e,t){return e},useLoadingTemplate:!0},get:function(t,i){var n,s=e.extend({},u.defaults,"object"==typeof t?t:{templateId:t});s.ajax.url=l.getTemplatePath(s),n=u.store.getTemplate(s.ajax.url),n&&e.inArray(s.ajax.url,a)===-1?i(n):(s.ajax.success=l.templateGetSuccess(s.ajax.url,i),s.ajax.error=l.templateGetError(s.templateId,s.ajax.url,i),e.trafficCop(s.ajax))},getSync:function(t){var i,n,s=e.extend({},u.defaults,"object"==typeof t?t:{templateId:t},{ajax:{async:!1}});return s.ajax.url=l.getTemplatePath(s),i=u.store.getTemplate(s.ajax.url),i&&e.inArray(s.ajax.url,a)===-1||(n=null,s.ajax.success=function(e){n=e},s.ajax.error=function(t){e.inArray(s.ajax.url)===-1&&a.push(s.ajax.url),n=r("HTTP Status code: exception.status",s.templateId,s.ajax.url)},e.ajax(s.ajax),null===n?n=r("An unknown error occurred.",s.templateId,s.ajax.url):(u.store.storeTemplate(s.ajax.url,n),i=u.store.getTemplate(s.ajax.url))),i},infuse:function(t,n){var s=e.extend({},u.defaults,"object"==typeof t?t:n,"string"==typeof t?{templateId:t}:i),o="function"==typeof s.target?s.target(t):s.target;s.useLoadingTemplate&&s.loadingTemplate.transitionIn(o,s.loadingTemplate.content),u.get(s,function(e){var t=e;s.preRender(o,t),t=s.bindingInstruction(t,s.model),s.useLoadingTemplate&&s.loadingTemplate.transitionOut(o),s.render(o,t),s.postRender(o)})}};t.infuser=u}(jQuery,window),define("infuser",["jquery","trafficCop"],function(){}),define("koExternalTemplate",["knockout","jquery","infuser"],function(e){var t=function(t,i,n){var s,o=this;o.bindingContext=n,o.templateId=t,o.loaded=!1,o.template=e.observable(infuser.defaults.useLoadingTemplate?infuser.defaults.loadingTemplate.content:void 0),o.template.data={},o.options=e.utils.extend({},i),o.options.templateId=t,o.options&&o.options.afterRender&&(s=o.options.afterRender,i.afterRender=function(){o.loaded&&s.apply(o.options,arguments)},o.options.afterRender=i.afterRender)};e.utils.extend(t.prototype,{data:function(e,t){return 1===arguments.length?("precompiled"===e&&this.template(),this.template.data[e]):void(this.template.data[e]=t)},text:function(e){return this.loaded||this.getTemplate(),0===arguments.length?this.template():void this.template(arguments[0])},getTemplate:function(){var e=this;"undefined"!=typeof e.options.templateSrc?(e.template(e.options.templateSrc),e.loaded=!0):infuser.get(e.options,function(t){e.data("precompiled",null),e.template(t),e.loaded=!0})}});var i=function(i){var n=i?new i:new e.nativeTemplateEngine;return n.templates={},n.makeTemplateSource=function(i,s,o){if("string"==typeof i){var r=document.getElementById(i);return r?new e.templateSources.domElement(r):o.templateUrl?(n.templates[o.templateUrl+i]||(n.templates[o.templateUrl+i]=new t(i,o,s)),n.templates[o.templateUrl+i]):(n.templates[i]||(n.templates[i]=new t(i,o)),n.templates[i])}if(1==i.nodeType||8==i.nodeType)return new e.templateSources.anonymousTemplate(i)},n.renderTemplate=function(e,t,i){var s=n.makeTemplateSource(e,t,i);return n.renderTemplateSource(s,t,i)},n};e.KoExternalTemplateEngine=i,$.tmpl&&$.tmpl.tag.tmpl.open.toString().indexOf("__")>=0?e.koExternalTemplateEngine=new i(e.jqueryTmplTemplateEngine):e.koExternalTemplateEngine=new i,e.setTemplateEngine(e.koExternalTemplateEngine)}),function(e){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?e(require("knockout"),exports):"function"==typeof define&&define.amd?define("koValidate",["knockout","exports"],e):e(ko,ko.validation={})}(function(e,t){function i(e){var t="max"===e;return function(i,n){if(o.utils.isEmptyVal(i))return!0;var s,r;void 0===n.typeAttr?(r="text",s=n):(r=n.typeAttr,s=n.value),isNaN(s)||s instanceof Date||(r="number");var a,l,u;switch(r.toLowerCase()){case"week":if(a=/^(\d{4})-W(\d{2})$/,l=i.match(a),null===l)throw new Error("Invalid value for "+e+" attribute for week input. Should look like '2000-W33' http://www.w3.org/TR/html-markup/input.week.html#input.week.attrs.min");return u=s.match(a),!!u&&(t?l[1]<u[1]||l[1]===u[1]&&l[2]<=u[2]:l[1]>u[1]||l[1]===u[1]&&l[2]>=u[2]);case"month":if(a=/^(\d{4})-(\d{2})$/,l=i.match(a),null===l)throw new Error("Invalid value for "+e+" attribute for month input. Should look like '2000-03' http://www.w3.org/TR/html-markup/input.month.html#input.month.attrs.min");return u=s.match(a),!!u&&(t?l[1]<u[1]||l[1]===u[1]&&l[2]<=u[2]:l[1]>u[1]||l[1]===u[1]&&l[2]>=u[2]);case"number":case"range":return t?!isNaN(i)&&parseFloat(i)<=parseFloat(s):!isNaN(i)&&parseFloat(i)>=parseFloat(s);default:return t?i<=s:i>=s}}}function n(e,t,i){return!!t.validator(e(),void 0===i.params||a(i.params))||(e.setError(o.formatMessage(i.message||t.message,a(i.params),e)),!1)}function s(e,t,i){e.isValidating(!0);var n=function(n){var s=!1,r="";return e.__valid__()?(n.message?(s=n.isValid,r=n.message):s=n,s||(e.error(o.formatMessage(r||i.message||t.message,a(i.params),e)),e.__valid__(s)),void e.isValidating(!1)):void e.isValidating(!1)};o.utils.async(function(){t.validator(e(),void 0===i.params||a(i.params),n)})}if("undefined"==typeof e)throw new Error("Knockout is required, please ensure it is loaded before loading this validation plug-in");e.validation=t;var o=e.validation,r=e.utils,a=r.unwrapObservable,l=r.arrayForEach,u=r.extend,h={registerExtenders:!0,messagesOnModified:!0,errorsAsTitle:!0,errorsAsTitleOnModified:!1,messageTemplate:null,insertMessages:!0,parseInputAttributes:!1,writeInputAttributes:!1,decorateInputElement:!1,decorateElementOnModified:!0,errorClass:null,errorElementClass:"validationElement",errorMessageClass:"validationMessage",allowHtmlMessages:!1,grouping:{deep:!1,observable:!0,live:!1},validate:{}},c=u({},h);c.html5Attributes=["required","pattern","min","max","step"],c.html5InputTypes=["email","number","date"],c.reset=function(){u(c,h)},o.configuration=c,o.utils=function(){var e=(new Date).getTime(),t={},i="__ko_validation__";return{isArray:function(e){return e.isArray||"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"object"==typeof e},isNumber:function(e){return!isNaN(e)},isObservableArray:function(e){return!!e&&"function"==typeof e.remove&&"function"==typeof e.removeAll&&"function"==typeof e.destroy&&"function"==typeof e.destroyAll&&"function"==typeof e.indexOf&&"function"==typeof e.replace},values:function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t},getValue:function(e){return"function"==typeof e?e():e},hasAttribute:function(e,t){return null!==e.getAttribute(t)},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,i){return e.setAttribute(t,i)},isValidatable:function(e){return!!(e&&e.rules&&e.isValid&&e.isModified)},insertAfter:function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},newId:function(){return e+=1},getConfigOptions:function(e){var t=o.utils.contextFor(e);return t||o.configuration},setDomData:function(e,n){var s=e[i];s||(e[i]=s=o.utils.newId()),t[s]=n},getDomData:function(e){var n=e[i];if(n)return t[n]},contextFor:function(e){switch(e.nodeType){case 1:case 8:var t=o.utils.getDomData(e);if(t)return t;if(e.parentNode)return o.utils.contextFor(e.parentNode)}},isEmptyVal:function(e){return void 0===e||(null===e||(""===e||void 0))},getOriginalElementTitle:function(e){var t=o.utils.getAttribute(e,"data-orig-title"),i=e.title,n=o.utils.hasAttribute(e,"data-orig-title");return n?t:i},async:function(e){window.setImmediate?window.setImmediate(e):window.setTimeout(e,0)},forEach:function(e,t){if(o.utils.isArray(e))return l(e,t);for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}}}();var d=function(){function t(e){l(e.subscriptions,function(e){e.dispose()}),e.subscriptions=[]}function i(e){e.options.deep&&(l(e.flagged,function(e){delete e.__kv_traversed}),e.flagged.length=0),e.options.live||t(e)}function n(e,n){n.validatables=[],t(n),s(e,n),i(n)}function s(t,i,n){var o=[],r=t.peek?t.peek():t;t.__kv_traversed!==!0&&(i.options.deep&&(t.__kv_traversed=!0,i.flagged.push(t)),n=void 0!==n?n:i.options.deep?1:-1,e.isObservable(t)&&(t.errors||_.isValidatable(t)||t.extend({validatable:!0}),i.validatables.push(t),i.options.live&&_.isObservableArray(t)&&i.subscriptions.push(t.subscribe(function(){i.graphMonitor.valueHasMutated()}))),r&&!r._destroy&&(_.isArray(r)?o=r:_.isObject(r)&&(o=_.values(r))),0!==n&&_.forEach(o,function(t){!t||t.nodeType||e.isComputed(t)&&!t.rules||s(t,i,n+1)}))}function h(e){var t=[];return l(e,function(e){_.isValidatable(e)&&!e.isValid()&&t.push(e.error.peek())}),t}var c=0,d=o.configuration,_=o.utils;return{init:function(e,t){c>0&&!t||(e=e||{},e.errorElementClass=e.errorElementClass||e.errorClass||d.errorElementClass,e.errorMessageClass=e.errorMessageClass||e.errorClass||d.errorMessageClass,u(d,e),d.registerExtenders&&o.registerExtenders(),c=1)},reset:o.configuration.reset,group:function(t,i){i=u(u({},d.grouping),i);var s={options:i,graphMonitor:e.observable(),flagged:[],subscriptions:[],validatables:[]},o=null;return o=i.observable?e.computed(function(){return s.graphMonitor(),n(t,s),h(s.validatables)}):function(){return n(t,s),h(s.validatables)},o.showAllMessages=function(e){void 0===e&&(e=!0),o.forEach(function(t){_.isValidatable(t)&&t.isModified(e)})},o.isAnyMessageShown=function(){var e;return e=!!o.find(function(e){return _.isValidatable(e)&&!e.isValid()&&e.isModified()})},o.filter=function(e){return e=e||function(){return!0},o(),r.arrayFilter(s.validatables,e)},o.find=function(e){return e=e||function(){return!0},o(),r.arrayFirst(s.validatables,e)},o.forEach=function(e){e=e||function(){},o(),l(s.validatables,e)},o.map=function(e){return e=e||function(e){return e},o(),r.arrayMap(s.validatables,e)},o._updateState=function(e){if(!_.isObject(e))throw new Error("An object is required.");return t=e,i.observable?void s.graphMonitor.valueHasMutated():(n(e,s),h(s.validatables))},o},formatMessage:function(e,t,i){if(_.isObject(t)&&t.typeAttr&&(t=t.value),"function"==typeof e)return e(t,i);var n=a(t);return null==n&&(n=[]),_.isArray(n)||(n=[n]),e.replace(/{(\d+)}/gi,function(e,t){return"undefined"!=typeof n[t]?n[t]:e})},addRule:function(e,t){e.extend({validatable:!0});var i=!!r.arrayFirst(e.rules(),function(e){return e.rule&&e.rule===t.rule});return i||e.rules.push(t),e},addAnonymousRule:function(e,t){void 0===t.message&&(t.message="Error"),t.onlyIf&&(t.condition=t.onlyIf),o.addRule(e,t)},addExtender:function(t){e.extenders[t]=function(e,i){return i&&(i.message||i.onlyIf)?o.addRule(e,{rule:t,message:i.message,params:!!_.isEmptyVal(i.params)||i.params,condition:i.onlyIf}):o.addRule(e,{rule:t,params:i})}},registerExtenders:function(){if(d.registerExtenders)for(var t in o.rules)o.rules.hasOwnProperty(t)&&(e.extenders[t]||o.addExtender(t))},insertValidationMessage:function(e){var t=document.createElement("SPAN");return t.className=_.getConfigOptions(e).errorMessageClass,_.insertAfter(e,t),t},parseInputValidationAttributes:function(e,t){l(o.configuration.html5Attributes,function(i){if(_.hasAttribute(e,i)){var n=e.getAttribute(i)||!0;if("min"===i||"max"===i){var s=e.getAttribute("type");"undefined"!=typeof s&&s||(s="text"),n={typeAttr:s,value:n}}o.addRule(t(),{rule:i,params:n})}});var i=e.getAttribute("type");l(o.configuration.html5InputTypes,function(e){e===i&&o.addRule(t(),{rule:"date"===e?"dateISO":e,params:!0})})},writeInputValidationAttributes:function(t,i){var n=i();if(n&&n.rules){var s=n.rules();l(o.configuration.html5Attributes,function(i){var n=r.arrayFirst(s,function(e){return e.rule&&e.rule.toLowerCase()===i.toLowerCase()});n&&e.computed({read:function(){var s=e.unwrap(n.params);"pattern"===n.rule&&s instanceof RegExp&&(s=s.source),t.setAttribute(i,s)},disposeWhenNodeIsRemoved:t})}),s=null}},makeBindingHandlerValidatable:function(t){var i=e.bindingHandlers[t].init;e.bindingHandlers[t].init=function(t,n,s,o,r){return i(t,n,s,o,r),e.bindingHandlers.validationCore.init(t,n,s,o,r)}},setRules:function(t,i){var n=function(t,i){if(t&&i)for(var s in i)if(i.hasOwnProperty(s)){var r=i[s];if(t[s]){var l=t[s],u=a(l),h={},c={};for(var d in r)r.hasOwnProperty(d)&&(o.rules[d]?h[d]=r[d]:c[d]=r[d]);if(e.isObservable(l)&&l.extend(h),u&&_.isArray(u))for(var p=0;p<u.length;p++)n(u[p],c);else n(u,c)}}};n(t,i)}}}();u(e.validation,d),o.rules={},o.rules.required={validator:function(e,t){var i;return void 0===e||null===e?!t:(i=e,"string"==typeof e&&(i=String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")),!t||(i+"").length>0)},message:"This field is required."},o.rules.min={validator:i("min"),message:"Please enter a value greater than or equal to {0}."},o.rules.max={validator:i("max"),message:"Please enter a value less than or equal to {0}."},o.rules.minLength={validator:function(e,t){if(o.utils.isEmptyVal(e))return!0;var i=o.utils.isNumber(e)?""+e:e;return i.length>=t},message:"Please enter at least {0} characters."},o.rules.maxLength={validator:function(e,t){if(o.utils.isEmptyVal(e))return!0;var i=o.utils.isNumber(e)?""+e:e;return i.length<=t},message:"Please enter no more than {0} characters."},o.rules.pattern={validator:function(e,t){return o.utils.isEmptyVal(e)||null!==e.toString().match(t)},message:"Please check this value."},o.rules.step={validator:function(e,t){if(o.utils.isEmptyVal(e)||"any"===t)return!0;var i=100*e%(100*t);return Math.abs(i)<1e-5||Math.abs(1-i)<1e-5},message:"The value must increment by {0}."},o.rules.email={validator:function(e,t){return!t||(o.utils.isEmptyVal(e)||t&&/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e))},message:"Please enter a proper email address."},o.rules.date={validator:function(e,t){return!t||(o.utils.isEmptyVal(e)||t&&!/Invalid|NaN/.test(new Date(e)))},message:"Please enter a proper date."},o.rules.dateISO={validator:function(e,t){return!t||(o.utils.isEmptyVal(e)||t&&/^\d{4}[-/](?:0?[1-9]|1[012])[-/](?:0?[1-9]|[12][0-9]|3[01])$/.test(e))},message:"Please enter a proper date."},o.rules.number={validator:function(e,t){return!t||(o.utils.isEmptyVal(e)||t&&/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e))},message:"Please enter a number."},o.rules.digit={validator:function(e,t){return!t||(o.utils.isEmptyVal(e)||t&&/^\d+$/.test(e))},message:"Please enter a digit."},o.rules.phoneUS={validator:function(e,t){return!t||(!!o.utils.isEmptyVal(e)||"string"==typeof e&&(e=e.replace(/\s+/g,""),t&&e.length>9&&e.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)))},message:"Please specify a valid phone number."},o.rules.equal={validator:function(e,t){var i=t;return e===o.utils.getValue(i)},message:"Values must equal."},o.rules.notEqual={validator:function(e,t){var i=t;return e!==o.utils.getValue(i)},message:"Please choose another value."},o.rules.unique={validator:function(e,t){var i=o.utils.getValue(t.collection),n=o.utils.getValue(t.externalValue),s=0;return!e||!i||(r.arrayFilter(i,function(i){e===(t.valueAccessor?t.valueAccessor(i):i)&&s++}),s<(n?1:2))},message:"Please make sure the value is unique."},function(){o.registerExtenders()}(),e.bindingHandlers.validationCore=function(){return{init:function(t,i,n,s,r){var a=o.utils.getConfigOptions(t),l=i();if(a.parseInputAttributes&&o.utils.async(function(){o.parseInputValidationAttributes(t,i)}),a.insertMessages&&o.utils.isValidatable(l)){var u=o.insertValidationMessage(t);a.messageTemplate?e.renderTemplate(a.messageTemplate,{field:l},null,u,"replaceNode"):e.applyBindingsToNode(u,{validationMessage:l})}a.writeInputAttributes&&o.utils.isValidatable(l)&&o.writeInputValidationAttributes(t,i),a.decorateInputElement&&o.utils.isValidatable(l)&&e.applyBindingsToNode(t,{validationElement:l})}}}(),o.makeBindingHandlerValidatable("value"),o.makeBindingHandlerValidatable("checked"),e.bindingHandlers.textInput&&o.makeBindingHandlerValidatable("textInput"),o.makeBindingHandlerValidatable("selectedOptions"),e.bindingHandlers.validationMessage={update:function(t,i){var n=i(),s=o.utils.getConfigOptions(t),l=(a(n),!1),u=!1;if(null===n||"undefined"==typeof n)throw new Error("Cannot bind validationMessage to undefined value. data-bind expression: "+t.getAttribute("data-bind"));l=n.isModified&&n.isModified(),u=n.isValid&&n.isValid();var h=null;s.messagesOnModified&&!l||(h=u?null:n.error);var c=!(s.messagesOnModified&&!l)&&!u,d="none"!==t.style.display;s.allowHtmlMessages?r.setHtml(t,h):e.bindingHandlers.text.update(t,function(){return h}),d&&!c?t.style.display="none":!d&&c&&(t.style.display="")}},e.bindingHandlers.validationElement={
  4. update:function(t,i,n){var s=i(),r=o.utils.getConfigOptions(t),l=(a(s),!1),u=!1;if(null===s||"undefined"==typeof s)throw new Error("Cannot bind validationElement to undefined value. data-bind expression: "+t.getAttribute("data-bind"));l=s.isModified&&s.isModified(),u=s.isValid&&s.isValid();var h=function(){var e={},t=!(r.decorateElementOnModified&&!l)&&!u;return e[r.errorElementClass]=t,e};e.bindingHandlers.css.update(t,h,n),r.errorsAsTitle&&e.bindingHandlers.attr.update(t,function(){var e=!r.errorsAsTitleOnModified||l,i=o.utils.getOriginalElementTitle(t);return e&&!u?{title:s.error,"data-orig-title":i}:!e||u?{title:i,"data-orig-title":null}:void 0})}},e.bindingHandlers.validationOptions=function(){return{init:function(e,t,i,n,s){var r=a(t());if(r){var l=u({},o.configuration);u(l,r),o.utils.setDomData(e,l)}}}}(),e.extenders.validation=function(e,t){return l(o.utils.isArray(t)?t:[t],function(t){o.addAnonymousRule(e,t)}),e},e.extenders.validatable=function(t,i){if(o.utils.isObject(i)||(i={enable:i}),"enable"in i||(i.enable=!0),i.enable&&!o.utils.isValidatable(t)){var n=o.configuration.validate||{},s={throttleEvaluation:i.throttle||n.throttle};t.error=e.observable(null),t.rules=e.observableArray(),t.isValidating=e.observable(!1),t.__valid__=e.observable(!0),t.isModified=e.observable(!1),t.isValid=e.computed(t.__valid__),t.setError=function(e){var i=t.error.peek(),n=t.__valid__.peek();t.error(e),t.__valid__(!1),i===e||n||t.isValid.notifySubscribers()},t.clearError=function(){return t.error(null),t.__valid__(!0),t};var r=t.subscribe(function(){t.isModified(!0)}),a=e.computed(u({read:function(){t(),t.rules();return o.validateObservable(t),!0}},s));u(a,s),t._disposeValidation=function(){t.isValid.dispose(),t.rules.removeAll(),r.dispose(),a.dispose(),delete t.rules,delete t.error,delete t.isValid,delete t.isValidating,delete t.__valid__,delete t.isModified,delete t.setError,delete t.clearError,delete t._disposeValidation}}else i.enable===!1&&t._disposeValidation&&t._disposeValidation();return t},o.validateObservable=function(e){for(var t,i,r=0,a=e.rules(),l=a.length;r<l;r++)if(i=a[r],!i.condition||i.condition())if(t=i.rule?o.rules[i.rule]:i,t.async||i.async)s(e,t,i);else if(!n(e,t,i))return!1;return e.clearError(),!0};var _,p={};o.defineLocale=function(e,t){return e&&t?(p[e.toLowerCase()]=t,t):null},o.locale=function(e){if(e){if(e=e.toLowerCase(),!p.hasOwnProperty(e))throw new Error("Localization "+e+" has not been loaded.");o.localize(p[e]),_=e}return _},o.localize=function(e){var t=o.rules;for(var i in e)t.hasOwnProperty(i)&&(t[i].message=e[i])},function(){var e={},t=o.rules;for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i].message);o.defineLocale("en-us",e)}(),_="en-us",e.applyBindingsWithValidation=function(t,i,n){var s,r=document.body;i&&i.nodeType?(r=i,s=n):s=i,o.init(),s&&(s=u(u({},o.configuration),s),o.utils.setDomData(r,s)),e.applyBindings(t,r)};var f=e.applyBindings;e.applyBindings=function(e,t){o.init(),f(e,t)},e.validatedObservable=function(t,i){if(!i&&!o.utils.isObject(t))return e.observable(t).extend({validatable:!0});var n=e.observable(t);return n.errors=o.group(o.utils.isObject(t)?t:{},i),n.isValid=e.observable(0===n.errors().length),e.isObservable(n.errors)?n.errors.subscribe(function(e){n.isValid(0===e.length)}):e.computed(n.errors).subscribe(function(e){n.isValid(0===e.length)}),n.subscribe(function(e){o.utils.isObject(e)||(e={}),n.errors._updateState(e),n.isValid(0===n.errors().length)}),n}}),function(e){function t(e,t,i,n,s){this._listener=t,this._isOnce=i,this.context=n,this._signal=e,this._priority=s||0}function i(e,t){if("function"!=typeof e)throw Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function n(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){n.prototype.dispatch.apply(e,arguments)}}t.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},n.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(e,i,n,s){var o=this._indexOfListener(e,n);if(o!==-1){if(e=this._bindings[o],e.isOnce()!==i)throw Error("You cannot add"+(i?"":"Once")+"() then add"+(i?"Once":"")+"() the same listener without removing the relationship first.")}else e=new t(this,e,i,n,s),this._addBinding(e);return this.memorize&&this._prevParams&&e.execute(this._prevParams),e},_addBinding:function(e){var t=this._bindings.length;do--t;while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var i,n=this._bindings.length;n--;)if(i=this._bindings[n],i._listener===e&&i.context===t)return n;return-1},has:function(e,t){return this._indexOfListener(e,t)!==-1},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){i(e,"remove");var n=this._indexOfListener(e,t);return n!==-1&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,i=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=i),n){t=this._bindings.slice(),this._shouldPropagate=!0;do n--;while(t[n]&&this._shouldPropagate&&t[n].execute(i)!==!1)}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var s=n;s.Signal=n,"function"==typeof define&&define.amd?define("signals",[],function(){return s}):"undefined"!=typeof module&&module.exports?module.exports=s:e.signals=s}(this),function(){var e=function(e){var t=function(t){function i(e){return String(e||"").replace(/\W/g,"\\$&")}function n(e){if(!e)return"";var t=new RegExp("^"+i(_.prependHash)+"|"+i(_.appendHash)+"$","g");return e.replace(t,"")}function s(){var e=I.exec(_.getURL()),t=e&&e[1]||"";try{return _.raw?t:decodeURIComponent(t)}catch(e){return t}}function o(){return T?T.contentWindow.frameHash:null}function r(){T=O.createElement("iframe"),T.src="about:blank",T.style.display="none",O.body.appendChild(T)}function a(){if(T&&p!==o()){var e=T.contentWindow.document;e.open(),e.write("<html><head><title>"+O.title+'</title><script type="text/javascript">var frameHash="'+p+'";</script></head><body>&nbsp;</body></html>'),e.close()}}function l(e,t){if(p!==e){var i=p;p=e,P&&(t?T.contentWindow.frameHash=e:a()),_.changed.dispatch(n(e),n(i))}}function u(e,t,i){e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent&&e.attachEvent("on"+t,i)}function h(e,t,i){e.removeEventListener?e.removeEventListener(t,i,!1):e.detachEvent&&e.detachEvent("on"+t,i)}function c(e){e=Array.prototype.slice.call(arguments);var t=e.join(_.separator);return t=t?_.prependHash+t.replace(S,"")+_.appendHash:t}function d(e){return e=encodeURI(e),A&&v&&(e=e.replace(/\?/,"%3F")),e}var _,p,f,E,T,g,m=25,O=t.document,N=(t.history,e.Signal),I=/#(.*)$/,R=/(\?.*)|(\#.*)/,S=/^\#/,A=!1,D="onhashchange"in t&&7!==O.documentMode,P=A&&!D,v="file:"===location.protocol;return g=P?function(){var e=s(),t=o();t!==p&&t!==e?_.setHash(n(t)):e!==p&&l(e)}:function(){var e=s();e!==p&&l(e)},_={VERSION:"1.2.0",raw:!1,appendHash:"",prependHash:"/",separator:"/",changed:new N,stopped:new N,initialized:new N,init:function(){E||(p=s(),D?u(t,"hashchange",g):(P&&(T||r(),a()),f=setInterval(g,m)),E=!0,_.initialized.dispatch(n(p)))},stop:function(){E&&(D?h(t,"hashchange",g):(clearInterval(f),f=null),E=!1,_.stopped.dispatch(n(p)))},isActive:function(){return E},getURL:function(){return t.location.href},getBaseURL:function(){return _.getURL().replace(R,"")},setHash:function(e){e=c.apply(null,arguments),e!==p&&(l(e),e===p&&(_.raw||(e=d(e)),t.location.hash="#"+e))},replaceHash:function(e){e=c.apply(null,arguments),e!==p&&(l(e,!0),e===p&&(_.raw||(e=d(e)),t.location.replace("#"+e)))},getHash:function(){return n(p)},getHashAsArray:function(){return _.getHash().split(_.separator)},dispose:function(){_.stop(),_.initialized.dispose(),_.stopped.dispose(),_.changed.dispose(),T=_=t.hasher=null},toString:function(){return'[hasher version="'+_.VERSION+'" hash="'+_.getHash()+'"]'}},_.initialized.memorize=!0,_}(window);return t};"function"==typeof define&&define.amd?define("hasher",["signals"],e):"object"==typeof exports?module.exports=e(require("signals")):window.hasher=e(window.signals)}(),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18next",t):(e="undefined"!=typeof globalThis?globalThis:e||self).i18next=t()}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function i(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?Object(arguments[i]):{},s=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),s.forEach(function(i){t(e,i,n[i])})}return e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(t,i){return!i||"object"!==e(i)&&"function"!=typeof i?r(t):i}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function c(){var e,t,i=new Promise(function(i,n){e=i,t=n});return i.resolve=e,i.reject=t,i}function d(e){return null==e?"":""+e}function _(e,t,i){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function s(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(s())return{};var r=n(o.shift());!e[r]&&i&&(e[r]=new i),e=Object.prototype.hasOwnProperty.call(e,r)?e[r]:{}}return s()?{}:{obj:e,k:n(o.shift())}}function p(e,t,i){var n=_(e,t,Object);n.obj[n.k]=i}function f(e,t){var i=_(e,t),n=i.obj,s=i.k;if(n)return n[s]}function E(e,t,i){var n=f(e,i);return void 0!==n?n:f(t,i)}function T(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function g(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function R(){}var S={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},A=new(function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.init(t,i)}return o(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,i,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(i).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),D=function(){function e(){n(this,e),this.observers={}}return o(e,[{key:"on",value:function(e,t){var i=this;return e.split(" ").forEach(function(e){i.observers[e]=i.observers[e]||[],i.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(i))})}}]),e}(),P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},v="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,C=[" ",",","?","!",";"],y=function(e){function t(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return n(this,t),i=a(this,l(t).call(this)),v&&D.call(r(i)),i.data=e||{},i.options=s,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return h(t,D),o(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,r=[e,t];i&&"string"!=typeof i&&(r=r.concat(i)),i&&"string"==typeof i&&(r=r.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(r=e.split("."));var a=f(this.data,r);return a||!o||"string"!=typeof i?a:function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[i])return t[i];for(var s=i.split(n),o=t,r=0;r<s.length;++r){if(!o)return;if("string"==typeof o[s[r]]&&r+1<s.length)return;if(void 0===o[s[r]]){for(var a=2,l=s.slice(r,r+a).join(n),u=o[l];void 0===u&&s.length>r+a;)a++,u=o[l=s.slice(r,r+a).join(n)];if(void 0===u)return;if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l];var h=s.slice(r+a).join(n);return h?e(u,h,n):void 0}o=o[s[r]]}return o}}(this.data&&this.data[e]&&this.data[e][t],i,s)}},{key:"addResource",value:function(e,t,i,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var r=[e,t];i&&(r=r.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(n=t,t=(r=e.split("."))[1]),this.addNamespaces(t),p(this.data,r,n),s.silent||this.emit("added",e,t,i,n)}},{key:"addResources",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var s in i)"string"!=typeof i[s]&&"[object Array]"!==Object.prototype.toString.apply(i[s])||this.addResource(e,t,s,i[s],{silent:!0});n.silent||this.emit("added",e,t,i)}},{key:"addResourceBundle",value:function(e,t,n,s,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(s=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=f(this.data,a)||{};s?function e(t,i,n){for(var s in i)"__proto__"!==s&&"constructor"!==s&&(s in t?"string"==typeof t[s]||t[s]instanceof String||"string"==typeof i[s]||i[s]instanceof String?n&&(t[s]=i[s]):e(t[s],i[s],n):t[s]=i[s]);return t}(l,n,o):l=i({},l,n),p(this.data,a,l),r.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),t}(),b={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,i,n,s){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,i,n,s))}),t}},L={},w=function(t){function s(e){var t,i,o,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,s),t=a(this,l(s).call(this)),v&&D.call(r(t)),i=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,u=r(t),i.forEach(function(e){o[e]&&(u[e]=o[e])}),t.options=h,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=A.create("translator"),t}return h(s,D),o(s,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var i=this.resolve(e,t);return i&&void 0!==i.res}},{key:"extractFromKey",value:function(e,t){var i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=t.ns||this.options.defaultNS,o=i&&e.indexOf(i)>-1,r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,i){t=t||"",i=i||"";var n=C.filter(function(e){return t.indexOf(e)<0&&i.indexOf(e)<0});if(0===n.length)return!0;var s=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!s.test(e);if(!o){var r=e.indexOf(i);r>0&&!s.test(e.substring(0,r))&&(o=!0)}return o}(e,i,n));if(o&&!r){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:s};var l=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),e=l.join(n)}return"string"==typeof s&&(s=[s]),{key:e,namespaces:s}}},{key:"translate",value:function(t,n,o){var r=this;if("object"!==e(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(t[t.length-1],n),u=l.key,h=l.namespaces,c=h[h.length-1],d=n.lng||this.language,_=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(_){var p=n.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var f=this.resolve(t,n),E=f&&f.res,T=f&&f.usedKey||u,g=f&&f.exactUsedKey||u,m=Object.prototype.toString.apply(E),O=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject;if(N&&E&&"string"!=typeof E&&"boolean"!=typeof E&&"number"!=typeof E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof O||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,E,i({},n,{ns:h})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var I="[object Array]"===m,R=I?[]:{},S=I?g:T;for(var A in E)if(Object.prototype.hasOwnProperty.call(E,A)){var D="".concat(S).concat(a).concat(A);R[A]=this.translate(D,i({},n,{joinArrays:!1,ns:h})),R[A]===D&&(R[A]=E[A])}E=R}}else if(N&&"string"==typeof O&&"[object Array]"===m)(E=E.join(O))&&(E=this.extendTranslation(E,t,n,o));else{var P=!1,v=!1,C=void 0!==n.count&&"string"!=typeof n.count,y=s.hasDefaultValue(n),b=C?this.pluralResolver.getSuffix(d,n.count,n):"",L=n["defaultValue".concat(b)]||n.defaultValue;!this.isValidLookup(E)&&y&&(P=!0,E=L),this.isValidLookup(E)||(v=!0,E=u);var w=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&v?void 0:E,M=y&&L!==E&&this.options.updateMissing;if(v||P||M){if(this.logger.log(M?"updateKey":"missingKey",d,c,u,M?L:E),a){var U=this.resolve(u,i({},n,{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var G=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var x=0;x<k.length;x++)G.push(k[x]);else"all"===this.options.saveMissingTo?G=this.languageUtils.toResolveHierarchy(n.lng||this.language):G.push(n.lng||this.language);var F=function(e,t,i){r.options.missingKeyHandler?r.options.missingKeyHandler(e,c,t,M?i:w,M,n):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,c,t,M?i:w,M,n),r.emit("missingKey",e,c,t,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?G.forEach(function(e){r.pluralResolver.getSuffixes(e).forEach(function(t){F([e],u+t,n["defaultValue".concat(t)]||L)})}):F(G,u,L))}E=this.extendTranslation(E,t,n,f,o),v&&E===u&&this.options.appendNamespaceToMissingKey&&(E="".concat(c,":").concat(u)),(v||P)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(E))}return E}},{key:"extendTranslation",value:function(e,t,n,s,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var a,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var h=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(h=i({},this.options.interpolation.defaultVariables,h)),e=this.interpolator.interpolate(e,h,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return o&&o[0]===i[0]&&!n.context?(r.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):r.translate.apply(r,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,_="string"==typeof d?[d]:d;return null!=e&&_&&_.length&&!1!==n.applyPostProcessor&&(e=b.handle(_,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:s},n):n,this)),e}},{key:"resolve",value:function(e){var t,i,n,s,o,r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!r.isValidLookup(t)){var l=r.extractFromKey(e,a),u=l.key;i=u;var h=l.namespaces;r.options.fallbackNS&&(h=h.concat(r.options.fallbackNS));var c=void 0!==a.count&&"string"!=typeof a.count,d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,_=a.lngs?a.lngs:r.languageUtils.toResolveHierarchy(a.lng||r.language,a.fallbackLng);h.forEach(function(e){r.isValidLookup(t)||(o=e,!L["".concat(_[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(o)&&(L["".concat(_[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(i,'" for languages "').concat(_.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(i){if(!r.isValidLookup(t)){s=i;var o,l,h=u,_=[h];for(r.i18nFormat&&r.i18nFormat.addLookupKeys?r.i18nFormat.addLookupKeys(_,u,i,e,a):(c&&(o=r.pluralResolver.getSuffix(i,a.count,a)),c&&d&&_.push(h+o),d&&_.push(h+="".concat(r.options.contextSeparator).concat(a.context)),c&&_.push(h+=o));l=_.pop();)r.isValidLookup(t)||(n=l,t=r.getResource(i,e,l,a))}}))})}}),{res:t,usedKey:i,exactUsedKey:n,usedLng:s,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),s}(),M=function(){function e(t){n(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=A.create("languageUtils")}return o(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(function(e){return e.toLowerCase()}):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=m(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=m(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=m(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,i=this;return e?(e.forEach(function(e){if(!t){var n=i.formatLanguageCode(e);i.options.supportedLngs&&!i.isSupportedCode(n)||(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=i.getLanguagePartFromCode(e);if(i.isSupportedCode(n))return t=n;t=i.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}},{key:"toResolveHierarchy",value:function(e,t){var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],o=function(e){e&&(i.isSupportedCode(e)?s.push(e):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(function(e){s.indexOf(e)<0&&o(i.formatLanguageCode(e))}),s}}]),e}(),U=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],G={1:function(e){return Number(e>1)},2:function(e){
  5. return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},k=["v1","v2","v3"],x={zero:0,one:1,two:2,few:3,many:4,other:5},F=function(){function e(t){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.languageUtils=t,this.options=s,this.logger=A.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(i={},U.forEach(function(e){e.lngs.forEach(function(t){i[t]={numbers:e.nr,plurals:G[e.fc]}})}),i)}return o(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,i);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return x[e]-x[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,i)}):[]}},{key:"getSuffix",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,i);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var i=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),s=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var o=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):o():"v2"===this.options.compatibilityJSON?o():this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!k.includes(this.options.compatibilityJSON)}}]),e}(),H=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=A.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return o(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:g,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||T("$t("),this.nestingSuffix=t.nestingSuffix?T(t.nestingSuffix):t.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(e,t,n,s){function o(e){return e.replace(/\$/g,"$$$$")}var r,a,l,u=this,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=E(t,h,e);return u.alwaysFormat?u.format(o,void 0,n,i({},s,t,{interpolationkey:e})):o}var r=e.split(u.formatSeparator),a=r.shift().trim(),l=r.join(u.formatSeparator).trim();return u.format(E(t,h,a),l,n,i({},s,t,{interpolationkey:a}))};this.resetRegExp();var _=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return o(e)}},{regex:this.regexp,safeValue:function(e){return o(u.escapeValue?u.escape(e):e)}}].forEach(function(t){for(l=0;r=t.regex.exec(e);){if(void 0===(a=c(r[1].trim())))if("function"==typeof _){var i=_(e,r,s);a="string"==typeof i?i:""}else{if(p){a=r[0];continue}u.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||u.useRawValueToEscape||(a=d(a));var n=t.safeValue(a);if(e=e.replace(r[0],n),p?(t.regex.lastIndex+=n.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++l>=u.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){function n(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var s=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(s[1]);e=s[0],o=(o=this.interpolate(o,l)).replace(/'/g,'"');try{l=JSON.parse(o),t&&(l=i({},t,l))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete l.defaultValue,e}var s,o,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=i({},a);for(l.applyPostProcessor=!1,delete l.defaultValue;s=this.nestingRegexp.exec(e);){var u=[],h=!1;if(-1!==s[0].indexOf(this.formatSeparator)&&!/{.*}/.test(s[1])){var c=s[1].split(this.formatSeparator).map(function(e){return e.trim()});s[1]=c.shift(),u=c,h=!0}if((o=t(n.call(this,s[1].trim(),l),l))&&s[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=d(o)),o||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(e)),o=""),h&&(o=u.reduce(function(e,t){return r.format(e,t,a.lng,i({},a,{interpolationkey:s[1].trim()}))},o.trim())),e=e.replace(s[0],o),this.regexp.lastIndex=0}return e}}]),e}(),Y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=A.create("formatter"),this.options=t,this.formats={number:function(e,t,i){return new Intl.NumberFormat(t,i).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,i({},n,{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,i({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,i({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,i({},n)).format(e)}},this.init(t)}return o(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e]=t}},{key:"format",value:function(e,t,n,s){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var r=function(e){var t=e.toLowerCase(),i={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase();var s=n[1].substring(0,n[1].length-1);"currency"===t&&s.indexOf(":")<0?i.currency||(i.currency=s.trim()):"relativetime"===t&&s.indexOf(":")<0?i.range||(i.range=s.trim()):s.split(";").forEach(function(e){if(e){var t=N(e.split(":"),2),n=t[0],s=t[1];"false"===s.trim()&&(i[n.trim()]=!1),"true"===s.trim()&&(i[n.trim()]=!0),isNaN(s.trim())||(i[n.trim()]=parseInt(s.trim(),10)),i[n.trim()]||(i[n.trim()]=s.trim())}})}return{formatName:t,formatOptions:i}}(t),a=r.formatName,l=r.formatOptions;if(o.formats[a]){var u=e;try{var h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},c=h.locale||h.lng||s.locale||s.lng||n;u=o.formats[a](e,c,i({},l,s,h))}catch(e){o.logger.warn(e)}return u}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}(),V=function(e){function t(e,i,s){var o,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n(this,t),o=a(this,l(t).call(this)),v&&D.call(r(o)),o.backend=e,o.store=i,o.services=s,o.languageUtils=s.languageUtils,o.options=u,o.logger=A.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(s,u.backend,u),o}return h(t,D),o(t,[{key:"queueLoad",value:function(e,t,i,n){var s=this,o=[],r=[],a=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!i.reload&&s.store.hasResourceBundle(e,t)?s.state[a]=2:s.state[a]<0||(1===s.state[a]?r.indexOf(a)<0&&r.push(a):(s.state[a]=1,n=!1,r.indexOf(a)<0&&r.push(a),o.indexOf(a)<0&&o.push(a),l.indexOf(t)<0&&l.push(t)))}),n||a.push(e)}),(o.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:n}),{toLoad:o,pending:r,toLoadLanguages:a,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,i){var n=e.split("|"),s=n[0],o=n[1];t&&this.emit("failedLoading",s,o,t),i&&this.store.addResourceBundle(s,o,i),this.state[e]=t?-1:2;var r={};this.queue.forEach(function(i){var n,a,l,u,h,c;n=i.loaded,a=o,u=_(n,[s],Object),h=u.obj,c=u.k,h[c]=h[c]||[],l&&(h[c]=h[c].concat(a)),l||h[c].push(a),function(e,t){for(var i=e.indexOf(t);-1!==i;)e.splice(i,1),i=e.indexOf(t)}(i.pending,e),t&&i.errors.push(t),0!==i.pending.length||i.done||(Object.keys(i.loaded).forEach(function(e){r[e]||(r[e]=[]),i.loaded[e].length&&i.loaded[e].forEach(function(t){r[e].indexOf(t)<0&&r[e].push(t)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,i){var n=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,r=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[i](e,t,function(a,l){a&&l&&s<5?setTimeout(function(){n.read.call(n,e,t,i,s+1,2*o,r)},o):r(a,l)}):r(null,{})}},{key:"prepareLoading",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,n,s);return o.toLoad.length?void o.toLoad.forEach(function(e){i.loadOne(e)}):(o.pending.length||s(),null)}},{key:"load",value:function(e,t,i){this.prepareLoading(e,t,{},i)}},{key:"reload",value:function(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}},{key:"loadOne",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),s=n[0],o=n[1];this.read(s,o,"read",void 0,void 0,function(n,r){n&&t.logger.warn("".concat(i,"loading namespace ").concat(o," for language ").concat(s," failed"),n),!n&&r&&t.logger.log("".concat(i,"loaded namespace ").concat(o," for language ").concat(s),r),t.loaded(e,n,r)})}},{key:"saveMissing",value:function(e,t,n,s,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,s,null,i({},r,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,s))}}]),t}();return new(function(t){function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(n(this,s),e=a(this,l(s).call(this)),v&&D.call(r(e)),e.options=I(t),e.services={},e.logger=A,e.modules={external:[]},i&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,i),a(e,r(e));setTimeout(function(){e.init(t,i)},0)}return e}return h(s,D),o(s,[{key:"init",value:function(){function t(e){return e?"function"==typeof e?new e:e:null}var n=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof s&&(o=s,s={}),!s.defaultNS&&s.ns&&("string"==typeof s.ns?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));var r={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var i={};if("object"===e(t[1])&&(i=t[1]),"string"==typeof t[1]&&(i.defaultValue=t[1]),"string"==typeof t[2]&&(i.tDescription=t[2]),"object"===e(t[2])||"object"===e(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(e){i[e]=n[e]})}return i},interpolation:{escapeValue:!0,format:function(e,t,i,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};if(this.options=i({},r,this.options,I(s)),void 0!==s.keySeparator&&(this.options.userDefinedKeySeparator=s.keySeparator),void 0!==s.nsSeparator&&(this.options.userDefinedNsSeparator=s.nsSeparator),!this.options.isClone){var a;this.modules.logger?A.init(t(this.modules.logger),this.options):A.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=Y);var l=new M(this.options);this.store=new y(this.options.resources,this.options);var u=this.services;u.logger=A,u.resourceStore=this.store,u.languageUtils=l,u.pluralResolver=new F(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&this.options.interpolation.format===r.interpolation.format&&(u.formatter=t(a),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new H(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new V(t(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n.emit.apply(n,[e].concat(i))}),this.modules.languageDetector&&(u.languageDetector=t(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=t(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new w(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n.emit.apply(n,[e].concat(i))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}if(this.format=this.options.interpolation.format,o||(o=R),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&"dev"!==h[0]&&(this.options.lng=h[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){n[e]=function(){var t;return(t=n.store)[e].apply(t,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){n[e]=function(){var t;return(t=n.store)[e].apply(t,arguments),n}});var d=c(),_=function(){var e=function(e,t){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),d.resolve(t),o(e,t)};return n.languages&&"v1"!==n.options.compatibilityAPI&&!n.isInitialized?e(null,n.t.bind(n)):void n.changeLanguage(n.options.lng,e)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),d}},{key:"loadResources",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,n="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return i();var s=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){s.indexOf(e)<0&&s.push(e)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return o(e)}),this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(e,t,i){var n=c();return e||(e=this.languages),t||(t=this.options.ns),i||(i=R),this.services.backendConnector.reload(e,t,function(e){n.resolve(),i(e)}),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var i=this;this.isLanguageChangingTo=e;var n=c();this.emit("languageChanging",e);var s=function(e){if(i.language=e,i.languages=i.services.languageUtils.toResolveHierarchy(e),i.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<i.languages.length;t++){var n=i.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&i.store.hasLanguageSomeTranslations(n)){i.resolvedLanguage=n;break}}},o=function(o){e||o||!i.services.languageDetector||(o=[]);var r="string"==typeof o?o:i.services.languageUtils.getBestMatchFromCodes(o);r&&(i.language||s(r),i.translator.language||i.translator.changeLanguage(r),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(r)),i.loadResources(r,function(e){!function(e,o){o?(s(o),i.translator.changeLanguage(o),i.isLanguageChangingTo=void 0,i.emit("languageChanged",o),i.logger.log("languageChanged",o)):i.isLanguageChangingTo=void 0,n.resolve(function(){return i.t.apply(i,arguments)}),t&&t(e,function(){return i.t.apply(i,arguments)})}(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(t,n,s){var o=this,r=function t(n,r){var a;if("object"!==e(r)){for(var l=arguments.length,u=new Array(l>2?l-2:0),h=2;h<l;h++)u[h-2]=arguments[h];a=o.options.overloadTranslationOptionHandler([n,r].concat(u))}else a=i({},r);a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns;var c=o.options.keySeparator||".",d=s?"".concat(s).concat(c).concat(n):n;return o.t(d,a)};return"string"==typeof t?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=s,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var r=function(e,i){var n=t.services.backendConnector.state["".concat(e,"|").concat(i)];return-1===n||2===n};if(i.precheck){var a=i.precheck(this,r);if(void 0!==a)return a}return!!this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||!(!r(n,e)||s&&!r(o,e))}},{key:"loadNamespaces",value:function(e,t){var i=this,n=c();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){i.options.ns.indexOf(e)<0&&i.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var i=c();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],s=e.filter(function(e){return n.indexOf(e)<0});return s.length?(this.options.preload=n.concat(s),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,o=i({},this.options,t,{isClone:!0}),r=new s(o);return["store","services","language"].forEach(function(t){r[t]=e[t]}),r.services=i({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new w(r.services,r.options),r.translator.on("*",function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];r.emit.apply(r,[e].concat(i))}),r.init(o,n),r.translator.options=r.options,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),s}())}),function(){var e=function(e){function t(e,t){if(e.indexOf)return e.indexOf(t);for(var i=e.length;i--;)if(e[i]===t)return i;return-1}function i(e,i){var n=t(e,i);n!==-1&&e.splice(n,1)}function n(e,t){return"[object "+t+"]"===Object.prototype.toString.call(e)}function s(e){return n(e,"RegExp")}function o(e){return n(e,"Array")}function r(e){return"function"==typeof e}function a(e){var t;return t=null===e||"null"===e?null:"true"===e||"false"!==e&&(e===p||"undefined"===e?p:""===e||isNaN(e)?e:parseFloat(e))}function l(e){for(var t=e.length,i=[];t--;)i[t]=a(e[t]);return i}function u(e,t){for(var i,n,s,r,l=(e||"").replace("?","").split("&"),u=-1,h={};n=l[++u];)i=n.indexOf("="),r=n.substring(0,i),s=decodeURIComponent(n.substring(i+1)),t!==!1&&(s=a(s)),r in h?o(h[r])?h[r].push(s):h[r]=[h[r],s]:h[r]=s;return h}function h(){this.bypassed=new e.Signal,this.routed=new e.Signal,this._routes=[],this._prevRoutes=[],this._piped=[],this.resetState()}function c(t,i,n,o){var r=s(t),a=o.patternLexer;this._router=o,this._pattern=t,this._paramsIds=r?null:a.getParamIds(t),this._optionalParamsIds=r?null:a.getOptionalParamsIds(t),this._matchRegexp=r?t:a.compilePattern(t,o.ignoreCase),this.matched=new e.Signal,this.switched=new e.Signal,i&&this.matched.add(i),this._priority=n||0}var d,_,p;return _=""===/t(.+)?/.exec("t")[1],h.prototype={greedy:!1,greedyEnabled:!0,ignoreCase:!0,ignoreState:!1,shouldTypecast:!1,normalizeFn:null,resetState:function(){this._prevRoutes.length=0,this._prevMatchedRequest=null,this._prevBypassedRequest=null},create:function(){return new h},addRoute:function(e,t,i){var n=new c(e,t,i,this);return this._sortedInsert(n),n},removeRoute:function(e){i(this._routes,e),e._destroy()},removeAllRoutes:function(){for(var e=this.getNumRoutes();e--;)this._routes[e]._destroy();this._routes.length=0},parse:function(e,t){if(e=e||"",t=t||[],this.ignoreState||e!==this._prevMatchedRequest&&e!==this._prevBypassedRequest){var i,n=this._getMatchedRoutes(e),s=0,o=n.length;if(o)for(this._prevMatchedRequest=e,this._notifyPrevRoutes(n,e),this._prevRoutes=n;s<o;)i=n[s],i.route.matched.dispatch.apply(i.route.matched,t.concat(i.params)),i.isFirst=!s,this.routed.dispatch.apply(this.routed,t.concat([e,i])),s+=1;else this._prevBypassedRequest=e,this.bypassed.dispatch.apply(this.bypassed,t.concat([e]));this._pipeParse(e,t)}},_notifyPrevRoutes:function(e,t){for(var i,n=0;i=this._prevRoutes[n++];)i.route.switched&&this._didSwitch(i.route,e)&&i.route.switched.dispatch(t)},_didSwitch:function(e,t){for(var i,n=0;i=t[n++];)if(i.route===e)return!1;return!0},_pipeParse:function(e,t){for(var i,n=0;i=this._piped[n++];)i.parse(e,t)},getNumRoutes:function(){return this._routes.length},_sortedInsert:function(e){var t=this._routes,i=t.length;do--i;while(t[i]&&e._priority<=t[i]._priority);t.splice(i+1,0,e)},_getMatchedRoutes:function(e){for(var t,i=[],n=this._routes,s=n.length;(t=n[--s])&&((!i.length||this.greedy||t.greedy)&&t.match(e)&&i.push({route:t,params:t._getParamsArray(e)}),this.greedyEnabled||!i.length););return i},pipe:function(e){this._piped.push(e)},unpipe:function(e){i(this._piped,e)},toString:function(){return"[crossroads numRoutes:"+this.getNumRoutes()+"]"}},d=new h,d.VERSION="0.12.2",d.NORM_AS_ARRAY=function(e,t){return[t.vals_]},d.NORM_AS_OBJECT=function(e,t){return[t]},c.prototype={greedy:!1,rules:void 0,match:function(e){return e=e||"",this._matchRegexp.test(e)&&this._validateParams(e)},_validateParams:function(e){var t,i=this.rules,n=this._getParamsObject(e);for(t in i)if("normalize_"!==t&&i.hasOwnProperty(t)&&!this._isValidParam(e,t,n))return!1;return!0},_isValidParam:function(e,i,n){var a=this.rules[i],l=n[i],u=!1,h=0===i.indexOf("?");return null==l&&this._optionalParamsIds&&t(this._optionalParamsIds,i)!==-1?u=!0:s(a)?(h&&(l=n[i+"_"]),u=a.test(l)):o(a)?(h&&(l=n[i+"_"]),u=this._isValidArrayRule(a,l)):r(a)&&(u=a(l,e,n)),u},_isValidArrayRule:function(e,i){if(!this._router.ignoreCase)return t(e,i)!==-1;"string"==typeof i&&(i=i.toLowerCase());for(var n,s,o=e.length;o--;)if(n=e[o],s="string"==typeof n?n.toLowerCase():n,s===i)return!0;return!1},_getParamsObject:function(e){for(var i,n,s=this._router.shouldTypecast,o=this._router.patternLexer.getParamValues(e,this._matchRegexp,s),r={},l=o.length;l--;)n=o[l],this._paramsIds&&(i=this._paramsIds[l],0===i.indexOf("?")&&n&&(r[i+"_"]=n,n=u(n,s),o[l]=n),_&&""===n&&t(this._optionalParamsIds,i)!==-1&&(n=void 0,o[l]=n),r[i]=n),r[l]=n;return r.request_=s?a(e):e,r.vals_=o,r},_getParamsArray:function(e){var t,i=this.rules?this.rules.normalize_:null;return i=i||this._router.normalizeFn,t=i&&r(i)?i(e,this._getParamsObject(e)):this._getParamsObject(e).vals_},interpolate:function(e){var t=this._router.patternLexer.interpolate(this._pattern,e);if(!this._validateParams(t))throw new Error("Generated string doesn't validate against `Route.rules`.");return t},dispose:function(){this._router.removeRoute(this)},_destroy:function(){this.matched.dispose(),this.switched.dispose(),this.matched=this.switched=this._pattern=this._matchRegexp=null},toString:function(){return'[Route pattern:"'+this._pattern+'", numListeners:'+this.matched.getNumListeners()+"]"}},h.prototype.patternLexer=function(){function e(){var e,t;for(e in p)p.hasOwnProperty(e)&&(t=p[e],t.id="__CR_"+e+"__",t.save="save"in t?t.save.replace("{{id}}",t.id):t.id,t.rRestore=new RegExp(t.id,"g"))}function t(e,t){var i,n=[];for(e.lastIndex=0;i=e.exec(t);)n.push(i[1]);return n}function i(e){return t(_,e)}function n(e){return t(p.OP.rgx,e)}function s(e,t){return e=e||"",e&&(g===f?e=e.replace(c,""):g===T&&(e=e.replace(d,"")),e=r(e,"rgx","save"),e=e.replace(h,"\\$&"),e=r(e,"rRestore","res"),g===f&&(e="\\/?"+e)),g!==E&&(e+="\\/?"),new RegExp("^"+e+"$",t?"i":"")}function r(e,t,i){var n,s;for(s in p)p.hasOwnProperty(s)&&(n=p[s],e=e.replace(n[t],n[i]));return e}function a(e,t,i){var n=t.exec(e);return n&&(n.shift(),i&&(n=l(n))),n}function u(e,t){if(t=t||{},"string"!=typeof e)throw new Error("Route pattern should be a string.");var i=function(e,i){var n;if(i="?"===i.substr(0,1)?i.substr(1):i,null!=t[i]){if("object"==typeof t[i]){var s,r=[];for(var a in t[i])if(s=t[i][a],o(s))for(var l in s)"[]"==a.slice(-2)?r.push(encodeURI(a.slice(0,-2))+"[]="+encodeURI(s[l])):r.push(encodeURI(a+"="+s[l]));else r.push(encodeURI(a+"="+s));n="?"+r.join("&")}else n=String(t[i]);if(e.indexOf("*")===-1&&n.indexOf("/")!==-1)throw new Error('Invalid value "'+n+'" for segment "'+e+'".')}else{if(e.indexOf("{")!==-1)throw new Error("The segment "+e+" is required.");n=""}return n};return p.OS.trail||(p.OS.trail=new RegExp("(?:"+p.OS.id+")+$")),
  6. e.replace(p.OS.rgx,p.OS.save).replace(_,i).replace(p.OS.trail,"").replace(p.OS.rRestore,"/")}var h=/[\\.+*?\^$\[\](){}\/'#]/g,c=/^\/|\/$/g,d=/\/$/g,_=/(?:\{|:)([^}:]+)(?:\}|:)/g,p={OS:{rgx:/([:}]|\w(?=\/))\/?(:|(?:\{\?))/g,save:"$1{{id}}$2",res:"\\/?"},RS:{rgx:/([:}])\/?(\{)/g,save:"$1{{id}}$2",res:"\\/"},RQ:{rgx:/\{\?([^}]+)\}/g,res:"\\?([^#]+)"},OQ:{rgx:/:\?([^:]+):/g,res:"(?:\\?([^#]*))?"},OR:{rgx:/:([^:]+)\*:/g,res:"(.*)?"},RR:{rgx:/\{([^}]+)\*\}/g,res:"(.+)"},RP:{rgx:/\{([^}]+)\}/g,res:"([^\\/?]+)"},OP:{rgx:/:([^:]+):/g,res:"([^\\/?]+)?/?"}},f=1,E=2,T=3,g=f;return e(),{strict:function(){g=E},loose:function(){g=f},legacy:function(){g=T},getParamIds:i,getOptionalParamsIds:n,getParamValues:a,compilePattern:s,interpolate:u}}(),d};"function"==typeof define&&define.amd?define("crossroads",["signals"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("signals")):window.crossroads=e(window.signals)}(),!function(e){"use strict";"function"==typeof define&&define.amd?define("jqueryui",["jquery"],e):e(jQuery)}(function(e){"use strict";function t(e,t,i){return[parseFloat(e[0])*(E.test(e[0])?t/100:1),parseFloat(e[1])*(E.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function n(e){return null!=e&&e===e.window}function s(e,t,i){return t<=e&&e<t+i}e.ui=e.ui||{},e.ui.version="1.13.2";var o,r=0,a=Array.prototype.hasOwnProperty,l=Array.prototype.slice;e.cleanData=(o=e.cleanData,function(t){for(var i,n,s=0;null!=(n=t[s]);s++)(i=e._data(n,"events"))&&i.remove&&e(n).triggerHandler("remove");o(t)}),e.widget=function(t,i,n){var s,o,r,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},s=e[l][t],o=e[l][t]=function(e,t){return this&&this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},e.extend(o,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,function(e,t){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}a[e]="function"==typeof t?function(){var e,i=this._super,o=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=o,e}:t}),o.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:u}),s?(e.each(s._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,n,s=l.call(arguments,1),o=0,r=s.length;o<r;o++)for(i in s[o])n=s[o][i],a.call(s[o],i)&&void 0!==n&&(e.isPlainObject(n)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],n):e.widget.extend({},n):t[i]=n);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(s){var o="string"==typeof s,r=l.call(arguments,1),a=this;return o?this.length||"instance"!==s?this.each(function(){var i,o=e.data(this,n);return"instance"===s?(a=o,!1):o?"function"!=typeof o[s]||"_"===s.charAt(0)?e.error("no such method '"+s+"' for "+t+" widget instance"):(i=o[s].apply(o,r))!==o&&void 0!==i?(a=i&&i.jquery?a.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+s+"'")}):a=void 0:(r.length&&(s=e.widget.extend.apply(null,[s].concat(r))),this.each(function(){var t=e.data(this,n);t?(t.option(s||{}),t._init&&t._init()):e.data(this,n,new i(s,this))})),a}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,o,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),o=0;o<n.length-1;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,o){for(var r,a=0;a<i.length;a++)r=s.classesElementLookup[i[a]]||e(),r=t.add?(function(){var i=[];t.element.each(function(t,n){e.map(s.classesElementLookup,function(e){return e}).some(function(e){return e.is(n)})||i.push(n)}),s._on(e(i),{remove:"_untrackClassesElement"})}(),e(e.uniqueSort(r.get().concat(t.element.get())))):e(r.not(t.element).get()),s.classesElementLookup[i[a]]=r,n.push(i[a]),o&&t.classes[i[a]]&&n.push(t.classes[i[a]])}var n=[],s=this;return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){var s="string"==typeof e||null===e,i={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n="boolean"==typeof n?n:i};return i.element.toggleClass(this._classes(i),n),this},_on:function(t,i,n){var s,o=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,r){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),n=l[1]+o.eventNamespace,l=l[2];l?s.on(n,l,a):i.on(n,a)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,o,r=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,o){var r,a=(s="string"==typeof s?{effect:s}:s)?!0!==s&&"number"!=typeof s&&s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!e.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[a]?n[t](s):a!==t&&n[a]?n[a](s.duration,s.easing,o):n.queue(function(i){e(this)[t](),o&&o.call(n[0]),i()})}});var u,h,c,d,_,p,f,E,T;e.widget,h=Math.max,c=Math.abs,d=/left|center|right/,_=/top|center|bottom/,p=/[\+\-]\d+(\.[\d]+)?%?/,f=/^\w+/,E=/%$/,T=e.fn.position,e.position={scrollbarWidth:function(){if(void 0!==u)return u;var t,i=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),n=i.children()[0];return e("body").append(i),t=n.offsetWidth,i.css("overflow","scroll"),t===(n=n.offsetWidth)&&(n=i[0].clientWidth),i.remove(),u=t-n},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:i?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=n(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:o,offset:s||o?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(s){if(!s||!s.of)return T.apply(this,arguments);var o,r,a,l,u,E,g="string"==typeof(s=e.extend({},s)).of?e(document).find(s.of):e(s.of),m=e.position.getWithinInfo(s.within),O=e.position.getScrollInfo(m),N=(s.collision||"flip").split(" "),I={},R=9===(E=(R=g)[0]).nodeType?{width:R.width(),height:R.height(),offset:{top:0,left:0}}:n(E)?{width:R.width(),height:R.height(),offset:{top:R.scrollTop(),left:R.scrollLeft()}}:E.preventDefault?{width:0,height:0,offset:{top:E.pageY,left:E.pageX}}:{width:R.outerWidth(),height:R.outerHeight(),offset:R.offset()};return g[0].preventDefault&&(s.at="left top"),r=R.width,a=R.height,u=e.extend({},l=R.offset),e.each(["my","at"],function(){var e,t,i=(s[this]||"").split(" ");(i=1===i.length?d.test(i[0])?i.concat(["center"]):_.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=d.test(i[0])?i[0]:"center",i[1]=_.test(i[1])?i[1]:"center",e=p.exec(i[0]),t=p.exec(i[1]),I[this]=[e?e[0]:0,t?t[0]:0],s[this]=[f.exec(i[0])[0],f.exec(i[1])[0]]}),1===N.length&&(N[1]=N[0]),"right"===s.at[0]?u.left+=r:"center"===s.at[0]&&(u.left+=r/2),"bottom"===s.at[1]?u.top+=a:"center"===s.at[1]&&(u.top+=a/2),o=t(I.at,r,a),u.left+=o[0],u.top+=o[1],this.each(function(){var n,d,_=e(this),p=_.outerWidth(),f=_.outerHeight(),E=i(this,"marginLeft"),T=i(this,"marginTop"),R=p+E+i(this,"marginRight")+O.width,S=f+T+i(this,"marginBottom")+O.height,A=e.extend({},u),D=t(I.my,_.outerWidth(),_.outerHeight());"right"===s.my[0]?A.left-=p:"center"===s.my[0]&&(A.left-=p/2),"bottom"===s.my[1]?A.top-=f:"center"===s.my[1]&&(A.top-=f/2),A.left+=D[0],A.top+=D[1],n={marginLeft:E,marginTop:T},e.each(["left","top"],function(t,i){e.ui.position[N[t]]&&e.ui.position[N[t]][i](A,{targetWidth:r,targetHeight:a,elemWidth:p,elemHeight:f,collisionPosition:n,collisionWidth:R,collisionHeight:S,offset:[o[0]+D[0],o[1]+D[1]],my:s.my,at:s.at,within:m,elem:_})}),s.using&&(d=function(e){var t=l.left-A.left,i=t+r-p,n=l.top-A.top,o=n+a-f,u={target:{element:g,left:l.left,top:l.top,width:r,height:a},element:{element:_,left:A.left,top:A.top,width:p,height:f},horizontal:i<0?"left":0<t?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};r<p&&c(t+i)<r&&(u.horizontal="center"),a<f&&c(n+o)<a&&(u.vertical="middle"),h(c(t),c(i))>h(c(n),c(o))?u.important="horizontal":u.important="vertical",s.using.call(this,e,u)}),_.offset(e.extend(A,{using:d}))})},e.ui.position={fit:{left:function(e,t){var i=t.within,n=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,o=e.left-t.collisionPosition.marginLeft,r=n-o,a=o+t.collisionWidth-s-n;t.collisionWidth>s?0<r&&a<=0?(i=e.left+r+t.collisionWidth-s-n,e.left+=r-i):e.left=!(0<a&&r<=0)&&a<r?n+s-t.collisionWidth:n:0<r?e.left+=r:0<a?e.left-=a:e.left=h(e.left-o,e.left)},top:function(e,t){var i=t.within,n=i.isWindow?i.scrollTop:i.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,r=n-o,a=o+t.collisionHeight-s-n;t.collisionHeight>s?0<r&&a<=0?(i=e.top+r+t.collisionHeight-s-n,e.top+=r-i):e.top=!(0<a&&r<=0)&&a<r?n+s-t.collisionHeight:n:0<r?e.top+=r:0<a?e.top-=a:e.top=h(e.top-o,e.top)}},flip:{left:function(e,t){var i=t.within,n=i.offset.left+i.scrollLeft,s=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,r=e.left-t.collisionPosition.marginLeft,a=r-o,l=r+t.collisionWidth-s-o,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,i="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,r=-2*t.offset[0];a<0?((n=e.left+u+i+r+t.collisionWidth-s-n)<0||n<c(a))&&(e.left+=u+i+r):0<l&&(0<(o=e.left-t.collisionPosition.marginLeft+u+i+r-o)||c(o)<l)&&(e.left+=u+i+r)},top:function(e,t){var i=t.within,n=i.offset.top+i.scrollTop,s=i.height,o=i.isWindow?i.scrollTop:i.offset.top,r=e.top-t.collisionPosition.marginTop,a=r-o,l=r+t.collisionHeight-s-o,u="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,i="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,r=-2*t.offset[1];a<0?((n=e.top+u+i+r+t.collisionHeight-s-n)<0||n<c(a))&&(e.top+=u+i+r):0<l&&(0<(o=e.top-t.collisionPosition.marginTop+u+i+r-o)||c(o)<l)&&(e.top+=u+i+r)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}};var g;e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])}}),e.fn.extend({disableSelection:(g="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(g+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),e.ui.focusable=function(t,i){var n,s,o,r,a=t.nodeName.toLowerCase();return"area"===a?(s=(n=t.parentNode).name,!(!t.href||!s||"map"!==n.nodeName.toLowerCase())&&0<(s=e("img[usemap='#"+s+"']")).length&&s.is(":visible")):(/^(input|select|textarea|button|object)$/.test(a)?(o=!t.disabled)&&(r=e(t).closest("fieldset")[0])&&(o=!r.disabled):o="a"===a&&t.href||i,o&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)e=e.parent(),t=e.css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");e.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){var e;this.form=this.element._form(),this.form.length&&((e=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.labels=function(){var t,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(t=this.attr("id"))&&(n=(n=this.eq(0).parents().last()).add((n.length?n:this).siblings()),t="label[for='"+e.escapeSelector(t)+"']",i=i.add(n.find(t).addBack(t))),this.pushStack(i)):this.pushStack([])},e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&t.length?t:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var i=e.attr(t,"tabindex"),n=null!=i;return(!n||0<=i)&&e.ui.focusable(t,n)}}),e.fn.extend({uniqueId:(m=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++m)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var m,O=!1;e(document).on("mouseup",function(){O=!1}),e.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!O){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),O=!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,O=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,n){var s,o=e.ui[t].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t=(t=t||e.body).nodeName?t:e.body},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||0<e(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){if(i=this._uiHash(),!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper,t=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=Array.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,o=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t=t||this.position;var i="absolute"===e?1:-1,e=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:e?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:e?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n=this.options,s=this._isRootNode(this.scrollParent[0]),o=e.pageX,r=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(r=i[3]+this.offset.click.top)),n.grid&&(e=n.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,r=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-n.grid[1]:e+n.grid[1],e=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||e-this.offset.click.left>=i[0]||e-this.offset.click.left>i[2]?e:e-this.offset.click.left>=i[0]?e-n.grid[0]:e+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis&&(r=this.originalPageY)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)
  7. }},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))})},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,s))})},drag:function(t,i,n){e.each(n.sortables,function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,s=(this===o||!this._intersectsWith(this.containerCache)||!e.contains(o.element[0],this.element[0]))&&s})),s?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",t),n.dropped=o.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(t),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),n=n.options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(t,i,n){n=n.options,n._cursor&&e("body").css("cursor",n._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){i=e(i.helper),n=n.options,i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(t,i,n){n=n.options,n._opacity&&e(i.helper).css("opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=o=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(a).scrollTop()<s.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<s.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(a).scrollLeft()<s.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<s.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+s.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,n){for(var s,o,r,a,l,u,h,c,d,_=n.options,p=_.snapTolerance,f=i.offset.left,E=f+n.helperProportions.width,T=i.offset.top,g=T+n.helperProportions.height,m=n.snapElements.length-1;0<=m;m--)u=(l=n.snapElements[m].left-n.margins.left)+n.snapElements[m].width,c=(h=n.snapElements[m].top-n.margins.top)+n.snapElements[m].height,E<l-p||u+p<f||g<h-p||c+p<T||!e.contains(n.snapElements[m].item.ownerDocument,n.snapElements[m].item)?(n.snapElements[m].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[m].item})),n.snapElements[m].snapping=!1):("inner"!==_.snapMode&&(s=Math.abs(h-g)<=p,o=Math.abs(c-T)<=p,r=Math.abs(l-E)<=p,a=Math.abs(u-f)<=p,s&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left)),d=s||o||r||a,"outer"!==_.snapMode&&(s=Math.abs(h-T)<=p,o=Math.abs(c-g)<=p,r=Math.abs(l-f)<=p,a=Math.abs(u-E)<=p,s&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left)),!n.snapElements[m].snapping&&(s||o||r||a||d)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[m].item})),n.snapElements[m].snapping=s||o||r||a||d)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,n=n.options,n=e.makeArray(e(n.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});n.length&&(s=parseInt(e(n[0]).css("zIndex"),10)||0,e(n).each(function(t){e(this).css("zIndex",s+t)}),this.css("zIndex",s+n.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){i=e(i.helper),n=n.options,i.css("zIndex")&&(n._zIndex=i.css("zIndex")),i.css("zIndex",n.zIndex)},stop:function(t,i,n){n=n.options,n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}}),e.ui.draggable,e.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){var n;"accept"===t?this.accept="function"==typeof i?i:function(e){return e.is(i)}:"scope"===t&&(n=e.ui.ddmanager.droppables[this.options.scope],this._splice(n),this._addToManager(i)),this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return!(s=!0)}),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(n)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(e,t,i,n){if(!t.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,a=o+e.helperProportions.width,l=r+e.helperProportions.height,u=t.offset.left,h=t.offset.top,c=u+t.proportions().width,d=h+t.proportions().height;switch(i){case"fit":return u<=o&&a<=c&&h<=r&&l<=d;case"intersect":return u<o+e.helperProportions.width/2&&a-e.helperProportions.width/2<c&&h<r+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return s(n.pageY,h,t.proportions().height)&&s(n.pageX,u,t.proportions().width);case"touch":return(h<=r&&r<=d||h<=l&&l<=d||r<h&&d<l)&&(u<=o&&o<=c||u<=a&&a<=c||o<u&&c<a);default:return!1}},!(e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,s,o=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||t&&!o[n].accept.call(o[n].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue e}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(t,i){var n=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){var n,s,o,r;this.options.disabled||this.greedyChild||!this.visible||(r=!(o=e.ui.intersect(t,this,this.options.tolerance,i))&&this.isover?"isout":o&&!this.isover?"isover":null)&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===s})).length&&((n=e(o[0]).droppable("instance")).greedyChild="isover"===r)),n&&"isover"===r&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),n&&"isout"===r&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}})!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable,e.widget("ui.resizable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",i=!1;if(0<t[n])return!0;try{t[n]=1,i=0<t[n],t[n]=0}catch(e){}return i},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}this._mouseDestroy(),this._addedHandles.remove();var i;return this.elementIsWrapper&&(t(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,i,n,s,o,r=this.options,a=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)s="ui-resizable-"+(t=String.prototype.trim.call(n[i])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+s),o.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var i,n,s;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,n,s=!1;for(i in this.handles)(n=e(this.handles[i])[0])!==t.target&&!e.contains(n,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,n,s=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,n+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,n=this.axis,s=t.pageX-i.left||0,i=t.pageY-i.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(i=n.apply(this,[t,s,i]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var i,n,s,o=this.options,r=this;return this._helper&&(s=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:r.sizeDiff.height,n=i?0:r.sizeDiff.width,i={width:r.helper.width()-n,height:r.helper.height()-s},n=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,s=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,o.animate||this.element.css(e.extend(i,{top:s,left:n})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper&&!o.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n=this.options,s={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,e=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),i>s.minHeight&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),e<s.maxHeight&&(s.maxHeight=e)),this._vBoundaries=s},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&u&&(e.left=a-t.minWidth),n&&u&&(e.left=a-t.maxWidth),r&&i&&(e.top=l-t.minHeight),s&&i&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,o={width:i.size.width-a,height:i.size.height-r},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,r=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(o,r&&a?{top:r,left:a}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&e(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n=e(this).resizable("instance"),s=n.options,o=n.element,r=s.containment,a=r instanceof e?r.get(0):/parent/.test(r)?o.parent().get(0):r;a&&(n.containerElement=e(a),/document/.test(r)||r===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(a),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,s){i[e]=n._num(t.css("padding"+s))}),n.containerOffset=t.offset(),n.containerPosition=t.position(),n.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},s=n.containerOffset,o=n.containerSize.height,r=n.containerSize.width,r=n._hasScroll(a,"left")?a.scrollWidth:r,o=n._hasScroll(a)?a.scrollHeight:o,n.parentData={element:a,left:s.left,top:s.top,width:r,height:o}))},resize:function(t){var i=e(this).resizable("instance"),n=i.options,s=i.containerOffset,o=i.position,r=i._aspectRatio||t.shiftKey,a={top:0,left:0},l=i.containerElement,t=!0;l[0]!==document&&/static/.test(l.css("position"))&&(a=s),o.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-a.left),r&&(i.size.height=i.size.width/i.aspectRatio,t=!1),i.position.left=n.helper?s.left:0),o.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),r&&(i.size.width=i.size.height*i.aspectRatio,t=!1),i.position.top=i._helper?s.top:0),n=i.containerElement.get(0)===i.element.parent().get(0),o=/relative|absolute/.test(i.containerElement.css("position")),n&&o?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-a.left:i.offset.left-s.left)),s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-a.top:i.offset.top-s.top)),o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,r&&(i.size.height=i.size.width/i.aspectRatio,t=!1)),s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,r&&(i.size.width=i.size.height*i.aspectRatio,t=!1)),t||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.containerPosition,o=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width,r=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:r}),t._helper&&!i.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:r})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var n=e(this).resizable("instance"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};e(s.alsoResize).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),s={},o=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var i=(n[t]||0)+(a[t]||0);i&&0<=i&&(s[t]=i||null)}),t.css(s)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,u=l[0]||1,h=l[1]||1,c=Math.round((s.width-o.width)/u)*u,d=Math.round((s.height-o.height)/h)*h,_=o.width+c,p=o.height+d,f=n.maxWidth&&n.maxWidth<_,E=n.maxHeight&&n.maxHeight<p,T=n.minWidth&&n.minWidth>_,s=n.minHeight&&n.minHeight>p;n.grid=l,T&&(_+=u),s&&(p+=h),f&&(_-=u),E&&(p-=h),/^(se|s|e)$/.test(a)?(i.size.width=_,i.size.height=p):/^(ne)$/.test(a)?(i.size.width=_,i.size.height=p,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=_,i.size.height=p,i.position.left=r.left-c):((p-h<=0||_-u<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),0<p-h?(i.size.height=p,i.position.top=r.top-d):(p=h-t.height,i.size.height=p,i.position.top=r.top+o.height-p),
  8. 0<_-u?(i.size.width=_,i.position.left=r.left-c):(_=u-t.width,i.size.width=_,i.position.left=r.left+o.width-_))}}),e.ui.resizable,e.widget("ui.selectable",e.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var i=e(this),n=i.offset(),n={left:n.left-t.elementPos.left,top:n.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var i=this,n=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))}),e(t.target).parents().addBack().each(function(){var n,s=e.data(this,"selectable-item");if(s)return n=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,(s.selected=n)?i._trigger("selecting",t,{selecting:s.element}):i._trigger("unselecting",t,{unselecting:s.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=t.pageX,l=t.pageY;return a<o&&(i=a,a=o,o=i),l<r&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),u=!1,h={};i&&i.element!==n.element[0]&&(h.left=i.left+n.elementPos.left,h.right=i.right+n.elementPos.left,h.top=i.top+n.elementPos.top,h.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?u=!(h.left>a||h.right<o||h.top>l||h.bottom<r):"fit"===s.tolerance&&(u=h.left>o&&h.right<a&&h.top>r&&h.bottom<l),u?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",t,{unselected:n.element})}),e(".ui-selecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",t,{selected:n.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return t<=e&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,o.widgetName+"-item")===o)return n=e(this),!1}),!(n=e.data(t.target,o.widgetName+"-item")===o?e(t.target):n)||this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,i,n){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;0<=i;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){var n,s,o,r;if(t)return e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert?(s=(n=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})):this._clear(t,i),!1},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=e.left,r=o+e.width,a=e.top,l=a+e.height,u=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||a<n+u&&n+u<l,h="y"===this.options.axis||o<t+h&&t+h<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?u&&h:o<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),e="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!t||!e)&&(t=this.dragDirection.vertical,e=this.dragDirection.horizontal,this.floating?"right"===e||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,e=this.dragDirection.horizontal;return this.floating&&e?"right"===e&&i||"left"===e&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!=e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function i(){a.push(this)}var n,s,o,r,a=[],l=[],u=this._connectWith();if(u&&t)for(n=u.length-1;0<=n;n--)for(s=(o=e(u[n],this.document[0])).length-1;0<=s;s--)(r=e.data(o[s],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push(["function"==typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;0<=n;n--)l[n][0].each(i);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,u,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;0<=i;i--)for(n=(s=e(d[i],this.document[0])).length-1;0<=n;n--)(o=e.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(i=c.length-1;0<=i;i--)for(r=c[i][1],u=(a=c[i][n=0]).length;n<u;n++)(l=e(a[n])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var i,n,s=this.items.length-1;0<=s;s--)i=this.items[s],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=n.outerWidth(),i.height=n.outerHeight()),n=n.offset(),i.left=n.left,i.top=n.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,o){i&&!s.forcePlaceholderSize||(o.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var i,n,s,o,r,a,l,u,h,c=null,d=null,_=this.containers.length-1;0<=_;_--)e.contains(this.currentItem[0],this.containers[_].element[0])||(this._intersectsWith(this.containers[_].containerCache)?c&&e.contains(this.containers[_].element[0],c.element[0])||(c=this.containers[_],d=_):this.containers[_].containerCache.over&&(this.containers[_]._trigger("out",t,this._uiHash(this)),this.containers[_].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,s=null,o=(u=c.floating||this._isFloating(this.currentItem))?"left":"top",r=u?"width":"height",h=u?"pageX":"pageY",i=this.items.length-1;0<=i;i--)e.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(a=this.items[i].item.offset()[o],l=!1,t[h]-a>this.items[i][r]/2&&(l=!0),Math.abs(t[h]-a)<n&&(n=Math.abs(t[h]-a),s=this.items[i],this.direction=l?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[d]?(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[d].element,!0),this._trigger("change",t,this._uiHash()),this.containers[d]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var i=this.options,t="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!i.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!i.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=Array.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0],i=e(n.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i=i||this.position;var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:s.scrollLeft())*n}},_generatePosition:function(t){var i=this.options,n=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),i.grid&&(t=this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-i.grid[1]:t+i.grid[1],t=this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0],n=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-i.grid[0]:t+i.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){function i(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;0<=n;n--)t||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});var N=/ui-corner-([a-z]){2,6}/g;e.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];e.each(this.options.items,function(n,s){var o,r={};if(s)return"controlgroupLabel"===n?((o=t.element.find(s)).each(function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()))):void(e.fn[n]&&(r=t["_"+n+"Options"]?t["_"+n+"Options"]("middle"):{classes:{}},t.element.find(s).each(function(){var s=e(this),o=s[n]("instance"),a=e.widget.extend({},r);"button"===n&&s.parent(".ui-spinner").length||((o=o||s[n]()[n]("instance"))&&(a.classes=t._resolveClassesValues(a.classes,o)),s[n](a),a=s[n]("widget"),e.data(a[0],"ui-controlgroup-data",o||s[n]("instance")),i.push(a[0]))})))}),this.childWidgets=e(e.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var i=e(this).data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(e,t){t=this._buildSimpleOptions(t,"label").classes.label,this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,t)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],n},_spinnerOptions:function(e){return e=this._buildSimpleOptions(e,"ui-spinner"),e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){
  9. var t="vertical"===this.options.direction;return{width:t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,i){var n={};return e.each(t,function(e){var s=i.options.classes[e]||"",s=String.prototype.trim.call(s.replace(N,""));n[e]=(s+" "+t[e]).replace(/\s+/g," ")}),n},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,(t=this.options.onlyVisible?t.filter(":visible"):t).length&&(e.each(["first","last"],function(e,n){var s,o=t[n]().data("ui-controlgroup-data");o&&i["_"+o.widgetName+"Options"]?((s=i["_"+o.widgetName+"Options"](1===t.length?"only":n)).classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)):i._updateCornerClass(t[n](),n)}),this._callChildMethod("refresh"))}}),e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,i="input[name='"+e.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(i):e(i).filter(function(){return 0===e(this)._form().length})).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]);var I;e.ui.checkboxradio,e.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var n="iconPosition"!==t,s=n?this.options.iconPosition:i,t="top"===s||"bottom"===s;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(s),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=(void 0===e.showLabel?this.options:e).showLabel,i=(void 0===e.icon?this.options:e).icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),(this.element[0].disabled=t)&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=(I=e.fn.button,function(t){var i="string"==typeof t,n=Array.prototype.slice.call(arguments,1),s=this;return i?this.length||"instance"!==t?this.each(function(){var i=e(this).attr("type"),o=e.data(this,"ui-"+("checkbox"!==i&&"radio"!==i?"button":"checkboxradio"));return"instance"===t?(s=o,!1):o?"function"!=typeof o[t]||"_"===t.charAt(0)?e.error("no such method '"+t+"' for button widget instance"):(i=o[t].apply(o,n))!==o&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+t+"'")}):s=void 0:(n.length&&(t=e.widget.extend.apply(null,[t].concat(n))),this.each(function(){var i=e(this).attr("type"),n="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",i=e.data(this,"ui-"+n);i?(i.option(t||{}),i._init&&i._init()):"button"!=n?e(this).checkboxradio(e.extend({icon:!1},t)):I.call(e(this),t)})),s}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button,e.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;i<0&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),s=Math.max.apply(null,s);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),n=!0),n&&!i&&this._trigger("focus",t),n},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;(e=(e=(e=(e=(e=e||this.element.find("[autofocus]")).length?e:this.element.find(":tabbable")).length?e:this.uiDialogButtonPane.find(":tabbable")).length?e:this.uiDialogTitlebarClose.filter(":tabbable")).length?e:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var i,n,s;t.keyCode!==e.ui.keyCode.TAB||t.isDefaultPrevented()||(i=this.uiDialog.find(":tabbable"),n=i.first(),s=i.last(),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){n.trigger("focus")}),t.preventDefault()))},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(i,function(i,n){var s;n=e.extend({type:"button"},n="function"==typeof n?{click:n,text:i}:n),s=n.click,i={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,e("<button></button>",n).button(i).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){i._addClass(e(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,t(s))},drag:function(e,n){i._trigger("drag",e,t(n))},stop:function(s,o){var r=o.offset.left-i.document.scrollLeft(),a=o.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(0<=r?"+":"")+r+" top"+(0<=a?"+":"")+a,of:i.window},i._removeClass(e(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,t(o))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,n=this.options,s=n.resizable,o=this.uiDialog.css("position"),s="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:s,start:function(n,s){i._addClass(e(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,t(s))},resize:function(e,n){i._trigger("resize",e,t(n))},stop:function(s,o){var r=i.uiDialog.offset(),a=r.left-i.document.scrollLeft(),r=r.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(0<=a?"+":"")+a+" top"+(0<=r?"+":"")+r,of:i.window},i._removeClass(e(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,t(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||this.document.data("ui-dialog-instances",e=[]),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};e.each(t,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,i){var n,s=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=s.is(":data(ui-draggable)"))&&!i&&s.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=s.is(":data(ui-resizable)"))&&!i&&s.resizable("destroy"),n&&"string"==typeof i&&s.resizable("option","handles",i),n||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var t,i;this.options.modal&&(t=e.fn.jquery.substring(0,4),i=!0,this._delay(function(){i=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){var n;i||(n=this._trackingInstances()[0])._allowInteraction(e)||(e.preventDefault(),n._focusTabbable(),"3.4."!==t&&"3.5."!==t||n._delay(n._restoreTabbableFocus))}.bind(this)),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var e;this.options.modal&&this.overlay&&((e=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog,e.widget("ui.slider",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i=this.options,n=this.element.find(".ui-slider-handle"),s=[],o=i.values&&i.values.length||1;for(n.length>o&&(n.slice(o).remove(),n=n.slice(0,o)),t=n.length;t<o;t++)s.push("<span tabindex='0'></span>");this.handles=n.add(e(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,s,o,r,a,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(a),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var r=Math.abs(i-l.values(t));(r<n||n===r&&(t===l._lastChangedValue||l.values(t)===u.min))&&(n=r,s=e(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),a=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-r.left-s.width()/2,top:t.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),t=this._valueMin()+e*t,this._trimAlignValue(t)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),o[t]=i),i!==s&&!1!==this._trigger("slide",e,this._uiHash(t,i,o))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,n=e,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,e=e-i;return 2*Math.abs(i)>=t&&(e+=0<i?t:-t),parseFloat(e.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=e.toString(),e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,n,s,o,r=this.options.range,a=this.options,l=this,u=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[u?"animate":"css"](h,a.animate),
  10. !0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:a.animate}))),t=i}):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](h,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var i,n,s,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(t,o,n)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}})}),function(e){"function"==typeof define&&define.amd?define("bootstrapDatePicker",["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var e=new Date;return i(e.getFullYear(),e.getMonth(),e.getDate())}function s(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function o(i,n){return function(){return n!==t&&e.fn.datepicker.deprecated(n),this[i].apply(this,arguments)}}function r(e){return e&&!isNaN(e.getTime())}function a(t,i){function n(e,t){return t.toLowerCase()}var s,o=e(t).data(),r={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in o)i.test(l)&&(s=l.replace(a,n),r[s]=o[l]);return r}function l(t){var i={};if(E[t]||(t=t.split("-")[0],E[t])){var n=E[t];return e.each(f,function(e,t){t in n&&(i[t]=n[t])}),i}}var u=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),i=0,n=this.length;i<n;i++)if(0<=this[i].valueOf()-t&&this[i].valueOf()-t<864e5)return i;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var e=new u;return e.replace(this),e}};return function(){var i=[];return i.push.apply(i,arguments),e.extend(i,t),i}}(),h=function(t,i){e.data(t,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new u,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=e(T.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(e,t){return Number(t)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};h.prototype={constructor:h,_resolveViewName:function(t){return e.each(T.viewModes,function(i,n){if(t===i||e.inArray(t,n.names)!==-1)return t=i,!1}),t},_resolveDaysOfWeek:function(t){return e.isArray(t)||(t=t.split(/[,\s]*/)),e.map(t,Number)},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var n=e(i);return n.length>0}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var s=this.o=e.extend({},this._o),o=s.language;E[o]||(o=o.split("-")[0],E[o]||(o=p.language)),s.language=o,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),s.multidate!==!0&&(s.multidate=Number(s.multidate)||!1,s.multidate!==!1&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var r=T.parseFormat(s.format);s.startDate!==-(1/0)&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=T.parseDate(s.startDate,r,s.language,s.assumeNearbyYear):s.startDate=-(1/0)),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=T.parseDate(s.endDate,r,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],e.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=e.map(s.datesDisabled,function(e){return T.parseDate(e,r,s.language,s.assumeNearbyYear)});var a=String(s.orientation).toLowerCase().split(/\s+/g),l=s.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),s.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":s.orientation.y=a[0];break;case"left":case"right":s.orientation.x=a[0]}else l=e.grep(a,function(e){return/^left|right$/.test(e)}),s.orientation.x=l[0]||"auto",l=e.grep(a,function(e){return/^top|bottom$/.test(e)}),s.orientation.y=l[0]||"auto";else;if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=T.parseDate(s.defaultViewDate,r,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var u=s.defaultViewDate.year||(new Date).getFullYear(),h=s.defaultViewDate.month||0,c=s.defaultViewDate.day||1;s.defaultViewDate=i(u,h,c)}else s.defaultViewDate=n()},_applyEvents:function(e){for(var i,n,s,o=0;o<e.length;o++)i=e[o][0],2===e[o].length?(n=t,s=e[o][1]):3===e[o].length&&(n=e[o][1],s=e[o][2]),i.on(s,n)},_unapplyEvents:function(e){for(var i,n,s,o=0;o<e.length;o++)i=e[o][0],2===e[o].length?(s=t,n=e[o][1]):3===e[o].length&&(s=e[o][1],n=e[o][2]),i.off(n,s)},_buildEvents:function(){var t={keyup:e.proxy(function(t){e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:e.proxy(this.keydown,this),paste:e.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=e.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:e.proxy(this.show,this)}]]:this._events=[[this.element,{click:e.proxy(this.show,this),keydown:e.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:e.proxy(function(e){this._focused_from=e.target},this)}],[this.element,{blur:e.proxy(function(e){this._focused_from=e.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":e.proxy(function(e){this.update(e.date)},this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[this.picker,".prev, .next",{click:e.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:e.proxy(this.dayCellClick,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,i){var n=i||this.dates.get(-1),s=this._utc_to_local(n);this.element.trigger({type:t,date:s,viewMode:this.viewMode,dates:e.map(this.dates,this._utc_to_local),format:e.proxy(function(e,t){0===arguments.length?(e=this.dates.length-1,t=this.o.format):"string"==typeof e&&(t=e,e=this.dates.length-1),t=t||this.o.format;var i=this.dates.get(e);return T.formatDate(i,t,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&e(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&e.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),t.preventDefault()},_utc_to_local:function(e){if(!e)return e;var t=new Date(e.getTime()+6e4*e.getTimezoneOffset());return t.getTimezoneOffset()!==e.getTimezoneOffset()&&(t=new Date(e.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset())},_zero_time:function(e){return e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return e&&i(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,function(e){return new Date(e)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var e=this.dates.get(-1);return e!==t?new Date(e):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,e.map(t,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var e=this.getFormattedDate();return this.inputField.val(e),this},getFormattedDate:function(i){i===t&&(i=this.o.format);var n=this.o.language;return e.map(this.dates,function(e){return T.formatDate(e,i,n)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(e){return this._process_options({startDate:e}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(e){return this._process_options({endDate:e}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(e){return this._process_options({daysOfWeekDisabled:e}),this.update(),this},setDaysOfWeekHighlighted:function(e){return this._process_options({daysOfWeekHighlighted:e}),this.update(),this},setDatesDisabled:function(e){return this._process_options({datesDisabled:e}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),i=this.picker.outerHeight(),n=10,s=e(this.o.container),o=s.width(),r="body"===this.o.container?e(document).scrollTop():s.scrollTop(),a=s.offset(),l=[0];this.element.parents().each(function(){var t=e(this).css("z-index");"auto"!==t&&0!==Number(t)&&l.push(Number(t))});var u=Math.max.apply(Math,l)+this.o.zIndexOffset,h=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),_=h.left-a.left,p=h.top-a.top;"body"!==this.o.container&&(p+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(_-=t-d)):h.left<0?(this.picker.addClass("datepicker-orient-left"),_-=h.left-n):_+t>o?(this.picker.addClass("datepicker-orient-right"),_+=d-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f,E=this.o.orientation.y;if("auto"===E&&(f=-r+p-i,E=f<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+E),"top"===E?p-=i+parseInt(this.picker.css("padding-top")):p+=c,this.o.rtl){var T=o-(_+d);this.picker.css({top:p,right:T,zIndex:u})}else this.picker.css({top:p,left:_,zIndex:u});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],n=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),i.push(t)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(e){return T.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=e.grep(i,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),n?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');t<this.o.weekStart+7;)i+='<th class="dow',e.inArray(t,this.o.daysOfWeekDisabled)!==-1&&(i+=" disabled"),i+='">'+E[this.o.language].daysMin[t++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var e,t=this._utc_to_local(this.viewDate),i="",n=0;n<12;n++)e=t&&t.getMonth()===n?" focused":"",i+='<span class="month'+e+'">'+E[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],o=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=n();return t.getUTCFullYear()<o||t.getUTCFullYear()===o&&t.getUTCMonth()<r?i.push("old"):(t.getUTCFullYear()>o||t.getUTCFullYear()===o&&t.getUTCMonth()>r)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(t,a)&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),e.inArray(t.valueOf(),this.range)!==-1&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,n,s,o,r,a,l){for(var u,h,c,d="",_=s/10,p=this.picker.find(i),f=Math.floor(o/s)*s,E=f+9*_,T=Math.floor(this.viewDate.getFullYear()/_)*_,g=e.map(this.dates,function(e){return Math.floor(e.getUTCFullYear()/_)*_}),m=f-_;m<=E+_;m+=_)u=[n],h=null,m===f-_?u.push("old"):m===E+_&&u.push("new"),e.inArray(m,g)!==-1&&u.push("active"),(m<r||m>a)&&u.push("disabled"),m===T&&u.push("focused"),l!==e.noop&&(c=l(new Date(m,0,1)),c===t?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),c.enabled===!1&&u.push("disabled"),c.classes&&(u=u.concat(c.classes.split(/\s+/))),c.tooltip&&(h=c.tooltip)),d+='<span class="'+u.join(" ")+'"'+(h?' title="'+h+'"':"")+">"+m+"</span>";p.find(".datepicker-switch").text(f+"-"+E),p.find("td").html(d)},fill:function(){var s,o,r=new Date(this.viewDate),a=r.getUTCFullYear(),l=r.getUTCMonth(),u=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),h=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,_=E[this.o.language].today||E.en.today||"",p=E[this.o.language].clear||E.en.clear||"",f=E[this.o.language].titleFormat||E.en.titleFormat,g=n(),m=(this.o.todayBtn===!0||"linked"===this.o.todayBtn)&&g>=this.o.startDate&&g<=this.o.endDate&&!this.weekOfDateIsDisabled(g);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(T.formatDate(r,f,this.o.language)),this.picker.find("tfoot .today").text(_).css("display",m?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var O=i(a,l,0),N=O.getUTCDate();O.setUTCDate(N-(O.getUTCDay()-this.o.weekStart+7)%7);var I=new Date(O);O.getUTCFullYear()<100&&I.setUTCFullYear(O.getUTCFullYear()),I.setUTCDate(I.getUTCDate()+42),I=I.valueOf();for(var R,S,A=[];O.valueOf()<I;){if(R=O.getUTCDay(),R===this.o.weekStart&&(A.push("<tr>"),this.o.calendarWeeks)){var D=new Date(+O+(this.o.weekStart-R-7)%7*864e5),P=new Date(Number(D)+(11-D.getUTCDay())%7*864e5),v=new Date(Number(v=i(P.getUTCFullYear(),0,1))+(11-v.getUTCDay())%7*864e5),C=(P-v)/864e5/7+1;A.push('<td class="cw">'+C+"</td>")}S=this.getClassNames(O),S.push("day");var y=O.getUTCDate();this.o.beforeShowDay!==e.noop&&(o=this.o.beforeShowDay(this._utc_to_local(O)),o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled===!1&&S.push("disabled"),o.classes&&(S=S.concat(o.classes.split(/\s+/))),o.tooltip&&(s=o.tooltip),o.content&&(y=o.content)),S=e.isFunction(e.uniqueSort)?e.uniqueSort(S):e.unique(S),A.push('<td class="'+S.join(" ")+'"'+(s?' title="'+s+'"':"")+' data-date="'+O.getTime().toString()+'">'+y+"</td>"),s=null,R===this.o.weekEnd&&A.push("</tr>"),O.setUTCDate(O.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(A.join(""));var b=E[this.o.language].monthsTitle||E.en.monthsTitle||"Months",L=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?b:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&L.eq(t.getUTCMonth()).addClass("active")}),(a<u||a>c)&&L.addClass("disabled"),a===u&&L.slice(0,h).addClass("disabled"),a===c&&L.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var w=this;e.each(L,function(i,n){var s=new Date(a,i,1),o=w.o.beforeShowMonth(s);o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled!==!1||e(n).hasClass("disabled")||e(n).addClass("disabled"),o.classes&&e(n).addClass(o.classes),o.tooltip&&e(n).prop("title",o.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,u,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,u,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,u,c,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,i=new Date(this.viewDate),n=i.getUTCFullYear(),s=i.getUTCMonth(),o=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),r=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=1;switch(this.viewMode){case 4:u*=10;case 3:u*=10;case 2:u*=10;case 1:e=Math.floor(n/u)*u<=o,t=Math.floor(n/u)*u+u>a;break;case 0:e=n<=o&&s<=r,t=n>=a&&s>=l}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){t.preventDefault(),t.stopPropagation();var s,o,r,a;s=e(t.target),s.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=s.parent().find("span").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,r=Number(s.text()),this.viewDate.setUTCFullYear(r)),this._trigger(T.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var i=e(t.currentTarget),n=i.data("date"),s=new Date(n);this.o.updateViewDate&&(s.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),s.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(s)},navArrowsClick:function(t){var i=e(t.currentTarget),n=i.hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*T.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(T.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var i=new Date(e);return i.setUTCDate(e.getUTCDate()+t),i},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!r(e))return this.o.defaultViewDate;if(!t)return e;var i,n,s=new Date(e.valueOf()),o=s.getUTCDate(),a=s.getUTCMonth(),l=Math.abs(t);if(t=t>0?1:-1,1===l)n=t===-1?function(){return s.getUTCMonth()===a}:function(){return s.getUTCMonth()!==i},i=a+t,s.setUTCMonth(i),i=(i+12)%12;else{for(var u=0;u<l;u++)s=this.moveMonth(s,t);i=s.getUTCMonth(),s.setUTCDate(o),n=function(){return i!==s.getUTCMonth()}}for(;n();)s.setUTCDate(--o),s.setUTCMonth(i);return s},moveYear:function(e,t){return this.moveMonth(e,12*t)},moveAvailableDate:function(e,t,i){do{if(e=this[i](e,t),!this.dateWithinRange(e))return!1;i="moveDay"}while(this.dateIsDisabled(e));return e},weekOfDateIsDisabled:function(t){return e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||e.grep(this.o.datesDisabled,function(e){return s(t,e)}).length>0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(!this.picker.is(":visible"))return void(40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation()));var t,i,n=!1,s=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(i=this.moveAvailableDate(s,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):e.shiftKey?(i=this.moveAvailableDate(s,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===e.keyCode||39===e.keyCode?i=this.moveAvailableDate(s,t,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),i=this.moveAvailableDate(s,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),i=this.moveAvailableDate(s,t,"moveYear")),i&&(this.dates.clear(),this.dates.push(i),this.focusDate=this.viewDate=i,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+T.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(t,i){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(i.inputs,function(e){return e.jquery?e[0]:e}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,_.call(e(this.inputs),i).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=e.data(i.target,"datepicker");if(n!==t){var s=n.getUTCDate(),o=this.keepEmptyValues,r=e.inArray(i.target,this.inputs),a=r-1,l=r+1,u=this.inputs.length;if(r!==-1){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==n&&o||t.setUTCDate(s)}),s<this.dates[a])for(;a>=0&&s<this.dates[a];)this.pickers[a--].setUTCDate(s);else if(s>this.dates[l])for(;l<u&&s>this.dates[l];)this.pickers[l++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=e.fn.datepicker,_=function(i){var n=Array.apply(null,arguments);n.shift();var s;if(this.each(function(){var t=e(this),o=t.data("datepicker"),r="object"==typeof i&&i;if(!o){var u=a(this,"date"),d=e.extend({},p,u,r),_=l(d.language),f=e.extend({},p,_,u,r);t.hasClass("input-daterange")||f.inputs?(e.extend(f,{inputs:f.inputs||t.find("input").toArray()}),o=new c(this,f)):o=new h(this,f),t.data("datepicker",o)}"string"==typeof i&&"function"==typeof o[i]&&(s=o[i].apply(o,n))}),s===t||s instanceof h||s instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return s};e.fn.datepicker=_;var p=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},f=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=h;var E=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},T={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),i=e.match(this.validParts);
  11. if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(t,i,s,o){function r(e,t){return t===!0&&(t=10),e<100&&(e+=2e3,e>(new Date).getFullYear()+t&&(e-=100)),e}function a(){var e=this.slice(0,l[d].length),t=l[d].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(t instanceof Date)return t;if("string"==typeof i&&(i=T.parseFormat(i)),i.toValue)return i.toValue(t,i,s);var l,u,c,d,_,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},f={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(t in f&&(t=f[t]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(t)){for(l=t.match(/([\-+]\d+)([dmwy])/gi),t=new Date,d=0;d<l.length;d++)u=l[d].match(/([\-+]\d+)([dmwy])/i),c=Number(u[1]),_=p[u[2].toLowerCase()],t=h.prototype[_](t,c);return h.prototype._zero_utc_time(t)}l=t&&t.match(this.nonpunctuation)||[];var g,m,O={},N=["yyyy","yy","M","MM","m","mm","d","dd"],I={yyyy:function(e,t){return e.setUTCFullYear(o?r(t,o):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};I.yy=I.yyyy,I.M=I.MM=I.mm=I.m,I.dd=I.d,t=n();var R=i.parts.slice();if(l.length!==R.length&&(R=e(R).filter(function(t,i){return e.inArray(i,N)!==-1}).toArray()),l.length===R.length){var S;for(d=0,S=R.length;d<S;d++){if(g=parseInt(l[d],10),u=R[d],isNaN(g))switch(u){case"MM":m=e(E[s].months).filter(a),g=e.inArray(m[0],E[s].months)+1;break;case"M":m=e(E[s].monthsShort).filter(a),g=e.inArray(m[0],E[s].monthsShort)+1}O[u]=g}var A,D;for(d=0;d<N.length;d++)D=N[d],D in O&&!isNaN(O[D])&&(A=new Date(t),I[D](A,O[D]),isNaN(A)||(t=A))}return t},formatDate:function(t,i,n){if(!t)return"";if("string"==typeof i&&(i=T.parseFormat(i)),i.toDisplay)return i.toDisplay(t,i,n);var s={d:t.getUTCDate(),D:E[n].daysShort[t.getUTCDay()],DD:E[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:E[n].monthsShort[t.getUTCMonth()],MM:E[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,t=[];for(var o=e.extend([],i.separators),r=0,a=i.parts.length;r<=a;r++)o.length&&t.push(o.shift()),t.push(s[i.parts[r]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+p.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+p.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};T.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+T.headTemplate+"<tbody></tbody>"+T.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+T.headTemplate+T.contTemplate+T.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+T.headTemplate+T.contTemplate+T.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+T.headTemplate+T.contTemplate+T.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+T.headTemplate+T.contTemplate+T.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=T,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=d,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),_.call(i,"show"))}),e(function(){_.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t,i,n){"use strict";var s=function(t,i){this.widget="",this.$element=e(t),this.defaultTime=i.defaultTime,this.disableFocus=i.disableFocus,this.isOpen=i.isOpen,this.minuteStep=i.minuteStep,this.modalBackdrop=i.modalBackdrop,this.secondStep=i.secondStep,this.showInputs=i.showInputs,this.showMeridian=i.showMeridian,this.showSeconds=i.showSeconds,this.template=i.template,this.appendWidgetTo=i.appendWidgetTo,this._init()};s.prototype={constructor:s,_init:function(){var t=this;this.$element.parent().hasClass("input-append")||this.$element.parent().hasClass("input-prepend")||this.$element.parent().hasClass("input-group")?(this.$element.parent(".input-append, .input-prepend, .input-group").find(".add-on, .input-group-addon").on({"click.timepicker":e.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":e.proxy(this.highlightUnit,this),"click.timepicker":e.proxy(this.highlightUnit,this),"keydown.timepicker":e.proxy(this.elementKeydown,this),"blur.timepicker":e.proxy(this.blurElement,this)})):this.template?this.$element.on({"focus.timepicker":e.proxy(this.showWidget,this),"click.timepicker":e.proxy(this.showWidget,this),"blur.timepicker":e.proxy(this.blurElement,this)}):this.$element.on({"focus.timepicker":e.proxy(this.highlightUnit,this),"click.timepicker":e.proxy(this.highlightUnit,this),"keydown.timepicker":e.proxy(this.elementKeydown,this),"blur.timepicker":e.proxy(this.blurElement,this)}),this.template!==!1?this.$widget=e(this.getTemplate()).prependTo(this.$element.parents(this.appendWidgetTo)).on("click",e.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&this.$widget!==!1&&this.$widget.find("input").each(function(){e(this).on({"click.timepicker":function(){e(this).select()},"keydown.timepicker":e.proxy(t.widgetKeydown,t)})}),this.setDefaultTime(this.defaultTime)},blurElement:function(){this.highlightedUnit=n,this.updateFromElementVal()},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else 0===this.hour?this.hour=23:this.hour--;this.update()},decrementMinute:function(e){var t;t=e?this.minute-e:this.minute-this.minuteStep,t<0?(this.decrementHour(),this.minute=t+60):this.minute=t,this.update()},decrementSecond:function(){var e=this.second-this.secondStep;e<0?(this.decrementMinute(!0),this.second=e+60):this.second=e,this.update()},elementKeydown:function(e){switch(e.keyCode){case 9:switch(this.updateFromElementVal(),this.highlightedUnit){case"hour":e.preventDefault(),this.highlightNextUnit();break;case"minute":(this.showMeridian||this.showSeconds)&&(e.preventDefault(),this.highlightNextUnit());break;case"second":this.showMeridian&&(e.preventDefault(),this.highlightNextUnit());break;case"meridian":this.highlightNextUnit()}break;case 13:this.updateFromElementVal(),this.hideWidget();break;case 27:this.updateFromElementVal(),this.hideWidget();break;case 37:e.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:switch(e.preventDefault(),this.highlightedUnit){case"hour":this.incrementHour(),this.highlightHour();break;case"minute":this.incrementMinute(),this.highlightMinute();break;case"second":this.incrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}break;case 39:e.preventDefault(),this.updateFromElementVal(),this.highlightNextUnit();break;case 40:switch(e.preventDefault(),this.highlightedUnit){case"hour":this.decrementHour(),this.highlightHour();break;case"minute":this.decrementMinute(),this.highlightMinute();break;case"second":this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}}},formatTime:function(e,t,i,n){return e=e<10?"0"+e:e,t=t<10?"0"+t:t,i=i<10?"0"+i:i,e+":"+t+(this.showSeconds?":"+i:"")+(this.showMeridian?" "+n:"")},getCursorPosition:function(){var e=this.$element.get(0);if("selectionStart"in e)return e.selectionStart;if(i.selection){e.focus();var t=i.selection.createRange(),n=i.selection.createRange().text.length;return t.moveStart("character",-e.value.length),t.text.length-n}},getTemplate:function(){var e,t,i,n,s,o;switch(this.showInputs?(t='<input type="text" name="hour" class="bootstrap-timepicker-hour" maxlength="2"/>',i='<input type="text" name="minute" class="bootstrap-timepicker-minute" maxlength="2"/>',n='<input type="text" name="second" class="bootstrap-timepicker-second" maxlength="2"/>',s='<input type="text" name="meridian" class="bootstrap-timepicker-meridian" maxlength="2"/>'):(t='<span class="bootstrap-timepicker-hour"></span>',i='<span class="bootstrap-timepicker-minute"></span>',n='<span class="bootstrap-timepicker-second"></span>',s='<span class="bootstrap-timepicker-meridian"></span>'),o='<table><tr><td><a href="#" data-action="incrementHour"><i class="icon-chevron-up"></i></a></td><td class="separator">&nbsp;</td><td><a href="#" data-action="incrementMinute"><i class="icon-chevron-up"></i></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="incrementSecond"><i class="icon-chevron-up"></i></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><i class="icon-chevron-up"></i></a></td>':"")+"</tr><tr><td>"+t+'</td> <td class="separator">:</td><td>'+i+"</td> "+(this.showSeconds?'<td class="separator">:</td><td>'+n+"</td>":"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td>'+s+"</td>":"")+'</tr><tr><td><a href="#" data-action="decrementHour"><i class="icon-chevron-down"></i></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><i class="icon-chevron-down"></i></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="decrementSecond"><i class="icon-chevron-down"></i></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td><a href="#" data-action="toggleMeridian"><i class="icon-chevron-down"></i></a></td>':"")+"</tr></table>",this.template){case"modal":e='<div class="bootstrap-timepicker-widget modal hide fade in" data-backdrop="'+(this.modalBackdrop?"true":"false")+'"><div class="modal-header"><a href="#" class="close" data-dismiss="modal">×</a><h3>Pick a Time</h3></div><div class="modal-content">'+o+'</div><div class="modal-footer"><a href="#" class="btn btn-primary" data-dismiss="modal">OK</a></div></div>';break;case"dropdown":e='<div class="bootstrap-timepicker-widget dropdown-menu">'+o+"</div>"}return e},getTime:function(){return this.formatTime(this.hour,this.minute,this.second,this.meridian)},hideWidget:function(){this.isOpen!==!1&&(this.showInputs&&this.updateFromWidgetInputs(),this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),e(i).off("mousedown.timepicker"),e(i).off("keydown.timepicker"),this.isOpen=!1)},highlightUnit:function(){this.position=this.getCursorPosition(),this.position>=0&&this.position<=2?this.highlightHour():this.position>=3&&this.position<=5?this.highlightMinute():this.position>=6&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():this.position>=9&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.hideWidget()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMeridian();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},highlightHour:function(){var e=this.$element.get(0);this.highlightedUnit="hour",e.setSelectionRange&&setTimeout(function(){e.setSelectionRange(0,2)},0)},highlightMinute:function(){var e=this.$element.get(0);this.highlightedUnit="minute",e.setSelectionRange&&setTimeout(function(){e.setSelectionRange(3,5)},0)},highlightSecond:function(){var e=this.$element.get(0);this.highlightedUnit="second",e.setSelectionRange&&setTimeout(function(){e.setSelectionRange(6,8)},0)},highlightMeridian:function(){var e=this.$element.get(0);this.highlightedUnit="meridian",e.setSelectionRange&&(this.showSeconds?setTimeout(function(){e.setSelectionRange(9,11)},0):setTimeout(function(){e.setSelectionRange(6,8)},0))},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}return 23===this.hour?void(this.hour=0):(this.hour++,void this.update())},incrementMinute:function(e){var t;t=e?this.minute+e:this.minute+this.minuteStep-this.minute%this.minuteStep,t>59?(this.incrementHour(),this.minute=t-60):this.minute=t,this.update()},incrementSecond:function(){var e=this.second+this.secondStep-this.second%this.secondStep;e>59?(this.incrementMinute(!0),this.second=e-60):this.second=e,this.update()},remove:function(){e("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(e){if(this.$element.val())this.updateFromElementVal();else if("current"===e){var t=new Date,i=t.getHours(),n=Math.floor(t.getMinutes()/this.minuteStep)*this.minuteStep,s=Math.floor(t.getSeconds()/this.secondStep)*this.secondStep,o="AM";this.showMeridian&&(0===i?i=12:i>=12?(i>12&&(i-=12),o="PM"):o="AM"),this.hour=i,this.minute=n,this.second=s,this.meridian=o,this.update()}else e===!1?(this.hour=0,this.minute=0,this.second=0,this.meridian="AM"):this.setTime(e)},setTime:function(e){var t,i;this.showMeridian?(t=e.split(" "),i=t[0].split(":"),this.meridian=t[1]):i=e.split(":"),this.hour=parseInt(i[0],10),this.minute=parseInt(i[1],10),this.second=parseInt(i[2],10),isNaN(this.hour)&&(this.hour=0),isNaN(this.minute)&&(this.minute=0),this.showMeridian?(this.hour>12?this.hour=12:this.hour<1&&(this.hour=12),"am"===this.meridian||"a"===this.meridian?this.meridian="AM":"pm"!==this.meridian&&"p"!==this.meridian||(this.meridian="PM"),"AM"!==this.meridian&&"PM"!==this.meridian&&(this.meridian="AM")):this.hour>=24?this.hour=23:this.hour<0&&(this.hour=0),this.minute<0?this.minute=0:this.minute>=60&&(this.minute=59),this.showSeconds&&(isNaN(this.second)?this.second=0:this.second<0?this.second=0:this.second>=60&&(this.second=59)),this.update()},showWidget:function(){if(!this.isOpen&&!this.$element.is(":disabled")){var t=this;e(i).on("mousedown.timepicker",function(i){0===e(i.target).closest(".bootstrap-timepicker-widget").length&&t.hideWidget()}),e(i).on("keydown.timepicker",function(e){9===e.keyCode&&t.hideWidget()}),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.disableFocus&&this.$element.blur(),this.updateFromElementVal(),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",e.proxy(this.hideWidget,this)):this.isOpen===!1&&this.$widget.addClass("open"),this.isOpen=!0}},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM",this.update()},update:function(){this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.updateElement(),this.updateWidget()},updateElement:function(){this.$element.val(this.getTime()).change()},updateFromElementVal:function(){var e=this.$element.val();e&&this.setTime(e)},updateWidget:function(){if(this.$widget!==!1){var e=this.hour<10?"0"+this.hour:this.hour,t=this.minute<10?"0"+this.minute:this.minute,i=this.second<10?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.bootstrap-timepicker-hour").val(e),this.$widget.find("input.bootstrap-timepicker-minute").val(t),this.showSeconds&&this.$widget.find("input.bootstrap-timepicker-second").val(i),this.showMeridian&&this.$widget.find("input.bootstrap-timepicker-meridian").val(this.meridian)):(this.$widget.find("span.bootstrap-timepicker-hour").text(e),this.$widget.find("span.bootstrap-timepicker-minute").text(t),this.showSeconds&&this.$widget.find("span.bootstrap-timepicker-second").text(i),this.showMeridian&&this.$widget.find("span.bootstrap-timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(this.$widget!==!1){var t=e("input.bootstrap-timepicker-hour",this.$widget).val()+":"+e("input.bootstrap-timepicker-minute",this.$widget).val()+(this.showSeconds?":"+e("input.bootstrap-timepicker-second",this.$widget).val():"")+(this.showMeridian?" "+e("input.bootstrap-timepicker-meridian",this.$widget).val():"");this.setTime(t)}},widgetClick:function(t){t.stopPropagation(),t.preventDefault();var i=e(t.target).closest("a").data("action");i&&this[i]()},widgetKeydown:function(t){var i=e(t.target).closest("input"),n=i.attr("name");switch(t.keyCode){case 9:if(this.showMeridian){if("meridian"===n)return this.hideWidget()}else if(this.showSeconds){if("second"===n)return this.hideWidget()}else if("minute"===n)return this.hideWidget();this.updateFromWidgetInputs();break;case 27:this.hideWidget();break;case 38:switch(t.preventDefault(),n){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}break;case 40:switch(t.preventDefault(),n){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}}}},e.fn.timepicker=function(t){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var n=e(this),o=n.data("timepicker"),r="object"==typeof t&&t;o||n.data("timepicker",o=new s(this,e.extend({},e.fn.timepicker.defaults,r,e(this).data()))),"string"==typeof t&&o[t].apply(o,i)})},e.fn.timepicker.defaults={defaultTime:"current",disableFocus:!1,isOpen:!1,minuteStep:15,modalBackdrop:!1,secondStep:15,showSeconds:!1,showInputs:!0,showMeridian:!0,template:"dropdown",appendWidgetTo:".bootstrap-timepicker"},e.fn.timepicker.Constructor=s}(jQuery,window,document),define("bootstrapTimePicker",["jquery"],function(){}),function(e,t){"use strict";"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("bstypeahead",["jquery"],function(e){return t(e)}):t(e.jQuery)}(this,function(e){"use strict";var t=function(t,i){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,i),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"!=typeof this.options.autoSelect||this.options.autoSelect,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.source=this.options.source,this.delay=this.options.delay,this.$menu=e(this.options.menu),this.$appendTo=this.options.appendTo?e(this.options.appendTo):null,this.fitToElement="boolean"==typeof this.options.fitToElement&&this.options.fitToElement,this.shown=!1,this.listen(),this.showHintOnFocus=("boolean"==typeof this.options.showHintOnFocus||"all"===this.options.showHintOnFocus)&&this.options.showHintOnFocus,this.afterSelect=this.options.afterSelect,this.addItem=!1,this.value=this.$element.val()||this.$element.text()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").data("value");if(this.$element.data("active",e),this.autoSelect||e){var t=this.updater(e);t||(t=""),this.$element.val(this.displayText(t)||t).text(this.displayText(t)||t).change(),this.afterSelect(t)}return this.hide()},updater:function(e){return e},setSource:function(e){this.source=e},show:function(){var t,i=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}),n="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight;if(this.shown?t=this.$menu:this.$appendTo?(t=this.$menu.appendTo(this.$appendTo),this.hasSameParent=this.$appendTo.is(this.$element.parent())):(t=this.$menu.insertAfter(this.$element),this.hasSameParent=!0),!this.hasSameParent){t.css("position","fixed");var s=this.$element.offset();i.top=s.top,i.left=s.left}var o=e(t).parent().hasClass("dropup"),r=o?"auto":i.top+i.height+n,a=e(t).hasClass("dropdown-menu-right"),l=a?"auto":i.left;return t.css({top:r,left:l}).show(),this.options.fitToElement===!0&&t.css("width",this.$element.outerWidth()+"px"),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){if("undefined"!=typeof t&&null!==t?this.query=t:this.query=this.$element.val()||this.$element.text()||"",this.query.length<this.options.minLength&&!this.options.showHintOnFocus)return this.shown?this.hide():this;var i=e.proxy(function(){e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source&&this.process(this.source)},this);clearTimeout(this.lookupWorker),this.lookupWorker=setTimeout(i,this.delay)},process:function(t){var i=this;return t=e.grep(t,function(e){return i.matcher(e)}),t=this.sorter(t),t.length||this.options.addItem?(t.length>0?this.$element.data("active",t[0]):this.$element.data("active",null),this.options.addItem&&t.push(this.options.addItem),"all"==this.options.items?this.render(t).show():this.render(t.slice(0,this.options.items)).show()):this.shown?this.hide():this},matcher:function(e){var t=this.displayText(e);return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){for(var t,i=[],n=[],s=[];t=e.shift();){var o=this.displayText(t);o.toLowerCase().indexOf(this.query.toLowerCase())?~o.indexOf(this.query)?n.push(t):s.push(t):i.push(t)}return i.concat(n,s)},highlighter:function(t){var i,n,s,o,r=e("<div></div>"),a=this.query,l=t.toLowerCase().indexOf(a.toLowerCase()),u=a.length;if(0===u)return r.text(t).html();for(;l>-1;)i=t.substr(0,l),n=t.substr(l,u),s=t.substr(l+u),o=e("<strong></strong>").text(n),r.append(document.createTextNode(i)).append(o),t=s,l=t.toLowerCase().indexOf(a.toLowerCase());return r.append(document.createTextNode(t)).html()},render:function(t){var i=this,n=this,s=!1,o=[],r=i.options.separator;return e.each(t,function(e,i){e>0&&i[r]!==t[e-1][r]&&o.push({__type:"divider"}),!i[r]||0!==e&&i[r]===t[e-1][r]||o.push({__type:"category",name:i[r]}),o.push(i)}),t=e(o).map(function(t,o){if("category"==(o.__type||!1))return e(i.options.headerHtml).text(o.name)[0];if("divider"==(o.__type||!1))return e(i.options.headerDivider)[0];var r=n.displayText(o);return t=e(i.options.item).data("value",o),t.find("a").html(i.highlighter(r,o)),r==n.$element.val()&&(t.addClass("active"),n.$element.data("active",o),s=!0),t[0]}),this.autoSelect&&!s&&(t.filter(":not(.dropdown-header)").first().addClass("active"),this.$element.data("active",t.first().data("value"))),this.$menu.html(t),this},displayText:function(e){return"undefined"!=typeof e&&"undefined"!=typeof e.name&&e.name||e},next:function(t){var i=this.$menu.find(".active").removeClass("active"),n=i.next();n.length||(n=e(this.$menu.find("li")[0])),n.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),i=t.prev();i.length||(i=this.$menu.find("li").last()),i.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("input",e.proxy(this.input,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this)).on("mousedown",e.proxy(this.mousedown,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.off("focus").off("blur").off("keypress").off("input").off("keyup"),this.eventSupported("keydown")&&this.$element.off("keydown"),this.$menu.remove(),this.destroyed=!0},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t="function"==typeof this.$element[e]),t},move:function(e){if(this.shown)switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:if(e.shiftKey)return;e.preventDefault(),this.prev();break;case 40:if(e.shiftKey)return;e.preventDefault(),this.next()}},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.shown||40!=t.keyCode?this.move(t):this.lookup()},keypress:function(e){this.suppressKeyPressRepeat||this.move(e)},input:function(e){var t=this.$element.val()||this.$element.text();this.value!==t&&(this.value=t,this.lookup())},keyup:function(e){if(!this.destroyed)switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide()}},focus:function(e){this.focused||(this.focused=!0,this.options.showHintOnFocus&&this.skipShowHintOnFocus!==!0&&("all"===this.options.showHintOnFocus?this.lookup(""):this.lookup())),this.skipShowHintOnFocus&&(this.skipShowHintOnFocus=!1)},blur:function(e){this.mousedover||this.mouseddown||!this.shown?this.mouseddown&&(this.skipShowHintOnFocus=!0,this.$element.focus(),this.mouseddown=!1):(this.hide(),this.focused=!1)},click:function(e){e.preventDefault(),this.skipShowHintOnFocus=!0,this.select(),this.$element.focus(),this.hide()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},mousedown:function(e){this.mouseddown=!0,this.$menu.one("mouseup",function(e){this.mouseddown=!1}.bind(this))}};var i=e.fn.typeahead;e.fn.typeahead=function(i){var n=arguments;return"string"==typeof i&&"getActive"==i?this.data("active"):this.each(function(){var s=e(this),o=s.data("typeahead"),r="object"==typeof i&&i;o||s.data("typeahead",o=new t(this,r)),"string"==typeof i&&o[i]&&(n.length>1?o[i].apply(o,Array.prototype.slice.call(n,1)):o[i]())})},e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu" role="listbox"></ul>',item:'<li><a class="dropdown-item" href="#" role="option"></a></li>',minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:e.noop,addItem:!1,delay:0,separator:"category",headerHtml:'<li class="dropdown-header"></li>',headerDivider:'<li class="divider" role="separator"></li>'},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=i,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var i=e(this);i.data("typeahead")||i.typeahead(i.data())})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function e(){return ts.apply(null,arguments)}function t(e){ts=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var i,n=[],s=e.length;for(i=0;i<s;++i)n.push(t(e[i],i));return n}function h(e,t){for(var i in t)s(t,i)&&(e[i]=t[i]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,n){return Dt(e,t,i,n,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=d()),e._pf}function p(e){if(null==e._isValid){var t=_(e),i=is.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function f(e){var t=c(NaN);return null!=e?h(_(t),e):_(t).userInvalidated=!0,t}function E(e,t){var i,n,s,o=ns.length;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=_(t)),r(t._locale)||(e._locale=t._locale),o>0)for(i=0;i<o;i++)n=ns[i],s=t[n],r(s)||(e[n]=s);return e}function T(t){E(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ss===!1&&(ss=!0,e.updateOffset(this),ss=!1)}function g(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function m(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,i){var n=!0;return h(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var o,r,a,l=[],u=arguments.length;for(r=0;r<u;r++){if(o="","object"==typeof arguments[r]){o+="\n["+r+"] ";for(a in arguments[0])s(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[r];l.push(o)}m(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function N(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),os[t]||(m(i),os[t]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,i;for(i in e)s(e,i)&&(t=e[i],I(t)?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,t){var i,o=h({},e);for(i in t)s(t,i)&&(n(e[i])&&n(t[i])?(o[i]={},h(o[i],e[i]),h(o[i],t[i])):null!=t[i]?o[i]=t[i]:delete o[i]);for(i in e)s(e,i)&&!s(t,i)&&n(e[i])&&(o[i]=h({},o[i]));return o}function A(e){null!=e&&this.set(e)}function D(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return I(n)?n.call(t,i):n}function P(e,t,i){var n=""+Math.abs(e),s=t-n.length,o=e>=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function v(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(ds[e]=s),t&&(ds[t[0]]=function(){return P(s.apply(this,arguments),t[1],t[2])}),i&&(ds[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function C(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function y(e){var t,i,n=e.match(us);for(t=0,i=n.length;t<i;t++)ds[n[t]]?n[t]=ds[n[t]]:n[t]=C(n[t]);return function(t){var s,o="";for(s=0;s<i;s++)o+=I(n[s])?n[s].call(t,e):n[s];return o}}function b(e,t){return e.isValid()?(t=L(t,e.localeData()),cs[t]=cs[t]||y(t),cs[t](e)):e.localeData().invalidDate()}function L(e,t){function i(e){return t.longDateFormat(e)||e}var n=5;for(hs.lastIndex=0;n>=0&&hs.test(e);)e=e.replace(hs,i),hs.lastIndex=0,n-=1;return e}function w(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(us).map(function(e){
  12. return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function M(){return this._invalidDate}function U(e){return this._ordinal.replace("%d",e)}function G(e,t,i,n){var s=this._relativeTime[i];return I(s)?s(e,t,i,n):s.replace(/%d/i,e)}function k(e,t){var i=this._relativeTime[e>0?"future":"past"];return I(i)?i(t):i.replace(/%s/i,t)}function x(e,t){var i=e.toLowerCase();gs[i]=gs[i+"s"]=gs[t]=e}function F(e){return"string"==typeof e?gs[e]||gs[e.toLowerCase()]:void 0}function H(e){var t,i,n={};for(i in e)s(e,i)&&(t=F(i),t&&(n[t]=e[i]));return n}function Y(e,t){ms[e]=t}function V(e){var t,i=[];for(t in e)s(e,t)&&i.push({unit:t,priority:ms[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}function B(e){return e%4===0&&e%100!==0||e%400===0}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function z(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=W(t)),i}function j(t,i){return function(n){return null!=n?(X(this,t,n),e.updateOffset(this,i),this):K(this,t)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(i=z(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),oe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function $(e){return e=F(e),I(this[e])?this[e]():this}function q(e,t){if("object"==typeof e){e=H(e);var i,n=V(e),s=n.length;for(i=0;i<s;i++)this[n[i].unit](e[n[i].unit])}else if(e=F(e),I(this[e]))return this[e](t);return this}function Q(e,t,i){as[e]=I(t)?t:function(e,n){return e&&i?i:t}}function Z(e,t){return s(as,e)?as[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var i,n,s=t;for("string"==typeof e&&(e=[e]),a(t)&&(s=function(e,i){i[t]=z(e)}),n=e.length,i=0;i<n;i++)xs[e[i]]=s}function ie(e,t){te(e,function(e,i,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function ne(e,t,i){null!=t&&s(xs,e)&&xs[e](t,i._a,i,e)}function se(e,t){return(e%t+t)%t}function oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=se(t,12);return e+=(t-i)/12,1===i?B(e)?29:28:31-i%7%2}function re(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||qs).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ae(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[qs.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,i){var n,s,o,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?(s=ks.call(this._shortMonthsParse,r),s!==-1?s:null):(s=ks.call(this._longMonthsParse,r),s!==-1?s:null):"MMM"===t?(s=ks.call(this._shortMonthsParse,r),s!==-1?s:(s=ks.call(this._longMonthsParse,r),s!==-1?s:null)):(s=ks.call(this._longMonthsParse,r),s!==-1?s:(s=ks.call(this._shortMonthsParse,r),s!==-1?s:null))}function ue(e,t,i){var n,s,o;if(this._monthsParseExact)return le.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function he(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=z(t);else if(t=e.localeData().monthsParse(t),!a(t))return e;return i=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function ce(t){return null!=t?(he(this,t),e.updateOffset(this,!0),this):K(this,"Month")}function de(){return oe(this.year(),this.month())}function _e(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Qs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Zs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fe(){function e(e,t){return t.length-e.length}var t,i,n=[],s=[],o=[];for(t=0;t<12;t++)i=c([2e3,t]),n.push(this.monthsShort(i,"")),s.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(e),s.sort(e),o.sort(e),t=0;t<12;t++)n[t]=ee(n[t]),s[t]=ee(s[t]);for(t=0;t<24;t++)o[t]=ee(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ee(e){return B(e)?366:365}function Te(){return B(this.year())}function ge(e,t,i,n,s,o,r){var a;return e<100&&e>=0?(a=new Date(e+400,t,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,i,n,s,o,r),a}function me(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Oe(e,t,i){var n=7+t-i,s=(7+me(e,0,n).getUTCDay()-t)%7;return-s+n-1}function Ne(e,t,i,n,s){var o,r,a=(7+i-n)%7,l=Oe(e,n,s),u=1+7*(t-1)+a+l;return u<=0?(o=e-1,r=Ee(o)+u):u>Ee(e)?(o=e+1,r=u-Ee(e)):(o=e,r=u),{year:o,dayOfYear:r}}function Ie(e,t,i){var n,s,o=Oe(e.year(),t,i),r=Math.floor((e.dayOfYear()-o-1)/7)+1;return r<1?(s=e.year()-1,n=r+Re(s,t,i)):r>Re(e.year(),t,i)?(n=r-Re(e.year(),t,i),s=e.year()+1):(s=e.year(),n=r),{week:n,year:s}}function Re(e,t,i){var n=Oe(e,t,i),s=Oe(e+1,t,i);return(Ee(e)-n+s)/7}function Se(e){return Ie(e,this._week.dow,this._week.doy).week}function Ae(){return this._week.dow}function De(){return this._week.doy}function Pe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function ve(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ce(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function ye(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function be(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Le(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?be(n,this._week.dow):e?n[e.day()]:n}function we(e){return e===!0?be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Me(e){return e===!0?be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ue(e,t,i){var n,s,o,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?(s=ks.call(this._weekdaysParse,r),s!==-1?s:null):"ddd"===t?(s=ks.call(this._shortWeekdaysParse,r),s!==-1?s:null):(s=ks.call(this._minWeekdaysParse,r),s!==-1?s:null):"dddd"===t?(s=ks.call(this._weekdaysParse,r),s!==-1?s:(s=ks.call(this._shortWeekdaysParse,r),s!==-1?s:(s=ks.call(this._minWeekdaysParse,r),s!==-1?s:null))):"ddd"===t?(s=ks.call(this._shortWeekdaysParse,r),s!==-1?s:(s=ks.call(this._weekdaysParse,r),s!==-1?s:(s=ks.call(this._minWeekdaysParse,r),s!==-1?s:null))):(s=ks.call(this._minWeekdaysParse,r),s!==-1?s:(s=ks.call(this._weekdaysParse,r),s!==-1?s:(s=ks.call(this._shortWeekdaysParse,r),s!==-1?s:null)))}function Ge(e,t,i){var n,s,o;if(this._weekdaysParseExact)return Ue.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function ke(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ce(e,this.localeData()),this.add(e-t,"d")):t}function xe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=ye(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function He(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=so),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Be(){function e(e,t){return t.length-e.length}var t,i,n,s,o,r=[],a=[],l=[],u=[];for(t=0;t<7;t++)i=c([2e3,1]).day(t),n=ee(this.weekdaysMin(i,"")),s=ee(this.weekdaysShort(i,"")),o=ee(this.weekdays(i,"")),r.push(n),a.push(s),l.push(o),u.push(n),u.push(s),u.push(o);r.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function We(){return this.hours()%12||12}function ze(){return this.hours()||24}function je(e,t){v(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function $e(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}function qe(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,i,n,s,o=0;o<e.length;){for(s=Qe(e[o]).split("-"),t=s.length,i=Qe(e[o+1]),i=i?i.split("-"):null;t>0;){if(n=et(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&qe(s,i)>=t-1)break;t--}o++}return ao}function Je(e){return null!=e.match("^[^/\\\\]*$")}function et(e){var t,i=null;if(void 0===co[e]&&"undefined"!=typeof module&&module&&module.exports&&Je(e))try{i=ao._abbr,t=require,t("./locale/"+e),tt(i)}catch(t){co[e]=null}return co[e]}function tt(e,t){var i;return e&&(i=r(t)?st(e):it(e,t),i?ao=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ao._abbr}function it(e,t){if(null!==t){var i,n=ho;if(t.abbr=e,null!=co[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=co[e]._config;else if(null!=t.parentLocale)if(null!=co[t.parentLocale])n=co[t.parentLocale]._config;else{if(i=et(t.parentLocale),null==i)return _o[t.parentLocale]||(_o[t.parentLocale]=[]),_o[t.parentLocale].push({name:e,config:t}),null;n=i._config}return co[e]=new A(S(n,t)),_o[e]&&_o[e].forEach(function(e){it(e.name,e.config)}),tt(e),co[e]}return delete co[e],null}function nt(e,t){if(null!=t){var i,n,s=ho;null!=co[e]&&null!=co[e].parentLocale?co[e].set(S(co[e]._config,t)):(n=et(e),null!=n&&(s=n._config),t=S(s,t),null==n&&(t.abbr=e),i=new A(t),i.parentLocale=co[e],co[e]=i),tt(e)}else null!=co[e]&&(null!=co[e].parentLocale?(co[e]=co[e].parentLocale,e===tt()&&tt(e)):null!=co[e]&&delete co[e]);return co[e]}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ao;if(!i(e)){if(t=et(e))return t;e=[e]}return Ze(e)}function ot(){return rs(co)}function rt(e){var t,i=e._a;return i&&_(e).overflow===-2&&(t=i[Hs]<0||i[Hs]>11?Hs:i[Ys]<1||i[Ys]>oe(i[Fs],i[Hs])?Ys:i[Vs]<0||i[Vs]>24||24===i[Vs]&&(0!==i[Bs]||0!==i[Ws]||0!==i[zs])?Vs:i[Bs]<0||i[Bs]>59?Bs:i[Ws]<0||i[Ws]>59?Ws:i[zs]<0||i[zs]>999?zs:-1,_(e)._overflowDayOfYear&&(t<Fs||t>Ys)&&(t=Ys),_(e)._overflowWeeks&&t===-1&&(t=js),_(e)._overflowWeekday&&t===-1&&(t=Ks),_(e).overflow=t),e}function at(e){var t,i,n,s,o,r,a=e._i,l=po.exec(a)||fo.exec(a),u=To.length,h=go.length;if(l){for(_(e).iso=!0,t=0,i=u;t<i;t++)if(To[t][1].exec(l[1])){s=To[t][0],n=To[t][2]!==!1;break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,i=h;t<i;t++)if(go[t][1].exec(l[3])){o=(l[2]||" ")+go[t][0];break}if(null==o)return void(e._isValid=!1)}if(!n&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Eo.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=s+(o||"")+(r||""),mt(e)}else e._isValid=!1}function lt(e,t,i,n,s,o){var r=[ut(e),$s.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(s,10)];return o&&r.push(parseInt(o,10)),r}function ut(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ht(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ct(e,t,i){if(e){var n=io.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return _(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function dt(e,t,i){if(e)return No[e];if(t)return 0;var n=parseInt(i,10),s=n%100,o=(n-s)/100;return 60*o+s}function _t(e){var t,i=Oo.exec(ht(e._i));if(i){if(t=lt(i[4],i[3],i[2],i[5],i[6],i[7]),!ct(i[1],t,e))return;e._a=t,e._tzm=dt(i[8],i[9],i[10]),e._d=me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function pt(t){var i=mo.exec(t._i);return null!==i?void(t._d=new Date(+i[1])):(at(t),void(t._isValid===!1&&(delete t._isValid,_t(t),t._isValid===!1&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))))}function ft(e,t,i){return null!=e?e:null!=t?t:i}function Et(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function Tt(e){var t,i,n,s,o,r=[];if(!e._d){for(n=Et(e),e._w&&null==e._a[Ys]&&null==e._a[Hs]&&gt(e),null!=e._dayOfYear&&(o=ft(e._a[Fs],n[Fs]),(e._dayOfYear>Ee(o)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),i=me(o,0,e._dayOfYear),e._a[Hs]=i.getUTCMonth(),e._a[Ys]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Vs]&&0===e._a[Bs]&&0===e._a[Ws]&&0===e._a[zs]&&(e._nextDay=!0,e._a[Vs]=0),e._d=(e._useUTC?me:ge).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Vs]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==s&&(_(e).weekdayMismatch=!0)}}function gt(e){var t,i,n,s,o,r,a,l,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,r=4,i=ft(t.GG,e._a[Fs],Ie(Pt(),1,4).year),n=ft(t.W,1),s=ft(t.E,1),(s<1||s>7)&&(l=!0)):(o=e._locale._week.dow,r=e._locale._week.doy,u=Ie(Pt(),o,r),i=ft(t.gg,e._a[Fs],u.year),n=ft(t.w,u.week),null!=t.d?(s=t.d,(s<0||s>6)&&(l=!0)):null!=t.e?(s=t.e+o,(t.e<0||t.e>6)&&(l=!0)):s=o),n<1||n>Re(i,o,r)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(a=Ne(i,n,s,o,r),e._a[Fs]=a.year,e._dayOfYear=a.dayOfYear)}function mt(t){if(t._f===e.ISO_8601)return void at(t);if(t._f===e.RFC_2822)return void _t(t);t._a=[],_(t).empty=!0;var i,n,s,o,r,a,l,u=""+t._i,h=u.length,c=0;for(s=L(t._f,t._locale).match(us)||[],l=s.length,i=0;i<l;i++)o=s[i],n=(u.match(Z(o,t))||[])[0],n&&(r=u.substr(0,u.indexOf(n)),r.length>0&&_(t).unusedInput.push(r),u=u.slice(u.indexOf(n)+n.length),c+=n.length),ds[o]?(n?_(t).empty=!1:_(t).unusedTokens.push(o),ne(o,n,t)):t._strict&&!n&&_(t).unusedTokens.push(o);_(t).charsLeftOver=h-c,u.length>0&&_(t).unusedInput.push(u),t._a[Vs]<=12&&_(t).bigHour===!0&&t._a[Vs]>0&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[Vs]=Ot(t._locale,t._a[Vs],t._meridiem),a=_(t).era,null!==a&&(t._a[Fs]=t._locale.erasConvertYear(a,t._a[Fs])),Tt(t),rt(t)}function Ot(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(n=e.isPM(i),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Nt(e){var t,i,n,s,o,r,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<l;s++)o=0,r=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],mt(t),p(t)&&(r=!0),o+=_(t).charsLeftOver,o+=10*_(t).unusedTokens.length,_(t).score=o,a?o<n&&(n=o,i=t):(null==n||o<n||r)&&(n=o,i=t,r&&(a=!0));h(e,i||t)}function It(e){if(!e._d){var t=H(e._i),i=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Tt(e)}}function Rt(e){var t=new T(rt(St(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new T(rt(t)):(l(t)?e._d=t:i(n)?Nt(e):n?mt(e):At(e),p(e)||(e._d=null),e))}function At(t){var s=t._i;r(s)?t._d=new Date(e.now()):l(s)?t._d=new Date(s.valueOf()):"string"==typeof s?pt(t):i(s)?(t._a=u(s.slice(0),function(e){return parseInt(e,10)}),Tt(t)):n(s)?It(t):a(s)?t._d=new Date(s):e.createFromInputFallback(t)}function Dt(e,t,s,r,a){var l={};return t!==!0&&t!==!1||(r=t,t=void 0),s!==!0&&s!==!1||(r=s,s=void 0),(n(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=s,l._i=e,l._f=t,l._strict=r,Rt(l)}function Pt(e,t,i,n){return Dt(e,t,i,n,!1)}function vt(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}function Ct(){var e=[].slice.call(arguments,0);return vt("isBefore",e)}function yt(){var e=[].slice.call(arguments,0);return vt("isAfter",e)}function bt(e){var t,i,n=!1,o=Ao.length;for(t in e)if(s(e,t)&&(ks.call(Ao,t)===-1||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<o;++i)if(e[Ao[i]]){if(n)return!1;parseFloat(e[Ao[i]])!==z(e[Ao[i]])&&(n=!0)}return!0}function Lt(){return this._isValid}function wt(){return Jt(NaN)}function Mt(e){var t=H(e),i=t.year||0,n=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,r=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,h=t.millisecond||0;this._isValid=bt(t),this._milliseconds=+h+1e3*u+6e4*l+1e3*a*60*60,this._days=+r+7*o,this._months=+s+3*n+12*i,this._data={},this._locale=st(),this._bubble()}function Ut(e){return e instanceof Mt}function Gt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function kt(e,t,i){var n,s=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),r=0;for(n=0;n<s;n++)(i&&e[n]!==t[n]||!i&&z(e[n])!==z(t[n]))&&r++;return r+o}function xt(e,t){v(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+P(~~(e/60),2)+t+P(~~e%60,2)})}function Ft(e,t){var i,n,s,o=(t||"").match(e);return null===o?null:(i=o[o.length-1]||[],n=(i+"").match(Do)||["-",0,0],s=+(60*n[1])+z(n[2]),0===s?0:"+"===n[0]?s:-s)}function Ht(t,i){var n,s;return i._isUTC?(n=i.clone(),s=(g(t)||l(t)?t.valueOf():Pt(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),e.updateOffset(n,!1),n):Pt(t).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Vt(t,i,n){var s,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(t=Ft(Ms,t),null===t)return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(s=Yt(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==t&&(!i||this._changeInProgress?si(this,Jt(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Yt(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wt(e){return this.utcOffset(0,e)}function zt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this}function jt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ws,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Kt(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Xt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $t(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),t=St(t),t._a?(e=t._isUTC?c(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&kt(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qt(){return!!this.isValid()&&!this._isUTC}function Qt(){return!!this.isValid()&&this._isUTC}function Zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Jt(e,t){var i,n,o,r=e,l=null;return Ut(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:a(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(l=Po.exec(e))?(i="-"===l[1]?-1:1,r={y:0,d:z(l[Ys])*i,h:z(l[Vs])*i,m:z(l[Bs])*i,s:z(l[Ws])*i,ms:z(Gt(1e3*l[zs]))*i}):(l=vo.exec(e))?(i="-"===l[1]?-1:1,r={y:ei(l[2],i),M:ei(l[3],i),w:ei(l[4],i),d:ei(l[5],i),h:ei(l[6],i),m:ei(l[7],i),s:ei(l[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=ii(Pt(r.from),Pt(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),n=new Mt(r),Ut(e)&&s(e,"_locale")&&(n._locale=e._locale),Ut(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function ei(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function ti(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function ii(e,t){var i;return e.isValid()&&t.isValid()?(t=Ht(t,e),e.isBefore(t)?i=ti(e,t):(i=ti(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ni(e,t){return function(i,n){var s,o;return null===n||isNaN(+n)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),s=Jt(i,n),si(this,s,e),this}}function si(t,i,n,s){var o=i._milliseconds,r=Gt(i._days),a=Gt(i._months);t.isValid()&&(s=null==s||s,a&&he(t,K(t,"Month")+a*n),r&&X(t,"Date",K(t,"Date")+r*n),o&&t._d.setTime(t._d.valueOf()+o*n),s&&e.updateOffset(t,r||a))}function oi(e){return"string"==typeof e||e instanceof String}function ri(e){return g(e)||l(e)||oi(e)||a(e)||li(e)||ai(e)||null===e||void 0===e}function ai(e){var t,i,r=n(e)&&!o(e),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)i=l[t],a=a||s(e,i);return r&&a}function li(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!a(t)&&oi(e)}).length),t&&n}function ui(e){var t,i,r=n(e)&&!o(e),a=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)i=l[t],a=a||s(e,i);return r&&a}function hi(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ci(t,i){1===arguments.length&&(arguments[0]?ri(arguments[0])?(t=arguments[0],i=void 0):ui(arguments[0])&&(i=arguments[0],t=void 0):(t=void 0,i=void 0));var n=t||Pt(),s=Ht(n,this).startOf("day"),o=e.calendarFormat(this,s)||"sameElse",r=i&&(I(i[o])?i[o].call(this,n):i[o]);return this.format(r||this.localeData().calendar(o,this,Pt(n)))}function di(){return new T(this)}function _i(e,t){var i=g(e)?e:Pt(e);return!(!this.isValid()||!i.isValid())&&(t=F(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function pi(e,t){var i=g(e)?e:Pt(e);return!(!this.isValid()||!i.isValid())&&(t=F(t)||"millisecond","millisecond"===t?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function fi(e,t,i,n){var s=g(e)?e:Pt(e),o=g(t)?t:Pt(t);return!!(this.isValid()&&s.isValid()&&o.isValid())&&(n=n||"()",("("===n[0]?this.isAfter(s,i):!this.isBefore(s,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i)))}function Ei(e,t){var i,n=g(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&(t=F(t)||"millisecond","millisecond"===t?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function Ti(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function gi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function mi(e,t,i){var n,s,o;if(!this.isValid())return NaN;if(n=Ht(e,this),!n.isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=Oi(this,n)/12;break;case"month":o=Oi(this,n);break;case"quarter":o=Oi(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:W(o)}function Oi(e,t){if(e.date()<t.date())return-Oi(t,e);var i,n,s=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(s,"months");return t-o<0?(i=e.clone().add(s-1,"months"),n=(t-o)/(o-i)):(i=e.clone().add(s+1,"months"),n=(t-o)/(i-o)),-(s+n)||0}function Ni(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ii(e){if(!this.isValid())return null;var t=e!==!0,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?b(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",b(i,"Z")):b(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ri(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n,s="moment",o="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+i+n)}function Si(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=b(this,t);return this.localeData().postformat(i)}function Ai(e,t){return this.isValid()&&(g(e)&&e.isValid()||Pt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Di(e){return this.from(Pt(),e)}function Pi(e,t){return this.isValid()&&(g(e)&&e.isValid()||Pt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vi(e){return this.to(Pt(),e)}function Ci(e){var t;return void 0===e?this._locale._abbr:(t=st(e),null!=t&&(this._locale=t),this)}function yi(){return this._locale}function bi(e,t){return(e%t+t)%t}function Li(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-Uo:new Date(e,t,i).valueOf()}function wi(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-Uo:Date.UTC(e,t,i)}function Mi(t){var i,n;if(t=F(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?wi:Li,t){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=bi(i+(this._isUTC?0:this.utcOffset()*wo),Mo);break;case"minute":i=this._d.valueOf(),i-=bi(i,wo);break;case"second":i=this._d.valueOf(),i-=bi(i,Lo)}return this._d.setTime(i),e.updateOffset(this,!0),this}function Ui(t){var i,n;if(t=F(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?wi:Li,t){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=Mo-bi(i+(this._isUTC?0:this.utcOffset()*wo),Mo)-1;break;case"minute":i=this._d.valueOf(),i+=wo-bi(i,wo)-1;break;case"second":i=this._d.valueOf(),i+=Lo-bi(i,Lo)-1}return this._d.setTime(i),e.updateOffset(this,!0),this}function Gi(){return this._d.valueOf()-6e4*(this._offset||0)}function ki(){return Math.floor(this.valueOf()/1e3)}function xi(){return new Date(this.valueOf())}function Fi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Hi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Yi(){return this.isValid()?this.toISOString():null}function Vi(){return p(this)}function Bi(){return h({},_(this))}function Wi(){return _(this).overflow}function zi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ji(t,i){var n,s,o,r=this._eras||st("en")._eras;for(n=0,s=r.length;n<s;++n){switch(typeof r[n].since){case"string":o=e(r[n].since).startOf("day"),r[n].since=o.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=+(1/0);break;case"string":o=e(r[n].until).startOf("day").valueOf(),r[n].until=o.valueOf()}}return r}function Ki(e,t,i){var n,s,o,r,a,l=this.eras();for(e=e.toUpperCase(),n=0,s=l.length;n<s;++n)if(o=l[n].name.toUpperCase(),r=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if([o,r,a].indexOf(e)>=0)return l[n]}function Xi(t,i){var n=t.since<=t.until?1:-1;return void 0===i?e(t.since).year():e(t.since).year()+(i-t.offset)*n}function $i(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function qi(){
  13. var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Qi(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Zi(){var t,i,n,s,o=this.localeData().eras();for(t=0,i=o.length;t<i;++t)if(n=o[t].since<=o[t].until?1:-1,s=this.clone().startOf("day").valueOf(),o[t].since<=s&&s<=o[t].until||o[t].until<=s&&s<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()}function Ji(e){return s(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex}function en(e){return s(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex}function tn(e){return s(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex}function nn(e,t){return t.erasAbbrRegex(e)}function sn(e,t){return t.erasNameRegex(e)}function on(e,t){return t.erasNarrowRegex(e)}function rn(e,t){return t._eraYearOrdinalRegex||bs}function an(){var e,t,i=[],n=[],s=[],o=[],r=this.eras();for(e=0,t=r.length;e<t;++e)n.push(ee(r[e].name)),i.push(ee(r[e].abbr)),s.push(ee(r[e].narrow)),o.push(ee(r[e].name)),o.push(ee(r[e].abbr)),o.push(ee(r[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function ln(e,t){v(0,[e,e.length],0,t)}function un(e){return fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function hn(e){return fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function cn(){return Re(this.year(),1,4)}function dn(){return Re(this.isoWeekYear(),1,4)}function _n(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)}function pn(){var e=this.localeData()._week;return Re(this.weekYear(),e.dow,e.doy)}function fn(e,t,i,n,s){var o;return null==e?Ie(this,n,s).year:(o=Re(e,n,s),t>o&&(t=o),En.call(this,e,t,i,n,s))}function En(e,t,i,n,s){var o=Ne(e,t,i,n,s),r=me(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Tn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function gn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function mn(e,t){t[zs]=z(1e3*("0."+e))}function On(){return this._isUTC?"UTC":""}function Nn(){return this._isUTC?"Coordinated Universal Time":""}function In(e){return Pt(1e3*e)}function Rn(){return Pt.apply(null,arguments).parseZone()}function Sn(e){return e}function An(e,t,i,n){var s=st(),o=c().set(n,t);return s[i](o,e)}function Dn(e,t,i){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return An(e,t,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=An(e,n,i,"month");return s}function Pn(e,t,i,n){"boolean"==typeof e?(a(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,a(t)&&(i=t,t=void 0),t=t||"");var s,o=st(),r=e?o._week.dow:0,l=[];if(null!=i)return An(t,(i+r)%7,n,"day");for(s=0;s<7;s++)l[s]=An(t,(s+r)%7,n,"day");return l}function vn(e,t){return Dn(e,t,"months")}function Cn(e,t){return Dn(e,t,"monthsShort")}function yn(e,t,i){return Pn(e,t,i,"weekdays")}function bn(e,t,i){return Pn(e,t,i,"weekdaysShort")}function Ln(e,t,i){return Pn(e,t,i,"weekdaysMin")}function wn(){var e=this._data;return this._milliseconds=Bo(this._milliseconds),this._days=Bo(this._days),this._months=Bo(this._months),e.milliseconds=Bo(e.milliseconds),e.seconds=Bo(e.seconds),e.minutes=Bo(e.minutes),e.hours=Bo(e.hours),e.months=Bo(e.months),e.years=Bo(e.years),this}function Mn(e,t,i,n){var s=Jt(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Un(e,t){return Mn(this,e,t,1)}function Gn(e,t){return Mn(this,e,t,-1)}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(){var e,t,i,n,s,o=this._milliseconds,r=this._days,a=this._months,l=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*kn(Hn(a)+r),r=0,a=0),l.milliseconds=o%1e3,e=W(o/1e3),l.seconds=e%60,t=W(e/60),l.minutes=t%60,i=W(t/60),l.hours=i%24,r+=W(i/24),s=W(Fn(r)),a+=s,r-=kn(Hn(s)),n=W(a/12),a%=12,l.days=r,l.months=a,l.years=n,this}function Fn(e){return 4800*e/146097}function Hn(e){return 146097*e/4800}function Yn(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if(e=F(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Fn(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Hn(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Vn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12):NaN}function Bn(e){return function(){return this.as(e)}}function Wn(){return Jt(this)}function zn(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function jn(e){return function(){return this.isValid()?this._data[e]:NaN}}function Kn(){return W(this.days()/7)}function Xn(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}function $n(e,t,i,n){var s=Jt(e).abs(),o=rr(s.as("s")),r=rr(s.as("m")),a=rr(s.as("h")),l=rr(s.as("d")),u=rr(s.as("M")),h=rr(s.as("w")),c=rr(s.as("y")),d=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||r<=1&&["m"]||r<i.m&&["mm",r]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(d=d||h<=1&&["w"]||h<i.w&&["ww",h]),d=d||u<=1&&["M"]||u<i.M&&["MM",u]||c<=1&&["y"]||["yy",c],d[2]=t,d[3]=+e>0,d[4]=n,Xn.apply(null,d)}function qn(e){return void 0===e?rr:"function"==typeof e&&(rr=e,!0)}function Qn(e,t){return void 0!==ar[e]&&(void 0===t?ar[e]:(ar[e]=t,"s"===e&&(ar.ss=t-1),!0))}function Zn(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,o=ar;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(o=Object.assign({},ar,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=this.localeData(),n=$n(this,!s,o,i),s&&(n=i.pastFuture(+this,n)),i.postformat(n)}function Jn(e){return(e>0)-(e<0)||+e}function es(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,s,o,r,a,l=lr(this._milliseconds)/1e3,u=lr(this._days),h=lr(this._months),c=this.asSeconds();return c?(e=W(l/60),t=W(e/60),l%=60,e%=60,i=W(h/12),h%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",o=Jn(this._months)!==Jn(c)?"-":"",r=Jn(this._days)!==Jn(c)?"-":"",a=Jn(this._milliseconds)!==Jn(c)?"-":"",s+"P"+(i?o+i+"Y":"")+(h?o+h+"M":"")+(u?r+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+n+"S":"")):"P0D"}var ts,is;is=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var ns=e.momentProperties=[],ss=!1,os={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var rs;rs=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)s(e,t)&&i.push(t);return i};var as,ls={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},us=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,hs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cs={},ds={},_s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ps="Invalid date",fs="%d",Es=/\d{1,2}/,Ts={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},gs={},ms={},Os=/\d/,Ns=/\d\d/,Is=/\d{3}/,Rs=/\d{4}/,Ss=/[+-]?\d{6}/,As=/\d\d?/,Ds=/\d\d\d\d?/,Ps=/\d\d\d\d\d\d?/,vs=/\d{1,3}/,Cs=/\d{1,4}/,ys=/[+-]?\d{1,6}/,bs=/\d+/,Ls=/[+-]?\d+/,ws=/Z|[+-]\d\d:?\d\d/gi,Ms=/Z|[+-]\d\d(?::?\d\d)?/gi,Us=/[+-]?\d+(\.\d{1,3})?/,Gs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;as={};var ks,xs={},Fs=0,Hs=1,Ys=2,Vs=3,Bs=4,Ws=5,zs=6,js=7,Ks=8;ks=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},v("M",["MM",2],"Mo",function(){return this.month()+1}),v("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),v("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("month","M"),Y("month",8),Q("M",As),Q("MM",As,Ns),Q("MMM",function(e,t){return t.monthsShortRegex(e)}),Q("MMMM",function(e,t){return t.monthsRegex(e)}),te(["M","MM"],function(e,t){t[Hs]=z(e)-1}),te(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);null!=s?t[Hs]=s:_(i).invalidMonth=e});var Xs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$s="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qs=Gs,Zs=Gs;v("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),v(0,["YY",2],0,function(){return this.year()%100}),v(0,["YYYY",4],0,"year"),v(0,["YYYYY",5],0,"year"),v(0,["YYYYYY",6,!0],0,"year"),x("year","y"),Y("year",1),Q("Y",Ls),Q("YY",As,Ns),Q("YYYY",Cs,Rs),Q("YYYYY",ys,Ss),Q("YYYYYY",ys,Ss),te(["YYYYY","YYYYYY"],Fs),te("YYYY",function(t,i){i[Fs]=2===t.length?e.parseTwoDigitYear(t):z(t)}),te("YY",function(t,i){i[Fs]=e.parseTwoDigitYear(t)}),te("Y",function(e,t){t[Fs]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return z(e)+(z(e)>68?1900:2e3)};var Js=j("FullYear",!0);v("w",["ww",2],"wo","week"),v("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),Y("week",5),Y("isoWeek",5),Q("w",As),Q("ww",As,Ns),Q("W",As),Q("WW",As,Ns),ie(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=z(e)});var eo={dow:0,doy:6};v("d",0,"do","day"),v("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),v("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),v("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),v("e",0,0,"weekday"),v("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),Q("d",As),Q("e",As),Q("E",As),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);null!=s?t.d=s:_(i).invalidWeekday=e}),ie(["d","e","E"],function(e,t,i,n){t[n]=z(e)});var to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),io="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),no="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),so=Gs,oo=Gs,ro=Gs;v("H",["HH",2],0,"hour"),v("h",["hh",2],0,We),v("k",["kk",2],0,ze),v("hmm",0,0,function(){return""+We.apply(this)+P(this.minutes(),2)}),v("hmmss",0,0,function(){return""+We.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),v("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),v("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),je("a",!0),je("A",!1),x("hour","h"),Y("hour",13),Q("a",Ke),Q("A",Ke),Q("H",As),Q("h",As),Q("k",As),Q("HH",As,Ns),Q("hh",As,Ns),Q("kk",As,Ns),Q("hmm",Ds),Q("hmmss",Ps),Q("Hmm",Ds),Q("Hmmss",Ps),te(["H","HH"],Vs),te(["k","kk"],function(e,t,i){var n=z(e);t[Vs]=24===n?0:n}),te(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),te(["h","hh"],function(e,t,i){t[Vs]=z(e),_(i).bigHour=!0}),te("hmm",function(e,t,i){var n=e.length-2;t[Vs]=z(e.substr(0,n)),t[Bs]=z(e.substr(n)),_(i).bigHour=!0}),te("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[Vs]=z(e.substr(0,n)),t[Bs]=z(e.substr(n,2)),t[Ws]=z(e.substr(s)),_(i).bigHour=!0}),te("Hmm",function(e,t,i){var n=e.length-2;t[Vs]=z(e.substr(0,n)),t[Bs]=z(e.substr(n))}),te("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[Vs]=z(e.substr(0,n)),t[Bs]=z(e.substr(n,2)),t[Ws]=z(e.substr(s))});var ao,lo=/[ap]\.?m?\.?/i,uo=j("Hours",!0),ho={calendar:ls,longDateFormat:_s,invalidDate:ps,ordinal:fs,dayOfMonthOrdinalParse:Es,relativeTime:Ts,months:Xs,monthsShort:$s,week:eo,weekdays:to,weekdaysMin:no,weekdaysShort:io,meridiemParse:lo},co={},_o={},po=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Eo=/Z|[+-]\d\d(?::?\d\d)?/,To=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],go=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mo=/^\/?Date\((-?\d+)/i,Oo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,No={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Io=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),Ro=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}),So=function(){return Date.now?Date.now():+new Date},Ao=["year","quarter","month","week","day","hour","minute","second","millisecond"];xt("Z",":"),xt("ZZ",""),Q("Z",Ms),Q("ZZ",Ms),te(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Ft(Ms,e)});var Do=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Po=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,vo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Jt.fn=Mt.prototype,Jt.invalid=wt;var Co=ni(1,"add"),yo=ni(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var bo=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),Lo=1e3,wo=60*Lo,Mo=60*wo,Uo=3506328*Mo;v("N",0,0,"eraAbbr"),v("NN",0,0,"eraAbbr"),v("NNN",0,0,"eraAbbr"),v("NNNN",0,0,"eraName"),v("NNNNN",0,0,"eraNarrow"),v("y",["y",1],"yo","eraYear"),v("y",["yy",2],0,"eraYear"),v("y",["yyy",3],0,"eraYear"),v("y",["yyyy",4],0,"eraYear"),Q("N",nn),Q("NN",nn),Q("NNN",nn),Q("NNNN",sn),Q("NNNNN",on),te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){var s=i._locale.erasParse(e,n,i._strict);s?_(i).era=s:_(i).invalidEra=e}),Q("y",bs),Q("yy",bs),Q("yyy",bs),Q("yyyy",bs),Q("yo",rn),te(["y","yy","yyy","yyyy"],Fs),te(["yo"],function(e,t,i,n){var s;i._locale._eraYearOrdinalRegex&&(s=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[Fs]=i._locale.eraYearOrdinalParse(e,s):t[Fs]=parseInt(e,10)}),v(0,["gg",2],0,function(){return this.weekYear()%100}),v(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),Q("G",Ls),Q("g",Ls),Q("GG",As,Ns),Q("gg",As,Ns),Q("GGGG",Cs,Rs),Q("gggg",Cs,Rs),Q("GGGGG",ys,Ss),Q("ggggg",ys,Ss),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=z(e)}),ie(["gg","GG"],function(t,i,n,s){i[s]=e.parseTwoDigitYear(t)}),v("Q",0,"Qo","quarter"),x("quarter","Q"),Y("quarter",7),Q("Q",Os),te("Q",function(e,t){t[Hs]=3*(z(e)-1)}),v("D",["DD",2],"Do","date"),x("date","D"),Y("date",9),Q("D",As),Q("DD",As,Ns),Q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),te(["D","DD"],Ys),te("Do",function(e,t){t[Ys]=z(e.match(As)[0])});var Go=j("Date",!0);v("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),Y("dayOfYear",4),Q("DDD",vs),Q("DDDD",Is),te(["DDD","DDDD"],function(e,t,i){i._dayOfYear=z(e)}),v("m",["mm",2],0,"minute"),x("minute","m"),Y("minute",14),Q("m",As),Q("mm",As,Ns),te(["m","mm"],Bs);var ko=j("Minutes",!1);v("s",["ss",2],0,"second"),x("second","s"),Y("second",15),Q("s",As),Q("ss",As,Ns),te(["s","ss"],Ws);var xo=j("Seconds",!1);v("S",0,0,function(){return~~(this.millisecond()/100)}),v(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),v(0,["SSS",3],0,"millisecond"),v(0,["SSSS",4],0,function(){return 10*this.millisecond()}),v(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),v(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),v(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),v(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),v(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x("millisecond","ms"),Y("millisecond",16),Q("S",vs,Os),Q("SS",vs,Ns),Q("SSS",vs,Is);var Fo,Ho;for(Fo="SSSS";Fo.length<=9;Fo+="S")Q(Fo,bs);for(Fo="S";Fo.length<=9;Fo+="S")te(Fo,mn);Ho=j("Milliseconds",!1),v("z",0,0,"zoneAbbr"),v("zz",0,0,"zoneName");var Yo=T.prototype;Yo.add=Co,Yo.calendar=ci,Yo.clone=di,Yo.diff=mi,Yo.endOf=Ui,Yo.format=Si,Yo.from=Ai,Yo.fromNow=Di,Yo.to=Pi,Yo.toNow=vi,Yo.get=$,Yo.invalidAt=Wi,Yo.isAfter=_i,Yo.isBefore=pi,Yo.isBetween=fi,Yo.isSame=Ei,Yo.isSameOrAfter=Ti,Yo.isSameOrBefore=gi,Yo.isValid=Vi,Yo.lang=bo,Yo.locale=Ci,Yo.localeData=yi,Yo.max=Ro,Yo.min=Io,Yo.parsingFlags=Bi,Yo.set=q,Yo.startOf=Mi,Yo.subtract=yo,Yo.toArray=Fi,Yo.toObject=Hi,Yo.toDate=xi,Yo.toISOString=Ii,Yo.inspect=Ri,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Yo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Yo.toJSON=Yi,Yo.toString=Ni,Yo.unix=ki,Yo.valueOf=Gi,Yo.creationData=zi,Yo.eraName=$i,Yo.eraNarrow=qi,Yo.eraAbbr=Qi,Yo.eraYear=Zi,Yo.year=Js,Yo.isLeapYear=Te,Yo.weekYear=un,Yo.isoWeekYear=hn,Yo.quarter=Yo.quarters=Tn,Yo.month=ce,Yo.daysInMonth=de,Yo.week=Yo.weeks=Pe,Yo.isoWeek=Yo.isoWeeks=ve,Yo.weeksInYear=_n,Yo.weeksInWeekYear=pn,Yo.isoWeeksInYear=cn,Yo.isoWeeksInISOWeekYear=dn,Yo.date=Go,Yo.day=Yo.days=ke,Yo.weekday=xe,Yo.isoWeekday=Fe,Yo.dayOfYear=gn,Yo.hour=Yo.hours=uo,Yo.minute=Yo.minutes=ko,Yo.second=Yo.seconds=xo,Yo.millisecond=Yo.milliseconds=Ho,Yo.utcOffset=Vt,Yo.utc=Wt,Yo.local=zt,Yo.parseZone=jt,Yo.hasAlignedHourOffset=Kt,Yo.isDST=Xt,Yo.isLocal=qt,Yo.isUtcOffset=Qt,Yo.isUtc=Zt,Yo.isUTC=Zt,Yo.zoneAbbr=On,Yo.zoneName=Nn,Yo.dates=O("dates accessor is deprecated. Use date instead.",Go),Yo.months=O("months accessor is deprecated. Use month instead",ce),Yo.years=O("years accessor is deprecated. Use year instead",Js),Yo.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),Yo.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$t);var Vo=A.prototype;Vo.calendar=D,Vo.longDateFormat=w,Vo.invalidDate=M,Vo.ordinal=U,Vo.preparse=Sn,Vo.postformat=Sn,Vo.relativeTime=G,Vo.pastFuture=k,Vo.set=R,Vo.eras=ji,Vo.erasParse=Ki,Vo.erasConvertYear=Xi,Vo.erasAbbrRegex=en,Vo.erasNameRegex=Ji,Vo.erasNarrowRegex=tn,Vo.months=re,Vo.monthsShort=ae,Vo.monthsParse=ue,Vo.monthsRegex=pe,Vo.monthsShortRegex=_e,Vo.week=Se,Vo.firstDayOfYear=De,Vo.firstDayOfWeek=Ae,Vo.weekdays=Le,Vo.weekdaysMin=Me,Vo.weekdaysShort=we,Vo.weekdaysParse=Ge,Vo.weekdaysRegex=He,Vo.weekdaysShortRegex=Ye,Vo.weekdaysMinRegex=Ve,Vo.isPM=Xe,Vo.meridiem=$e,tt("en",{eras:[{since:"0001-01-01",until:+(1/0),offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-(1/0),offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),e.lang=O("moment.lang is deprecated. Use moment.locale instead.",tt),e.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var Bo=Math.abs,Wo=Bn("ms"),zo=Bn("s"),jo=Bn("m"),Ko=Bn("h"),Xo=Bn("d"),$o=Bn("w"),qo=Bn("M"),Qo=Bn("Q"),Zo=Bn("y"),Jo=jn("milliseconds"),er=jn("seconds"),tr=jn("minutes"),ir=jn("hours"),nr=jn("days"),sr=jn("months"),or=jn("years"),rr=Math.round,ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},lr=Math.abs,ur=Mt.prototype;return ur.isValid=Lt,ur.abs=wn,ur.add=Un,ur.subtract=Gn,ur.as=Yn,ur.asMilliseconds=Wo,ur.asSeconds=zo,ur.asMinutes=jo,ur.asHours=Ko,ur.asDays=Xo,ur.asWeeks=$o,ur.asMonths=qo,ur.asQuarters=Qo,ur.asYears=Zo,ur.valueOf=Vn,ur._bubble=xn,ur.clone=Wn,ur.get=zn,ur.milliseconds=Jo,ur.seconds=er,ur.minutes=tr,ur.hours=ir,ur.days=nr,ur.weeks=Kn,ur.months=sr,ur.years=or,ur.humanize=Zn,ur.toISOString=es,ur.toString=es,ur.toJSON=es,ur.locale=Ci,ur.localeData=yi,ur.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",es),ur.lang=bo,v("X",0,0,"unix"),v("x",0,0,"valueOf"),Q("x",Ls),Q("X",Us),te("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),te("x",function(e,t,i){i._d=new Date(z(e))}),e.version="2.29.4",t(Pt),e.fn=Yo,e.min=Ct,e.max=yt,e.now=So,e.utc=c,e.unix=In,e.months=vn,e.isDate=l,e.locale=tt,e.invalid=f,e.duration=Jt,e.isMoment=g,e.weekdays=yn,e.parseZone=Rn,e.localeData=st,e.isDuration=Ut,e.monthsShort=Cn,e.weekdaysMin=Ln,e.defineLocale=it,e.updateLocale=nt,e.locales=ot,e.weekdaysShort=bn,e.normalizeUnits=F,e.relativeTimeRounding=qn,e.relativeTimeThreshold=Qn,e.calendarFormat=hi,e.prototype=Yo,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}),function(e){"use strict";"function"==typeof define&&define.amd?define("spectrumColorPicker",["jquery"],e):"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){"use strict";function i(t,i,n,s){for(var o=[],r=0;r<t.length;r++){var a=t[r];if(a){var l=tinycolor(a),u=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=tinycolor.equals(i,a)?" sp-thumb-active":"";var h=l.toString(s.preferredFormat||"rgb"),c=E?"background-color:"+l.toRgbString():"filter:"+l.toFilter();o.push('<span title="'+h+'" data-color="'+l.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+c+';" /></span>')}else{var d="sp-clear-display";o.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="'+d+'"></span>').attr("title",s.noColorSelectedText)).html())}}return"<div class='sp-cf "+n+"'>"+o.join("")+"</div>"}function n(){for(var e=0;e<p.length;e++)p[e]&&p[e].hide()}function s(t,i){var n=e.extend({},_,t);return n.callbacks={move:u(n.move,i),change:u(n.change,i),show:u(n.show,i),hide:u(n.hide,i),beforeShow:u(n.beforeShow,i)},n}function o(o,a){function u(){if(j.showPaletteOnly&&(j.showPalette=!0),xe.text(j.showPaletteOnly?j.togglePaletteMoreText:j.togglePaletteLessText),j.palette){_e=j.palette.slice(0),pe=e.isArray(_e[0])?_e:[_e],fe={};for(var t=0;t<pe.length;t++)for(var i=0;i<pe[t].length;i++){var n=tinycolor(pe[t][i]).toRgbString();fe[n]=!0}}Re.toggleClass("sp-flat",K),Re.toggleClass("sp-input-disabled",!j.showInput),Re.toggleClass("sp-alpha-enabled",j.showAlpha),Re.toggleClass("sp-clear-enabled",qe),Re.toggleClass("sp-buttons-disabled",!j.showButtons),Re.toggleClass("sp-palette-buttons-disabled",!j.togglePaletteOnly),Re.toggleClass("sp-palette-disabled",!j.showPalette),Re.toggleClass("sp-palette-only",j.showPaletteOnly),Re.toggleClass("sp-initial-disabled",!j.showInitial),Re.addClass(j.className).addClass(j.containerClassName),H()}function _(){function t(t){return t.data&&t.data.ignore?(w(e(t.target).closest(".sp-thumb-el").data("color")),G()):(w(e(t.target).closest(".sp-thumb-el").data("color")),G(),F(!0),j.hideAfterPaletteSelect&&b()),!1}if(f&&Re.find("*:not(input)").attr("unselectable","on"),u(),Ye&&Ne.after(Ve).hide(),qe||Ge.hide(),K)Ne.after(Re).hide();else{var i="parent"===j.appendTo?Ne.parent():e(j.appendTo);1!==i.length&&(i=e("body")),i.append(Re)}m(),Be.bind("click.spectrum touchstart.spectrum",function(t){Ie||P(),t.stopPropagation(),e(t.target).is("input")||t.preventDefault()}),(Ne.is(":disabled")||j.disabled===!0)&&W(),Re.click(l),Le.change(D),Le.bind("paste",function(){setTimeout(D,1)}),Le.keydown(function(e){13==e.keyCode&&D()}),Ue.text(j.cancelText),Ue.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),L(),b()}),Ge.attr("title",j.clearText),Ge.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),$e=!0,G(),K&&F(!0)}),ke.text(j.chooseText),ke.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),f&&Le.is(":focus")&&Le.trigger("change"),U()&&(F(!0),b())}),xe.text(j.showPaletteOnly?j.togglePaletteMoreText:j.togglePaletteLessText),xe.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),j.showPaletteOnly=!j.showPaletteOnly,j.showPaletteOnly||K||Re.css("left","-="+(Se.outerWidth(!0)+5)),u()}),h(ye,function(e,t,i){de=e/re,$e=!1,i.shiftKey&&(de=Math.round(10*de)/10),G()},S,A),h(Pe,function(e,t){ue=parseFloat(t/se),$e=!1,j.showAlpha||(de=1),G()},S,A),h(Ae,function(e,t,i){if(i.shiftKey){if(!me){var n=he*te,s=ie-ce*ie,o=Math.abs(e-n)>Math.abs(t-s);me=o?"x":"y"}}else me=null;var r=!me||"x"===me,a=!me||"y"===me;r&&(he=parseFloat(e/te)),a&&(ce=parseFloat((ie-t)/ie)),$e=!1,j.showAlpha||(de=1),G()},S,A),ze?(w(ze),k(),Ke=j.preferredFormat||tinycolor(ze).format,O(ze)):k(),K&&v();var n=f?"mousedown.spectrum":"click.spectrum touchstart.spectrum";we.delegate(".sp-thumb-el",n,t),Me.delegate(".sp-thumb-el:nth-child(1)",n,{ignore:!0},t)}function m(){if($&&window.localStorage){try{var t=window.localStorage[$].split(",#");t.length>1&&(delete window.localStorage[$],e.each(t,function(e,t){O(t)}))}catch(e){}try{Ee=window.localStorage[$].split(";")}catch(e){}}}function O(t){if(X){var i=tinycolor(t).toRgbString();if(!fe[i]&&e.inArray(i,Ee)===-1)for(Ee.push(i);Ee.length>Te;)Ee.shift();if($&&window.localStorage)try{window.localStorage[$]=Ee.join(";")}catch(e){}}}function N(){var e=[];if(j.showPalette)for(var t=0;t<Ee.length;t++){var i=tinycolor(Ee[t]).toRgbString();fe[i]||e.push(Ee[t])}return e.reverse().slice(0,j.maxSelectionSize)}function I(){var t=M(),n=e.map(pe,function(e,n){return i(e,t,"sp-palette-row sp-palette-row-"+n,j)});m(),Ee&&n.push(i(N(),t,"sp-palette-row sp-palette-row-selection",j)),we.html(n.join(""))}function R(){if(j.showInitial){var e=je,t=M();Me.html(i([e,t],t,"sp-palette-row-initial",j))}}function S(){(ie<=0||te<=0||se<=0)&&H(),ee=!0,Re.addClass(ge),me=null,Ne.trigger("dragstart.spectrum",[M()])}function A(){ee=!1,Re.removeClass(ge),Ne.trigger("dragstop.spectrum",[M()])}function D(){var e=Le.val();if(null!==e&&""!==e||!qe){var t=tinycolor(e);t.isValid()?(w(t),F(!0)):Le.addClass("sp-validation-error")}else w(null),F(!0)}function P(){J?b():v()}function v(){var t=e.Event("beforeShow.spectrum");return J?void H():(Ne.trigger(t,[M()]),void(Q.beforeShow(M())===!1||t.isDefaultPrevented()||(n(),J=!0,e(Oe).bind("keydown.spectrum",C),e(Oe).bind("click.spectrum",y),e(window).bind("resize.spectrum",Z),Ve.addClass("sp-active"),Re.removeClass("sp-hidden"),H(),k(),je=M(),R(),Q.show(je),Ne.trigger("show.spectrum",[je]))))}function C(e){27===e.keyCode&&b()}function y(e){2!=e.button&&(ee||(Xe?F(!0):L(),b()))}function b(){J&&!K&&(J=!1,e(Oe).unbind("keydown.spectrum",C),e(Oe).unbind("click.spectrum",y),e(window).unbind("resize.spectrum",Z),Ve.removeClass("sp-active"),Re.addClass("sp-hidden"),Q.hide(M()),Ne.trigger("hide.spectrum",[M()]))}function L(){w(je,!0)}function w(e,t){if(tinycolor.equals(e,M()))return void k();var i,n;!e&&qe?$e=!0:($e=!1,i=tinycolor(e),n=i.toHsv(),ue=n.h%360/360,he=n.s,ce=n.v,de=n.a),k(),i&&i.isValid()&&!t&&(Ke=j.preferredFormat||i.getFormat())}function M(e){return e=e||{},qe&&$e?null:tinycolor.fromRatio({h:ue,s:he,v:ce,a:Math.round(100*de)/100},{format:e.format||Ke})}function U(){return!Le.hasClass("sp-validation-error")}function G(){k(),Q.move(M()),Ne.trigger("move.spectrum",[M()])}function k(){Le.removeClass("sp-validation-error"),x();var e=tinycolor.fromRatio({h:ue,s:1,v:1});Ae.css("background-color",e.toHexString());var t=Ke;de<1&&(0!==de||"name"!==t)&&("hex"!==t&&"hex3"!==t&&"hex6"!==t&&"name"!==t||(t="rgb"));var i=M({format:t}),n="";if(We.removeClass("sp-clear-display"),We.css("background-color","transparent"),!i&&qe)We.addClass("sp-clear-display");else{var s=i.toHexString(),o=i.toRgbString();if(E||1===i.alpha?We.css("background-color",o):(We.css("background-color","transparent"),We.css("filter",i.toFilter())),j.showAlpha){var r=i.toRgb();r.a=0;var a=tinycolor(r).toRgbString(),l="linear-gradient(left, "+a+", "+s+")";f?Ce.css("filter",tinycolor(a).toFilter({gradientType:1},s)):(Ce.css("background","-webkit-"+l),Ce.css("background","-moz-"+l),Ce.css("background","-ms-"+l),Ce.css("background","linear-gradient(to right, "+a+", "+s+")"))}n=i.toString(t)}j.showInput&&Le.val(n),j.showPalette&&I(),R()}function x(){var e=he,t=ce;if(qe&&$e)be.hide(),ve.hide(),De.hide();else{be.show(),ve.show(),De.show();var i=e*te,n=ie-t*ie;i=Math.max(-ne,Math.min(te-ne,i-ne)),n=Math.max(-ne,Math.min(ie-ne,n-ne)),De.css({top:n+"px",left:i+"px"});var s=de*re;be.css({left:s-ae/2+"px"});var o=ue*se;ve.css({top:o-le+"px"})}}function F(e){var t=M(),i="",n=!tinycolor.equals(t,je);t&&(i=t.toString(Ke),O(t)),Fe&&Ne.val(i),e&&n&&(Q.change(t),Ne.trigger("change",[t]))}function H(){J&&(te=Ae.width(),ie=Ae.height(),ne=De.height(),oe=Pe.width(),se=Pe.height(),le=ve.height(),re=ye.width(),ae=be.width(),K||(Re.css("position","absolute"),j.offset?Re.offset(j.offset):Re.offset(r(Re,Be))),x(),j.showPalette&&I(),Ne.trigger("reflow.spectrum"))}function Y(){Ne.show(),Be.unbind("click.spectrum touchstart.spectrum"),Re.remove(),Ve.remove(),p[Qe.id]=null}function V(i,n){return i===t?e.extend({},j):n===t?j[i]:(j[i]=n,"preferredFormat"===i&&(Ke=j.preferredFormat),void u())}function B(){Ie=!1,Ne.attr("disabled",!1),Be.removeClass("sp-disabled")}function W(){b(),Ie=!0,Ne.attr("disabled",!0),Be.addClass("sp-disabled")}function z(e){j.offset=e,H()}var j=s(a,o),K=j.flat,X=j.showSelectionPalette,$=j.localStorageKey,q=j.theme,Q=j.callbacks,Z=c(H,10),J=!1,ee=!1,te=0,ie=0,ne=0,se=0,oe=0,re=0,ae=0,le=0,ue=0,he=0,ce=0,de=1,_e=[],pe=[],fe={},Ee=j.selectionPalette.slice(0),Te=j.maxSelectionSize,ge="sp-dragging",me=null,Oe=o.ownerDocument,Ne=(Oe.body,e(o)),Ie=!1,Re=e(g,Oe).addClass(q),Se=Re.find(".sp-picker-container"),Ae=Re.find(".sp-color"),De=Re.find(".sp-dragger"),Pe=Re.find(".sp-hue"),ve=Re.find(".sp-slider"),Ce=Re.find(".sp-alpha-inner"),ye=Re.find(".sp-alpha"),be=Re.find(".sp-alpha-handle"),Le=Re.find(".sp-input"),we=Re.find(".sp-palette"),Me=Re.find(".sp-initial"),Ue=Re.find(".sp-cancel"),Ge=Re.find(".sp-clear"),ke=Re.find(".sp-choose"),xe=Re.find(".sp-palette-toggle"),Fe=Ne.is("input"),He=Fe&&"color"===Ne.attr("type")&&d(),Ye=Fe&&!K,Ve=Ye?e(T).addClass(q).addClass(j.className).addClass(j.replacerClassName):e([]),Be=Ye?Ve:Ne,We=Ve.find(".sp-preview-inner"),ze=j.color||Fe&&Ne.val(),je=!1,Ke=j.preferredFormat,Xe=!j.showButtons||j.clickoutFiresChange,$e=!ze,qe=j.allowEmpty&&!He;
  14. _();var Qe={show:v,hide:b,toggle:P,reflow:H,option:V,enable:B,disable:W,offset:z,set:function(e){w(e),F()},get:M,destroy:Y,container:Re};return Qe.id=p.push(Qe)-1,Qe}function r(t,i){var n=0,s=t.outerWidth(),o=t.outerHeight(),r=i.outerHeight(),a=t[0].ownerDocument,l=a.documentElement,u=l.clientWidth+e(a).scrollLeft(),h=l.clientHeight+e(a).scrollTop(),c=i.offset();return c.top+=r,c.left-=Math.min(c.left,c.left+s>u&&u>s?Math.abs(c.left+s-u):0),c.top-=Math.min(c.top,c.top+o>h&&h>o?Math.abs(o+r-n):n),c}function a(){}function l(e){e.stopPropagation()}function u(e,t){var i=Array.prototype.slice,n=i.call(arguments,2);return function(){return e.apply(t,n.concat(i.call(arguments)))}}function h(t,i,n,s){function o(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function r(e){if(h){if(f&&u.documentMode<9&&!e.button)return l();var n=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],s=n&&n.pageX||e.pageX,r=n&&n.pageY||e.pageY,a=Math.max(0,Math.min(s-c.left,_)),E=Math.max(0,Math.min(r-c.top,d));p&&o(e),i.apply(t,[a,E,e])}}function a(i){var s=i.which?3==i.which:2==i.button;s||h||n.apply(t,arguments)!==!1&&(h=!0,d=e(t).height(),_=e(t).width(),c=e(t).offset(),e(u).bind(E),e(u.body).addClass("sp-dragging"),r(i),o(i))}function l(){h&&(e(u).unbind(E),e(u.body).removeClass("sp-dragging"),setTimeout(function(){s.apply(t,arguments)},0)),h=!1}i=i||function(){},n=n||function(){},s=s||function(){};var u=document,h=!1,c={},d=0,_=0,p="ontouchstart"in window,E={};E.selectstart=o,E.dragstart=o,E["touchmove mousemove"]=r,E["touchend mouseup"]=l,e(t).bind("touchstart mousedown",a)}function c(e,t,i){var n;return function(){var s=this,o=arguments,r=function(){n=null,e.apply(s,o)};i&&clearTimeout(n),!i&&n||(n=setTimeout(r,t))}}function d(){return e.fn.spectrum.inputTypeColorSupport()}var _={beforeShow:a,move:a,change:a,show:a,hide:a,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},p=[],f=!!/msie/i.exec(window.navigator.userAgent),E=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div"),i=t.style;return i.cssText="background-color:rgba(0,0,0,.5)",e(i.backgroundColor,"rgba")||e(i.backgroundColor,"hsla")}(),T=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),g=function(){var e="";if(f)for(var t=1;t<=6;t++)e+="<div class='sp-"+t+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),m="spectrum.id";e.fn.spectrum=function(t,i){if("string"==typeof t){var n=this,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=p[e(this).data(m)];if(i){var o=i[t];if(!o)throw new Error("Spectrum: no such method: '"+t+"'");"get"==t?n=i.get():"container"==t?n=i.container:"option"==t?n=i.option.apply(i,s):"destroy"==t?(i.destroy(),e(this).removeData(m)):o.apply(i,s)}}),n}return this.spectrum("destroy").each(function(){var i=e.extend({},t,e(this).data()),n=o(this,i);e(this).data(m,n.id)})},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=h,e.fn.spectrum.defaults=_,e.fn.spectrum.inputTypeColorSupport=function t(){if("undefined"==typeof t._cachedResult){var i=e("<input type='color'/>")[0];t._cachedResult="color"===i.type&&""!==i.value}return t._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var t=e("input[type=color]");t.length&&!d()&&t.spectrum({preferredFormat:"hex6"})},function(){function e(e){var i={r:0,g:0,b:0},s=1,r=!1,a=!1;return"string"==typeof e&&(e=L(e)),"object"==typeof e&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?(i=t(e.r,e.g,e.b),r=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")?(e.s=C(e.s),e.v=C(e.v),i=o(e.h,e.s,e.v),r=!0,a="hsv"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")&&(e.s=C(e.s),e.l=C(e.l),i=n(e.h,e.s,e.l),r=!0,a="hsl"),e.hasOwnProperty("a")&&(s=e.a)),s=I(s),{ok:r,format:e.format||a,r:x(255,F(i.r,0)),g:x(255,F(i.g,0)),b:x(255,F(i.b,0)),a:s}}function t(e,t,i){return{r:255*R(e,255),g:255*R(t,255),b:255*R(i,255)}}function i(e,t,i){e=R(e,255),t=R(t,255),i=R(i,255);var n,s,o=F(e,t,i),r=x(e,t,i),a=(o+r)/2;if(o==r)n=s=0;else{var l=o-r;switch(s=a>.5?l/(2-o-r):l/(o+r),o){case e:n=(t-i)/l+(t<i?6:0);break;case t:n=(i-e)/l+2;break;case i:n=(e-t)/l+4}n/=6}return{h:n,s:s,l:a}}function n(e,t,i){function n(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var s,o,r;if(e=R(e,360),t=R(t,100),i=R(i,100),0===t)s=o=r=i;else{var a=i<.5?i*(1+t):i+t-i*t,l=2*i-a;s=n(l,a,e+1/3),o=n(l,a,e),r=n(l,a,e-1/3)}return{r:255*s,g:255*o,b:255*r}}function s(e,t,i){e=R(e,255),t=R(t,255),i=R(i,255);var n,s,o=F(e,t,i),r=x(e,t,i),a=o,l=o-r;if(s=0===o?0:l/o,o==r)n=0;else{switch(o){case e:n=(t-i)/l+(t<i?6:0);break;case t:n=(i-e)/l+2;break;case i:n=(e-t)/l+4}n/=6}return{h:n,s:s,v:a}}function o(e,t,i){e=6*R(e,360),t=R(t,100),i=R(i,100);var n=G.floor(e),s=e-n,o=i*(1-t),r=i*(1-s*t),a=i*(1-(1-s)*t),l=n%6,u=[i,r,o,o,a,i][l],h=[a,i,i,r,o,o][l],c=[o,o,a,i,i,r][l];return{r:255*u,g:255*h,b:255*c}}function r(e,t,i,n){var s=[v(k(e).toString(16)),v(k(t).toString(16)),v(k(i).toString(16))];return n&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function a(e,t,i,n){var s=[v(y(n)),v(k(e).toString(16)),v(k(t).toString(16)),v(k(i).toString(16))];return s.join("")}function l(e,t){t=0===t?0:t||10;var i=Y(e).toHsl();return i.s-=t/100,i.s=S(i.s),Y(i)}function u(e,t){t=0===t?0:t||10;var i=Y(e).toHsl();return i.s+=t/100,i.s=S(i.s),Y(i)}function h(e){return Y(e).desaturate(100)}function c(e,t){t=0===t?0:t||10;var i=Y(e).toHsl();return i.l+=t/100,i.l=S(i.l),Y(i)}function d(e,t){t=0===t?0:t||10;var i=Y(e).toRgb();return i.r=F(0,x(255,i.r-k(255*-(t/100)))),i.g=F(0,x(255,i.g-k(255*-(t/100)))),i.b=F(0,x(255,i.b-k(255*-(t/100)))),Y(i)}function _(e,t){t=0===t?0:t||10;var i=Y(e).toHsl();return i.l-=t/100,i.l=S(i.l),Y(i)}function p(e,t){var i=Y(e).toHsl(),n=(k(i.h)+t)%360;return i.h=n<0?360+n:n,Y(i)}function f(e){var t=Y(e).toHsl();return t.h=(t.h+180)%360,Y(t)}function E(e){var t=Y(e).toHsl(),i=t.h;return[Y(e),Y({h:(i+120)%360,s:t.s,l:t.l}),Y({h:(i+240)%360,s:t.s,l:t.l})]}function T(e){var t=Y(e).toHsl(),i=t.h;return[Y(e),Y({h:(i+90)%360,s:t.s,l:t.l}),Y({h:(i+180)%360,s:t.s,l:t.l}),Y({h:(i+270)%360,s:t.s,l:t.l})]}function g(e){var t=Y(e).toHsl(),i=t.h;return[Y(e),Y({h:(i+72)%360,s:t.s,l:t.l}),Y({h:(i+216)%360,s:t.s,l:t.l})]}function m(e,t,i){t=t||6,i=i||30;var n=Y(e).toHsl(),s=360/i,o=[Y(e)];for(n.h=(n.h-(s*t>>1)+720)%360;--t;)n.h=(n.h+s)%360,o.push(Y(n));return o}function O(e,t){t=t||6;for(var i=Y(e).toHsv(),n=i.h,s=i.s,o=i.v,r=[],a=1/t;t--;)r.push(Y({h:n,s:s,v:o})),o=(o+a)%1;return r}function N(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[e[i]]=i);return t}function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){D(e)&&(e="100%");var i=P(e);return e=x(t,F(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),G.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return x(1,F(0,e))}function A(e){return parseInt(e,16)}function D(e){return"string"==typeof e&&e.indexOf(".")!=-1&&1===parseFloat(e)}function P(e){return"string"==typeof e&&e.indexOf("%")!=-1}function v(e){return 1==e.length?"0"+e:""+e}function C(e){return e<=1&&(e=100*e+"%"),e}function y(e){return Math.round(255*parseFloat(e)).toString(16)}function b(e){return A(e)/255}function L(e){e=e.replace(w,"").replace(M,"").toLowerCase();var t=!1;if(V[e])e=V[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=W.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=W.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=W.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=W.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=W.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=W.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=W.hex8.exec(e))?{a:b(i[1]),r:A(i[2]),g:A(i[3]),b:A(i[4]),format:t?"name":"hex8"}:(i=W.hex6.exec(e))?{r:A(i[1]),g:A(i[2]),b:A(i[3]),format:t?"name":"hex"}:!!(i=W.hex3.exec(e))&&{r:A(i[1]+""+i[1]),g:A(i[2]+""+i[2]),b:A(i[3]+""+i[3]),format:t?"name":"hex"}}var w=/^[\s,#]+/,M=/\s+$/,U=0,G=Math,k=G.round,x=G.min,F=G.max,H=G.random,Y=function(t,i){if(t=t?t:"",i=i||{},t instanceof Y)return t;if(!(this instanceof Y))return new Y(t,i);var n=e(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=k(100*this._a)/100,this._format=i.format||n.format,this._gradientType=i.gradientType,this._r<1&&(this._r=k(this._r)),this._g<1&&(this._g=k(this._g)),this._b<1&&(this._b=k(this._b)),this._ok=n.ok,this._tc_id=U++};Y.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},setAlpha:function(e){return this._a=I(e),this._roundA=k(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=k(360*e.h),i=k(100*e.s),n=k(100*e.v);return 1==this._a?"hsv("+t+", "+i+"%, "+n+"%)":"hsva("+t+", "+i+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),t=k(360*e.h),n=k(100*e.s),s=k(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+s+"%)":"hsla("+t+", "+n+"%, "+s+"%, "+this._roundA+")"},toHex:function(e){return r(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return a(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:k(this._r),g:k(this._g),b:k(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+k(this._r)+", "+k(this._g)+", "+k(this._b)+")":"rgba("+k(this._r)+", "+k(this._g)+", "+k(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:k(100*R(this._r,255))+"%",g:k(100*R(this._g,255))+"%",b:k(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+k(100*R(this._r,255))+"%, "+k(100*R(this._g,255))+"%, "+k(100*R(this._b,255))+"%)":"rgba("+k(100*R(this._r,255))+"%, "+k(100*R(this._g,255))+"%, "+k(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[r(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),i=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var s=Y(e);i=s.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+i+")"},toString:function(e){var t=!!e;e=e||this._format;var i=!1,n=this._a<1&&this._a>=0,s=!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"name"===e);return s?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(i=this.toRgbString()),"prgb"===e&&(i=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(i=this.toHexString()),"hex3"===e&&(i=this.toHexString(!0)),"hex8"===e&&(i=this.toHex8String()),"name"===e&&(i=this.toName()),"hsl"===e&&(i=this.toHslString()),"hsv"===e&&(i=this.toHsvString()),i||this.toHexString())},_applyModification:function(e,t){var i=e.apply(null,[this].concat([].slice.call(t)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(m,arguments)},complement:function(){return this._applyCombination(f,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},Y.fromRatio=function(e,t){if("object"==typeof e){var i={};for(var n in e)e.hasOwnProperty(n)&&("a"===n?i[n]=e[n]:i[n]=C(e[n]));e=i}return Y(e,t)},Y.equals=function(e,t){return!(!e||!t)&&Y(e).toRgbString()==Y(t).toRgbString()},Y.random=function(){return Y.fromRatio({r:H(),g:H(),b:H()})},Y.mix=function(e,t,i){i=0===i?0:i||50;var n,s=Y(e).toRgb(),o=Y(t).toRgb(),r=i/100,a=2*r-1,l=o.a-s.a;n=a*l==-1?a:(a+l)/(1+a*l),n=(n+1)/2;var u=1-n,h={r:o.r*n+s.r*u,g:o.g*n+s.g*u,b:o.b*n+s.b*u,a:o.a*r+s.a*(1-r)};return Y(h)},Y.readability=function(e,t){var i=Y(e),n=Y(t),s=i.toRgb(),o=n.toRgb(),r=i.getBrightness(),a=n.getBrightness(),l=Math.max(s.r,o.r)-Math.min(s.r,o.r)+Math.max(s.g,o.g)-Math.min(s.g,o.g)+Math.max(s.b,o.b)-Math.min(s.b,o.b);return{brightness:Math.abs(r-a),color:l}},Y.isReadable=function(e,t){var i=Y.readability(e,t);return i.brightness>125&&i.color>500},Y.mostReadable=function(e,t){for(var i=null,n=0,s=!1,o=0;o<t.length;o++){var r=Y.readability(e,t[o]),a=r.brightness>125&&r.color>500,l=3*(r.brightness/125)+r.color/500;(a&&!s||a&&s&&l>n||!a&&!s&&l>n)&&(s=a,n=l,i=Y(t[o]))}return i};var V=Y.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=Y.hexNames=N(V),W=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",i="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",s="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+s),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();window.tinycolor=Y}(),e(function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()})}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],s=0;s<i.length;s++){var o=i[s],r=n&&n[o];r&&(this.off(e,o),delete n[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded",["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?u.call(e):[e]}function s(e,t,o){if(!(this instanceof s))return new s(e,t,o);var r=e;return"string"==typeof e&&(r=document.querySelectorAll(e)),r?(this.elements=n(r),this.options=i({},this.options),"function"==typeof t?o=t:i(this.options,t),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(r||e))}function o(e){this.img=e}function r(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,l=e.console,u=Array.prototype.slice;s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&h[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var h={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,e),n=i.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new o(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var i=new r(e,t);this.images.push(i)},s.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},s.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(t.prototype),o.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},o.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(a=t,a.fn.imagesLoaded=function(e,t){var i=new s(this,e,t);return i.jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),function(){var e,t,i,n,s=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function i(){this.constructor=e}for(var n in t)r.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;(n=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,i,n,s,o,r;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),r=[],i=0,n=(o=e.childNodes).length;i<n;i++)s=o[i],r.push(this.add_option(s,t,e.disabled));return r},e.prototype.add_option=function(e,t,i){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===i?i:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,i,s,o,r;for(o=new n,i=0,s=(r=e.childNodes).length;i<s;i++)t=r[i],o.add_node(t);return o.parsed},t=function(){function e(t,i){this.form_field=t,this.options=null!=i?i:{},this.label_click_handler=s(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){return this.click_test_action=function(e){return function(t){return e.test_active_click(t)}}(this),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout(function(e){return function(){return e.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(e){return function(){return e.blur_test()}}(this),100)},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,i,n,s,o,r,a;for(t="",a=0,s=0,o=(r=this.results_data).length;s<o&&(i=r[s],n="",""!==(n=i.group?this.result_add_group(i):this.result_add_option(i))&&(a++,t+=n),(null!=e?e.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(i))),!(a>=this.max_shown_results));s++);return t},e.prototype.result_add_option=function(e){var t,i;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),i=document.createElement("li"),i.className=t.join(" "),e.style&&(i.style.cssText=e.style),i.setAttribute("data-option-array-index",e.array_index),i.innerHTML=e.highlighted_html||e.html,e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.result_add_group=function(e){var t,i;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),i=document.createElement("li"),i.className=t.join(" "),i.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,i,n,s;for(s=[],e=0,t=(i=this.results_data).length;e<t;e++)(n=i[e]).selected?s.push(n.selected=!1):s.push(void 0);return s},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,i,n,s,o,r,a,l,u,h,c,d,_,p,f;for(this.no_results_clear(),h=0,t=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u=this.get_search_regex(t),n=0,s=(l=this.results_data).length;n<s;n++)(o=l[n]).search_match=!1,c=null,d=null,o.highlighted_html="",this.include_option_in_results(o)&&(o.group&&(o.group_match=!1,o.active_options=0),null!=o.group_array_index&&this.results_data[o.group_array_index]&&(0===(c=this.results_data[o.group_array_index]).active_options&&c.search_match&&(h+=1),c.active_options+=1),f=o.group?o.label:o.text,o.group&&!this.group_search||(d=this.search_string_match(f,u),o.search_match=null!=d,o.search_match&&!o.group&&(h+=1),o.search_match?(a.length&&(_=d.index,r=f.slice(0,_),i=f.slice(_,_+a.length),
  15. p=f.slice(_+a.length),o.highlighted_html=this.escape_html(r)+"<em>"+this.escape_html(i)+"</em>"+this.escape_html(p)),null!=c&&(c.group_match=!0)):null!=o.group_array_index&&this.results_data[o.group_array_index].search_match&&(o.search_match=!0)));return this.result_clear_highlight(),h<1&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,i;return i=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(i="^"+i),t=this.case_sensitive_search?"":"i",new RegExp(i,t)},e.prototype.search_string_match=function(e,t){var i;return i=t.exec(e),!this.search_contains&&(null!=i?i[1]:void 0)&&(i.index+=1),i},e.prototype.choices_count=function(){var e,t,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(i=this.form_field.options).length;e<t;e++)i[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==i&&this.pending_backstroke&&this.clear_backstroke(),i){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),i){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){if(!this.is_disabled)return setTimeout(function(e){return function(){return e.results_search()}}(this),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected||!this.display_disabled_options&&e.disabled||e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(n){return t.browser_is_supported()?this.each(function(t){var s,o;o=(s=e(this)).data("chosen"),"destroy"!==n?o instanceof i||s.data("chosen",new i(this,n)):o instanceof i&&o.destroy()}):this}}),i=function(i){function s(){return s.__super__.constructor.apply(this,arguments)}return o(s,t),s.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},s.prototype.set_up_html=function(){var t,i;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),i={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",i),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},s.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",function(e){e.preventDefault()})},s.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},s.prototype.container_mousedown=function(t){var i;if(!this.is_disabled)return!t||"mousedown"!==(i=t.type)&&"touchstart"!==i||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},s.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},s.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},s.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},s.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(t){var i;return(i=e(t.target).closest(".chosen-container")).length&&this.container[0]===i[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=n.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(e){var t,i,n,s,o;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),n=parseInt(this.search_results.css("maxHeight"),10),o=this.search_results.scrollTop(),s=n+o,i=this.result_highlight.position().top+this.search_results.scrollTop(),(t=i+this.result_highlight.outerHeight())>=s)return this.search_results.scrollTop(t-n>0?t-n:0);if(i<o)return this.search_results.scrollTop(i)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(e){return this.search_results.html(e)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},s.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(t){var i;if((i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=i,this.result_select(t),this.search_field.focus()},s.prototype.search_results_mouseover=function(t){var i;if(i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(i)},s.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},s.prototype.choice_build=function(t){var i,n;return i=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?i.addClass("search-choice-disabled"):((n=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",function(e){return function(t){return e.choice_destroy_link_click(t)}}(this)),i.append(n)),this.search_container.before(i)},s.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},s.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},s.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(e){var t,i;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),i=this.results_data[t[0].getAttribute("data-option-array-index")],i.selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(this.choice_label(i)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},s.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},s.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},s.prototype.get_search_field_value=function(){return this.search_field.val()},s.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},s.prototype.escape_html=function(t){return e("<div/>").text(t).html()},s.prototype.winnow_results_set_highlight=function(){var e,t;if(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),null!=(e=t.length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},s.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.search_field_scale=function(){var t,i,n,s,o,r,a;if(this.is_multiple){for(o={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},i=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;i<n;i++)o[s=r[i]]=this.search_field.css(s);return(t=e("<div />").css(o)).text(this.get_search_field_value()),e("body").append(t),a=t.width()+25,t.remove(),this.container.is(":visible")&&(a=Math.min(this.container.outerWidth()-10,a)),this.search_field.width(a)}},s.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},s}()}.call(this),define("chosen",["jquery"],function(){}),define("shared/store-libs",["knockout","koMapping","koExternalTemplate","koValidate","hasher","signals","i18next","crossroads","jqueryui","bootstrapDatePicker","bootstrapTimePicker","bstypeahead","moment","spectrumColorPicker","trafficCop","infuser","imagesloaded","chosen"]),define("placeholderPatch",["placeholderPatch"],function(e){!function(e){e.extend(e.fn,{placeholder:function(e){}})}(jQuery)}),define("ccConstants",[],function(){"use strict";function e(){}e.ENDPOINT_GET_CONTAINER_CONFIGURATION="getAdminContainerConfiguration",e.PRICE_GROUPS_SUCCESS_HASH="price-groups",e.PRICE_GROUPS_DELETION_INLINE_MESSAGE_ID="#cc-navbar-bottom",e.ACTIVE_PRICE_GROUPS_EDIT_PRODUCTS_GROWL="#cc-active-pricegroup-modal-pane",e.EDIT_PRICE_FOR_A_PRODUCT="#oj-dialog-body-products-page-growl",e.DEFAULT_FIRST="defaultFirst",e.PRICE_GRP_ID="id",e.PRICE_GRP_DISPLAY_NAME="displayName",e.PRICE_GROUP_DISPLAY_NAME="priceGroupDisplayName",e.PRICE_GRP_START_DATE="startDate",e.PRICE_GRP_END_DATE="endDate",e.PRICE_GRP_LOCALE="locale",e.ENDPOINT_GET_PRICE_LIST_GROUP="getPriceListGroup",e.PENDING_ORDER_APPROVAL="Pending approval",e.APPROVER_MESSAGE="approverMessage",e.IGNORE_PRICE_WARNINGS="ignorePriceWarnings",e.APPROVERS="approvers",e.ORDER_APPROVED="APPROVED",e.STATE_ORDER_APPROVED="Approved",e.APPROVERS_MESSAGES="approverMessages",e.NO_COMMENTS="none",e.ORDER_DETAILS_PAGE_TYPE="orderDetailsPageType",e.CANCEL_ORDER="cancelOrder",e.CANCEL_REQUESTS="cancelRequests",e.AGENT_ORDER_DETAILS_PAGE_TYPE="AgentOrderDetails",e.AGENT_ORDER_DETAILS_PAGE_TYPE="AgentOrderDetails",e.SCHEDULED_ORDER_PAGE_TYPE="scheduledOrderPageType",e.ENDPOINT_APPROVE_ORDER="approveOrder",e.ENDPOINT_REJECT_ORDER="rejectOrder",e.ENDPOINT_GET_SITE_ORGANIZATION_PROPERTIES="siteOrganizationProperties",e.ENROLLED="Enrolled",e.ENROLLED_FOR_LOYALTY="enrollToLoyalty",e.ALLOW_HASHBANG=!1,e.URL_HASH_SIGN="#",e.URL_PREPEND_HASH="!",e.URL_FORWARD_SLASH="/",e.URL_DOT=".",e.URL_SERVERSIDE="?serverside=true",e.URL_SITE_PARAM="occsite",e.SESSION_STORAGE_HISTORY_STACK="historyStackData",e.UNSAVED_CHANGES_NAMESPACE="unsavedchanges",e.CLICK_UNSAVED_CHANGES_EVT="click."+e.UNSAVED_CHANGES_NAMESPACE,e.ENDPOINT_LOG_UI_EVENT="logUIEvent",e.CYBERSOURCE_GATEWAY="CyberSource",e.CYBERSOURCE_GATEWAY_ID="CS-A",e.PAYPAL_GATEWAY="PayPal",e.PAYPAL_GATEWAY_ID="PP-A",e.GENERIC_PAYMENT_GATEWAY="Generic",e.CHASE_GATEWAY_CC="chaseCreditCard",e.CHASE_GATEWAY_GC="chaseGiftCard",e.ON_BEHALF_OF="onBehalfOf",e.PAYMENT_GROUP_ID="paymentGroupId",e.SOP="sop",e.REDIRECT="REDIRECT",e.SUBMITTED="SUBMITTED",e.TEMPLATE="TEMPLATE",e.REJECTED="REJECTED",e.FAILED="FAILED",e.INCOMPLETE="INCOMPLETE",e.INCOMPLETE_CANCEL="INCOMPLETE_CANCEL",e.PENDING_APPROVAL="PENDING_APPROVAL",e.PENDING_APPROVAL_TEMPLATE="PENDING_APPROVAL_TEMPLATE",e.FAILED_APPROVAL="FAILED_APPROVAL",e.FAILED_APPROVAL_TEMPLATE="FAILED_APPROVAL_TEMPLATE",e.BEING_AMENDED="BEING_AMENDED",e.PAYMENT_METHOD_TYPES="paymentMethodTypes",e.CARD_PAYMENT_TYPE="card",e.GIFT_CARD_PAYMENT_TYPE="physicalGiftCard",e.IN_STORE_PAYMENT_TYPE="inStorePayment",e.IIN_PAYMENT_TYPE="iinPaymentType",e.CASH_PAYMENT_TYPE="cash",e.SELECTED_COUNTRIES="selectedCountries",e.INVOICE_PAYMENT_TYPE="invoice",e.INVOICE_PAYMENT_METHOD="invoiceRequest",e.PONUMBER_MAXIMUM_LENGTH=50,e.SELECTED_DATES="selectedDates",e.GIFT_CARD_NUMBER_MAX_LENGTH="giftCardMaxLength",e.GIFT_CARD_PIN_REQUIRED="giftCardPinRequired",e.GIFT_CARD_PIN_MAX_LENGTH="giftCardPinMaxLength",e.PAYPAL_PAYMENT_TYPE="paypalCheckout",e.GENERIC_PAYMENT_TYPE="generic",e.LOYALTY_POINTS_PAYMENT_TYPE="loyaltyPoints",e.CUSTOM_CURRENCY_PAYMENT_TYPE="customCurrencyPaymentGroup",e.ALTERNATE_CURRENCY="alternateCurrency",e.ALTERNATE_CURRENCY_CODE="alternateCurrencyCode",e.ALTERNATE_CURRENCY_AMOUNT="alternateCurrencyAmount",e.STORE_CREDIT_PAYMENT_TYPE="storeCredit",e.STORE_CREDIT_NUMBER="storeCreditNumber",e.TOKEN_ROLES_PROPERTY="com.oracle.atg.cloud.commerce.roles",e.TOKEN_SUBJECT_PROPERTY="sub",e.TOKEN_PROFILEID_PROPERTY="occs.admin.profileId",e.TOKEN_IDCS_PROFILEID_PROPERTY="user_id",e.UNIQUE_ID="uniqueId",e.REPRICE="reprice",e.LOCAL_STORAGE_ADMIN_USER_CONTENT_LOCALE="occs_admin_user_content_locale",e.LOCAL_STORAGE_ADMIN_AUDIENCE_CONTENT_LOCALE="occs_admin_audience_content_locale",e.LOCAL_STORAGE_USER_CONTENT_LOCALE="occs_user_content_locale",e.LOCAL_STORAGE_CURRENCY="occs_currency",e.LOCAL_STORAGE_PRICELISTGROUP_ID="occs_pricelistgroup_id",e.LOCAL_STORAGE_ORGANIZATION_ID="occs_organization_id",e.LOCAL_STORAGE_SHOPPER_CONTEXT="occs_shopper_context",e.LOCAL_STORAGE_CURRENT_CONTEXT="occs_current_context",e.LOCAL_STORAGE_AGENT_CONTEXT="occs_agent_context",e.LOCAL_STORAGE_DASHBOARD_PRICELISTGROUP_ID="occs_dashboard_pricelistgroup_id",e.LOCAL_STORAGE_CURRENT_ACTIVE_SITES="occs_current_active_sites",e.STORE_PRICELISTGROUP_ID="storePriceListGroupId",e.PRICE_LIST_GROUP_ID="priceListGroupId",e.PARENT_PLG_ID="parentPLGId",e.AGENT_CONTEXT="agentContext",e.LOCAL_STORAGE_PRICELISTGROUP_CHANGED_INDICATOR="occs_pricelistgroup_changed",e.LOCAL_STORAGE_LANGUAGE_CHANGED_INDICATOR="occs_language_changed",e.LOCAL_STORAGE_SITE_ID="occs_site_id",e.SITE_ID_PARAM="occsite",e.LOCAL_STORAGE_PURCHASELIST_ITEMS="occs_purchaselist_items",e.LAST_REFRESH_TIME="occs_lastRefresh_time",e.NOTIFICATION_FADE_DEFAULT=500,e.NOTIFICATION_DELAY_DEFAULT=5e3,e.WIDGET_CONFIG_MULTI_PROPERTIES_TYPE="multiProperties",e.MODAL_CLOSE_FOCUS="cc-body-focus-target",e.MODAL_CLOSE_FOCUS_CLASS="."+e.MODAL_CLOSE_FOCUS,e.INTEGER_MAX_VALUE=2147483647,e.RADIX_PARAMETER_DECIMAL=10,e.CONTAINER_DESIGN_STUDIO="Design Studio",e.FILTER_KEY="filterKey",e.ENDPOINT_KEY="endpoint",e.PRE_FILTER="preFilter",e.SKIP_EXCLUDE="skipExclude",e.PAGE_KEY="page",e.IDENTIFIER_KEY="identifier",e.LAYOUT_NAME="layoutName",e.LAYOUTS_RENDERED="layoutsRendered",e.CATREF_ID="catRefId",e.SKU_ID="skuId",e.PRODUCTS_PARAM="products",e.LOCATION_IDS_PARAM="locationIds",e.LAYOUT_CONTAIER_ID="layout_contaier_id",e.OP="op",e.PROCESS="process",e.ACTIVATE="activate",e.DEACTIVATE="deactivate",e.ENV_PUBLISHING="publishing",e.LAST_24_HOURS="last24Hours",e.LAST_7_DAYS="last7Days",e.LAST_30_DAYS="last30Days",e.LAST_120_DAYS="last120Days",e.LAST_365_DAYS="last365Days",e.SORT_DESC="sortDesc",e.SORT_ASC="sortAsc",e.SELECTED_CUSTOM_DATE_AND_TIME="selectedCustomDateTime",e.IMAGE_OUTPUT_FORMAT="outputFormat",e.IMAGE_QUALITY="quality",e.IMAGE_ALPHA_CHANNEL_COLOR="alphaChannelColor",e.ENDPOINT_RETURN_LIMIT=250,e.DEFAULT_FETCH_SIZE=40,e.PRODUCT_TYPE_IDS="productTypeIds",e.PRODUCT_TYPE_ID="productTypeId",e.PRODUCT_ID="productId",e.PRODUCT_IDS="productIds",e.ITEM_TYPE_IDS="itemTypeIds",e.SKU_INFO="children",e.SKU_IDS="skuIds",e.CATEGORY_IDS="categoryIds",e.CATALOG_IDS="catalogIds",e.FILTERED_VIEW_CATALOG_ID="filteredViewCatalogId",e.COLLECTION_IDS="collectionIds",e.INCLUDE_HISTORICAL="includeHistorical",e.INCLUDE_CKILD_SKUS_LISTING_IDS="includeChildSKUsListingIds",e.IN_STOCK="IN_STOCK",e.PREORDERABLE="PREORDERABLE",e.BACKORDERABLE="BACKORDERABLE",e.PARTIAL_AVAILABILITY="partialAvailability",e.OUT_OF_STOCK="OUT_OF_STOCK",e.PARENT_PRODUCTS="parentProducts",e.EDIT_CATEGORY="edit-collection",e.MOVE_CATEGORY="move-collection",e.CREATE_NEW_CATEGORY="create-new-collection",e.LINK_TO_EXISTING_COLLECTION="link-to-exisiting-collection",e.DELETE="delete",e.CHILD_SKUS="childSKUs",e.PRODUCT_NAME="productName",e.SKU_NAME="skuName",e.UNLINK="unlink",e.CUT="cut",e.PASTE_BEFORE="paste-before",e.PASTE_AFTER="paste-after",e.PASTE_INSIDE="paste-inside",e.PRODUCT_ADD_TO_CART_GET_SKU_ERROR="2001",e.PRODUCT_ADD_TO_CART_INVENTORY_ERROR="2002",e.PRODUCT_ADD_TO_CART_OUT_OF_STOCK="2003",e.PRODUCT_ADD_TO_CART_PRICING_ERROR="2004",e.NONE_OF_THE_ITEMS_ADDED="2005",e.GET_PRODUCT_NO_PRODUCT_FOUND="20031",e.PROMOTION_ID="promotionId",e.PATH="path",e.CLAIMABLE_SHOW_CLAIMABLES_INFO="showClaimablesInfo",e.REPORT_OFFSET_VALUE=0,e.REPORT_LIMIT_VALUE=40,e.COLLECTIONS="collections",e.COLLECTION_TYPES="collectionTypes",e.CATEGORY_TYPES="categoryTypes";e.ROOT_CATEGORY="rootCategory";e.NON_NAVIGABLE_CATEGORY="nonNavigableCategory",e.CATEGORY_PATHS="categoryPaths",e.MULTIPLE_CATEGORY_PATHS="multipleCategoryPaths",e.ALL_CATEGORIES="All Categories",e.COLLECTIONID_FOR_ALL_COLLECTIONS="0",e.COLLECTIONID_FOR_UNASSIGNED_PRODUCTS="2",e.COLLECTIONID_FOR_DELETED_PRODUCTS="3",e.PRODUCT_NAME="productName",e.START_INDEX="startingIndex",e.END_INDEX="endingIndex",e.INCL_CHILDREN="includeChildren",e.OFFSET="offset",e.INCLUDE="include",e.EXCLUDE="exclude",e.LIMIT="limit",e.ACTIVE="active",e.REQUIRE_COUNT="requireCount",e.TOTAL_RESULTS="totalResults",e.TOTAL_EXPANDED_RESULTS="totalExpandedResults",e.COUNT_ONLY="countOnly",e.DYNAMIC_ONLY="dynamicOnly",e.INCLUDE_BASE="includeBase",e.SHOW_HIDDEN="showHidden",e.HIDE_SINGLE_CURRENCY_PRICES="hideSingleCurrencyPrices",e.CONTINUE_ON_MISSING_PRODUCT="continueOnMissingProduct",e.CONTINUE_ON_MISSING_CATEGORY="continueOnMissingCategory",e.CATALOG="catalogId",e.CATALOG_CONTEXT="catalog",e.CATEGORY="categoryId",e.DEPTH="depth",e.EXPAND="expand",e.UNASSIGNED="unassigned",e.ORPHANED="orphaned",e.ALL_PROD="all",e.ALL_PROD_WITHIN_CATALOG="withincatalog",e.SHOW_QUANTITY="showQuantity",e.COMBINE_YES="yes",e.COMBINE_NO="no",e.SORTS="sort",e.SORTBYCODE="sortByCode",e.SECONDARY_ORG_COUNT="includeSecondaryOrganizationsCount",e.COUNTRY="country",e.REGIONS="regions",e.PROPERTIES="properties",e.ORDERED="ordered",e.COLLECTION_ID="id",e.COLLECTION_PRODUCT_ID="productId",e.DISPLAY_NAME="displayName",e.PRODUCT_DISPLAY_NAME="productDisplayName",e.NAME="name",e.CATALOGID="catalogId",e.FULL_LOAD="fullLoad",e.SIZE="size",e.LAST_MODIFIED="lastModified",e.EXTENSION="extension",e.EMPTY_FILE="ZERO_LENGTH_FILE",e.ASCENDING="asc",e.DESCENDING="desc",e.UPDATE_OP="update",e.CREATE_OP="create",e.CREATE_NEW_OP="createNewCart",e.PARENT_COLLECTION_ID="parentCategoryId",e.PROTECTED_COOKIES=["JSESSIONID","atgRecSessionId","atgRecVisitorId"],e.CHECKOUT="checkout",e.PAYPAL_CHECKOUT_TYPE="paypalCheckout",e.PAYMENT_TYPE="paymentType",e.PAYMENT_GROUP_STATE_INITIAL="initial",e.PAYPAL_PLACE_ORDER_ERROR="paypal.place.order.error",e.PAYER_ID="PayerID",e.TOKEN="token",e.PAYMENT_ID="paymentId",e.PERSISTENT="persistent",e.PAGE_PARAM="pageParam",e.DATA_ONLY="dataOnly",e.DISABLE_MINIFY="disableMinify",e.PAYULATAM_CHECKOUT_TYPE="payULatamWebcheckout",e.PAYULATAM_CHECKOUT_REGISTRATION="payULatamWebcheckoutRegistration",e.PAYULATAM_CHECKOUT_REGISTRATION_SUCCESS="payURegSuccess",e.PAYULATAM_CHECKOUT_REGISTRATION_FAILURE="payURegFail",e.PAYULATAM_RESPONSE_TYPE="response",e.TRANSACTION_STATUS="transactionStatus",e.TRANSACTION_TYPE="transactionType",e.SIGNATURE="signature",e.PAYU_REFERENCE_POL="reference_pol",e.PAYU_TRANSACTION_STATE="transactionState",e.PAYU_TX_VALUE="TX_VALUE",e.PAYU_REFERENCE_CODE="referenceCode",e.PAYU_TRANSACTION_APPROVED="APPROVED",
  16. e.PAYU_TRANSACTION_PENDING="PENDING",e.PAYU_TRANSACTION_DECLINED="DECLINED",e.PAYU_TRANSACTION_EXPIRED="EXPIRED",e.PAYU_TRANSACTION_ERROR="ERROR",e.PAYU_TRANSACTION_APPROVED_CODE="4",e.PAYU_TRANSACTION_PENDING_CODE="7",e.PAYU_TRANSACTION_DECLINED_CODE="6",e.PAYU_TRANSACTION_EXPIRED_CODE="5",e.PAYU_TRANSACTION_ERROR_CODE="104",e.PAYU_SIGNATURE_ALGORITHM="SHA",e.PENDING_PAYMENT="PENDING_PAYMENT",e.MASKED_NUMBER="maskedNumber",e.PAYMENT_GATEWAY_UPDATE_ERROR="100121",e.ENV_PRODUCTION="production",e.REDIRECTED_TO_WEB_PAYMENT="redirectedToWebPayment",e.GUEST="guest",e.LOGIN="login",e.SOFT_LOGIN="SOFT_LOGIN",e.SEND_RESET_PASSWORD="sendResetPassword",e.PASSWORD_EXPIRED="password_expired",e.PASSWORD_GENERATED="password_generated",e.UNITED_STATES="US",e.CANADA="CA",e.ALABAMA="al",e.ALABAMA_DISPLAY="Alabama",e.WISCONSIN="wi",e.WISCONSIN_DISPLAY="Wisconsin",e.WYOMING="wy",e.WYOMING_DISPLAY="Wyoming",e.MASSACHUSETTS="ma",e.MASSACHUSETTS_DISPLAY="Massachusetts",e.NEWYORK="ny",e.NEWYORK_DISPLAY="New York",e.ALBERTA="al",e.ALBERTA_DISPLAY="Alberta",e.ALASKA="ak",e.ALASKA_DISPLAY="Alaska",e.BRITISHCOLUMBIA="bc",e.BRITISHCOLUMBIA_DISPLAY="British Columbia",e.SASKATCHEWAN="sa",e.SASKATCHEWAN_DISPLAY="Saskatchewan",e.YUKON="yu",e.YUKON_DISPLAY="Yukon",e.FROM_PARENT="fromParent",e.CHILD="child",e.PARENT="parent",e.INDEX="index",e.CATALOG_MAX_LEVEL=3,e.CATALOG_MAXLEVEL_PARAM="maxLevel",e.PROFILE_TYPE_ADMIN="adminUI",e.PROFILE_TYPE_STOREFRONT="storefrontUI",e.PROFILE_TYPE_PREVIEW="preview",e.PROFILE_TYPE_LAYOUT_PREVIEW="layoutPreview",e.GATEWAY_NAME="gatewayName",e.SITE_ID="siteId",e.KEY_CODE_ENTER=13,e.KEY_CODE_SPACE=32,e.KEY_CODE_TAB=9,e.KEY_CODE_LEFT_ARROW=37,e.KEY_CODE_UP_ARROW=38,e.KEY_CODE_RIGHT_ARROW=39,e.KEY_CODE_DOWN_ARROW=40,e.KEY_CODE_ESCAPE=27,e.KEY_CODE_DELETE=46,e.KEY_CODE_BACKSPACE=8,e.KEY_CODE_C=67,e.KEY_CODE_SHIFT_TAB=223,e.KEY_CODE_BACKTICK=192,e.TOKEN_REFRESH_INTERVAL=3e4,e.TOKEN_WARNING_TIMEOUT=78e4+e.TOKEN_REFRESH_INTERVAL,e.TOKEN_EXPIRED_MESSAGE_TIMEOUT=12e4,e.GS_TOKEN_TIMEOUT=9e5,e.HTTP_UNAUTHORIZED_ERROR="401",e.HTTP_PRECONDITION_FAILED_ERROR="412",e.CHECKOUT_SESSION_EXPIRED="checkoutSessionExpired",e.CHECKOUT_SESSION_EXPIRED_ERROR="28317",e.ERRORCODE_INVALID_SITE_ID="30014",e.PARAMETERS_TYPE="type",e.PARAMETERS_SEARCH_QUERY="search",e.DEFAULT_SEARCH_RECORDS_PER_PAGE=12,e.DEFAULT_ROOT_NAVIGATION=0,e.SEARCH_TERM_KEY="Ntt",e.SEARCH_DYM_SPELL_CORRECTION_KEY="Nty",e.SEARCH_OPTIONS_KEY="Ntx",e.SEARCH_NAV_EREC_SEARCHES_KEY="Ntk",e.SEARCH_REC_PER_PAGE_KEY="Nrpp",e.SEARCH_RANDOM_KEY="Rdm",e.SEARCH_SUPPRESS_RESULTS="suppressResults",e.ORDERS_COUNT="ordersCount",e.RETURNS_COUNT="returnsCount",e.REPORT_CHART_ORDERS="chartOrders",e.REPORT_CHART_ORDERS="chartOrders",e.REPORT_CHART_RETURNS="chartReturns",e.REPORT_TABLE_RECENT_ORDERS="recentOrders",e.REPORT_TABLE_RECENT_ORDERS="recentOrders",e.REPORT_TABLE_MY_PENDING_ACTIONS="myPendingActions",e.SEARCH_NAV_DESCRIPTORS_KEY="N",e.SEARCH_NAV_AGGR_ERECS_OFFSET="Nao",e.SEARCH_NAV_ERECS_OFFSET="No",e.SEARCH_NAV_RECORD_FILTER_KEY="Nr",e.SEARCH_RANGE_FILTER="Nf",e.SEARCH_MESSAGE_FAIL="fail",e.SEARCH_MESSAGE_SUCCESS="success",e.SEARCH_SORT_ORDER="Ns",e.SEARCH_WILDCARD="*",e.SEARCH_RESULTS_HASH="/searchresults",e.LEFT_PARENTHISIS="(",e.RIGHT_PARENTHISIS=")",e.AND_TEXT="and",e.OR_TEXT="or",e.BLANK_SPACE=" ",e.GUIDED_NAVIGATION_CATEGORY="product.category";e.GUIDED_NAVIGATION_PRICERANGE="product.priceRange";e.SEARCH_PROPERTY_SEPARATOR="|",e.SEARCH_COLON_SEPERATOR=":",e.PRODUCT_DISPLAYABLE="1",e.DYM_ENABLED="1",e.PRODUCT_DISPLAYABLE_PROPERTY="product.active",e.LEFT_PARENTHISIS,e.CYBERSOURCE_ALIAS_MAXIMUM_LENGTH=60,e.CYBERSOURCE_FIRSTNAME_MAXIMUM_LENGTH=60,e.CYBERSOURCE_LASTNAME_MAXIMUM_LENGTH=60,e.CYBERSOURCE_ADDRESS_MAXIMUM_LENGTH=60,e.CYBERSOURCE_CITY_MAXIMUM_LENGTH=50,e.CYBERSOURCE_PHONE_NUMBER_MAXIMUM_LENGTH=15,e.CYBERSOURCE_EMAIL_MAXIMUM_LENGTH=255,e.CYBERSOURCE_CARD_NUMBER_MAXIMUM_LENGTH=20,e.CYBERSOURCE_POSTAL_CODE_MAXIMUM_LENGTH=10,e.CYBERSOURCE_COUNTY_MAXIMUM_LENGTH=50,e.CREDIT_CARD_IIN_LENGTH=6,e.DASHBOARD_COLLECTION_TYPE="categorySelector",e.DASHBOARD_PROMOTIONTEXT_TYPE="promotionalText",e.DASHBOARD_MEDIAPICKER_TYPE="mediaPicker",e.DASHBOARD_LOGO_ID="asaCompanyLogo",e.DASHBOARD_HEROIMAGE_ID="asaHeroImage",e.DASHBOARD_BACKGROUNDIMAGE_ID="asaBackgroundImage",e.DASHBOARD_COLLECTION_ID="asaDashBoardCollection",e.DASHBOARD_PROMOTIONTEXT_ID="asaPromotionalText",e.DASHBOARD_COLLECTION_KEY="collectionForFeaturedProductsId",e.DASHBOARD_PROMOTIONTEXT_KEY="dashboardPromotionalText",e.DASHBOARD_LOGO_KEY="companyLogo",e.DASHBOARD_HEROIMAGE_KEY="heroImage",e.DASHBOARD_BACKGROUNDIMAGE_KEY="backgroundImage",e.ONLY_ACTIVE_COLLECTIONS="onlyActive",e.NOTIFICATION_ADD_TO_CART_SUCCESS="notification-add-to-cart-success",e.ENDPOINT_B2B_ADMINISTRATION_LIST_ADDRESSES="listAddresses",e.ENDPOINT_B2B_ADMINISTRATION_GET_ORGANIZATION="getOrganization",e.ENDPOINT_B2B_ADMINISTRATION_CREATE_ORGANIZATION="createOrganization",e.ENDPOINT_B2B_ADMINISTRATION_UPDATE_ORGANIZATION="updateOrganization",e.ENDPOINT_B2B_ADMINISTRATION_LIST_ORGANIZATIONS="listOrganizations",e.ENDPOINT_B2B_ADMINISTRATION_GET_SITE_ACCOUNT_PROPERTIES="siteOrganizationProperties",e.ENDPOINT_B2B_ADMINISTRATION_GET_ORGANIZATIONS_WITH_CONTRACT="getOrganizationsWithValidContract",e.ENDPOINT_B2B_ADMINISTRATION_LIST_ORGANIZATION_ROLES="listOrganizationRoles",e.ENDPOINT_B2B_ADMINISTRATION_LIST_ROLES="listRoles",e.ENDPOINT_B2B_ADMINISTRATION_GET_CONTACT="getProfile",e.ENDPOINT_B2B_ADMINISTRATION_CREATE_CONTACT="createProfile",e.ENDPOINT_B2B_ADMINISTRATION_UPDATE_CONTACT="updateProfile",e.ENDPOINT_B2B_ADMINISTRATION_LIST_PROFILE="listProfiles",e.ENDPOINT_B2B_ADMINISTRATION_LIST_ORGANIZATION_REQUESTS="listOrganizationRequests",e.ENDPOINT_B2B_ADMINISTRATION_GET_ORGANIZATION_REQUEST="getOrganizationRequest",e.ENDPOINT_B2B_ADMINISTRATION_UPDATE_ORGANIZATION_REQUEST="updateOrganizationRequest",e.ENDPOINT_B2B_ADMINISTRATION_APPROVE_ORGANIZATION_REQUEST="approveOrganizationRequest",e.ENDPOINT_B2B_ADMINISTRATION_REJECT_ORGANIZATION_REQUEST="rejectOrganizationRequest",e.ENDPOINT_ORG_REQUEST_TYPE_PARAM="organizationRequest",e.ENDPOINT_B2B_ADMINISTRATION_LIST_CONTACT_REQUESTS="listProfileRequests",e.ENDPOINT_B2B_ADMINISTRATION_GET_CONTACT_REQUEST="getProfileRequest",e.ENDPOINT_B2B_ADMINISTRATION_UPDATE_CONTACT_REQUEST="updateProfileRequest",e.ENDPOINT_B2B_ADMINISTRATION_APPROVE_CONTACT_REQUEST="approveProfileRequest",e.ENDPOINT_B2B_ADMINISTRATION_REJECT_CONTACT_REQUEST="rejectProfileRequest",e.ENDPOINT_CREATE_PROFILE_REQUEST="createProfileRequest",e.ENDPOINT_PROFILE_REQUEST_TYPE_PARAM="profileRequest",e.CONTACT_REQUESTED_ACCOUNT_ID="requestedOrgId",e.CONTACT_REQUESTED_ACCOUNT_NAME="requestedOrgName",e.CONTACT_REQUEST_TYPE="profileRequest",e.B2B_PROFILE_TYPE="b2b_user",e.IS_B2B_ENABLED="isB2BEnabled",e.ENDPOINT_SITES_CREATE_SITE="createSite",e.ENDPOINT_SITES_GET_SITE="getSite",e.ENDPOINT_SITES_UPDATE_SITE="updateSite",e.ENDPOINT_SITES_GET_SITES="getSites",e.ENDPOINT_SITES_LIST_SITES="listSites",e.ENDPOINT_SITE_DELETE_SITE="deleteSite",e.ENDPOINT_LAYOUTS_LIST_LAYOUTS="listLayouts",e.ENDPOINT_LAYOUTS_GET_LAYOUT="getLayout",e.ENDPOINT_LAYOUTS_CREATE_LAYOUT="createLayout",e.ENDPOINT_LAYOUTS_UPDATE_LAYOUT="updateLayout",e.ENDPOINT_LAYOUTS_DELETE_LAYOUT="deleteLayout",e.ENDPOINT_LAYOUTS_CLONE_LAYOUT="cloneLayout",e.ENDPOINT_LOCALES_LIST_LOCALES="listLocales",e.ENDPOINT_LOCALES_CONTENT_LOCALES="contentLocales",e.ENDPOINT_LOCALES_GET_DEFAULT_LOCALE="getDefaultLocale",e.ENDPOINT_LOCALES_UPDATE_DEFAULT_LOCALE="updateDefaultLocale",e.ENDPOINT_LOCATIONS_LIST_LOCATIONS="listLocations",e.ENDPOINT_THEMES_LIST_THEMES="getThemes",e.ENDPOINT_THEMES_GET_THEME="getTheme",e.ENDPOINT_THEMES_GET_ACTIVE_THEME="getActiveTheme",e.ENDPOINT_THEMES_SET_ACTIVE_THEME="setActiveTheme",e.ENDPOINT_THEMES_RECOMPILE_ACTIVE_THEME="recompileActiveTheme",e.ENDPOINT_THEMES_CLONE_THEME="cloneTheme",e.ENDPOINT_THEMES_DELETE_THEME="deleteTheme",e.ENDPOINT_THEMES_UPDATE_THEME="updateTheme",e.ENDPOINT_THEMES_GET_TYPOGRAPHY_DETAILS="getThemeTypographyStyles",e.ENDPOINT_THEMES_UPDATE_TYPOGRAPHY_DETAILS="updateThemeTypographyStyles",e.ENDPOINT_THEME_UPDATE_THEME_IMAGE="updateThemeImage",e.ENDPOINT_THEME_GET_THEME_IMAGE_PATH="getThemeImagePath",e.ENDPOINT_THEME_IMAGE_DIRECTORY="/media/sitestudio/",e.ENDPOINT_THEMES_GET_THEME_SOURCE="getThemeSource",e.ENDPOINT_THEMES_UPDATE_THEME_SOURCE="updateThemeSource",e.ENDPOINT_THEMES_RESTORE_THEME_SOURCE="restoreThemeSource",e.ENDPOINT_THEMES_COMPILE_THEME="compileTheme",e.ENDPOINT_THEMES_COMPILE_THEME_FOR_ASSET="compileThemeForAsset",e.UPLOAD_NEW_FOLDER_PATH="general/",e.THEME_BACKGROUND_SITE_ID="Site-cc-theme-background-media-show",e.THEME_BACKGROUND_HEADER_TOP_ID="HeaderTop-cc-theme-background-media-show",e.THEME_BACKGROUND_HEADER_ID="Header-cc-theme-background-media-show",e.THEME_BACKGROUND_FOOTER_ID="Footer-cc-theme-background-media-show",e.THEME_BACKGROUND_MEDIA_ID="-cc-theme-background-media-show",e.PAGINATION_CLASS_NAME=".cc-pagination-angle",e.THEME_COMPILE_ERROR_CODE="70025",e.THEME_LESS_FILE_NOT_FOUND_ERROR_CODE="20307",e.ENDPOINT_SERVER_SIDE_EXTENSIONS="listServerSideExtensions",e.ENDPOINT_EXTENSIONS_UPLOAD_EXTENSIONS="/extensions/",e.ENDPOINT_EXTENSIONS_PROCESS_EXTENSION="processExtension",e.ENDPOINT_EXTENSIONS_CREATE_EXTENSION="createExtension",e.ENDPOINT_EXTENSIONS_GET_EXTENSIONS="getAllExtensions",e.ENDPOINT_EXTENSIONS_GET_EXTENSION_IDS="getApplicationIDs",e.ENDPOINT_EXTENSIONS_GET_APPLICATION_ID="getApplicationID",e.ENDPOINT_EXTENSIONS_CREATE_EXTENSION_ID="createApplicationID",e.ENDPOINT_EXTENSIONS_UPDATE_EXTENSION_ID="updateApplicationID",e.ENDPOINT_EXTENSIONS_DELETE_EXTENSION_ID="deleteApplicationID",e.ENDPOINT_APPLICATIONS_ADD_ID_OPERATION="appIdOperation",e.ENDPOINT_EXTENSIONS_DEACTIVATE_EXTENSION="deactivateExtension",e.ENDPOINT_EXTENSIONS_ACTIVATE_EXTENSION="activateExtension",e.ENDPOINT_EXTENSIONS_DELETE_EXTENSION="deleteExtension",e.ENDPOINT_APPLICATION_IDS_EXTENSION_TYPE="extension",e.ENDPOINT_APPLICATION_IDS_APPLICATION_TYPE="application",e.ENDPOINT_APPLICATION_IDS_GETAUTHTOKEN="genAuthToken",e.ENDPOINT_SSO_GET_TOKEN="getSSOToken",e.ENDPOINT_SSO_REFRESH_TOKEN="refreshSSOToken",e.CC_IS_SSO_LOGIN_FAILURE="isSSOLoginFailure",e.CC_IS_SSO_LOGIN_UNDER_PROGRESS="isSSOLoginUnderProgress",e.CC_IS_OPENID_LOGIN_FAILURE="isOpenIdLoginFailure",e.CC_IS_OPENID_LOGIN_UNDER_PROGRESS="isOpenIdLoginUnderProgress",e.ENDPOINT_GET_AGENT_REPORT="getReport",e.DESIGN_STUDIO_TEMPLATES="templates/configSettings",e.DESIGN_STUDIO_ELEMENT_TEMPLATES="templates/pages/controls",e.ENDPOINT_GET_BLOG_ENTRIES="listBlogEntries",e.ENDPOINT_WIDGETS_LIST_WIDGETS="listWidgets",e.ENDPOINT_WIDGETS_CREATE_WIDGET="createWidgetInstance",e.ENDPOINT_WIDGETS_CLONE_WIDGET="cloneWidgetInstance",e.ENDPOINT_WIDGETS_GET_WIDGET="getWidget",e.ENDPOINT_WIDGETS_UPDATE_WIDGET="updateWidget",e.ENDPOINT_WIDGETS_GET_LAYOUT_SOURCE="getWidgetLayoutSource",e.ENDPOINT_WIDGETS_GET_SOURCE_CODE="getWidgetSourceCode",e.ENDPOINT_WIDGETS_UPDATE_SOURCE_CODE="updateWidgetSourceCode",e.ENDPOINT_WIDGETS_GET_WIDGET_LOCALE_CONTENT="getWidgetLocaleContent",e.ENDPOINT_WIDGETS_UPDATE_WIDGET_CUSTOM_TRANSLATIONS="updateWidgetCustomTranslations",e.ENDPOINT_WIDGETS_GET_WIDGET_LOCALE_CONTENT_FOR_LOCALE="getWidgetLocaleContentForLocale",e.ENDPOINT_WIDGETS_UPDATE_WIDGET_CUSTOM_TRANSLATIONS_FOR_LOCALE="updateWidgetCustomTranslationsForLocale",e.ENDPOINT_WIDGETS_SETTINGS_UPDATE_CREDENTIALS="updateWidgetSettingCredentials",e.ENDPOINT_WIDGETS_SETTINGS_GET_CREDENTIALS="getWidgetSettingCredentials",e.ENDPOINT_WIDGETDESCRIPTORS_GET_INSTANCES="getAllWidgetInstances",e.ENDPOINT_WIDGET_DESCRIPTOR_CONFIG="getConfigDefinitionForWidgetDescriptor",e.ENDPOINT_WIDGET_DESCRIPTOR_JAVASCRIPT="getWidgetDescriptorJavascriptInfoById",e.ENDPOINT_WIDGET_DESCRIPTOR_UPDATE_JAVASCRIPT="updateWidgetDescriptorJavascript",e.ENDPOINT_WIDGET_DESCRIPTOR_JAVASCRIPT_EXT="getWidgetDescriptorJavascriptExtensionInfoById",e.ENDPOINT_WIDGET_DESCRIPTOR_UPDATE_JAVASCRIPT_EXT="updateWidgetDescriptorJavascriptExtension",e.ENDPOINT_WIDGET_DESCRIPTOR_CREATE_JAVASCRIPT_EXT="createWidgetDescriptorJavascriptExtension",e.ENDPOINT_WIDGET_DESCRIPTOR_DELETE_JAVASCRIPT_EXT="deleteWidgetDescriptorJavascriptExtension",e.ENDPOINT_WIDGET_DESCRIPTOR_UPDATE_HIDDEN_FLAG="updateHiddenWidgetTypes",e.ENDPOINT_WIDGET_DESCRIPTOR_UPDATE_SITES="updateWidgetDescriptorSites",e.ENDPOINT_APPLICATION_JAVASCRIPT_UPDATE_SITES="updateApplicationJavaScriptSites",e.ENDPOINT_GET_COMPONENT_INSTANCE="getComponentInstance",e.ENDPOINT_COMPONENT_GET_INSTANCES="getInstancesForComponent",e.ENDPOINT_COMPONENT_CONFIG="getConfigDefinitionForComponent",e.ENDPOINT_GET_COMPONENT_INSTANCE_LOCALE_CONTENT="getComponentInstanceLocaleContent",e.ENDPOINT_GET_COMPONENT_LOCALE_CONTENT_FOR_LOCALE="getComponentLocaleContentForLocale",e.ENDPOINT_UPDATE_COMPONENT_CUSTOM_TRANSLATIONS_FOR_LOCALE="updateComponentCustomTranslationsForLocale",e.ENDPOINT_UPDATE_COMPONENT_INSTANCE="updateComponentInstance",e.ENDPOINT_CLONE_COMPONENT_INSTANCE="cloneComponentInstance",e.ENDPOINT_GET_PARENT_LAYOUT="getParentLayout",e.ENDPOINT_GET_PARENT_LAYOUT_BY_ID="getParentLayoutContentType",e.ENDPOINT_GET_CONTAINER_DETAILS="getContainerDetails",e.ENDPOINT_COMPONENT_SELECTION="listComponents",e.ENDPOINT_COMPONENT_PAGE_ASSOCIATIONS="getComponentPageAssociations",e.ENDPOINT_COMPONENT_DESCRIPTOR_UPDATE_HIDDEN_FLAG="updateHiddenComponentTypes",e.ENDPOINT_LAYOUT_GET_STRUCTURE="getLayoutStructure",e.ENDPOINT_LAYOUT_SAVE_STRUCTURE="saveLayoutStructure",e.ENDPOINT_WIDGETS_DESCRIPTORS="getAllWidgetDescriptors",e.ENDPOINT_WIDGETS_DESC_BY_PAGE_TYPE="getAllWidgetDescriptorsByPageType",e.ENDPOINT_WIDGETS_DESC_INSTANCES="getInstancesForWidgetDescriptor",e.ENDPOINT_SLOTS_DESC_BY_PAGE_TYPE="getAllSlotDescriptors",e.ENDPOINT_SLOT_DESCRIPTOR_GET_INSTANCES="getInstancesForSlotDescriptor",e.ENDPOINT_SLOT_DESCRIPTOR_UPDATE_HIDDEN_FLAG="updateHiddenSlotTypes",e.ENDPOINT_STACKS_DESCRIPTORS="getAllStackDescriptors",e.ENDPOINT_STACKS_DESC_BY_PAGE_TYPE="getAllStackDescriptorsByPageType",e.ENDPOINT_STACK_DESCRIPTOR_CONFIG="getConfigDefinitionForStackDescriptor",e.ENDPOINT_STACK_DESCRIPTOR_GET_INSTANCES="getInstancesForStackDescriptor",e.ENDPOINT_STACK_DESCRIPTOR_UPDATE_HIDDEN_FLAG="updateHiddenStackTypes",e.ENDPOINT_STACKS_GET_STACK="getStack",e.ENDPOINT_STACKS_LIST_STACKS="listStacks",e.ENDPOINT_STACKS_UPDATE_STACK="updateStack",e.ENDPOINT_SLOTS_GET_SLOT="getSlot",e.ENDPOINT_SLOTS_UPDATE_SLOT="updateSlot",e.ENDPOINT_STACKS_GET_SOURCE_CODE="getStackSourceCode",e.ENDPOINT_STACKS_UPDATE_SOURCE_CODE="updateStackSourceCode",e.ENDPOINT_STACKS_GET_LESS="getStackLess",e.ENDPOINT_STACKS_UPDATE_LESS="updateStackLess",e.ENDPOINT_STACKS_GET_LESS_VARS="getStackLessVars",e.ENDPOINT_STACKS_UPDATE_LESS_VARS="updateStackLessVars",e.ENDPOINT_WIDGETS_GET_LESS="getWidgetLess",e.ENDPOINT_WIDGETS_UPDATE_LESS="updateWidgetLess",e.ENDPOINT_WIDGETS_RESTORE_LESS="restoreWidgetLess";e.ENDPOINT_WIDGETS_GET_LAYOUT_DESCRIPTOR_SOURCE="getWidgetLayoutDescriptorSource";e.ENDPOINT_WIDGETS_CREATE_FRAGMENT_INSTANCE="createFragmentInstance",e.ENDPOINT_WIDGETS_DELETE_FRAGMENT="deleteFragment",e.ENDPOINT_WIDGETS_SAVE_FRAGMENTS_CONFIG="saveFragmentsConfig",e.ENDPOINT_WIDGETS_DISABLE_FRAGMENT="disableFragment",e.ENDPOINT_WIDGETS_DISABLE_FRAGMENTS="disableFragments",e.ENDPOINT_WIDGETS_GET_WEB_CONTENT="getWidgetWebContent",e.ENDPOINT_WIDGETS_UPDATE_WEB_CONTENT="updateWidgetWebContent",e.ENDPOINT_PAGES_GET_PAGE="getPage",e.ENDPOINT_GET_LAYOUT="getLayout",e.ENDPOINT_GET_ASSET_PACKAGE="getAssetPackage",e.ENDPOINT_PUBLISH_GET_PUBLISH_STATUS="getPublishStatus",e.ENDPOINT_PUBLISH_GET_PUBLISH_CHANGES="getPublishingChanges",e.ENDPOINT_PUBLISH_PUBLISH="publishChangeLists",e.ENDPOINT_PUBLISH_GET_CHANGE_AUTHORS="getAllPublishingChangeAuthors",e.ENDPOINT_PUBLISH_GET_CHANGE_APPLICATIONS="getAllPublishingChangeApplications",e.ENDPOINT_PUBLISH_SCHEDULE="schedule",e.ENDPOINT_PUBLISH_GET_SCHEDULE_ITEMS="getPublishSchedule",e.ENDPOINT_PUBLISH_DELETE_SCHEDULE_ITEMS="deleteScheduledPublish",e.ENDPOINT_PUBLISH_STORE_DEP_INPUT="storePublishingChangeList",e.ENDPOINT_PUBLISH_LIST_DEPENDENCIES="getPublishingDependencies",e.ENDPOINT_GET_CURRENT_USER="getCurrentProfile",e.ENDPOINT_SEARCH_SEARCH="search",e.ENDPOINT_SEARCH_ASSEMBLER_PAGES="assemblerPages",e.ENDPOINT_ASSEMBLE="assemble",e.ENDPOINT_SEARCH_INDEXES="listIndexFields",e.ENDPOINT_METADATA_GET_METADATA="getMetadata",e.ENDPOINT_METADATA_UPDATE_METADATA="updateMetadata",e.ENDPOINT_GET_ITEM_TYPE="getItemType",e.ENDPOINT_METADATA_FILTER_SHOPPER_CONTEXT="filterByShopperContext",e.ENDPOINT_SET_SHOPPER_CONTEXT="setShopperContext",e.ENDPOINT_ITEMTYPES_LIST_PRODUCT_TYPES="listProductTypes",e.ENDPOINT_ITEMTYPES_CREATE_PRODUCT_TYPE="createProductType",e.ENDPOINT_ITEMTYPES_GET_PRODUCT_TYPE="getProductType",e.ENDPOINT_ITEMTYPES_UPDATE_PRODUCT_TYPE="updateProductType",e.ENDPOINT_ITEMTYPES_DELETE_PRODUCT_TYPE="deleteProductType",e.ENDPOINT_ITEMTYPES_LIST_ITEM_TYPES="listItemTypes",e.ENDPOINT_SHIPPING_METHODS_LIST_SHIPPING_METHODS="listShippingMethods",e.ENDPOINT_SHIPPING_METHODS_CREATE_SHIPPING_METHOD="createShippingMethod",e.ENDPOINT_SHIPPING_METHODS_DELETE_SHIPPING_METHOD="deleteShippingMethod",e.ENDPOINT_SHIPPING_METHODS_GET_SHIPPING_METHOD="getShippingMethod",e.ENDPOINT_SHIPPING_METHODS_UPDATE_SHIPPING_METHOD="updateShippingMethod",e.ENDPOINT_SHIPPING_REGIONS_LIST_SHIPPING_REGIONS="listShippingRegions",e.ENDPOINT_COUNTRY_REGION_LIST_COUNTRIES="listCountries",e.ENDPOINT_COUNTRY_REGION_GET_COUNTRY_REGIONS="getCountryRegions",e.ENDPOINT_SHIPPING_REGIONS_DELETE_SHIPPING_REGION="deleteShippingRegion",e.ENDPOINT_SHIPPING_REGIONS_GET_SHIPPING_REGION="getShippingRegion",e.ENDPOINT_SHIPPING_REGIONS_CREATE_SHIPPING_REGION="createShippingRegion",e.ENDPOINT_SHIPPING_REGIONS_UPDATE_SHIPPING_REGION="updateShippingRegion",e.ENDPOINT_SHIPPING_REGIONS_GET_SHIPPING_REGIONS_BY_COUNTRY="getShippingRegionsByCountry",e.ENDPOINT_VALID_ACTIONS_ON_ORDER="getValidActions",e.ENDPOINT_VALIDATE_CANCEL="validateCancel",e.ENDPOINT_ORDERS_PRICE_ORDER="priceOrder",e.ENDPOINT_ORDERS_CREATE_ORDER="createOrder",e.ENDPOINT_ORDERS_CANCEL_ORDER="cancelOrder",e.ENDPOINT_ORDERS_INITIATE_CANCEL_ORDER="initiateCancelOrder",e.ENDPOINT_ORDERS_SUBMIT_CANCEL_ORDER="submitCancelOrder",e.ENDPOINT_ORDERS_CANCEL_GET_CANCEL_REASONS="getCancelReasons",e.ENDPOINT_HANDLE_ANONYMOUS_ORDERS="handleAnonymousOrders",e.ENDPOINT_ORDERS_SUBMIT_ORDER="submitOrder",e.ENDPOINT_GET_GIFT_CHOICES="getGiftWithPurchaseChoices",e.ENDPOINT_QUOTE_REQUEST="requestQuote",e.ENDPOINT_QUOTE_REJECT="rejectQuote",e.ENDPOINT_REMOVE_INCOMPLETE_ORDER_FOR_PROFILE="removeIncompleteOrderForProfile",e.PUBLISHING_CREATE_ACCOUNT="publishing-createAccount",e.PUBLISHING_UPDATE_ACCOUNT="publishing-updateAccount",e.PRODUCTION_DESIGN_STUDIO_ASSET_UPDATE="production-DSAssetUpdate",e.ENDPOINT_GET_PAYMENT_GROUP_STATUS="getPaymentGroupAuthorizationStatus",e.ENDPOINT_GET_PAYMENT_GROUP="getPaymentGroup",e.ENDPOINT_GET_PAYMENT_GROUP_STATUS="getPaymentGroupAuthorizationStatus",e.ENDPOINT_LIST_BILLING_COUNTRIES="listSelectedBillingCountries",e.ENDPOINT_UPDATE_BILLING_COUNTRIES="updateSelectedBillingCountries",e.ENDPOINT_LIST_COLLECTIONS="listCollections",e.ENDPOINT_COLLECTIONS_GET_COLLECTION="getCollection",e.ENDPOINT_COLLECTIONS_CREATE_COLLECTION="createCollection",e.ENDPOINT_COLLECTIONS_UPDATE_COLLECTION="updateCollection",e.ENDPOINT_COLLECTIONS_DELETE_COLLECTION="deleteCollection",e.ENDPOINT_COLLECTIONS_MOVE_COLLECTION="moveCollection",e.ENDPOINT_UPDATE_ASA_CONFIGURATION="updateASASettings",e.ENDPOINT_GET_ASA_CONFIGURATION="getASASettings",e.ENDPOINT_LIST_MEDIA_TAGS="listMediaTags",e.ENDPOINT_UPDATE_PROFILE_ORDER="updateCurrentProfileOrder",e.ENDPOINT_CREATE_PROFILE_ORDER="createCurrentProfileOrder",e.ENDPOINT_GET_PROFILE_ORDER="getIncompleteOrder",e.ENDPOINT_REMOVE_PROFILE_INCOMPLETE_ORDER="removeCurrentProfileIncompleteOrder",e.ENDPOINT_GET_ALL_ORDERS_FOR_PROFILE="getAllOrdersForProfile",e.ENDPOINT_GET_ALL_ORDERS_FOR_APPROVER="/ccstoreui/v1/orders",e.ENDPOINT_GET_ORDER_COUNT_FOR_PROFILE="getAllOrdersCountForProfile",e.ENDPOINT_UPDATE_ORDER="updateOrder",e.ENDPOINT_PRODUCTS_GET_PRODUCT="getProduct",e.ENDPOINT_PRODUCTS_CREATE_PRODUCT="createProduct",e.ENDPOINT_PRODUCTS_UPDATE_PRODUCT="updateProduct",e.ENDPOINT_PRODUCTS_DELETE_PRODUCT="deleteProduct",e.ENDPOINT_PRODUCTS_LIST_PRODUCTS="listProducts",e.ENDPOINT_PRODUCTS_LIST_SKUS="listSkus",e.ENDPOINT_PRICES="/ccadminui/v1/prices",e.INCLUDE_PRICES="includePrices",e.ENDPOINT_PRODUCTS_LIST_SKUS="listSkus",e.PARAM_MINIMAL_LIST="minimalList",e.PRICE_GRP_INCLUDE_ALL_PRODUCTS="includeAllProducts",e.PRICE_GRP_IS_TAX_INCLUDED="isTaxIncluded",e.ASSOCIATE_PRICE_GRP_TO_SITE="associatePriceListGroupToSite",e.ADD_PRODUCT_TO_COLLECTIONS="createProductAssignmentToCollections",e.UPDATE_PRODUCT_MEMBERSHIP="updateProductMembership",e.ACCESS_CONTROL_ALLOWED_ACTIONS="allowedActions",e.IS_READ_ONLY="isReadOnly",e.ENDPOINT_AUDIENCE_ADD_BROWSING_EVENT="addBrowsingEvent",e.ENDPOINT_PRODUCTS_CREATE_VARIANT="createProductTypeVariant",e.ENDPOINT_PRODUCTS_UPDATE_VARIANT="updateProductTypeVariant",e.ENDPOINT_PRODUCT_CREATE_VARIANT_SKUS="createSkus",e.ENDPOINT_PRODUCT_CREATE_VARIANT_SKU="createSku",e.ENDPOINT_PRODUCT_UPDATE_VARIANT_SKU="updateSku",e.ENDPOINT_GET_SKU="getSku",e.VARIANT_ITEM_TYPE="sku",e.SHOPPER_INPUT="shopperInput",e.SPECIFICATION="specification",e.SKU_PROPERTY="skuProperty",e.ENDPOINT_GET_ITEM_TYPE="getItemType",e.ENDPOINT_ORGANIZATION_TYPE_PARAM="organization",e.ENDPOINT_CREATE_ORGANIZATION_REQUEST="createOrganizationRequest",e.ENDPOINT_LIST_ORGANIZATION_REQUESTS="listOrganizationRequests",e.ENDPOINT_GET_ORGANIZATION_REQUEST="getOrganizationRequest",e.ENDPOINT_GET_PRODUCT_AVAILABILITY="getStockStatus",e.ENDPOINT_PRODUCTS_AVAILABILITY="getStockStatuses",e.ENDPOINT_LIST_STOCK_STATUS_LARGE_CART="listStockStatusForLargeCart",e.ENDPOINT_CREATE_SHOPPER_INPUT="createShopperInput",e.ENDPOINT_UPDATE_SHOPPER_INPUT="updateShopperInput",e.ENDPOINT_ADD_SHOPPER_INPUT="addShopperInput",e.ENDPOINT_PRODUCTS_CREATE_SPECIFICATION="createProductTypeSpecification",e.ENDPOINT_PRODUCTS_UPDATE_SPECIFICATION="updateProductTypeSpecification",e.ENDPOINT_PRODUCTS_CREATE_SKU_PROPERTY="createSkuProperty",e.ENDPOINT_PRODUCTS_UPDATE_SKU_PROPERTY="updateSkuProperty",e.ENDPOINT_PRODUCTS_GET_SKU_PROPERTY="getSkuProperty",e.ENDPOINT_PRODUCTS_GET_SKU_PROPERTIES="getSkuProperties",e.ENDPOINT_GET_PRODUCT_PRICES="getAllPrices",e.PROMOTION_TYPE_IDS="promotionTypeIds",e.ENDPOINT_PROMOTIONS_LIST_PROMOTIONS="listPromotions",e.ENDPOINT_PROMOTIONS_GET_PROMOTION="getPromotion",e.ENDPOINT_PROMOTIONS_CREATE_PROMOTION="createPromotion",e.ENDPOINT_PROMOTIONS_UPDATE_PROMOTION="updatePromotion",e.ENDPOINT_PROMOTIONS_DELETE_PROMOTION="deletePromotion",e.ENDPOINT_PROMOTION_TEMPLATE_GET="getPromotionTemplate",e.ENDPOINT_PROMOTION_CLAIMABLE_CREATE="createPromotionClaimable",e.ENDPOINT_PROMOTION_CLAIMABLE_DELETE="deletePromotionClaimable",e.ENDPOINT_PROMOTION_COUPON_BATCH_CREATE="createPromotionCouponBatch",e.ENDPOINT_PROMOTION_COUPON_BATCH_DELETE="deletePromotionCouponBatch",e.EXPORT_COUPON_BATCH_BASE_URL="/ccadminui/v1/couponBatches/export",e.ENDPOINT_PROMOTION_FOLDER_LIST="listPromotionFolders",e.ENDPOINT_PROMOTION_FOLDER_GET="getPromotionFolder",e.ENDPOINT_PROMOTION_FOLDER_CREATE="createPromotionFolder",e.ENDPOINT_PROMOTION_FOLDER_UPDATE="updatePromotionFolder",e.ENDPOINT_PROMOTION_FOLDER_DELETE="deletePromotionFolder",e.ENDPOINT_GET_PROMOTIONS_CONFIGURATIONS="getPromotionsConfigurations",e.ENDPOINT_GET_TAGS="listMessageTags",e.ENDPOINT_CREATE_TAGS="createMessageTag",e.ENDPOINT_STACKING_RULE_LIST="listStackingRules",e.ENDPOINT_STACKING_RULE_GET="getStackingRule",e.ENDPOINT_STACKING_RULE_CREATE="createStackingRule",e.ENDPOINT_STACKING_RULE_UPDATE="updateStackingRule",e.ENDPOINT_STACKING_RULE_DELETE="deleteStackingRule",e.ENDPOINT_INVENTORY_LIST="listInventories",e.ENDPOINT_INVENTORY_UPDATE="updateInventory",e.ENDPOINT_IMPORT_UPLOAD_FILE="uploadAssets",e.ENDPOINT_IMPORT_UPLOAD_ENCODED_FILE_FROM_UI="uploadEncodedFileFromUI",e.ENDPOINT_IMPORT_UPLOAD_FILE_MULTIPART="/ccadminui/v1/asset/upload",e.ENDPOINT_IMPORT_UPLOAD_FILE_MULTIPART_FROM_UI="/ccadminui/v1/asset/uploadFromUI",e.ENDPOINT_IMPORT_VALIDATE_FILE="validateAssets",e.ENDPOINT_IMPORT_FILE="importAssets",e.ENDPOINT_IMPORT_STATUS="getImportStatus",e.VALIDATIONREPORT_BASE_URL="/ccadminui/v1/asset/validationReport/",e.EXPORT_BASE_URL="/ccadminui/v1/asset/export",e.ENDPOINT_DOWNLOAD_ASSET_PACKAGE="getAssetPackage",e.ENDPOINT_VFS_GET_VFS_CONTENTS="getMediaContents",e.ENDPOINT_VFS_DELETE_VFS_CONTENTS="deleteMediaItems",e.ENDPOINT_UPDATE_MEDIA_ITEM="updateMediaItem",e.ENDPOINT_ERRORLOGS_CREATE_ERRORLOG="logClientErrors",e.ENDPOINT_LOGS_CREATE_LOG="log",e.ENDPOINT_PAYMENT_GET_PAYMENT_TYPES="getPaymentTypes",e.ENDPOINT_PAYMENT_ENABLE_PAYMENT_TYPES="updatePaymentTypes",e.ENDPOINT_PAYMENT_DISABLE_PAYMENT_TYPES="disablePaymentTypes",e.ENDPOINT_PAYMENT_GET_GATEWAY="getGateway",e.ENDPOINT_PAYMENT_GET_GATEWAYS="getGateways",e.ENDPOINT_PAYMENT_CREATE_GATEWAY="createGateway",e.ENDPOINT_PAYMENT_UPDATE_GATEWAY="updateGateway",e.ENDPOINT_PAYMENT_AUTH_PAYMENT="authPayment",e.ENDPOINT_PAYMENT_GET_PAYMENT_AUTH_RESPONSE="getPaymentResponse",e.ENDPOINT_GET_TAX_PROCESSOR="getTaxProcessor",e.ENDPOINT_UPDATE_TAX_PROCESSOR="updateTaxProcessor",e.ENDPOINT_LIST_TAX_PROCESSORS="listTaxProcessors",e.ENDPOINT_DASHBOARD_REPORTS_LIST_METADATA="getDashboardReportConfigurations",e.ENDPOINT_DASHBOARD_REPORT_DATA="getReportData",e.ENDPOINT_LIST_FILTER_CONFIGURATION="listReportFilterConfigurations",e.ENDPOINT_SAVE_FILTER_CONFIGURATION="saveReportFilterConfiguration",e.ENDPOINT_UPDATE_FILTER_CONFIGURATION="updateReportFilterConfiguration",e.ENDPOINT_DASHBOARD_GET_ORDER_DATA="getOrderChartData",e.ENDPOINT_DASHBOARD_GET_RETURN_REQUESTS_DATA="getReturnRequestChartData",e.ENDPOINT_STOREFRONT_JS_FRAMEWORK_GET_CURRENT_VERSION_DETAILS="getCurrentVersionDetails",e.ENDPOINT_STOREFRONT_JS_FRAMEWORK_ROLLBACK_CURRENT_VERSION="rollbackCurrentVersion",e.ENDPOINT_STOREFRONT_JS_FRAMEWORK_UPGRADE_CURRENT_VERSION="upgradeCurrentVersion",e.ENDPOINT_STOREFRONT_JS_GET_INDEX_SWAP_STATUS="getIndexSwapStatus",e.ENDPOINT_STOREFRONT_ACTIVATE_INDEX_SWAP="activateIndexSwap";e.ENDPOINT_STOREFRONT_DEACTIVATE_INDEX_SWAP="deactivateIndexSwap";e.REPORTING_CHART_TIMEFRAME_LAST7DAYS_TEXT="last7days",e.REPORTING_TIMEFRAME_YD_TEXT="YD",e.REPORTING_TIMEFRAME_LST7DYS_TEXT="LST7DYS",e.REPORTING_TIMEFRAME_LSTWK_TEXT="LSTWK",e.REPORTING_TIMEFRAME_LST30DYS_TEXT="LST30DYS",e.REPORTING_TIMEFRAME_LST90DYS_TEXT="LST90DYS",e.REPORTING_CHART_GROUPBY_DAY_TEXT="day",e.REPORTING_CHART_GROUPBY_WEEK_TEXT="week",e.REPORTING_CHART_GROUPBY_MONTH_TEXT="month",e.REPORTING_PROMOTION_SPEND_Y_FOR_ORDER_DISCOUNT="1",e.REPORTING_PROMOTION_GET_SHIPPING_DISCOUNT="2",e.REPORTING_PROMOTION_SPEND_Y_FOR_SHIPPING_DISCOUNT="3",e.REPORTING_PROMOTION_GET_ITEM_DISCOUNT="4",e.REPORTING_PROMOTION_GET_ITEM_DISCOUNT="6",e.REPORTING_PROMOTION_BOGO="7",e.REPORTING_PROMOTION_GIFT_WITH_ITEM_PURCHASE="8",e.REPORTING_PROMOTION_SPEND_Y_GET_GIFT_WITH_PURCHASE="9",e.METRIC_NAME="metricName",e.EXPORT="export",e.PROMOTION_IDS="promotionIds",e.PROMOTION_TYPE_ID="promotionTypeId",e.COUPON_CODES="couponCodes",e.PROMOTION_NAME="promotionName",e.DESCRIPTION="description",e.PROMOTION_TYPE="promotionType",e.PROMOTIONS_TYPE_ID="promotionsTypeId",e.PROMOTION_ITEM_TYPE_LIST="itemTypeList",e.PROMOTION_TEMPLATE_VALUE="templateValue",e.PERCENT_TOTAL_METRIC="percentTotalMetric",e.REPORTING_CHART_TIMEFRAME_YESTERDAY_TEXT="yesterday",e.REPORTING_CHART_TIMEFRAME_CUSTOM_TEXT="custom",e.REPORTING_CHART_DETAILED_REPORT_TEXT="detailedReport",e.REPORTING_CHART_REPOSITORY_ID_TEXT="repositoryId",e.REPORTING_ORDER_RECORD_COUNT_REPORT_ID="orderTotalCount",e.REPORTING_PRODUCT_RECORD_COUNT_REPORT_ID="productTotalCount",e.REPORTING_DETAILED_ORDER_METRICS_REPORT_ID="detailedOrderMetrics",e.REPORTING_PRODUCT_ORDER_METRICS_REPORT_ID="productOrdersMetric",e.REPORTING_ENGAGEMENT_DETAIL_METRICS_REPORT_ID="engagementDetailMetrics",e.REPORTING_ENGAGEMENT_SUMMARY_METRICS_REPORT_ID="engagementSummaryMetric",e.REPORTING_ENGAGEMENT_COUNT_REPORT_ID="engagementTotalCount",e.REPORTING_MINIMUM_REPORTING_DATE_REPORT_ID="minimumReportingDate",e.REPORTING_SUMMARY_ORDER_METRICS_REPORT_ID="orderMetrics",e.REPORTING_TIMEZONE_REPORT_ID="timeZone",e.REPORTING_SUMMARY_PRODUCT_METRICS_REPORT_ID="salesByProductMetrics",e.REPORTING_SUMMARY_CONVERSIONS_METRICS_REPORT_ID="visitorsByConversionMetrics",e.REPORTING_DETAIL_CONVERSIONS_METRICS_REPORT_ID="detailedConversionMetrics",e.REPORTING_CONVERSIONS_RECORD_COUNT_REPORT_ID="conversionsTotalCount",e.REPORTING_PRODUCTS_FILTER="productFilter",e.REPORTING_SHIPPING_LOCATIONS_FILTER="shippingLocationFilter",e.REPORTING_BILLING_LOCATIONS_FILTER="billingLocationFilter",e.REPORTING_PROMOTIONS_DETAILED_METRICS_REPORT_ID="promotionDetailedMetrics",e.REPORTING_PROMOTIONS_RECORD_COUNT_REPORT_ID="promotionDetailedCount",e.REPORTING_PROMOTION_SUMMARY_METRIC_REPORT_ID="promotionSummaryMetrics",e.REPORTING_CUSTOMER_SERVICE_OVERVIEW_SUMMARY_REPORT_ID="customerServiceOverviewSummary",e.ENDPOINT_PROMOTION_CLAIMABLE_LIST_ALL="listPromotionClaimables",e.REPORTING_SHIPPING_BILLING_SUMMARY_TEXT_LIMIT=12,e.REPORTING_PRODUCTS_SUMMARY_TEXT_LIMIT=20,e.REPORTING_SHIPPING_BILLING_TOOLTIP_TEXT_LIMIT=100,e.REPORTING_PRODUCTS_TOOLTIP_TEXT_LIMIT=200,e.PRODUCTS="products",e.REPOSITORY_ID_TEXT="repositoryId",e.BATCH_COUPON_SIGN="*",e.USE_MAX_USES="useMaxUses",e.IS_BATCH_FLAG="isBatchFlag",e.COUPON_CODE="couponCode",e.REPORTING_SUMMARY_TRAFFIC_VOLUME_REPORT_ID="trafficVolumeSummary",e.REPORTING_TRAFFIC_VOLUME_DETAIL_REPORT_ID="trafficVolumeDetail",e.REPORTING_TRAFFIC_VOLUME_COUNT_REPORT_ID="trafficVolumeCount",e.REPORTING_OVERVIEW_TOPTEN_PRODUCTS_ID="salesOverViewProducts",e.REPORTING_CONNECTION_ERROR_CODE="94013",e.REPORT_EXPORT_URL="/ccadminui/v1/reports/export",e.REPORT_EXPORT_ID_ORDER_DETAILS="exportOrderDetails",e.REPORT_EXPORT_ID_PRODUCT_DETAILS="exportProductDetails",e.REPORT_EXPORT_ID_PROMOTION_DETAILS="exportPromotionDetails",e.REPORT_EXPORT_ID_CUSTOMERSERVICE_DETAILS="exportCustomerServiceDetails",e.REPORT_EXPORT_ID_TRAFFICVOLUME_DETAILS="exportTrafficVolumeDetails",e.REPORT_EXPORT_ID_CONVERSION_DETAILS="exportConversionDetails",e.REPORT_EXPORT_ID_ENGAGEMENT_DETAILS="exportEngagementDetails",e.REPORT_EXPORT_ID_OVERVIEW_ORDER_METRICS="exportOrderMetrics",e.REPORT_EXPORT_ID_OVERVIEW_PRODUCTS_TOP10="exportSalesOverViewProducts",e.REPORT_EXPORT_TIME_ZONE_OFFSET="timeZoneOffset",e.REPORT_CONTEXT="context",e.REPORT_FILE_FORMAT="format",e.FILE_EXTENSION_CSV="csv",e.REPORT_TIMEFRAME="timeFrame",e.REPORT_START_DATE="startDate",e.REPORT_END_DATE="endDate",e.REPORT_ID="reportId",e.GROUP_BY="groupBy",e.METRIC="metric",e.REPORT_FILTER_SHIPPING_TYPE="shipping",e.REPORT_FILTER_BILLING_TYPE="billing",e.REPORT_FILTER_ALL_REGIONS_CODE="ALL_REGIONS",e.SHIPPING_LOCATIONS="shippingLocations",e.BILLING_LOCATIONS="billingLocations",e.LOCATIONS="Locations",e.PROMOTIONS_TYPE="promotionsType",e.PROMOTIONS_NAME="promotionsName",e.COUPONS="coupons",e.TAB_SUMMARY="tabSummary",e.TITLE_SUMMARY="titleSummary",e.BILLING_REGIONS="billingRegions",e.BILLING_COUNTRY="billingCountry",e.BILLING_COUNTRIES="billingCountries",e.SHIPPING_COUNTRIES="shippingCountries",e.SHIPPING_REGIONS="shippingRegions",e.SHIPPING_COUNTRY="shippingCountry",e.CONTEXT_OVERVIEW="overview",e.CONTEXT_ORDERS="orders",e.CONTEXT_PURCHASE_LIST="purchaseList",e.CONTEXT_CUSTOMERS="customers",e.CONTEXT_ACCOUNTS="accounts",e.CONTEXT_PRODUCTS="products",e.CONTEXT_PROMOTIONS="promotions",e.CONTEXT_COLLECTIONS="collections",e.CONTEXT_TRAFFICVOLUME="trafficVolume",e.CONTEXT_ENGAGEMENT="engagement",e.CONTEXT_CONVERSION="conversion",e.CONTEXT_CUSTOMER_SERVICE_OVERVIEW="customerServiceOverview",e.CURRENCY="currency",e.PERCENT="percent",e.NUMBER="number",e.DIGIT="digit",e.DATATYPE="dataType",e.TRANSACTION_CURRENCY="transactionCurrency",e.PRICE_LIST_GROUPS="priceListGroups",e.PRICE_LIST_GROUP="priceListGroup",e.CURRENCY_CODE="currencyCode",e.DEFAULT_PRICE_LIST_GROUP="defaultPriceListGroup",
  17. e.PRICE_GROUP_ID="priceGroupId",e.ALL_PRICE_LIST_GROUPS="allPriceGroups",e.UNDEFINED="undefined",e.DIRECT_CATALOGS="directCatalogs",e.MEMBERSHIP="membership",e.TAX_PROCESSSOR_ID="ava-p",e.TAX_PROCESSSOR_TYPE="avalara",e.TAX_PROCESSOR_AVALARA_ID="ava-p",e.TAX_PROCESSOR_AVALARA_TYPE="avalara",e.TAX_PROCESSOR_VERTEX_ID="vertex-p",e.TAX_PROCESSOR_VERTEX_TYPE="vertex",e.TAX_PROCESSOR_EXTERNAL_ID="ext-p",e.TAX_PROCESSOR_EXTERNAL_TYPE="external",e.ENDPOINT_GET_WEBHOOK="getWebHook",e.ENDPOINT_GET_WEBHOOK_SETTINGS="getWebHooks",e.ENDPOINT_GET_WEBHOOK_SECRET_KEY="getWebHookSecretKey",e.ENDPOINT_WEBHOOK_OPERATION="webHookOperation",e.ENDPOINT_PUT_WEBHOOK_SETTINGS="updateWebHooks",e.ENDPOINT_PUT_SINGLE_WEBHOOK_SETTINGS="updateWebHook",e.GET_FAILED_WEBHOOKS_URL="/ccadminui/v1/webhookFailedMessages",e.WEBHOOK_PRODUCTION_ORDER_ID="production-submitOrder",e.WEBHOOK_PUBLISHING_ORDER_ID="publishing-submitOrder",e.RESET_WEBHOOK_SECRET_KEY="resetSecretKey",e.ENDPOINT_GET_FUNCTION_WEBHOOK_SETTINGS="getFunctionWebHooks",e.ENDPOINT_PUT_FUNCTION_WEBHOOK_SETTINGS="updateFunctionWebHooks",e.ENDPOINT_FUNCTION_WEBHOOK_OPERATION="functionWebHookOperation",e.ENDPOINT_GET_FUNCTION_WEBHOOK="getFunctionWebHook",e.ENDPOINT_PUT_SINGLE_FUNCTION_WEBHOOK_SETTINGS="updateFunctionWebHook",e.FUNCTION_WEBHOOK="functionWebhook",e.ENDPOINT_REGISTER_PROFILE="registerProfile",e.ENDPOINT_CREATE_PROFILE="createProfile",e.ENDPOINT_UPDATE_PROFILE="updateProfile",e.ENDPOINT_GET_CURRENT_ADMIN_USER="getCurrentAdminProfile",e.ENDPOINT_UPDATE_ADMIN_PROFILE="updateAdminProfile",e.ENDPOINT_UPDATE_CURRENT_ADMIN_PROFILE="updateCurrentAdminProfile",e.ENDPOINT_RECORD_PAGEVIEWS_COUNT="savePageViewsCount",e.SERVERSIDE_PROCESS_STRING="serverside=true",e.ENDPOINT_SAVE_VISIT_DETAILS="saveVisitsAndVisitorsMetric",e.ENDPOINT_UPDATE_VISITOR_INFO="updateVisitorInfo",e.ENDPOINT_FORGOT_PASSWORD="resetPassword",e.ENDPOINT_UPDATE_EXPIRED_PASSWORD="updateExpiredPassword",e.ENDPOINT_LIST_ADMIN_PROFILES="listAdminProfiles",e.ENDPOINT_LIST_INTERNAL_PROFILE_ROLES="listInternalProfileRoles",e.ENDPOINT_CREATE_ADMIN_PROFILE="createAdminProfile",e.ENDPOINT_UPDATE_ADMIN_PROFILE="updateAdminProfile",e.ENDPOINT_REQUEST_PASSWORD_RESET="requestPasswordReset",e.ENDPOINT_SEND_PASSWORD_RESET="sendPasswordReset",e.ENDPOINT_SEND_MFA_PASSWORD_RESET="sendMFAPasswordReset",e.ENDPOINT_SEND_NEW_ADMIN_USER_EMAIL="sendNewAdminUserEmail",e.ENDPOINT_RESET_AUTHENTICATOR_KEY="resetAuthenticatorKey",e.ENDPOINT_GET_AUTHENTICATOR_INFO="getAuthenticatorInfo",e.ENDPOINT_LIST_AUDIENCE_RULE_PROPERTIES="listAudienceRuleProperties",e.ENDPOINT_CREATE_AUDIENCE="createAudience",e.ENDPOINT_LIST_AUDIENCES="listAudiences",e.ENDPOINT_DELETE_AUDIENCE="deleteAudience",e.ENDPOINT_GET_AUDIENCE="getAudience",e.ENDPOINT_UPDATE_AUDIENCE="updateAudience",e.ENDPOINT_AUDIENCE_USAGE="audienceUsage",e.ENDPOINT_SAVE_ADDTHIS_INTERESTS="saveAddThisInterests",e.ENDPOINT_LIST_PLACES="places",e.ENDPOINT_LIST_ROLES="listInternalProfileRoles",e.ENDPOINT_GET_METRICS="audienceSizes",e.ENDPOINT_GET_ABTEST_CAMPAIGN="getABTestCampaign",e.ENDPOINT_LIST_ABTEST_CAMPAIGNS="listABTestCampaigns",e.ENDPOINT_LIST_ABTEST_CAMPAIGN_ELEMENTS="getABTestCampaignElements",e.ENDPOINT_LIST_ABTEST_CAMPAIGN_ELEMENT_VARIANTS="getABTestCampaignElementVariants",e.ENDPOINT_GET_RECOMMENDATION_STRATEGY_CONDITIONS="getRecommendationStrategyConditions",e.ENDPOINT_CREATE_RECOMMENDATION_STRATEGY="createRecommendationStrategy",e.ENDPOINT_GET_RECOMMENDATION_STRATEGY="getRecommendationStrategy",e.ENDPOINT_UPDATE_RECOMMENDATION_STRATEGY="updateRecommendationStrategy",e.ENDPOINT_DELETE_RECOMMENDATION_STRATEGY="deleteRecommendationStrategy";return e.ENDPOINT_GET_RECOMMENDATION_GLOBAL_RULE_CONDITIONS="getRecommendationGlobalRuleConditions",e.ENDPOINT_CREATE_RECOMMENDATION_GLOBAL_RULE="createRecommendationGlobalRule",e.ENDPOINT_GET_RECOMMENDATION_GLOBAL_RULE="getRecommendationGlobalRule",e.ENDPOINT_UPDATE_RECOMMENDATION_GLOBAL_RULE="updateRecommendationGlobalRule",e.ENDPOINT_DELETE_RECOMMENDATION_GLOBAL_RULE="deleteRecommendationGlobalRule",e.ENDPOINT_SKUS_DELETE_SKUS="deleteSkus",e.ENDPOINT_SKUS_DELETE_SKU="deleteSku",e.ENDPOINT_SETTINGS_GET_POLICIES="getPolicies",e.ENDPOINT_SETTINGS_SAVE_POLICIES="savePolicies",e.ENDPOINT_UPDATE_PROFILES="updateProfiles",e.UPDATE_PROFILES_EXPIRE_PASSWORDS_OPERATION="expirePasswords",e.ENDPOINT_SETTINGS_GET_INVENTORY_CONFIGURATION="getInventoryConfiguration",e.ENDPOINT_SETTINGS_UPDATE_INVENTORY_CONFIGURATION="updateInventoryConfiguration",e.ENDPOINT_FILE_MULTIPART_UPLOAD_URL="/ccadminui/v1/files",e.ENDPOINT_FILE_UPLOAD_URL="doFileUpload",e.ENDPOINT_FILE_PRE_UPLOAD_URL="startFileUpload",e.ENDPOINT_FILE_RESUME_UPLOAD_URL="resumeFileUpload",e.ENDPOINT_FILE_CHUNK_UPLOAD_URL="doFileSegmentUpload",e.ENDPOINT_FILE_REPORT_BASE_URL="/ccadminui/v1/files/mediaUploadReport/",e.ENDPOINT_CURRENCIES_LIST_CURRENCIES="listCurrencies",e.ENDPOINT_CURRENCIES_UPDATE_CURRENCY="updatePriceLocale",e.ENDPOINT_GET_REPORTING_CURRENCY="getReportingCurrency",e.ENDPOINT_UPDATE_REPORTING_CURRENCY="updateReportingCurrency",e.BASE_PRICE_LIST_GROUP="basePriceListGroup",e.PARENT_PLG_EDITED="parentPriceListGroupEdited",e.ENDPOINT_LIST_PRICE_LIST_GROUPS="listPriceListGroups",e.ENDPOINT_LIST_PRICE_LIST_GROUPS_WITH_PRICES="listPriceListGroupsWithPrices",e.ENDPOINT_CREATE_PRICE_LIST_GROUP="createPriceListGroup",e.ENDPOINT_UPDATE_PRICE_LIST_GROUP="updatePriceListGroup",e.ENDPOINT_DELETE_PRICE_LIST_GROUP="deletePriceListGroup",e.ENDPOINT_ACTIVATE_PRICE_LIST_GROUP="createPriceListGroupActivationRequest",e.ENDPOINT_UPDATE_DEFAULT_PRICE_LIST_GROUP="updateDefaultPriceListGroup",e.ENDPOINT_GET_DEFAULT_PRICE_LIST_GROUP="getDefaultPriceListGroup",e.ENDPOINT_ASSOCIATE_PRODUCTS_TO_PRICE_LIST_GROUP="associateProductsToPriceListGroup",e.ALL_PRODUCTS="allProducts",e.PRODUCTS_WITH_NULL_PRICES="productsWithNullPrices",e.SHOW_ONLY_PRODUCTS_WITH_MISSING_PRICES="showMissingListPrices",e.ALL_FILTER="all",e.PRINCIPAL_FILTER="principal",e.SUB_FILTER="sub",e.ACTIVE_FILTER="active",e.INACTIVE_FILTER="inactive",e.ENDPOINT_GET_MERCHANT_TIMEZONE="getMerchantTimezone",e.ENDPOINT_LIST_TIMEZONES="listTimezones",e.ENDPOINT_UPDATE_MERCHANT_TIMEZONE="updateMerchantTimezone",e.ENDPOINT_GET_EE_PAGE_TAG_DATA="getEEPageTagData",e.ENDPOINT_GET_STOREFRONT_URL="getStorefrontUrl",e.ENDPOINT_GET_TIMEZONE="getTimezone",e.ENDPOINT_LIST_SITE_SETTINGS="listSiteSettings",e.ENDPOINT_GET_SITE_SETTINGS="getCustomSiteSettings",e.ENDPOINT_SET_SITE_SETTINGS_CONFIG="setSiteSettingConfigData",e.ENDPOINT_SEARCH_LIST_SEARCH_INTERFACES="listSearchInterfaces",e.ENDPOINT_SEARCH_GET_SEARCH_INTERFACE="getSearchInterface",e.ENDPOINT_SEARCH_UPDATE_SEARCH_INTERFACE="updateSearchInterface",e.GUIDED_SEARCH_APPLICATION="cloud",e.AUTHORIZATION_HEADER="Authorization",e.BEARER="Bearer",e.SITE_SETTINGS_IMAGE_SETTINGS_ID="imageSiteSettings",e.PAYMENT_AUTHORIZATION_DEFAULT_TRIES=5,e.PAYMENT_AUTHORIZATION_DEFAULT_INTERVAL=2500,e.PAYMENT_AUTHORIZATION_DECLINE="DECLINE",e.PAYMENT_AUTHORIZATION_ACCEPT="ACCEPT",e.GENERIC_PAYMENT_AUTH_ACCEPT="AUTH-ACCEPT",e.PAYMENT_GROUP_STATE_AUTHORIZED="AUTHORIZED",e.PAYMENT_GROUP_STATE_SETTLED="SETTLED",e.PAYMENT_GROUP_STATE_AUTHORIZED_FAILED="AUTHORIZE_FAILED",e.PAYMENT_GROUP_STATE_PAYMENT_REQUEST_FAILED="PAYMENT_REQUEST_FAILED",e.PAYMENT_GROUP_STATE_INITIAL="INITIAL",e.PAYMENT_GROUP_STATE_REMOVED="REMOVED",e.PAYMENT_AUTHENTICATION_FAILED="476",e.PAYMENT_STATE_AUTHORIZED=1,e.PAYMENT_STATE_SETTLED=2,e.PAYMENT_STATE_PENDING_AUTHORIZATION=7,e.PAYMENT_STATE_PAYMENT_REQUEST_ACCEPTED=8,e.PAYMENT_STATE_PAYMENT_DEFERRED=10,e.PAYMENT_STATE_INITIAL=0,e.PAYMENT_OPTION="paymentOption",e.PAYMENT_IFRAME_LOAD_TRIES=40,e.VIEWPORT_TABLET_LOWER_WIDTH=768,e.VIEWPORT_TABLET_UPPER_WIDTH=979,e.VIEWPORT_LARGE_DESKTOP_LOWER_WIDTH=1200,e.VIEWPORT_MOBILE_WIDTH=480,e.DEFAULT_IMG_SIZE_FOR_VIEWPORT={large:{height:940,width:940,minWidth:e.VIEWPORT_TABLET_UPPER_WIDTH+1},medium:{height:475,width:475,minWidth:e.VIEWPORT_TABLET_LOWER_WIDTH+1,maxWidth:e.VIEWPORT_TABLET_UPPER_WIDTH},small:{height:300,width:300,minWidth:e.VIEWPORT_MOBILE_WIDTH+1,maxWidth:e.VIEWPORT_TABLET_LOWER_WIDTH},xsmall:{height:100,width:100,maxWidth:e.VIEWPORT_MOBILE_WIDTH}},e.DESKTOP_VIEW=1,e.PHONE_VIEW=2,e.TABLET_VIEW=3,e.LARGE_DESKTOP_VIEW=4,e.VIEWPORT_XS="xs",e.VIEWPORT_SMALL="sm",e.VIEWPORT_MEDIUM="md",e.VIEWPORT_LARGE="lg",e.CATALOG_NAME="cloudCatalog",e.ROOT_CATEGORY_ID="rootCategory",e.NON_NAVIGABLE_CATEGORY_ID="nonNavigableCategory",e.LIST_VIEW_PRODUCTS="product",e.LIST_VIEW_SEARCH="search",e.SEARCH_TYPE="searchType",e.SEARCH_TYPE_SIMPLE="simple",e.SEARCH_TYPE_TYPEAHEAD="typeahead",e.SEARCH_TYPE_GUIDED="guided",e.SEARCH_LANGUAGE="language",e.SEARCH_RECORD_COLLECTION="record.collection",e.TYPEAHEAD_SEARCH_INTERFACE="TypeAhead",e.ASSEMBLER_PATH_QUERY_PARAM="path",e.ASSEMBLER_REDIRECTS_QUERY_PARAM="redirects",e.ASSEMBLER_SITE_QUERY_PARAM="site",e.ASSEMBLER_DEFAULT_TYPEAHEAD_PATH="/typeahead",e.FONT_DECORATION_UNDERLINE="underline",e.FONT_DECORATION_STRIKETHROUGH="line-through",e.FONT_DECORATION_BOLD="bold",e.FONT_DECORATION_ITALIC="italic",e.FONT_DECORATION_EMPTY="none",e.FONT_ATTRIBUTE_INHERIT="inherit",e.FONT_ATTRIBUTE_NORMAL="normal",e.FONT_SLIDER_DEFAULT_PERCENT_MIN=25,e.FONT_SLIDER_DEFAULT_PERCENT_MAX=300,e.FONT_SLIDER_DEFAULT_PX_MIN=4,e.FONT_SLIDER_DEFAULT_PX_MAX=50,e.BUTTON_SIZE_LARGE="large",e.BUTTON_SIZE_MEDIUM="medium",e.BUTTON_SIZE_SMALL="small",e.BUTTON_SIZE_EXTRA_SMALL="extraSmall",e.BUTTON_RADIUS_MIN=0,e.BUTTON_RADIUS_MAX=25,e.FONT_ATTRIBUTE_FAMILY="font-family",e.FONT_ATTRIBUTE_TEXT_ALIGN="text-align",e.FONT_ATTRIBUTE_COLOR="color",e.FONT_ATTRIBUTE_FONT_STYLE="font-style",e.FONT_ATTRIBUTE_FONT_WEIGHT="font-weight",e.FONT_ATTRIBUTE_FONT_TEXT_DECORATION="text-decoration",e.FONT_ATTRIBUTE_FONT_SIZE="font-size",e.FONT_ATTRIBUTE_LINE_HEIGHT="line-height",e.FONT_ATTRIBUTE_PIXELS="px",e.FONT_ATTRIBUTE_PERCENT="%",e.FONT_ATTRIBUTE_REM="rem",e.FONT_DEFAULT_COLOR="#000000",e.FONT_DEFAULT_FAMILY="serif",e.FONT_DEFAULT_SIZE_PX=16,e.FONT_DEFAULT_SIZE_PERCENT=100,e.FONT_ALIGNMENT_LEFT="left",e.FONT_ALIGNMENT_CENTE="center",e.FONT_ALIGNMENT_RIGHT="right",e.FONT_SPACING_100="100",e.FONT_SPACING_SINGLE="single",e.FONT_SPACING_DOUBLE="double",e.FONT_SPACING_1_5="1.5",e.FONT_FAMILY_SANS_SERIF_VAR="@sansFontFamily",e.FONT_FAMILY_SANS_SERIF_VALUE="'Helvetica Neue', Helvetica, Arial, sans-serif",e.FONT_FAMILY_SERIF_VAR="@serifFontFamily",e.FONT_FAMILY_SERIF_VALUE="Georgia, 'Times New Roman', Times, serif",e.VERTICAL_ALIGNMENT_MIDDLE="middle",e.HORIZONTAL_ALIGNMENT_LEFT="left",e.HORIZONTAL_ALIGNMENT_CENTER="center",e.HORIZONTAL_ALIGNMENT_RIGHT="right",e.LINE_BREAK="line-break",e.FRAGMENT_TYPE_FRAGMENT="fragment",e.FRAGMENT_TYPE_CONTAINER="container",e.FRAGMENT_TYPE_HIDDEN="hidden",e.FRAGMENT_TYPE_INSTANCE="instance",e.FRAGMENT_NAME_GENERIC_TEXT="generic-text",e.FRAGMENT_CONFIG_NAV_AVAILABLE="navAvailable",e.FRAGMENT_CONFIG_AVAILABLE="available",e.FRAGMENT_CONFIG_ACTUAL="actual",e.FRAGMENT_CONFIG_CURRENT_CONFIG="currentConfig",e.FRAGMENT_CONFIG_PREVIEW="preview",e.FRAGMENT_CONFIG_IMAGE="image",e.FRAGMENT_CONFIG_PADDING="padding",e.FRAGMENT_CONFIG_RICH_TEXT="richText",e.FRAGMENT_CONFIG_ELEMENT_NAME="elementName",e.FRAGMENT_CONFIG_DEFAULT_HANDLER="defaultHandler",e.FRAGMENT_CONFIG_BORDER="border",e.FRAGMENT_CONFIG_COLLECTION_PICKER="collectionPicker",e.FRAGMENT_MAX_CHILDREN=20,e.FRAGMENT_SOURCE_OOTB=100,e.FRAGMENT_CONFIG_VALUES="values",e.FRAGMENT_IMAGE_CONFIG="imageConfig",e.FRAGMENT_PADDING_CONFIG="paddingConfig",e.FRAGMENT_RICH_TEXT_CONFIG="richTextConfig",e.FRAGMENT_BORDER_CONFIG="borderConfig",e.FRAGMENT_HORIZONTAL_ALIGNMENT_CONFIG="horizontalAlignmentConfig",e.FRAGMENT_COLLECTION_CONFIG="collectionConfig",e.EMAIL_ID_MAX_LENGTH=254,e.ORG_REQ_NAME_MAX_LENGTH=240,e.REPOSITORY_STRING_MAX_LENGTH=250,e.REPOSITORY_ID_GLUE="-DOM_COMPATIBLE_REPOSITORY_ID_GLUE---",e.PRODUCT_TITLE="product-title",e.WRAPPER_TAG="wrapperTag",e.WIDGET_TYPE_WEB_CONTENT="webContent",e.PROFILE_LOGIN="login",e.PROFILE_EMAIL="email",e.PROFILE_ACTIVE="active",e.PROFILE_PASSWORD="password",e.PROFILE_FIRST_NAME="firstName",e.PROFILE_LAST_NAME="lastName",e.PROFILE_POSTAL_CODE="postalCode",e.PROFILE_PHONE_NUMBER="phoneNumber",e.PROFILE_ACCOUNT="account",e.PROFILE_RECEIVE_EMAIL="receiveEmail",e.PROFILE_RECEIVE_EMAIL_DATE="receiveEmailDate",e.PROFILE_GDPR_CONSENT_GRANTED_KEY="GDPRProfileP13nConsentGranted",e.PROFILE_GDPR_CONSENT_GRANTED_DATE="GDPRProfileP13nConsentDate",e.PROFILE_SHIPPING_ADDRESS="shippingAddress",e.PROFILE_SHIPPING_ADDRESSES="shippingAddresses",e.PROFILE_OLD_PASSWORD="oldPassword",e.PROFILE_NEW_PASSWORD="newPassword",e.PROFILE_CONFIRM_PASSWORD="newConfirmPassword",e.PROFILE_PASSWORD_CONFIRM="confirmPassword",e.PROFILE_LOCALE="locale",e.CHECKOUT_PROFILE_DEFAULT_MESSAGE_INTERVAL=2e3,e.PROFILE_UNAUTHORIZED_DEFAULT_TIMEOUT=500,e.ACCOUNT_ACCESS_ERROR_CODE="60011",e.TIME="time",e.SHORT="short",e.MEDIUM="medium",e.LONG="long",e.FULL="full",e.DEFAULT_LANG="en",e.LESS_ATTR_PREFIX="@",e.LESS_ATTR_FONT_SIZE="FontSize",e.LESS_ATTR_FONT_WEIGHT="FontWeight",e.LESS_ATTR_FONT_FAMILY="FontFamily",e.LESS_ATTR_FONT_STYLE="FontStyle",e.LESS_ATTR_LINE_HEIGHT="LineHeight",e.LESS_ATTR_TEXT_ALIGN="TextAlign",e.LESS_ATTR_TEXT_COLOR="TextColor",e.LESS_ATTR_TEXT_DECORATION="TextDecoration",e.LESS_ATTR_BACKGROUND_IMAGE_URL="BackgroundImageURL",e.LESS_ATTR_BACKGROUND_IMAGE_REPEAT="BackgroundImageRepeat",e.LESS_ATTR_BACKGROUND_IMAGE_POSITION="BackgroundImagePosition",e.LESS_ATTR_BACKGROUND_IMAGE_ATTACHMENT="BackgroundImageAttachment",e.LESS_ATTR_BACKGROUND_COLOR="BackgroundColor",e.LESS_ATTR_BACKGROUND_COLOR_TOP="BackgroundColorTop",e.LESS_ATTR_BACKGROUND_COLOR_BOTTOM="BackgroundColorBottom",e.SITE_PAGE_BACKGROUND_COLOR="@SitePageBackgroundColor",e.LESS_ATTR_LINK_COLOR="@LinkColor",e.LESS_ATTR_LINK_HOVER_COLOR="@LinkHoverColor",e.LESS_ATTR_LINK_VISITED_COLOR="@LinkVisitedColor",e.LESS_ATTR_BUTTON_PRIMARY_SIZE="@ButtonPrimarySize",e.LESS_ATTR_BUTTON_PRIMARY_BORDER_RADIUS="@ButtonPrimaryBorderRadius",e.LESS_ATTR_BUTTON_PRIMARY_BACKGROUND_COLOR="@ButtonPrimaryBackgroundColor",e.LESS_ATTR_BUTTON_PRIMARY_TEXT_COLOR="@ButtonPrimaryTextColor",e.LESS_ATTR_BUTTON_PRIMARY_FONT_FAMILY="@ButtonPrimaryFontFamily",e.LESS_ATTR_BUTTON_PRIMARY_FONT_WEIGHT="@ButtonPrimaryFontWeight",e.LESS_ATTR_BUTTON_PRIMARY_FONT_STYLE="@ButtonPrimaryFontStyle",e.LESS_ATTR_BUTTON_PRIMARY_TEXT_DECORATION="@ButtonPrimaryTextDecoration",e.LESS_ATTR_BUTTON_PRIMARY_USE_GRADIENT="@ButtonPrimaryUseGradient",e.LESS_ATTR_BUTTON_SECONDARY_SIZE="@ButtonSecondarySize",e.LESS_ATTR_BUTTON_SECONDARY_BORDER_RADIUS="@ButtonSecondaryBorderRadius",e.LESS_ATTR_BUTTON_SECONDARY_BACKGROUND_COLOR="@ButtonSecondaryBackgroundColor",e.LESS_ATTR_BUTTON_SECONDARY_TEXT_COLOR="@ButtonSecondaryTextColor",e.LESS_ATTR_BUTTON_SECONDARY_FONT_FAMILY="@ButtonSecondaryFontFamily",e.LESS_ATTR_BUTTON_SECONDARY_FONT_WEIGHT="@ButtonSecondaryFontWeight",e.LESS_ATTR_BUTTON_SECONDARY_FONT_STYLE="@ButtonSecondaryFontStyle",e.LESS_ATTR_BUTTON_SECONDARY_TEXT_DECORATION="@ButtonSecondaryTextDecoration",e.LESS_ATTR_BUTTON_SECONDARY_USE_GRADIENT="@ButtonSecondaryUseGradient",e.LESS_ATTR_NAVBAR_BACKGROUND_COLOR="@NavbarBackgroundColor",e.LESS_ATTR_NAVBAR_BACKGROUND_HOVER_COLOR="@NavbarBackgroundHoverColor",e.LESS_ATTR_NAVBAR_LINK_COLOR="@NavbarLinkColor",e.LESS_ATTR_NAVBAR_LINK_HOVER_COLOR="@NavbarLinkHoverColor",e.LESS_ATTR_NAVBAR_TEXT_COLOR="@NavbarTextColor",e.LESS_ATTR_SUBNAVIGATION_BACKGROUND_COLOR="@SubNavigationBackgroundColor",e.LESS_ATTR_SUBNAVIGATION_BACKGROUND_HOVER_COLOR="@SubNavigationBackgroundHoverColor",e.LESS_ATTR_SUBNAVIGATION_LINK_COLOR="@SubNavigationLinkColor",e.LESS_ATTR_SUBNAVIGATION_LINK_HOVER_COLOR="@SubNavigationLinkHoverColor",e.LESS_ATTR_SUBNAVIGATION_TEXT_COLOR="@SubNavigationTextColor",e.LESS_ATTR_MOBILE_NAV_BAR_BUTTON_COLOR="@mobileNavBarButtonColor",e.SHIPPING_ADDRESS_FOR_METHODS="shippingAddress",e.POPULATE_SHIPPING_METHODS="populateShippingMethods",e.SHIPPING_GROUP_TYPE="shippingGroupType",e.SHIPPING_METHOD_ENABLED="enabledOnly",e.PRODUCT_IDS_FOR_SHIPPING="productIdForShippingSurcharge",e.SHIPPING_GROUPS="shippingGroups",e.SHIPPING_METHOD="shippingMethod",e.INSTORE_PICKUP="inStorePickupShippingGroup",e.HARDGOOD_SHIPPING_GROUP_TYPE="hardgoodShippingGroup",e.VIRTUAL_SHIPPING_GROUP_TYPE="virtualShippingGroup",e.LOCATION_IDS="locationIds",e.LOCATION_ID="locationId",e.INCLUDE_SHIPPING_GROUPS="includeShippingGroups",e.GV_MAX_COLS=12,e.GV_COL_CLASS_PREFIX="col-md-",e.GV_COL_CLASS_SM_PREFIX="col-sm-",e.GV_CONTAINER_CLASS="cc-gv-container",e.GV_CONTAINER_CLASS_SELECTOR="."+e.GV_CONTAINER_CLASS,e.GV_CONTAINER_COMMON_CLASS="cc-gv-common-container",e.GV_CONTAINER_COMMON_CLASS_SELECTOR="."+e.GV_CONTAINER_COMMON_CLASS,e.GV_STACK_CONTAINER_CLASS="cc-gv-stack-container",e.GV_STACK_CONTAINER_CLASS_SELECTOR="."+e.GV_STACK_CONTAINER_CLASS,e.GV_WIDGET_CLASS="cc-gv-widget",e.GV_ROW_CLASS="cc-gv-row",e.GV_ROW_HEADER_CLASS="cc-gv-row-heading",e.GV_TOOLBOX_ID="cc-gv-toolbox",e.TOOLBOX_CLASS="cc-toolbox",e.RESIZE_LOCATION_EAST="e",e.RESIZE_LOCATION_WEST="w",e.GV_ACTION_RESIZE=1,e.GV_ACTION_INSERT=2,e.GV_ACTION_APPEND=3,e.GV_ACTION_DELETE=4,e.GV_ACTION_DELETE_ACTIVE=5,e.INCLUDE_WIDGETS_AVAILABLE_TO_ALL_QUERY_PARAM="includeWidgetsAvailableToAll",e.PAGE_TYPE_CART="cart",e.PAGE_TYPE_PAYMENT="payment",e.PAGE_TYPE_CHECKOUT="checkout",e.PAGE_TYPE_CONFIRMATION="confirmation",e.PAGE_TYPE_AGENT_CHECKOUT="agentCheckout",e.PAGE_TYPE_AGENT_MULTISHIP_CHECKOUT="agentMultiShipCheckout",e.PAGE_ID_AGENT_MULTISHIP_EDIT="agentMultiShipEdit",e.THEME_TYPE_PARAM="type",e.THEME_TYPE_PURCHASED="purchased",e.THEME_TYPE_CUSTOM="custom",e.THEME_SOURCE_ADDITIONAL_STYLES="additionalStyles",e.THEME_INCLUDE_AGENT_THEME_QUERY_PARAM="includeagenttheme",e.WIDGET_CONFIG_SECTION_TITLE_TYPE="sectionTitle",e.WIDGET_CONFIG_STRING_TYPE="text",e.WIDGET_CONFIG_BOOLEAN_TYPE="checkbox",e.WIDGET_CONFIG_OPTION_TYPE="option",e.WIDGET_CONFIG_MULTI_SELECT_OPTION_TYPE="multiSelectOption",e.WIDGET_CONFIG_COUNTRY_PICKER_TYPE="countryPicker",e.WIDGET_CONFIG_PASSWORD_TYPE="password",e.WIDGET_CONFIG_COLOR_TYPE="color",e.WIDGET_CONFIG_MEDIA_TYPE="media",e.WIDGET_CONFIG_COLLECTION_TYPE="collection",e.WIDGET_CONFIG_SITE_SETTINGS_ENABLED_ID="__siteSettingsEnabled__",e.WIDGET_CONFIG_AUDIENCE_TYPE="audience",e.WIDGET_CONFIG_SELECT2_TYPE="select2",e.WIDGET_CONFIG_MULTI_KEY_VALUE_PAIRS_TYPE="multiKeyValuePairs",e.WIDGET_CONFIG_LOGIN_CREDENTIAL_TYPE="loginCredential",e.WIDGET_CONFIG_WEB_CONTENT_TYPE="webContent",e.WIDGET_CONFIG_CONTENT_SELECTOR_TYPE="contentTypeSelector",e.WIDGET_CONFIG_CONTENT_QUERY_BUILDER_TYPE="contentQueryBuilder",e.WIDGET_CONFIG_CONTENT_ITEM_SETTINGS_TYPE="contentItemSettings",e.WIDGET_CONFIG_CONTENT_PICKER_TYPE="contentPicker",e.WIDGET_DESCRIPTOR_JAVASCRIPT_UGLIFY_ERROR="33043",e.CREATE_PROFILE_USER_EXISTS="22006",e.USER_PROFILE_OLD_PASSWORD_INCORRECT="23029",e.USER_PROFILE_PASSWORD_POLICIES_ERROR="23024",e.USER_PROFILE_SHIPPING_UPDATE_ERROR="23030",e.USER_PROFILE_INTERNAL_ERROR="23001",e.UPDATE_EXPIRED_PASSWORD_OLD_PASSWORD_INCORRECT="23034",e.USER_EXPIRED_PASSWORD_POLICIES_ERROR="23033",e.INVALID_SHIPPING_COUNTRY_STATE="28128",e.INVALID_SHIPPING_METHOD="28088",e.INVALID_SHIPPING_ADDRESS="40001",e.VISIT_ID="visitId",e.VISITOR_ID="visitorId",e.CUSTOM="custom",e.INVENTORY_TYPE_PARAM="type",e.INVENTORY_PRODUCT_TYPE="product",e.INVENTORY_VARIANT_TYPE="variant",e.COUPON_APPLY_ERROR_DUPLICATE_CODE="duplicateCoupon",e.COUPON_STATUS_CLAIMED="claimed",e.COUPON_STATUS_UNCLAIMED="unclaimed",e.PROMOTION_APPLIED=!0,e.PROMOTION_NOT_APPLIED=!1,e.COUPON_APPLY_ERROR="28326",e.COUPON_LIMIT_EXCEED="28346",e.FIELDS_QUERY_PARAM="fields",e.EXPAND_QUERY_PARAM="expand",e.COLLECTION_UPDATE_PRODUCTS_TYPE_PARAM="type",e.COLLECTION_APPEND_PRODUCTS_TYPE="appendProducts",e.COLLECTION_UPDATE_PRODUCTS_TYPE="updateProducts",e.ORDER_PRICE_CHANGED="28327",e.EXTERNAL_PRICE_CHANGED="51003",e.EXTERNAL_PRICE_PARTIAL_FAILURE_ERROR="51002",e.ENDPOINT_GET_EMAIL_SERVICE_DATA="getEmailServiceData",e.ENDPOINT_SET_EMAIL_SERVICE_DATA="setEmailServiceData",e.ENDPOINT_TEST_SMTP_CONNECTION="testSmtpConnection",e.PAGE_ADDRESS_STRING_MAX_LENGTH=100,e.PROMOTION_ITEM_DISCOUNT_TYPE=0,e.PROMOTION_SHIPPING_DISCOUNT_TYPE=5,e.PROMOTION_ORDER_DISCOUNT_TYPE=9,e.SELECTED_CURRENCY_NOT_FOUND="20186",e.CREATE_ORDER_PRODUCT_NOT_FOUND="28102",e.CREATE_ORDER_SKU_NOT_FOUND="28129",e.GET_PRODUCT_NO_PRODUCT_FOUND="20031",e.GET_SKU_NO_SKU_FOUND="26060",e.LIST_PRODUCTS_INVALID_COLLECTION="20140",e.STOCK_LIMIT_EXCEEDED="28104",e.ORDER_CANNOT_BE_UPDATED="20140",e.PROCESS_COMPLETION_FAILED_CODE="28347",e.PROCESS_COMPLETION_FAILED="processCompletionFailed",e.PAYMENT_REVERSAL_FAILED_CODE="28348",e.PAYMENT_REVERSAL_FAILED="paymentReversalFailed",e.PRODUCT_NOT_FOR_INDIVIDUAL_SALE="28155",e.CONFIGURABLE_PRODUCTS_NOT_ALLOWED_FAILURE_CODE="28360",e.INVENTORY_CONFIGURABLE_ITEM_CHECK_ERROR="25137",e.UNLINKED_ADD_ON_PRODUCT="28410",e.ADDON_VOLUME_PRICE_ERROR="51108",e.INVALID_SHOPPER_INPUT="28411",e.CART_ITEM_QUANTITY_NOT_FULY_ALLOCATED="28154",e.CYBERSOURCE_PA_CHALLENGE_REASON_CODE="478",e.OAUTH_INTERNAL_ERROR="22003",e.OAUTH_ERROR_INVALID_REQUEST="invalid_request",e.OAUTH_ERROR_INVALID_GRANT="invalid_grant",e.OAUTH_ERROR_UNAUTHORIZED_CLIENT="unauthorized_client",e.OAUTH_ERROR_USER_LOCKED="user_locked",e.PROFILE_TYPE_AGENT="agentUI",e.PROFILE_TYPE_FILE_AGENT="fileAgent",e.ORDER_ID="orderId",e.ORDER_STATE="state",e.ORDER_SEARCH_START_DATE="startDate",e.ORDER_SEARCH_END_DATE="endDate",e.ORDER_ACCOUNT="account",e.ADDRESS_PHONE="addressPhone",e.PROFILE_ID="profileId",e.COMMENT="comment",e.PAGE_NUMBER="pageNumber",e.ADDRESS_FIRST_NAME="AddressFirstName",e.ADDRESS_LAST_NAME="AddressLastName",e.ADDRESS_COUNTRY="AddressCountry",e.ADDRESS_ADDRESS_LINE1="AddressAddressLine1",e.ADDRESS_ADDRESS_LINE2="AddressAddressLine2",e.ADDRESS_CITY="AddressCity",e.ADDRESS_STATE="AddressState",e.ADDRESS_POSTAL_CODE="AddressPostalCode",e.BILLING="billing",e.SHIPPING="shipping",e.BILLING_ADDRESS="billingAddress",e.SCIM_EMAIL="profile.email",e.SCIM_ORDER_PHONE_NUMBER="shippingGroups.phoneNumber",e.SCIM_FIRST_NAME="profile.firstName",e.SCIM_LAST_NAME="profile.lastName",e.SCIM_ORDER_ID="id",e.SITE_ID="siteId",e.SCIM_PRODUCT_ID="commerceItems.productId",e.SCIM_SKU_ID="commerceItems.catalogRefId",e.SCIM_STATUS="state",e.SCIM_ACCOUNT="organization.name",e.SCIM_APPROVER_FIRST_NAME="approvers.firstName",e.SCIM_APPROVER_LAST_NAME="approvers.lastName",e.SUBMITTED_DATE="submittedDate",e.ORDER_STATES="orderStates",e.SCIM_POSTAL_CODE="allSecondaryAddresses.postalCode",e.SCIM_PHONE_NUMBER="allSecondaryAddresses.phoneNumber",e.SCIM_PARENT_ORGANIZATION_NAME="parentOrganization.name",e.SCIM_SECONDARY_ORGANIZATION_NAME="secondaryOrganizations.name",e.USER_ROLE_ADMIN="adminRole",e.USER_ROLE_AGENT_SUPERVISOR="csAgentSupervisorRole",e.SEARCH_CREATED_IN_LAST_FIELD_MAXIMUM_VALUE=999,e.Q="q",e.PARAM_QUERY_FORMAT_SCIM="SCIM",e.PARAM_QUERY_FORMAT="queryFormat",e.GET_VALID_ACTIONS="getValidActions",e.CANCEL="cancel",e.INCLUDE_RESULT="includeResult",e.INCLUDE_RESULT_FULL="full",e.CANCEL_REASON="cancelReason",e.INVALIDATE="invalidateOrder",e.INCLUDE_DELETED="includeDeleted",e.DEPTH_MIN="min",e.CATALOG_MAXLEVEL_1000="1000",e.EXPAND_CHILD_CATEGORIES="childCategories",e.SELECTED_CATEGORY_DETAILS="selectedCategoryDetails",e.UNASSIGNED_COLLECTIONS="unassignedCollections",e.LIST_TYPE_PRODUCT="product",e.MEGA_MENU_NAME="cc-categoryNav",e.ENDPOINT_COLLECTIONS_GET_CATEGORY_INFORMATION="getCategoryData",e.ENDPOINT_GET_USERPROFILE_BY_ID="getProfileByID",e.ENDPOINT_GET_ORDER="getOrder",e.ENDPOINT_GET_ORDERS_COUNT="getOrdersCount",e.ENDPOINT_GET_RETURN_REQUESTS_COUNT="getReturnsCount",e.ENDPOINT_GET_INITIAL_ORDER="getInitialOrder",e.ENDPOINT_ORDERS_ORDER_STATES="getOrderStates",e.ENDPOINT_LIST_COUNTRIES="listShippingCountries",e.ENDPOINT_SEARCH_CUSTOMERS="searchProfiles",e.ENDPOINT_ORDERS_SEARCH="searchOrders",e.ENDPOINT_GET_CUSTOMER="getProfile",e.ENDPOINT_UPDATE_CUSTOMER="updateProfile",e.ENDPOINT_CREATE_COMMENT="createComment",e.ENDPOINT_GET_COMMENTS="getComments",e.FIRST_ITEM_ADDED_CB="firstItemAddedSuccess",e.ENDPOINT_HANDLE_ORDER_ACTIONS="handleOrderActions",e.ENDPOINT_LIST_CANCEL_REASONS="listCancelReasons",e.SEND_PLACED_ORDER_EMAIL_NOTIFICATION="sendPlacedOrderEmailNotification",e.ENDPOINT_GET_RETURN_STATES="getReturnStates",e.ENDPOINT_SEARCH_RETURN_REQUESTS="searchReturns",e.ENDPOINT_RETURN_ORDER_REASONS="getReturnReasons",e.ENDPOINT_RETURN_REQUEST="initiateReturn",e.ENDPOINT_RECEIVE_RETURN_REQUEST="getReturnRequest",e.ENDPOINT_UPDATE_RETURN_REQUEST="updateReturnRequest",e.ENDPOINT_CALCULATE_REMAINING_REFUND="calculateRemainingRefund",e.ENDPOINT_RETURN_ORDER_DISPOSITION_REASONS="getDispositionReasons",e.ENDPOINT_PRICEOVERRIDE_REASONS="getPriceOverrideReasons",e.AGENT_SHOPPER_TYPES="userProfileProperties",e.ENDPOINT_SHOPPER_TYPE="getShopperType",e.ENDPOINT_SHOPPER_TYPE_PARAM="user",e.ENDPOINT_ORGANIZATION_PARAM="organization",e.AGENT_ORDER_TYPES="userOrderProperties",e.ENDPOINT_ORDER_TYPE="getOrderType",e.ENDPOINT_ORDER_TYPE_PARAM="order",e.AGENT_SHOPPER_INPUT_TYPES="agentShopperInput",e.ENDPOINT_COMMERCE_ITEM_TYPE_PARAM="commerceItem",e.ENDPOINT_GET_POSTS="getPosts",e.ENDPOINT_HANDLE_POST_CREATION="createPost",e.ENDPOINT_DELETE_POST="deletePost",e.ENDPOINT_HANDLE_POST_UPDATES="handlePostUpdates",e.POST_MAX_ALLOWED_CHARACTERS=4e3,e.LINK_URL_MAX_ALLOWED_CHARACTERS=254,e.ENDPOINT_UPDATE_POST_OP="updatePost",e.ENDPOINT_CREATE_EXCHANGE_REQUEST="createExchangeRequest",e.CREATE_EXCHANGE_REQUEST_OP="createExchangeRequest",e.SUBMIT_EXCHANGE_ORDER_OP="submitExchangeOrder",e.PROCESS_EXCHANGES_REQUEST="processExchangeRequest",e.TRANSACTION_TYPE_AUTHORIZATION="authorization",e.PAYMENT_METHOD="card",e.UNSIGNED_FIELDS="card_number",e.AMOUNT_REMAINING="amountRemaining",e.INITIATE_AMENDMENT_OP="initiateAmendment",e.CHECK_AMENDMENT_INPROGRESS_OP="checkAmendmentInProgress",e.PRICE_ORDER_AMENDMENT_OP="priceOrderAmendment",e.PRE_AUTORIZE_ORDER_AMENDMENT_OP="preAuthorizeAmendOrder",e.CONTINUE_WITH_EXISTING_EDIT="continueWithInProgressEdit",e.ENDPOINT_REMOVE_ORDER_AMENDMENT="removeOrderAmendment",e.ENDPOINT_SUBMIT_ORDER_AMENDMENT="submitOrderAmendment",e.ENDPOINT_AMEND_ORDER="handleOrderAmendment",e.VALID_ACTIONS="validActions",e.VALIDATE_PAYMENT_AUTHORIZATIONS="validatePaymentAuthorization",e.VALIDATE_ORDER="validateOrder",e.PRICE_ORDER_INCOMPLETE_OP="priceOrder",e.GET_UPSELL_MESSAGES="getUpsellMessages",e.PRE_AUTORIZE_ORDER="preAuthorizeOrder",e.SUBMIT_ORDER_OP="submitOrder",e.ENDPOINT_PRICE_INCOMPLETE_ORDER="priceOrderForCreate",e.ENDPOINT_LIST_PRODUCT_VARIANTS="listProductVariants",e.TRANSACTION_TYPE_FOR_CREATE="authorization,create_payment_token",e.AGENT_CATALOG_PAGE_HASH="/catalog",e.AGENT_CATALOG_PAGE_CONTEXT="catalog",e.AGENT_CATALOG_CATEGORY_CONTEXT="category",e.AGENT_CATALOG_PRODUCT_CONTEXT="product",e.AGENT_CATALOG_SEARCH_RESULTS_PAGE_HASH="/catalog/searchresults",e.AGENT_CATALOG_PRODUCT_HASH="#!/catalog/product?id=",e.AGENT_CUSTOMERS_HISTORY_HASH="#/customers/history",e.AGENT_CUSTOMERS_PROFILE_HASH="#/customers/profile",e.AGENT_PARAM_CUSTOMER_ID="customerId",e.AGENT_BASE_CONTEXT="/occs-agent",e.SEARCH_RESULTS="searchresults",e.CATEGORY_CONTEXT="category",e.AGENT_CUSTOMERS_REGISTRATION_REQUEST_HASH="#/customers/registrationRequests",e.AGENT_CUSTOMERS_SEARCH_HASH="#/customers/search",e.AGENT_CONTEXT_SHOPPER_PROFILE_ID="shopperProfileId",e.NO_SEARCH_RESULTS="noSearchResults",e.NO_SEARCH_RESULTS_CONTEXT="/catalog/noSearchResults",e.AGENT_CUSTOMERS_HISTORY_CONTEXT="history",e.AGENT_CUSTOMERS_PROFILE_CONTEXT="profile",e.AGENT_CUSTOMERS_SCHEDULED_ORDERS_CONTEXT="scheduledOrders",e.AGENT_CUSTOMERS_PURCHASE_LISTS_CONTEXT="purchaseLists",e.AGENT_SEARCH_CONTEXT="search",e.AGENT_CART_CONTEXT="cart",e.AGENT_CUSTOMERS_ACCOUNT_DETAILS_CONTEXT="accountDetails",e.AGENT_ORDERS_VIEW_OPERATION="view",e.AGENT_ORDERS_EDIT_OPERATION="edit",e.AGENT_ORDERS_HAS_INCOMPLETE_ORDER="hasIncompleteOrder",e.AGENT_ORDERS_CONTINUE_EDIT="continueEdit",e.AGENT_ORDERS_CREATE_OPERATION="create",e.VALID_ROLE_FOR_PRICE_OVERRIDE="csAgentSupervisorRole",e.ENABLE_RECEIVE_EMAIL="yes",e.DISABLE_RECEIVE_EMAIL="no",e.AGENT_ORDERS_CACHE_TYPE="orders",e.AGENT_CUSTOMERS_CACHE_TYPE="customers",e.AGENT_ORDERS_EDIT_CACHE_TYPE="edit",e.AGENT_ORDERS_CREATE_CACHE_TYPE="create",e.RETURN_REQUEST_ID="returnRequestId",e.DAYS_OF_WEEK="daysOfWeek",e.MONTHS_IN_YEAR="monthsInYear",e.WEEKS_IN_MONTH="weeksInMonth",e.OCCURRENCE_IN_DAY="occurrenceInDay",e.DAYS_IN_MONTH="daysInMonth",e.ADJUST_REFUND_AMOUNTS="adjustRefundAmounts",e.ADJUSTED_ITEM_REFUND="adjustedItemRefund",e.RETURN_ITEM_ID="returnItemId",e.RETURN_ITEMS="returnItems",e.RETURN_REASON="returnReason",e.QUANTITY_TO_RETURN="quantityToReturn",e.CATALOGREF_ID="catRefId",e.SHIPPING_GROUP_ID="shippingGroupId",e.CREATE_RETURN_REQUEST="create",e.PROCESS_RETURN_REQUEST="process",e.REFUND_FOR_RETURN="refund",e.SHOW_RETURN_REQUEST="showReturnRequest",e.CALCULATE_REFUND_AMOUNTS="calculateRefundAmounts",e.ENDPOINT_CALCULATE_REFUND="calculateRefund",e.RECEIVE_RETURNS="receiveReturns",e.QUANTITY_RECEIVED="quantityReceived",e.DISPOSITION_REASON="dispositionReason",e.SHOW_RETURN_REQUEST="showReturnRequest",e.PROCESS_EXCHANGE_ORDER_OP="processExchangeOrder",e.CREATE_RETUN_REQUEST_OP="createReturnRequest",e.FULL_RETURN_STATUS="Full return",e.ADJUSTED_SHIPPING_REFUND="adjustedShippingRefund",e.ADJUSTED_SHIPPING_SURCHARGE_REFUND="adjustedShippingSurchargeRefund",e.ADJUSTED_TAX_REFUND="adjustedTaxRefund",e.RETURN_FEE="returnFee",e.OTHER_REFUND="otherRefund",e.INITIATE_REFUND_FOR_RETURN="initiateRefund",e.VALID_ROLE_FOR_INITIATE_REFUND="csAgentSupervisorRole",e.REPLACEMENT_SKU_ID="replacementSkuId",e.PROCESS_EXCHANGE_REQUEST="processExchangeRequest",e.MARK_MANUAL_REFUND="markManualRefund",e.RETURN_MARK_AS_COMPLETE="markAsComplete",e.MANUAL_REFUND_AMOUNT="manualRefundAmount",e.AGENT_CATALOG_SEARCH_KEY="action",e.AGENT_CREATE_ORDER_CACHE_KEY="createOrder",e.AGENT_EDIT_ORDER_CACHE_KEY="editOrder",e.SITE_CONFIGURATION_URL="/ccadminui/v1/sites/siteUS",e.SITE_DEFAULT_NO_IMAGE_URL="/img/no-image.jpg",e.ENDPOINT_TENANTS_GET_TENANT="getTenantServiceData",e.ENDPOINT_MERCHANT_PUT_EXTERNALDATA="updateExternalServicesData",e.ENDPOINT_MERCHANT_GET_EXTERNALDATA="getExternalServiceData",e.EXTERNALDATA_PRODUCTION_EXPERIMENTS="production-Experiments",e.EXTERNALDATA_PRODUCTION_SOCIAL="production-Social",e.EXTERNALDATA_PRODUCTION_RECS="production-Recommendations",e.EXTERNALDATA_PREVIEW_FACEBOOK="publishing-Facebook",e.EXTERNALDATA_PRODUCTION_FACEBOOK="production-Facebook",e.GENERATE_STATIC_WISHLIST_PAGE="generateStaticWishlistPage",e.EMAIL_TEMPLATE_DOWNLOAD_URL="/ccadminui/v1/email/types",e.EMAIL_TEMPLATES_RESOURCE="templates",e.EMAIL_TEMPLATES_UPLOAD_LOCATION="/notifications/uploads/",e.ENDPOINT_UPDATE_EMAIL_TEMPLATES="updateEmailTemplates",e.FILENAME="filename",e.VIRUS_SCAN_FAILED="VIRUS_SCAN_FAILED",e.MALFORMED="MALFORMED",e.LAYOUTS_EXPORT_BASE_URL="/ccadminui/v1/assetPackages",e.DYNAMIC_PROPERTY_VIEW_ONLY="view",e.DYNAMIC_PROPERTY_UPDATE_ONLY="update",e.ENDPOINT_GET_MEDIA_CONTENTS="/ccadminui/v1/files/mediaContents",e.ENDPOINT_GET_FILE_URI="getFileURI",e.ENDPOINT_RESOURCES_GET_BUNDLE="getResourceBundle",e.RESOURCES_KEY="resources",e.ERRORS_KEY="errorCode",e.ENDPOINT_RESOURCES_GET_STRINGS="getResourceStrings",e.ENDPOINT_RESOURCES_UPDATE_CUSTOM="updateCustomTranslations",e.ENDPOINT_RESOURCES_GET_STRINGS_FOR_LOCALE="getResourceStringsForLocale",e.ENDPOINT_RESOURCES_UPDATE_CUSTOM_FOR_LOCALE="updateCustomTranslationsForLocale",e.DELETE_KEY_CODE=46,e.BACKSPACE_KEY_CODE=8,e.EVENT_TYPE_KEYUP="keyup",e.ENDPOINT_SETTINGS_GET_REMORSE_PERIOD="getRemorsePeriod",e.ENDPOINT_SETTINGS_SAVE_REMORSE_PERIOD="saveRemorsePeriod",e.ENDPOINT_SETTINGS_GET_EXTENDED_REMORSE_PERIOD="getExtendedRemorsePeriod",e.ENDPOINT_SETTINGS_SAVE_EXTENDED_REMORSE_PERIOD="saveExtendedRemorsePeriod",e.ENDPOINT_SETTINGS_GET_ITEM_PRICE_OVERRIDE_PROPERTIES="getItemPriceOverride",e.ENDPOINT_SETTINGS_SET_ITEM_PRICE_OVERRIDE_PROPERTIES="saveItemPriceOverride",e.ITEM_PRICE_OVERRIDE_ALLOWED="itemPriceOverrideAllowed",e.IS_ITEM_PRICE_OVERRIDEN="isPriceOverridden",e.OVERRIDEN_ITEM_PRICE="overriddenPrice",
  18. e.ITEM_PRICE_OVERRIDE_ALLOWED_FOR_CREATE="itemPriceOverrideAllowedForCreate",e.ENDPOINT_GET_CLOUD_CONFIGURATION="getCloudConfiguration",e.ENDPOINT_GET_ADMIN_CONFIGURATION="getAdminConfiguration",e.INITIATE_EXCHANGE_REQUEST_OP="initiateExchange",e.OPTION_NAME="optionName",e.OPTION_VALUE="optionValue",e.ORDERS_CONTEXT="/orders/",e.RETURNS_CONTEXT="/returns/",e.EXCHANGES_CONTEXT="/exchanges/",e.RETURNS_PROCESS_TYPE="Returns",e.EXCHANGE_PROCESS_TYPE="Exchanges",e.ORDER_OP_INITIATE="initiate",e.ORDER_OP_COMPLETE="complete",e.PENDING_PAYMENTS="PENDING_PAYMENT",e.PENDING_PAYMENT_TEMPLATE="PENDING_PAYMENT_TEMPLATE",e.ORDERS_URL="/orders",e.LIST_VOLUME_PRICE="listVolumePrice",e.LIST_VOLUME_PRICES="listVolumePrices",e.PRODUCT_LIST_VOLUME_PRICE="productListVolumePrices",e.SALE_VOLUME_PRICE="saleVolumePrice",e.SALE_VOLUME_PRICES="saleVolumePrices",e.PRODUCT_SALE_VOLUME_PRICE="productSaleVolumePrices",e.BULK_PRICE="bulkPrice",e.BULK_PRICE_TEXT="Bulk",e.TIERED_PRICE_TEXT="Tiered",e.TIERED_PRICE="tieredPrice",e.PRODUCT_LIST_PRICE="productListPrice",e.PRODUCT_SALE_PRICE="productSalePrice",e.PRICING_SCHEME="pricingScheme",e.LEVELS="levels",e.LEVEL_MINIMUM="levelMinimum",e.PRICE="price",e.LIST_VOLUME_PRICE_SCHEME="listVolumePriceScheme",e.SALE_VOLUME_PRICE_SCHEME="saleVolumePriceScheme",e.PRODUCT_LIST_VOLUME_PRICE_SCHEME="productListVolumePriceScheme",e.PRODUCT_SALE_VOLUME_PRICE_SCHEME="productSaleVolumePriceScheme",e.LIST_VOLUME_PRICING_SCHEME="listVolumePricingScheme",e.SALE_VOLUME_PRICING_SCHEME="saleVolumePricingScheme",e.LIST_VOLUME_PRICE_TEXT="listVolumePriceText",e.SALE_VOLUME_PRICE_TEXT="saleVolumePriceText",e.LIST_PRICES_PROPERTY="listPrices",e.SALE_PRICES_PROPERTY="salePrices",e.FORMATTED_LIST_PRICE="formattedListPrice",e.FORMATTED_PRODUCT_LIST_PRICE="formattedProductListPrice",e.FORMATTED_SALE_PRICE="formattedSalePrice",e.FORMATTED_PRODUCT_SALE_PRICE="formattedProductSalePrice",e.SHIPPING_SURCHARGES_PROPERTY="shippingSurcharges",e.FORMATTED_SHIPPING_SURCHARGE="formattedShippingSurcharge",e.IS_LIST_PRICE_INHERITED="isListPriceInherited",e.IS_SALE_PRICE_INHERITED="isSalePriceInherited",e.IS_SHIPPING_SURCHARGE_INHERITED="isShippingSurchargeInherited",e.IS_LIST_VOLUME_PRICE_INHERITED="isListVolumePriceInherited",e.IS_SALE_VOLUME_PRICE_INHERITED="isSaleVolumePriceInherited",e.DERIVED_LIST_PRICE_FROM="derivedListPriceFrom",e.DERIVED_SALE_PRICE_FROM="derivedSalePriceFrom",e.DERIVED_SHIPPING_SURCHARGE_FROM="derivedShippingSurchargeFrom",e.LIST_PRICE_ARIA_LABEL="listPriceAriaLabel",e.SALE_PRICE_ARIA_LABEL="salePriceAriaLabel",e.SHIPPING_SURCHARGE_ARIA_LABEL="shippingSurchargeAriaLabel",e.LIST_PRICE_CSS="listPriceCss",e.SALE_PRICE_CSS="salePriceCss",e.SHIPPING_SURCHARGE_CSS="shippingSurchargeCss",e.Is_NEW_PRODUCT="isNewProduct",e.REGION_TYPE_HEADER=100,e.REGION_TYPE_BODY=101,e.REGION_TYPE_FOOTER=102,e.POST_TYPE_ANNOUNCEMENT="announcementPost",e.POST_TYPE_QUICK_LINK="quickLinkPost",e.POSTS_DEFAULT_SORT_OPTION="creationDate:desc",e.QUICK_LINK_DEFAULT_SORT_OPTION="creationDate:desc",e.SITE_DEFAULT_SORT_OPTION="name:asc",e.POSTS_TYPE_QUERY_PARAM="type",e.POST_ACTIVE_STATUS_QUERY_PARAM="active",e.REPOSITORY_MAX_FETCH_LIMIT=250,e.CREDIT_CARD="creditCard",e.ONLINE_REFUND_TYPE="onlinePaymentGroup",e.MANUAL_REFUND_TYPE="manualRefund",e.GIFT_CARD_REFUND_TYPE="physicalGiftCard",e.MANUAL_REFUND_TEXT="Manual Refund",e.RETURN_CREDIT="returnCredit",e.SHORT_DATE_FORMAT="MM/DD/YYYY",e.OJET_INPUT_SHORT_DATE_FORMAT="YYYY-MM-DD",e.OPERATION_MOVE="move",e.PROPERTY_IMAGES="images",e.INPUT="input",e.APPLICATION_NAME="applicationName",e.REQUEST_CHANNEL="requestChannel",e.APPLICATION_STOREFRONT="storefront",e.APPLICATION_AGENT="agent",e.APPLICATION_PREVIEW="preview",e.PRICING_TAX_REQUEST_ERROR="40001",e.PRICING_USER_AUTHENTICATION_ERROR="60006000",e.DISPLAY_FORMAT_TYPE_DATE="date",e.DISPLAY_FORMAT_SHORT="short",e.DISPLAY_FORMAT_TYPE_DATE_OJET="date-ojet",e.DISPLAY_FORMAT_TYPE_NUMBER="number",e.DISPLAY_FORMAT_LIST="list",e.DISPLAY_FORMAT_TYPE_ENUMERATED="enumerated",e.DISPLAY_FORMAT_TYPE_COMPLEX_ENUMERATED="complex-enumerated",e.DISPLAY_FORMAT_TYPE_COMPLEX_ENUMERATED_PROPERTY_CAPTION="Select",e.DISPLAY_FORMAT_TYPE_CHECKBOX="checkbox",e.GENERATED_REPOSITORY_ID_REGEX=/^[a-z]{2}[0-9]+$/,e.GENERATED_REPOSITORY_ID_REGEX=/^[a-z]{2}[0-9]+$/,e.IPAD_STRING=/iPad/i,e.ENTERED_TEXT_FRAGMENT_TYPE="enteredTextFragment",e.GENERIC_TEXT_FRAGMENT_TYPE="generic-textFragment",e.SEO_META_INFO_NAME="seoMetaInfo",e.GET_SEO_META_INFO_ID="seoMetaInfo?showHidden=true",e.HYPHEN_CONCATANATER="-",e.COMMA_SEPARATOR=",",e.PAYMENT_REVERSAL_INFO="paymentReversalInfo",e.AMOUNT="amount",e.LISTING_OFFSET_MAP_KEY="listingOffsetMap",e.SELECTED_SHIPPING_LOCAL_STORAGE_KEY="cc.selectedShippingData",e.ENDPOINT_GIFTCARD_ADD_BALANCE="addGiftCardBalance",e.CONTEXT_GIFTCARD="giftcard",e.GIFTCARD_APPLY_ERROR="28339",e.INVALID_GIFTCARD_DATA_ERROR="28340",e.GIFTCARD_ORDER_PROCESSING_ERROR="29000",e.GIFTCARD_INSUFFICIENT_ERROR="28344",e.DUPLICATE_GIFTCARD="duplicateGiftcardErrMsg",e.CHASE_GATEWAY_GC="chaseGiftCard",e.PAYULATAM_GATEWAY_ID="PULAW-A",e.PAYER_AUTH_REQUIRED="payerAuthRequired",e.VALIDATE_TOKEN_OPERATION="validateToken",e.CONFIRM_PASSWORD_RESET="confirmPasswordReset",e.RESEND_URL="resend",e.ADMIN_REGISTER_URL="registerAdmin",e.INVITATION_EXPIRED_ERROR_CODE="83011",e.ALREADY_REGISTERED_ERROR_CODE="83010",e.REGISTER_ADMIN_INVALID_TOKEN_ERROR="83009",e.MAX_SUB_REGIONS_DEFAULT=10,e.DEFAULT_SOURCE=100,e.MIN_SUB_REGIONS_DEFAULT=1,e.CAN_EDIT_SUB_REGIONS_DEFAULT=!0,e.FLAT_REGION=100,e.STACK_REGION=101,e.SLOT_REGION=102,e.SLOT_TYPE_EXPERIMENT="experimentSlot",e.SLOT_TYPE_CONTENT_VARIATION="contentVariationSlot",e.SLOT_TYPE_CAMPAIGN="campaignSlot",e.SLOT_TYPE_ROLE_BASED="roleBasedSlot",e.EXPT_HOST_KEY="experiments_host",e.EXPT_TYPE_SCOPE="LAYOUT",e.EXPT_TYPE_IDENTIFIER="SLOT",e.ENDPOINT_LIST_PRICELIST_GROUP="listPriceListGroups",e.REGISTRATION_REQUEST_STATUS="status",e.REGISTRATION_REQUEST_DATE="createdTime",e.REGISTRATION_REQUEST_PARENT_SITE="parentOrgName",e.REGISTRATION_REQUEST_ORIGIN_SITE_ID="siteId",e.REGISTRATION_REQUEST_ID="id",e.REGISTRATION_REQUEST_REQUESTER_COMMENTS="requesterComments",e.REGISTRATION_REQUEST_TYPES_ACCEPT="approved",e.REGISTRATION_REQUEST_TYPES_REJECT="rejected",e.REGISTRATION_REQUEST_TYPES_MORE_INFO_NEEDED="moreInfoNeeded",e.REGISTRATION_REQUEST_TYPES_REVIEW="review",e.REGISTRATION_REQUEST_TYPES_NEW="new",e.REGISTRATION_REQUEST_EXPAND_REQUEST_ALL_TYPE="requestAll",e.REGISTRATION_REQUEST_EXPAND_ORGANIZATION_ALL_TYPE="organizationAll",e.REGISTRATION_REQUEST_EXPAND_PROFILE_ALL_TYPE="profileAll",e.REGISTRATION_REQUEST_EXPAND_ADDRESSES_TYPE="organizationAddresses",e.REGISTRATION_REQUEST_ACTION_COMPLETE="registrationRequestActionComplete",e.REGISTRATION_REQUEST_NAME_UPDATE="registrationRequestNameUpdate",e.REGISTRATION_REQUEST_APPROVER_COMMENTS="approverComments",e.REGISTRATION_REQUEST_REQUESTER_ORG_NAME="relatedOrganizationName",e.REGISTRATION_FLAG="selfRegistrationEnabled",e.GROSS_REVENUE="grossRevenue",e.ORDERS="orders",e.VISITS="visits",e.TRANSACTION_CURRENCY="transactionCurrency",e.SUMMARY_REPORT="summaryReport",e.DASHBOARD="dashboard",e.SITE_DEFAULT_ID="siteUS",e.SITE_DEFAULT_TEXT="Commerce Cloud Site",e.ADMIN_DASHBOARD="admin-dashboard",e.ADMIN_CONTENT_CONTAINER="#cc-admin-content",e.NAV_BAR_TEMPLATE_ID="cc-admin-navbar-template",e.USER_NAVBAR_TOP_TEMPLATE_ID="cc-navbar-top-template",e.COMMERCE_CLOUD_ID="allCloudCommerceRole",e.DASHBOARD_TAB="dashboardTab",e.DASHBOARD_MINI_TAB="dashBoardMiniTab",e.CATALOG_TAB="catalogTab",e.MARKETING_TAB="marketingTab",e.DESIGN_TAB="designTab",e.MEDIA_TAB="mediaTab",e.REPORTS_TAB="reportsTab",e.SEARCH_TAB="searchTab",e.SETTINGS_TAB="settingsTab",e.SERVICE_OPERATIONS_TAB="operationsTab",e.SETTINGS_LIMITED_TAB="settingsLimitedTab",e.WORKSETS_ACCESS="worksetsAccess",e.ACCOUNTS_TAB="accountsTab",e.ACCOUNTS_TAB_AND_B2B_ENABLED="accountsTabAndB2bEnabled",e.PREVIEW_BUTTON="previewButton",e.SHOW="show",e.HIDE="hide",e.URL="url",e.HOME_PAGE="home",e.MARKETING_PAGE="/marketing",e.REPORTING_PAGE="/reporting",e.SEARCH_PAGE="/search",e.MEDIA_PAGE="/media",e.DESIGN_PAGE="/design",e.CODE_PAGE="/code",e.PUBLISH_PAGE="/publish",e.SERVICE_OPERATIONS_PAGE="/operations",e.SETTINGS_SHIPPINGMETHODS_PAGE="/settings/shippingMethods",e.LIST_PRICE_PROPERTY="listPrice",e.SALE_PRICE_PROPERTY="salePrice",e.SHIPPING_SURCHARGE_PROPERTY="shippingSurcharge",e.VOLUME_PRICE_PROPERTY="volumePrice",e.PROPERTY_ATTR="attr",e.ACCOUNTS_PAGE="/accounts",e.USER_MANAGEMENT_PAGE="/userManagement",e.BUILDING_BLOCK_FILTER_CONTROL="admin/common/buildingBlocks/FilterControl",e.PREPRICING="prepricing",e.PREPRICINGFORAMENDMENT="prepricingforamendment",e.PRICING_SUCCESS_CB="pricingsuccess",e.PRICING_FAILURE_CB="pricingfailure",e.PRICING_BLOCKED_CB="pricingBlocked",e.ADD_ITEMS_SUCCESS_CB="addItemsSuccess",e.ADD_ITEM_SUCCESS_CB="addItemSuccess",e.SETTINGS_INTEGRATION_TYPE="integrations",e.SETTINGS_INTEGRATION_ENABLED="enabled",e.LIST_PRICE_PROPERTY="listPrice",e.B2B_SEARCH_URL="/settings/accountAdministration",e.ACCOUNTS="accounts",e.ACCOUNT_GENERAL_TAB="general",e.ACCOUNT_ADDRESS="account-address",e.PROFILE_ADDRESS="profile-address",e.ACCOUNT_COMPUTED_ADDRESS="computed-address",e.ACCOUNT_ADDRESS_NICK_NAME="nickName",e.LIST_PRICES_ID="listPrices",e.PROPERTY_SEARCH="productIdOrNameSearchParam",e.SEARCH_STRING_NAME="name",e.LIST_PRODUCTS_ID="listProducts",e.LIST_PRICES_NAME="List Prices",e.SALE_PRICES_ID="salePrices",e.SALE_PRICES_NAME="Sale Prices",e.SHIPPING_SURCHARGE_PRICES_ID="shippingSurchargePrices",e.SHIPPING_SURCHARGE_PRICES_NAME="Shipping Surcharge Prices",e.CUSTOMER_TYPES_STANDARD_ID="Standard",e.CUSTOMER_TYPES_STANDARD_NAME="Standard",e.CUSTOMER_TYPES_PREFERRED_ID="Preferred",e.CUSTOMER_TYPES_PREFERRED_NAME="Preferred",e.CUSTOMER_TYPES_ENTERPRISE_ID="Enterprise",e.CUSTOMER_TYPES_ENTERPRISE_NAME="Enterprise",e.CUSTOMER_TYPES_OEM_ID="OEM",e.CUSTOMER_TYPES_OEM_NAME="OEM",e.CUSTOMER_TYPES_DISTRIBUTOR_ID="Distributor",e.CUSTOMER_TYPES_DISTRIBUTOR_NAME="Distributor",e.CUSTOMER_TYPES_SUPPLIER_ID="Supplier",e.ACCOUNT_TYPES_NONE_ID="none",e.ACCOUNT_TYPES_COMPANY_ID="company",e.ACCOUNT_TYPES_DIVISION_ID="division",e.ACCOUNT_TYPES_DEPARTMENT_ID="department",e.ACCOUNT_TYPES_GROUP_ID="group",e.ACCOUNT_TYPES_GROUP_NAME="Group",e.ACCOUNT_MODEL_FORM_ID="#cc-AccountModelForm",e.ACCOUNT_PANE_ID="#cc-account-container",e.ACCOUNT_ADDRESS_FORM_ID="#cc-AccountAddressForm",e.ACCOUNT_ADDCONTACT_MODEL_ID="#cc-account-addContact-modal",e.ACCOUNT_ADDCONTACT_CANCEL_ID="#cc-addContactModel-cancel",e.ACCOUNT_FORM_ID="#cc-add-account",e.ID="id",e.REMOVE_CONTACTS="removeContacts",e.ADD_CONTACTS="addContacts",e.ACCOUNT_NAME_INPUT_FIELD_ID="#cc-AccountModelForm-CC-propertyEditor-shortText-accountName-field",e.LIST_CATALOGS="listCatalogs",e.LIST_COUNTRIES="listCountries",e.ORGANIZATION_ID="organizationId",e.ORGANIZATION_IDS="organizationIds",e.SITE_IDS="siteIds",e.GET_ACCOUNT="getOrganization",e.NO_ACCOUNT_ASSIGNED_ID="0",e.NO_ACCOUNT_ASSIGNED="Unspecified",e.CREATE_ACCOUNT_URL="/organizations",e.ACCOUNT_CONTRACT_TERMS="terms",e.ACCOUNT_LOGO="organizationLogo",e.ACCOUT_CREATE_URL="createOrganization",e.ACCOUT_UPDATE_URL="updateOrganization",e.ACCOUNT_ADDRESS_MODAL_ID="#cc-account-address-modal",e.CUSTOMER_ACCOUNT_ADDRESS_MODAL_ID="#cc-dialogWithEditB2BAddressHeader",e.ACCOUNT_MEDIA_SELECT_ALL_BUTTON_ID="#cc-media-select-btn",e.ACCOUNT_MEDIA_LIBRARY_CONTEXT="b2b_logo",e.ACCOUNT_MEMBERS_LIST_VIEW="list",e.ACCOUNT_NICKNAME_MAXIMUM_LENGTH=60,e.CONTRACT="contract",e.CONTRACT_TERMS="terms",e.APPROVALS="approvals",e.APPROVAL_REQUIRED="approvalRequired",e.ORDER_PRICE_LIMIT="orderPriceLimit",e.DELEGATE_APPROVAL_MANAGEMENT="delegateApprovalManagement",e.ACCOUNT_TREE_NODE_TITLE="title",e.ACCOUNT_TREE_NODE_ATTR="attr",e.ACCOUNT_TREE_NODE_CHILDREN="children",e.PARENT_ORGANIZATION="parentOrganization",e.ANCESTOR_ORGANIZATIONS="ancestorOrganizations",e.CLASS="class",e.CC_INACTIVE_ACCOUNT="cc-inactive-account",e.CC_ACTIVE_ACCOUNT="cc-active-account",e.ACCOUNT_NAME_EDITED="accountNameEdited",e.ACCOUNT_STATE_EDITED="accountStateEdited",e.ACCOUNT_PARENT_ORG_EDITED="accountParentOrganizationEdited",e.PENDING_NAVIGATION_COMPLETE="pendingNavigationComplete",e.ADD_NEW_ACCOUNT="addNewAccount",e.MOVE_ACCOUNT="moveAccount",e.SELECT_ACCOUNT="selectAccount",e.LOAD_MORE_NODE="loadMoreNode",e.SELECT_SITE="selectSite",e.ALL_ACCOUNTS="AllAccounts",e.PRICE_GROUP_CREATE_COMPLETE="priceGroupCreateCompleteEvent",e.PRICE_GROUP_UPDATE_COMPLETE="priceGroupUpdateCompleteEvent",e.PRICE_GROUP_DELETE_COMPLETE="priceGroupDeleteCompleteEvent",e.PRICE_GROUP_CREATE_UPDATE_FAILED="priceGroupCreateUpdateFailedEvent",e.PRICE_GROUP_UPDATE_CANCELLED="priceGroupUpdateCancelledEvent",e.PRICE_GROUP_ACTIVATION_COMPLETE="priceGroupActivationCompleteEvent",e.CATALOG_MEDIA_LIST_ID="#cc-media-list",e.CONTACTS="contacts",e.CONTACT_PROFILE_TYPE_B2C_VALUE="b2c_user",e.CONTACT_PROFILE_TYPE_B2C_NAME="B2C",e.CONTACT_PROFILE_TYPE_B2B_VALUE="b2b_user",e.CONTACT_PROFILE_TYPE_B2CB_NAME="B2B",e.MAX_LENGTH_FOR_VARCHAR=254,e.ACCOUNT_SORT_ASCENDING="asc",e.ACCOUNT_SORT_DESCENDING="desc",e.CONTACT_EMAIL_DISPLAY="Email",e.ITEMS="items",e.TOTAL="total",e.TOTAL_RESULTS="totalResults",e.PREVIOUS_SEARCH_HASH="previousSearchHash",e.CREATE_B2B_CONTACT_URL="#/contacts/general?op=create",e.CREATE_B2B_CONTACT_URL_WITH_ACCOUNT="#/contacts/general?op=create&accountId=",e.GET_B2B_CONTACT_URL="#/contacts/general?contactId=",e.DEFAULT_ACCOUNT_BACK_URL="/organizations",e.ACCOUNT_ID_URL="?accountId=",e.CONTRACT_TERMS_MODEL_ID="#cc-account-terms-modal",e.ACCOUNT_PANE_ID="#cc-account-container",e.URL_LISTVIEW_TRUE="&listView=true",e.URL_LISTVIEW_FALSE="&listView=false",e.DUMMY_CATALOG="SiteContextDummyCatalog",e.CLOUD_CATALOG="cloudCatalog",e.CLOUD_LAKE_CATALOG="cloudLakeCatalog",e.DEFAULT_SITE_ID="siteUS",e.ISDEFAULT_BILLING_ADDRESS="isDefaultBillingAddress",e.ISDEFAULT_SHIPPING_ADDRESS="isDefaultShippingAddress",e.ADDRESS_TEXT="address",e.ADDRESS_ADDRESS_TYPE="addressType",e.ENDPOINT_CONTACT_INFO_TYPE="contactInfo",e.ENDPOINT_CONTACT_INFO_TYPE_WITH_BASE="contactInfoWithBase",e.REQUIRED="required",e.HTTP_OK="200",e.HTTP_NOT_FOUND="404",e.BAD_REQUEST="400",e.GIFT_WITH_PURCHASE_DETAIL="giftWithPurchaseDetail",e.GIFT_WITH_PURCHASE_TYPE="giftWithPurchaseType",e.ALWAYS_RETURN_SKUS="alwaysReturnSkus",e.SELECTIVE_PUBLISH_OPERATION="selective_publish",e.PUBLISHING_CHANGE_CONTEXT="changeContext",e.PUBLISHING_CHANGE_CONTEXT_DESIGN_STUDIO="designStudioItem",e.CATALOG_FALLBACK="#/catalog",e.ALLCATALOGS_ID="allcatalogs",e.ALLCATALOGS_DISPLAYNAME="All Catalogs",e.ALL_ACTIVE_CATALOGS_ID="allactivecatalogs",e.ALL_ACTIVE_CATALOGS_DISPLAYNAME="All Active Catalogs",e.ALL_INACTIVE_CATALOGS_ID="allinactivecatalogs",e.ALL_INACTIVE_CATALOGS_DISPLAYNAME="All In-Active Catalogs",e.DATE_TIME="datetime",e.ENDPOINT_GET_URL_PATTERNS="listURLPatterns",e.ENDPOINT_UPDATE_URL_PATTERN="updateURLPattern",e.ENDPOINT_GENERATE_URL_SLUG_MAP="generateURLSlugMap",e.ENDPOINT_GET_URL_PATTERNS_LAST_MODIFIED="getURLPatternsLastModified",e.ADMIN_CATALOG_PAGE_HASH="#/catalog",e.ENDPOINT_CATALOG_LIST_CATALOGS="listCatalogs",e.ENDPOINT_CATALOG_GET_CATALOG_INFORMATION="getCatalog",e.ENDPOINT_CATALOG_CREATE_CATALOG_INFORMATION="createCatalog",e.ENDPOINT_CATALOG_UPDATE_CATALOG_INFORMATION="updateCatalog",e.ENDPOINT_CATALOG_DELETE_CATALOG_INFORMATION="deleteCatalog",e.CATALOG_GENERAL_TAB="general",e.CATALOG_COLLECTIONS_TAB="collections",e.CATALOG_ACCOUNTS_TAB="accounts",e.INCLUDE_CATEGORIES="includedCategories",e.ADMIN_CATALOG_PAGE_CONTEXT="/catalog",e.VIEW="view",e.DEFAULT_MODE="default",e.LIST_MODE="list",e.EDIT_MODE="edit",e.CREATE_MODE="create",e.PRODUCT_LIST_DIV_ID="#cc-productlist",e.ANONYMOUS_USER_ACCESS_CONTROL_ERROR="00002000",e.ADMIN="admin",e.ALL_ROLES="all",e.BUYER="buyer",e.APPROVER="approver",e.ACCOUNT_ADDRESS_MANAGER_FUNCTION="accountAddressManager",e.PROFILE_ADDRESS_MANAGER_FUNCTION="profileAddressManager",e.CUSTOM_FUNCTION="custom",e.CREATE_PROFILE_USER_EXISTS="22006",e.INVALID_PROFILE_FOR_CHECKOUT="1002020",e.EXCHANGE_MISSING_PRODUCT_ERROR_CODE="200185",e.EXCHANGE_NOTFORINDIVIDUALSALE_PRODUCT_ERROR_CODE="200183",e.EXCHANGE_CONFIGURABLE_PRODUCT_ERROR_CODE="200162",e.REPLACEMENT_ORDER_ID="replacementOrderId",e.SHOW_INACTIVE_SKU="showInactiveSkus",e.SHOW_INACTIVE_PRODUCT="showInactiveProducts",e.PRODUCT_TYPES="productTypes",e.QUOTED_STATES="QUOTED",e.CPQ_CONFIG_TYPE="CPQConfigurationSettings",e.ENDPOINT_GET_MERCHANGT_CONFIG="getConfigurationSettings",e.CHILD_ITEMS="childItems",e.COMMERCE_ID="commerceItemId",e.SHIPPING_GROUP_ID="shippingGroupId",e.CONFIGURATOR_ID="configuratorId",e.CPQ_QUOTE_CONFIG_TYPE="CPQQuotingSettings",e.ENDPOINT_REQUEST_QUOTE_ORDER="requestQuote",e.ENDPOINT_REJECT_QUOTE_ORDER="rejectQuote",e.QUOTE_NOTES="note",e.QUOTED="Quoted",e.PENDING_QUOTE="pending_quote",e.REJECTED_QUOTE="rejected_quote",e.PROFILE_TYPE_QUOTE_MERCHANT="Merchant",e.PROFILE_TYPE_QUOTE_CUSTOMER="Customer",e.PROFILE_TYPE_QUOTE_AGENT="Agent",e.COLOR_CUSTOMER="blue",e.COLOR_AGENT="red",e.COLOR_MERCHANT="black",e.ACCEPTED_QUOTE_ORDER="accpetedQuoteOrder",e.STATUS_QUOTED_CODE=9,e.PENDING_QUOTE_STATE="4004",e.REJECTED_QUOTE_STATE="4005",e.QUOTE_REQUEST_FAILED_STATE="4005",e.ADMIN_ASA_SETTING_COMPANY_LOGO="companyLogo",e.ADMIN_ASA_SETTING_BACKGROUND_IMAGE="backgroundImage",e.ADMIN_ASA_SETTING_DASHBOARD_PROMOTIONAL_TEXT="dashboardPromotionalText",e.ADMIN_ASA_SETTING_HERO_IMAGE="heroImage",e.ADMIN_ASA_SETTING_COLLECTION_FOR_FEATURED_PRODUCTS_ID="collectionForFeaturedProductsId",e.ADMIN_ASA_SETTING_EXTERNAL_CUSTOM_PROPERTIES="isExternalCustomPropertiesDisplayEnabled",e.ADMIN_ASA_SETTING_INTERNAL_CUSTOM_PROPERTIES="isInternalCustomPropertiesDisplayEnabled",e.PROFILE_DATA="profileData",e.ENDPOINT_LIST_CONTACTS_BY_ORGANIZATION="listMembers",e.ENDPOINT_GET_ORGANIZATION="getOrganization",e.ENDPOINT_UPDATE_ORGANIZATION="updateOrganization",e.ENDPOINT_CREATE_CONTACTS_BY_ORGANIZATION="createMember",e.ENDPOINT_UPDATE_CONTACTS_BY_ORGANIZATION="updateMember",e.ENDPOINT_GET_CONTACT_BY_ORGANIZATION="getMember",e.BUYER_TEXT="Buyer,",e.BUYER_SMALL_TEXT="Buyer",e.BUYER_LARGE_TEXT="buyer",e.APPROVER_TEXT="Approver,",e.ADMIN_TEXT="Admin,",e.ADMIN_SMALL_TEXT="Admin",e.ADMIN_LARGE_TEXT="admin",e.INACTIVE_TEXT="inactive",e.ACTIVE_TEXT="active",e.QUANTITY_TEXT="quantity",e.BUNDLE_LINKS_TEXT="bundleLinks",e.FIRST_NAME_TEXT="firstName",e.LAST_NAME_TEXT="lastName",e.EMAIL_ADDRESS_TEXT="email",e.ROLES_TEXT="roles",e.ROLES_TEXT_PROPERTY="function",e.ROLES_TYPE_PROPERTY="type",e.ORGANIZATIONAL_ROLE="organizationalRole",e.YES_TEXT="yes",e.ROLES_RELATIVE_TO_PROPERTY="relativeTo",e.ROLE_SELECTED_TEXT="isRoleSelected",e.PROFILE_TYPE_TEXT="profileType",e.RECEIVE_MAIL_TEXT="receiveEmail",e.ORG_SECONDARY_ADDRESSES="secondaryAddresses",e.ORG_ADDRESS_TYPE="addressType",e.ORG_CUSTOM_ADDRESS_TYPE="computedAddressType",e.ORG_IS_DEFAULT_BILLING_ADDRESS="isDefaultBillingAddress",e.ORG_IS_DEFAULT_SHIPPING_ADDRESS="isDefaultShippingAddress",e.ORG_POSTAL_CODE="postalCode",e.ORG_COMPANY_NAME="companyName",e.ORG_PHONE_NUMBER="phoneNumber",e.ORG_NICK_NAME="nickName",e.ORG_COUNTRY="country",e.ORG_COUNTY="county",e.ORG_STATE="state",e.STATE_ADDRESS="stateAddress",e.ORG_CITY="city",e.ORG_ADDRESS_1="address1",e.ORG_ADDRESS_2="address2",e.ORG_ADDRESS_3="address3",e.ORG_COUNTY="county",e.ORG_ADDRESS="address",e.ORG_NAME="companyName",e.ORG_ADDRESS_DEFAULT_NOT_AVAILABLE="Not available",e.END_POINT_INHERITED_ADDRESSES="inheritedOnly",e.END_POINT_LIST_ADDRESS_TYPES="listAddressTypes",e.END_POINT_DELETE_ADDRESSES="deleteAddress",e.END_POINT_LIST_ADDRESSES="listAddresses",e.END_POINT_GET_ADDRESSES="getAddresses",e.END_POINT_GET_ADDRESS="getAddress",e.END_POINT_GET_ALL_ADDRESSES="addresses",e.END_POINT_ADD_ADDRESSES="addAddress",e.END_POINT_ADD_ADDRESS="addAddress",e.END_POINT_UPDATE_ADDRESSES="updateAddress",e.END_POINT_ADD_ORGANIZATION_ADDRESS="addOrganizationAddress",e.END_POINT_UPDATE_ORGANIZATION_ADDRESS="updateOrganizationAddress",e.END_POINT_REMOVE_ORGANIZATION_ADDRESS="deleteOrganizationAddress",e.END_POINT_GET_ORGANIZATION_ADDRESS="getOrganizationAddress",e.AGENT_CUSTOMERS_ADDRESSBOOK_CONTEXT="addressbook",e.AGENT_CUSTOMERS_CONTACTS_CONTEXT="accountContacts",e.AGENT_CUSTOMERS_APPROVALS_CONTEXT="orderApproval",e.APPROVER="approver",e.ADMIN_TITLE="Administrator",e.BUYER_TITLE="Buyer",e.ALL="All",e.APPROVER_TITLE="Approver",e.CONTACTS_FETCH_SIZE=10,e.ADD_ON_OPTIONS="addOnOptions",e.ADD_ON_PRODUCTS="addOnProducts",e.GENERATE_AUTHORIZATION_CODE="authorizationCode",e.ENDPOINT_IMAGES="/ccstore/v1/images/",e.ABANDONED_CART="abandoned-cart",e.CASE_INSENSITIVE_URLS="case-insensitive-urls",e.ENDPOINT_GET_SCHEDULED_ORDER="getScheduledOrder",e.ENDPOINT_CREATE_SCHEDULED_ORDER="createScheduledOrder",e.ENDPOINT_UPDATE_SCHEDULED_ORDER="updateScheduledOrder",e.ENDPOINT_DELETE_SCHEDULED_ORDER="deleteScheduledOrder",e.ENDPOINT_LIST_SCHEDULED_ORDERS_BY_ORDER="listScheduledOrdersByOrder",e.ENDPOINT_LIST_SCHEDULED_ORDERS_BY_PROFILE="listScheduledOrdersByProfile",e.SCHEDULE_MODE_QUARTERLY="quarterly",e.SCHEDULE_MODE_BI_MONTHLY="biMonthly",e.SCHEDULE_MODE_ONCE_MONTHLY="onceMonthly",e.SCHEDULE_MODE_TWICE_DAILY="twiceDaily",e.SCHEDULE_MODE_ONCE_DAILY="onceDaily",e.SCHEDULE_MODE_DAILY="daily",e.SCHEDULE_MODE_WEEKLY="weekly",e.SCHEDULE_MODE_MONTHLY="monthly",e.SCHEDULE_MODE_CUSTOM="custom",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.CUSTOM="Custom",e.PERIODIC="periodic",e.SCHEDULED_ORDER_STATE_ACTIVE="active",e.SCHEDULED_ORDER_STATE_INACTIVE="inactive",e.SCHEDULED_ORDER_STATE_PENDING_APPROVAL_TEMPLATE="PENDING_APPROVAL_TEMPLATE",e.SCHEDULED_ORDER_STATE_APPROVED="APPROVED_TEMPLATE",e.SCHEDULED_ORDER_STATE_REJECTED="FAILED_APPROVAL_TEMPLATE",e.SCHEDULED_ORDER_STATE_ERROR="error",e.SCHEDULE_EXPIRED="Expired",e.SCHEDULED_ORDER_SCHEDULE_TEXT="schedule",e.SCHEDULED_ORDER_STATE="state",e.SCHEDULE_TYPE_TEXT="scheduleType",e.SCHEDULED_ACTIVE="Active",e.SCHEDULED_SUSPENDED="Suspended",e.SCHEDULED_PENDING_APPROVAL="Pending Approval",e.SCHEDULED_APPROVED="Approved",e.SCHEDULED_REJECTED="Rejected",e.PENDING_SCHEDULED_ORDER_APPROVAL="PENDING_APPROVAL_TEMPLATE",e.ORDER_STATE_PENDING_PAYMENT="PENDING_PAYMENT",e.IS_PENDING_PAYMENT="isPendingPayment",e.AGENT_ENDPOINT_LIST_SCHEDULED_ORDER="listScheduledOrdersByProfile",e.AGENT_ENDPOINT_DELETE_SCHEDULED_ORDER="deleteScheduledOrder",e.AGENT_ENDPOINT_GET_SCHEDULED_ORDER="getScheduledOrder",e.AGENT_ENDPOINT_UPDATE_SCHEDULED_ORDER="updateScheduledOrder",e.AGENT_ENDPOINT_CREATE_SCHEDULED_ORDER="createScheduledOrder",e.ENDPOINT_LIST_PURCHASE_LISTS="listPurchaseLists",e.ENDPOINT_GET_PURCHASE_LIST="getPurchaseList",e.ENDPOINT_CREATE_PURCHASE_LIST="createPurchaseList",e.ENDPOINT_UPDATE_PURCHASE_LIST="updatePurchaseList",e.ENDPOINT_DELETE_PURCHASE_LIST="deletePurchaseList",e.ENDPOINT_PURCHASE_LIST_TYPE="gift-list",e.ENDPOINT_PURCHASE_LIST_LINE_ITEM_TYPE="gift-item",e.ENDPOINT_GET_PURCHASE_LIST_SETTINGS="listShareSettings",e.ENDPOINT_CREATE_PURCHASE_LIST_SETTINGS="createShareSetting",e.ENDPOINT_CREATE_EMAIL_CONFIGS="createEmailConfigs",e.ENDPOINT_DELETE_EMAIL_CONFIGS="deleteEmailConfigs",e.ENDPOINT_UPDATE_EMAIL_CONFIGS="updateEmailConfigs",e.ENDPOINT_UPDATE_SHARE_SETTINGS="updateShareSetting",e.CHECK_EDIT_ACCESS="checkEditAccess",e.CUSTOMERS_HISTORY_CONTEXT="/customers/history",e.CUSTOMERS_PROFILE_CONTEXT="/customers/profile",e.CUSTOMERS_SCHEDULED_ORDERS_CONTEXT="/customers/scheduledOrders",e.CUSTOMERS_PURCHASE_LISTS_CONTEXT="/customers/purchaseLists",e.CUSTOMER_ADDRESSBOOK_CONTEXT="/customers/addressbook",e.CONTACTS_CONTEXT="/customers/accountContacts",e.APPROVALS_CONTEXT="/customers/orderApproval",e.ACCOUNT_DETAILS_CONTEXT="/customers/accountDetails",e.APPROVALS_FETCH_SIZE=10,e.ENDPOINT_LIST_ORDERS_PENDING_APPROVALS="listOrdersByOrganization",e.ENDPOINT_GET_ORGANIZATION="getOrganization",e.ENDPOINT_UPDATE_ORGANIZATION="updateOrganization",e.PENDING_APPROVAL="PENDING_APPROVAL",e.ENDPOINT_REJECT_ORDER="rejectOrder",e.ENDPOINT_APPROVE_ORDER="approveOrder",e.ENDPOINT_REPRICE_ORDER="repriceOrder",e.APPROVED="APPROVED",e.REJECTED="REJECTED",e.CHECK_REQUIRES_APPROVAL="checkRequiresApproval",e.PENDING_PAYMENT_ORDER_STATE="11",e.MAX_LENGTH_PURCHASE_LIMIT=8,e.APPROVED_ORDER="approvedOrder",e.ORDER_PENDING_APPROVAL="pendingApproval",e.ADD_ORDER_PAYMENTS="addPayments",e.ENDPOINT_CALCULATE_REMAINING_BALANCE="calculateRemainingBalance",e.PAYMENT_GROUP_PAYMENT_DEFERRED="PAYMENT_DEFERRED",e.PAYMENT_GROUP_STATE_PAYMENT_REQUEST_ACCEPTED="PAYMENT_REQUEST_ACCEPTED",e.PAYMENT_GROUP_AFTER_PAYPAL="paymentGroupIdAfterPaypal",e.ENDPOINT_GET_AGENT_CONFIG="getAgentConfiguration",e.COPY_ORDER_OP="copyOrder",e.ORDER_PENDING_PAYMENT="pendingPaymentOrder",e.AGENT_CONFIGURATIONS="agentConfiguration",e.CLOUD_CONFIGURATIONS="cloudConfiguration",e.SCHEDULED_ORDER_ID="scheduleOrderId",e.IS_SCHEDULED_ORDER="isScheduleOrder",e.IIN_PROMOTIONS_ENABLED="iinPromotionsEnabled",e.APPROVER_REJECT_ORDER_STATE="5002",e.PENDING_APPROVAL_ORDER_STATE="5000",e.ORDER_BEING_AMENED_STATE=10,e.REMOVED="REMOVED",e.PROFILE="profile",e.PENDING_AUTHORIZATION="PENDING_AUTHORIZATION",e.PARTIAL_PAYMENT_ENABLED="1",e.PARTIAL_PAYMENT_DISABLED="0",e.PAYMENT_GROUPS="paymentGroups",e.ENDPOINT_GET_CURRENT_SITES="getSites",e.SITES="sites",e.INCOMPLETE_STATE=0,e.UNSAVED_CHANGES_NAMESPACE="unsavedchanges",e.CLICK_UNSAVED_CHANGES_EVT="click."+e.UNSAVED_CHANGES_NAMESPACE,e.AGENT_PARAM_APPROVER_ID="approverId",e.CREATE_ASSET_REQUEST="app.event.createAssetRequest",e.EDIT_ASSET_REQUEST="app.event.editAssetRequest",e.VIEW_UNASSIGNED_CONTACTS_REQUEST="app.event.viewUnassignedContactsRequest",e.ORGANIZATION="organization",e.GENERAL_ONLY="general",e.ADDRESSES_ONLY="addresses",e.CONTRACTS_ONLY="contracts",e.APPROVALS_ONLY="approvals",e.SHIPPING_PAYMENTS_ONLY="shippingPayments",e.PUNCHOUT_ONLY="punchout",e.ORG_NAME="name",e.ORG_ID="id",e.ORG_ACITVE="active",e.ORG_PARENT_ORGANIZATION="parentOrganization",e.ORG_DESCRIPTION="description",e.ORG_CUSTOMER_TYPE="customerType",e.ORG_DUNS_NUMBER="dunsNumber",e.ORG_TYPE="type",e.ORG_UNIQUE_ID="uniqueId",e.ORG_TAX_REFERENCE_NUMBER="taxReferenceNumber",e.ORG_VAT_REFERENCE_NUMBER="vatReferenceNumber",e.ORG_ALLOW_PUNCHOUT_SHOPPING="allowPunchoutShopping",e.ORG_ORGANIZATION_LOGO="organizationLogo",e.ORG_ORGANIZATION_LOGO_URL="organizationLogoURL",e.ORG_DERIVED_DESCRIPTION="derivedDescription",e.ORG_DERIVED_CUSTOMER_TYPE="derivedCustomerType",e.ORG_DERIVED_DUNS_NUMBER="derivedDunsNumber",e.ORG_DERIVED_TYPE="derivedType",e.ORG_DERIVED_UNIQUE_ID="derivedUniqueId",e.ORG_DERIVED_TAX_REFERENCE_NUMBER="derivedTaxReferenceNumber",e.ORG_DERIVED_VAT_REFERENCE_NUMBER="derivedVatReferenceNumber",e.ORG_DERIVED_ALLOW_PUNCHOUT_SHOPPING="derivedAllowPunchoutShopping",e.ORG_DERIVED_ORGANIZATION_LOGO="derivedOrganizationLogo",e.ORG_DERIVED_ORGANIZATION_LOGO_URL="derivedOrganizationLogoURL",e.ORG_RELATIVE_ROLES="relativeRoles",e.ORG_EXPAND_ADDRESSES_QUERY_PARAM="addressesOnly",e.ORG_SHIPPING_METHODS="shippingMethods",e.ORG_SHIPPING_METHOD_IDS="shippingMethodIds",e.ORG_DERIVED_SHIPPING_METHODS="derivedShippingMethods",e.ORG_DERIVED_SHIPPING_METHOD_IDS="derivedShippingMethodIds",e.ORG_USE_ALL_SHIPPING_METHODS_FROM_SITE="useAllShippingMethodsFromSite",e.ORG_DERIVED_USE_ALL_SHIPPING_METHODS_FROM_SITE="derivedUseAllShippingMethodsFromSite",e.ORG_PAYMENT_METHODS="paymentMethods",e.ORG_DERIVED_PAYMENT_METHODS="derivedPaymentMethods",e.ORG_USE_ALL_PAYMENT_METHODS_FROM_SITE="useAllPaymentMethodsFromSite",e.ORG_DERIVED_USE_ALL_PAYMENT_METHODS_FROM_SITE="derivedUseAllPaymentMethodsFromSite",e.ORG_AUTHORIZATION_CODE="authorizationCode",e.ORG_DERIVED_AUTHORIZATION_CODE="derivedAuthorizationCode",e.ORG_ALLOW_PUNCHOUT_SHOPPING="allowPunchoutShopping",e.ORG_DERIVED_ALLOW_PUNCHOUT_SHOPPING="derivedAllowPunchoutShopping",e.PUNCHOUT_NO_AUTH_CODE="NO_AUTH_CODE",e.CONTRACT="contract",e.CONTRACT_DISPLAY_NAME="displayName",e.CONTRACT_CATALOG="catalog",e.CONTRACT_PRICE_LIST_GROUP="priceListGroup",e.CONTRACT_DESCRIPTION="description",e.CONTRACT_CONTRACT_TERMS="contract_terms",e.CONTRACT_TERMS="terms",e.CONTRACT_END_DATE="endDate",e.CONTRACT_START_DATE="startDate",e.CONTRACT_EXTERNAL_REFERENCE="externalContractReference",e.DERIVED_CONTRACT="derivedContract",e.CONTRACT_SITE="site",e.CONTRACT_USE_EXTERNAL_APPROVAL="useExternalApprovalWebhook",e.NULL_CONTRACT_ID="nullContract",e.SORT_BY_SITE_ASC="site:ascending",e.SORT_BY_SITE_DESC="site:descending",e.SORT_BY_CONTRACT_ASC="contract:ascending",e.SORT_BY_CONTRACT_DESC="contract:descending",e.SORT_BY_CATALOG_ASC="catalog:ascending",e.SORT_BY_CATALOG_DESC="catalog:descending",e.SORT_BY_PRICE_GROUP_ASC="priceListGroup:ascending",e.SORT_BY_PRICE_GROUP_DESC="priceListGroup:descending",e.PARENT_ORG_EDITED="parentOrganizationEdited",e.ACCOUNT_GENERAL_LOCATION_ID="cc-account-parent-account-selector",e.ACCOUNT_GENERAL_DESCRIPTION_ID="cc-account-description-input",e.ACCOUNT_GENERAL_CLASSIFICATION_ID="cc-account-classification-input",e.ACCOUNT_GENERAL_DUNS_NUMBER_ID="duns-number-input",e.ACCOUNT_GENERAL_TYPE_ID="cc-account-type-input",e.ACCOUNT_GENERAL_UIN_ID="cc-account-uin-input",e.ACCOUNT_GENERAL_TAX_REFERENCE_ID="cc-account-tax-reference-input",e.ACCOUNT_GENERAL_VAT_REFERENCE_ID="cc-account-vat-reference-input",e.ENDPOINT_B2B_PROFILE_APPEND_SECONDARY_ORGANIZATIONS="appendSecondaryOrganizations",e.ENDPOINT_B2B_PROFILE_REMOVE_SECONDARY_ORGANIZATIONS="removeSecondaryOrganizations",e.ENDPOINT_B2B_PROFILE_REPLACE_USER_ROLES="replaceUserRoles",e.ENDPOINT_B2B_PROFILE_UPDATE_PARENT_ORGANIZATION="updateParentOrganization",e.ENDPOINT_B2B_PROFILE_APPEND_USER_ROLES="appendUserRoles",e.ENDPOINT_B2B_PROFILE_UPDATE_USER_ROLES="updateUserRoles",e.SECONDARY_ORGANIZATIONS="secondaryOrganizations",e.ITEM_TYPE_CART_ITEM="cartItem",e.ITEM_TYPE_RETURN_ITEM="returnItem",e.DYNAMIC_PROPERTIES="dynamicProperties",e.USE_ADVANCED_PARSER="useAdvancedQParser",e.Q_IGNORE_CASE="qIgnoreCase",e.ENDPOINT_GET_SITE_SPECIFIC_PROFILE_PROPS="listSiteProperties",e.ENDPOINT_UPDATE_SITE_SPECIFIC_PROFILE_PROPS="updateSiteProperties",e.PAYMENTS="payments",e.SPLIT_PAYMENT_AMOUNT="splitPaymentAmount",e.TOKENIZED_CREDIT_CARD="tokenizedCreditCard",e.INQUIRE_GIFT_CARD_BALANCE="inquireBalance",e.CREDIT_CARD_TEXT="Credit Card",e.GIFT_CARD_TEXT="Gift Card",e.SELECTED_SITE="selected_site",e.SELECTED_ORGANIZATION="selected_organization",e.B2B_SITE_TYPE="b2bCommerce",e.ENDPOINT_GET_SITE_ORGANIZATION_PROPERTIES="siteOrganizationProperties",e.ENDPOINT_UPDATE_SITE_ORGANIZATION_PROPERTIES="updateSiteOrganizationProperties",e.REMOVE="remove",e.NOT_NULL_CONTRACTS="notNullContracts",e.CONTEXT_CUSTOMER_SUMMARY="customerSummary",e.SITE_CONTEXT_UPDATED="siteContextUpdated",e.CONFIGURATOR_PAYLOAD_MAX_DEPTH=10,e.PRODUCT_TYPE="text/product-data",e.CATEGORY_NODE_TYPE="text/category-node-data",e.PROD_STATE="state",e.GET_PROFILE_ADDRESSES="listProfileAddresses",e.PROFILE_ADDRESS_MANAGER="profileAddressManager",e.ACCOUNT_ADDRESS_MANAGER="accountAddressManager",e.PROFILE_ADDRESS_MANAGER_TITLE="Profile Address Manager",e.ACCOUNT_ADDRESS_MANAGER_TITLE="Account Address Manager",e.END_POINT_LIST_PROFILE_ADDRESSES="listProfileAddresses",e.END_POINT_ADD_PROFILE_ADDRESS="addProfileAddress",e.END_POINT_UPDATE_PROFILE_ADDRESS="updateProfileAddress",e.END_POINT_DELETE_PROFILE_ADDRESS="deleteProfileAddress",e.PROFILE_ADDRESSES_TYPE="profileAddresses",e.ACCOUNT_ADDRESSES_TYPE="accountAddresses",e.SECONADARY_ADDRESS_TYPE="secondary",e.INHERITED_ADDRESS="inheritedAddress",e.INHERITED_ADDRESSES="inheritedAddresses",e.ACCOUNT_ADDRESS="account",e.END_POINT_GET_PROFILE_ADDRESS="getProfileAddress",e.END_POINT_VOID_PAYMENTS="voidPayments",e.ENDPOINT_GET_ACCOUNT_ASSET="getAccountAsset",e.ENDPOINT_GET_ACCOUNT_ASSETS="getAccountAssets",e.ENDPOINT_MODIFY_ACCOUNT_ASSET="modifyAccountAsset",e.ENDPOINT_RENEW_ACCOUNT_ASSET="renewAccountAsset",e.ENDPOINT_TERMINATE_ACCOUNT_ASSET="terminateAccountAsset",e.ENDPOINT_DATA_ADMIN="getDataAdmin",e.OPTION_DATA_KEY_ASSET_ID="assetId",e.OPTION_DATA_KEY_CONTENT_TYPES="contentTypes",e.CONTENT_IDS="contentIds",e.ENDPOINT_LIST_STRATEGIES="listRecommendationStrategies",e.ENDPOINT_GET_STRATEGY="getRecommendationStrategy",
  19. e.ENDPOINT_LIST_GLOBAL_RULES="listRecommendationGlobalRules",e.OPTION_DATA_KEY_STRATEGIES="strategies",e.SELECT2_ELEMENT_ID="#cc-widget-config-select2Id",e.CEC_CHANNEL_TOKEN="channelToken",e.CEC_CONTENT_TYPE="getContentType",e.STACK_TYPE_POPUP="popupStack",e.REGION_VIEW_MODEL="RegionViewModel",e.WIDGET_ID_PRODUCT_LISTING="productListing",e.ORDER_FULFILLED_STATE="5",e.ORDER_STATE_NO_PENDING_ACTION="NO_PENDING_ACTION",e.CARD_LABEL="Card",e.PHYSICAL_GIFT_CARD_LABEL="Physical Gift Card",e.PAY_U_LATAM_LABEL="PayU Latam Web Checkout",e.PAYPAL_CHECKOUT_LABEL="Paypal Checkout",e.INVOICE_LABEL="Invoice",e.LOYALTY_POINTS_LABEL="Loyalty Points",e.GENERIC_LABEL="Generic",e.CASH_LABEL="Cash",e.GET_ORGANIZATION_MEMBER_ENDPOINTS="getMember",e.BASIC="basic",e.listOrganizationRelativeRoles="listOrganizationRoles",e.ENDPOINT_ADD_ITEM_PURCHASE_LIST="updateItems",e.ENDPOINT_LIST_PURCHASE_LIST="listPurchaseLists",e.ENDPOINT_CREATE_PURCHASE_LIST="createPurchaseList",e.PURCHASE_LIST_TYPE="listType",e.PURCHASE_LIST_TYPE_OWNER="owner",e.PURCHASE_LIST_TYPE_SHARED="shared",e.PURCHASE_LIST_SHARE_TYPE="shareType",e.ALL_PURCHASE_LISTS="all",e.ENDPOINT_GET_ADDITIONAL_PROPERTIES="assistedSellingAdditionalProperties",e.DEFAULT_ITEMS_PER_PAGE=12,e.RESULTS_PER_PAGE_SERIES=[0,1,2,4,8],e.RESULTS_PER_PAGE_ALL="all",e.ENDPOINT_INITIATE_RETURN_REQUEST="initiateReturn",e.ENDPOINT_MERCHANT_RETURN_REASONS="getReturnReasons",e.ENDPOINT_SUBMIT_RETURN_REQUEST="createReturnRequest",e.ENDPOINT_LIST_RETURN_REQUESTS="listReturnRequests",e.ITEM_TYPE_PRODUCT="product",e.PAY_SHIPPING_IN_SECONDARY_CURRENCY="payShippingInSecondaryCurrency",e.PAY_TAX_IN_SECONDARY_CURRENCY="payTaxInSecondaryCurrency",e.TOTAL_AMOUNT_AUTHORIZED_MAP="totalAmountAuthorizedMap",e.AMOUNTS_REMAINING="amountsRemaining",e.ITEM_TYPE_SKU="sku",e.TOTAL_REFUND_MAP="totalRefundMap",e.SECONDARY_CURRENCY_CODE="secondaryCurrencyCode",e.UI_EDITOR_TYPE_SHORT_TEXT="shortText",e.PUNCHOUT_TEXT="punchout",e.ENDPOINT_REMOVE_PROFILE_INCOMPLETE_ORDER_BY_ID="removeProfileIncompleteOrderById",e.LOCAL_STORAGE_ADDITIONAL_FORM_DATA="cc-additional-form-data",e.OPERATION="operation",e.OPERATION_LINK="link",e.OPERATION_UNLINK="unlink",e.OPERATION_REORDER="reorder",e.INCLUDE_UNASSIGNED_CATEGORIES_SUBTREE="includeUnassignedCategoriesSubtree",e.COMBINE_WITH_SCIM="combineWithSCIM",e.ORIGIN_PUNCHOUT="punchout",e.ORIGIN_PURCHASE_ORDER="purchaseOrder",e.NO_OF_DAYS_FOR_PUNCHOUT_CART="numberOfDaysForPunchoutCart",e.LOCAL_STORAGE_CREATE_NEW_CART="createNewCart",e.SUSPENDED_STATE=5010,e.QUEUED_STATE=5009,e.QUEUED_ORDER_KEY="QUEUED",e.ENDPOINT_PRODUCT_NOTIFY="addProductNotification",e.AGENT_CHECKOUT="agentCheckout",e.ALL_SITES="allSites",e.LONG_DESCRIPTION="longDescription",e.MULTI_CATALOG_DELETE_CATALOG_ERROR_CODE="200119",e.MULTI_CATALOG_INVALID_ID_ERROR_CODE="200104",e.DELETE_PRODUCT_CHILDSKU_IS_BUNDLED="20149",e.DELETE_PRODUCT_ADD_ON_LINKS="26507",e.CATALOG_VERSION="catalogVersion",e.EXPORT_TYPE_CATALOG="catalog",e.AGENT_SELF_REGISTRATION_PAGE="agentSelfRegistrationPage",e.AGENT_CUSTOMER_SEARCH="agentCustomerSearch",e.AGENT_CUSTOMER_DETAILS="agentCustomerDetails",e.AGENT_ADDRESS_BOOK="agentAddressBook",e.AGENT_ORDER_HISTORY="agentOrderHistory",e.AGENT_SCHEDULED_ORDER="agentScheduledOrder",e.AGENT_ACCOUNT_CONTACTS="agentAccountContacts",e.AGENT_ACCOUNT_DETAILS="agentAccountDetails",e.AGENT_ORDERS_PENDING_APPROVAL="agentOrdersPendingApproval",e.AGENT_PURCHASE_LIST="agentPurchaseList",e.AGENT_REGISTRATION_REQUEST_DETAILS="agentRegistrationRequestDetail",e.WIDGET_CONFIG_MULTI_KEY_VALUE_PAIRS_TYPE="multiKeyValuePairs",e.AGENT_PROFILE_PAGE_META_TYPE="agentProfilePage",e.AGENT_PAGE_META_TYPE="mpt",e.SKIP_LOADING_LOCAL_CART="skipLoadingLocalCart",e.ENDPOINT_CONTACT_REQUEST_TYPE_PARAM="profileRequest",e.ENDPOINT_ORG_REQUEST_TYPE_PARAM="organizationRequest",e.CONTACT_SEARCH_IDENTIFIER="type=contact",e.USE_ACTIVE_PRICE="useProductPriceForSku",e.ENDPOINT_CEC_CONTENT="listCECContent",e.PAGETYPE_PROFILE="profile",e.PAGETYPE_ORDER_HISTORY="orderHistory",e.PAGETYPE_ORDER_DETAILS="orderDetails",e.PAGETYPE_SCHEDULED_ORDERS="scheduledOrders",e.PAGETYPE_ASSET_DETAILS="assetDetails",e.PAGETYPE_ASSETS="assets",e.PAGETYPE_CONFIRMATION="confirmation",e.PREVIEW_URL="/occs-admin/preview",e.GET_FAILED_WEBHOOK_MESSAGE="getFailedMessage",e.UPDATE_FAILED_WEBHOOK_MESSAGE="updateFailedMessage",e.REQUEUE_FAILED_WEBHOOK_MESSAGES="requeueFailedMessages",e.DELETE_FAILED_WEBHOOK_MESSAGES="deleteFailedMessages",e.EXCLUDE_FILTERED_SKUS="items.parentProducts.filteredSKUs",e.ORIGINAL_ORDER_ID="originalOrderId",e.IS_EDIT_ORDER="isEditOrder",e.AGENT_ACCEPTED_QUOTE_ORDER="acceptedQuoteOrder",e.AGENT_PARAM_IS_SCHEDULED_ORDER="isScheduledOrder",e.QUERY_PARAM_DELIMITER_EQUALTO="=",e.QUERY_PARAM_DELIMITER_AMPERSAND="&",e.EMPTY_STRING="",e.SHOW_SCHEDULED_ORDER="showScheduled",e.VALIDATION_FAILED="130013",e.SUCCESS="SUCCESS",e.ASC="asc",e.DESC="desc",e.ALL="all",e.OUTOFSTOCK="outOfStock",e.SHOW_CATALOGS_INFO="showCatalogsInfo",e.SHOW_CATALOGS_COUNT="showCatalogsCount",e.SHOW_CATEGORY_PATHS="showCategoryPaths",e.ENDPOINT_GET_ALPHA_MODULE_ENABLED_STATUS="getAlphaModuleEnabledStatus",e.ENDPOINT_GET_ADMIN_PROFILE="getAdminProfile",e.ENDPOINT_LIST_ADMIN_SECURITY_CRITERIA="listAdminSecurityCriteria",e.ENDPOINT_GET_ADMIN_ROLE="getAdminRole",e.ACCESS_RIGHT_PRIVILEGE_TYPE="privilege",e.ENDPOINT_GET_CURRENT_ADMIN_USER_ASSET_ACCESS_DETAILS="getCurrentAdminProfileAssetAccessDetails",e.ASSET_TYPE="assetType",e.ACTIVE_WORKSET_ID="activeWorksetId",e.RECENT_WORKSETS_LIST="recentWorksetIds",e.DEFAULT_WORKSET_ID="default",e.INVALID_WORKSET="31302",e.INVALID_AUTHORS_WORKSET="230001",e.INVALID_WORKSET_HEADER="230000",e.INVALID_TARGET_WORKSET="31033",e.CAMPAIGN_SOURCE_PREFIX="campaign_",e.CAMPAIGNS="campaigns",e.ENDPOINT_RESEND_VERIFICATION_CODE="sendVerificationCode",e.VALIDATION_TOKEN="validation_token",e.VALIDATION_TOKEN_EXPIRATION_TIME="validation_token_expiration_time",e.ENDPOINT_GET_PREVIEW_USER_ACCESS_TOKEN="onBehalfOfPreviewUser",e});
  20. //# sourceMappingURL=store-libs.js.map