it.leeds.ac.uk
Open in
urlscan Pro
148.139.18.17
Public Scan
URL:
https://it.leeds.ac.uk/scripts/dist/sp_min.jsx
Submission: On February 20 via manual from IN — Scanned from DE
Submission: On February 20 via manual from IN — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! RESOURCE: /scripts/dist/sp_min.js */ angular.module("sn.common",["ngSanitize","ngAnimate","sn.common.avatar","sn.common.controls","sn.common.datetime","sn.common.glide","sn.common.i18n","sn.common.link","sn.common.mention","sn.common.messaging","sn.common.notification","sn.common.presence","sn.common.stream","sn.common.ui","sn.common.user_profile","sn.common.util","sn.common.dynamicTranslation"]),angular.module("ng.common",["sn.common"]); angular.module("sn.common.dist.templates",[]); angular.module("sn.common.datetime",["sn.common.i18n"]),angular.module("sn.timeAgo",["sn.common.datetime"]); angular.module("sn.common.datetime").constant("DATE_GRANULARITY",{DATETIME:1,DATE:2}),angular.module("sn.common.datetime").factory("timeAgoTimer",["$interval","$rootScope","DATE_GRANULARITY",function(e,o,n){"use strict";var i;return function(t){return t=void 0!==t?t:n.DATETIME,i||t!=n.DATETIME||(i=e(function(){o.$broadcast("sn.TimeAgo.tick")},3e4)),Date.now()}}]),angular.module("sn.common.datetime").factory("timeAgo",["timeAgoSettings","DATE_GRANULARITY",function(t,l){var g={settings:t.get(),allowFuture:function(t){return this.settings.allowFuture=t,this},toWords:function(o,t,e){t=t||l.DATETIME;var n=e?g.settings.strings_verbose:g.settings.strings,e=Math.abs(o)/1e3,i=e/60,r=i/60,a=r/24,u=a/365,s=n.ago;function m(t,e){t=angular.isFunction(t)?t(e,o):t;return t?(e=n.numbers&&n.numbers[e]||e,t.replace(/%d/i,e)):""}(e<45&&t==l.DATETIME||r<24&&t==l.DATE||!g.settings.allowFuture&&o<0)&&(s="%d"),g.settings.allowFuture&&o<0&&(s=n.fromNow);var c=t==l.DATE,t=t==l.DATETIME,e=o<=0&&t&&m(n.justNow,0)||o<=0&&c&&m(n.today,0)||e<45&&(0<=o||!g.settings.allowFuture)&&t&&m(n.justNow,Math.round(e))||e<45&&t&&m(n.seconds,Math.round(e))||e<90&&t&&m(n.minute,1)||i<45&&t&&m(n.minutes,Math.round(i))||i<90&&t&&m(n.hour,1)||r<24&&t&&m(n.hours,Math.round(r))||r<24&&c&&m(n.today,0)||r<42&&m(n.day,1)||a<30&&m(n.days,Math.ceil(a))||a<45&&m(n.month,1)||a<365&&m(n.months,Math.round(a/30))||u<1.5&&m(n.year,1)||m(n.years,Math.round(u));return m(s,e)},parse:function(t){return angular.isNumber(t)?new Date(parseInt(t,10)):(t=(t=(t=(t=(t=t.trim()).replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(t))}};return g}]),angular.module("sn.common.datetime").directive("snTimeAgo",["timeAgoSettings","$rootScope","timeAgo","timeAgoTimer","DATE_GRANULARITY","dateUtils",function(o,t,a,n,i,u){"use strict";return{restrict:"E",template:'<time title="{{ ::titleTime }}" tabindex="0"><span aria-hidden="true">{{timeAgo}}</span><span class="sr-only">{{timeAgoVerbose}}</span></time>',scope:{timestamp:"=",local:"="},link:function(r){function t(){r.timeAgo=e(r.timestamp,!0,!1),r.timeAgoVerbose=e(r.timestamp,!0,!0)}function e(t,e,o){if(t){var e=!e,n=a.parse(t);if(r.local)return r.titleTime=t,a.allowFuture(e).toWords(new Date-n,1,o);if("[object Date]"!==Object.prototype.toString.call(n)&&"[object Number]"!==Object.prototype.toString.call(n))return t;if("[object Date]"==Object.prototype.toString.call(n)&&isNaN(n.getTime()))return t;i=(t=n).getTime(),t=t.getTimezoneOffset(),i-=60*t*1e3,"undefined"!=typeof g_user_date_time_format&&-1==g_user_date_time_format.indexOf("z")?r.titleTime=u.formatDate(new Date(i),g_user_date_time_format):r.titleTime=new Date(i).toLocaleString();var t=new Date,i=(t=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()))-n;return a.allowFuture(e).toWords(i,1,o)}}o.ready.then(function(){n(i.DATETIME),r.$on("sn.TimeAgo.tick",t),t()})}}}]),angular.module("sn.common.datetime").directive("snTimeAgoStatic",["timeAgoSettings","$rootScope","timeAgo","timeAgoTimer","DATE_GRANULARITY",function(e,t,i,o,r){"use strict";return{restrict:"E",template:'<time title="{{ ::titleTime }}">{{timeAgo}}</time>',scope:{timestamp:"@",local:"@"},link:function(n){function t(){n.timeAgo=function(t,e){if(t){var e=!e,o=i.parse(t);if(n.local)return n.titleTime=t,i.allowFuture(e).toWords(new Date-o);if("[object Date]"!==Object.prototype.toString.call(o)&&"[object Number]"!==Object.prototype.toString.call(o))return t;if("[object Date]"==Object.prototype.toString.call(o)&&isNaN(o.getTime()))return t;!function(t){var e=t.getTime(),t=t.getTimezoneOffset();e-=60*t*1e3,n.titleTime=new Date(e).toLocaleString()}(o);t=new Date,t=(t=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()))-o;return i.allowFuture(e).toWords(t)}}(n.timestamp,!0)}e.ready.then(function(){o(r.DATETIME),n.$on("sn.TimeAgo.tick",t),t()})}}}]); angular.module("sn.common.datetime").directive("snDayAgo",["timeAgoSettings","$rootScope","timeAgo","timeAgoTimer","DATE_GRANULARITY",function(e,t,i,n,r){"use strict";return{restrict:"E",template:"<time>{{dayAgo}}</time>",scope:{date:"="},link:function(t){e.ready.then(function(){t.dayAgo=function(t,e){var o;if(t)return e=!("noFuture"===e||"no_future"===e),o=i.parse(t),"[object Date]"!==Object.prototype.toString.call(o)||isNaN(o.getTime())?t:(t=n(r.DATE)-o,i.allowFuture(e).toWords(t,r.DATE))}(t.date,"noFuture")})}}}]); angular.module("sn.common.datetime").provider("snTimeAgoSettings",function(){"use strict";var r="never",u="auto",i=u;this.setInitializationMethod=function(e){switch(e){default:e=u;case r:case u:case"manual":i=e}},this.$get=["i18n","$q",function(e,t){var o={allowFuture:!0,dateOnly:!1,strings:{}},s=!1,a=t.defer();function n(){return i===r?t.reject():(s||(s=!0,e.getMessages(["%d ago","%d from now","just now","%d minutes_verbose","about %d hours_verbose","%d days_verbose","%d months_verbose","%d years_verbose","less than a minute","about a minute","%d minutes","about an hour","about %d hours","today","a day","%d days","about a month","%d months","about a year","about a year","%d years"],function(e){o.strings={ago:e["%d ago"],fromNow:e["%d from now"],justNow:e["just now"],seconds:e["less than a minute"],minute:e["about a minute"],minutes:e["%d minutes"],hour:e["about an hour"],hours:e["about %d hours"],day:e["a day"],days:e["%d days"],month:e["about a month"],months:e["%d months"],year:e["about a year"],years:e["%d years"],today:e.today,wordSeparator:e.timeago_number_separator,numbers:[]},o.strings_verbose=Object.assign({},o.strings,{minutes:e["%d minutes_verbose"],hours:e["about %d hours_verbose"],days:e["%d days_verbose"],months:e["%d months_verbose"],years:e["%d years_verbose"]}),a.resolve()})),a.promise)}return i===u&&n(),{initialize:n,ready:a.promise,get:function(){return o},set:function(e){o=angular.extend(o,e)}}}]}).factory("timeAgoSettings",["snTimeAgoSettings",function(e){return e}]); angular.module("sn.common.glide",["sn.common.util"]); angular.module("sn.common.glide").factory("glideUrlBuilder",["$window",function(e){"use strict";function r(t){return{contextPath:"",params:{},encodedString:"",encode:!0,setFromCurrent:function(){this.setFromString(e.location.href)},setFromString:function(t){if((r=t.indexOf("?"))<0)this.contextPath=t;else{this.contextPath=t.slice(0,r);for(var n=t.slice(r+1).split("&"),e=n.length;e--;){var r=n[e].indexOf("=");this.params[n[e].substring(0,r)]=n[e].substring(++r)}}},setContextPath:function(t){this.contextPath=t},getParam:function(t){return this.params[t]},getParams:function(){return this.params},addParam:function(t,n){return this.params[t]=n,this},addToken:function(){return"undefined"!=typeof g_ck&&""!=g_ck&&this.addParam("sysparm_ck",g_ck),this},deleteParam:function(t){delete this.params[t]},addEncodedString:function(t){if(t)return"&"!=t.substr(0,1)&&(this.encodedString+="&"),this.encodedString+=t,this},getQueryString:function(t){var n=this._getParamsForURL(this.params);return 0==(n=(n+=this._getParamsForURL(t))+this.encodedString).length?"":n.substring(1)},_getParamsForURL:function(t){if(!t)return"";var n,e="";for(n in t){var r=t[n]||"";e+="&"+n+"="+(this.encode?encodeURIComponent(r+""):r)}return e},getURL:function(t){var n=this.contextPath,t=this.getQueryString(t);return t&&(n+="?"+t),n},setEncode:function(t){this.encode=t},toString:function(){return"GlideURL"}}}return{newGlideUrl:function(t){var n=new r;return n.setFromString(t||""),n},refresh:function(){e.location.replace(e.location.href)},getCancelableLink:function(t){var n;return e.NOW&&e.NOW.g_cancelPreviousTransaction&&(n=-1<t.indexOf("?")?"&":"?",t+=n+"sysparm_cancelable=true"),t}}}]); angular.module("sn.common.glide").factory("queryFilter",function(){"use strict";return{create:function(){var o={};return o.conditions=[],o.addCondition=function(n){return o.conditions.push(n),n},o.newCondition=function(n,t,e,i,o,r){return n={field:n,operator:t,value:e,displayValue:o,label:i,left:null,right:null,type:null,setValue:function(n,t){this.value=n,this.displayValue=t||n}},r&&(n.type=r),n},o.createEncodedQuery=function(){for(var n="",t=o.conditions,e=0;e<t.length;e++){var i=t[e];n.length&&(n+="^"),n+=function n(t){var e,i="";return t.hasOwnProperty("left")&&t.left&&(i+=n(t.left)),t.hasOwnProperty("right")&&t.right&&0<(e=n(t.right)).length&&(i+="^"+t.type+e),t.field&&(i=(i+=t.field)+t.operator,null!==t.value&&void 0!==t.value&&(i+=t.value)),i}(i)}return n+="^EQ"},o.getConditionsByField=function(n,t){var e,i=[];for(e in n)n.hasOwnProperty(e)&&n[e].field==t&&i.push(n[e]);return i},o.removeCondition=function(n){for(var t=o.conditions.length-1;0<=t;t--)o.conditions[t]===n&&o.conditions.splice(t,1)},o}}}); angular.module("sn.common.glide").factory("filterExpressionParser",function(){"use strict";var p=[{wildcardExp:"(.*)",operator:"STARTSWITH",toExpression:function(r){return r}},{wildcardExp:"^\\*(.*)",operator:"LIKE",toExpression:function(r){return"*"===r?r:"*"+r}},{wildcardExp:"^\\.(.*)",operator:"LIKE",toExpression:function(r){return"."+r}},{wildcardExp:"^%(.*)",operator:"ENDSWITH",toExpression:function(r){return"%"===r?r:"%"+r}},{wildcardExp:"(.*)%",operator:"LIKE",toExpression:function(r){return r+"%"}},{wildcardExp:"^=(.*)",operator:"=",toExpression:function(r){return"="===r?r:"="+r}},{wildcardExp:"^!\\*(.*)",operator:"NOT LIKE",toExpression:function(r){return"!*"===r||"!"===r?r:"!*"+r}},{wildcardExp:"^!=(.*)",operator:"!=",toExpression:function(r){return"!="===r||"!"===r?r:"!="+r}},{wildcardExp:"^\\*\\*$",operator:"ANYTHING",toExpression:function(){return"ANYTHING"}}];return{getOperatorExpressionForOperator:function(r){for(var o=0;o<p.length;o++){var t=p[o];if(t.operator===r)return t}throw{name:"OperatorNotSupported",message:"The operator "+r+" is not in the list of operatorExpressions."}},parse:function(r,o){for(var t={filterText:r,operator:o||"STARTSWITH"},e=1;e<p.length;e++){var n=p[e],i=r.match(n.wildcardExp);i&&""!==i[1]&&(t.operator=n.operator,t.filterText=i[1])}return t}}}); angular.module("sn.common.glide").factory("userPreferences",["$http","$q","unwrappedHTTPPromise","urlTools",function(a,t,o,c){"use strict";var p={};function u(e,r){p[e]=t.when(r)}return{getPreference:function(n){var e,s;return n in p?p[n]:(e=c.getURL("user_preference",{sysparm_pref_name:n,sysparm_action:"get"}),s=t.defer(),a.get(e).success(function(e){s.resolve(e.sysparm_pref_value)}).error(function(e,r){s.reject("Error getting preference "+n+": "+r)}),p[n]=s.promise,s.promise)},setPreference:function(e,r){var n=""+r,s={sysparm_pref_name:e,sysparm_action:"set"},s=((t=n.length<=1024)&&(s.sysparm_pref_value=n),c.getURL("user_preference",s)),t=t?a.get(s):a.post(s,{sysparm_pref_value:n});return u(e,r),o(t)},addToCache:u}}]); angular.module("sn.common.glide").constant("nowStreamTimerInterval",5e3),angular.module("sn.common.glide").factory("nowStream",["$q","amb","$timeout","urlTools","nowStreamTimerInterval","snResource","snCustomEvent","$log",function(t,l,r,s,e,u,i,h){"use strict";function a(){this.initialize.apply(this,arguments)}l.connect();return a.prototype={initialize:function(t,e,s,i,n,r,a){this.table=t,this.query=e,this.sysparmQuery=null,this.sys_id=s,this.processor=i,this.lastTimestamp=0,this.inflightRequest=null,this.requestImmediateUpdate=!1,this.interval=n,this.source=r,this.includeAttachments=a,this.stopped=!0,this.ambChannel=l.getChannel("/history/update/"+t+"/"+s).subscribe(this.tap.bind(this))},setQuery:function(t){this.sysparmQuery=t},poll:function(t,e){this.callback=t,this.preRequestCallback=e,this._stopPolling(),this._startPolling()},tap:function(){this.inflightRequest?this.requestImmediateUpdate=!0:(this._stopPolling(),this._startPolling())},insert:function(t,e){this.insertForEntry(t,e,this.table,this.sys_id)},insertForEntry:function(t,e,s,i){return this.insertEntries([{field:t,text:e}],s,i)},expandMentions:function(t,i){var n=t;return Object.getOwnPropertyNames(i).forEach(function(t){var e=t.replace(/[.*+\-?^()|[\]\\]/g,"\\$&"),e=new RegExp("@\\["+e+"\\]","gi"),s=i[t];n=n.replace(e,"@["+s+":"+t+"]")}),n},addCarriageReturns:function(t){return t.replace(/\r*\n/g,"\r\n")},insertEntries:function(t,e,s,i){i=i||{};for(var n,r=[],a=0;a<t.length;a++){var l=t[a].text;(l=l&&l.endsWith("\n")?l.substring(0,l.length-1):l)&&(t[a].text=this.addCarriageReturns(this.expandMentions(l,i)),r.push(t[a]))}if(0!==r.length)return this._isInserting=!0,e=this._getInsertURL(e,s),n=this,u().post(e,{entries:r}).then(this._successCallback.bind(this),function(){h.warn("Error submitting entries",r)}).then(function(){n._isInserting=!1})},cancel:function(){this._stopPolling(),this.ambChannel.unsubscribe()},_startPolling:function(){var e=this._getInterval(),s=this,t=this._successCallback.bind(this);function i(){s._isInserting?n():s.inflightRequest||(s.inflightRequest=s._executeRequest(),s.inflightRequest.then(t),s.inflightRequest.finally(function(){s.inflightRequest=null,s.requestImmediateUpdate?(s.requestImmediateUpdate=!1,n(0)):n()}))}function n(t){s.stopped||(t=0<=parseFloat(t)?t:e,r.cancel(s.timer),s.timer=r(i,t))}s.stopped=!1,i()},_stopPolling:function(){this.timer&&r.cancel(this.timer),this.stopped=!0},_executeRequest:function(){var t=this._getURL();return this.preRequestCallback&&this.preRequestCallback(),u().get(t)},_getURL:function(){var t={table:this.table,action:this._getAction(),sysparm_silent_request:!0,sysparm_auto_request:!0,sysparm_timestamp:this.lastTimestamp,include_attachments:this.includeAttachments},t=(this.sys_id?t.sys_id=this.sys_id:this.sysparmQuery&&(t.sysparm_query=this.sysparmQuery),s.getURL(this.processor,t));return this.sys_id||(t+="&p="+this.query),t="list_history"===this.processor?t.replace("angular","list_history"):t},_getInsertURL:function(t,e){return s.getURL(this.processor,{action:"insert",table:t,sys_id:e,sysparm_timestamp:this.timestamp||0,sysparm_source:this.source})},_successCallback:function(t){t=t.data;t.entries&&t.entries.length&&(t.entries=this._filterOld(t.entries),0<t.entries.length&&(this.lastEntry=angular.copy(t.entries[0]),this.lastTimestamp=t.sys_timestamp||t.entries[0].sys_timestamp)),this.callback.call(null,t)},_filterOld:function(t){for(var e=0;e<t.length;e++){if(t[e].sys_timestamp===this.lastTimestamp&&this.lastEntry){if(!angular.equals(this._makeComparable(t[e]),this._makeComparable(this.lastEntry)))continue;t[e].attachment&&i.fire("sn.stream.attachment_state_updated",t[e])}if(t[e].sys_timestamp<=this.lastTimestamp)return t.slice(0,e)}return t},_makeComparable:function(t){t=angular.copy(t);return delete t.short_description,delete t.display_value,t.attachment&&delete t.attachment.state,t},_getAction:function(){return this.sys_id?"get_new_entries":"get_set_entries"},_getInterval:function(){return this.interval||(window.NOW&&NOW.stream_poll_interval?1e3*NOW.stream_poll_interval:e)}},{create:function(t,e,s,i,n,r){return new a(t,e,s,i,n,r)}}}]); angular.module("sn.common.glide").factory("nowServer",["$http","$q","userPreferences","angularProcessorUrl","urlTools",function(e,r,t,n,l){return{getBaseURL:function(){return n},getPartial:function(e,r,t,n){var l,r=this.getPartialURL(r,t);r===e.url?n.call():(l=e.$on("$includeContentLoaded",function(){l.call(),n.call()}),e.url=r)},replaceView:function(e,r){var e=e.path(),t=e.split("/");return t[1]=r,e=t.join("/")},getPartialURL:l.getPartialURL,getURL:l.getURL,urlFor:l.urlFor,getPropertyURL:l.getPropertyURL,setPreference:t.setPreference,getPreference:t.getPreference}}]); !function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=12)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(1));var r=function(e){function n(n){window.console&&console.log(e+" "+n)}return{debug:function(e){"debug"===i.default.logLevel&&n("[DEBUG] "+e)},addInfoMessage:function(e){n("[INFO] "+e)},addErrorMessage:function(e){n("[ERROR] "+e)},addWarnMessage:function(e){n("[WARN] "+e)}}};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.WEBSOCKET_TYPE_NAME=n.TOKEN_MANAGEMENT_EXTENSION=void 0;n.WEBSOCKET_TYPE_NAME="websocket";n.TOKEN_MANAGEMENT_EXTENSION="tokenManagementExtension";var i={servletPath:"amb",logLevel:"info",loginWindow:"true",wsConnectTimeout:1e4,overlayStyle:"",pruneFailedTransports:"true",subscribeCommandsFlow:{enable:!1,maxInflight:1,maxWait:1e4,retries:3,retryDelay:{min:2e3,max:3e5,increaseFactor:2}},redeliveryDisconnectTimeoutInMins:10,requestHeaderToClearStickySessionCookie:!0};n.default=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(0));var r=function(e,n,t){var r,o,s=new i.default("amb.ChannelListener"),a=e;return{getCallback:function(){return o},getSubscriptionCallback:function(){return t},getID:function(){return r},setNewChannel:function(e){a.unsubscribe(this),a=e,this.subscribe(o)},subscribe:function(e){return o=e,r=a.subscribe(this),this},resubscribe:function(){return this.subscribe(o)},unsubscribe:function(){return a.unsubscribe(this),s.debug("Unsubscribed from channel: "+a.getName()),this},publish:function(e,n){a.publish(e,n)},getName:function(){return a.getName()}}};n.default=r},function(e,n,t){"use strict";function i(e){"@babel/helpers - typeof";return(i="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})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.isUndefined=n.isObject=n.isNull=n.isNil=n.isEmptyObject=void 0;var r=function(e){return void 0===e};n.isUndefined=r;var o=function(e){return null===e};n.isNull=o;n.isNil=function(e){return o(e)||r(e)};var s=function(e){return null!=e&&"object"===i(e)};n.isObject=s;n.isEmptyObject=function(e){return s(e)&&0===Object.keys(e).length}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.WS_CONNECTION_NODE_ID=n.NODEID_COOKIE_KEY=n.MSG_SHARD=n.MSG_NUM=n.META_HANDSHAKE=n.MESSAGE_REDELIVERY_OPTIONS=n.CHANNEL_READY_TO_DELIVER=n.CHANNEL_NOT_READY_TO_DELIVER=void 0;n.MSG_NUM="msg_num";n.MSG_SHARD="msg_shard";n.MESSAGE_REDELIVERY_OPTIONS="msg_redelivery_options";n.CHANNEL_READY_TO_DELIVER="Channel set to deliver messages now: ";n.CHANNEL_NOT_READY_TO_DELIVER="Channel set to not deliver messages until re-subscription & re-delivery of missed messages is over: ";n.META_HANDSHAKE="/meta/handshake";n.WS_CONNECTION_NODE_ID="glide.amb.wsConnectionNodeId";n.NODEID_COOKIE_KEY="glide_node_id_for_js"},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){var n=[],t=0;return{subscribe:function(e,i){var r=t++;return n.push({event:e,callback:i,id:r}),r},unsubscribe:function(e){for(var t=0;t<n.length;t++)e===n[t].id&&n.splice(t,1)},publish:function(e,n){for(var t=this._getSubscriptions(e),i=0;i<t.length;i++)t[i].callback.apply(null,n)},getEvents:function(){return e},_getSubscriptions:function(e){for(var t=[],i=0;i<n.length;i++)n[i].event===e&&t.push(n[i]);return t}}};n.default=i},function(e,n,t){"use strict";function i(e){"@babel/helpers - typeof";return(i="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})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=p(t(5)),o=p(t(0)),s=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=b(n);if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,t&&t.set(e,r);return r}(t(1)),a=p(t(7)),u=p(t(8)),c=p(t(21)),l=t(3),f=p(t(22)),d=p(t(23)),g=p(t(24)),h=t(4);function b(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(b=function(e){return e?t:n})(e)}function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new c.default,t=!1,i=!1,b=null,p=new r.default({CONNECTION_INITIALIZED:"connection.initialized",CONNECTION_OPENED:"connection.opened",CONNECTION_CLOSED:"connection.closed",CONNECTION_BROKEN:"connection.broken",SESSION_LOGGED_IN:"session.logged.in",SESSION_LOGGED_OUT:"session.logged.out",SESSION_INVALIDATED:"session.invalidated",SESSION_REESTABLISHED:"session.reestablished"}),v={SESSION_LOGGED_IN:"session.logged.in",SESSION_LOGGED_OUT:"session.logged.out",SESSION_INVALIDATED:"session.invalidated"},m="closed",_={},y={},T=new o.default("amb.ServerConnection");!function(){e.addListener("/meta/handshake",this,H),e.addListener("/meta/connect",this,ne),e.addListener("/meta/subscribe",this,J),e.addListener("/meta/unsubscribe",this,Q)}();var C=v.SESSION_INVALIDATED,w=null,S="true"===s.default.loginWindow,E=null,x={UNKNOWN_CLIENT:"402::Unknown client",UNKNOWN_SESSION:"402::session_unknown",NODE_MISMATCH:"websocket_http_node_mismatch"},O=!1,k={},N=!1,I=new a.default(e,k),M=!1,L="glide.amb.session.logout.overlay.style",D="glide.amb.redelivery.disconnect.timeout.in.mins",A="glide.amb.clear_node_affinity_cookie",R="glide.session.status",F="session.touch.http",U="amb.ServerConnection.reestablish.session",P="set.header.request.sent",B=e.getExtension(s.TOKEN_MANAGEMENT_EXTENSION),j=null,G=new g.default(e),W=null,q=!0;function H(e){Q(e),void 0!==z(e,h.WS_CONNECTION_NODE_ID)&&(b=z(e,h.WS_CONNECTION_NODE_ID),T.debug("Node Id from handshake callback initially set to "+b));var n=z(e,L);n&&(s.default.overlayStyle=n);var t=z(e,D);t&&(s.default.redeliveryDisconnectTimeoutInMins=t),z(e,A)&&(s.default.requestHeaderToClearStickySessionCookie=!0===z(e,A)),C=z(e,R),function(e){if(e.ext){var n=e.ext.subscribeCommandsFlow;if(n){var t=s.default.subscribeCommandsFlow;if(s.default.subscribeCommandsFlow.enable=function(e,n){var t=n;return(0,l.isNil)(e)||(t=!!e),t}(n.enable,t.enable),s.default.subscribeCommandsFlow.enable){s.default.subscribeCommandsFlow.retries=$(n.retries,t.retries),s.default.subscribeCommandsFlow.maxInflight=$(n.maxInflight,t.maxInflight),s.default.subscribeCommandsFlow.maxWait=$(n.maxWait,t.maxWait);var i=n.retryDelay;if(i){var r=s.default.subscribeCommandsFlow.retryDelay;s.default.subscribeCommandsFlow.retryDelay.min=$(i.min,r.min),s.default.subscribeCommandsFlow.retryDelay.max=$(i.max,r.max),s.default.subscribeCommandsFlow.retryDelay.increaseFactor=$(i.increaseFactor,r.increaseFactor)}}!function(){s.default.subscribeCommandsFlow.enable&&(T.addInfoMessage("_initializeSubscriptionCommandSender: SubscriptionCommandSender is enabled"),null!=B&&B.updateTokenCount(s.default.subscribeCommandsFlow.maxInflight),j&&j.stop(),j=new d.default(new f.default(1e4),B))}()}}}(e),setTimeout(function(){e.successful&&te()},0)}function z(e,n){if((0,l.isObject)(e.ext))return e.ext[n]}function V(n,t){if(n in _)return _[n];var i=new u.default(e,n,M,t);return _[n]=i,i}function K(e){y[e]=_[e],delete _[e]}function Q(n){if(n.ext){!1===n.ext["glide.amb.active"]&&k.disconnect();var t=z(n,"glide.amb.client.log.level");t&&(s.default.logLevel=t,e.setLogLevel(s.default.logLevel)),s.default.pruneFailedTransports="false"!==z(n,"glide.amb.pruneFailedTransports")}}function Y(){if(void 0!==document.cookie)for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var t=e[n].trim();if(t.startsWith("".concat(h.NODEID_COOKIE_KEY,"=")))return t.substring(h.NODEID_COOKIE_KEY.length+1)}return null}function X(){if(null!==b){var n=Y();null!==n&&b!==n&&setTimeout(function(){null!==(n=Y())&&b!==n&&(T.addInfoMessage("WS Connection is with "+b+" whereas httpsession is with "+n+". Disconnecting WS connection"),function(n){b=null,i=!0,e.disconnect(function(){T.addInfoMessage("Disconnected WS Connection. Connecting back"),E=n,t=!1,se(),N=!0,i=!1,k.connect()})}("websocket_http_node_mismatch"))},2e4)}}function J(e){Q(e)}function $(e,n){var t=Math.floor(parseInt(e));return(isNaN(t)||t<0)&&(t=n),t}function Z(){for(var e in T.debug("Resubscribing to all!"),_){var n=_[e];n&&n.resubscribeToCometD()}}function ee(){for(var e in T.debug("Unsubscribing from all!"),_){var n=_[e];n&&n.unsubscribeFromCometD()}}function ne(n){if(Q(n),i)setTimeout(function(){t=!1,se()},0);else{t&&X();var r=z(n,F);(function(){return s.WEBSOCKET_TYPE_NAME===e.getTransport().getType()})()&&!0===r&&k._touchHttpSession();var o=n.error;o&&(E=o),function(e){var n=z(e,R);n&&n!==C&&(O=!0===z(e,"glide.amb.login.window.override"),ae(n))}(n);var a=t;t=!0===n.successful,!a&&t?ie():a&&!t&&function(){T.addErrorMessage("Connection broken"),m="broken",N=!0,ce(p.getEvents().CONNECTION_BROKEN),W=Date.now(),function(){j&&(j.stop(),j=null)}()}()}}function te(){T.debug("Connection initialized"),M=!0,m="initialized",ce(p.getEvents().CONNECTION_INITIALIZED)}function ie(){T.debug("Connection opened"),G.processConnectionOpened(),N?function(){!function(e){return Object.values(x).includes(e)}(k.getLastError())?T.addWarnMessage("Error connecting to server. Unkown status "+k.getLastError()):(k.setLastError(null),k._sendSessionSetupRequest(function(e){var n=e.status,t=e.response;if(200===n){N=!1;var i=JSON.parse(t)["glide.session.status"];T.debug("/amb_session_setup.do response: "+t),i&&C!==i?(I.initialize(oe),ae(i)):I.initialize(re)}else T.addWarnMessage("/amb_session_setup.do status: "+n)}))}():I.initialize(re)}function re(){Z(),oe()}function oe(){m="opened",ce(p.getEvents().CONNECTION_OPENED)}function se(){T.debug("Connection closed"),m="closed",ce(p.getEvents().CONNECTION_CLOSED)}function ae(e){T.debug("session.status - "+e),function(e){return(C===v.SESSION_LOGGED_IN||C===v.SESSION_LOGGED_OUT)&&e===v.SESSION_INVALIDATED}(e)?function(){T.debug("INVALIDATED event fire!"),ee(),ce(p.getEvents().SESSION_INVALIDATED),function(){return s.default.requestHeaderToClearStickySessionCookie}()&&(void 0!==navigator.locks?navigator.locks.request("lock-set_clear_node_affinity_header",ue):(T.debug("navigator.locks.request not supported"),ue()))}():function(e){return C===v.SESSION_LOGGED_IN&&e===v.SESSION_LOGGED_OUT}(e)?function(){T.debug("LOGGED_OUT event fire!"),ee(),ce(p.getEvents().SESSION_LOGGED_OUT),S&&!O&&k.loginShow()}():function(e){return C===v.SESSION_INVALIDATED&&e===v.SESSION_LOGGED_OUT}(e)?function(){T.debug("REESTABLISHED event fire!"),Z(),ce(p.getEvents().SESSION_REESTABLISHED)}():function(e){return(C===v.SESSION_INVALIDATED||C===v.SESSION_LOGGED_OUT)&&e===v.SESSION_LOGGED_IN}(e)&&function(){T.debug("LOGGED_IN event fire!"),Z(),ce(p.getEvents().SESSION_LOGGED_IN),k.loginHide(),q=!0}(),C=e}function ue(){q?(T.debug("Sending set_clear_node_affinity_header"),function(){n.emit(P,P)}(),k._sendSetHeaderToClearNodeAffinityCookie(function(e){var n=e.status;200!==n?T.addErrorMessage("Error sending set_clear_node_affinity_header: "+n):q=!1})):T.debug("set_clear_node_affinity_header not sent")}function ce(e){try{p.publish(e)}catch(n){T.addErrorMessage("error publishing '"+e+"' - "+n)}}return k.connect=function(){t?T.debug(">>> connection exists, request satisfied"):(T.debug("Connecting to glide amb server -> "+s.default.servletURI),e.configure({url:k.getURL(s.default.servletPath),logLevel:s.default.logLevel,connectTimeout:s.default.wsConnectTimeout}),e.handshake(),n.on(U,function(){k._reestablishSession(!1)}),n.on(P,function(){q=!1}))},k.reload=function(){e.reload()},k.abort=function(){e.getTransport().abort()},k.disconnect=function(){T.debug("Disconnecting from glide amb server.."),i=!0,e.disconnect()},k.getURL=function(e){return window.location.protocol+"//"+window.location.host+"/"+e},k.getConnectionBrokenTS=function(){return W},k.unsubscribeAll=function(){ee()},k.resubscribeAll=function(){Z()},k.removeChannel=function(e){K(e)},k.getEvents=function(){return p.getEvents()},k.getConnectionState=function(){return m},k.getLastError=function(){return E},k.setLastError=function(e){E=e},k.getErrorMessages=function(){return x},k.isLoggedIn=function(){return C===v.SESSION_LOGGED_IN},k.isSessionActive=function(){return C!==v.SESSION_INVALIDATED},k.getChannelRedirect=function(){return I},k.getChannel=function(e,n){return V(e,n)},k.getChannels=function(){return _},k.getRemovedChannels=function(){return y},k.getState=function(){return m},k.getLoginWindowOverlayStyle=function(){return s.default.overlayStyle},k.loginShow=function(){T.debug("Show login window");var e='<iframe src="/amb_login.do" style="border: 0" height="400px" width="405px"></iframe>',n='<div id="amb_disconnect_modal" tabindex="-1" aria-hidden="true" class="modal" role="dialog" style="'.concat(s.default.overlayStyle,'">\n\t\t\t\t<div class="modal-dialog small-modal" style="width:450px">\n\t\t\t\t <div class="modal-content">\n\t\t\t\t\t <header class="modal-header">\n\t\t\t\t\t\t <h4 id="small_modal1_title" class="modal-title">Login</h4>\n\t\t\t\t\t </header>\n\t\t\t\t\t <div class="modal-body">\n\t\t\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t</div>\n\t\t\t</div>');try{if(window.NOW&&!0===window.NOW.amb_themed_login){var t=new GlideModal("amb_login_router");t.renderWithContent&&(t.template=n),t.render(),w=t}else{var i=new GlideModal("amb_disconnect_modal");i.renderWithContent?(i.template=n,i.renderWithContent(e)):(i.setBody(e),i.render()),w=i}}catch(e){T.debug(e)}},k.loginHide=function(){w&&(w.destroy(),w=null)},k.loginComplete=function(){k.reestablishSession()},k.reestablishSession=function(){k._reestablishSession(!0)},k.subscribeToEvent=function(e,n){return p.getEvents().CONNECTION_OPENED===e&&t&&n(),p.subscribe(e,n)},k.unsubscribeFromEvent=function(e){p.unsubscribe(e)},k.isLoginWindowEnabled=function(){return S},k.setLoginWindowEnabled=function(e){S=e},k.isLoginWindowOverride=function(){return O},k.getSubscriptionCommandSender=function(){return j},k._metaConnect=ne,k._metaHandshake=H,k._metaSubscribe=J,k._sendSessionSetupRequest=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=function(){T.debug("sending /amb_session_setup.do!");var n=new XMLHttpRequest;return n.open("POST","/amb_session_setup.do",!0),n.setRequestHeader("Content-type","application/json;charset=UTF-8"),n.setRequestHeader("X-UserToken",window.g_ck),n.setRequestHeader("X-CometD-SessionID",e.getClientId()),n}();t.onload=function(){return n(t)},t.send()},k._onChannelRedirectSubscriptionComplete=re,k._getChannel=V,k._removeChannel=K,k._connectionInitialized=te,k._connectionOpened=ie,k._reestablishSession=function(e){k._sendSessionSetupRequest(function(e){var n=e.response;n&&ae(JSON.parse(n)["glide.session.status"])}),e&&function(){n.emit(U,U)}()},k._touchHttpSession=function(){var e=new XMLHttpRequest;e.open("POST","/amb",!0),e.setRequestHeader("Content-type","application/json"),e.send()},k._sendSetHeaderToClearNodeAffinityCookie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=function(){var e=new XMLHttpRequest;return e.open("POST","/set_clear_node_affinity_header",!0),e}();n.onload=function(){return e(n)},n.send()},k};n.default=v},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t(0)),r=o(t(2));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,n){var t,o=e,s=new i.default("amb.ChannelRedirect");function a(e){s.debug("_onAdvice:"+e.data.clientId);var t=n.getChannels(),i=null!=t?t[e.data.fromChannel]:null;if(!i){var r=n.getRemovedChannels();i=null!=r?r[e.data.fromChannel]:null}var o=n.getChannel(e.data.toChannel);i&&o?(function(e,n){for(var t=e.getChannelListeners(),i=0;i<t.length;i++)t[i].setNewChannel(n)}(i,o),s.debug("published channel switch event, fromChannel:"+i.getName()+", toChannel:"+o.getName())):s.debug("Could not redirect from "+e.data.fromChannel+" to "+e.data.toChannel)}return{initialize:function(e){var i="/sn/meta/channel_redirect/"+o.getClientId(),u=n.getChannel(i);t&&u===t?t.subscribeToCometD():(t&&n.removeChannel(t.getName()),t=u,new r.default(t,n,e).subscribe(a)),s.debug("ChannelRedirect initialized: "+i)},_onAdvice:a}};n.default=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=c(t(0)),r=t(3),o=c(t(9)),s=c(t(20)),a=c(t(1)),u=t(4);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e,n,t){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return{}},l=null,f=null,d=[],g=[],h=new i.default("amb.Channel"),b=0,p=t,v=-1,m=null,_=!0,y=new s.default;function T(){return(0,o.default)().getServerConnection().getSubscriptionCommandSender()}return{subscribe:function(e){if(e.getCallback()){for(var t=0;t<d.length;t++)if(d[t]===e)return h.debug("Channel listener already in the list"),e.getID();d.push(e);var i=e.getSubscriptionCallback();if(i&&(f?i(f):g.push(i)),!l&&p)try{this.subscribeToCometD()}catch(e){return void h.addErrorMessage(e)}return++b}h.addErrorMessage("Cannot subscribe to channel: "+n+", callback not provided")},resubscribe:function(){l=null;for(var e=0;e<d.length;e++)d[e].resubscribe()},_handleResponse:function(e){_?this.processMessageCallback(e):this.processReSubscriptionMessages(e)},processReSubscriptionMessages:function(e){var t=this;y.shouldDeliver(e)?(h.debug(u.CHANNEL_READY_TO_DELIVER+n),_=!0,this.processMessageCallback(e)):y.shouldDeliverPendingMessages()&&y.getAllPendingMessages().forEach(function(e){return t.processMessageCallback(e)})},processMessageCallback:function(e){for(var n=0;n<d.length;n++)d[n].getCallback()(e);y.containsMetaInfo(e)&&(v=e.ext[u.MSG_NUM],m=e.ext[u.MSG_SHARD])},unsubscribe:function(t){if(t){for(var i=0;i<d.length;i++)if(d[i].getID()===t.getID()){d.splice(i,1);break}d.length<1&&l&&!function(){var n=e.getStatus();return"disconnecting"===n||"disconnected"===n}()&&this.unsubscribeFromCometD()}else h.addErrorMessage("Cannot unsubscribe from channel: "+n+", listener argument does not exist")},publish:function(t,i){e.publish(n,t,i)},subscribeToCometD:function(){h.debug("subscribeToCometD channelName : "+n+", subscription : "+l),T()?T().subscribeToChannel(this):this._subscribeToCometD(this.subscriptionCallback)},_subscribeToCometD:function(t){h.debug("_subscribeToCometD channelName : "+n);var i=this._populateSubscriptionOptions();if((0,r.isNil)(i)||(0,r.isEmptyObject)(i))l=e.subscribe(n,this._handleResponse.bind(this),t);else{var o={subscribeOptions:i};l=e.subscribe(n,this._handleResponse.bind(this),o,t)}h.debug("Successfully subscribed to channel: "+n+", subscribeOptions: "+JSON.stringify(i))},_populateSubscriptionOptions:function(){var e=c(),t=Date.now()-this.fetchDisconnectionTS();return this._shouldRedeliveryBeRequested(t)&&((0,r.isNil)(e)&&(e={}),e[u.MESSAGE_REDELIVERY_OPTIONS]={},e[u.MESSAGE_REDELIVERY_OPTIONS].last_msg_num=v,e[u.MESSAGE_REDELIVERY_OPTIONS].last_msg_shard=m,e[u.MESSAGE_REDELIVERY_OPTIONS].request_duration=t,h.debug(u.CHANNEL_NOT_READY_TO_DELIVER+n),_=!1,y.resetState()),e},_shouldRedeliveryBeRequested:function(e){return e<=6e4*a.default.redeliveryDisconnectTimeoutInMins&&-1!=v&&!(0,r.isNil)(m)},subscriptionCallback:function(e){h.debug("Cometd subscription callback completed for channel: "+n),h.debug("Listener callback queue size: "+g.length),f=e,g.map(function(e){e(f)}),g=[]},unsubscribeFromCometD:function(){h.debug("unsubscribeFromCometD from : "+n+", subscription : "+l),null!==l&&(T()?T().unsubscribeToChannel(this):this._unsubscribeFromCometD())},_unsubscribeFromCometD:function(){h.debug("_unsubscribeFromCometD from : "+n+", subscription : "+l),null!==l&&(e.unsubscribe(l),l=null,f=null,h.debug("Successfully unsubscribed from channel: "+n))},resubscribeToCometD:function(){h.debug("Resubscribe to "+n),T()?T().subscribeToChannel(this):this._subscribeToCometD(this.subscriptionCallback)},getSubscribeOptionsCallback:function(){return c},getName:function(){return n},getChannelListeners:function(){return d},getLastMessageShard:function(){return m},getLastMessageNumber:function(){return v},fetchDisconnectionTS:function(){var e=(0,o.default)().getServerConnection().getConnectionBrokenTS();return h.debug("Client Disconnect Time in ms:"+e),e||0},getRedeliveryManager:function(){return y},isReadyToDeliver:function(){return _},getListenerCallbackQueue:function(){return g},setSubscriptionCallbackResponse:function(e){f=e}}};n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=s(t(10)),r=s(t(18)),o=s(t(19));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.MSInputMethodContext&&e.document.documentMode}function u(e,n){if(void 0!==e.getClientWindow&&e.getClientWindow()===n)return e;var t=function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}({},e);return t.getChannel=function(t,i,r){return e.getChannel(t,i,r||n)},t.getRecordWatcherChannel=function(t,i,r,o,s){return e.getRecordWatcherChannel(t,i,r,o,s||n)},t.subscribeToEvent=function(t,i,r){return e.subscribeToEvent(t,i,r||n)},t.unsubscribeFromEvent=function(t,i){return e.unsubscribeFromEvent(t,i||n)},t.getClientWindow=function(){return n},t}var c=function(){var e=function(e){try{if(!a(e))for(;e!==e.parent&&!e.g_ambClient;)e=e.parent;if(e.g_ambClient)return e.g_ambClient}catch(e){console.log("AMB getClient() tried to access parent from an iFrame. Caught error: "+e)}return null}(window);e||function(e){var n=window.self;n.g_ambClient=e,n.addEventListener("unload",function(){n.g_ambClient.disconnect()});var t=!(!n.NOW||!n.NOW.hasOwnProperty("deferAmbConnection"))&&n.NOW.deferAmbConnection,i=n.NOW&&n.NOW.hasOwnProperty("deferredAmbConnectionTimeout")&&function(e){return function(e){return parseInt(e,10)===e}(e)&&e>0}(n.NOW.deferredAmbConnectionTimeout)?n.NOW.deferredAmbConnectionTimeout:1e4;if(t)n.setTimeout(s,i);else{var r=n.document?n.document.readyState:null;"complete"===r?s():n.addEventListener("load",s),n.setTimeout(s,1e4)}var o=!1;function s(){o||(o=!0,n.g_ambClient.connect())}}(e=u(function(e){return function(){var n=new i.default,t=function(){var e=[];function n(e,n,i){if(e&&i){var r=t(e);if(r)for(var o=r.subscriptions,s=o.length-1;s>=0;s--)o[s].id===n&&o[s].callback===i&&o.splice(s,1)}}function t(n){for(var t=0,i=e.length;t<i;t++)if(e[t].window===n)return e[t];return null}function i(n){var t={window:n,onUnload:function(){t.unloading=!0;for(var n,i=t.subscriptions;n=i.pop();)n.unsubscribe();!function(n){for(var t=0,i=e.length;t<i;t++)if(e[t].window===n.window){e.splice(t,1);break}n.subscriptions=[],n.window.removeEventListener("unload",n.onUnload),n.onUnload=null,n.window=null}(t)},unloading:!1,subscriptions:[]};return n.addEventListener("unload",t.onUnload),e.push(t),t}return{add:function(e,r,o,s){if(e&&o&&s){n(e,r,o);var a=t(e);a||(a=i(e)),a.unloading||a.subscriptions.push({id:r,callback:o,unsubscribe:s})}},remove:n}}(),s=n.getServerConnection();return e&&s.setLoginWindowEnabled(!1),{getServerConnection:function(){return s},connect:function(){n.connect()},abort:function(){n.abort()},disconnect:function(){n.disconnect()},getConnectionState:function(){return n.getConnectionState()},getState:function(){return n.getConnectionState()},getClientId:function(){return n.getClientId()},getChannel:function(e,i,r){var o=n.getChannel(e,i),a=o.subscribe,u=o.unsubscribe;return r=r||window,o.subscribe=function(e){return t.add(r,o,e,function(){o.unsubscribe(e)}),a.call(o,e),o},o.unsubscribe=function(i){t.remove(r,o,i);var a=u.call(o,i);return 0===s.getChannel(e).getChannelListeners().length&&n.removeChannel(e),a},o},getChannel0:function(e,t){return n.getChannel(e,t)},getRecordWatcherChannel:function(e,n,t,i,s){var a=r.default.stringify(o.default.parse(n)).replace(/=/g,"-");return t=t||"default",this.getChannel("/rw/"+t+"/"+e+"/"+a,i,s)},registerExtension:function(e,t){n.registerExtension(e,t)},unregisterExtension:function(e){n.unregisterExtension(e)},batch:function(e){n.batch(e)},subscribeToEvent:function(e,i,r){r=r||window;var o=n.subscribeToEvent(e,i);return t.add(r,o,!0,function(){n.unsubscribeFromEvent(o)}),o},unsubscribeFromEvent:function(e,i){i=i||window,t.remove(i,e,!0),n.unsubscribeFromEvent(e)},isLoggedIn:function(){return n.isLoggedIn()},getConnectionEvents:function(){return n.getConnectionEvents()},getEvents:function(){return n.getConnectionEvents()},reestablishSession:function(){n.reestablishSession()},loginComplete:function(){n.loginComplete()},getChannels:function(){return n.getChannels()},extendSession:function(){return n.extendSession()},getTokenManagementExtension:function(){return n.getTokenManagementExtension()}}}()}(a(window)&&null!==window.frameElement),window));return u(e,window)};n.default=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=f(t(14)),r=f(t(6)),o=f(t(0)),s=f(t(2)),a=f(t(15)),u=t(1),c=f(t(16)),l=f(t(17));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(){var e=new i.default.CometD;e.registerTransport(u.WEBSOCKET_TYPE_NAME,new i.default.WebSocketTransport,0),e.registerTransport("long-polling",new i.default.LongPollingTransport,1),e.unregisterTransport("callback-polling");var n=new a.default;e.registerExtension("graphQLSubscription",n);var t=new c.default;e.registerExtension("sessionExtension",t);var f=new l.default;e.registerExtension(u.TOKEN_MANAGEMENT_EXTENSION,f);var d=new r.default(e),g=new o.default("amb.MessageClient"),h=!1;return{getServerConnection:function(){return d},isLoggedIn:function(){return d.isLoggedIn()},loginComplete:function(){d.loginComplete()},reestablishSession:function(){d.reestablishSession()},connect:function(){h?g.addInfoMessage(">>> connection exists, request satisfied"):(h=!0,d.connect())},reload:function(){h=!1,d.reload()},abort:function(){h=!1,d.abort()},disconnect:function(){h=!1,d.disconnect()},isConnected:function(){return h},getConnectionEvents:function(){return d.getEvents()},subscribeToEvent:function(e,n){return d.subscribeToEvent(e,n)},unsubscribeFromEvent:function(e){d.unsubscribeFromEvent(e)},getConnectionState:function(){return d.getConnectionState()},getClientId:function(){return e.getClientId()},getChannel:function(e,t){var i=t||{},r=i.subscriptionCallback,o=i.serializedGraphQLSubscription,a=i.subscribeOptionsCallback,u=d.getChannel(e,a);return n.isGraphQLChannel(e)&&(o?n.addGraphQLChannel(e,o):g.addErrorMessage("Serialized subscription not present for GraphQL channel "+e)),new s.default(u,d,r)},removeChannel:function(e){d.removeChannel(e),n.isGraphQLChannel(e)&&n.removeGraphQLChannel(e)},getChannels:function(){return d.getChannels()},extendSession:function(){t.extendSession()},getTokenManagementExtension:function(){return f},registerExtension:function(n,t){e.registerExtension(n,t)},unregisterExtension:function(n){e.unregisterExtension(n)},batch:function(n){e.batch(n)}}};n.default=d},function(e,n,t){!function(n,t){e.exports=t()}(0,function(){var e=e||function(e,n){var t=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},r=i.lib={},o=r.Base=function(){return{extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=void 0!=n?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var n=this.words,t=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=t[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o<r;o+=4)n[i+o>>>2]=t[o>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(n){for(var t,i=[],r=function(n){n=n;var t=987654321,i=4294967295;return function(){var r=((t=36969*(65535&t)+(t>>16)&i)<<16)+(n=18e3*(65535&n)+(n>>16)&i)&i;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},o=0;o<n;o+=4){var a=r(4294967296*(t||e.random()));t=987654071*a(),i.push(4294967296*a()|0)}return new s.init(i,n)}}),a=i.enc={},u=a.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,i=[],r=0;r<t;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var n=e.length,t=[],i=0;i<n;i+=2)t[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new s.init(t,n/2)}},c=a.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,i=[],r=0;r<t;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,t=[],i=0;i<n;i++)t[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new s.init(t,n)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t=this._data,i=t.words,r=t.sigBytes,o=this.blockSize,a=r/(4*o),u=(a=n?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,c=e.min(4*u,r);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(i,l);var f=i.splice(0,u);t.sigBytes-=c}return new s.init(f,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new d.HMAC.init(e,t).finalize(n)}}}),i.algo={});return i}(Math);return e})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(13));window.__TECTONIC__amb_client_js=i.default,window.amb=i.default;var r=i.default;n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=d(t(1)),r=d(t(0)),o=d(t(5)),s=d(t(6)),a=d(t(7)),u=d(t(2)),c=d(t(8)),l=d(t(10)),f=d(t(9));function d(e){return e&&e.__esModule?e:{default:e}}var g={properties:i.default,Logger:r.default,EventManager:o.default,ServerConnection:s.default,ChannelRedirect:a.default,ChannelListener:u.default,Channel:c.default,MessageClient:l.default,getClient:f.default};n.default=g},function(e,n,t){!function(n,t){e.exports=t()}(0,function(){var e={isString:function(e){return void 0!==e&&null!==e&&("string"==typeof e||e instanceof String)},isArray:function(e){return void 0!==e&&null!==e&&e instanceof Array},inArray:function(e,n){for(var t=0;t<n.length;++t)if(e===n[t])return t;return-1}},n=function(){var n,t,i;this.registered=function(e,i){n=e,t=i},this.unregistered=function(){n=null,t=null},this._notifyTransportTimeout=function(e){var n=t._getTransportListeners("timeout");if(n)for(var i=0;i<n.length;++i){var r=n[i];try{var o=r.call(this,e);if("number"==typeof o&&o>0)return o}catch(e){this._info("Exception during execution of transport listener",r,e)}}return 0},this._debug=function(){t._debug.apply(t,arguments)},this._info=function(){t._info.apply(t,arguments)},this._mixin=function(){return t._mixin.apply(t,arguments)},this.getConfiguration=function(){return t.getConfiguration()},this.getAdvice=function(){return t.getAdvice()},this.setTimeout=function(e,n){return t.setTimeout(e,n)},this.clearTimeout=function(e){t.clearTimeout(e)},this.convertToJSON=function(e){for(var n=this.getConfiguration().maxSendBayeuxMessageSize,t="[",i=0;i<e.length;++i){i>0&&(t+=",");var r=e[i],o=JSON.stringify(r);if(o.length>n)throw"maxSendBayeuxMessageSize "+n+" exceeded";t+=o}return t+="]"},this.convertToMessages=function(n){if(e.isString(n))try{return JSON.parse(n)}catch(e){throw this._debug("Could not convert to JSON the following string",'"'+n+'"'),e}if(e.isArray(n))return n;if(void 0===n||null===n)return[];if(n instanceof Object)return[n];throw"Conversion Error "+n+", typeof "+typeof n},this.accept=function(e,n,t){throw"Abstract"},this.getType=function(){return n},this.getURL=function(){return i},this.setURL=function(e){i=e},this.send=function(e,n){throw"Abstract"},this.reset=function(e){this._debug("Transport",n,"reset",e?"initial":"retry")},this.abort=function(){this._debug("Transport",n,"aborted")},this.toString=function(){return this.getType()}};n.derive=function(e){function n(){}return n.prototype=e,new n};var t=function(){var t=new n,i=n.derive(t),r=0,o=null,s=[],a=[];function u(e,n){if(this.transportSend(e,n)&&(n.expired=!1,!e.sync)){var t=this.getConfiguration().maxNetworkDelay;!0===n.metaConnect&&(t+=this.getAdvice().timeout),this._debug("Transport",this.getType(),"started waiting for message replies of request",n.id,":",t,"ms");var i=this;n.timeout=this.setTimeout(function(){(function e(n,t,i){var r=this._notifyTransportTimeout(n.messages);if(r>0){this._debug("Transport",this.getType(),"extended waiting for message replies of request",t.id,":",r,"ms");var o=this;t.timeout=this.setTimeout(function(){e.call(o,n,t,i+r)},r)}else{t.expired=!0;var s="Transport "+this.getType()+" expired waiting for message replies of request "+t.id+": "+i+" ms",a={reason:s},u=t.xhr;a.httpCode=this.xhrStatus(u),this.abortXHR(u),this._debug(s),this.complete(t,!1,t.metaConnect),n.onFailure(u,n.messages,a)}}).call(i,e,n,t)},t)}}function c(e){var n=++r,t={id:n,metaConnect:!1,envelope:e};s.length<this.getConfiguration().maxConnections-1?(s.push(t),u.call(this,e,t)):(this._debug("Transport",this.getType(),"queueing request",n,"envelope",e),a.push([e,t]))}function l(n,t){var i=e.inArray(n,s);if(i>=0&&s.splice(i,1),a.length>0){var r=a.shift(),o=r[0],u=r[1];if(this._debug("Transport dequeued request",u.id),t)this.getConfiguration().autoBatch&&function(e){for(;a.length>0;){var n=a[0],t=n[0],i=n[1];if(t.url!==e.url||t.sync!==e.sync)break;a.shift(),e.messages=e.messages.concat(t.messages),this._debug("Coalesced",t.messages.length,"messages from request",i.id)}}.call(this,o),c.call(this,o),this._debug("Transport completed request",n.id,o);else{var l=this;this.setTimeout(function(){l.complete(u,!1,u.metaConnect);var e={reason:"Previous request failed"},n=u.xhr;e.httpCode=l.xhrStatus(n),o.onFailure(n,o.messages,e)},0)}}}return i.complete=function(e,n,t){t?function(e){var n=e.id;if(this._debug("Transport",this.getType(),"/meta/connect complete, request",n),null!==o&&o.id!==n)throw"/meta/connect request mismatch, completing request "+n;o=null}.call(this,e):l.call(this,e,n)},i.transportSend=function(e,n){throw"Abstract"},i.transportSuccess=function(e,n,t){n.expired||(this.clearTimeout(n.timeout),this._debug("Transport",this.getType(),"cancelled waiting for message replies"),this.complete(n,!0,n.metaConnect),t&&t.length>0?e.onSuccess(t):e.onFailure(n.xhr,e.messages,{httpCode:204}))},i.transportFailure=function(e,n,t){n.expired||(this.clearTimeout(n.timeout),this._debug("Transport",this.getType(),"cancelled waiting for failed message replies"),this.complete(n,!1,n.metaConnect),e.onFailure(n.xhr,e.messages,t))},i.send=function(e,n){n?function(e){if(null!==o)throw"Concurrent /meta/connect requests not allowed, request id="+o.id+" not yet completed";var n=++r;this._debug("Transport",this.getType(),"/meta/connect send, request",n,"envelope",e);var t={id:n,metaConnect:!0,envelope:e};u.call(this,e,t),o=t}.call(this,e):c.call(this,e)},i.abort=function(){t.abort();for(var e=0;e<s.length;++e){var n=s[e];n&&(this._debug("Aborting request",n),this.abortXHR(n.xhr)||this.transportFailure(n.envelope,n,{reason:"abort"}))}var i=o;i&&(this._debug("Aborting /meta/connect request",i),this.abortXHR(i.xhr)||this.transportFailure(i.envelope,i,{reason:"abort"})),this.reset(!0)},i.reset=function(e){t.reset(e),o=null,s=[],a=[]},i.abortXHR=function(e){if(e)try{var n=e.readyState;return e.abort(),n!==window.XMLHttpRequest.UNSENT}catch(e){this._debug(e)}return!1},i.xhrStatus=function(e){if(e)try{return e.status}catch(e){this._debug(e)}return-1},i},i=function(){var e=new t,i=n.derive(e),r=!0;return i.accept=function(e,n,t){return r||!n},i.newXMLHttpRequest=function(){return new window.XMLHttpRequest},i.xhrSend=function(e){var n=i.newXMLHttpRequest();!function(e){try{e.context=i.context}catch(e){i._debug("Could not copy transport context into XHR",e)}}(n),n.withCredentials=!0,n.open("POST",e.url,!0!==e.sync);var t=e.headers;if(t)for(var r in t)t.hasOwnProperty(r)&&n.setRequestHeader(r,t[r]);return n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.onload=function(){200===n.status?e.onSuccess(n.responseText):e.onError(n.statusText)},n.onabort=n.onerror=function(){e.onError(n.statusText)},n.send(e.body),n},i.transportSend=function(e,n){this._debug("Transport",this.getType(),"sending request",n.id,"envelope",e);var t=this;try{var i=!0;return n.xhr=this.xhrSend({transport:this,url:e.url,sync:e.sync,headers:this.getConfiguration().requestHeaders,body:this.convertToJSON(e.messages),onSuccess:function(i){t._debug("Transport",t.getType(),"received response",i);var o=!1;try{var s=t.convertToMessages(i);0===s.length?(r=!1,t.transportFailure(e,n,{httpCode:204})):(o=!0,t.transportSuccess(e,n,s))}catch(i){if(t._debug(i),!o){r=!1;var a={exception:i};a.httpCode=t.xhrStatus(n.xhr),t.transportFailure(e,n,a)}}},onError:function(o,s){t._debug("Transport",t.getType(),"received error",o,s),r=!1;var a={reason:o,exception:s};a.httpCode=t.xhrStatus(n.xhr),i?t.setTimeout(function(){t.transportFailure(e,n,a)},0):t.transportFailure(e,n,a)}}),i=!1,!0}catch(i){return this._debug("Transport",this.getType(),"exception:",i),r=!1,this.setTimeout(function(){t.transportFailure(e,n,{exception:i})},0),!1}},i.reset=function(n){e.reset(n),r=!0},i},r=function(){var e=new t,i=n.derive(e),r=0;function o(e,n,t){var i=this;return function(){i.transportFailure(e,n,"error",t)}}return i.accept=function(e,n,t){return!0},i.jsonpSend=function(e){var n=document.getElementsByTagName("head")[0],t=document.createElement("script"),i="_cometd_jsonp_"+r++;window[i]=function(r){n.removeChild(t),delete window[i],e.onSuccess(r)};var o=e.url;o+=o.indexOf("?")<0?"?":"&",o+="jsonp="+i,o+="&message="+encodeURIComponent(e.body),t.src=o,t.async=!0!==e.sync,t.type="application/javascript",t.onerror=function(n){e.onError("jsonp "+n.type)},n.appendChild(t)},i.transportSend=function(e,n){for(var t=this,i=0,r=e.messages.length,s=[];r>0;){var a=JSON.stringify(e.messages.slice(i,i+r)),u=e.url.length+encodeURI(a).length,c=this.getConfiguration().maxURILength;if(u>c){if(1===r){var l="Bayeux message too big ("+u+" bytes, max is "+c+") for transport "+this.getType();return void this.setTimeout(o.call(this,e,n,l),0)}--r}else s.push(r),i+=r,r=e.messages.length-i}var f=e;if(s.length>1){var d=0,g=s[0];this._debug("Transport",this.getType(),"split",e.messages.length,"messages into",s.join(" + ")),(f=this._mixin(!1,{},e)).messages=e.messages.slice(d,g),f.onSuccess=e.onSuccess,f.onFailure=e.onFailure;for(var h=1;h<s.length;++h){var b=this._mixin(!1,{},e);d=g,g+=s[h],b.messages=e.messages.slice(d,g),b.onSuccess=e.onSuccess,b.onFailure=e.onFailure,this.send(b,n.metaConnect)}}this._debug("Transport",this.getType(),"sending request",n.id,"envelope",f);try{var p=!0;return this.jsonpSend({transport:this,url:f.url,sync:f.sync,headers:this.getConfiguration().requestHeaders,body:JSON.stringify(f.messages),onSuccess:function(e){var i=!1;try{var r=t.convertToMessages(e);0===r.length?t.transportFailure(f,n,{httpCode:204}):(i=!0,t.transportSuccess(f,n,r))}catch(e){t._debug(e),i||t.transportFailure(f,n,{exception:e})}},onError:function(e,i){var r={reason:e,exception:i};p?t.setTimeout(function(){t.transportFailure(f,n,r)},0):t.transportFailure(f,n,r)}}),p=!1,!0}catch(e){return this.setTimeout(function(){t.transportFailure(f,n,{exception:e})},0),!1}},i},o=function(){var t,i=new n,r=n.derive(i),o=!0,s=!1,a=!0,u=null,c=null,l=!1,f=null;function d(e,n){e&&(this.webSocketClose(e,n.code,n.reason),this.onClose(e,n))}function g(e){return e===c||e===u}function h(e,n,t){for(var i=[],r=0;r<n.messages.length;++r){var o=n.messages[r];o.id&&i.push(o.id)}e.envelopes[i.join(",")]=[n,t],this._debug("Transport",this.getType(),"stored envelope, envelopes",e.envelopes)}function b(n,t){for(var i=!1,r=n.envelopes,o=0;o<t.length;++o){var s=t[o];for(var a in r)if(r.hasOwnProperty(a)){var u=a.split(","),c=e.inArray(s,u);if(c>=0){i=!0,u.splice(c,1);var l=r[a][0],f=r[a][1];delete r[a],u.length>0&&(r[u.join(",")]=[l,f]);break}}}i&&this._debug("Transport",this.getType(),"removed envelope, envelopes",r)}function p(e,n,t){var i=this._notifyTransportTimeout([n]);if(i>0){this._debug("Transport",this.getType(),"extended waiting for message replies:",i,"ms");var r=this;e.timeouts[n.id]=this.setTimeout(function(){p.call(r,e,n,t+i)},i)}else this._debug("Transport",this.getType(),"expired waiting for message reply",n.id,":",t,"ms"),d.call(this,e,{code:1e3,reason:"Message Timeout"})}function v(e,n,t){var i=this;try{var r=this.convertToJSON(n.messages)}catch(t){this._debug("Transport",this.getType(),"exception:",t);for(var o=[],s=0;s<n.messages.length;++s){var a=n.messages[s];o.push(a.id)}return b.call(this,e,o),void this.setTimeout(function(){i._notifyFailure(n.onFailure,e,n.messages,{exception:t})},0)}e.webSocket.send(r),this._debug("Transport",this.getType(),"sent",n,"/meta/connect =",t);var u=this.getConfiguration().maxNetworkDelay;t&&(u+=this.getAdvice().timeout,l=!0);for(var c=[],f=0;f<n.messages.length;++f)!function(){var t=n.messages[f];t.id&&(c.push(t.id),e.timeouts[t.id]=i.setTimeout(function(){p.call(i,e,t,u)},u))}();this._debug("Transport",this.getType(),"started waiting for message replies",u,"ms, messageIds:",c,", timeouts:",e.timeouts)}function m(e,n,i){try{null===e?(e=c||{envelopes:{},timeouts:{}},h.call(this,e,n,i),function(e){if(!c){var n=t.getURL().replace(/^http/,"ws");this._debug("Transport",this.getType(),"connecting to URL",n);try{var i=t.getConfiguration().protocol;e.webSocket=i?new window.WebSocket(n,i):new window.WebSocket(n),c=e}catch(e){throw o=!1,this._debug("Exception while creating WebSocket object",e),e}a=!1!==t.getConfiguration().stickyReconnect;var r=this,l=t.getConfiguration().connectTimeout;l>0&&(e.connectTimer=this.setTimeout(function(){t._debug("Transport",r.getType(),"timed out while connecting to URL",n,":",l,"ms"),d.call(r,e,{code:1e3,reason:"Connect Timeout"})},l));var f=function(n){n=n||{code:1e3},t._debug("WebSocket onclose",e,n,"connecting",c,"current",u),e.connectTimer&&r.clearTimeout(e.connectTimer),r.onClose(e,n)};e.webSocket.onopen=function(){t._debug("WebSocket onopen",e),e.connectTimer&&r.clearTimeout(e.connectTimer),g(e)?(c=null,u=e,s=!0,r.onOpen(e)):(t._warn("Closing extra WebSocket connection",this,"active connection",u),d.call(r,e,{code:1e3,reason:"Extra Connection"}))},e.webSocket.onclose=f,e.webSocket.onerror=function(){f({code:1e3,reason:"Error"})},e.webSocket.onmessage=function(n){t._debug("WebSocket onmessage",n,e),r.onMessage(e,n)},this._debug("Transport",this.getType(),"configured callbacks on",e)}}.call(this,e)):(h.call(this,e,n,i),v.call(this,e,n,i))}catch(n){var r=this;this.setTimeout(function(){d.call(r,e,{code:1e3,reason:"Exception",exception:n})},0)}}return r.reset=function(e){i.reset(e),o=!0,e&&(s=!1),a=!0,e&&(u=null),c=null,l=!1},r._notifySuccess=function(e,n){e.call(this,n)},r._notifyFailure=function(e,n,t,i){e.call(this,n,t,i)},r.onOpen=function(e){var n=e.envelopes;for(var t in this._debug("Transport",this.getType(),"opened",e,"pending messages",n),n)if(n.hasOwnProperty(t)){var i=n[t],r=i[0],o=i[1];f=r.onSuccess,v.call(this,e,r,o)}},r.onMessage=function(e,n){this._debug("Transport",this.getType(),"received websocket message",n,e);for(var t=!1,i=this.convertToMessages(n.data),r=[],o=0;o<i.length;++o){var s=i[o];if((/^\/meta\//.test(s.channel)||void 0===s.data)&&s.id){r.push(s.id);var a=e.timeouts[s.id];a&&(this.clearTimeout(a),delete e.timeouts[s.id],this._debug("Transport",this.getType(),"removed timeout for message",s.id,", timeouts",e.timeouts))}"/meta/connect"===s.channel&&(l=!1),"/meta/disconnect"!==s.channel||l||(t=!0)}b.call(this,e,r),this._notifySuccess(f,i),t&&this.webSocketClose(e,1e3,"Disconnect")},r.onClose=function(e,n){this._debug("Transport",this.getType(),"closed",e,n),g(e)&&(o=a&&s,c=null,u=null);var t=e.timeouts;for(var i in e.timeouts={},t)t.hasOwnProperty(i)&&this.clearTimeout(t[i]);var r=e.envelopes;for(var f in e.envelopes={},r)if(r.hasOwnProperty(f)){var d=r[f][0];r[f][1]&&(l=!1);var h={websocketCode:n.code,reason:n.reason};n.exception&&(h.exception=n.exception),this._notifyFailure(d.onFailure,e,d.messages,h)}},r.registered=function(e,n){i.registered(e,n),t=n},r.accept=function(e,n,i){return this._debug("Transport",this.getType(),"accept, supported:",o),o&&!!window.WebSocket&&!1!==t.websocketEnabled},r.send=function(e,n){this._debug("Transport",this.getType(),"sending",e,"/meta/connect =",n),m.call(this,u,e,n)},r.webSocketClose=function(e,n,t){try{e.webSocket&&e.webSocket.close(n,t)}catch(e){this._debug(e)}},r.abort=function(){i.abort(),d.call(this,u,{code:1e3,reason:"Abort"}),this.reset(!0)},r},s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",".","-",":","+","=","^","!","/","*","?","&","<",">","(",")","[","]","{","}","@","%","$","#"],a=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0];return{CometD:function(n){var t,s,a,u,c,l=new function(){var e=0,n={};this.register=function(t){var i=++e;return n[i]=t,i},this.unregister=function(e){var t=n[e];return delete n[e],t},this.setTimeout=function(e,n){return window.setTimeout(e,n)},this.clearTimeout=function(e){window.clearTimeout(e)}},f=this,d=n||"default",g=!1,h=new function(){var e=[],n={};this.getTransportTypes=function(){return e.slice(0)},this.findTransportTypes=function(t,i,r){for(var o=[],s=0;s<e.length;++s){var a=e[s];!0===n[a].accept(t,i,r)&&o.push(a)}return o},this.negotiateTransport=function(t,i,r,o){for(var s=0;s<e.length;++s)for(var a=e[s],u=0;u<t.length;++u)if(a===t[u]){var c=n[a];if(!0===c.accept(i,r,o))return c}return null},this.add=function(t,i,r){for(var o=!1,s=0;s<e.length;++s)if(e[s]===t){o=!0;break}return o||("number"!=typeof r?e.push(t):e.splice(r,0,t),n[t]=i),!o},this.find=function(t){for(var i=0;i<e.length;++i)if(e[i]===t)return n[t];return null},this.remove=function(t){for(var i=0;i<e.length;++i)if(e[i]===t){e.splice(i,1);var r=n[t];return delete n[t],r}return null},this.clear=function(){e=[],n={}},this.reset=function(t){for(var i=0;i<e.length;++i)n[e[i]].reset(t)}},b="disconnected",p=0,v=null,m=0,_=[],y=!1,T=0,C={},w={},S=0,E=null,x=[],O={},k={},N={},I=!1,M=!1,L=0,D=0,A=null,R={useWorkerScheduler:!0,protocol:null,stickyReconnect:!0,connectTimeout:0,maxConnections:2,backoffIncrement:1e3,maxBackoff:6e4,logLevel:"info",maxNetworkDelay:1e4,requestHeaders:{},appendMessageTypeToURL:!0,autoBatch:!1,urls:{},maxURILength:2e3,maxSendBayeuxMessageSize:8192,advice:{timeout:6e4,interval:0,reconnect:void 0,maxInterval:0}};function F(e,n){try{return e[n]}catch(e){return}}function U(n){return e.isString(n)}function P(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"}function B(e){return e>="0"&&e<="9"}function j(e){switch(e){case" ":case"!":case"#":case"$":case"(":case")":case"*":case"+":case"-":case".":case"/":case"@":case"_":case"{":case"~":case"}":return!0;default:return!1}}function G(e){if(!U(e))return!1;if(e.length<2)return!1;if("/"!==e.charAt(0))return!1;for(var n=1;n<e.length;++n){var t=e.charAt(n);if(!(P(t)||B(t)||j(t)))return!1}return!0}function W(e){return void 0!==e&&null!==e&&"function"==typeof e}function q(e,n){for(var t="";--n>0&&!(e>=Math.pow(10,n));)t+="0";return t+=e}function H(e,n){if(window.console){var t=window.console[e];if(W(t)){var i=new Date;[].splice.call(n,0,0,q(i.getHours(),2)+":"+q(i.getMinutes(),2)+":"+q(i.getSeconds(),2)+"."+q(i.getMilliseconds(),3)),t.apply(window.console,n)}}}function z(e){return new RegExp("(^https?://)?(((\\[[^\\]]+])|([^:/?#]+))(:(\\d+))?)?([^?#]*)(.*)?").exec(e)}function V(e){f._debug("Configuring cometd object with",e),U(e)&&(e={url:e}),e||(e={}),R=f._mixin(!1,R,e);var n=f.getURL();if(!n)throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";var t=z(n),i=t[2],r=t[8],o=t[9];if(g=f._isCrossDomain(i),R.appendMessageTypeToURL)if(void 0!==o&&o.length>0)f._info("Appending message type to URI "+r+o+" is not supported, disabling 'appendMessageTypeToURL' configuration"),R.appendMessageTypeToURL=!1;else{var s=r.split("/"),a=s.length-1;r.match(/\/$/)&&(a-=1),s[a].indexOf(".")>=0&&(f._info("Appending message type to URI "+r+" is not supported, disabling 'appendMessageTypeToURL' configuration"),R.appendMessageTypeToURL=!1)}if(window.Worker&&window.Blob&&window.URL&&R.useWorkerScheduler){var u=function(){var e={};self.onmessage=function(n){var t=n.data,i=e[t.id];switch(t.type){case"setTimeout":e[t.id]=self.setTimeout(function(){delete e[t.id],self.postMessage({id:t.id})},t.delay);break;case"clearTimeout":delete e[t.id],i&&self.clearTimeout(i);break;default:throw"Unknown command "+t.type}}}.toString();u=u.substring(u.indexOf("{")+1,u.lastIndexOf("}"));var c=new window.Blob([u],{type:"application/json"}),d=window.URL.createObjectURL(c),h=new window.Worker(d);l.setTimeout=function(e,n){var t=l.register(e);return h.postMessage({id:t,type:"setTimeout",delay:n}),t},l.clearTimeout=function(e){l.unregister(e),h.postMessage({id:e,type:"clearTimeout"})},h.onmessage=function(e){var n=e.data.id,t=l.unregister(n);t&&t()}}}function K(e){if(e){var n=C[e.channel];n&&n[e.id]&&(delete n[e.id],f._debug("Removed",e.listener?"listener":"subscription",e))}}function Q(e){e&&!e.listener&&K(e)}function Y(){for(var e in C)if(C.hasOwnProperty(e)){var n=C[e];if(n)for(var t in n)n.hasOwnProperty(t)&&Q(n[t])}}function X(e){b!==e&&(f._debug("Status",b,"->",e),b=e)}function J(){return"disconnecting"===b||"disconnected"===b}function $(){return""+ ++p}function Z(e,n,t,i,r){try{return n.call(e,i)}catch(e){var o=f.onExtensionException;if(W(o)){f._debug("Invoking extension exception handler",t,e);try{o.call(f,e,t,r,i)}catch(e){f._info("Exception during execution of extension exception handler",t,e)}}else f._info("Exception during execution of extension",t,e);return i}}function ee(e){for(var n=x.length-1;n>=0&&void 0!==e&&null!==e;--n){var t=x[n],i=t.extension.outgoing;if(W(i)){var r=Z(t.extension,i,t.name,e,!0);e=void 0===r?e:r}}return e}function ne(e,n){var t=C[e];if(t)for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r)try{r.callback.call(r.scope,n)}catch(e){var o=f.onListenerException;if(W(o)){f._debug("Invoking listener exception handler",r,e);try{o.call(f,e,r,r.listener,n)}catch(e){f._info("Exception during execution of listener exception handler",r,e)}}else f._info("Exception during execution of listener",r,n,e)}}}function te(e,n){ne(e,n);for(var t=e.split("/"),i=t.length-1,r=i;r>0;--r){var o=t.slice(0,r).join("/")+"/*";r===i&&ne(o,n),ne(o+="*",n)}}function ie(){null!==E&&f.clearTimeout(E),E=null}function re(e,n){ie();var t=O.interval+n;f._debug("Function scheduled in",t,"ms, interval =",O.interval,"backoff =",S,e),E=f.setTimeout(e,t)}function oe(e,n,i){for(var r=0;r<e.length;++r){var o=e[r],s=o.id;v&&(o.clientId=v),void 0!==(o=ee(o))&&null!==o?(o.id=s,e[r]=o):(delete k[s],e.splice(r--,1))}if(0!==e.length){n&&(A=e[0]);var a=f.getURL();R.appendMessageTypeToURL&&(a.match(/\/$/)||(a+="/"),i&&(a+=i));var l={url:a,sync:!1,messages:e,onSuccess:function(e){try{u.call(f,e)}catch(e){f._info("Exception during handling of messages",e)}},onFailure:function(e,n,t){try{var i=f.getTransport();t.connectionType=i?i.getType():"unknown",c.call(f,e,n,t)}catch(e){f._info("Exception during handling of failure",e)}}};f._debug("Send",l),t.send(l,n)}}function se(e){m>0||!0===y?_.push(e):oe([e],!1)}function ae(){S=0}function ue(){var e=_;_=[],e.length>0&&oe(e,!1)}function ce(e){X("connecting"),re(function(){!function(){if(!J()){var e={id:$(),channel:"/meta/connect",connectionType:t.getType()};M||(e.advice={timeout:0}),X("connecting"),f._debug("Connect sent",e),oe([e],!0,"connect"),X("connected")}}()},e)}function le(e){e&&(O=f._mixin(!1,{},R.advice,e),f._debug("New advice",O))}function fe(e){if(ie(),e&&t&&t.abort(),g=!1,t=null,X("disconnected"),v=null,m=0,ae(),I=!1,M=!1,L=0,A=null,_.length>0){var n=_;_=[],c.call(f,void 0,n,{reason:"Disconnected"})}}function de(e,n,t){var i=f.onTransportException;if(W(i)){f._debug("Invoking transport exception handler",e,n,t);try{i.call(f,t,e,n)}catch(e){f._info("Exception during execution of transport exception handler",e)}}}function ge(e,n){W(e)&&(n=e,e=void 0),v=null,Y(),J()&&h.reset(!0),le({}),m=0,y=!0,s=e,a=n;var i=f.getURL(),r=h.findTransportTypes("1.0",g,i),o={id:$(),version:"1.0",minimumVersion:"1.0",channel:"/meta/handshake",supportedConnectionTypes:r,advice:{timeout:O.timeout,interval:O.interval}},u=f._mixin(!1,{},s,o);if(f._putCallback(u.id,n),!t&&!(t=h.negotiateTransport(r,"1.0",g,i))){var c="Could not find initial transport among: "+h.getTransportTypes();throw f._warn(c),c}f._debug("Initial transport is",t.getType()),X("handshaking"),f._debug("Handshake sent",u),oe([u],!1,"handshake")}function he(e,n){try{e.call(f,n)}catch(e){var t=f.onCallbackException;if(W(t)){f._debug("Invoking callback exception handler",e);try{t.call(f,e,n)}catch(e){f._info("Exception during execution of callback exception handler",e)}}else f._info("Exception during execution of message callback",e)}}function be(e){var n=f._getCallback([e.id]);W(n)&&(delete k[e.id],he(n,e))}function pe(e){var n=N[e.id];if(delete N[e.id],n){f._debug("Handling remote call response for",e,"with context",n);var t=n.timeout;t&&f.clearTimeout(t);var i=n.callback;if(W(i))return he(i,e),!0}return!1}function ve(e){f._debug("Transport failure handling",e),e.transport&&(t=e.transport),e.url&&t.setURL(e.url);var n=e.action,i=e.delay||0;switch(n){case"handshake":!function(e){X("handshaking"),y=!0,re(function(){ge(s,a)},e)}(i);break;case"retry":ce(i);break;case"none":fe(!0);break;default:throw"Unknown action "+n}}function me(e,n){be(e),te("/meta/handshake",e),te("/meta/unsuccessful",e),J()&&(n.action="none"),f.onTransportFailure.call(f,e,n,ve)}function _e(e){me(e,{cause:"failure",action:"handshake",transport:null})}function ye(e){return"disconnected"===b||!(!A||A.id!==e.id)&&(A=null,!0)}function Te(e,n){te("/meta/connect",e),te("/meta/unsuccessful",e),J()&&(n.action="none"),f.onTransportFailure.call(f,e,n,ve)}function Ce(e){ye(e)?(M=!1,Te(e,{cause:"failure",action:"retry",transport:null})):f._debug("Mismatched /meta/connect failure",e)}function we(e){fe(!0),be(e),te("/meta/disconnect",e),te("/meta/unsuccessful",e)}function Se(e){we(e)}function Ee(e){var n=C[e.subscription];if(n)for(var t in n)if(n.hasOwnProperty(t)){var i=n[t];i&&!i.listener&&(delete n[t],f._debug("Removed failed subscription",i))}be(e),te("/meta/subscribe",e),te("/meta/unsuccessful",e)}function xe(e){Ee(e)}function Oe(e){be(e),te("/meta/unsubscribe",e),te("/meta/unsuccessful",e)}function ke(e){Oe(e)}function Ne(e){pe(e)||(be(e),te("/meta/publish",e),te("/meta/unsuccessful",e))}function Ie(e){Ne(e)}function Me(e){if(L=0,void 0!==(e=function(e){for(var n=0;n<x.length&&void 0!==e&&null!==e;++n){var t=x[n],i=t.extension.incoming;if(W(i)){var r=Z(t.extension,i,t.name,e,!1);e=void 0===r?e:r}}return e}(e))&&null!==e)switch(le(e.advice),e.channel){case"/meta/handshake":!function(e){var n=f.getURL();if(e.successful){var i=f._isCrossDomain(z(n)[2]),r=h.negotiateTransport(e.supportedConnectionTypes,e.version,i,n);if(null===r)return e.successful=!1,void me(e,{cause:"negotiation",action:"none",transport:null});t!==r&&(f._debug("Transport",t.getType(),"->",r.getType()),t=r),v=e.clientId,y=!1,ue(),e.reestablish=I,I=!0,be(e),te("/meta/handshake",e),D=e["x-messages"]||0;var o=J()?"none":O.reconnect||"retry";switch(o){case"retry":ae(),0===D?ce(0):f._debug("Processing",D,"handshake-delivered messages");break;case"none":fe(!0);break;default:throw"Unrecognized advice action "+o}}else me(e,{cause:"unsuccessful",action:O.reconnect||"handshake",transport:t})}(e);break;case"/meta/connect":!function(e){if(ye(e))if(M=e.successful){te("/meta/connect",e);var n=J()?"none":O.reconnect||"retry";switch(n){case"retry":ae(),ce(S);break;case"none":fe(!1);break;default:throw"Unrecognized advice action "+n}}else Te(e,{cause:"unsuccessful",action:O.reconnect||"retry",transport:t});else f._debug("Mismatched /meta/connect reply",e)}(e);break;case"/meta/disconnect":!function(e){e.successful?(fe(!1),be(e),te("/meta/disconnect",e)):we(e)}(e);break;case"/meta/subscribe":!function(e){e.successful?(be(e),te("/meta/subscribe",e)):Ee(e)}(e);break;case"/meta/unsubscribe":!function(e){e.successful?(be(e),te("/meta/unsubscribe",e)):Oe(e)}(e);break;default:!function(e){void 0!==e.data?pe(e)||(te(e.channel,e),D>0&&0==--D&&(f._debug("Processed last handshake-delivered message"),ce(0))):void 0===e.successful?f._warn("Unknown Bayeux Message",e):e.successful?(be(e),te("/meta/publish",e)):Ne(e)}(e)}}function Le(e){var n=C[e];if(n)for(var t in n)if(n.hasOwnProperty(t)&&n[t])return!0;return!1}function De(e,n){var t={scope:e,method:n};if(W(e))t.scope=void 0,t.method=e;else if(U(n)){if(!e)throw"Invalid scope "+e;if(t.method=e[n],!W(t.method))throw"Invalid callback "+n+" for scope "+e}else if(!W(n))throw"Invalid callback "+n;return t}function Ae(e,n,t,i){var r=De(n,t);f._debug("Adding",i?"listener":"subscription","on",e,"with scope",r.scope,"and callback",r.method);var o=++T,s={id:o,channel:e,scope:r.scope,callback:r.method,listener:i},a=C[e];return a||(a={},C[e]=a),a[o]=s,f._debug("Added",i?"listener":"subscription",s),s}this._mixin=function(e,n,t){for(var i=n||{},r=2;r<arguments.length;++r){var o=arguments[r];if(void 0!==o&&null!==o)for(var s in o)if(o.hasOwnProperty(s)){var a=F(o,s),u=F(i,s);if(a===n)continue;if(void 0===a)continue;if(e&&"object"==typeof a&&null!==a)if(a instanceof Array)i[s]=this._mixin(e,u instanceof Array?u:[],a);else{var c="object"!=typeof u||u instanceof Array?{}:u;i[s]=this._mixin(e,c,a)}else i[s]=a}}return i},this._warn=function(){H("warn",arguments)},this._info=function(){"warn"!==R.logLevel&&H("info",arguments)},this._debug=function(){"debug"===R.logLevel&&H("debug",arguments)},this._isCrossDomain=function(e){return!!(window.location&&window.location.host&&e)&&e!==window.location.host},this.send=se,this._getCallback=function(e){return k[e]},this._putCallback=function(e,n){var t=this._getCallback(e);return W(n)&&(k[e]=n),t},this.onTransportFailure=function(e,n,i){this._debug("Transport failure",n,"for",e);var r=this.getTransportRegistry(),o=this.getURL(),s=this._isCrossDomain(z(o)[2]),a=r.findTransportTypes("1.0",s,o);if("none"===n.action){if("/meta/handshake"===e.channel&&!n.transport){var u="Could not negotiate transport, client=["+a+"], server=["+e.supportedConnectionTypes+"]";this._warn(u),de(t.getType(),null,{reason:u,connectionType:t.getType(),transport:t})}}else if(n.delay=this.getBackoffPeriod(),"/meta/handshake"===e.channel){if(!n.transport){var c=t?t.getType():null,l=r.negotiateTransport(a,"1.0",s,o);if(l){var d=l.getType();this._debug("Transport",c,"->",d),de(c,d,e.failure),n.action="handshake",n.transport=l}else this._warn("Could not negotiate transport, client=["+a+"]"),de(c,null,e.failure),n.action="none"}"none"!==n.action&&this.increaseBackoffPeriod()}else{var g=(new Date).getTime();if(0===L&&(L=g),"retry"===n.action){n.delay=this.increaseBackoffPeriod();var h=O.maxInterval;if(h>0){var b=O.timeout+O.interval+h;g-L+S>b&&(n.action="handshake")}}"handshake"===n.action&&(n.delay=0,r.reset(!1),this.resetBackoffPeriod())}i.call(f,n)},this.receive=Me,u=function(e){f._debug("Received",e);for(var n=0;n<e.length;++n)Me(e[n])},c=function(e,n,t){f._debug("handleFailure",e,n,t),t.transport=e;for(var i=0;i<n.length;++i){var r=n[i],o={id:r.id,successful:!1,channel:r.channel,failure:t};switch(t.message=r,r.channel){case"/meta/handshake":_e(o);break;case"/meta/connect":Ce(o);break;case"/meta/disconnect":Se(o);break;case"/meta/subscribe":o.subscription=r.subscription,xe(o);break;case"/meta/unsubscribe":o.subscription=r.subscription,ke(o);break;default:Ie(o)}}},this.registerTransport=function(e,n,t){var i=h.add(e,n,t);return i&&(this._debug("Registered transport",e),W(n.registered)&&n.registered(e,this)),i},this.unregisterTransport=function(e){var n=h.remove(e);return null!==n&&(this._debug("Unregistered transport",e),W(n.unregistered)&&n.unregistered()),n},this.unregisterTransports=function(){h.clear()},this.getTransportTypes=function(){return h.getTransportTypes()},this.findTransport=function(e){return h.find(e)},this.getTransportRegistry=function(){return h},this.configure=function(e){V.call(this,e)},this.init=function(e,n){this.configure(e),this.handshake(n)},this.handshake=function(e,n){if("disconnected"!==b)throw"Illegal state: handshaken";ge(e,n)},this.disconnect=function(e,n){if(!J()){W(e)&&(n=e,e=void 0);var t={id:$(),channel:"/meta/disconnect"},i=this._mixin(!1,{},e,t);f._putCallback(i.id,n),X("disconnecting"),oe([i],!1,"disconnect")}},this.startBatch=function(){!function(){++m,f._debug("Starting batch, depth",m)}()},this.endBatch=function(){!function(){if(--m,f._debug("Ending batch, depth",m),m<0)throw"Calls to startBatch() and endBatch() are not paired";0!==m||J()||y||ue()}()},this.batch=function(e,n){var t=De(e,n);this.startBatch();try{t.method.call(t.scope),this.endBatch()}catch(e){throw this._info("Exception during execution of batch",e),this.endBatch(),e}},this.addTransportListener=function(e,n){if("timeout"!==e)throw"Unsupported event "+e;var t=w[e];t||(w[e]=t=[]),t.push(n)},this.removeTransportListener=function(e,n){var t=w[e];if(t){var i=t.indexOf(n);if(i>=0)return t.splice(i,1),!0}return!1},this._getTransportListeners=function(e){return w[e]},this.addListener=function(e,n,t){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!U(e))throw"Illegal argument type: channel must be a string";return Ae(e,n,t,!0)},this.removeListener=function(e){if(!(e&&e.channel&&"id"in e))throw"Invalid argument: expected subscription, not "+e;K(e)},this.clearListeners=function(){C={}},this.subscribe=function(e,n,t,i,r){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!G(e))throw"Illegal argument: invalid channel "+e;if(J())throw"Illegal state: disconnected";W(n)&&(r=i,i=t,t=n,n=void 0),W(i)&&(r=i,i=void 0);var o=!Le(e),s=Ae(e,n,t,!1);if(o){var a={id:$(),channel:"/meta/subscribe",subscription:e},u=this._mixin(!1,{},i,a);f._putCallback(u.id,r),se(u)}else W(r)&&f.setTimeout(function(){he(r,{id:$(),successful:!0,channel:"/meta/subscribe",subscription:e})},0);return s},this.unsubscribe=function(e,n,t){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(J())throw"Illegal state: disconnected";W(n)&&(t=n,n=void 0),this.removeListener(e);var i=e.channel;if(Le(i))W(t)&&f.setTimeout(function(){he(t,{id:$(),successful:!0,channel:"/meta/unsubscribe",subscription:i})},0);else{var r={id:$(),channel:"/meta/unsubscribe",subscription:i},o=this._mixin(!1,{},n,r);f._putCallback(o.id,t),se(o)}},this.resubscribe=function(e,n){if(Q(e),e)return this.subscribe(e.channel,e.scope,e.callback,n)},this.clearSubscriptions=function(){Y()},this.publish=function(e,n,t,i){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!G(e))throw"Illegal argument: invalid channel "+e;if(/^\/meta\//.test(e))throw"Illegal argument: cannot publish to meta channels";if(J())throw"Illegal state: disconnected";W(n)?(i=n,n={},t=void 0):W(t)&&(i=t,t=void 0);var r={id:$(),channel:e,data:n},o=this._mixin(!1,{},t,r);f._putCallback(o.id,i),se(o)},this.publishBinary=function(e,n,t,i,r,o){W(n)?(o=n,n=new ArrayBuffer(0),t=!0,i=void 0,r=void 0):W(t)?(o=t,t=!0,i=void 0,r=void 0):W(i)?(o=i,i=void 0,r=void 0):W(r)&&(o=r,r=void 0);var s={meta:i,data:n,last:t},a=this._mixin(!1,r,{ext:{binary:{}}});this.publish(e,s,a,o)},this.remoteCall=function(e,n,t,i,r){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!U(e))throw"Illegal argument type: target must be a string";if(J())throw"Illegal state: disconnected";if(W(n)?(r=n,n={},t=R.maxNetworkDelay,i=void 0):W(t)?(r=t,t=R.maxNetworkDelay,i=void 0):W(i)&&(r=i,i=void 0),"number"!=typeof t)throw"Illegal argument type: timeout must be a number";e.match(/^\//)||(e="/"+e);var o="/service"+e;if(!G(o))throw"Illegal argument: invalid target "+e;var s={id:$(),channel:o,data:n},a=this._mixin(!1,{},i,s),u={callback:r};t>0&&(u.timeout=f.setTimeout(function(){f._debug("Timing out remote call",a,"after",t,"ms"),Ne({id:a.id,error:"406::timeout",successful:!1,failure:{message:a,reason:"Remote Call Timeout"}})},t),f._debug("Scheduled remote call timeout",a,"in",t,"ms")),N[a.id]=u,se(a)},this.remoteCallBinary=function(e,n,t,i,r,o,s){W(n)?(s=n,n=new ArrayBuffer(0),t=!0,i=void 0,r=R.maxNetworkDelay,o=void 0):W(t)?(s=t,t=!0,i=void 0,r=R.maxNetworkDelay,o=void 0):W(i)?(s=i,i=void 0,r=R.maxNetworkDelay,o=void 0):W(r)?(s=r,r=R.maxNetworkDelay,o=void 0):W(o)&&(s=o,o=void 0);var a={meta:i,data:n,last:t},u=this._mixin(!1,o,{ext:{binary:{}}});this.remoteCall(e,a,r,u,s)},this.getStatus=function(){return b},this.isDisconnected=J,this.setBackoffIncrement=function(e){R.backoffIncrement=e},this.getBackoffIncrement=function(){return R.backoffIncrement},this.getBackoffPeriod=function(){return S},this.increaseBackoffPeriod=function(){return function(){return S<R.maxBackoff&&(S+=R.backoffIncrement),S}()},this.resetBackoffPeriod=function(){ae()},this.setLogLevel=function(e){R.logLevel=e},this.registerExtension=function(e,n){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!U(e))throw"Illegal argument type: extension name must be a string";for(var t=!1,i=0;i<x.length;++i)if(x[i].name===e){t=!0;break}return t?(this._info("Could not register extension with name",e,"since another extension with the same name already exists"),!1):(x.push({name:e,extension:n}),this._debug("Registered extension",e),W(n.registered)&&n.registered(e,this),!0)},this.unregisterExtension=function(e){if(!U(e))throw"Illegal argument type: extension name must be a string";for(var n=!1,t=0;t<x.length;++t){var i=x[t];if(i.name===e){x.splice(t,1),n=!0,this._debug("Unregistered extension",e);var r=i.extension;W(r.unregistered)&&r.unregistered();break}}return n},this.getExtension=function(e){for(var n=0;n<x.length;++n){var t=x[n];if(t.name===e)return t.extension}return null},this.getName=function(){return d},this.getClientId=function(){return v},this.getURL=function(){if(t){var e=t.getURL();if(e)return e;if(e=R.urls[t.getType()])return e}return R.url},this.getTransport=function(){return t},this.getConfiguration=function(){return this._mixin(!0,{},R)},this.getAdvice=function(){return this._mixin(!0,{},O)},this.setTimeout=function(e,n){return l.setTimeout(function(){try{f._debug("Invoking timed function",e),e()}catch(n){f._debug("Exception invoking timed function",e,n)}},n)},this.clearTimeout=function(e){l.clearTimeout(e)},window.WebSocket&&this.registerTransport("websocket",new o),this.registerTransport("long-polling",new i),this.registerTransport("callback-polling",new r)},Transport:n,RequestTransport:t,LongPollingTransport:i,CallbackPollingTransport:r,WebSocketTransport:o,Utils:e,Z85:{encode:function(e){var n=null;if(e instanceof ArrayBuffer?n=e:e.buffer instanceof ArrayBuffer?n=e.buffer:Array.isArray(e)&&(n=new Uint8Array(e).buffer),null==n)throw"Cannot Z85 encode "+e;for(var t=n.byteLength,i=t%4,r=4-(0===i?4:i),o=new DataView(n),a="",u=0,c=0;c<t+r;++c){var l=c>=t;if(u=256*u+(l?0:o.getUint8(c)),(c+1)%4==0){for(var f=52200625,d=5;d>0;--d){if(!l||d>r){var g=Math.floor(u/f)%85;a+=s[g]}f/=85}u=0}}return a},decode:function(e){for(var n=e.length%5,t=5-(0===n?5:n),i=0;i<t;++i)e+=s[s.length-1];for(var r=e.length,o=new ArrayBuffer(4*r/5-t),u=new DataView(o),c=0,l=0,f=0,d=0;d<r;++d){var g=e.charCodeAt(l++)-32;if(c=85*c+a[g],l%5==0){for(var h=16777216;h>=1;)f<u.byteLength&&u.setUint8(f++,Math.floor(c/h)%256),h/=256;c=0}}return o}}}})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(0));var r=function(){var e=new i.default("amb.GraphQLSubscriptionExtension"),n={};this.isGraphQLChannel=function(e){return e&&e.startsWith("/rw/graphql")},this.addGraphQLChannel=function(e,t){n[e]=t},this.removeGraphQLChannel=function(e){delete n[e]},this.getGraphQLSubscriptions=function(){return n},this.outgoing=function(t){return"/meta/subscribe"===t.channel&&this.isGraphQLChannel(t.subscription)&&(t.ext||(t.ext={}),n[t.subscription]&&(e.debug("Subscribing with GraphQL subscription:"+n[t.subscription]),t.ext.serializedGraphQLSubscription=n[t.subscription])),t}};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(0));var r=function(){var e=new i.default("amb.SessionExtension"),n=!1;this.extendSession=function(){n=!0},this.outgoing=function(t){return"/meta/connect"===t.channel&&n&&(t.ext||(t.ext={}),e.debug("extendSession"),t.ext.extendSession=!0,n=!1),t}};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t(0)),r=o(t(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){var e=new i.default("amb.TokenManagementExtension"),n="/meta/subscribe",t="/meta/unsubscribe",o="/meta/handshake",s=r.default.subscribeCommandsFlow.maxInflight,a=[];function u(e){return e.channel==n||e.channel==t}function c(){e.debug("notifyOnAvailabilityOfToken - current tokenCount: "+s);try{a.forEach(function(e){e()})}catch(n){e.addErrorMessage("notifyOnAvailabilityOfToken - failed to call tokenEventListeners. Error Details : "+n)}}this.updateTokenCount=function(e){s=e},this.refillTokens=function(){s=r.default.subscribeCommandsFlow.maxInflight,c(),e.debug("refillTokens -- tokenCount : "+s)},this.outgoing=function(e){return function(e){return e.channel===o}(e)&&(e.ext||(e.ext={}),e.ext.supportsSubscribeCommandFlow=!0),r.default.subscribeCommandsFlow.enable?(u(e)&&s>0&&s--,e):e},this.incoming=function(e){return r.default.subscribeCommandsFlow.enable?(u(e)?(s<r.default.subscribeCommandsFlow.maxInflight&&s++,c()):function(e){if(!e.ext)return!1;var n=e.ext.received_by_glide;return!!n&&n&&u(n)}(e)&&(e=null),e):e},this.getTokenCount=function(){return s},this.addTokenAvailabilityListener=function(n){n&&(e.debug("addTokenAvailabilityListener - tokenEventListener : "+n),a.push(n))},this.removeTokenAvailabilityListener=function(n){if(n){e.debug("removeTokenAvailabilityListener - tokenEventListener : "+n);var t=a.findIndex(function(e){return n===e});-1!==t&&(e.debug("removeTokenAvailabilityListener - removing listener at index : "+t),a.splice(t,1))}}};n.default=s},function(e,n,t){!function(n,i){e.exports=i(t(11))}(0,function(e){return function(){var n=e,t=n.lib.WordArray;n.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<t;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<t;a++)r.push(i.charAt(s>>>6*(3-a)&63));var u=i.charAt(64);if(u)for(;r.length%4;)r.push(u);return r.join("")},parse:function(e){var n=e.length,i=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<i.length;o++)r[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(n=a)}return function(e,n,i){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=i[e.charCodeAt(s-1)]<<s%4*2,u=i[e.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=(a|u)<<24-o%4*8,o++}return t.create(r,o)}(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},function(e,n,t){!function(n,i){e.exports=i(t(11))}(0,function(e){return e.enc.Utf8})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(t(0)),r=t(4);function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var a=function(){var e,n,t=new i.default("amb.MessagesRedeliveryManager"),s=[],a=[],u=function(e){return e.ext.redelivery_message},c=function(e){return!0!==e.ext.redelivery_message.redelivery_not_authorized},l=function(e,n){return e.find(function(e){return function(e,n){return e.ext[r.MSG_SHARD]===n.ext[r.MSG_SHARD]&&e.ext[r.MSG_NUM]===n.ext[r.MSG_NUM]}(e,n)})},f=function(e){return r.MSG_NUM+":"+e.ext[r.MSG_NUM]+","+r.MSG_SHARD+":"+e.ext[r.MSG_SHARD]};function d(){t.debug("Clearing all messages"),s=[],a=[]}return{resetState:function(){d(),e=!0,n=!1},containsMetaInfo:function(e){return e.ext&&e.ext[r.MSG_NUM]&&e.ext[r.MSG_SHARD]},shouldDeliver:function(i){return e?function(e){return e.ext.redelivery_notification&&!1===e.ext.redelivery_notification.can_redeliver}(i)?(t.debug("No messages to redeliver"),e=!1,!1):!!this.containsMetaInfo(i)&&(u(i)&&c(i)?(t.debug("Processing redelivered - "+f(i)),s.push(i)):u(i)&&!c(i)?t.debug("Not Processing unauthorized redelivery message - "+f(i)):(a.push(i),t.debug("Processing original - "+f(i))),function(e){return u(e)&&!0===e.ext.redelivery_message.is_last_redelivery}(i)&&function(){t.debug("Redelivery over"),e=!1,n=!0}(),!1):l(s,i)?(t.debug("Dropping duplicate: "+f(i)),!1):(t.debug("Out of redelivery. New message received: "+f(i)),d(),!0)},shouldDeliverPendingMessages:function(){return n},getAllPendingMessages:function(){var e=[];if(function(){return s.length>0||a.length>0}()){var i=function(e,n){return n.filter(function(n){return!l(e,n)})}(s,a);e=s.concat(i)}return t.debug("Flushing: "+function(e){var n,t="",i=o(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=t.concat("<"+f(r)+">")}}catch(e){i.e(e)}finally{i.f()}return t}(e)),s=e,a=[],n=!1,e},getMissedMessagesSize:function(){return s.length},getOriginalMessagesSize:function(){return a.length}}};n.default=a},function(e,n,t){"use strict";function i(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(e,n,t){return n&&i(e.prototype,n),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"emit",function(e,n){window.localStorage.setItem(e,JSON.stringify(n)),window.localStorage.removeItem(e)}),r(this,"on",function(e,n){window.addEventListener("storage",function(t){var i=t.key,r=t.newValue;i===e&&r&&n(JSON.parse(r))})})});n.default=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:134217727,n=[],t=Math.max(1,Math.floor(e));return{enqueue:function(e){return this.getAvailableSpace()>0&&(n.push(e),!0)},enqueueMultiple:function(e){return this.getAvailableSpace()>=e.length&&(n=n.concat(e),!0)},dequeue:function(){var e;return n.length>0&&(e=n.shift()),e},dequeueMultiple:function(e){var t;return e>=0&&n.length>=e&&(t=[],e>0&&(t=n.slice(0,e),n=n.slice(e))),t},clear:function(){n=[]},getSize:function(){return n.length},getCapacity:function(){return t},getAvailableSpace:function(){return t-n.length},getQueueBuffer:function(){return n}}};n.default=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=s(t(1)),r=t(3),o=s(t(0));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e,n){var t={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe"},s=202,a=429,u=3e5,c=new o.default("amb.SubscriptionCommandSender");!function(){n.addTokenAvailabilityListener(function(){C()})}();var l=!i.default.subscribeCommandsFlow.enable,f=null;function d(e,n,t){return Math.min(t,Math.max(n,e))}function g(){return n.getTokenCount()>=i.default.subscribeCommandsFlow.maxInflight}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e||(0,r.isNil)(f)){var t=d(i.default.subscribeCommandsFlow.maxWait,0,u);c.debug("restartTimer - force: "+e+", timerObject : "+f+", timeInterval : "+t),b(),f=setTimeout(function(){!function(){f=null,c.debug("onTimer - stopping : "+l),l||(n.refillTokens(),C())}()},t)}}function b(){(0,r.isNil)(f)||(c.debug("stopTimer"),clearTimeout(f),f=null)}function p(){var e=parseInt(i.default.subscribeCommandsFlow.retryDelay.min);return e=d(e,0,u)}function v(e,n,o,s){var a;c.debug("scheduleRetry - channel : "+e.getName()+", triesLeft : "+n+", mode : "+o);var u=function(e){return d(i.default.subscribeCommandsFlow.retryDelay.increaseFactor*e,i.default.subscribeCommandsFlow.retryDelay.min,i.default.subscribeCommandsFlow.retryDelay.max)}(s);switch(o){case t.SUBSCRIBE:a=function(){return y(e,n,u)};break;case t.UNSUBSCRIBE:a=function(){return T(e,n,u)}}(0,r.isNil)(a)||setTimeout(a,s)}function m(e,t,i,r,o){c.debug("onResponse - response ".concat(JSON.stringify(e),", channel ").concat(JSON.stringify(t),", mode : ").concat(i,", \n\t\t\ttriesLeft ").concat(r,", stopping : ").concat(l,", tokenCount : ").concat(n.getTokenCount(),", isBucketFull - ").concat(g(),", retryDelay - ").concat(o)),l?t.subscriptionCallback(e):(r-=1,g()&&b(),r>0&&function(e){if(c.debug("isRetriable - response : "+e),e&&e.ext){var n=e.ext.rejected_by_glide;if(n){var t=parseInt(e.ext["glide.amb.reply.status.code"]);if(c.addWarnMessage("isRetriable - rejected_by_glide : "+n+", glide.amb.reply.status.code : "+t),!isNaN(t))return t==a||t==s}}return c.debug("isRetriable - "+!1),!1}(e)?v(t,r,i,o):t.subscriptionCallback(e),C())}function _(n){return c.debug("addItemToQueue - item : "+n),!!e.enqueue(n)&&(C(),!0)}function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p();return c.debug("enqueueSubscribe - channel: "+e.getName()+", triesLeft : "+n+", stopping : "+l+", retryDelay : "+o),!!(!l&&(0,r.isObject)(e)&&((0,r.isNil)(n)&&(n=1+Math.floor(i.default.subscribeCommandsFlow.retries)),n>0))&&_(function(){c.debug("enqueueSubscribe - inside the item execution. Calling channel._subscribeToCometD - channel: "+e.getName()+", triesLeft : "+n),e._subscribeToCometD(function(i){return m(i,e,t.SUBSCRIBE,n,o)})})}function T(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p();return c.debug("enqueueUnsubscribe - channel: "+e.getName()+", triesLeft : "+n+", stopping : "+l+", retryDelay : "+o),!!(!l&&(0,r.isObject)(e)&&((0,r.isNil)(n)&&(n=1+Math.floor(i.default.subscribeCommandsFlow.retries)),n>0))&&_(function(){e._unsubscribeFromCometD(function(i){return m(i,e,t.UNSUBSCRIBE,n,o)})})}function C(){var t=Math.min(e.getSize(),function(){return d(n.getTokenCount(),0,i.default.subscribeCommandsFlow.maxInflight)}());c.debug("processQueue - numberToProcess : "+t),t>0&&(e.dequeueMultiple(t).forEach(function(e){return(0,r.isNil)(e)||e()}),h(!1))}return{subscribeToChannel:function(e){return c.debug("subscribeToChannel - to : "+e.getName()),y(e)},unsubscribeToChannel:function(e){return c.debug("unsubscribeToChannel - from : "+e.getName()),T(e)},stop:function(){c.debug("stop"),function(){c.debug("signalStop - stopping : "+l),l||(l=!0,b(),e.clear())}()},isStopping:function(){return l},getQueue:function(){return e},isBucketEmpty:function(){return!g()},getTimerObject:function(){return f},getTokenCountFromTokenManager:function(){return n.getTokenCount()}}};n.default=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t(0)),r=o(t(1));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==t.return||t.return()}finally{if(u)throw o}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var u=function(e){var n={},t=new i.default("amb.TransportManagement");return n.isPruningEnabled=function(){return"false"!==r.default.pruneFailedTransports},n.processConnectionOpened=function(){this.isPruningEnabled()&&(t.debug("Processing connection opened"),this.removeSkippedTransportsInConnect())},n.removeSkippedTransportsInConnect=function(){var n=null===e.getTransport()?null:e.getTransport().getType();if(t.addInfoMessage("Connected using transport "+n),t.debug("Purging failed transports from registry..."),null!==n){var i,r=[],o=s(e.getTransportTypes());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a==n)break;e.unregisterTransport(a),r.push(a)}}catch(e){o.e(e)}finally{o.f()}t.addInfoMessage("Removed failed registry transports after connect: {"+r+"}")}},n};n.default=u}]); amb.getClient(); angular.module("ng.amb",["sn.common.presence","sn.common.util"]).value("ambLogLevel","info").value("ambServletURI","/amb").value("cometd",angular.element.cometd).value("ambLoginWindow","true"); angular.module("ng.amb").service("amb",["AMBOverlay","$window","$q","$log","$rootScope","$timeout",function(n,e,t,o,r,i){"use strict";var c,u=null,s=e.self,a=null,l=!1;function d(n){n=angular.element(n.target).parent().find(".modal-backdrop").get(0);void 0!==n&&(n.style.cssText=[n.style.cssText,c.getLoginWindowOverlayStyle()].join("; "))}u=amb.getClient(),(l=s.g_ambClient?!0:l)&&((c=u.getServerConnection()).loginShow=function(){!c.isLoginWindowEnabled()||a&&a.isVisible()||c.isLoginWindowOverride()||((a=new n({onBeforeShow:d})).render(),a.show())},c.loginHide=function(){a&&(a.hide(),a.destroy(),a=null)});var g,b=t.defer(),f=!1,m=!1;function v(){m=!0}i(v,2e4),b.promise.then(v);var C=!1;function p(n){f=!0,r.$broadcast(n),g=g||i(function(){C=!0},3e4),b=t.defer()}function E(){u.unsubscribeFromEvent(h),u.unsubscribeFromEvent(S),u.unsubscribeFromEvent(O),angular.element(e).off("unload",E)}var h=u.subscribeToEvent("connection.opened",function(){r.$broadcast("amb.connection.opened"),g&&(i.cancel(g),g=null),C=!1,f&&(f=!1,r.$broadcast("amb.connection.recovered")),b.resolve()}),S=u.subscribeToEvent("connection.closed",function(){p("amb.connection.closed")}),O=u.subscribeToEvent("connection.broken",function(){p("amb.connection.broken")}),l=(u.subscribeToEvent("session.logged.in",function(){r.$broadcast("amb.session.logged.in")}),u.subscribeToEvent("session.reestablished",function(){r.$broadcast("amb.session.reestablished")}),angular.element(e).on("unload",E),!(!s.NOW||!s.NOW.hasOwnProperty("deferAmbConnection"))&&s.NOW.deferAmbConnection),T=s.NOW&&s.NOW.hasOwnProperty("deferredAmbConnectionTimeout")&&(function(n){return parseInt(n,10)===n}(T=s.NOW.deferredAmbConnectionTimeout)&&0<T)?s.NOW.deferredAmbConnectionTimeout:1e4;l?i(W,T):("complete"===(s.document?s.document.readyState:null)?W():s.addEventListener("load",W),i(W,1e4));var w=!1;function W(){w||(w=!0,u.connect())}return{getServerConnection:function(){return u.getServerConnection()},connect:function(){return w&&u.connect(),b.promise},get interrupted(){return n=u.getState(),m&&"opened"!==n&&"initialized"!==n;var n},get extendedInterruption(){return C},get connected(){return b.promise},abort:function(){u.abort()},disconnect:function(){u.disconnect()},getConnectionState:function(){return u.getConnectionState()},getClientId:function(){return u.getClientId()},getChannel:function(n){return u.getChannel(n)},registerExtension:function(n,e){u.registerExtension(n,e)},unregisterExtension:function(n){u.unregisterExtension(n)},batch:function(n){u.batch(n)},getState:function(){return u.getState()},getFilterString:function(n){return n=n.replace(/\^EQ/g,"").replace(/\^ORDERBY(?:DESC)?[^^]*/g,"").replace(/^GOTO/,""),btoa(unescape(encodeURIComponent(n))).replace(/=/g,"-")},getChannelRW:function(n,e){n="/rw/default/"+n+"/"+this.getFilterString(e);return this.getChannel(n)},isLoggedIn:function(){return u.isLoggedIn()},subscribeToEvent:function(n,e){return u.subscribeToEvent(n,e)},getConnectionEvents:function(){return u.getConnectionEvents()},getEvents:function(){return u.getConnectionEvents()},loginComplete:function(){u.loginComplete()}}}]); angular.module("ng.amb").controller("AMBRecordWatcher",["$scope","$timeout","$window",function(t,e,n){"use strict";var r,a,i,o=n.top.g_ambClient;function s(e){t.messages.push(e.data)}t.messages=[],t.getState=function(){return o.getState()},t.initWatcher=function(){var e;angular.element(":focus").blur(),t.filter&&t.filter!==r&&(r=t.filter,console.log("initiating watcher on "+t.filter),t.messages=[],i&&i.unsubscribe(),e=btoa(t.filter).replace(/=/g,"-"),a=o.getChannel("/rw/"+e),i=a.subscribe(s))},o.connect()}]); angular.module("ng.amb").factory("snRecordWatcher",["$rootScope","amb","$timeout","snPresence","$log","urlTools",function(i,r,n,s,e,a){"use strict";var o=!0;function c(n,t,i){if(n){t=t?"sys_id="+t:i;if(t)return u(n,t)}}function u(n,t,i){var s;return"sys_amb_message"==(s=n)||s.startsWith("sys_rw")?(e.log("Blocked from watching",n),null):(o&&d(">>> init "+n+"?"+t),(s=r.getChannelRW(n,t)).subscribe(i||l),r.connect(),s)}function l(n){var t=n.data,n=n.channel;o&&d(">>> record "+t.operation+": "+t.table_name+"."+t.sys_id+" "+t.display_value),i.$broadcast("record.updated",t),i.$broadcast("list.updated",t,n)}function d(n){e.log(n)}return{initTaskList:function(n,t){return t&&t.unsubscribe(),u("task","sys_idIN"+n.toString())},initChannel:u,init:function(){var n=a.parseQueryString(window.location.search),t=n.table||n.sysparm_table,i=n.sys_id||n.sysparm_sys_id,n=n.sysparm_query;c(t,i,n),s.init(t,i,n)},initList:function(n,t){if(n)return u(n,t=t||"sys_idISNOTEMPTY")},initRecord:function(n,t){c(n,t,null),s.initPresence(n,t)},_initWatcher:c}}]); angular.module("ng.amb").factory("AMBOverlay",["$templateCache","$compile","$rootScope","i18n",function(n,e,a,i){"use strict";var d,l,s,r=[],c=[],m=[],u=!1,h={backdrop:"static",keyboard:!1,show:!0};return n.put("amb_disconnect_modal.xml",'<div id="amb_disconnect_modal" tabindex="-1" aria-hidden="true" class="modal" role="dialog">\t<div class="modal-dialog small-modal" style="width:450px">\t\t<div class="modal-content">\t\t\t<header class="modal-header">\t\t\t\t<h4 id="small_modal1_title" class="modal-title">{{loginMessage}}</h4>\t\t\t</header>\t\t\t<div class="modal-body">\t\t\t<iframe class="concourse_modal" ng-src=\'{{iframe || "/amb_login.do"}}\' frameborder="0" height="400px" width="405px"></iframe>\t\t\t</div>\t\t</div>\t</div></div>'),function(t){function o(){u||(l=angular.extend(a.$new(),t),d=e(n.get("amb_disconnect_modal.xml"))(l),angular.element("body").append(d),d.on("show.bs.modal",function(o){for(var t=0,n=c.length;t<n;t++)c[t](o)}),d.on("shown.bs.modal",function(o){for(var t=0,n=r.length;t<n;t++)r[t](o)}),d.on("hidden.bs.modal",function(o){for(var t=0,n=m.length;t<n;t++)m[t](o)}),s=angular.extend({},h,t),d.modal(s),u=!0)}return t=t||{},angular.isFunction(t.onBeforeShow)&&c.push(t.onBeforeShow),angular.isFunction(t.onShow)&&r.push(t.onShow),angular.isFunction(t.onHide)&&m.push(t.onHide),i.getMessage("Login",function(o){t.loginMessage=o}),{render:function(){angular.element("html").modal?o():ScriptLoader.getScripts(["/scripts/bootstrap3/bootstrap.js"],o)},destroy:function(){var o;u&&(d.modal("hide"),d.remove(),l.$destroy(),l=void 0,u=!1,0<=(o=r.indexOf(t.onShow))&&r.splice(o,1),0<=(o=m.indexOf(t.onShow))&&m.splice(o,1))},show:function(){u&&d.modal("show")},hide:function(){u&&d.modal("hide")},isVisible:function(){return!!u&&d.visible()}}}}]); !function(e,i){"use strict";var n,s,l,f,r,d,u,p;void 0!==i.Deferred&&(n="{{SYSID}}",s=new RegExp(n,"g"),l=[".sn-presence-lite { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; }"],f=[".sn-presence-"+n+'-online [data-presence-id="'+n+'"] { background-color: #71e279; }',".sn-presence-"+n+'-away [data-presence-id="'+n+'"] { background-color: #fc8a3d; }',".sn-presence-"+n+'-offline [data-presence-id="'+n+'"] { background-color: transparent; }'],r=i("head"),d=i.Deferred(),u={},p=0,i(function(){for(var e,n,r,t=document.querySelectorAll("[data-presence-id]"),a={},c=0,o=t.length;c<o;c++){var i=t[c].getAttribute("data-presence-id");a[i]=!0}Object.keys(a).length!==p&&(u=a,p=Object.keys(u).length,e=Object.keys(u),n="",e.forEach(function(e){n+=function(e){for(var n="",r=0,t=f.length;r<t;r++)n+=f[r].replace(s,e);return n}(e)}),r=n,d.done(function(n){n.empty(),l.forEach(function(e){n.append(e)}),n.append(r)}))}),r.ready(function(){var e=document.createElement("style"),e=(r.append(e),i(e));d.resolve(e)}),e.applyPresenceArray=function(e){if(e&&e.length){for(var n=e.filter(function(e){return void 0!==u[e.user]}),r=i("html")[0].className.split(" ").filter(function(e){return 0!==e.indexOf("sn-presence-")}),t=0,a=n.length;t<a;t++){var c=n[t],o=function(e){switch(e){case"probably offline":case"maybe offline":return"away";default:return"offline";case"online":case"offline":return e}}(c.status);"offline"!==o&&r.push("sn-presence-"+c.user+"-"+o)}e=r.join(" ");i("html")[0].className=e}})}(window,window.jQuery||window.Zepto); angular.module("sn.common.presence",["ng.amb","sn.common.glide","sn.common.auth"]).config(["$provide",function(n){"use strict";n.constant("PRESENCE_DISABLED",!1)}]); angular.module("sn.common.presence").factory("snPresence",["$rootScope","$window","$log","amb","$timeout","$http","snRecordPresence","snTabActivity","urlTools","PRESENCE_DISABLED",function(t,s,e,n,o,a,i,c,r,u){"use strict";var l,p={PRESENCE:"/api/now/ui/presence"},f=1e3*(s.NOW.presence_interval||60),m=10*f,g=!1,w=!1,d=[],v=0,h=0,y=!1;function E(e,n){var r;if(!u)return g||(g=!0,s.NOW.presence_scopes?-1==(r=s.NOW.presence_scopes).indexOf(t)&&r.push(t):(s.NOW.presence_scopes=[t],w=function(){var e=window.self;try{for(;e.CustomEvent.fireEvent&&e!==e.parent&&!e.parent.NOW.isPolarisWrapper&&e.parent.CustomEvent.fireEvent;)e=e.parent}catch(e){}return e==window.self}()),w?(d=T(s.localStorage.getItem("snPresence")))?o(S,100):_():(CustomEvent.observe("sn.presence",P),CustomEvent.fireTop("sn.presence.ping"))),i.initPresence(e,n)}function P(e){d=e,o(A)}function _(r){var e;(d=T(s.localStorage.getItem("snPresence")))?(b(d),o(S)):n.isLoggedIn()&&c.isPrimary?(e={user_agent:navigator.userAgent,ua_time:(new Date).toISOString(),href:window.location.href,pathname:window.location.pathname,search:window.location.search,path:window.location.pathname+window.location.search},h=(new Date).getTime(),a.post(p.PRESENCE+"?sysparm_auto_request=true&cd="+h,e).success(function(e){var n;e=e,n=h,500<(n=(new Date).getTime()-n)&&console.log("snPresence response time "+n+"ms"),e.result&&e.result.presenceArray&&(D(d=e.result.presenceArray),l=e.result.serverTimeMillis,v=(new Date).getTime()-l,(n=Math.floor(v/1e3))<-15?console.log(">>>>> server ahead "+Math.abs(n)+" seconds"):15<n&&console.log(">>>>> browser time ahead "+n+" seconds")),S()}).error(function(e,n){console.log("snPresence "+n),S(r)})):o(S)}function S(e){e=isFinite(e)?e+1:0;n=e;var n=Math.min(f*Math.pow(2,n),m);o(function(){_(e)},n),b(d),A()}function A(){angular.isDefined(s.applyPresenceArray)&&s.applyPresenceArray(d),t.$emit("sn.presence",d),w&&CustomEvent.fireAll("sn.presence",d)}function b(e){var r;e&&e.forEach&&(r=(new Date).getTime(),r-=v,e.forEach(function(e){var n=0+e.last_on,n=r-n;e.status="online",5*f<n?e.status="offline":3*f<n?e.status="probably offline":2.5*f<n&&(e.status="maybe offline")}))}function D(e){e={saved:(new s.Date).getTime(),presenceArray:e};s.localStorage.setItem("snPresence",angular.toJson(e))}function T(n){if(!n)return null;try{n=angular.fromJson(n)}catch(e){n={}}return!n.presenceArray||(new Date).getTime()-n.saved>=f?null:n.presenceArray}return{init:function(){var e=r.parseQueryString(s.location.search);return E(e.table||e.sysparm_table,e.sys_id||e.sysparm_sys_id)},initPresence:E,suspendWatch:function(e){return y=void 0!==e?e:y},_getLocalPresence:T,_setLocalPresence:D,_determineStatus:b}}]); angular.module("sn.common.presence").factory("snRecordPresence",["$rootScope","$location","amb","$timeout","$window","PRESENCE_DISABLED","snTabActivity",function(t,e,i,n,r,o,s){"use strict";var u,a,c,d,_,f=1e3*(r.NOW.record_presence_interval||20),l={},p=!1,m="",v="";function O(e,s){var n;if(!o&&(e&&s&&(e!=a||s!=c)&&(r.NOW.record_presence_scopes?-1==(n=r.NOW.record_presence_scopes).indexOf(t)&&(n.push(t),CustomEvent.observe("sn.sessions",b)):(r.NOW.record_presence_scopes=[t],p=!0),p)))return g(),n="/sn/rp/"+(a=e)+"/"+(c=s),t.me=NOW.session_id,(u=i.getChannel(n)).subscribe(y),i.connected.then(function(){N("entered"),t.status="viewing"}),u}function b(e){t.$emit("sn.sessions",e),t.$emit("sp.sessions",e)}function g(){u&&(u.unsubscribe(),u=a=c=null)}function N(e){e==t.status&&v===m||(v=m,t.status=e,0==Object.keys(l).length||1<h(e)||(e=t.status,u&&"opened"===i.getState()&&u.publish({presences:[{status:e,session_id:NOW.session_id,user_name:NOW.user_name,user_id:NOW.user_id,user_display_name:NOW.user_display_name,user_initials:NOW.user_initials,user_avatar:NOW.user_avatar,ua:navigator.userAgent,table:a,sys_id:c,field_type:m,time:(new Date).toString().substring(0,24)}]})))}function y(e){e.data.presences.forEach(function(e){var s;e.session_id&&e.session_id!=NOW.session_id&&((s=l[e.session_id])?angular.extend(s,e):s=l[e.session_id]=e,s.lastUpdated=new Date,"exited"==s.status&&delete l[e.session_id])}),W()}function W(){i={},Object.keys(l).forEach(function(e){var s,n,t,e=l[e];e.user_id!=NOW.user_id&&(e.user_id in i?(s=i[e.user_id],n=h(e.status),t=h(s.status),i[e.user_id]=n<t?e:s):i[e.user_id]=e)}),s={},angular.forEach(i,function(e){s[e.session_id]=e});var i,s,e=s;t.$emit("sn.sessions",e),t.$emit("sp.sessions",e),p&&n(function(){CustomEvent.fire("sn.sessions",e)})}function h(e){switch(e){case"typing":return 0;case"viewing":return 1;case"entered":return 2;case"exited":case"probably left":return 4;case"offline":return 5;default:return 3}}return t.$on("record.typing",function(e,s){m=s.field_type,N(s.status)}),s.onIdle({onIdle:function(){d=a,_=c,l={},g(),W()},onReturn:function(){O(d,_),d=_=void 0},delay:4*f}),{initPresence:O,termPresence:g}}]); angular.module("sn.common.presence").directive("snPresence",["snPresence","$rootScope","$timeout","i18n",function(e,r,n,s){"use strict";e.suspendWatch()||n(e.init,100);var i={},l=(s.getMessages(["maybe offline","probably offline","offline","online","entered","viewing"],function(e){i.maybe_offline=e["maybe offline"],i.probably_offline=e["probably offline"],i.offline=e.offline,i.online=e.online,i.entered=e.entered,i.viewing=e.viewing}),{});return r.$on("sn.presence",function(e,n){angular.forEach(l,function(e){e.status="offline"}),n&&n.forEach(function(e){l[e.user]=e})}),{restrict:"EA",replace:!1,scope:{userId:"@?",snPresence:"=?",user:"=?",profile:"=?",displayName:"=?",onPresenceChange:"&"},link:function(s,a){function e(){var e,n=s.snPresence||s.user;!angular.isDefined(n)&&angular.isDefined(s.userId)&&(n=s.userId),l[n]?("maybe offline"===(e=l[n].status)||"probably offline"===e?(a.removeClass("presence-online presence-offline presence-away"),a.addClass("presence-away"),s.onPresenceChange({status:i.away})):"offline"!=e||a.hasClass("presence-offline")?"online"!=e&&"entered"!=e&&"viewing"!=e||a.hasClass("presence-online")||(a.removeClass("presence-offline presence-away"),a.addClass("presence-online"),s.onPresenceChange({status:i.online})):(a.removeClass("presence-online presence-away"),a.addClass("presence-offline"),s.onPresenceChange({status:i.offline})),e=e.replace(/ /g,"_"),s.profile?angular.element('div[user-avatar-id="'+n+'"]').attr("aria-label",s.profile.userName+" "+i[e]):angular.element('div[user-avatar-id="'+n+'"]').attr("aria-label",s.displayName+" "+i[e])):(a.hasClass("presence-offline")||a.addClass("presence-offline"),s.onPresenceChange({status:i.offline}))}s.profile&&(s.user=s.profile.userID,s.profile.tabIndex=-1,s.profile.isAccessible&&(s.profile.tabIndex=0)),a.hasClass("presence")||a.addClass("presence");var n=r.$on("sn.presence",e);s.$on("$destroy",n),e()}}}]); angular.module("sn.common.presence").directive("snComposing",["getTemplateUrl","snComposingPresence",function(e,t){"use strict";return{restrict:"E",templateUrl:e("snComposing.xml"),replace:!0,scope:{conversation:"="},controller:["$scope","$element",function(e,o){o=o.children();o&&o.tooltip&&o.tooltip({template:'<div class="tooltip" style="white-space: pre-wrap" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",container:"body"}),e.snComposingPresence=t}]}}]); angular.module("sn.common.presence").service("snComposingPresence",["i18n",function(o){"use strict";var i={},a={},c={},m={},s="{0} is typing",v="{0} and {1} are typing",f="{0}, {1}, and {2} more are typing",w="{0} is viewing",p="{0} and {1} are viewing",y="{0}, {1}, and {2} more are viewing";function t(e,n){var i="",a=n.typing.length,t=n.viewing.length;if(a<4&&t<4)return"";switch(a){case 0:break;case 1:i+=o.format(s,n.typing[0].name);break;case 2:i+=o.format(v,n.typing[0].name,n.typing[1].name);break;default:for(var g="",r=0;r<a;r++)r<a-2?g+=n.typing[r].name+", ":r===a-2?g+=n.typing[r].name+",":i+=o.format(v,g,n.typing[r].name)}switch(0<t&&0<a&&(i+="\n\n"),t){case 0:break;case 1:i+=o.format(w,n.viewing[0].name);break;case 2:i+=o.format(p,n.viewing[0].name,n.viewing[1].name);break;default:for(var m="",r=0;r<t;r++)r<t-2?m+=n.viewing[r].name+", ":r===t-2?m+=n.viewing[r].name+",":i+=o.format(p,m,n.viewing[r].name)}c[e]=i}function g(e,n){var i=n.typing.length,a=n.viewing.length,t="",g="",r=" ";switch(i){case 0:break;case 1:t=o.format(s,n.typing[0].name);break;case 2:t=o.format(v,n.typing[0].name,n.typing[1].name);break;case 3:t=o.format(v,n.typing[0].name+", "+n.typing[1].name+",",n.typing[2].name);break;default:t=o.format(f,n.typing[0].name,n.typing[1].name,i-2)}switch(0<a&&0<i&&(r=". "),a){case 0:break;case 1:g=o.format(w,n.viewing[0].name);break;case 2:g=o.format(p,n.viewing[0].name,n.viewing[1].name);break;case 3:g=o.format(p,n.viewing[0].name+", "+n.viewing[1].name+",",n.viewing[2].name);break;default:g=o.format(y,n.viewing[0].name,n.viewing[1].name,a-2)}m[e]=t+r+g}return o.getMessages([s,v,f,w,p,y],function(e){s=e[s],v=e[v],f=e[f],w=e[w],p=e[p],y=e[y]}),{set:function(e,n){return n.viewing&&(i[e]=n.viewing),n.typing&&(a[e]=n.typing),t(e,{viewing:i[e],typing:a[e]}),g(e,{viewing:i[e],typing:a[e]}),{viewing:i[e],typing:a[e]}},get:function(e){return{viewing:i[e]||[],typing:a[e]||[]}},generateAllString:t,getAllString:function(e){return i[e]&&3<i[e].length||a[e]&&3<a[e].length?c[e]:""},generateShortString:g,getShortString:function(e){return m[e]},remove:function(e){delete i[e]}}}]); angular.module("sn.common.user_profile",["sn.common.ui"]); angular.module("sn.common.user_profile").directive("snUserProfile",["getTemplateUrl","snCustomEvent","$window","avatarProfilePersister","$timeout","$http","$injector",function(e,r,o,t,n,i,s){"use strict";return{replace:!0,restrict:"E",templateUrl:e("snUserProfile.xml"),scope:{profile:"=",showDirectMessagePrompt:"="},link:function(r,e){r.showDirectMessagePromptFn=function(){var e;return(!s.has("inSupportClient")||!s.get("inSupportClient"))&&(!!r.showDirectMessagePrompt&&(e=o.NOW.user_id||"",!(!r.profile||e===r.profile.sysID||!r.profile.hasConnectRoles||r.profile.document&&e===r.profile.document)))}},controller:["$scope","snConnectService",function(r,o){r.profile&&r.profile.userID&&t.getAvatar(r.profile.userID)?(r.profile=t.getAvatar(r.profile.userID),r.$emit("sn-user-profile.ready")):i.get("/api/now/live/profiles/sys_user."+r.profile.userID).then(function(e){angular.merge(r.profile,e.data.result),t.setAvatar(r.profile.userID,r.profile),r.$emit("sn-user-profile.ready")}),i.get("/api/now/live/profiles/"+r.profile.userID+"/has_connect_roles").then(function(e){r.profile.hasConnectRoles=e.data.result.hasConnectRoles}),r.openDirectMessageConversation=function(e){e&&9===e.keyCode||(n(function(){o.openWithProfile(r.profile)},0,!1),angular.element(".popover").each(function(){angular.element("body").off("click.snUserAvatarPopoverClose"),angular.element(this).popover("hide")}))}}]}}]); angular.module("sn.common.avatar",["sn.common.presence","sn.common.messaging","sn.common.user_profile"]).config(["$provide",function(e){e.value("liveProfileID","")}]); angular.module("sn.common.avatar").directive("snAvatarPopover",["$http","$compile","getTemplateUrl","avatarProfilePersister","$injector",function(o,p,r,u,m){"use strict";return{restrict:"E",templateUrl:r("sn_avatar_popover.xml"),replace:!0,transclude:!0,scope:{members:"=",primary:"=?",showPresence:"=?",enableContextMenu:"=?",enableTooltip:"=?",enableBindOnce:"@",displayMemberCount:"=?",groupAvatar:"@",nopopover:"=",directconversation:"@",conversation:"=",primaryNonAssign:"=?"},compile:function(r){var o=r.html();return function(e,a,r,t,n){function s(){e.primaryNonAssign&&(e.primary=angular.extend({},e.primary,e.primaryNonAssign),e.users&&e.users[0]&&(e.users[0]=e.primary));var r=p(o,n)(e);a.html(r),e.enableTooltip&&(a.tooltip({placement:"auto top",container:"body"}).attr("data-original-title",e.users[0].name).tooltip("fixTitle"),a.hideFix&&a.hideFix())}var i;e.directconversation?("true"===e.directconversation?e.directconversation=!0:e.directconversation=!1,e.showdirectconversation=!e.directconversation):e.showdirectconversation=!0,m.has("inSupportClient")&&m.get("inSupportClient")&&(e.showdirectconversation=!1),e.primaryNonAssign&&(e.primary=angular.extend({},e.primary,e.primaryNonAssign),e.users&&e.users[0]&&(e.users[0]=e.primary)),"false"===r.enableBindOnce&&(e.$watch("primary",s),e.$watch("primaryNonAssign",s),e.$watch("members",s)),e.enableTooltip&&e.nopopover&&(i=e.$watch("users",function(){e.users&&1===e.users.length&&e.users[0]&&e.users[0].name&&(a.tooltip({placement:"auto top",container:"body"}).attr("data-original-title",e.users[0].name).tooltip("fixTitle"),a.hideFix&&a.hideFix(),i())}))}},controller:["$scope","liveProfileID","$timeout","$element","$document","snCustomEvent",function(n,r,e,a,t,s){function i(){"string"==typeof n.primary?o.get("/api/now/live/profiles/sys_user."+n.primary).then(function(r){var e;n.users=[{userID:n.primary,name:r.data.result.name,initials:(e=r.data.result.name)?3<(e=e.split(" ").map(function(r){return r.toUpperCase()}).filter(function(r){return r.match(/^[A-Z]/)}).map(function(r){return r.substring(0,1)}).join("")).length?e.substr(0,3):e:"--",avatar:r.data.result.avatar}]}):(n.primary&&(n.primary.userImage&&(n.primary.avatar=n.primary.userImage),!n.primary.userID&&n.primary.sys_id&&(n.primary.userID=n.primary.sys_id)),n.isGroup=n.conversation&&n.conversation.isGroup,n.users=[n.primary],n.primary&&(!n.members||n.members.length<=0)&&(n.primary.avatar||n.primary.initials)&&n.isDocument?n.users=[n.primary]:n.members&&0<n.members.length&&(n.users=function(r){var t=window.NOW.user?window.NOW.user.userID:window.NOW.user_id,r=angular.isArray(r)?r.slice():[r];2===(r=r.sort(function(r,e){var a=r.userID||r.document,e=e.userID||e.document;return"chat_queue_entry"===r.table||a===t?1:e===t?-1:0})).length&&(r=[r[0]]);{var a;2<r.length&&n.primary&&n.primary.name&&"sys_user"===n.primary.table&&(a=-1,angular.forEach(r,function(r,e){r.sys_id===n.primary.sys_id&&(a=e)}),-1<a&&r.splice(a,1),r.splice(1,0,n.primary))}return r}(n.members)),n.presenceEnabled=n.showPresence&&!n.isGroup&&1===n.users.length)}n.randId=Math.random(),n.loadEvent="sn-user-profile.ready",n.closeEvent=["chat:open_conversation","snAvatar.closePopover","body_clicked"],n.popoverConfig={template:'<div class="popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>'},n.displayMemberCount=n.displayMemberCount||!1,n.liveProfileID=r,n.primaryNonAssign&&(n.primary=angular.extend({},n.primary,n.primaryNonAssign),n.users&&n.users[0]&&(n.users[0]=n.primary)),n.$watch("members",function(r,e){r!==e&&n.members&&i()}),n.noPopover=function(){return n.popoverCursor=n.nopopover||n.members&&2<n.members.length?"default":"pointer",n.nopopover||n.members&&2<n.members.length},n.avatarType=function(){var r=[];return!n.groupAvatar&&n.users&&(1<n.users.length&&r.push("group"),2===n.users.length&&r.push("avatar-duo"),3===n.users.length&&r.push("avatar-trio"),4<=n.users.length&&r.push("avatar-quad"),1!==n.users.length||n.users[0].avatar||r.push("initials")),r},n.getBackgroundStyle=function(r){var e=r?r.avatar:"";return(e=n.groupAvatar?n.groupAvatar:e)&&""!==e?{"background-image":"url("+e+")"}:r&&r.name?"":void 0},n.stopPropCheck=function(r){n.$broadcast("snAvatar.closeOtherPopovers",n.randId),n.nopopover||r.stopPropagation()},n.$on("snAvatar.closeOtherPopovers",function(r){r!==n.randId&&s.fireTop("snAvatar.closePopover")}),n.maxStringWidth=function(){var r=parseInt(.8*n.avatarWidth,10);return 1===n.users.length?r:r/2},n.avatartooltip=function(){var e;return n.enableTooltip&&n.users?(e=[],n.users.forEach(function(r){r&&e.push(r.name)}),e.join(", ")):""},i(),n.loadFullProfile=function(){!n.primary||n.primary.sys_id||u.getAvatar(n.primary.userID)||o.get("/api/now/live/profiles/"+n.primary.userID).then(function(r){try{angular.extend(n.primary,r.data.result),u.setAvatar(n.primary.userID,n.primary)}catch(r){}})}}]}}]); angular.module("sn.common.avatar").factory("snAvatarFactory",["$http","$compile","$templateCache","$q","snCustomEvent","snConnectService",function(e,i,r,o,t,l){"use strict";return function(){return{restrict:"E",replace:!0,transclude:!0,scope:{members:"=",primary:"=",showPresence:"=?",enableContextMenu:"=?",enableTooltip:"=?",enableBindOnce:"@",displayMemberCount:"=?",groupAvatar:"@"},compile:function(e){var u=e.html();return function(e,r,t,s,n){var a,n=i(u,n)(e);if(r.html(n),e.enableTooltip&&(r.tooltip({placement:"auto top",container:"body"}).attr("data-original-title",e.users[0].name).tooltip("fixTitle"),r.hideFix&&r.hideFix()),"false"===t.enableBindOnce&&(e.$watch("primary",recompile),e.$watch("members",recompile)),e.enableTooltip&&(a=e.$watch("users",function(){e.users&&1===e.users.length&&e.users[0]&&e.users[0].name&&(r.tooltip({placement:"auto top",container:"body"}).attr("data-original-title",e.users[0].name).tooltip("fixTitle"),r.hideFix&&r.hideFix(),a())})),!1!==e.enableContextMenu){e.contextOptions=[];n=null;try{n=g_user}catch(e){}e.users&&1===e.users.length&&e.users[0]&&(e.users[0].userID||e.users[0].sys_id)&&(e.contextOptions=[["Open user's profile",function(){e.users&&0<e.users.length&&window.open("/nav_to.do?uri="+encodeURIComponent("sys_user.do?sys_id="+e.users[0].userID),"_blank")}]],(n&&e.users[0].userID&&e.users[0].userID!==n.userID||e.liveProfileID&&e.users[0]&&e.users[0].sysID!==e.liveProfileID)&&e.contextOptions.push(["Open a new chat",function(){l.openWithProfile(e.users[0])}]))}else e.contextOptions=[]}},controller:["$scope","liveProfileID",function(n,t){var s=!0;function a(){return n.presenceEnabled=n.showPresence&&!n.isDocument&&1===n.users.length,n.presenceEnabled}function u(){if(s=s&&!1,"string"==typeof n.primary)return e.get("/api/now/live/profiles/sys_user."+n.primary).then(function(e){var r,t;return n.users=[{userID:n.primary,name:e.data.result.name,initials:e.data.result.initials||((r=e.data.result.name)?(t=/^[A-ZÀ-Ÿ]|^[\u3040-\u309f]|^[\u30a0-\u30ff]|^[\uff66-\uff9f]|^[\u4e00-\u9faf]/,3<(r=r.split(" ").map(function(e){return e.toUpperCase()}).filter(function(e){return e.match(t)}).map(function(e){return e.substring(0,1)}).join("")).length?r.substr(0,3):r):"--"),avatar:e.data.result.avatar}],a()});n.primary&&(n.primary.userImage&&(n.primary.avatar=n.primary.userImage),!n.primary.userID&&n.primary.sys_id&&(n.primary.userID=n.primary.sys_id)),n.isDocument=n.primary&&n.primary.table&&"sys_user"!==n.primary.table&&"chat_queue_entry"!==n.primary.table,n.users=[n.primary],n.primary&&(!n.members||n.members.length<=0)&&(n.primary.avatar||n.primary.initials)&&n.isDocument?n.users=[n.primary]:n.members&&0<n.members.length&&(n.users=function(e){var s=window.NOW.user?window.NOW.user.userID:window.NOW.user_id,e=angular.isArray(e)?e.slice():[e];2===(e=e.sort(function(e,r){var t=e.userID||e.document,r=r.userID||r.document;return"chat_queue_entry"===e.table||t===s?1:r===s?-1:0})).length&&(e=[e[0]]);{var t;2<e.length&&n.primary&&n.primary.name&&"sys_user"===n.primary.table&&(t=-1,angular.forEach(e,function(e,r){e.sys_id===n.primary.sys_id&&(t=r)}),-1<t&&e.splice(t,1),e.splice(1,0,n.primary))}return e}(n.members)),o.when(a())}n.displayMemberCount=n.displayMemberCount||!1,n.liveProfileID=t,n.$watch("primary",function(e,r){if(n.primary&&e!==r&&(s||u(),0<n.contextOptions.length)){n.contextOptions=[["Open user's profile",function(){n.users&&0<n.users.length&&(window.location.href="sys_user.do?sys_id="+n.users[0].userID||n.users[0].userID)}]];e=null;try{e=g_user}catch(e){}(!e&&!t||n.users&&1===n.users.length&&n.users[0])&&(e&&n.users[0].userID&&n.users[0].userID!==e.userID||n.liveProfileID&&n.users[0]&&n.users[0].sysID!==n.liveProfileID)&&n.contextOptions.push(["Open a new chat",function(){l.openWithProfile(n.users[0])}])}}),n.onPresenceChange=function(e){n.presenceStatus=e},n.$watch("members",function(){n.members&&!s&&u()}),n.avatarType=function(){var e=[];return!n.groupAvatar&&n.users&&(1<n.users.length&&e.push("group"),2===n.users.length&&e.push("avatar-duo"),3===n.users.length&&e.push("avatar-trio"),4<=n.users.length&&e.push("avatar-quad")),e},n.getBackgroundStyle=function(e){var r=e?e.avatar:"";return(r=n.groupAvatar?n.groupAvatar:r)&&""!==r?{"background-image":"url("+r+")"}:e&&e.name?"":void 0},n.maxStringWidth=function(){var e=parseInt(.8*n.avatarWidth,10);return 1===n.users.length?e:e/2},n.avatartooltip=function(){var r;return n.enableTooltip&&n.users?(r=[],n.users.forEach(function(e){e&&r.push(e.name)}),r.join(", ")):""},u()}]}}}]).directive("snAvatar",["snAvatarFactory","getTemplateUrl",function(e,r){e=e();return e.templateUrl=r("sn_avatar.xml"),e}]).directive("snAvatarOnce",["snAvatarFactory","getTemplateUrl",function(e,r){e=e();return e.templateUrl=r("sn_avatar_once.xml"),e}]); angular.module("sn.common.avatar").service("avatarProfilePersister",function(){"use strict";var a={};return{setAvatar:function(r,t){a[r]=t},getAvatar:function(r){return a[r]}}}); angular.module("sn.common.avatar").directive("snUserAvatar",["getTemplateUrl",function(e){"use strict";return{restrict:"E",templateUrl:e("sn_user_avatar.xml"),replace:!0,scope:{profile:"=?",userId:"=?",avatarUrl:"=?",initials:"=?",enablePresence:"@",disablePopover:"=?",directConversationButton:"=?",userName:"=?",isAccessible:"=?"},link:function(a,e){var r;a.evaluatedProfile=void 0,a.backgroundStyle=void 0,a.enablePresence="false"!==a.enablePresence,a.profile?(a.evaluatedProfile=a.profile,a.userId=a.profile.userID||"",a.avatarUrl=a.profile.avatar||"",a.initials=a.profile.initials||"",a.backgroundStyle=a.getBackgroundStyle()):a.userId||a.avatarUrl||a.initials||a.userName?(a.evaluatedProfile=a.profile={userID:a.userId||"",avatar:a.avatarUrl||"",initials:a.initials||"",userName:a.userName||"",isAccessible:a.isAccessible||!1},a.backgroundStyle=a.getBackgroundStyle()):r=a.$watch("profile",function(e){e&&(a.evaluatedProfile=e,a.backgroundStyle=a.getBackgroundStyle(),r())}),a.directConversationButton="false"!==a.directConversationButton&&!1!==a.directConversationButton,a.template='<sn-user-profile tabindex="-1" id="sn-bootstrap-popover" profile="evaluatedProfile" show-direct-message-prompt="::directConversationButton" class="avatar-popover avatar-popover-padding"></sn-user-profile>',a.ariaRole=a.disablePopover?"presentation":"button"},controller:["$scope",function(e){e.getBackgroundStyle=function(){return e.avatarUrl&&""!==e.avatarUrl||e.evaluatedProfile&&""!==e.evaluatedProfile.avatar?{"background-image":"url("+(e.avatarUrl||e.evaluatedProfile.avatar)+")"}:{"background-image":""}}}]}}]); angular.module("sn.common.avatar").directive("snGroupAvatar",["$http","$compile","getTemplateUrl","avatarProfilePersister",function(r,e,a,t){"use strict";return{restrict:"E",templateUrl:a("sn_group_avatar.xml"),replace:!0,transclude:!0,scope:{members:"=",primary:"=?",groupAvatar:"@"},controller:["$scope","liveProfileID",function(s,r){function a(r){var a,t=window.NOW.user?window.NOW.user.userID:window.NOW.user_id,r=angular.isArray(r)?r.slice():[r];return 2<(r=2===(r=r.sort(function(r,e){var a=r.userID||r.document,e=e.userID||e.document;return"chat_queue_entry"===r.table||a===t?1:e===t?-1:0})).length?[r[0]]:r).length&&s.primary&&s.primary.name&&"sys_user"===s.primary.table&&(a=-1,angular.forEach(r,function(r,e){r.sys_id===s.primary.sys_id&&(a=e)}),-1<a&&r.splice(a,1),r.splice(1,0,s.primary)),r}s.liveProfileID=r,s.$watch("members",function(r,e){r!==e&&s.members&&(s.users=a(s.members))}),s.avatarType=function(){var r=[];return!s.groupAvatar&&s.users&&(1<s.users.length&&r.push("group"),2===s.users.length&&r.push("sn-avatar_duo"),3===s.users.length&&r.push("sn-avatar_trio"),4<=s.users.length&&r.push("sn-avatar_quad")),r},s.getBackgroundStyle=function(r){r=r?r.avatar:"";return(r=s.groupAvatar?s.groupAvatar:r)&&""!==r?{"background-image":"url("+r+")"}:{}},s.users=a(s.members)}]}}]); angular.module("sn.common.controls",["sn.common.util"]); angular.module("sn.common.controls").directive("snChoiceList",["i18n","$timeout",function(e,l){"use strict";return{restrict:"E",replace:!0,scope:{snModel:"=",snTextField:"@",snValueField:"@",snOptions:"=?",snItems:"=?",snOnChange:"&",snDisabled:"=",snDialogName:"="},template:'<select ng-disabled="snDisabled" ng-model="model" ng-options="item[snValueField] as item[snTextField] for item in snItems"> <option value="" ng-show="snOptions.placeholder">{{snOptions.placeholder}}</option></select>',link:function(s,n,o){s.snDialogName&&s.$on("dialog."+s.snDialogName+".close",function(){l(function(){$(n).select2("destroy")})}),$(n).css("opacity",0);var t={width:"100%"};function i(){s.model=s.snModel,function e(){if(!o)return void l(function(){e()});l(function(){$(n).css("opacity",1),$(n).select2("destroy"),$(n).select2(t),$(".select2-focusser").attr("aria-expanded","false")})}()}angular.isFunction(n.select2)&&e.getMessage("No matches found",function(e){t.formatNoMatches=function(){return e}}),s.snOptions&&(s.snOptions.placeholder&&(t.placeholder=s.snOptions.placeholder,t.placeholderOption="first"),s.snOptions.allowClear&&(t.allowClear=s.snOptions.allowClear),s.snOptions.hideSearch&&!0===s.snOptions.hideSearch&&(t.minimumResultsForSearch=-1)),i(),s.$watch("snItems",function(e,n){e!==n&&i()},!0),s.$watch("snModel",function(e){void 0!==e&&e!==s.model&&i()}),s.$watch("model",function(e,n){e!==n&&(s.snModel=e,s.snOnChange&&s.snOnChange({selectedValue:e}))}),s.$on("$destroy",function(){$(n).select2("destroy")})},controller:["$scope",function(e){}]}}]); angular.module("sn.common.controls").directive("snHtmlContentWrapper",function(){return{link:function(t,l,h){h.$observe("content",function(t){var e,n,o,i,a,d=l[0],c=h.uniqueId,r=function(){var t=document.createElement("link");return t.href="styles/activity_encapsulated.css",t.rel="stylesheet",t.type="text/css",t}(),s=document.createElement("style");s.innerHTML=":host img {max-width: 100%; height: auto; overflow: hidden;}",document.head.createShadowRoot||document.head.attachShadow?(n=d.shadowRoot||(document.head.attachShadow?d.attachShadow({mode:"open"}):d.createShadowRoot()),(e=document.createElement("div")).innerHTML=t,NOW.isUsingPolaris&&e.classList.add("-polaris"),n.innerHTML=e.outerHTML,n.appendChild(r),n.appendChild(s)):(e="activity-iframe-"+c,(n=document.getElementById(e))?(n.contentDocument.write(t),n.contentWindow.document.head.appendChild(r),n.setAttribute("height",n.contentWindow.document.body.scrollHeight+"px")):(s=$j(d),(o=document.createElement("iframe")).setAttribute("id",e),o.setAttribute("style","border:none;display:block;width:100%"),o.setAttribute("class","html-content"),o.setAttribute("scrolling","no"),o.setAttribute("height","0"),o.setAttribute("sandbox","allow-same-origin"),d.appendChild(o),(i=o.contentWindow.document).open(),i.write(t),i.close(),o.contentWindow.document.head.appendChild(r),o.contentWindow.document.head.appendChild(function(){var t=document.createElement("base");return t.setAttribute("target","_blank"),t}()),o.height=i.body.scrollHeight+"px",a=s.closest(".tabs2_section").attr("data-section-id"),c=function t(e){e=$j(".tabs2_section."+e);0<e.length&&e.attr("data-section-id")===a&&(o.contentWindow.document.head.appendChild(r),o.height=i.body.scrollHeight+"px",CustomEvent.un("tab.activated",t))},CustomEvent.observe("tab.activated",c)))})},restrict:"E",replace:!0}}); angular.module("sn.common.controls").directive("snReferencePicker",["$timeout","$http","urlTools","filterExpressionParser","escapeHtml","i18n",function(_,y,g,v,h,b){"use strict";return{restrict:"E",replace:!0,scope:{ed:"=?",field:"=",refTable:"=?",refId:"=?",snOptions:"=?",atfQualifier:"=?",snOnChange:"&",snOnBlur:"&",snOnClose:"&",snOnOpen:"&",minimumInputLength:"@",snDisabled:"=",snPageSize:"@",dropdownCssClass:"@",formatResultCssClass:"&",overlay:"=",additionalDisplayColumns:"@",displayColumn:"@",recordValues:"&",getGlideForm:"&glideForm",domain:"@",snSelectWidth:"@"},template:'<input type="text" name="{{field.name}}" ng-disabled="snDisabled" style="min-width: 150px;" ng-model="field.displayValue" sn-atf-settable="true" sn-atf-component-value="{{field.value}}" sn-atf-data-type="reference"sn-atf-data-type-params=\'{"reference" : "{{ed.reference}}", "reference_qual" : "{{atfQualifier || ed.qualifier}}", "valueField" : "sys_id", "displayField" : "{{ed.searchField}}"}\' ng-attr-sn-atf-disabled="{{ snDisabled || undefined }}" />',link:function(l,s,e,t){l.ed=l.ed||l.field.ed,l.selectWidth=l.snSelectWidth||"100%",s.css("opacity",0);var r,n=!0,i=(angular.isDefined(l.getGlideForm)&&(r=l.getGlideForm()),{}),i=angular.isDefined(l.field)&&angular.isDefined(l.field.attributes)&&void 0===l.ed.attributes?Array.isArray(l.field.attributes)?l.field.attributes:u(l.field.attributes):u(l.ed.attributes),a=(!angular.isDefined(l.additionalDisplayColumns)&&angular.isDefined(i.ref_ac_columns)&&(l.additionalDisplayColumns=i.ref_ac_columns),l.ed.qualifier||""),d=(l.ed.dependent_field&&l.ed.dependent_value&&l.ed.dependent_table&&("sys_user"!=l.ed.reference||-1==l.ed.dependent_field.indexOf("group"))&&(a&&(a+="^"),a+=l.ed.dependent_field+"="+l.ed.dependent_value),l.atfQualifier=a,{formatSelection:function(e){return h(p(e))},formatResult:function(e){var n=function(e){var n=[];{var t;e&&e.sys_id&&(t="",l.displayColumn&&void 0!==e[l.displayColumn]?t=e[l.displayColumn]:e.$$displayValue?t=e.$$displayValue:e.name?t=e.name:e.title&&(t=e.title),n.push(t))}if(l.additionalDisplayColumns)for(var a=l.additionalDisplayColumns.split(","),i=0;i<a.length;i++){var s=a[i];e[s]&&n.push(e[s])}return n}(e);if(1==n.length)return h(n[0]);if(1<n.length){for(var t=100/n.length,a="",i=0;i<n.length;i++)a+="<div style='width: "+t+"%;' class='select2-result-cell'>"+h(n[i])+"</div>";return a}return""},search:function(e){var n,t;return("sysparm_include_variables"in e.data?(t=g.getURL("ref_list_data",e.data),y.get(t)):(n={},e.data.sysparm_for_impersonation&&(n.sysparm_for_impersonation=!0),t=g.getURL("ref_list_data",n),y.post(t,e.data))).then(e.success)},initSelection:function(e,n){l.field&&l.field.displayValue&&n({sys_id:l.field.value,name:l.field.displayValue})}}),o={i18n:b,width:l.selectWidth,minimumInputLength:l.minimumInputLength?parseInt(l.minimumInputLength,10):0,overlay:l.overlay,containerCssClass:"select2-reference ng-form-element",placeholder:" ",formatSearching:"",allowClear:"false"!==e.allowClear,clearAriaLabel:l.snOptions?l.snOptions.clearAriaLabel:"",id:function(e){return e.sys_id},sortResults:l.snOptions&&l.snOptions.sortResults?l.snOptions.sortResults:void 0,ajax:{quietMillis:NOW.ac_wait_time,data:function(e,n){e=e,t=v.parse(e,l.ed.defaultOperator),e=function(){var e=["name"];l.ed.searchField?e=l.ed.searchField.split(";"):"true"==i.ref_ac_columns_search&&"ref_ac_columns"in i&&""!=i.ref_ac_columns?e=i.ref_ac_columns.split(";"):i.ref_ac_order_by&&(e=[i.ref_ac_order_by]);return e}(),a=function(){if(l.ed.excludeValues&&""!=l.ed.excludeValues)return"^sys_idNOT IN"+l.ed.excludeValues;return""}();var t,a,e=e.map(function(e){return e+t.operator+t.filterText+"^"+e+"ISNOTEMPTY"+a}).join("^NQ"),n={start:l.pageSize*(n-1),count:l.pageSize,sysparm_target_table:l.refTable,sysparm_target_sys_id:l.refId,sysparm_target_field:l.ed.dependent_field||l.ed.name,table:l.ed.reference,qualifier:l.ed.qualifier,sysparm_for_impersonation:!!l.ed.for_impersonation,data_adapter:l.ed.data_adapter,attributes:l.ed.attributes,dependent_field:l.ed.dependent_field,dependent_table:l.ed.dependent_table,dependent_value:l.ed.dependent_value,p:l.ed.reference+";q:"+e+";r:"+l.ed.qualifier},e=function(e){if(e.ed&&e.ed.referenceKey)return e.ed.referenceKey;if(e.field&&e.field.referenceKey)return e.field.referenceKey;return null}(l);return e&&(n.reference_key=e),l.domain&&(n.sysparm_domain=l.domain),angular.isDefined(l.field)&&!0===l.field._cat_variable&&(delete n.sysparm_target_table,n.sysparm_include_variables=!0,n.variable_ids=l.field.sys_id,(e=r.$private.options("getFieldSequence"))&&(n.variable_sequence1=e()),e=r.$private.options("itemSysId"),n.sysparm_id=e,(e=r.$private.options("getFieldParams"))&&angular.extend(n,e())),l.recordValues&&(n.sysparm_record_values=l.recordValues()),n},results:function(e,n){return t.filterResults(e,n,l.pageSize)},transport:d.search},formatSelection:d.formatSelection,formatResult:d.formatResult,initSelection:d.initSelection,dropdownCssClass:e.dropdownCssClass,formatResultCssClass:l.formatResultCssClass||null};function u(e){for(var n,t=e&&e.length?e.split(","):[],a={},i=0;i<t.length;i++)0<t[i].length&&(a[(n=t[i].split("="))[0]]=1<n.length?n[1]:"");return a}function f(){l.model=l.snModel,_(function(){b.getMessage("Searching...",function(e){o.formatSearching=function(){return e}}),s.css("opacity",1),s.select2("destroy");var e=s.select2(o).select2("val",[]);e.bind("change",c),e.bind("select2-removed",c),e.bind("select2-blur",function(){l.$apply(function(){l.snOnBlur()})}),e.bind("select2-close",function(){l.$apply(function(){l.snOnClose()})}),e.bind("select2-open",function(){l.$apply(function(){l.snOnOpen&&l.snOnOpen()})}),e.bind("select2-focus",function(){var e;e=s,NOW.select2LabelWorkaround&&NOW.select2LabelWorkaround(e)}),e.bind("sn-atf-setvalue",m),n&&(l.$emit("select2.ready",s),n=!1)})}function c(e){if(e.stopImmediatePropagation(),e.added){if(l.$$phase||l.$root.$$phase)return;var n=e.added,t=n.$$referenceKeyValue||n.sys_id,a=t?p(n):"";l.snOptions&&!0===l.snOptions.useGlideForm?(r.setValue(l.field.name,t,a),l.rowSelected(),e.displayValue=a,i()):l.$apply(function(){l.field.value=t,l.field.displayValue=a,l.rowSelected(),e.displayValue=a,i()})}else e.removed&&(l.snOptions&&!0===l.snOptions.useGlideForm?(r.clearValue(l.field.name),i()):l.$apply(function(){l.field.displayValue="",l.field.value="",i()}));function i(){l.snOnChange&&l.snOnChange(e)}_(function(){s.parent().find(".select2-focusser").focus()},0,!1)}function p(e){var n="";return e&&e.sys_id&&(l.displayColumn&&void 0!==e[l.displayColumn]?n=e[l.displayColumn]:e.$$displayValue?n=e.$$displayValue:e.name?n=e.name:e.title&&(n=e.title)),n}function m(e){e.stopImmediatePropagation();var t={type:"change"},n=(l.field&&l.field.value&&(t.removed=s.select2("data")),e.detail&&e.detail.newValue);function a(){b.getMessage("Unable to set reference picker to value {0}",function(e){throw new Error(b.format(e,n))})}n?((e=o.ajax.data("",1)).qualifier?e.qualifier+="^":e.qualifier="",e.qualifier+="sys_id="+n,d.search({data:e,dataType:"json",error:a,success:function(e){var n;e.data.items&&1==e.data.items.length?(n=e.data.items[0].sys_id,t.added=e.data.items[0],_(function(){s.val(n),s.triggerHandler(t)},0,!1)):a()}})):(s.val(""),s.triggerHandler(t))}l.snOptions&&(l.snOptions.placeholder&&(o.placeholder=l.snOptions.placeholder),l.snOptions.width&&(o.width=l.snOptions.width)),l.$watch("field.displayValue",function(e,n){e!=n&&e!==l.model&&f()}),l.$on("snReferencePicker.activate",function(e,n){_(function(){s.select2("open")})}),f()},controller:["$scope","$rootScope",function(t,e){t.pageSize=20,t.snPageSize&&(t.pageSize=parseInt(t.snPageSize)),t.rowSelected=function(){e.$broadcast("@page.reference.selected",{field:t.field,ed:t.ed})},this.filterResults=function(e,n){return{results:e.data.items,more:n*t.pageSize<e.data.total}}}]}}]); function _typeof(e){return(_typeof="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})(e)}angular.module("sn.common.controls").directive("snRecordPicker",["$timeout","$http","urlTools","filterExpressionParser","escapeHtml","i18n",function(S,V,C,w,_,R){"use strict";var $={};function x(e){return e&&"object"==_typeof(e)?"string"==typeof e.display_value?e.display_value.trim():"":"string"==typeof e?e.trim():e}return{restrict:"E",replace:!0,scope:{field:"=?",table:"=",defaultQuery:"=?",startswith:"=?",searchFields:"=?",valueField:"=?",displayField:"=?",displayFields:"=?",pageSize:"=?",onChange:"&",snDisabled:"=",multiple:"=?",options:"=?",placeholder:"@",snAriaLabel:"=?"},template:'<input type="text" ng-disabled="snDisabled" style="min-width: 150px;" name="{{field.name}}" ng-model="field.value" sn-atf-data-type="reference" sn-atf-data-type-params=\'{"reference" : "{{table}}", "reference_qual" : "{{defaultQuery}}", "valueField" : "{{valueField}}", "displayField" : "{{displayField}}"}\' sn-atf-class="builtin:ATF.BaseSNRecordPicker" aria-hidden="true" sn-atf-component-value="{{field}}"/>',controller:["$scope",function(i){angular.isNumber(i.pageSize)||(i.pageSize=20),angular.isDefined(i.valueField)||(i.valueField="sys_id"),this.filterResults=function(e,l){return{results:e.data.result,more:l*i.pageSize<parseInt(e.headers("x-total-count"),10)}}}],link:function(o,s,e,i){var r="####",n=!1,a=R.getMessage("Remove");var l={formatSelection:function(e){return _(b(e))},formatResult:function(e){var l=function(e){var l=[];{var i;e&&e[o.valueField]&&(i="",o.displayField&&angular.isDefined(e[o.displayField])?i=e[o.displayField]:e.name?i=e.name:e.title&&(i=e.title),l.push(i))}if(o.displayFields)for(var a=o.displayFields.split(","),t=0;t<a.length;t++){var s=a[t];e[s]&&l.push(e[s])}return l}(e);if(1==l.length)return _(x(l[0]));if(1<l.length){var i=_(x(l[0])),a=100/(l.length-1);i+="<div>";for(var t=1;t<l.length;t++)i+="<div style='width: "+a+"%;' class='select2-additional-display-field'>"+_(x(l[t]))+"</div>";return i+="</div>"}return""},search:function(l){var i="/api/now/table/"+o.table+"?"+C.encodeURIParameters(l.data);return o.options&&o.options.cache&&$[i]?l.success($[i]):V.get(i).then(function(e){return o.options&&o.options.cache&&($[i]=e),l.success(e)})},initSelection:function(e,l){if(o.field.displayValue)if(o.multiple){for(var i=[],a=o.field.value.split(","),t=o.field.displayValue.split(r),s=0;s<a.length;s++)(n={})[o.valueField]=a[s],n[o.displayField]=t[s],i.push(n);l(i)}else{var n;(n={})[o.valueField]=o.field.value,n[o.displayField]=o.field.displayValue,l(n)}else l([])},formatSelectionCssClass:function(e,l){var l=l.parent().find("a");l.length&&(l.removeAttr("tabindex"),l.addClass("fa fa-times"),l.append((l=e[o.displayField],jQuery("<span class='sr-only' />").text(a+" "+l))))}},t={i18n:R,width:"100%",containerCssClass:"select2-reference ng-form-element",placeholder:o.placeholder||" ",formatSearching:"",allowClear:!o.options||void 0===o.options.allowClear||o.options.allowClear,id:function(e){return e[o.valueField]},ajax:{quietMillis:NOW.ac_wait_time,data:function(e,l){var i=[o.valueField,"name","title"];return o.displayField&&i.push(o.displayField),o.displayFields&&i.push(o.displayFields),{sysparm_offset:o.pageSize*(l-1),sysparm_limit:o.pageSize,sysparm_query:function(e,l,i){var a,t=[];a=window.g_ref_ac_startswith||o.startswith?"STARTSWITH":"CONTAINS";e.startsWith("*")&&(a="CONTAINS",e=e.substring(1));i&&t.push(i);var s=w.parse(e,a);if(null!=l){var n=l.split(",");if(""!=s.filterText)for(var r="",d=0;d<n.length;d++)t.push(r+n[d]+s.operator+s.filterText),r="OR";for(d=0;d<n.length;d++)t.push("ORDERBY"+n[d]);t.push("EQ")}i&&"string"==typeof i&&-1!=i.indexOf("ORDERBY")&&t.push(i);return t.join("^")}(e,o.searchFields,o.defaultQuery),sysparm_fields:i.join(","),sysparm_display_value:!0}},results:function(e,l){return i.filterResults(e,l,o.pageSize)},transport:l.search},formatSelection:l.formatSelection,formatResult:l.formatResult,formatResultCssClass:function(){return""},initSelection:l.initSelection,multiple:o.multiple,formatSelectionCssClass:l.formatSelectionCssClass};o.field=o.field||{},o.field.displayValue&&o.multiple&&(o.field.displayValue=o.field.displayValue.replace(/,/g,r));var d,u,c,l=null,f=(o.field.value,o.field.value);function p(){var e="",l=o.field;return e+=o.snAriaLabel||l.name||o.table,(l.displayValue||l.value)&&(e+=" "+(l.displayValue||l.value)),e||R.getMessage("Choose")}function v(e){e=e.detail?e.detail.newValue:null;if(o.multiple){for(var l=s.select2("data"),i=0;i<l.length;i++)s.triggerHandler({type:"select2-removing",choice:l[i]});return e?((t={})[o.valueField]=e.value,o.displayField&&(t[o.displayField]=e.displayValue),void s.triggerHandler({type:"select2-selecting",choice:t})):void 0}var a,t={type:"change"};o.field.value&&(t.removed=s.select2("data")),e?((a={})[o.valueField]=e.value,o.displayField&&(a[o.displayField]=e.displayValue),t.added=a,s.val(e.value),o.field.displayValue=e.displayValue,t.val=e.value):s.val(""),s.triggerHandler(t)}function y(e){n=!0,f=o.field.value;var l,i,a=e.choice;o.multiple&&""!=a[o.valueField]&&(l=o.field.value?o.field.value.split(","):[],i=o.field.displayValue?o.field.displayValue.split(r):[],l.push(a[o.valueField]),i.push(b(a)),o.field.value=l.join(","),o.field.displayValue=i.join(r),e.preventDefault(),d.select2("val",l).select2("close"),o.$apply(function(){g(f,e)}))}function m(e){n=!0,f=o.field.value;var l=e.choice;if(o.multiple){for(var i=o.field.value.split(","),a=o.field.displayValue.split(r),t=i.length-1;0<=t;t--)if(l[o.valueField]==i[t]){i.splice(t,1),a.splice(t,1);break}o.field.value=i.join(","),o.field.displayValue=a.join(r),e.preventDefault(),d.select2("val",o.field.value.split(",")),o.$apply(function(){g(f,e)})}}function g(e,l){var i=o.field,e={field:i,newValue:i.value,oldValue:e,displayValue:i.displayValue};if(o.$emit("field.change",e),o.$emit("field.change."+i.name,e),o.onChange)try{o.onChange(l)}catch(e){console.log("directive.snRecordPicker error in onChange"),console.log(e)}n=!1}function h(e){var l;e.stopImmediatePropagation(),o.$$phase||o.$root.$$phase?console.warn("in digest, returning early"):(e.added?(l=e.added,o.multiple||(o.field.value=l[o.valueField],o.field.value?o.field.displayValue=b(l):o.field.displayValue="")):e.removed&&!o.multiple&&(o.field.displayValue="",o.field.value="",setTimeout(function(){c.focus()})),u.find(".select2-focusser").attr("aria-label",p()),o.$apply(function(){g(f,e)}))}function b(e){var l=e[o.valueField];return e&&(o.displayField&&angular.isDefined(e[o.displayField])?l=e[o.displayField]:e.name?l=e.name:e.title&&(l=e.title)),x(l)}function F(e){var l=s.data("select2");(o.multiple?l.container.find(".select2-choices input[role='combobox']"):l.focusser).attr("aria-expanded",e)}o.$watch("field.value",function(e){n||angular.isDefined(e)&&d&&(o.multiple?d.select2("val",e.split(",")):d.select2("val",e)).select2("close")}),s.bind("select2-open",function(){F(!0)}),s.bind("select2-close",function(){F(!1)}),e.displayValue&&e.$observe("displayValue",function(e){o.field.value=e}),s.css("opacity",0),S.cancel(l),l=S(function(){var e,l;R.getMessage("Searching...",function(e){t.formatSearching=function(){return e}}),R.getMessage("Loading more results...",function(e){t.formatLoadMore=function(){return e}}),R.getMessage("No matches found",function(e){t.formatNoMatches=function(){return e}}),s.css("opacity",1),s.select2("destroy"),(d=s.select2(t)).bind("change",h),d.bind("select2-selecting",y),d.bind("select2-removing",m),d.bind("sn-atf-setvalue",v),o.$emit("select2.ready",s),(u=s.data("select2").container).find(".select2-focusser").attr("aria-label",p()).attr("aria-controls","select2-drop"),u.find("ul.select2-results").attr("aria-label",o.snAriaLabel||o.field.name||o.table),F(!1),o.multiple||(e=u.find(".select2-search-choice-close"),l=o.field,l=o.snAriaLabel||l.name||o.table,l=R.format(R.getMessage("Clear field {0}"),l),e.attr({"aria-label":l,title:l,tabindex:0,role:"button","data-toggle":"tooltip","data-container":"body"}),e.on("keydown",function(e){13!==e.which&&32!==e.which||s.select2("val","",!0)}),c=u.find(".select2-focusser")[0],l=u.find(".select2-choice")[0],c.parentNode.insertBefore(c,l))})}}}]); angular.module("sn.common.controls").directive("snSelectBasic",["$timeout","i18n",function(l,o){return{restrict:"C",priority:1,require:"?ngModel",scope:{snAllowClear:"@",snSelectWidth:"@",snChoices:"=?"},link:function(e,n,t,c){var a,s;angular.isFunction(n.select2)&&(a=function(){null!==c&&c.$setViewValue(n.val())},s={allowClear:e.selectAllowClear,width:e.selectWidth},o.getMessage("Searching...",function(e){s.formatSearching=function(){return e}}),o.getMessage("No matches found",function(e){s.formatNoMatches=function(){return e}}),o.getMessage("Loading more results...",function(e){s.formatLoadMore=function(){return e}}),n.css("opacity",0),e.selectWidth=e.snSelectWidth||"100%",e.selectAllowClear="true"===e.snAllowClear,l(function(){n.css("opacity",1),n.select2(s),null!==c&&(c.$render=function(){n.select2("val",c.$viewValue),n.val(c.$viewValue)},n.parent().find(".select2-focusser").attr("aria-expanded",!1))}),n.on("change",function(){e.$evalAsync(a)}),e.$watch("snChoices",function(e,n){angular.isDefined(e)&&e!=n&&l(function(){a()})},!0),n.on("select2-open",function(){" "===n.data("select2").search.val()&&n.select2("search",""),n.parent().find(".select2-focusser").attr("aria-expanded",!0)}),n.on("select2-close",function(){n.parent().find(".select2-focusser").attr("aria-expanded",!1)}))}}}]); angular.module("sn.common.controls").directive("snTableReference",["$timeout",function(o){"use strict";return{restrict:"E",replace:!0,scope:{field:"=",snChange:"&",snDisabled:"="},template:'<select ng-disabled="snDisabled" style="min-width: 150px;" name="{{::field.name}}" ng-model="fieldValue" ng-model-options="{getterSetter: true}" ng-options="choice.value as choice.label for choice in field.choices"></select>',controller:["$scope",function(t){t.fieldValue=function(e){return angular.isDefined(e)&&t.snChange({newValue:e}),t.field.value}}],link:function(t,a){var n=null,i=!0,c=t.field,l=!1;function r(){var e=a.parent().find(".select2-focusser");o.cancel(n),n=o(function(){a.css("opacity",1),a.select2("destroy"),a.select2(),0<e.length&&s(),i&&(t.$emit("select2.ready",a),i=!1)})}function s(){var e=a.parent().find("ul.select2-results"),t=a.parent().find(".select2-focusser"),n=a.parent().find(".select2-choice");t.removeAttr("aria-labelledby"),t.attr("aria-label",function(){var e="",t="";t+=c.label,(e=a.parent().find(".select2-choice .select2-chosen").text())&&(t+=" "+e);return t}()),t.attr("aria-required",c.isMandatory()),t.attr("aria-expanded",l),t.attr("aria-owns",e.attr("id")),n.attr("aria-hidden",!0)}a.css("opacity",0),a.bind("select2-open",function(){l=!0,a.parent().find(".select2-focusser").attr("aria-expanded",l)}),a.bind("select2-close",function(){l=!1,a.parent().find(".select2-focusser").attr("aria-expanded",l)}),t.$on("select2.ready",function(){s()}),t.$watch("field.displayValue",function(e,t){void 0!==e&&e!=t&&r()}),r()}}}]); angular.module("sn.common.controls").directive("snFieldReference",["$timeout","$http","nowServer",function(i,l,c){"use strict";return{restrict:"E",replace:!0,scope:{field:"=",snChange:"&",snDisabled:"=",getGlideForm:"&glideForm"},template:'<select ng-disabled="snDisabled" name="{{field.name}}" style="min-width: 150px;" ng-model="fieldValue" ng-model-options="{getterSetter: true}" ng-options="choice.name as choice.label for choice in field.choices"></select>',controller:["$scope",function(t){t.fieldValue=function(e){return angular.isDefined(e)&&t.snChange({newValue:e}),t.field.value},t.$watch("field.dependentValue",function(e,n){angular.isDefined(e)&&(e=c.getURL("table_fields","exclude_formatters=true&fd_table="+e),l.post(e).success(function(e){t.field.choices=e,t.render()}))})}],link:function(t,e){var n=null,l=!0;t.render=function(){i.cancel(n),n=i(function(){e.select2("destroy"),e.select2(),l&&(t.$emit("select2.ready",e),l=!1)})},t.$watch("field.displayValue",function(e,n){void 0!==e&&e!=n&&t.render()}),t.render()}}}]); angular.module("sn.common.controls").directive("snSyncWith",function(){return{restrict:"A",require:"ngModel",link:function(e,n,u){var c=e.$eval(u.snSyncWith),o=e.$eval(u.ngModel);function i(){l(c,o)}function l(n,t){t=t||"";n=g_form.getControl(n);u.snSyncWithValueOutFn&&(t=e.$eval(u.snSyncWithValueOutFn,{text:t})),n.value=t,onChange(n.id)}u.snSyncWithValueInFn&&e.$eval(u.ngModel+"="+u.snSyncWithValueInFn,{text:e.value}),e.$watch(function(){return e.$eval(u.snSyncWith)},function(n,t){n!==c&&(c=n)}),e.$watch(function(){return e.$eval(u.ngModel)},function(n,t){n!==t&&(o=n)}),window.g_form&&(e.$watch(function(){return o},function(n,t){n!==t&&i()}),e.$watch(function(){return c},function(n,t){n!==t&&(t&&l(t,""),n&&i())},!0))}}}); angular.module("sn.common.controls").directive("contenteditable",["$timeout","$sanitize",function(g,v){return{require:"ngModel",link:function(i,a,e,c){var t=i.changehandler,l=(i.usenewline=i.usenewline+""!="false","\n"),o="BR",u="DIV",d="#text",s=new RegExp(String.fromCharCode(160),"g");function n(){var e=function e(t){for(var n="",a=0;a<t.length;a++){var c=t[a],r=!0;switch(c.nodeName){case d:n+=c.nodeValue.replace(s," ");break;case u:n+=l,1==c.childNodes.length&&c.childNodes[0].nodeName==o&&(r=!1);break;case o:n+=i.usenewline?l:""}r&&(n+=e(c.childNodes))}return n}(a[0].childNodes);c.$setViewValue(e)}function r(){n=(n=(n=(n=c.$viewValue)&&null!==n?n:"").replace(/\n/gi,i.usenewline?"<br/>":"")).replace(/ /gi," ");try{"true"==e.contenteditableEscapeHtml&&(n=v(n))}catch(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},n=n.replace(/[&<>"'\/]/g,function(e){return t[e]})}a.html(n)}function f(){a[0].dataset&&(a[0].textContent?a[0].dataset.divPlaceholderContent="true":a[0].dataset.divPlaceholderContent&&delete a[0].dataset.divPlaceholderContent)}i.usenewline||a.keypress(function(e){"13"==e.which&&(i.entercallback&&i.entercallback(a),e.preventDefault())}),a.bind("keyup",function(){i.$apply(function(){n(),f()})}),a.bind("focus",function(){i[e.tracker]&&i[e.tracker]["isDefault_"+e.trackeratt]&&g(function(){var e,t,n;e=a[0],document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):window.getSelection&&(n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))}),a.original=c.$viewValue}),a.bind("blur",function(){i.$apply(function(){n(),f(),a.original!=c.$viewValue&&t&&(i[e.tracker]&&void 0!==i[e.tracker]["isDefault_"+e.trackeratt]&&(i[e.tracker]["isDefault_"+e.trackeratt]=!1),t(i[e.tracker],e.trackeratt))})}),a.bind("paste",function(){i.$apply(function(){return setTimeout(function(){n(),r()},0),!1})}),c.$render=function(){r()},i.$watch("field.readonly",function(){a[0].contentEditable=!i.$eval("field.readonly")}),i.$watch(function(){return{val:a[0].textContent}},function(e,t){e.val!=t.val&&f()},!0),r()}}}]); angular.module("sn.common.controls").directive("snGlyph",function(){"use strict";return{restrict:"E",replace:!0,scope:{char:"@"},template:'<span class="glyphicon glyphicon-{{char}}" />',link:function(a){}}}),angular.module("sn.common.controls").directive("fa",function(){return{restrict:"E",template:'<span class="fa" aria-hidden="true"></span>',replace:!0,link:function(a,t,n){"use strict";var r={};function s(a,s){var e;n.$observe(a,function(){s=s||"fa-"+a,t.removeClass(r[a]),n[a]&&(e=[s,n[a]].join("-"),t.addClass(e),r[a]=e)})}function e(a,s){var e;n.$observe(a,function(){s=s||"fa-"+a,e=a in n&&"false"!==n[a]&&!1!==n[a],t.toggleClass(s,e)})}s("name","fa"),s("rotate"),s("flip"),s("stack"),n.$observe("size",function(){var a;t.removeClass(r.size),"large"===n.size?a="fa-lg":isNaN(parseInt(n.size,10))||(a="fa-"+n.size+"x"),t.addClass(a),r.size=a}),n.$observe("stack",function(){var a;t.removeClass(r.stack),"large"===n.stack?a="fa-stack-lg":isNaN(parseInt(n.stack,10))||(a="fa-stack-"+n.stack+"x"),t.addClass(a),r.stack=a}),e("border"),e("fw"),e("inverse"),e("spin"),t.toggleClass("fa-li",t.parent()&&"LI"===t.parent().prop("tagName")&&t.parent().parent()&&t.parent().parent().hasClass("fa-ul")&&t.parent().children()[0]===t[0]&&"false"!==n.list&&!1!==n.list),n.$observe("alt",function(){var a=n.alt,s=t.next(),e="fa-alt-text";a?(t.removeAttr("alt"),s&&s.hasClass(e)||(t.after('<span class="sr-only fa-alt-text"></span>'),s=t.next()),s.text(a)):s&&s.hasClass(e)&&s.remove()})}}}).directive("faStack",function(){return{restrict:"E",transclude:!0,template:'<span ng-transclude class="fa-stack fa-lg"></span>',replace:!0,link:function(a,s,e){var t,n,r,l={};t="size",e.$observe(t,function(){n=n||"fa-"+t,s.removeClass(l[t]),e[t]&&(r=[n,e[t]].join("-"),s.addClass(r),l[t]=r)}),e.$observe("size",function(){var a;s.removeClass(l.size),"large"===e.size?a="fa-lg":isNaN(parseInt(e.size,10))||(a="fa-"+e.size+"x"),s.addClass(a),l.size=a})}}}); angular.module("sn.common.controls").directive("snImageUploader",["$window","$rootScope","$timeout","getTemplateUrl","i18n","snAttachmentHandler",function(e,l,o,t,i,r){var n=i.getMessage("Drag image or click to select");return{restrict:"E",replace:!0,templateUrl:t("directive.snImageUploader"),transclude:!0,scope:{readOnly:"@",tableName:"@",sysId:"@",fieldName:"@",fieldLabel:"@",onUpload:"&",onDelete:"&",uploadMessage:"@",src:"="},controller:["$scope",function(e){e.uploading=!1,e.getTitle=function(){return"true"!==e.readOnly?n:""}}],link:function(n,t){function a(e){alert(e)}n.onFileSelect=function(e){var t;"true"!==n.readOnly&&0!=e.length&&function(e){if(0!=e.type.indexOf("image"))a(i.getMessage("Please select an image"));else{if(!(0<e.type.indexOf("tiff")))return 1;a(i.getMessage("Please select a common image format such as gif, jpeg or png"))}}(e=e[0])&&(t={sysparm_fieldname:n.fieldName},n.uploading=!0,r.create(n.tableName,n.sysId).uploadAttachment(e,t).then(function(e){o(function(){n.uploading=!1}),n.onUpload&&n.onUpload(e),l.$broadcast("snImageUploader:complete",n.sysId,e)}))},n.openFileSelector=function(e){e.stopPropagation(),t.find("input[type=file]").click()},n.activateUpload=function(e){"true"!==n.readOnly?n.openFileSelector(e):n.showUpload=!n.showUpload},n.deleteAttachment=function(){var e=n.src.split(".")[0];r.deleteAttachment(e).then(function(){n.src=null,n.onDelete&&n.onDelete(),l.$broadcast("snImageUploader:delete",n.sysId,e)})}}}}]); angular.module("sn.common.i18n",["sn.common.glide"]),angular.module("sn.i18n",["sn.common.i18n"]); angular.module("sn.common.i18n").directive("snBindI18n",["i18n","$sanitize",function(t,s){return{restrict:"A",link:function(n,i,e){t.getMessage(e.snBindI18n,function(n){n=s(n);i.append(n)})}}}]); angular.module("sn.common.i18n").directive("nowMessage",["i18n",function(i){return{restrict:"E",priority:0,template:"",replace:!0,compile:function(e,n,t){e=e.attr("value");n.key&&e&&i.loadMessage(n.key,e)}}}]); function _typeof(e){return(_typeof="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})(e)}angular.module("sn.common.i18n").provider("i18n",function(){var f={};function c(e,n){f[e]=n}function a(t){return this.replace(/{([^{}]*)}/g,function(e,n){n=t[n];return"string"==typeof n||"number"==typeof n?n:e})}this.preloadMessages=function(e){angular.forEach(e,function(e,n){c(e,n)})},String.prototype.withValues||(String.prototype.withValues=a),this.$get=["nowServer","$http","$window","$log",function(n,t,e,r){var s=!e.NOW||e.NOW.i18n_debug;function g(e){s&&r.log("i18n: "+e)}function u(g,u,i){var e=n.getURL("message");t.post(e,{messages:g}).success(function(e){var n,t=e.messages;for(n in t)c(n,t[n]);for(var s={},o=i||g,r=0;r<o.length;r++){var a=o[r];s[a]=f[a]}u&&u(s)})}return{getMessage:function(e,n){var t,s,o;return g("getMessage: Checking for "+e),f.hasOwnProperty(e)?(t=f[e],"function"==typeof n&&n(t),g("getMessage: Found: "+e+", message: "+t),t):(g("getMessage: Not found: "+e+", querying server"),o=n,u([s=e],function(){o&&o(f[s])}),e.withValues=a,"function"!=typeof n&&r.warn('getMessage (key="'+e+'"): synchronous use not supported in Mobile or Service Portal unless message is already cached'),e)},format:function(e){return 1==arguments.length?e:2==arguments.length&&"object"===_typeof(arguments[1])?a.call(e,arguments[1]):a.call(e,[].slice.call(arguments,1))},getMessages:function(e,n){g("getMessages: Checking for "+e.join(","));for(var t={},s=[],o=!1,r=0;r<e.length;r++){var a=e[r];f.hasOwnProperty(a)?(t[a]=f[a],g("getMessages: Found "+a+", message: "+t[a])):(g("getMessages: Did not find "+a),s.push(a),o=!0,t[a]=a)}return o?(g("getMessages: Querying server for "+s.join(",")),u(s,n,e)):"function"==typeof n&&(g("getMessages: Found all messages"),n(t)),t},clearMessages:function(){g("clearMessages: clearing messages"),f={}},loadMessage:function(e,n){c(e,n),g("loadMessage: loaded key: "+e+", value: "+n)},preloadMessages:function(){var n=this;angular.element("now-message").each(function(){var e=angular.element(this);n.loadMessage(e.attr("key"),e.attr("value"))})}}}]}); angular.module("sn.common.link",[]); angular.module("sn.common.link").directive("snLinkContent",["$compile","linkContentTypes",function(e,r){"use strict";return{restrict:"E",replace:!0,template:"<span />",scope:{link:"="},link:function(n,i){n.isShowing=function(){return(n.link.isActive||n.link.isUnauthorized)&&!n.link.isPending};var t=r.forType(n.link);i.attr(t,""),i.attr("ng-if","isShowing()"),e(i)(n)}}}]); angular.module("sn.common.link").directive("snLinkContentYoutube",["getTemplateUrl","$sce","inFrameSet",function(e,n,i){"use strict";return{restrict:"A",replace:!0,templateUrl:e("snLinkContentYoutube.xml"),scope:{link:"="},controller:["$scope",function(t){t.playerActive=!1,t.width=i?"248px":"500px",t.height=i?"139px":"281px",t.showPlayer=function(){t.playerActive=!0},t.getVideoEmbedLink=function(){var e;if(t.link.embedLink)return e=t.link.embedLink+"?autoplay=1",n.trustAsHtml("<iframe width='"+t.width+"' height='"+t.height+"' autoplay='1' frameborder='0' allowfullscreen='' src='"+e+"'></iframe>")}}]}}]); angular.module("sn.common.link").directive("snLinkContentSoundcloud",["getTemplateUrl","$sce","inFrameSet",function(e,n,i){"use strict";return{restrict:"A",replace:!0,templateUrl:e("snLinkContentSoundcloud.xml"),scope:{link:"="},controller:["$scope",function(t){t.playerActive=!1,t.width=i?"248px":"500px",t.height=i?"139px":"281px",t.showPlayer=function(){t.playerActive=!0},t.getVideoEmbedLink=function(){var e;if(t.link.embedLink)return e=t.link.embedLink+"&auto_play=true",n.trustAsHtml("<iframe width='"+t.width+"' height='"+t.height+"' autoplay='1' frameborder='0' allowfullscreen='' src='"+e+"'></iframe>")}}]}}]); angular.module("sn.common.link").directive("snLinkContentArticle",["getTemplateUrl",function(n){"use strict";return{restrict:"A",replace:!0,templateUrl:n("snLinkContentArticle.xml"),scope:{link:"="},controller:["$scope",function(i){i.backgroundImageStyle=i.link.imageLink?{"background-image":"url("+i.link.imageLink+")"}:{},i.isVisible=function(){var n=i.link;return!!n.shortDescription||!!n.imageLink},i.hasDescription=function(){var n=i.link;return n.shortDescription&&n.shortDescription!==n.title}}]}}]); angular.module("sn.common.link").directive("snLinkContentError",["getTemplateUrl",function(n){"use strict";return{restrict:"A",replace:!0,templateUrl:n("snLinkContentError.xml"),scope:{link:"="},controller:["$scope",function(n){}]}}]); angular.module("sn.common.link").directive("snLinkContentImage",["getTemplateUrl",function(e){"use strict";return{restrict:"A",replace:!0,templateUrl:e("snLinkContentImage.xml"),scope:{link:"="},controller:["$scope",function(e){}]}}]); angular.module("sn.common.link").directive("snLinkContentAttachment",["getTemplateUrl",function(t){"use strict";return{restrict:"EA",replace:!0,templateUrl:t("snLinkContentAttachment.xml"),scope:{attachment:"=",link:"="},controller:["$scope","$element","snCustomEvent",function(i,a,e){i.attachmentFile=i.attachment||i.link.attachment,i.calcImageSize=function(){var t=i.width,e=i.height,n=a.width()<298?a.width():298;return e<0||t<0?"":(t<e?n<=e&&(t*=n/e,e=n):n<=t&&(e*=n/t,t=n),"height: "+e+"px; width: "+t+"px;")},i.aspectRatioClass=function(){return i.height>i.width?"limit-height":"limit-width"},i.showImage=function(t){9!==t.keyCode&&e.fire("sn.attachment.preview",t,i.attachmentFile.rawData)}}]}}]); angular.module("sn.common.link").directive("snLinkContentRecord",["getTemplateUrl",function(i){"use strict";return{restrict:"A",replace:!0,templateUrl:i("snLinkContentRecord.xml"),scope:{link:"="},controller:["$scope",function(i){i.isTitleVisible=function(){return!i.isDescriptionVisible()&&i.link.title},i.isDescriptionVisible=function(){return i.link.shortDescription},i.hasNoHeader=function(){return!i.isTitleVisible()&&!i.isDescriptionVisible()},i.isUnassigned=function(){return i.link.isTask&&!i.link.avatarID}}]}}]); angular.module("sn.common.link").provider("linkContentTypes",function(){"use strict";var t={record:"sn-link-content-record",attachment:"sn-link-content-attachment",video:"sn-link-content-youtube","music.song":"sn-link-content-soundcloud",link:"sn-link-content-article",article:"sn-link-content-article",website:"sn-link-content-article",image:"sn-link-content-image"};this.$get=function(){return{forType:function(n){return n.isUnauthorized?"sn-link-content-error":t[n.type]||"no-card"}}}}); angular.module("sn.common.mention",[]); angular.module("sn.common.mention").directive("snMentionPopover",["getTemplateUrl","$timeout",function(e,o){"use strict";return{restrict:"E",replace:!0,templateUrl:e("snMentionPopover.xml"),link:function(i,r,n){r.detach().appendTo(document.body),i.dontPositionManually=i.$eval(n.dontpositionmanually)||!1,i.onClick=function(e){angular.element(e.target).closest("#mention-popover").length&&!angular.element(e.target).closest("#direct-message-popover-trigger").length||i.$evalAsync(function(){i.$parent.showPopover=!1,i.$emit("snMentionPopover.showPopoverIsFalse"),i.dontPositionManually&&!i.$eval(n.snavatarpopover)?r.remove():i.$broadcast("sn-avatar-popover-destroy"),angular.element(".popover").each(function(){var e=angular.element(this);e.popover&&e.popover("hide")})})},i.clickListener=o(function(){angular.element("html").on("click.mentionPopover",i.onClick)},0,!1),i.$on("sn-bootstrap-popover.close-other-popovers",i.onClick),i.dontPositionManually||o(function(){var e,n,o=i.$parent&&i.$parent.clickEvent&&i.$parent.clickEvent.pageX?i.$parent.clickEvent.pageX:o||300,t=i.$parent&&i.$parent.clickEvent&&i.$parent.clickEvent.pageY?i.$parent.clickEvent.pageY:t||300;o=o,t=t,e=window.innerHeight,n=window.innerWidth,e=t-r.height()/2<10?10:t+r.height()/2>e?e-r.height()-15:t-r.height()/2,t=o+20+r.width()>n?n-r.width()-15:o+20,r.css("top",e+"px").css("left",t+"px"),r.velocity({opacity:1},{duration:100,easing:"cubic"})})},controller:["$scope","$element","$attrs",function(e,n,o){e.profile=e.$eval(o.profile),e.$on("$destroy",function(){angular.element("html").off("click.mentionPopover",e.onClick),n.remove()})}]}}]); angular.module("sn.common.mention").factory("snMention",["liveProfileID","$q","$http",function(r,t,n){"use strict";var e={};return{retrieveMembers:function(r,a,i){return i&&a&&r?n({url:"/api/now/form/mention/record/"+r+"/"+a,method:"GET",params:{term:i}}).then(function(r){var a=r.data.result,i=[];return angular.forEach(a,function(a){var r;e[a.sys_id]?(a.initials=e[a.sys_id].initials,a.avatar=e[a.sys_id].avatar):(r=n.get("/api/now/ui/user/"+a.sys_id).success(function(r){a.initials=r.result.user_initials,a.avatar=r.result.user_avatar,e[a.sys_id]={initials:a.initials,avatar:a.avatar}}),i.push(r))}),t.all(i).then(function(){return a})}):((r=t.defer()).resolve([]),r.promise)}}}]); var NOW=NOW||{},CustomEventManager=function(e){"use strict";var i=e&&e.events||{},u=!1,v=!1,a=!1,f="NOW.PostMessage",s="true"==="true".toLowerCase(),r="";function o(e,n){n&&"function"==typeof n&&void 0!==e&&(i[e]||(i[e]=[]),i[e].push(n))}function E(e,n){return v&&C("$CustomEventManager firing: "+e+" args: "+arguments.length),m.apply(null,arguments)}function m(){if(!a){var e=Array.prototype.slice.apply(arguments),n=e.shift(),n=i[n];if(n){var t=n.slice();u=!0;for(var o=0,s=t.length;o<s;o++){var r=t[o];if(r&&!1===r.apply(null,e))return u=!1}u=!1}}return!0}function l(){var e=window.self;try{for(;e.CustomEvent.fireEvent&&e!==e.parent&&e.parent.CustomEvent.fireEvent;)e=e.parent}catch(e){}return e}function C(e,n,t){try{var o;n||(n=(o=window.self.location.pathname).substring(o.lastIndexOf("/")+1)),window.self.opener&&window!=window.self.opener?window.self.opener.jslog&&window.self.opener.jslog(e,n,t):parent&&parent.jslog&&C!=parent.jslog?parent.jslog(e,n,t):window.console&&window.console.log&&console.log(e)}catch(e){}}var g={set trace(e){v=!!e},get trace(){return v},set suppressEvents(e){a=!!e},get suppressEvents(){return a},get events(){return i},set events(e){i=e},on:o,un:function(e,n){if(i[e]){for(var t=-1,o=0;o<i[e].length;o++)if(i[e][o]===n){t=o;break}0<=t&&i[e].splice(t,1)}},unAll:function(e){i[e]&&delete i[e]},forward:function(e,n,t){o(e,t),n.addEventListener(e,function(e){m(e.type,this,e)}.bind(g))},isFiring:function(){return u},fireEvent:m,observe:function(e,n){v&&C("$CustomEventManager observing: "+e),o(e,n)},fire:E,fireTop:function(e,n){v&&C("$CustomEventManager firing: "+e+" args: "+arguments.length),m.apply(null,arguments);var t=l();null!==t&&window!==t&&t.CustomEvent.fire(e,n)},fireAll:function(s,r){v&&C("$CustomEventManager firing: "+s+" args: "+arguments.length);var e=l();e!==window.self&&CustomEvent.fireEvent(s,r),function e(n){var t;n.CustomEvent.fireEvent(s,r);for(var o=0;o<n.frames.length;o++)try{(t=n.frames[o])&&t.CustomEvent&&"function"==typeof t.CustomEvent.fireEvent&&e(t)}catch(e){}}(e)},fireToWindow:function(e,n,t,o,s){var r,i;v&&C("$CustomEventManager firing: "+n+" args: "+t.length),o?(o=n,i=t,s=s,(r=e)&&r.postMessage&&(o=JSON.stringify({type:f,eventName:o,args:i}),r.postMessage(o,s))):e.CustomEvent.fireEvent(n,t)},isTopWindow:function(){return l()==window.self},fireUp:function(e,n){for(var t=window;t;)try{if(!1===t.CustomEvent.fireEvent.apply(null,arguments))return;t=t.parent===t?null:t.parent}catch(e){return}},toString:function(){return"CustomEventManager"}};return NOW.registeredPostMessageEvent||window.postMessage&&(window.addEventListener("message",function(e){if(n=e.origin,!s||n===window.location.origin||(n=n,(o=r)&&~o.split(/[\n, ]/).filter(function(e){return e}).map(function(e){return e.toLowerCase()}).indexOf(n.toLowerCase()))){var n,t,o=e.data;try{t=JSON.parse(o.toString())}catch(e){return}!t.type!=f&&E(t.eventName,t.args)}else console.warn("Incoming message ignored due to origin mismatch.")},!1),NOW.registeredPostMessageEvent=!0),g}(NOW.CustomEvent);NOW.CustomEvent=CustomEventManager,"undefined"!=typeof CustomEvent?(CustomEvent.observe=NOW.CustomEvent.observe.bind(NOW.CustomEvent),CustomEvent.fire=NOW.CustomEvent.fire.bind(NOW.CustomEvent),CustomEvent.fireUp=NOW.CustomEvent.fireUp.bind(NOW.CustomEvent),CustomEvent.fireTop=NOW.CustomEvent.fireTop.bind(NOW.CustomEvent),CustomEvent.fireAll=NOW.CustomEvent.fireAll.bind(NOW.CustomEvent),CustomEvent.fireToWindow=NOW.CustomEvent.fireToWindow.bind(NOW.CustomEvent),CustomEvent.on=NOW.CustomEvent.on.bind(NOW.CustomEvent),CustomEvent.un=NOW.CustomEvent.un.bind(NOW.CustomEvent),CustomEvent.unAll=NOW.CustomEvent.unAll.bind(NOW.CustomEvent),CustomEvent.forward=NOW.CustomEvent.forward.bind(NOW.CustomEvent),CustomEvent.isFiring=NOW.CustomEvent.isFiring.bind(NOW.CustomEvent),CustomEvent.fireEvent=NOW.CustomEvent.fireEvent.bind(NOW.CustomEvent),CustomEvent.events=NOW.CustomEvent.events,CustomEvent.isTopWindow=NOW.CustomEvent.isTopWindow.bind(NOW.CustomEvent)):window.CustomEvent=NOW.CustomEvent; angular.module("sn.common.messaging",[]),angular.module("sn.messaging",["sn.common.messaging"]); angular.module("sn.common.messaging").factory("snCustomEvent",function(){"use strict";if(void 0===NOW.CustomEvent)throw"CustomEvent not found in NOW global";return NOW.CustomEvent}); angular.module("sn.common.notification",["sn.common.util","ngSanitize","sn.common.i18n"]); angular.module("sn.common.notification").factory("snNotificationWrapper",["$window","$timeout",function(a,u){"use strict";function f(n,o,i){"function"==typeof i[o]&&(n[o.toLowerCase()]=i[o])}return function(n,o){var i=o.onClick,t=(o.onClick=function(){angular.isFunction(a.focus)&&a.focus(),"function"==typeof i&&i()},{}),c=(o=angular.extend({dir:"auto",lang:"en_US",decay:!0,lifespan:4e3,body:"",tag:"",icon:"/native_notification_icon.png"},o)).onClose,e=(o.onClose=function(){angular.isFunction(t.onclose)&&t.onclose(),angular.isFunction(c)&&c()},new a.Notification(n,o));return f(e,"onShow",o),f(e,"onClick",o),f(e,"onError",o),f(e,"onClose",o),o.decay&&0<o.lifespan&&u(function(){e.close()},o.lifespan),t.close=function(){e.close()},t}}]); angular.module("sn.common.notification").factory("snNotifier",["$window","snNotificationWrapper",function(i,s){"use strict";return function(e){function o(){return i.Notification&&"granted"===i.Notification.permission}var f=[],r=(e=angular.extend({notifyMethods:["native","glide"]},e),{native:function(i,t){{var n;if(o())return(n=s(i,t)).onclose=function(){var i=n;-1<(i=f.indexOf(i))&&f.splice(i,1)},f.push(n),!0}return!1},glide:function(i,t){return!1}});return{notify:function(i,t){t=(t="string"==typeof t?{body:t}:t)||{};for(var n=0,o=e.notifyMethods.length;n<o;n++)if("string"==typeof e.notifyMethods[n]){if(r[e.notifyMethods[n]](i,t))break}else if(e.notifyMethods[n](i,t))break},canUseNativeNotifications:o,clearAllNotifications:function(){for(;0<f.length;)f.pop().close()},requestNotificationPermission:function(){i.Notification&&"default"===i.Notification.permission&&i.Notification.requestPermission()}}}}]); angular.module("sn.common.notification").directive("snNotification",["$timeout","$rootScope",function(t,e){"use strict";return{restrict:"E",replace:!0,template:'<div class="notification-container"></div>',link:function(n,t){n.addNotification=function(n){(n=n||{}).text||(n.text=""),n.classes||(n.classes=""),n.duration||(n.duration=5e3),angular.element("<div/>").qtip({content:{text:n.text,title:{button:!1}},position:{target:[0,0],container:angular.element(".notification-container")},show:{event:!1,ready:!0,effect:function(){angular.element(this).stop(0,1).animate({height:"toggle"},400,"swing")},delay:0,persistent:!1},hide:{event:!1,effect:function(t){angular.element(this).stop(0,1).animate({height:"toggle"},400,"swing")}},style:{classes:"jgrowl "+n.classes,tip:!1},events:{render:function(t,e){e.options.show.persistent||angular.element(this).bind("mouseover mouseout",function(t){clearTimeout(e.timer),"mouseover"!==t.type&&(e.timer=setTimeout(function(){e.hide(t)},n.duration))}).triggerHandler("mouseout")}}})},n.$on("notification.notify",function(t,e){n.addNotification(e)})}}}]); angular.module("sn.common.notification").factory("snNotification",["$document","$templateCache","$compile","$rootScope","$timeout","$q","getTemplateUrl","$http","i18n",function(c,u,s,f,d,l,p,v,n){"use strict";var m,h=[],g={},b={top:20,gap:10,duration:5e3},y=5e3;return{show:function(n,t,e,i,o,r){return $(n,t).then(function(n){return a(n,o,e,r)})},showScreenReaderOnly:function(n,t,e,i,o){return $(n,t,!0).then(function(n){return a(n,o,e)})},hide:x,setOptions:function(n){angular.isObject(n)&&angular.extend(b,n)}};function a(n,t,e,i){var o,r=n,a=i,t=(m||(m=angular.element('<div class="notification-a11y-container sr-only" aria-live="assertive">'),c.find("body").append(m)),c.find(t||"body")),i="elm"+Date.now();return t.append(r),t=b.top+h.length*O(r),C(r,t),r.addClass("visible"),r.attr("id",i),r.find("button").bind("click",function(n){w(r),!h.length&&a&&a.focus()}),r.find("button").focus(),h.push(r),0<b.duration&&(g[i]=d(function(){var n;(n=h.shift())&&x(n)},b.duration)),d(function(){var n=angular.element("<div>").text(r.text());m.append(n),d(function(){n.remove()},y,!1)},0,!1),o=n,(t=e)&&(g[o.attr("id")]=d(function(){w(o)},t)),n}function $(t,e,i){var o,r,n,a,c="icon-info";return i=void 0!==i&&i,"error"==t?c="icon-cross-circle":"warning"==t?c="icon-alert":"success"==t&&(c="icon-check-circle"),r="sn_notification.xml",n=u.get(r),a=l.defer(),n?a.resolve(n):(n=p(r),v.get(n).then(function(n){u.put(r,n.data),a.resolve(n.data)},function(n){return l.reject(n)})),a.promise.then(function(n){return(o=f.$new()).type=t,o.message=e,o.icon=c,o.screenReaderOnly=i,o=s(n)(o),angular.element(o[0])})}function x(n){var t;d.cancel(g[n.attr("id")]),n.removeClass("visible"),n.addClass("hidden"),n.find("button").eq(0).unbind(),n.scope().$destroy(),n.remove(),t=b.top,h.forEach(function(n){C(n,t),t+=O(n)})}function w(n){var t=h.indexOf(n);h.splice(t,1),x(n)}function O(n){return n[0].offsetHeight+b.gap}function C(n,t){n[0].style.top=t+"px"}}]); !function(e,t){if("function"==typeof define&&define.amd)define(["exports","module"],t);else if("undefined"!=typeof exports&&"undefined"!=typeof module)t(exports,module);else{var n={exports:{}};t(n.exports,n),e.autosize=n.exports}}(this,function(e,t){"use strict";function n(e){function t(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),s="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(s)&&(s=0),l()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function o(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){var t=e.style.height,n=o(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="";var i=e.scrollHeight+s;return 0===e.scrollHeight?void(e.style.height=t):(e.style.height=i+"px",u=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),void(r&&(document.documentElement.scrollTop=r)))}function l(){r();var t=Math.round(parseFloat(e.style.height)),o=window.getComputedStyle(e,null),i="content-box"===o.boxSizing?Math.round(parseFloat(o.height)):e.offsetHeight;if(i!==t?"hidden"===o.overflowY&&(n("scroll"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==o.overflowY&&(n("hidden"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==i){a=i;var l=d("autosize:resized");try{e.dispatchEvent(l)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var s=null,u=e.clientWidth,a=null,c=function(){e.clientWidth!==u&&l()},p=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",l,!1),e.removeEventListener("keyup",l,!1),e.removeEventListener("autosize:destroy",p,!1),e.removeEventListener("autosize:update",l,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",p,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",l,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",l,!1),e.addEventListener("autosize:update",l,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:p,update:l}),t()}}function o(e){var t=i.get(e);t&&t.destroy()}function r(e){var t=i.get(e);t&&t.update()}var i="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,o){e.indexOf(n)===-1&&(e.push(n),t.push(o))},delete:function(n){var o=e.indexOf(n);o>-1&&(e.splice(o,1),t.splice(o,1))}}}(),d=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){d=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(l=function(e){return e},l.destroy=function(e){return e},l.update=function(e){return e}):(l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},l.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=l}); angular.module("sn.common.util",["sn.common.auth"]),angular.module("sn.util",["sn.common.util"]); angular.module("sn.common.util").factory("escapeHtml",function(){return function(e){return"string"!=typeof e?"":e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\//g,"/")}}); angular.module("sn.common.util").factory("dateUtils",function(){var e={SYS_DATE_FORMAT:"yyyy-MM-dd",SYS_TIME_FORMAT:"HH:mm:ss",SYS_DATE_TIME_FORMAT:"yyyy-MM-dd HH:mm:ss",MONTH_NAMES:new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),DAY_NAMES:new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat"),LZ:function(e){return(e<0||9<e?"":"0")+e},isDate:function(e,t){return 0!=this.getDateFromFormat(e,t)},compareDates:function(e,t,r,n){e=this.getDateFromFormat(e,t),t=this.getDateFromFormat(r,n);return 0==e||0==t?-1:t<e?1:0},formatDateServer:function(e,t){var r=new GlideAjax("DateTimeUtils"),n=(r.addParam("sysparm_name","formatCalendarDate"),6e4*e.getTimezoneOffset()),e=e.getTime()-n-g_tz_offset;return r.addParam("sysparm_value",e),r.getXMLWait(),r.getAnswer()},formatDate:function(e,t){if(0<t.indexOf("z"))return this.formatDateServer(e,t);t+="";var r,n="",a=0,i="",s=e.getYear()+"",g=e.getMonth()+1,l=e.getDate(),h=e.getDay(),o=e.getHours(),f=e.getMinutes(),u=e.getSeconds(),M=new Object,g=(M.M=g,M.MM=this.LZ(g),M.MMM=this.MONTH_NAMES[g+11],M.NNN=this.MONTH_NAMES[g+11],M.MMMM=this.MONTH_NAMES[g-1],M.d=l,M.dd=this.LZ(l),M.E=this.DAY_NAMES[h+7],M.EE=this.DAY_NAMES[h],M.H=o,M.HH=this.LZ(o),-1!=t.indexOf("w")&&(52<=(l=e.getWeek())&&1==g&&(s=e.getYear(),s--,s+=""),1==l&&12==g&&(s=e.getYear(),s++,s+=""),M.w=l,M.ww=this.LZ(l)),(7+(h+1)-(g_first_day_of_week-1))%7);for(M.D=g=0==g?7:g,s.length<4&&(s=""+(+s+1900)),M.y=""+s,M.yyyy=s,M.yy=s.substring(2,4),M.h=0==o?12:12<o?o-12:o,M.hh=this.LZ(M.h),M.K=11<o?o-12:o,M.k=o+1,M.KK=this.LZ(M.K),M.kk=this.LZ(M.k),M.a=11<o?"PM":"AM",M.m=f,M.mm=this.LZ(f),M.s=u,M.ss=this.LZ(u);a<t.length;){for(r=t.charAt(a),i="";t.charAt(a)==r&&a<t.length;)i+=t.charAt(a++);null!=M[i]?n+=M[i]:n+=i}return n},_isInteger:function(e){for(var t=0;t<e.length;t++)if(-1=="1234567890".indexOf(e.charAt(t)))return!1;return!0},_getInt:function(e,t,r,n){for(var a=n;r<=a;a--){var i=e.substring(t,t+a);if(i.length<r)return null;if(this._isInteger(i))return i}return null},getDateFromFormat:function(e,t){e+="",t+="";for(var r,n,a,i=0,s=0,g="",l=new Date,h=l.getYear(),o=l.getMonth()+1,f=0,u=l.getHours(),M=l.getMinutes(),y=l.getSeconds(),_="",d=!1;s<t.length;){for(r=t.charAt(s),g="";t.charAt(s)==r&&s<t.length;)g+=t.charAt(s++);if("yyyy"==g||"yy"==g||"y"==g){if("yyyy"==g&&(a=n=4),"yy"==g&&(a=n=2),"y"==g&&(n=2,a=4),null==(h=this._getInt(e,i,n,a)))return 0;i+=h.length,2==h.length&&(h=70<h?+h+1900:+h+2e3)}else if("MMM"==g||"NNN"==g){for(var o=0,m=0;m<this.MONTH_NAMES.length;m++){var D=this.MONTH_NAMES[m];if(e.substring(i,i+D.length).toLowerCase()==D.toLowerCase()&&("MMM"==g||"NNN"==g&&11<m)){12<(o=m+1)&&(o-=12),i+=D.length;break}}if(o<1||12<o)return 0}else if("EE"==g||"E"==g)for(m=0;m<this.DAY_NAMES.length;m++){var A=this.DAY_NAMES[m];if(e.substring(i,i+A.length).toLowerCase()==A.toLowerCase()){d&&(0==m||7==m?f+=6:2==m||9==m?f+=1:3==m||10==m?f+=2:4==m||11==m?f+=3:5==m||12==m?f+=4:6!=m&&13!=m||(f+=5)),i+=A.length;break}}else if("MM"==g||"M"==g){if(null==(o=this._getInt(e,i,g.length,2))||o<1||12<o)return 0;i+=o.length}else if("dd"==g||"d"==g){if(null==(f=this._getInt(e,i,g.length,2))||f<1||31<f)return 0;i+=f.length}else if("hh"==g||"h"==g){if(null==(u=this._getInt(e,i,g.length,2))||u<1||12<u)return 0;i+=u.length}else if("HH"==g||"H"==g){if(null==(u=this._getInt(e,i,g.length,2))||u<0||23<u)return 0;i+=u.length}else if("KK"==g||"K"==g){if(null==(u=this._getInt(e,i,g.length,2))||u<0||11<u)return 0;i+=u.length}else if("kk"==g||"k"==g){if(null==(u=this._getInt(e,i,g.length,2))||u<1||24<u)return 0;i+=u.length,u--}else if("mm"==g||"m"==g){if(null==(M=this._getInt(e,i,g.length,2))||M<0||59<M)return 0;i+=M.length}else if("ss"==g||"s"==g){if(null==(y=this._getInt(e,i,g.length,2))||y<0||59<y)return 0;i+=y.length}else if("a"==g){if("am"==e.substring(i,i+2).toLowerCase())_="AM";else{if("pm"!=e.substring(i,i+2).toLowerCase())return 0;_="PM"}i+=2}else if("w"==g||"ww"==g){var w=this._getInt(e,i,g.length,2),d=!0;null!=w&&((c=new Date(h,0,1,0,0,0)).setWeek(parseInt(w,10)),h=c.getFullYear(),o=c.getMonth()+1,f=c.getDate()),i+=(w+="").length}else if("D"==g){if(d){w=this._getInt(e,i,g.length,1);if(null==w||w<=0||7<w)return 0;var c,F=(c=new Date(h,o-1,f,u,M,y)).getDay();0==(w=((w=parseInt(w,10))+g_first_day_of_week-1)%7)&&(w=7),--w<F?w=7-(F-w):w-=F,0<w&&(c.setDate(c.getDate()+w),h=c.getFullYear(),o=c.getMonth()+1,f=c.getDate()),i++}}else if("z"==g)i+=3;else{if(e.substring(i,i+g.length)!=g)return 0;i+=g.length}}if(i!=e.length)return 0;if(2==o)if(h%4==0&&h%100!=0||h%400==0){if(29<f)return 0}else if(28<f)return 0;return(4==o||6==o||9==o||11==o)&&30<f?0:(u<12&&"PM"==_?u=+u+12:11<u&&"AM"==_&&(u-=12),new Date(h,o-1,f,u,M,y).getTime())},parseDate:function(e){for(var t,r=2==arguments.length&&arguments[1],n=(generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d"),monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d"),dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M"),yearFirst=new Array("yyyyw.F","yyw.F"),new Array("generalFormats",r?"dateFirst":"monthFirst",r?"monthFirst":"dateFirst","yearFirst")),a=0;a<n.length;a++)for(var i=window[n[a]],s=0;s<i.length;s++)if(0!=(t=this.getDateFromFormat(e,i[s])))return new Date(t);return null}};return Date.prototype.getWeek=function(){var e,t=new Date(this.getFullYear(),0,1),r=0<=(r=t.getDay()-(g_first_day_of_week-1))?r:r+7,t=Math.floor((this.getTime()-t.getTime()-6e4*(this.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)+1;return r<4?52<(e=Math.floor((t+r-1)/7)+1)?this._checkNextYear(e):e:((e=Math.floor((t+r-1)/7))<1?e=this._lastWeekOfYear():52<e&&(e=this._checkNextYear(e)),e)},Date.prototype._lastWeekOfYear=function(){var e=new Date(this.getFullYear()-1,0,1),t=new Date(this.getFullYear()-1,11,31),r=e.getDay()-(g_first_day_of_week-1),t=Math.floor((t.getTime()-e.getTime()-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)+1;return r<4?Math.floor((t+r-1)/7)+1:Math.floor((t+r-1)/7)},Date.prototype._checkNextYear=function(){var e=new Date(this.getFullYear()+1,0,1).getDay()-(g_first_day_of_week-1);return(e=0<=e?e:e+7)<4?1:53},Date.prototype.setWeek=function(e){e--;var t=new Date(this.getFullYear(),0,1),r=t.getDay()-(g_first_day_of_week-1);0<r&&r<4?(this.setFullYear(t.getFullYear()-1),this.setDate(31-r+1),this.setMonth(11)):3<r&&this.setDate(t.getDate()+(7-r)),this.setDate(this.getDate()+7*e)},e}); angular.module("sn.common.util").service("debounceFn",function(){"use strict";return{debounce:function(t,o,c){var i;return function(){var n=this,u=arguments,e=c&&!i;clearTimeout(i),i=setTimeout(function(){i=null,c||t.apply(n,u)},o),e&&t.apply(n,u)}}}}); angular.module("sn.common.util").factory("unwrappedHTTPPromise",["$q",function(o){"use strict";return function(r){var e,n;return"function"==typeof(e=r).then&&void 0===e.success&&void 0===e.error?r:(n=o.defer(),r.success(function(r){n.resolve(r)}).error(function(r,e){n.reject({data:r,status:e})}),n.promise)}}]); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}angular.module("sn.common.util").constant("angularProcessorUrl","angular.do?sysparm_type="),angular.module("sn.common.util").factory("urlTools",["getTemplateUrl","angularProcessorUrl",function(e,r){"use strict";function o(t,n){n=u(n);return r+t+(n.length?"&"+n:"")}function u(t){var n,e,r,o=[];for(n in t)t.hasOwnProperty(n)&&(e=encodeURIComponent(n),r=t[n]?encodeURIComponent(t[n]):"",o.push(e+"="+r));return o.join("&")}var n=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)/;return{getPartialURL:function(t,n){return t=e(t),n&&(n="string"!=typeof n?u(n):n).length&&(t+="&"+n),window.NOW&&window.NOW.ng_cache_defeat&&(t+="&t="+(new Date).getTime()),t},getURL:function(t,n){var e;return n&&"object"===_typeof(n)?o(t,n):(e=r,e+=t,n&&(e+="&"+n),e)},urlFor:o,getPropertyURL:function(t){return t=r+"get_property&name="+t,t+="&t="+(new Date).getTime()},encodeURIParameters:u,parseQueryString:function(t){var n=(t="?"===(t=t||"").charAt(0)?t.substr(1):t).split("&");if(""===n)return{};n&&-1!=n[0].indexOf("http")&&(n[0]=n[0].split("?")[1]);for(var e={},r=0;r<n.length;r++){var o=n[r].split("=",2);1==o.length?e[o[0]]="":e[o[0]]=decodeURIComponent(o[1].replace(/\+/g," "))}return e},isUrlExternal:function(t){return!!((t=t.match(n))&&t[4]&&0<t[4].length)}}}]); angular.module("sn.common.util").provider("getTemplateUrl",["angularProcessorUrl",function(r){"use strict";var i=0,u={};function n(n){if(0<i){var t,e=!1;if(angular.forEach(u,function(r){e||void 0!==(r=r(n))&&(t=r,e=!0)}),e)return t}return r+"get_partial&name="+n}this.registerHandler=function(r){var n=i;return u[i]=r,i++,function(){delete u[n]}},this.$get=function(){return n}}]); angular.module("sn.common.util").service("snTabActivity",["$window","$timeout","$rootElement","$document",function(r,o,e,i){"use strict";var t=["keydown","DOMMouseScroll","mousewheel","mousedown","touchstart","mousemove","mouseenter","input","focus","scroll"],l=75e3,c=!0,u=0,d=!0,s=void 0,n=void 0,a=!1,f=e.attr("ng-app")||"",m="sn.tabs."+f+".activeTab",v={"tab.primary":[],"tab.secondary":[],"activity.active":[],"activity.idle":[{delay:l,cb:function(){}}]};function y(){return t.join(".snTabActivity ")+".snTabActivity"}r.tabGUID=r.tabGUID||function(e){e=e||32;var t="";for(;t.length<e;)t+=(65536*(1+Math.random()+(new Date).getTime())|0).toString(16).substring(1);return t.substr(0,e)}();var g;function b(n,e){var a=v["activity.idle"][n],i=v["activity.idle"].length;e=e||a.delay,angular.element(r).off(y()),angular.element(r).one(y(),h),i<=n||(s&&o.cancel(s),s=o(function(){u=a.delay,a.cb(),o.cancel(s),s=void 0,angular.element(r).off(y()),angular.element(r).one(y(),h);for(var e=n+1;e<i;e++){var t=v["activity.idle"][e].delay;if(!(t<=a.delay)){b(e,t-a.delay);break}v["activity.idle"][e].cb()}},e,!1))}function h(){angular.element(r).off(y()),s&&(o.cancel(s),s=void 0);v["activity.active"].some(function(e){if(!(e.delay<=u))return!0;e.cb()}),u=0,T(),n&&(o.cancel(n),n=void 0);var e=v["activity.idle"][0].delay;a=!1,n=n||o(p,e,!1),I()}function p(){var e,t;s||(e=v["activity.idle"][0].delay,a?(a=!1,n&&o.cancel(n),n=o(p,e,!1),I()):(t=e,1<v["activity.idle"].length&&(t=v["activity.idle"][1].delay-e),u=e,v["activity.idle"][0].cb(),b(1,t),n=void 0))}function I(){angular.element(r).off(y()),angular.element(r).one(y(),N),angular.element("#gsft_main").on("load.snTabActivity",function(){var e=angular.element(this).attr("src");0!=e.indexOf("/")&&0!=e.indexOf(r.location.origin)&&-1!=e.indexOf("http")||(e=this.contentWindow||this.contentDocument.defaultView,angular.element(e).off(y()),angular.element(e).one(y(),N))}),angular.element("iframe").each(function(e,t){var n=angular.element(t).attr("src");if(n&&(0==n.indexOf("/")||0==n.indexOf(r.location.origin)||-1==n.indexOf("http"))){n=t.contentWindow||t.contentDocument.defaultView;try{angular.element(n).off(y()),angular.element(n).one(y(),N)}catch(e){}}})}function N(){a=!0,T()}function T(e){var t=r.localStorage.getItem(m);if(d=c=!0,o.cancel(s),s=void 0,function(){var e=!1;try{r.localStorage.setItem(m,r.tabGUID),e=!0}catch(e){}return e}()&&t!==r.tabGUID&&!e)for(var n=0,a=v["tab.primary"].length;n<a;n++)v["tab.primary"][n].cb();try{r.localStorage.setItem(m,r.tabGUID)}catch(e){}u&&i[0].hasFocus()&&h()}function w(t,e,n){var a=angular.isObject(e)?e:{delay:l,cb:e};function i(){var e;v[t]&&-1!==(e=function(e,t){for(var n=0,a=e.length;n<a;n++)if(angular.equals(e[n],t))return n;return-1}(v[t],a))&&v[t].splice(e,1)}return v[t]&&(v[t].push(a),v[t].sort(function(e,t){return e.delay-t.delay})),n&&n.$on("$destroy",function(){i()}),i}function D(){0<u&&(u=0,n&&(o.cancel(n),n=void 0)),b(0)}return[{eventName:"visibilitychange",propertyName:"hidden"},{eventName:"mozvisibilitychange",propertyName:"mozHidden"},{eventName:"msvisibilitychange",propertyName:"msHidden"},{eventName:"webkitvisibilitychange",propertyName:"webkitHidden"}].some(function(e){if(angular.isDefined(i[0][e.propertyName]))return g=e,!0}),g&&i.on(g.eventName,function(){d=i[0][g.propertyName]?(s||u||b(0),!1):(T(),!0)}),angular.element(r).on({mouseleave:function(e){null===(angular.isUndefined(e.toElement)?e.relatedTarget:e.toElement)&&i[0].hasFocus()&&b(0)},blur:function(e){T(!0),d=!1,D()},storage:function(e){if(e.originalEvent.key===m&&r.localStorage.getItem(m)!==r.tabGUID){d=c=!1;for(var t=0,n=v["tab.secondary"].length;t<n;t++)v["tab.secondary"][t].cb()}}}),T(!0),I(),n=o(p,l,!1),{on:w,onIdle:function(e,t,n,a){var i,r,o=e;function l(){angular.isFunction(i)&&i(),angular.isFunction(r)&&r()}return angular.isObject(e)&&(o=e.delay,t=e.onIdle||t,n=e.onReturn||n,a=e.scope||a),angular.isFunction(t)?i=w("activity.idle",{delay:o,cb:t}):angular.isFunction(n)&&(i=w("activity.idle",{delay:o,cb:function(){}})),angular.isFunction(n)&&(r=w("activity.active",{delay:o,cb:n})),a&&a.$on("$destroy",function(){l()}),l},setAppName:function(e){m="sn.tabs."+(f=e)+".activeTab",T(!0)},get isPrimary(){return c},get isIdle(){return 0<u},get idleTime(){return u},get isVisible(){return d},get appName(){return f},get defaultIdleTime(){return l},isActive:function(){return this.idleTime<this.defaultIdleTime&&this.isVisible},resetIdleTime:D}}]); angular.module("sn.common.util").factory("ArraySynchronizer",function(){"use strict";function r(){}function c(n,r){var o={},d=[];return o.orderedKeys=d,angular.forEach(r,function(r){var e=r[n];o[e]=r,d.push(e)}),o}return r.prototype={add:function(r,e,n,o){o=o||"bottom";var d=c(r,e),t=c(r,n);angular.forEach(t.orderedKeys,function(r){-1===d.orderedKeys.indexOf(r)&&("bottom"===o?e.push(t[r]):e.unshift(t[r]))})},synchronize:function(r,e,n,o){var d=c(r,e),t=c(r,n);o=void 0===o?[]:o;for(var u,a,i=d.orderedKeys.length-1;0<=i;i--){var f=d.orderedKeys[i];-1===t.orderedKeys.indexOf(f)&&(d.orderedKeys.splice(i,1),e.splice(i,1)),0<o.length&&angular.forEach(o,function(r){t[f]&&d[f][r]!==t[f][r]&&(d[f][r]=t[f][r])})}angular.forEach(t.orderedKeys,function(r){-1===d.orderedKeys.indexOf(r)&&e.push(t[r])}),u=r,a=t.orderedKeys,e.sort(function(r,e){r=a.indexOf(r[u]),e=a.indexOf(e[u]);return e<r?1:r<e?-1:0})}},r}); angular.module("sn.common.util").directive("snBindOnce",["$sanitize",function(t){"use strict";return{restrict:"A",link:function(n,i,e){n=n.$eval(e.snBindOnce),e=t(n);i.append(e)}}}]); angular.module("sn.common.util").directive("snCloak",function(){"use strict";return{restrict:"A",compile:function(n,o){return function(){o.$set("snCloak",void 0),n.removeClass("sn-cloak")}}}}); angular.module("sn.common.util").factory("md5",function(){"use strict";function e(n,r){var t=n[0],u=n[1],o=n[2],e=n[3],t=i(t,u,o,e,r[0],7,-680876936),e=i(e,t,u,o,r[1],12,-389564586),o=i(o,e,t,u,r[2],17,606105819),u=i(u,o,e,t,r[3],22,-1044525330);t=i(t,u,o,e,r[4],7,-176418897),e=i(e,t,u,o,r[5],12,1200080426),o=i(o,e,t,u,r[6],17,-1473231341),u=i(u,o,e,t,r[7],22,-45705983),t=i(t,u,o,e,r[8],7,1770035416),e=i(e,t,u,o,r[9],12,-1958414417),o=i(o,e,t,u,r[10],17,-42063),u=i(u,o,e,t,r[11],22,-1990404162),t=i(t,u,o,e,r[12],7,1804603682),e=i(e,t,u,o,r[13],12,-40341101),o=i(o,e,t,u,r[14],17,-1502002290),u=i(u,o,e,t,r[15],22,1236535329),t=a(t,u,o,e,r[1],5,-165796510),e=a(e,t,u,o,r[6],9,-1069501632),o=a(o,e,t,u,r[11],14,643717713),u=a(u,o,e,t,r[0],20,-373897302),t=a(t,u,o,e,r[5],5,-701558691),e=a(e,t,u,o,r[10],9,38016083),o=a(o,e,t,u,r[15],14,-660478335),u=a(u,o,e,t,r[4],20,-405537848),t=a(t,u,o,e,r[9],5,568446438),e=a(e,t,u,o,r[14],9,-1019803690),o=a(o,e,t,u,r[3],14,-187363961),u=a(u,o,e,t,r[8],20,1163531501),t=a(t,u,o,e,r[13],5,-1444681467),e=a(e,t,u,o,r[2],9,-51403784),o=a(o,e,t,u,r[7],14,1735328473),u=a(u,o,e,t,r[12],20,-1926607734),t=h(t,u,o,e,r[5],4,-378558),e=h(e,t,u,o,r[8],11,-2022574463),o=h(o,e,t,u,r[11],16,1839030562),u=h(u,o,e,t,r[14],23,-35309556),t=h(t,u,o,e,r[1],4,-1530992060),e=h(e,t,u,o,r[4],11,1272893353),o=h(o,e,t,u,r[7],16,-155497632),u=h(u,o,e,t,r[10],23,-1094730640),t=h(t,u,o,e,r[13],4,681279174),e=h(e,t,u,o,r[0],11,-358537222),o=h(o,e,t,u,r[3],16,-722521979),u=h(u,o,e,t,r[6],23,76029189),t=h(t,u,o,e,r[9],4,-640364487),e=h(e,t,u,o,r[12],11,-421815835),o=h(o,e,t,u,r[15],16,530742520),u=h(u,o,e,t,r[2],23,-995338651),t=d(t,u,o,e,r[0],6,-198630844),e=d(e,t,u,o,r[7],10,1126891415),o=d(o,e,t,u,r[14],15,-1416354905),u=d(u,o,e,t,r[5],21,-57434055),t=d(t,u,o,e,r[12],6,1700485571),e=d(e,t,u,o,r[3],10,-1894986606),o=d(o,e,t,u,r[10],15,-1051523),u=d(u,o,e,t,r[1],21,-2054922799),t=d(t,u,o,e,r[8],6,1873313359),e=d(e,t,u,o,r[15],10,-30611744),o=d(o,e,t,u,r[6],15,-1560198380),u=d(u,o,e,t,r[13],21,1309151649),t=d(t,u,o,e,r[4],6,-145523070),e=d(e,t,u,o,r[11],10,-1120210379),o=d(o,e,t,u,r[2],15,718787259),u=d(u,o,e,t,r[9],21,-343485551),n[0]=l(t,n[0]),n[1]=l(u,n[1]),n[2]=l(o,n[2]),n[3]=l(e,n[3])}function f(n,r,t,u,o,e){return r=l(l(r,n),l(u,e)),l(r<<o|r>>>32-o,t)}function c(n){for(var r=[],t=0;t<64;t+=4)r[t>>2]=n.charCodeAt(t)+(n.charCodeAt(t+1)<<8)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+3)<<24);return r}function r(n){for(var r=0;r<n.length;r++)n[r]=function(n){for(var r="",t=0;t<4;t++)r+=u[n>>8*t+4&15]+u[n>>8*t&15];return r}(n[r]);return n.join("")}var i=function(n,r,t,u,o,e,c){return f(r&t|~r&u,n,r,o,e,c)},a=function(n,r,t,u,o,e,c){return f(r&u|t&~u,n,r,o,e,c)},h=function(n,r,t,u,o,e,c){return f(r^t^u,n,r,o,e,c)},d=function(n,r,t,u,o,e,c){return f(t^(r|~u),n,r,o,e,c)},u="0123456789abcdef".split(""),l=function(n,r){return n+r&4294967295};return function(n){return r(function(n){for(var r=n.length,t=[1732584193,-271733879,-1732584194,271733878],u=64;u<=n.length;u+=64)e(t,c(n.substring(u-64,u)));n=n.substring(u-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(u=0;u<n.length;u++)o[u>>2]|=n.charCodeAt(u)<<(u%4<<3);if(o[u>>2]|=128<<(u%4<<3),55<u)for(e(t,o),u=0;u<16;u++)o[u]=0;return o[14]=8*r,e(t,o),t}(n))}}); angular.module("sn.common.util").factory("priorityQueue",function(){"use strict";return function(n){function a(n,r){var t=c[n];c[n]=c[r],c[r]=t}var c=[],f=n||function(n,r){return n-r};return{add:function(n){c.push(n);for(var r,t=c.length-1;0<t&&!(0<=f(c[t],c[r=t-1>>1]));)a(r,t),t=r},poll:function(){var n=c[0],r=c.pop();if(0<c.length){c[0]=r;for(var t,u,e,o=0,i=c.length-1;u=1+(t=1+(o<<1)),e=o,t<=i&&f(c[t],c[e])<0&&(e=t),(e=u<=i&&f(c[u],c[e])<0?u:e)!==o;)a(e,o),o=e}return n},peek:function(){return c[0]},clear:function(){c=[]},inspect:function(){return angular.toJson(c,!0)},get size(){return c.length},get all(){return c},set comparator(n){f=n}}}}); angular.module("sn.common.util").factory("snResource",["$http","$q","priorityQueue","md5",function(e,f,t,c){"use strict";var n=["get","post","put","patch","delete","head","options","jsonp","trace"],d=t(function(e,t){return e.timestamp-t.timestamp}),r={},p=[],o=[];return function(){function s(){var t=d.peek();p.shift(),o.push(t.hash),e(t.config).then(function(e){t.deferred.resolve(e)},function(e){t.deferred.reject(e)}).finally(function(){d.poll(),o.shift(),0<d.size&&s()})}var a=e.defaults.transformRequest,i=e.defaults.transformResponse;return angular.forEach(n,function(u){r[u]=function(e,t){var n=f.defer(),r=n.promise,o=f.defer(),e={method:u,url:e,data:t,transformRequest:a,transformResponse:i,timeout:o.promise},t=c(JSON.stringify(e));return p.push(t),d.add({config:e,deferred:n,timestamp:Date.now(),hash:t}),1===d.size&&s(),r.abort=function(){o.resolve("Request cancelled")},r}}),r.addRequestInterceptor=function(e){a=a.concat([e])},r.addResponseInterceptor=function(e){i=i.concat([e])},r.queueSize=function(){return d.size},r.queuedRequests=function(){return d.all},r}}]); angular.module("sn.common.util").service("snConnectService",["$http","snCustomEvent",function(n,o){"use strict";var t=["/$c.do","/$chat.do"];function e(){var o=function(){try{return window.top.location.pathname}catch(n){return""}}();return t.some(function(n){return o==n})}return{openWithProfile:function(n){e()||window.top.NOW.collaborationFrameset?o.fireTop("chat:open_conversation",n):window.open("$c.do#/with/"+n.sys_id,"_blank")}}}]); !function(){"use strict";function t(t,n,o){void 0===t[n]&&(t[n]=o)}t(String.prototype,"startsWith",function(t){return 0===this.indexOf(t)}),t(String.prototype,"endsWith",function(t){return-1!==this.indexOf(t,this.length-t.length)}),t(Number,"isNaN",function(t){return t!=t}),t(window,"btoa",function(t){for(var n,o,r=String(t),i=0,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";r.charAt(0|i)||(e="=",i%1);c+=e.charAt(63&n>>8-i%1*8)){if(255<(o=r.charCodeAt(i+=.75)))throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|o}return c}),window.console=window.console||{log:function(){}}}(); angular.module("sn.common.util").directive("snFocus",["$timeout",function(c){"use strict";return function(n,u,t){n.$watch(t.snFocus,function(n){!0===n&&c(function(){u[0].focus()})})}}]); angular.module("sn.common.util").directive("snResizeHeight",["$window",function(o){"use strict";return{restrict:"A",link:function(t,i,n){function e(){o.autosize.update(i)}void 0!==o.autosize&&(o.autosize(i),void 0===n.disableValueWatcher&&t.$watch(function(){return i.val()},function(t,i){t!==i&&e()}),i.on("input.resize",e()),t.$on("$destroy",function(){o.autosize.destroy(i)}),"trim"===n.snTextareaAutosizer&&i.on("blur",function(){i.val(i.val().trim()),e()}))}}}]); angular.module("sn.common.util").directive("snBlurOnEnter",function(){"use strict";return function(n,e){e.bind("keydown keypress",function(n){13===n.which&&(e.blur(),n.preventDefault())})}}); angular.module("sn.common.util").directive("snStickyHeaders",function(){"use strict";return{restrict:"A",transclude:!1,replace:!1,link:function(s,e,t){e.addClass("sticky-headers");var i,n=e.find("[sn-sticky-scroll-container]");function a(){"false"!==t.snStickyHeaders?angular.forEach(i,function(s){var s=angular.element(s),e=s.find("[sn-sticky-header]"),t=s.position().top+s.outerHeight();s.addClass("sticky-container"),t<s.outerHeight()&&t>-e.outerHeight()?(s.css("padding-top",e.outerHeight()),e.css("width",e.outerWidth()),e.removeClass("sticky-header-disabled").addClass("sticky-header-enabled")):(s.css("padding-top",""),e.css("width",""),e.removeClass("sticky-header-enabled").addClass("sticky-header-disabled"))}):(e.find("[sn-sticky-container]").removeClass("sticky-container"),e.find("[sn-sticky-container]").css("padding-top",""),e.find("[sn-sticky-header]").css("width",""),e.find("[sn-sticky-header]").removeClass("sticky-header-enabled").addClass("sticky-header-disabled"))}n.addClass("sticky-scroll-container"),s.$watch(function(){return n.find("[sn-sticky-header]").addClass("sticky-header"),i=e.find("[sn-sticky-container]"),t.snStickyHeaders},a),s.$watch(function(){return n[0].scrollHeight},a),n.on("scroll",a)}}}); angular.module("sn.common.util").directive("snBanner",["getTemplateUrl","$window","$http",function(n,r,t){"use strict";function i(n,e){e.$emit(n)}return{restrict:"E",templateUrl:n("sn_banner.xml"),scope:{bannerApiUrl:"="},controller:["$scope",function(a){a.isIOS=!!navigator.userAgent.match(/iPhone; CPU iPhone OS ([0-9_]*)/),a.closeBanner=function(){a.banner.show=!1,r.localStorage.setItem("mobileBannerDismissed",Date.now()),i("banner.closed",a)},a.openUrl=function(){r.open(a.banner.nativeAppUrl,"_blank")},a.$watch("bannerApiUrl",function(n,e){n&&n!==e&&(e=n,a.banner={},function(){var n=r.localStorage.getItem("mobileBannerDismissed"),e=!1;return n&&((Date.now()-n)/864e5<1?e=!0:r.localStorage.removeItem("mobileBannerDismissed")),e}()||navigator.userAgent.match(/SnMobile/i)||navigator.userAgent.match(/ServiceNow/i)?a.banner.show=!1:t.get(e).then(function(n){n=n.data;n.BannerDetails?(a.banner.show=!0,a.banner.icon=n.BannerDetails.IconPath,a.banner.name=n.BannerDetails.Name,a.banner.description=n.BannerDetails.Description,a.banner.nativeAppUrl=n.BannerDetails.Ulink,i("banner.opened",a)):(a.banner.show=!1,i("banner.closed",a))}))})}]}}]); angular.module("sn.common.ui",["sn.common.messaging"]); angular.module("sn.common.ui.popover",[]); angular.module("sn.common.ui.popover").directive("snBindPopoverSelection",["snCustomEvent",function(e){"use strict";return{restrict:"A",controller:["$scope","$element","$attrs","snCustomEvent",function(d,e,o,l){l.observe("list.record_select",function(e,l){var i;e&&l&&(l.stopPropagation(),l=(d.field||o).ref,e.ref===l&&(window.g_form&&(o.addOption?addGlideListChoice("select_0"+o.ref,e.value,e.displayValue):(l=(void 0===o.ref?e:o).ref,window.g_form._setValue(l,e.value,e.displayValue),l=e.value,window.DerivedFields&&((i=new DerivedFields((d.field||o).ref)).clearRelated(),i.updateRelated(l)))),d.field&&(d.field.value=e.value,d.field.displayValue=e.displayValue)))})}]}}]); angular.module('sn.common.ui.popover').directive('snComplexPopover', function(getTemplateUrl, $q, $http, $templateCache, $compile, $timeout){ "use strict"; return { restrict: 'E', replace:true, templateUrl: function(elem, attrs){ return getTemplateUrl(attrs.buttonTemplate); }, controller: function($scope, $element, $attrs, $q, $document, snCustomEvent, snComplexPopoverService){ $scope.type = $attrs.complexPopoverType || "complex_popover"; if ($scope.closeEvent){ snCustomEvent.observe($scope.closeEvent, destroyPopover); $scope.$on($scope.closeEvent, destroyPopover); } $scope.$parent.$on('$destroy', destroyPopover); $scope.$on('$destroy', function() { snCustomEvent.un($scope.closeEvent, destroyPopover); }); var newScope; var open; var popover; var content; var popoverDefaults = { container: 'body', html: true, placement: 'auto', trigger: 'manual', template: '<div class="complex_popover popover" role="dialog"><div class="arrow"></div><div class="popover-content"></div></div>' }; var popoverConfig = angular.extend(popoverDefaults, $scope.popoverConfig); $scope.loading = false; $scope.initialized = false; $scope.popOverDisplaying = false; $scope.onDownKey = function(event) { if (!event) return; var downArrowKey = 40; if (event.keyCode === downArrowKey || event.key === 'ArrowDown') $scope.togglePopover(event); }; $scope.togglePopover = function(event) { if (!open){ showPopover(event); } else { destroyPopover(); } $scope.popOverDisplaying = !$scope.popOverDisplaying; }; function showPopover(e) { if ($scope.loading) return; $scope.$toggleButton = angular.element(e.target); $scope.loading = true; $scope.$emit('list.toggleLoadingState', true); _getTemplate() .then(_insertTemplate) .then(_createPopover) .then(_bindHtml) .then(function(){ $scope.initialized = true; if (!$scope.loadEvent) _openPopover(); }); } function destroyPopover() { if (!newScope) return; $scope.$toggleButton.on('hidden.bs.popover', function(){ open = false; $scope.$toggleButton.data('bs.popover').$element.removeData('bs.popover').off('.popover'); $scope.$toggleButton = null; snCustomEvent.fire('hidden.complexpopover.' + $scope.ref); }); $scope.$toggleButton.popover('hide'); snCustomEvent.fire('hide.complexpopover.' + $scope.ref, $scope.$toggleButton); newScope.$broadcast('$destroy'); newScope.$destroy(); newScope = null; $scope.initialized = false; angular.element(popoverConfig.container).off({ 'keydown': keyDownHandler }); angular.element(window).off({ 'click': complexHtmlHandler }); } function _getTemplate() { return snComplexPopoverService.getTemplate(getTemplateUrl($attrs.template)); } function _createPopover() { $scope.$toggleButton.popover(popoverConfig); return $q.when(true); } function _insertTemplate(response) { newScope = $scope.$new(); if ($scope.loadEvent) newScope.$on($scope.loadEvent, _openPopover); content = $compile(response.data)(newScope); popoverConfig.content = content; newScope.open = true; snCustomEvent.fire('inserted.complexpopover.' + $scope.ref, $scope.$toggleButton); return $q.when(true); } function _bindHtml() { angular.element(popoverConfig.container).on({ 'keydown': keyDownHandler }); angular.element(window).on({ 'click': complexHtmlHandler }); return $q.when(true); } function complexHtmlHandler(e) { var parentComplexPopoverScope = angular.element(e.target).parents('.popover-content').children().scope(); if (parentComplexPopoverScope && (parentComplexPopoverScope.type = "complex_popover") && $scope.type === "complex_popover") return; if (!open || angular.element(e.target).parents('html').length === 0) return; if ($scope.initialized && !$scope.loading && !$scope.$toggleButton.is(e.target) && content.parents('.popover').has(angular.element(e.target)).length === 0) { _eventClosePopover(e); destroyPopover(e); } } function keyDownHandler(e) { if (e.keyCode != 27) return; if (!open || angular.element(e.target).parents('html').length === 0) return; if ($scope.initialized && !$scope.loading && !$scope.$toggleButton.is(e.target) && content.parents('.popover').has(angular.element(e.target)).length > 0) { _eventClosePopover(e); destroyPopover(); } } function _eventClosePopover(e) { e.preventDefault(); e.stopPropagation(); } function createAndActivateFocusTrap(popover) { var deferred = $q.defer(); if (!window.focusTrap) { deferred.reject('Focus trap not found'); } else { if (!$scope.focusTrap) { $scope.focusTrap = window.focusTrap(popover, { clickOutsideDeactivates: true }); } try { $scope.focusTrap.activate({ onActivate: function() { deferred.resolve(); } }); } catch(e) { console.warn("Unable to activate focus trap", e); } } return deferred.promise; } function deactivateAndDestroyFocusTrap() { var deferred = $q.defer(); if (!$scope.focusTrap) { deferred.reject("Focus trap not found"); } else { try { $scope.focusTrap.deactivate({ returnFocus: false, onDeactivate: function () { deferred.resolve(); } }); } catch (e) { console.warn("Unable to deactivate focus trap", e); } $scope.focusTrap = null; } return deferred.promise; } function _openPopover() { if (open) { return; } open = true; $timeout(function() { $scope.$toggleButton.popover('show'); $scope.loading = false; snCustomEvent.fire('show.complexpopover.' + $scope.ref, $scope.$toggleButton); $scope.$toggleButton.on('shown.bs.popover', function(evt) { var popoverObject = angular.element(evt.target).data('bs.popover'), $tooltip, popover; $tooltip = popoverObject && popoverObject.$tip; popover = $tooltip && $tooltip[0]; if (popover) { createAndActivateFocusTrap(popover); } snCustomEvent.fire('shown.complexpopover.' + $scope.ref, $scope.$toggleButton); var element = document.querySelector('.filter-accordion-title'); if (element) element.focus(); }); $scope.$toggleButton.on('hide.bs.popover', function () { deactivateAndDestroyFocusTrap().finally(function() { $scope.$toggleButton.focus(); }); }); }, 0 ); } } }; }); angular.module("sn.common.ui.popover").service("snComplexPopoverService",["$http","$q","$templateCache",function(t,e,n){"use strict";return{getTemplate:function(e){return t.get(e,{cache:n})}}}]); angular.module("sn.common.ui").directive("snConfirmModal",["getTemplateUrl",function(e){return{templateUrl:e("sn_confirm_modal.xml"),restrict:"E",replace:!0,transclude:!0,scope:{config:"=?",modalName:"@",title:"@?",message:"@?",cancelButton:"@?",okButton:"@?",alertButton:"@?",cancel:"&?",ok:"&?",alert:"&?"},link:function(e,n){n.find(".modal").remove()},controller:["$scope","$rootScope",function(t,n){function e(e,n){return{fn:e,text:n}}t.config=t.config||{};var o,c={cancelButton:new e("cancel","Cancel"),okButton:new e("ok","OK"),alertButton:new e("alert","Close"),getText:function(e){e=this[e];if(e&&t.get(e.fn))return e.text}};function a(e){var n=t.get(e);return n?(angular.isFunction(n)&&n(),1):c.getText(e)}function r(e){return function(){o=!0,n.$broadcast("dialog."+t.config.modalName+".close"),a(e)}}t.get=function(e){if(t.config[e])return t.config[e];if(!t[e]){var n=c.getText(e);if(n)return t.config[e]=n}return t.config[e]=t[e]},t.get("modalName")||(t.config.modalName="confirm-modal"),t.cancelPressed=r("cancel"),t.okPressed=r("ok"),t.alertPressed=r("alert"),t.$on("dialog."+t.get("modalName")+".opened",function(){o=!1,t.isOpen=!0}),t.$on("dialog."+t.get("modalName")+".closed",function(){t.isOpen=!1,o||a("cancel")||a("alert")||a("ok")})}]}}]); angular.module("sn.common.ui").directive("contextMenu",["$document","$window","snCustomEvent",function(a,c,o){var r,u,l,i=angular.element("body").get(0).scrollHeight,s=0;function g(a,o,e){var n,t,r,l,i;u.empty(),angular.forEach(e,function(n){var e,t=angular.element('<li role="presentation">');null===n?t.addClass("divider"):((e=angular.element('<a role="menuitem" href="javascript:void(0)">')).text("string"==typeof n[0]?n[0]:n[0].call(a,a)),t.append(e),t.on("click",function(e){e.preventDefault(),a.$apply(function(){p(o),n[1].call(a,a)})})),u.append(t)}),e=u,!(n=o).pageX&&n.originalEvent.changedTouches&&(n=n.originalEvent.changedTouches[0]),t=(s=0===s?24:s)*e.children().length,r=n.pageX,l=n.pageY,r||(r=(i=n.target.getBoundingClientRect()).left+angular.element(n.target).width(),l=i.top+angular.element(n.target).height()),i=r+150>=c.innerWidth?r-150:r,n=l+t>=c.innerHeight?l-t:l,e.css({display:"block",position:"absolute",left:i,top:n})}function d(e,n,t){angular.element(n.currentTarget).addClass("context"),(r=angular.element("<div>",{class:"dropdown clearfix context-dropdown open"})).on("click",function(e){angular.element(e.target).hasClass("dropdown")&&p(n)}),r.on("contextmenu",function(e){e.preventDefault(),p(e)}),r.on("keydown",function(e){27!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),p(e))}),r.css({position:"absolute",top:0,height:angular.element("body").get(0).scrollHeight,left:0,right:0,zIndex:9999}),a.find("body").append(r),u=angular.element("<ul>",{class:"dropdown-menu",role:"menu"}),g(e,n,t),r.append(u),document.activeElement,!l&&window.focusTrap&&(l=focusTrap(r[0],{focusOutsideDeactivates:!0,clickOutsideDeactivates:!0})).activate(),r.data("resizeHandler",function(){i=angular.element("body").get(0).scrollHeight,r.css("height",i)}),o.observe("partial.page.reload",r.data("resizeHandler"))}function p(e){e&&(angular.element(e.currentTarget).removeClass("context"),e=angular.element(".context-dropdown"),angular.forEach(e,function(e){o.un("partial.page.reload",angular.element(e).data("resizeHandler")),angular.element(e).remove()}),l&&window.focusTrap&&(l.deactivate(),l=null))}return function(o,a,r){a.on("contextmenu",function(e){e.ctrlKey||angular.element(a).attr("context-type")||s(e)}),a.on("click",u),a.on("keydown",function(e){var n,t;32==e.keyCode?(n=e,(t=angular.element(n.target)).is("button, [role=button]")?u(n):t.hasClass("list-edit-cursor")&&s(n)):13===e.keyCode&&u(e)});var l,i,c=!1;function u(e){var n=angular.element(a),t=angular.element(e.target);(n.attr("context-type")||t.hasClass("context-menu-click"))&&s(e)}function s(n){o.$apply(function(){var a=n,e=a.target.tagName;if("INPUT"!=e&&"SELECT"!=e&&"BUTTON"!=e){var t=o.$eval(r.contextMenu,{event:a});if(t instanceof Array)0<t.length&&(a.stopPropagation(),a.preventDefault(),o.$watch(function(){return t},function(e,n){e!==n&&g(o,a,t)},!0),d(o,a,t));else{if(void 0===t||"function"!=typeof t.then)throw'"'+r.contextMenu+'" is not an array or promise';a.stopPropagation(),a.preventDefault(),t.then(function(e){var t=e;if(!(0<t.length))throw'"'+r.contextMenu+'" is not an array or promise';o.$watch(function(){return t},function(e,n){e!==n&&g(o,a,t)},!0),d(o,a,t)})}}window.getSelection&&(window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges?window.getSelection().removeAllRanges():document.selection&&document.selection.empty())})}a.on("touchstart",function(e){i={x:e.originalEvent.changedTouches[0].screenX,y:e.originalEvent.changedTouches[0].screenY}}),a.on("touchend",function(e){var n=Math.abs(e.originalEvent.changedTouches[0].screenX-i.x),t=Math.abs(e.originalEvent.changedTouches[0].screenY-i.y);15<n||15<t?i=null:c?(c=!1,clearTimeout(l),s(e),e.preventDefault()):(c=!0,e.preventDefault(),l=setTimeout(function(){c=!1,e.target&&e.target.click()},300))})}}]); angular.module("sn.common.ui").directive("snDialog",["$timeout","$rootScope","$document",function(s,c,r){"use strict";return{restrict:"AE",transclude:!0,scope:{modal:"=?",disableAutoFocus:"=?",classCheck:"="},replace:!0,template:'<dialog ng-keydown="escape($event)"><div ng-click="onClickClose()" title="Close" class="close-button icon-button icon-cross" tabindex="-1"></div></dialog>',link:function(l,a,o,e,n){var i={},t=null;l.isOpen=function(){return a[0].open},n(a.scope().$new(),function(e,n){a.prepend('<i class="sn-dialog-focus-trap-boundary" tabindex="0" ></i>'),a.append(e),a.append('<i class="sn-dialog-focus-trap-boundary" tabindex="0" ></i>'),i=n}),a.click(function(e){if(e.stopPropagation(),e.offsetX<0||e.offsetX>a[0].offsetWidth||e.offsetY<0||e.offsetY>a[0].offsetHeight)if(l.classCheck){for(var n=l.classCheck.split(","),t=!1,o=0;o<n.length;o++)0<angular.element(e.target).closest(n[o]).length&&(t=!0);t||l.onClickClose()}else l.onClickClose()}),l.show=function(){var e=a[0];e.showModal,dialogPolyfill.registerDialog(e),e.setDisableAutoFocus(l.disableAutoFocus),l.modal?e.showModal():e.show(),angular.element(e).hasClass("sn-alert")||s(function(){e.dialogPolyfillInfo&&e.dialogPolyfillInfo.backdrop?angular.element(e.dialogPolyfillInfo.backdrop).one("click",function(e){l.classCheck&&0!=angular.element(e.srcElement).closest(l.classCheck).length||l.onClickClose()}):r.on("click",function(e){l.classCheck&&0!=angular.element(e.srcElement).closest(l.classCheck).length||l.onClickClose()})}),a.find(".btn-primary").eq(0).focus()},l.setPosition=function(e){e=l.getContextData(e);e&&a&&a[0]&&(e.position&&(a[0].style.top=e.position.top+"px",a[0].style.left=e.position.left+"px",a[0].style.margin="0px"),e.dimensions&&(a[0].style.width=e.dimensions.width+"px",a[0].style.height=e.dimensions.height+"px"))},l.$on("dialog."+o.name+".move",function(e,n){l.setPosition(n)}),l.$on("dialog."+o.name+".show",function(e,n){l.setPosition(n),l.setKeyEvents(n),!0===l.isOpen()?l.close():l.show(),angular.element(".sn-dialog-menu").each(function(e,n){var t=angular.element(this).attr("name");if(t!=o.name&&!angular.element(this).attr("open"))return!0;t!=o.name&&angular.element(this).attr("open")&&c.$broadcast("dialog."+t+".close")}),t||(t=function(l){function a(e,n){return window.tabbable?window.tabbable(e,n):[]}function e(o){return function(e){var n,t=a(l,'iframe, input, select, a[href], textarea, button, [tabindex]:not(.sn-dialog-focus-trap-boundary), [contenteditable]:not([contenteditable="false"])');0!==t.length&&(t="IFRAME"==(t=o?t[t.length-1]:t[0]).tagName&&0<(n=a(t.contentDocument)).length?o?n[n.length-1]:n[0]:t).focus()}}var n=l.querySelectorAll(".sn-dialog-focus-trap-boundary"),t=n[0],o=n[1],i=null,s=e(!0),c=e(!1);return{activate:function(){i=document.activeElement,t.addEventListener("focusin",s),o.addEventListener("focusin",c)},deactivate:function(){i&&i.focus(),t.removeEventListener("focusin",s),o.removeEventListener("focusin",c)}}}(a[0])).activate()}),l.onClickClose=function(){l.isOpen()&&c.$broadcast("dialog."+o.name+".close")},l.escape=function(e){27===e.keyCode&&l.onClickClose()},l.close=function(){a[0].close(),l.removeListeners(),t&&(t.deactivate(),t=null)},l.ok=function(e){e.ok(),l.removeListeners()},l.cancel=function(e){e.cancel(),l.removeListeners()},l.removeListeners=function(){a[0].removeEventListener("ok",l.handleContextOk,!1),a[0].removeEventListener("cancel",l.handleContextCancel,!1)},l.setKeyEvents=function(e){var n=l.getContextData(e);n&&n.cancel&&(l.handleContextOk=function(){l.ok(n)},l.handleContextCancel=function(){l.cancel(n)},a[0].addEventListener("ok",l.handleContextOk,!1),a[0].addEventListener("cancel",l.handleContextCancel,!1))},l.getContextData=function(e){var n=o.context,t=null;return n&&e&&n in e&&(t=e[n],i[n]=t),t},l.$on("dialog."+o.name+".close",l.close)}}}]); angular.module("sn.common.ui").directive("snFlyout",["getTemplateUrl",function(e){"use strict";return{restrict:"E",transclude:!0,replace:"true",templateUrl:e("sn_flyout.xml"),scope:!0,link:function(o,n,e){o.open=!1,o.more=!1,o.position=e.position||"left",o.flyoutControl=e.control,o.register=e.register;function t(){s[a]=-l,o.open?n.css(a,0):n.css(a,-l)}var i=angular.element(".flyout-body",n),r=angular.element(".flyout-header",n),l=(angular.element(".flyout-tabs",n),0),a=o.position,u={duration:800,easing:"easeOutBounce"},s={};o.flyoutControl&&($(".flyout-handle",n).hide(),(e=angular.element("#"+o.flyoutControl)).click(function(){angular.element(this).trigger("snFlyout.open")}),e.on("snFlyout.open",function(){o.$apply(function(){o.open=!o.open})}));o.$watch("open",function(e,t){e!==t&&(o.open?s[a]=0:"left"===o.position||"right"===o.position?s[a]=-i.outerWidth():s[a]=-i.outerHeight(),n.velocity(s,u))}),o.$watch("more",function(e,t){e!==t&&(e={},e=o.more?(n.addClass("fly-double"),{width:2*i.outerWidth()}):(n.removeClass("fly-double"),{width:i.outerWidth()/2}),i.velocity(e,u),r.velocity(e,u))}),"left"===o.position||"right"===o.position?o.$watch(n[0].offsetWidth,function(){n.addClass("fly-from-"+o.position),l=i.outerWidth(),t()}):"top"!==o.position&&"bottom"!==o.position||o.$watch(n[0].offsetWidth,function(){n.addClass("fly-from-"+o.position),l=i.outerHeight()+r.outerHeight(),t()}),o.$on(o.register+".bounceTabByIndex",function(e,t){o.bounceTab(t)}),o.$on(o.register+".bounceTab",function(e,t){o.bounceTab(o.tabs.indexOf(t))}),o.$on(o.register+".selectTabByIndex",function(e,t){o.selectTab(o.tabs[t])}),o.$on(o.register+".selectTab",function(e,t){o.selectTab(t)})},controller:["$scope","$element",function(i,r){var l,a;function u(t){t.queue("tabBounce",function(e){t.velocity({width:["2.5rem","2.125rem"],backgroundColorRed:[a[0],l[0]],backgroundColorGreen:[a[1],l[1]],backgroundColorBlue:[a[2],l[2]]},{easing:"easeInExpo",duration:250}),e()})}function s(t){t.queue("tabBounce",function(e){t.velocity({width:["2.125rem","2.5rem"],backgroundColorRed:[l[0],a[0]],backgroundColorGreen:[l[1],a[1]],backgroundColorBlue:[l[2],a[2]]},{easing:"easeInExpo",duration:250}),e()})}i.tabs=[],i.selectTab=function(e){var t;i.selectedTab&&(i.selectedTab.selected=!1),e.selected=!0,i.selectedTab=e,(e=i.tabs.indexOf(e))<0||e>=i.tabs.length||!i.tabs[e].highlighted||((t=r.find(".flyout-tab").eq(e)).velocity({width:["2.125rem","2.5rem"]},{easing:"easeInExpo",duration:250}),t.css("backgroundColor",""),i.tabs[e].highlighted=!1)},i.bounceTab=function(e){if(!(e>=i.tabs.length||e<0)){var t=i.tabs[e];if(!t.selected){var o=r.find(".flyout-tab").eq(e);if(!l){l=o.css("backgroundColor").match(/[0-9]+/g);for(var n=0;n<l.length;n++)l[n]=parseInt(l[n],10)}a=a||function(e){{var t;t="string"==typeof e?e.match(/[0-9]+/g):e.slice(0)}for(var o=0;o<t.length;o++)t[o]=255-parseInt(t[o],10);return t}(l),t.highlighted&&s(o);for(n=0;n<2;n++)u(o),s(o);u(o),o.dequeue("tabBounce"),t.highlighted=!0}}},i.toggleOpen=function(){i.open=!i.open},this.addTab=function(e){i.tabs.push(e),1===i.tabs.length&&i.selectTab(e)}}]}}]).directive("snFlyoutTab",function(){"use strict";return{restrict:"E",require:"^snFlyout",replace:!0,scope:!0,transclude:!0,template:"<div ng-show='selected' ng-transclude='' style='height: 100%'></div>",link:function(e,t,o,n){n.addTab(e)}}}); angular.module("sn.common.ui").directive("snModal",["$timeout","$rootScope",function(c,t){"use strict";return{restrict:"AE",transclude:!0,scope:{},replace:!0,template:'<div tabindex="-1" aria-modal="true" aria-hidden="true" class="modal" role="dialog"></div>',link:function(a,i,r,e,n){var d={};function o(e){return function(a){t.$broadcast("dialog."+r.name+"."+e,a)}}n(i.scope().$new(),function(a,e){i.append(a),i.append('<i class="focus-trap-boundary-south" tabindex="0"></i>'),d=e}),a.$on("dialog."+r.name+".show",function(a,e){if(!s()){var n,o=r.context,t=null;for(n in o&&e&&o in e&&(t=e[o],d[o]=t),c(function(){angular.element(".sn-popover-basic").each(function(){var a=angular.element(this);angular.element(a.attr("data-target")).is(":visible")&&a.popover("hide")})}),i.modal("show"),i.attr("aria-hidden","false"),l)l.hasOwnProperty(n)&&i.on(n,l[n]);"true"==r.moveBackdrop&&((o=(e=i).data("bs.modal").$backdrop)&&e.after(o.remove()))}}),a.$on("dialog."+r.name+".close",function(){if(s())for(var a in i.modal("hide"),i.attr("aria-hidden","true"),l)l.hasOwnProperty(a)&&i.off(a,l[a])});var l={"shown.bs.modal":o("opened"),"hide.bs.modal":o("hide"),"hidden.bs.modal":o("closed")};function s(){return i.hasClass("in")}}}}]); angular.module("sn.common.ui").directive("snModalShow",function(){"use strict";return{restrict:"A",link:function(n,o,i){o.click(function(){n.$broadcast("dialog."+i.snModalShow+".show")})}}}); angular.module("sn.common.ui").directive("snTabs",function(){"use strict";return{restrict:"E",transclude:!0,replace:"true",scope:{tabData:"="},link:function(t,e,n){t.tabClass=n.tabClass,t.register=n.register,n.$observe("register",function(e){t.register=e,t.setupListeners()}),t.bounceTab=function(){angular.element()}},controller:"snTabs"}}).controller("snTabs",["$scope","$rootScope",function(n,s){n.selectedTabIndex=0,n.tabData[n.selectedTabIndex].selected=!0,n.setupListeners=function(){n.$on(n.register+".selectTabByIndex",function(e,t){n.selectTabByIndex(e,t)})},n.selectTabByIndex=function(e,t){t!==n.selectedTabIndex&&(e.stopPropagation&&e.stopPropagation(),n.tabData[n.selectedTabIndex].selected=!1,n.tabData[t].selected=!0,n.selectedTabIndex=t,s.$broadcast(n.register+".selectTabByIndex",n.selectedTabIndex))}}]).directive("snTab",function(){"use strict";return{restrict:"E",transclude:!0,replace:"true",scope:{tabData:"=",index:"="},template:"",controller:"snTab",link:function(t,e,n){t.register=n.register,n.$observe("register",function(e){t.register=e,t.setupListeners()}),t.bounceTab=function(){alert("Bounce Tab at Index: "+t.index)}}}}).controller("snTab",["$scope",function(s){s.selectTabByIndex=function(e){s.$emit(s.register+".selectTabByIndex",e)},s.setupListeners=function(){s.$on(s.register+".showTabActivity",function(e,t,n){s.showTabActivity(t,n)})},s.showTabActivity=function(e,t){if(s.index===e)switch(t){case"message":case"error":break;default:s.bounceTab()}}}]); angular.module("sn.common.ui").directive("snTextExpander",["getTemplateUrl","$timeout",function(e,i){"use strict";return{restrict:"E",replace:!0,templateUrl:e("sn_text_expander.xml"),scope:{maxHeight:"&",value:"="},link:function(e,t,n){var o=angular.element(t).find(".textblock-content-container");angular.element(t).find(".textblock-content");void 0===e.maxHeight()&&(e.maxHeight=function(){return 100}),o.css("overflow-y","hidden"),o.css("max-height",e.maxHeight()+"px")},controller:["$scope","$element",function(e,t){var n=t.find(".textblock-content-container"),o=t.find(".textblock-content");e.value=e.value||"",e.toggleExpand=function(){e.showMore=!e.showMore,e.showMore?n.css("max-height",o.height()):n.css("max-height",e.maxHeight())},i(function(){o.height()>e.maxHeight()&&(e.showToggle=!0,e.showMore=!1)})}]}}]); angular.module("sn.common.ui").directive("snAttachmentPreview",["getTemplateUrl","snCustomEvent",function(t,e){return{restrict:"E",templateUrl:t("sn_attachment_preview.xml"),controller:["$scope",function(n){e.observe("sn.attachment.preview",function(t,e){return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),n.image=e,n.$broadcast("dialog.attachment_preview.show"),!1})}]}}]); angular.module("sn.common.ui").factory("progressDialog",["$rootScope","$compile","$timeout","$http","$templateCache","nowServer","i18n",function(e,l,c,d,s,g,u){"use strict";return u.getMessages(["Close"]),{STATES:["Pending","Running","Succeeded","Failed","Cancelled"],STATUS_IMAGES:["images/workflow_skipped.gif","images/loading_anim2.gifx","images/progress_success.png","images/progress_failure.png","images/request_cancelled.gif"],EXPAND_IMAGE:"images/icons/filter_hide.gif",COLLAPSE_IMAGE:"images/icons/filter_reveal.gif",BACK_IMAGE:"images/activity_filter_off.gif",TIMEOUT_INTERVAL:750,_findChildMessage:function(e){if(e.children)for(var s=0;s<e.children.length;s++){var t,a=e.children[s];if("1"==a.state)return t=a.message,null==this._findChildMessage(a)?t:null;if("0"==a.state)return null}return null},create:function(e,s,t,a,i,r){var n=this,o=e.$new(!0);return o.id=s+"_progressDialog",o.overlayVisible=!0,o.state=0,o.message="",o.percentComplete=0,o.enableChildMessages=!1,o.title=t=t||"",o.button_close=u.getMessage("Close"),e=l('<div id="{{id}}" ng-show="overlayVisible" class="modal modal-mask" role="dialog" tabindex="-1"><div class="modal-dialog m_progress_overlay_content"><div class="modal-content"><header class="modal-header"><h4 class="modal-title">{{title}}</h4></header><div class="modal-body"><div class="progress" ng-class="{\'progress-danger\': (state == 3)}"><div class="progress-bar" ng-class="{\'progress-bar-danger\': (state == 3)}" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="{{percentComplete}}" ng-style="{width: percentComplete + \'%\'}"></div></div><div>{{message}}<span style="float: right;" ng-show="state==1 || state == 2">{{percentComplete}}%</span></div></div><footer class="modal-footer"><button class="btn btn-default sn-button sn-button-normal" ng-click="close()" ng-show="state > 1">{{button_close}}</button></footer></div></div></div>')(o),$("body")[0].appendChild(e[0]),o.setEnableChildMessages=function(e){o.enableChildMessages=e},o.start=function(e,s){d.post(e,s).success(function(e){o.trackerId=e.sys_id;try{a&&a(e)}catch(e){}c(o.checkProgress.bind(o))}).error(function(e,s,t,a){o.state="3",i&&i(e)})},o.checkProgress=function(){var e=g.getURL("progress_status",{sysparm_execution_id:this.trackerId});d.post(e).success(function(e){$.isEmptyObject(e)?(o.state="3",i&&i(e)):(o.update(e),"error"==e.status||""==e.state?(o.state="3",e.message?o.message=e.message:o.message=e,i&&i(e)):"0"==e.state||"1"==e.state?c(o.checkProgress.bind(o),n.TIMEOUT_INTERVAL):i&&i(e))}).error(function(e,s,t,a){o.state="3",o.message=e,i&&i(e)})},o.update=function(e){var s,t=e.message;o.enableChildMessages&&null!=(s=n._findChildMessage(e))&&(t=s),this.message=t,this.state=e.state,this.percentComplete=e.percent_complete},o.close=function(e){try{r&&r()}catch(e){}$("body")[0].removeChild($("#"+this.id)[0]),delete n.progressItem},o}}}]); angular.module("sn.common.ui").factory("paneManager",["$timeout","userPreferences","snCustomEvent",function(e,t,o){"use strict";var r={};function u(e,n){for(var t in r)e!=t&&r[t]&&(CustomEvent.fireTop(t+".toggle"),f(t,!1));o.fireTop(e+".toggle",!1,n),f(e,!r[e])}function f(e,n){r[e]=n,t.setPreference(e+".opened",n)}return{registerPane:function(n){!n in r&&(r[n]=!1),t.getPreference(n+".opened").then(function(e){"false"!==e&&u(n,!1)})},togglePane:u}}]); angular.module("sn.common.ui").directive("snBootstrapPopover",["$timeout","$compile","$rootScope",function(o,l,t){"use strict";return{restrict:"A",link:function(r,a){a.on("click.snBootstrapPopover",function(o){t.$broadcast("sn-bootstrap-popover.close-other-popovers"),e(o)}),a.on("keypress.snBootstrapPopover",function(o){13!=o.keyCode&&32!=o.keyCode||(32===o.keyCode&&o.preventDefault(),r.$broadcast("sn-bootstrap-popover.close-other-popovers"),e(o))});var p=!1;function s(){p=!1;var o=a.data("bs.popover");o&&(o.hide(),a.off(".popover").removeData("bs.popover"),a.data("bs.popover",void 0),a.focus())}function i(){o(function(){p=!0,a.on("hidden.bs.popover",function(){s(),p=!1}),a.popover("show");var e=angular.element(document.getElementById("sn-bootstrap-popover"));e.focus(),e.on("keydown",function(o){27===o.keyCode&&(e.off("keydown"),s())})},0,!1)}function e(e){var t,o,n;angular.element(".popover").each(function(){var o=angular.element(this);o.is(e.target)||0!==o.has(e.target).length||0!==angular.element(".popover").has(e.target).length||(s(),o.popover("hide"))}),r.disablePopover||9===e.keyCode||(p?s():(t=r.$new(),e.stopPropagation(),a.attr("data-toggle","popover"),a.attr("data-trigger","focus"),a.attr("tabindex",0),angular.element(a).popover({container:"body",placement:"auto top",html:!0,trigger:"manual",content:l(r.template)(t)}),(o=a.attr("popover-wait-event"))?r.$on(o,i):i(),n=angular.element("body").on("click.snBootstrapPopover.body",function(e){angular.element(".popover").each(function(){var o=angular.element(this);o.is(e.target)||0!==o.has(e.target).length||0!==angular.element(".popover").has(e.target).length||(n.off(),s(),t.$destroy())})}),a.on("$destroy",function(){n.off(),s(),t.$destroy()})))}}}}]); angular.module("sn.common.ui").directive("snFocusEsc",["$document",function(n){"use strict";return{restrict:"A",scope:!1,link:function(c,e,o){n.on("keyup",function(n){27===n.keyCode&&(n=n.target)&&e[0].contains(n)&&c.$eval(o.snFocusEsc)})}}}]); !function(){"use strict";angular.module("mentio",[]).directive("mentio",["mentioUtil","$document","$compile","$log","$timeout",function(l,e,c,s,t){return{restrict:"A",scope:{macros:"=mentioMacros",search:"&mentioSearch",select:"&mentioSelect",items:"=mentioItems",typedTerm:"=mentioTypedTerm",altId:"=mentioId",iframeElement:"=mentioIframeElement",requireLeadingSpace:"=mentioRequireLeadingSpace",suppressTrailingSpace:"=mentioSuppressTrailingSpace",selectNotFound:"=mentioSelectNotFound",trimTerm:"=mentioTrimTerm",ngModel:"="},controller:["$scope","$timeout","$attrs",function(i,r,n){i.query=function(e,t){e=i.triggerCharMap[e];void 0!==i.trimTerm&&!i.trimTerm||(t=t.trim()),e.showMenu(),e.search({term:t}),e.typedTerm=t},i.defaultSearch=function(t){var n=[];angular.forEach(i.items,function(e){0<=e.label.toUpperCase().indexOf(t.term.toUpperCase())&&n.push(e)}),i.localItems=n},i.bridgeSearch=function(e){(n.mentioSearch?i.search:i.defaultSearch)({term:e})},i.defaultSelect=function(e){return i.defaultTriggerChar+e.item.label},i.bridgeSelect=function(e){return(n.mentioSelect?i.select:i.defaultSelect)({item:e})},i.setTriggerText=function(e){i.syncTriggerText&&(i.typedTerm=void 0===i.trimTerm||i.trimTerm?e.trim():e)},i.context=function(){if(i.iframeElement)return{iframe:i.iframeElement}},i.replaceText=function(e,t){var n;i.hideAll(),l.replaceTriggerText(i.context(),i.targetElement,i.targetElementPath,i.targetElementSelectedOffset,i.triggerCharSet,e,i.requireLeadingSpace,t,i.suppressTrailingSpace),t||(i.setTriggerText(""),angular.element(i.targetElement).triggerHandler("change"),i.isContentEditable()&&(i.contentEditableMenuPasted=!0,n=r(function(){i.contentEditableMenuPasted=!1},200),i.$on("$destroy",function(){r.cancel(n)})))},i.hideAll=function(){for(var e in i.triggerCharMap)i.triggerCharMap.hasOwnProperty(e)&&i.triggerCharMap[e].hideMenu()},i.getActiveMenuScope=function(){for(var e in i.triggerCharMap)if(i.triggerCharMap.hasOwnProperty(e)&&i.triggerCharMap[e].visible)return i.triggerCharMap[e];return null},i.selectActive=function(){for(var e in i.triggerCharMap)i.triggerCharMap.hasOwnProperty(e)&&i.triggerCharMap[e].visible&&i.triggerCharMap[e].selectActive()},i.isActive=function(){for(var e in i.triggerCharMap)if(i.triggerCharMap.hasOwnProperty(e)&&i.triggerCharMap[e].visible)return!0;return!1},i.isContentEditable=function(){return"INPUT"!==i.targetElement.nodeName&&"TEXTAREA"!==i.targetElement.nodeName},i.replaceMacro=function(e,t){t?l.replaceMacroText(i.context(),i.targetElement,i.targetElementPath,i.targetElementSelectedOffset,i.macros,i.macros[e]):(i.replacingMacro=!0,i.timer=r(function(){l.replaceMacroText(i.context(),i.targetElement,i.targetElementPath,i.targetElementSelectedOffset,i.macros,i.macros[e]),angular.element(i.targetElement).triggerHandler("change"),i.replacingMacro=!1},300),i.$on("$destroy",function(){r.cancel(i.timer)}))},i.addMenu=function(e){e.parentScope&&i.triggerCharMap.hasOwnProperty(e.triggerChar)||(i.triggerCharMap[e.triggerChar]=e,void 0===i.triggerCharSet&&(i.triggerCharSet=[]),i.triggerCharSet.push(e.triggerChar),e.setParent(i))},i.$on("menuCreated",function(e,t){void 0===n.id&&void 0===n.mentioId||(n.id===t.targetElement||void 0!==n.mentioId&&i.altId===t.targetElement)&&i.addMenu(t.scope)}),e.on("click",function(){i.isActive()&&i.$apply(function(){i.hideAll()})}),e.on("keydown keypress paste",function(e){var t=i.getActiveMenuScope();t&&(9!==e.which&&13!==e.which||(e.preventDefault(),t.selectActive()),27===e.which&&(e.preventDefault(),t.$apply(function(){t.hideMenu()})),40===e.which&&(e.preventDefault(),t.$apply(function(){t.activateNextItem()}),t.adjustScroll(1)),38===e.which&&(e.preventDefault(),t.$apply(function(){t.activatePreviousItem()}),t.adjustScroll(-1)),37!==e.which&&39!==e.which||e.preventDefault())})}],link:function(i,e,t,r){var n,o;function a(e){function t(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()}var n=i.getActiveMenuScope();if(n)return 9===e.which||13===e.which?(t(e),n.selectActive(),!1):27===e.which?(t(e),n.$apply(function(){n.hideMenu()}),!1):40===e.which?(t(e),n.$apply(function(){n.activateNextItem()}),n.adjustScroll(1),!1):38===e.which?(t(e),n.$apply(function(){n.activatePreviousItem()}),n.adjustScroll(-1),!1):37===e.which||39===e.which?(t(e),!1):void 0}e.off("compositionstart").off("compositionend"),i.triggerCharMap={},i.targetElement=e,i.scrollBarParents=e.parents().filter(function(){var e=angular.element(this).css("overflow");return this.scrollHeight>this.clientHeight&&"hidden"!==e&&"visible"!==e}),i.scrollPosition=null,t.$set("autocomplete","off"),t.mentioItems&&(i.localItems=[],i.parentScope=i,n=t.mentioSearch?' mentio-items="items"':' mentio-items="localItems"',i.defaultTriggerChar=t.mentioTriggerChar?i.$eval(t.mentioTriggerChar):"@",n='<mentio-menu mentio-search="bridgeSearch(term)" mentio-select="bridgeSelect(item)"'+n,n=(n=t.mentioTemplateUrl?n+' mentio-template-url="'+t.mentioTemplateUrl+'"':n)+" mentio-trigger-char=\"'"+i.defaultTriggerChar+'\'" mentio-parent-scope="parentScope"/>',o=c(n)(i),e.parent().append(o),i.$on("$destroy",function(){o.remove()})),t.mentioTypedTerm&&(i.syncTriggerText=!0),i.$watch("iframeElement",function(e){var t;e&&((t=e.contentWindow.document).addEventListener("click",function(){i.isActive()&&i.$apply(function(){i.hideAll()})}),t.addEventListener("keydown",a,!0),i.$on("$destroy",function(){t.removeEventListener("keydown",a)}))}),i.$watch("ngModel",function(e){var t,n;(e&&""!==e||i.isActive())&&(void 0===i.triggerCharSet?s.warn("Error, no mentio-items attribute was provided, and no separate mentio-menus were specified. Nothing to do."):i.contentEditableMenuPasted?i.contentEditableMenuPasted=!1:(i.replacingMacro&&(r.cancel(i.timer),i.replacingMacro=!1),e=i.isActive(),n=i.isContentEditable(),void 0!==(t=l.getTriggerInfo(i.context(),i.triggerCharSet,i.requireLeadingSpace,e))&&(!e||n&&t.mentionTriggerChar===i.currentMentionTriggerChar||!n&&t.mentionPosition===i.currentMentionPosition)?(t.mentionSelectedElement&&(i.targetElement=t.mentionSelectedElement,i.targetElementPath=t.mentionSelectedPath,i.targetElementSelectedOffset=t.mentionSelectedOffset),i.setTriggerText(t.mentionText),i.currentMentionPosition=t.mentionPosition,i.currentMentionTriggerChar=t.mentionTriggerChar,i.query(t.mentionTriggerChar,t.mentionText)):(e=i.typedTerm,i.setTriggerText(""),i.hideAll(),void 0!==(n=l.getMacroMatch(i.context(),i.macros))?(i.targetElement=n.macroSelectedElement,i.targetElementPath=n.macroSelectedPath,i.targetElementSelectedOffset=n.macroSelectedOffset,i.replaceMacro(n.macroText,n.macroHasTrailingSpace)):i.selectNotFound&&e&&""!==e&&((t=i.triggerCharMap[i.currentMentionTriggerChar])&&("function"==typeof(n=t.select({item:{label:e}})).then?n.then(i.replaceText):i.replaceText(n,!0))))))})}}}]).directive("mentioMenu",["mentioUtil","$rootScope","$log","$window","$document","$timeout",function(n,o,e,a,l,c){return{restrict:"E",scope:{search:"&mentioSearch",select:"&mentioSelect",items:"=mentioItems",triggerChar:"=mentioTriggerChar",forElem:"=mentioFor",parentScope:"=mentioParentScope"},templateUrl:function(e,t){return void 0!==t.mentioTemplateUrl?t.mentioTemplateUrl:"mentio-menu.tpl.html"},controller:["$scope",function(t){t.visible=!1,this.activate=t.activate=function(e){t.activeItem=e},this.isActive=t.isActive=function(e){return t.activeItem===e},this.selectItem=t.selectItem=function(e){e.termLengthIsZero&&(e.name=t.triggerChar+t.typedTerm);e=t.select({item:e});"function"==typeof e.then?e.then(t.parentMentio.replaceText):t.parentMentio.replaceText(e)},t.activateNextItem=function(){var e=t.items.indexOf(t.activeItem);this.activate(t.items[(e+1)%t.items.length])},t.activatePreviousItem=function(){var e=t.items.indexOf(t.activeItem);this.activate(t.items[0===e?t.items.length-1:e-1])},t.isFirstItemActive=function(){return 0===t.items.indexOf(t.activeItem)},t.isLastItemActive=function(){return t.items.indexOf(t.activeItem)===t.items.length-1},t.selectActive=function(){t.selectItem(t.activeItem)},t.isVisible=function(){return t.visible},t.showMenu=function(){t.visible||(t.menuElement.css("visibility","visible"),t.requestVisiblePendingSearch=!0)},t.setParent=function(e){t.parentMentio=e,t.targetElement=e.targetElement};var e=t;o.$on("mentio.closeMenu",function(){e.hideMenu()})}],link:function(i,r){if(r[0].parentNode.removeChild(r[0]),l[0].body.appendChild(r[0]),i.menuElement=r,i.menuElement.css("visibility","hidden"),i.parentScope)i.parentScope.addMenu(i);else{if(!i.forElem)return void e.error("mentio-menu requires a target element in tbe mentio-for attribute");if(!i.triggerChar)return void e.error("mentio-menu requires a trigger char");o.$broadcast("menuCreated",{targetElement:i.forElem,scope:i})}var t;angular.element(a).bind("resize",function(){var e;i.isVisible()&&((e=[]).push(i.triggerChar),n.popUnderMention(i.parentMentio.context(),e,r,i.requireLeadingSpace))}),i.$watch("items",function(e){e&&0<e.length?(i.activate(e[0]),!i.visible&&i.requestVisiblePendingSearch&&(i.visible=!0,i.requestVisiblePendingSearch=!1),c(function(){var e=r.find(".dropdown-menu");0<e.length&&e.offset().top<0&&e.addClass("reverse")},0,!1)):i.activate({termLengthIsZero:!0})}),i.$watch("isVisible()",function(e){e?((e=[]).push(i.triggerChar),n.popUnderMention(i.parentMentio.context(),e,r,i.requireLeadingSpace)):r.find(".dropdown-menu").removeClass("reverse")}),i.parentMentio.scrollBarParents.each(function(){angular.element(this).on("scroll.mentio",function(){var e=(t=t||this.scrollTop)-this.scrollTop;t=this.scrollTop,"absolute"===r[0].style.position&&(r[0].style["z-index"]=9,r[0].style.top=parseInt(r[0].style.top)+e+"px")})}),i.parentMentio.$on("$destroy",function(){r.remove()}),i.hideMenu=function(){i.visible=!1,r.css("display","none")},i.adjustScroll=function(e){var t=r[0],n=t.querySelector("ul"),t=t.querySelector("[mentio-menu-item].active");return i.isFirstItemActive()?n.scrollTop=0:i.isLastItemActive()?n.scrollTop=n.scrollHeight:void(1===e?n.scrollTop+=t.offsetHeight:n.scrollTop-=t.offsetHeight)}}}}]).directive("mentioMenuItem",function(){return{restrict:"A",scope:{item:"=mentioMenuItem"},require:"^mentioMenu",link:function(e,t,n,i){e.$watch(function(){return i.isActive(e.item)},function(e){e?t.addClass("active"):t.removeClass("active")}),t.bind("mouseenter",function(){e.$apply(function(){i.activate(e.item)})}),t.bind("click",function(){return i.selectItem(e.item),!1})}}}).filter("unsafe",["$sce",function(t){return function(e){return t.trustAsHtml(e)}}]).filter("mentioHighlight",function(){return function(e,t,n){return t?(n=n?'<span class="'+n+'">$&</span>':"<strong>$&</strong>",(""+e).replace(new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),n)):e}}),angular.module("mentio").factory("mentioUtil",["$window","$location","$anchorScroll","$timeout",function(o,e,t,r){function a(e,t){for(var n,i=t[0];void 0===n||0===n.height;)if(0===(n=i.getBoundingClientRect()).height&&(void 0===(i=i.childNodes[0])||!i.getBoundingClientRect))return;var t=n.top,r=t+n.height;t<0?o.scrollTo(0,o.pageYOffset+n.top-20):r>o.innerHeight&&((t=100<(t=o.pageYOffset+n.top-20)-o.pageYOffset?o.pageYOffset+100:t)<(r=o.pageYOffset-(o.innerHeight-r))&&(r=t),o.scrollTo(0,r))}function g(e){var t,e=p(e).activeElement;if(null!==e)return t=e.nodeName,e=e.getAttribute("type"),"INPUT"===t&&"text"===e||"TEXTAREA"===t}function l(e,t,n,i){var r=t;if(n)for(var o=0;o<n.length;o++){if(void 0===(r=r.childNodes[n[o]]))return;for(;r.length<i;)i-=r.length,r=r.nextSibling;0!==r.childNodes.length||r.length||(r=r.previousSibling)}var a=h(e);(e=p(e).createRange()).setStart(r,i),e.setEnd(r,i),e.collapse(!0);try{a.removeAllRanges()}catch(e){}a.addRange(e),t.focus()}function s(e,t,n,i){var r=h(e),o=p(e).createRange();o.setStart(r.anchorNode,n),o.setEnd(r.anchorNode,i),o.deleteContents();for(var a,l,c=p(e).createElement("div"),s=(c.innerHTML=t,p(e).createDocumentFragment());a=c.firstChild;)l=s.appendChild(a);o.insertNode(s),l&&((o=o.cloneRange()).setStartAfter(l),o.collapse(!0),r.removeAllRanges(),r.addRange(o))}function m(e,t,n,i){var r=t.nodeName;"INPUT"===r||"TEXTAREA"===r?t!==p(e).activeElement&&t.focus():l(e,t,n,i)}function c(e,t){if(null===t.parentNode)return 0;for(var n=0;n<t.parentNode.childNodes.length;n++)if(t.parentNode.childNodes[n]===t)return n}function u(e,t){var r,o,n,a=[],l=(g(e)?r=p(e).activeElement:(n=d(e))&&(r=n.selected,a=n.path,o=n.offset),v(e));if(null!=l){var c,s=!1;if(0<l.length&&(" "===l.charAt(l.length-1)||" "===l.charAt(l.length-1))&&(s=!0,l=l.substring(0,l.length-1)),angular.forEach(t,function(e,t){var n,i=l.toUpperCase().lastIndexOf(t.toUpperCase());0<=i&&t.length+i===l.length&&(n=i-1,0!==i&&" "!==l.charAt(n)&&" "!==l.charAt(n)||(c={macroPosition:i,macroText:t,macroSelectedElement:r,macroSelectedPath:a,macroSelectedOffset:o,macroHasTrailingSpace:s}))}),c)return c}}function d(e){var e=h(e),t=e.anchorNode,n=[];if(null!=t){for(var i,r=t.contentEditable;null!==t&&"true"!==r;)i=c(0,t),n.push(i),null!==(t=t.parentNode)&&(r=t.contentEditable);return n.reverse(),{selected:t,path:n,offset:e.getRangeAt(0).startOffset}}}function f(e,t,n,i,r){g(e)?o=p(e).activeElement:(m=d(e))&&(o=m.selected,a=m.path,l=m.offset);var o,a,l,c=v(e);if(null!=c){var s=-1;if(t.forEach(function(e){var t=c.lastIndexOf(e);s<t&&(s=t,u=e)}),0<=s&&(0===s||!n||/[\xA0\s]/g.test(c.substring(s-1,s)))){var m=c.substring(s+1,c.length),u=c.substring(s,s+1),e=m.substring(0,1),t=0<m.length&&(" "===e||" "===e);if(r&&(m=m.trim()),!t&&(i||!/[\xA0\s]/g.test(m)))return{mentionPosition:s,mentionText:m,mentionSelectedElement:o,mentionSelectedPath:a,mentionSelectedOffset:l,mentionTriggerChar:u}}}}function h(e){return(e?e.iframe.contentWindow:window).getSelection()}function p(e){return e?e.iframe.contentWindow.document:document}function v(e){var t,n;return g(e)?(n=(t=p(e).activeElement).selectionStart,t=t.value.substring(0,n)):null!=(n=h(e).anchorNode)&&(n=n.textContent,0<=(e=h(e).getRangeAt(0).startOffset)&&(t=n.substring(0,e))),t}function T(e,t){var n="sel_"+(new Date).getTime()+"_"+Math.random().toString().substr(2),i=h(e),r=i.getRangeAt(0),o=p(e).createRange(),n=(o.setStart(i.anchorNode,t),o.setEnd(i.anchorNode,t),o.collapse(!1),(t=p(e).createElement("span")).id=n,t.appendChild(p(e).createTextNode("\ufeff")),o.insertNode(t),i.removeAllRanges(),i.addRange(r),{left:0,top:t.offsetHeight});return S(e,t,n),t.parentNode.removeChild(t),n}function S(e,t,n){for(var i=t,r=e?e.iframe:null;i;)n.left+=i.offsetLeft,n.top+=i.offsetTop,i!==p().body&&(n.top-=i.scrollTop,n.left-=i.scrollLeft),!(i=i.offsetParent)&&r&&(i=r,r=null)}function E(e,t,n){var i=null!==window.mozInnerScreenX,r=p(e).createElement("div"),o=(r.id="input-textarea-caret-position-mirror-div",p(e).body.appendChild(r),r.style),a=window.getComputedStyle?getComputedStyle(t):t.currentStyle,i=(o.whiteSpace="pre-wrap","INPUT"!==t.nodeName&&(o.wordWrap="break-word"),o.position="absolute",o.visibility="hidden",["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing"].forEach(function(e){o[e]=a[e]}),i?(o.width=parseInt(a.width)-2+"px",t.scrollHeight>parseInt(a.height)&&(o.overflowY="scroll")):o.overflow="hidden",r.textContent=t.value.substring(0,n),"INPUT"===t.nodeName&&(r.textContent=r.textContent.replace(/\s/g," ")),p(e).createElement("span")),n=(i.textContent=t.value.substring(n)||".",r.appendChild(i),{top:i.offsetTop+parseInt(a.borderTopWidth)+parseInt(a.fontSize),left:i.offsetLeft+parseInt(a.borderLeftWidth)});return S(e,t,n),p(e).body.removeChild(r),n}return{popUnderMention:function(e,t,n,i){void 0!==(t=f(e,t,i,!1))?(i=g(e)?E(e,p(e).activeElement,t.mentionPosition):T(e,t.mentionPosition),n.css({top:i.top+"px",left:i.left+"px",position:"absolute",zIndex:5e3,display:"block"}),r(function(){a(0,n)},0)):n.css({display:"none"})},replaceMacroText:function(e,t,n,i,r,o){m(e,t,n,i),(t=u(e,r)).macroHasTrailingSpace&&(t.macroText=t.macroText+" ",o+=" "),void 0!==t&&(n=p(e).activeElement,g(e)?(i=t.macroPosition,r=t.macroPosition+t.macroText.length,n.value=n.value.substring(0,i)+o+n.value.substring(r,n.value.length),n.selectionStart=i+o.length,n.selectionEnd=i+o.length):s(e,o,t.macroPosition,t.macroPosition+t.macroText.length))},replaceTriggerText:function(e,t,n,i,r,o,a,l,c){m(e,t,n,i),void 0!==(t=f(e,r,a,!0,l))&&(g()?(n=p(e).activeElement,c||(o+=" "),i=t.mentionPosition,r=t.mentionPosition+t.mentionText.length+1,n.value=n.value.substring(0,i)+o+n.value.substring(r,n.value.length),n.selectionStart=i+o.length,n.selectionEnd=i+o.length):(c||(o+=" "),s(e,o,t.mentionPosition,t.mentionPosition+t.mentionText.length+1)))},getMacroMatch:u,getTriggerInfo:f,selectElement:l,getTextAreaOrInputUnderlinePosition:E,getTextPrecedingCurrentSelection:v,getContentEditableSelectedPath:d,getNodePositionInParent:c,getContentEditableCaretPosition:T,pasteHtml:s,resetSelection:m,scrollIntoView:a}}]),angular.module("mentio").run(["$templateCache",function(e){e.put("mentio-menu.tpl.html",'<style>\n.scrollable-menu {\n height: auto;\n max-height: 300px;\n overflow: auto;\n}\n\n.menu-highlighted {\n font-weight: bold;\n}\n</style>\n<ul class="dropdown-menu scrollable-menu" style="display:block">\n <li mentio-menu-item="item" ng-repeat="item in items track by $index">\n <a class="text-primary" ng-bind-html="item.label | mentioHighlight:typedTerm:\'menu-highlighted\' | unsafe"></a>\n </li>\n</ul>')}])}(); !function(){var n=["sn.base","ng.amb","sn.messaging","sn.common.glide","ngSanitize","sn.common.avatar","sn.common.ui.popover","mentio","sn.common.controls","sn.common.user_profile","sn.common.datetime","sn.common.mention","sn.common.ui","sn.common.dynamicTranslation"];1==angular.version.major&&3<=angular.version.minor&&n.push("ngAria"),angular.module("sn.common.stream",n),angular.module("sn.stream.direct",["sn.common.stream"])}(); angular.module("sn.common.stream").controller("Stream",["$rootScope","$scope","snRecordWatcher","$timeout",function(t,r,s,e){var n=0<NOW.sysId.length,a=!1;r.showCommentsAndWorkNotes=n,r.sessions={},r.recordStreamOpen=!1,r.streamHidden=!0,r.recordSysId="",r.recordDisplayValue="",t.$on("sn.sessions",function(e,n){r.sessions.data=n,r.sessionCount()}),n?e(function(){var e="sys_id="+NOW.sysId;s.initChannel(NOW.targetTable,e,function(e){t.$broadcast("sn.stream.tap",e.data),a=!0})},100):t.$on("sn.stream.entries_change",function(e,n){a||(n=n.filter(function(e){return e.document_id}).map(function(e){return e.document_id}).join(","))&&s.initChannel(NOW.targetTable,"sys_idIN"+n,function(e){t.$broadcast("sn.stream.tap",e.data),a=!0})}),r.controls={showRecord:function(e,n,t){""!==t||e.currentTarget!=e.target&&"A"==e.target.tagName||(r.recordSysId=n.document_id,r.recordDisplayValue=n.display_value,r.recordStreamOpen=!0,r.streamHidden=!0)},openRecord:function(){var e=window.self,n=NOW.targetTable+".do?sys_id="+r.recordSysId;"form_pane"==NOW.linkTarget?(n+="&sysparm_clear_stack=true",window.parent.CustomEvent.fireTop("glide:nav_open_url",{url:n,openInForm:!0})):(e="parent"!=NOW.streamLinkTarget&&"true"!=NOW.concourse?e:window.parent).location=n}},r.sessionCount=function(){return r.sessions.length=Object.keys(r.sessions.data).length,r.sessions.length},r.toggleEmailIframe=function(e,n){e.expanded=!e.expanded,n.preventDefault()},r.showListStream=function(){r.recordStreamOpen=!1,r.recordHidden=!1,r.streamHidden=!1,angular.element("div.list-stream-record").velocity("snTransition.streamSlideRight",{duration:400}),angular.element('[streamType="list"]').velocity("snTransition.slideIn",{duration:400,complete:function(e){angular.element(e).css({display:"block"})}})},r.$watch(function(){return angular.element("div.list-stream-record").length},function(e,n){1==e&&angular.element("div.list-stream-record").delay(100).velocity("snTransition.streamSlideLeft",{begin:function(e){angular.element(e).css({visibility:"visible"}),angular.element(".list-stream-record-header").css({visibility:"visible"})},duration:400,complete:function(e){angular.element(e).css({transform:"translateX(0)"}),angular.element(e).scrollTop(0),angular.element(e).css({transform:"initial"}),angular.element(".return-to-stream").focus()}})})}]); function _typeof(e){return(_typeof="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})(e)}angular.module("sn.common.stream").controller("snStream",["$rootScope","$scope","$attrs","$http","nowStream","snRecordPresence","snCustomEvent","userPreferences","$window","$q","$timeout","$sce","snMention","i18n","getTemplateUrl","$injector","dynamicTranslation",function(V,u,e,W,L,D,a,i,n,U,r,z,q,s,J,l,B){"use strict";angular.isDefined(e.isInline)&&(t={},e.table&&(t.table=e.table),e.query&&(t.query=e.query),e.sysId&&(t.sysId=e.sysId),e.active&&(t.active="true"==e.active),e.template&&(t.template=e.template),e.preferredInput&&(t.preferredInput=e.preferredInput),e.useMultipleInputs&&(t.useMultipleInputs="true"==e.useMultipleInputs),e.expandEntries&&(t.expandEntries="true"==e.expandEntries),e.pageSize&&(t.pageSize=parseInt(e.pageSize,10)),e.truncate&&(t.truncate="true"==e.truncate),e.attachments&&(t.attachments="true"==e.attachments),e.showCommentsAndWorkNotes&&(t.attachments="true"==e.showCommentsAndWorkNotes),angular.extend(u,t));var t,o,c=NOW.recordMembers||{};function d(e,n){var i=[],a=[],t=Object.keys(c);return n=n.toLowerCase().trim(),t.forEach(function(e){var t=c[e];(void 0!==t.name&&0==t.name.toLowerCase().indexOf(n)||void 0!==t.last_name&&0==t.last_name.toLowerCase().indexOf(n))&&(i.push(t),a.push(e))}),e.forEach(function(e){c[e.sys_id]&&void 0===c[e.sys_id].avatar&&(c[e.sys_id].avatar=e.avatar),-1===a.indexOf(e.sys_id)&&i.push(e)}),i}var f,m,H=e.processor||"list_history",G="from_form",p=u.sysId?G:"from_list",R=!0,K=!1,y=["comments","work_notes"],h=null,v=(u.defaultShowCommentsAndWorkNotes=null!=u.sysId&&!angular.isUndefined(u.sysId)&&0<u.sysId.length,u.canWriteWorkNotes=!1,u.inputTypeValue="",u.entryTemplate=J(e.template||"list_stream_entry"),u.isFormStream="record_stream_entry.xml"===e.template,u.allFields=null,u.fields={},u.fieldColor="transparent",u.multipleInputs=u.useMultipleInputs,u.checkbox={},u.attachmentAdviceRequired=n.NOW.attachmentAdviceRequired,u.filterModified=!1,"The file {0} did not pass security scan and cannot be downloaded"),g=(s.getMessage(v,function(e){v=e}),"{0} is typing"),_="{0} is viewing",b="{0} has entered",w="{0} has probably left",E="{0} has exited",A="{0} is offline",X="{0} was {1}",T="was",I="Email body";s.getMessages([g,_,b,w,E,A,T,X,I],function(e){g=e[g],_=e[_],b=e[b],w=e[w],E=e[E],A=e[A],T=e[T],I=e[I],u.auditMessageParts=function(e,t){e=/^([^{]*)\{([01])\}([^{]*)\{([01])\}(.*)$/.exec(e);return e?{prefix:e[1].trim(),newValPosition:e[2],middle:e[3].trim(),oldValPosition:e[4],postfix:e[5].trim()}:{prefix:"",newValPosition:"0",middle:t,oldValPosition:"1",postfix:""}}(e[X],T)}),u.parsePresence=function(e){var t=e.status,n=e.user_display_name;switch(t){case"typing":return s.format(g,n);case"viewing":return s.format(_,n);case"entered":return s.format(b,n);case"probably left":return s.format(w,n);case"exited":return s.format(E,n);case"offline":return s.format(A,n);default:return""}},u.members=[],u.members.loading=!0;var Z,k={};if(u.selectAtMention=function(e){return e.termLengthIsZero?(e.name||"")+"\n":(k[e.name]=e.sys_id,"@["+e.name+"]")},u.searchMembersAsync=function(t){u.members=d([],t),u.members.loading=!0,r.cancel(Z),0===t.length?(u.members=[{termLengthIsZero:!0}],u.members.loading=!1):Z=r(function(){q.retrieveMembers(u.table,u.sysId,t).then(function(e){u.members=d(e,t),u.members.loading=!1},function(){u.members=d([{termLengthIsZero:!0}],t),u.members.loading=!1})},500)},u.expandMentions=function(e){return o.expandMentions(e,k)},u.reduceMentions=function(e){var n;return e&&(n=/[@\w\d\s/\']+/gi,e=e.replace(/@\[[\w\d\s]+:[@\w\d\s/\']+\]/gi,function(e){var t,e=e.match(n);return 3===e.length?(t=e[2],k[t]=e[1],"@["+t+"]"):e})),e},u.parseMentions=function(e){var t=/[\w\d\s/\']+/gi;return e=e.replace(/@\[[\w\d\s]+:[\w\d\s/\']+\]/gi,function(e){e=e.match(t);return 2===e.length?'<a class="at-mention at-mention-user-'+e[0]+'">@'+e[1]+"</a>":e})},u.parseLinks=function(e){return e.replace(/@L\[([^|]+?)\|([^\]]*)]/gi,"<a href='$1' target='_blank'>$2</a>")},u.trustAsHtml=function(e){return z.trustAsHtml(e)},u.parseSpecial=function(e){e=u.parseLinks(e),e=u.parseMentions(e);return u.trustAsHtml(e)},u.containsHTML=function(e){return/<([a-z][a-z0-9]*)\b[^>]*>[\s\S]*<\/\1>/im.test(e)},u.isHTMLField=function(e){return"html"===e.field_type||"translated_html"===e.field_type},u.shouldEncapsulate=function(e){return u.isHTMLField(e)||u.containsHTML(e.sanitized_new_value)},u.getFullEntryValue=function(e,t){t.stopPropagation();var t=function(e){for(var t=0,n=u.entries.length;t<n;t++)if(e===u.entries[t])return t}(e),n=u.entries[t].entries.journal[0];n.loading=!0,W.get("/api/now/ui/stream_entry/full_entry",{params:{sysparm_sys_id:n.sys_id}}).then(function(e){n.sanitized_new_value=n.new_value=e.data.result.replace(/\n/g,"<br/>"),n.is_truncated=!1,n.loading=!1,n.showMore=!0})},u.$watch("active",function(e,t){e!==t&&(u.active?C:M)()}),u.defaultControls={getTitle:function(e){return e&&e.short_description?e.short_description:e&&e.shortDescription?e.shortDescription:void 0},showCreatedBy:function(){return!0},hideCommentLabel:function(){return!1},showRecord:function(e,t){},showRecordLink:function(){return!0}},u.controls)for(var Y in u.controls)u.defaultControls[Y]=u.controls[Y];function Q(){u.inputTypeValue="",angular.forEach(u.fields,function(e){e.value&&(e.filled=!0),e.value=""})}function ee(e){var t=document.createElement("a"),e=(t.href=e.getAttribute("href"),t.download=e.getAttribute("file-name"),"function"==typeof window.MouseEvent?new MouseEvent("click"):document.createEvent("Event"));e.initEvent("click",!0,!0),t.dispatchEvent(e)}function te(e,t,n){var i;if(!u.isFormStream)return e.preventDefault(),n&&"attachment-image"===t.type?void 0:(i="/sys_attachment.do?view=true&sys_id="+(i=t.attachment.sys_id),void window.open(i,"_blank").focus());"attachment-image"===t.type?a.events["sn.attachment.preview"]&&!n&&a.fire("sn.attachment.preview",e,t.attachment):"mp4"!==t.attachment.extension&&"webm"!==t.attachment.extension||"undefined"==typeof GlideVideoPlayer?n&&ee(e.currentTarget):(e.preventDefault(),t.attachment.playVideo=!0)}u.controls=u.defaultControls,void 0===u.showCommentsAndWorkNotes&&(u.showCommentsAndWorkNotes=u.defaultShowCommentsAndWorkNotes),a.observe("sn.stream.change_input_display",function(e,t){e==u.table&&(u.showCommentsAndWorkNotes=t,u.$apply())}),a.observe("sn.stream.attachment_state_updated",function(t){u.entries.forEach(function(e){e.attachment&&e.attachment.sys_id===t.attachment.sys_id&&(e.attachment.state=t.attachment.state)})}),u.$on("$destroy",function(){M()}),u.$on("sn.stream.interval",function(e,t){f=t,re()}),u.$on("sn.stream.tap",function(){o?o.tap():C()}),u.$on("window_visibility_change",function(e,t){f=t?12e4:void 0,re()}),a.observe("sn.stream.clearOnSilentSubmit",function(){Q()}),u.$on("sn.stream.refresh",function(e,t){o._successCallback(t.response)}),u.$on("sn.stream.reload",function(){C()}),a.observe("sn.stream.toggle_multiple_inputs",function(){u.useMultipleInputs=!0}),u.$on("sn.stream.input_value",function(e,t,n){S(),u.multipleInputs||(u.inputType=t,u.inputTypeValue=n)}),u.$watchCollection("[table, query, sysId]",C),u.changeInputType=function(e){h||angular.forEach(u.fields,function(e){e.isPrimary&&(h=e.name)}),u.inputType=e.checked?e.name:h,i.setPreference("glide.ui."+u.table+".stream_input",u.inputType)},u.selectedInputType=function(e){return angular.isDefined(e)&&(u.inputType=e,i.setPreference("glide.ui."+u.table+".stream_input",u.inputType)),u.inputType},u.$watch("inputType",function(){u.inputType&&u.preferredInput&&(u.preferredInput=u.inputType)}),u.submitCheck=function(e){13===(e.keyCode||e.which)&&u.postJournalEntryForCurrent(e)},u.postJournalEntry=function(e,t,n){e=e||y[0],n.stopPropagation();n=u.table||"board:"+u.board.sys_id;o.insertForEntry(e,t.journalText,n,t.document_id),t.journalText="",t.commentBoxVisible=!1,D.termPresence()},u.postJournalEntryForCurrent=function(e){e.stopPropagation();var n=[],e=(u.multipleInputs?angular.forEach(u.fields,function(e){e.value&&n.push({field:e.name,text:e.value})}):(n.push({field:u.inputType,text:u.inputTypeValue}),e="comments"===u.inputType||"work_notes"===u.inputType?u.inputType:"custom",window.GlideUXMetrics&&GlideUXMetrics.track("Post Activity",{type:e})),o.insertEntries(n,u.table,u.sysId,k));return e&&e.then(function(){for(var e,t=0;t<n.length;t++)e=n[t].field,a.fire("sn.stream.clear",e)}),Q(),!1},u.doesFormHasMandatoryJournalFields=function(){if(window.g_form)for(var e=Object.values(u.fields),t=0;t<e.length;t++)if(e[t].mandatory)return!0;return!1},u.showCommentBox=function(e,t){t.stopPropagation(),e!==u.selectedEntry&&u.closeEntry(),(u.selectedEntry=e).commentBoxVisible=!e.commentBoxVisible,e.commentBoxVisible&&D.initPresence(u.table,e.document_id)},u.showMore=function(e,t){t.stopPropagation(),e.showMore=!0},u.showLess=function(e,t){t.stopPropagation(),e.showMore=!1},u.closeEntry=function(){u.selectedEntry&&(u.selectedEntry.commentBoxVisible=!1)},u.handleListASAttachmentClick=function(e,t){e.stopPropagation(),u.handleASAttachmentClick(e,t)},u.handleListASAttachmentKeydown=function(e,t){13!==e.keyCode&&32!==e.keyCode||(e.stopPropagation(),u.handleASAttachmentClick(e,t))},u.handleASAttachmentClick=function(t,n){var e,i,a=n.attachment;"available"!==a.state&&u.attachmentAdviceRequired?"not_available"===a.state?(t.preventDefault(),u.showAttachmentUnAvailabilityMessage(a.file_name)):(t.preventDefault(),e=a.sys_id,i=U.defer(),W.get("/api/now/as_attachment/getAvailability/"+e).then(function(e){e=e.data.result;e&&e.availability?"available"===e.availability?i.resolve({state:e.availability}):i.reject({state:e.availability,message:e.message}):i.reject({state:"",forceDownload:!0})},function(){i.reject({state:"",forceDownload:!0})}),i.promise.then(function(e){n.attachment.state=e.state,te(t,n,!0)},function(e){n.attachment.state=e.state,e.forceDownload?ee(t.currentTarget):u.showAttachmentUnAvailabilityMessage(a.file_name,e.message)})):te(t,n,!1)},u.showAttachmentUnAvailabilityMessage=function(e,t){t=t||s.format(v,e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"));"undefined"!=typeof g_form?g_form.addErrorMessage(t):void 0!==window.parent.GlideUI?(e=window.parent).CustomEvent.fireTop(e.GlideUI.UI_NOTIFICATION+".error",new e.GlideUINotification({type:"error",text:t})):window.NOW&&window.NOW.CustomEvent&&window.NOW.CustomEvent.fire("stream.attachment.unavailable",t)},V.$on("sn.sessions",function(e,t){u.selectedEntry&&u.selectedEntry.commentBoxVisible&&(u.selectedEntry.sessions=t)}),u.$watch("inputTypeValue",function(e,t){e!==t&&ie(u.inputTypeValue)}),u.$watch("selectedEntry.journalText",function(e){u.selectedEntry&&ie(e||"")});var ne=function(){};function ie(e){var t;angular.isDefined(e)&&(t=e.length?"typing":"viewing",u.$emit("record.typing",{status:t,value:e,field_type:u.inputType,table:u.table,sys_id:u.sys_id}))}function ae(e){M(),(o=L.create(u.table,u.query,u.sysId,H,f,p,u.attachments)).lastTimestamp=e,o.poll(x,F)}function re(){var e=o?o.lastTimestamp:0;M()&&ae(e)}function se(){angular.element(document).find("#sn_form_inline_stream_container").hide().remove(),u.loaded=!1,C()}function C(){u.loading&&!u.loaded||u.active&&(u.entries=[],u.allEntries=[],u.showAllEntriesButton=!1,u.loaded=!1,u.loading=!0,R&&function(){var e;if("object"===_typeof(window.NOW.snActivityStreamData)&&window.NOW.snActivityStreamData[u.table+"_"+u.sysId])return R=!1,e=window.NOW.snActivityStreamData[u.table+"_"+u.sysId],(o=L.create(u.table,u.query,u.sysId,H,f,p,u.attachments)).callback=x,o.preRequestCallback=F,o.lastTimestamp=e.sys_timestamp,e.entries&&e.entries.length&&(o.lastEntry=angular.copy(e.entries[0])),m=setTimeout(function(){o.poll(x,F),m=!1},2e4),F(),x(e),1}()||(ae(),u.$emit("sn.stream.entries_change",u.entries)))}function x(e){var n,t,o;u.loading=!1,e.primary_fields&&(y=e.primary_fields),K||(t=e.fields)&&t.length&&(K=!0,u.allFields=t,ue(),n=u.fieldsVisible=0,angular.forEach(t,function(e){var t;e.isJournal&&(0==n&&(u.firstJournal=e.name),n++,u.fields[e.name]?angular.extend(u.fields[e.name],e):u.fields[e.name]=e,u.fields[e.name].visible=!u.formJournalFields&&u.fields[e.name].canWrite,u.fields[e.name].visible&&u.fieldsVisible++,t=(t=e.color)&&e.color.replace(/background-color: /,""),u.fields[e.name].color=t=t&&"transparent"!=t?t:null)}),le(),oe(),S()),(t=e.entries)&&t.length&&(t=t.reverse(),o=[],angular.forEach(t,function(e){var t,n,i,a,r=[e];if(e.attachment)e.type=(t=e.attachment).content_type.startsWith("image/")&&t.content_type.indexOf("tiff")<0&&t.size_bytes<5242880&&0==t.path.indexOf(t.sys_id)?"attachment-image":"attachment",e.attachment.extension=function(e){e=e.file_name;return e.substring(e.lastIndexOf(".")+1)}(e.attachment);else if(!0===e.is_email){e.email={},e.emailBodyMsg=I;for(var s=e.entries.custom,l=0;l<s.length;l++)e.email[s[l].field_name]={label:s[l].field_label,displayValue:s[l].new_value},e.email.is_translation_enabled=s[l].is_translation_enabled;e.entries.custom=[]}else r=(u.sysId?function(e){var t=[];if(0===e.entries.journal.length)return e;for(var n=0;n<e.entries.journal.length;n++){var i;!function(t){return u.entries.some(function(e){if(e.entries.journal)return e.entries.journal.some(function(e){return e.sys_id==t})})}(e.entries.journal[n].sys_id)&&((i=angular.copy(e)).entries.journal=i.entries.journal.slice(n,n+1),me(i.entries.journal),i.entries.changes=[],i.type="journal",t.unshift(i))}e.entries.journal=[],e.type="changes",0<e.entries.changes.length&&t.unshift(e);return t}:function(e){if(0!==e.entries.journal.length)for(var t=0;t<e.entries.journal.length;t++)me(e.entries.journal);return e})(e);t=e.user_id,a=e.sys_created_by,n=e.initials,i=e.user_image,t&&a&&n&&(c[t]?void 0!==c[t].avatar&&""!==c[t].avatar||!i||(c[t].avatar=i):c[t]={name:a,initials:n,sys_id:t,record_is_visible:!0,avatar:i}),r instanceof Array?r.forEach(function(e){u.entries.unshift(e),o.unshift(e)}):(u.entries.unshift(r),o.unshift(r)),p!=G&&(u.entries=u.entries.slice(0,49)),null!=u.maxEntries&&(a=parseInt(u.maxEntries,10),u.entries=u.entries.slice(0,a))}),u.inlineStreamLoaded&&0<u.entries.length&&angular.element(document).find("#sn_form_inline_stream_entries").removeClass("sn-form-inline-stream-entries-only"),u.loaded?(u.$emit("sn.stream.new_entries",o),window._frameChanged&&setTimeout(_frameChanged,0)):u.pageSize&&u.entries.length>u.pageSize&&(u.showAllEntriesButton=!0,u.allEntries=u.entries,u.entries=[],fe(0,u.pageSize)),r(function(){u.$emit("sn.stream.entries_change",u.entries)})),e.inlineStreamLoaded&&(u.inlineStreamLoaded=!0,angular.element(document).find("#sn_form_inline_stream_entries").addClass("sn-form-inline-stream-entries-only")),u.loaded||(u.loaded=!0,u.$emit("sn.stream.loaded",e))}function F(){u.$emit("sn.stream.requested")}function le(){u.formJournalFields&&u.fields&&u.showCommentsAndWorkNotes&&(u.fieldsVisible=0,angular.forEach(u.formJournalFields,function(e){var t;u.fields[e.name]&&((t=angular.element("#"+u.table+"\\."+e.name).val())&&0!==t.indexOf(n.NOW.STREAM_VALUE_KEY)?u.fields[e.name].value=u.reduceMentions(e.value):""===t&&(u.fields[e.name].value=""),u.fields[e.name].mandatory=e.mandatory,u.fields[e.name].label=e.label,u.fields[e.name].messages=e.messages,u.fields[e.name].visible=e.visible&&!e.readonly,u.fields[e.name].visible&&u.fieldsVisible++)}))}function oe(){if(u.fields&&u.showCommentsAndWorkNotes){angular.forEach(u.fields,function(e){e.isPrimary=!1,e.checked=!1});var e=Object.keys(u.fields).filter(function(e){return u.fields[e].visible});if(-1!=e.indexOf(u.preferredInput)){var t=u.fields[u.preferredInput];t.checked=!0,t.isPrimary=!0,u.inputType=u.preferredInput,h=u.preferredInput}else for(var n=0;n<y.length;n++){var i=y[n];if(-1!=e.indexOf(i)){u.fields[i].isPrimary=!0,h=i,u.inputType=i,u.inputTypeValue=u.fields[i].value;break}}0===e.length?(h="",u.inputType=h):!u.inputType&&0<e.length&&(h=e[0],u.inputType=h,u.fields[h].isPrimary=!0),!u.fields||-1!=e.indexOf(h)||(t=Object.keys(u.fields)).length&&(u.fields[t[0]].isPrimary=!0)}}function ue(){var e="";u.checkbox.showAllFields=u.showAllFields=u.allFields&&!u.allFields.some(function(e){return!e.isActive}),u.hideAllFields=!u.allFields||!u.allFields.some(function(e){return e.isActive}),u.isFiltered=!u.showAllFields||u.allFields.some(function(e){return!e.isActive}),u.checkbox.showAllFields?e="All activities are displayed":u.hideAllFields&&(e="All activities are hidden"),e=e,window.NOW&&window.NOW.accessibility&&window.NOW.accessibility.ariaLiveAssertive&&window.NOW.accessibility.ariaLiveAssertive(e)}function ce(e,t){l.has("translateStream")&&l.get("translateStream").getTranslatedContent(e,t)}function de(e){l.has("translateStream")&&l.get("translateStream").toggleTranslation(e)}function fe(e,t){u.entries=u.entries.concat(u.allEntries.slice(e,t)),u.loadedEntries=u.entries.length,u.$emit("sn.stream.entries_change",u.entries)}function me(e){angular.forEach(e,function(e){e.new_value&&(e.new_value=e.new_value.replace(/\n/g,"<br/>")),e.sanitized_new_value&&(e.sanitized_new_value=e.sanitized_new_value.replace(/\n/g,"<br/>"))})}function M(){return m&&(clearTimeout(m),m=!1),o&&(o.cancel(),o=null,1)}function S(){var t;u.multipleInputs=u.useMultipleInputs,!0!==u.useMultipleInputs&&u.formJournalFields&&(t=0,angular.forEach(u.formJournalFields,function(e){(e.mandatory||e.value)&&t++}),0<t&&(u.multipleInputs=!0))}u.$watch("useMultipleInputs",function(){u.useMultipleInputs?ne=u.$watch("fields",function(e,t,n){var i;e!==t&&(i="",angular.forEach(u.fields,function(e){e.value&&(i=e.value)}),ie(i))},!0):ne(),S()}),u.$watch("formJournalFields",function(){le(),oe(),S()},!0),u.getStubbedFieldModel=function(e){return u.fields[e]||(u.fields[e]={name:e}),u.fields[e]},u.setPrimary=function(e){angular.forEach(u.fields,function(e){e.checked=!1});for(var t,n=0;n<y.length;n++){var i=y[n];if(-1!=e.writable_journal_fields.indexOf(i))return e.primaryJournalField=i,void(e.inputType=i)}e.inputType||(t=e.writable_journal_fields[0],e.primaryJournalField=t,e.inputType=t)},u.updateFieldVisibilityAll=function(){u.showAllFields=!u.showAllFields,angular.forEach(u.allFields,function(e){e.isActive=u.showAllFields}),u.updateFieldVisibility()},u.updateFieldVisibility=function(){var e=u.allFields.map(function(e){return e.name+","+e.isActive});ue(),u.$emit("sn.stream.is_filtered_change",u.isFiltered),i.setPreference(u.table+".activity.filter",e.join(";")).then(function(){se(),u.filterModified=!0})},u.configureAvailableFields=function(){n.personalizer(u.table,"activity",u.sysId)},u.isInForm=function(){return"undefined"!=typeof g_form},u.toggleMultipleInputs=function(t,e){var n;e&&"keydown"===e.type&&13!==e.keyCode&&32!==e.keyCode||(n=!0,u.multipleInputs&&angular.forEach(u.fields,function(e){u.inputType!=e.name&&e.value&&(n=!1)}),n&&i.setPreference("glide.ui.activity_stream.multiple_inputs",t?"true":"false").then(function(){var e;u.useMultipleInputs=t,S(),u.multipleInputs===t&&angular.forEach(u.fields,function(e){u.inputType==e.name?u.multipleInputs?e.value=u.inputTypeValue:u.inputTypeValue=e.value:e.value=""}),!t||(e=document.querySelector(".sn-stream #multiple-input-journal-entry button.icon-stream-one-input"))&&setTimeout(function(){$(e).focus()},0)}))},u.changeEntryInputType=function(e,t){var n=u.fields[e].checked;t.inputType=n?e:t.primaryJournalField},u.loadMore=function(){u.entries.length+u.pageSize>u.allEntries.length?u.loadAll():fe(u.loadedEntries,u.loadedEntries+u.pageSize)},u.loadAll=function(){u.showAllEntriesButton=!1,fe(u.loadedEntries,u.allEntries.length)},u.translateStreamEntryClick=function(e,t){ce(e,t)},u.translateStreamEntryKeypress=function(e,t,n){32===(e.keyCode||e.which)&&(e.preventDefault(),ce(t,n))},u.translationToggleClick=function(e){de(e)},u.translationToggleKeypress=function(e,t){32===(e.keyCode||e.which)&&(e.preventDefault(),de(t))},u.$on("sn.stream.translation_successful",function(e,t){t.entry.translatedText=u.parseSpecial(t.translatedText)});var pe,O,ye,P=angular.element("#activity_field_filter_button"),N=angular.element("#activity_field_filter_popover");function he(){return document.querySelector("#activity_field_filter_listbox [focused]")}function j(e,t){var n=document.getElementById("activity_field_filter_listbox");n&&(n.setAttribute("aria-activedescendant",e),(n=document.getElementById(e))&&(n.setAttribute("focused",""),t&&n.focus()))}u.filterOpen=!1,P.on("shown.bs.popover",function(){u.$apply(function(){u.filterOpen=!0,N.parent().parent().attr("role","presentation"),j("activity_filter_all",!1)}),(pe=n.focusTrap(N[0],{clickOutsideDeactivates:!0,initialFocus:"#activity_filter_all"})).activate()}),P.on("hidden.bs.popover",function(){u.$apply(function(){var e,t;u.filterOpen=!1,u.filterModified&&(GlideUXMetrics&&(e=u.allFields.filter(function(e){return e.isActive}).map(function(e){return e.name}).sort().join(),t=u.allFields.filter(function(e){return!e.isActive}).map(function(e){return e.name}).sort().join(),GlideUXMetrics.track("Filter Activity Selected Fields",{table:u.table,fields:e}),GlideUXMetrics.track("Filter Activity Unselected Fields",{table:u.table,fields:t})),u.filterModified=!1)}),pe.deactivate()}),P.on("keydown",function(e){u.filterOpen||13!==e.keyCode||P.popover("show")}),N.on("keydown",function(e){if(38===e.keyCode||e.shiftKey&&9===e.keyCode){if(e.preventDefault(),!(n=he()))return;var t=("INPUT"===n.tagName?n.parentElement:n).previousElementSibling;if(!t)return;n.removeAttribute("focused"),j(("SPAN"===t.tagName?t.firstElementChild:t).id,!0)}else if(40===e.keyCode||9===e.keyCode){var n;if(e.preventDefault(),!(n=he()))return;t=("INPUT"===n.tagName?n.parentElement:n).nextElementSibling;if(!t)return;n.removeAttribute("focused"),j(("SPAN"===t.tagName?t.firstElementChild:t).id,!0)}27===e.keyCode&&P.popover("hide")}),N.on("click","input[type=checkbox]",function(){var e=he();e&&e.removeAttribute("focused"),j(this.id,!1)}),N.on("focus","input[type=checkbox]",function(){O||(O=N.parent(".popover-content")[0],ye=O.offsetHeight);var e=O.scrollTop,t=this.parentElement.offsetHeight,n=this.parentElement.offsetTop,t=n+t;"activity_filter_all"==this.id?O.scrollTop=0:n<e?O.scrollTop=n:ye+e<t&&(O.scrollTop=t-ye)}),a.fire("sn.stream.loaded")}]).filter("visibleFields",function(){return function(e){var t={};return angular.forEach(e,function(e){e.visible&&(t[e.name]=e)}),t}}); angular.module("sn.common.stream").directive("snStream",["getTemplateUrl","$http","$sce","$sanitize",function(e,t,n,r){"use strict";return{restrict:"E",replace:!0,scope:{table:"=",query:"=?",sysId:"=?",active:"=",controls:"=?",showCommentsAndWorkNotes:"=?",previousActivity:"=?",sessions:"=",attachments:"=",board:"=",formJournalFields:"=",useMultipleInputs:"=?",preferredInput:"=",labels:"=",subStream:"=",expandEntries:"=",scaleAnimatedGifs:"=",scaleImages:"=",pageSize:"=",maxEntries:"@"},templateUrl:e("ng_activity_stream.xml"),controller:"snStream",link:function(r,e){e.on("click",".at-mention",function(n){var e=angular.element(n.target).attr("class").substring("at-mention at-mention-user-".length);t({url:"/api/now/form/mention/user/"+e,method:"GET"}).then(function(e){r.showPopover=!0,r.mentionPopoverProfile=e.data.result,r.clickEvent=n},function(){t({url:"/api/now/live/profiles/"+e,method:"GET"}).then(function(e){r.showPopover=!0;var t=e.data.result;t.userID=t.sys_id=e.data.result.document,r.mentionPopoverProfile=t,r.mentionPopoverProfile.sysID=e.data.result.userID,r.clickEvent=n})})}),r.toggleEmailIframe=function(e,t){e.expanded=!e.expanded,t.preventDefault()}}}}]); angular.module("sn.common.stream").directive("formStreamEntry",["getTemplateUrl",function(r){return{restrict:"A",templateUrl:r("record_stream_entry.xml")}}]); angular.module("sn.common.stream").directive("snExpandedEmail",function(){"use strict";return{restrict:"E",replace:!0,scope:{email:"="},template:"<iframe style='width: 100%;' class='card activity-stream-email-iframe' src='{{::emailBodySrc}}' title='{{::emailBodyMsg}}'></iframe>",controller:["$scope",function(e){e.emailBodySrc="email_display.do?email_id="+e.email.sys_id.displayValue}],link:function(e,i){i.load(function(){var e=$j(this).get(0).contentWindow.document.body.scrollHeight+"px";$j(this).height(e)})}}}); !function(){var r={};function i(e,n,o){r[e][n]!==o&&(r[e][n]=o,CustomEvent.fire("sn.form.journal_field.changed"))}window.journalModel=r,CustomEvent.observe("sn.form.journal_field.add",function(e,n,o,s,a,t){r[e]={name:e,mandatory:n,readonly:o,visible:s,value:a,label:t,messages:[]}}),CustomEvent.observe("sn.form.journal_field.readonly",function(e,n){i(e,"readonly",n)}),CustomEvent.observe("sn.form.journal_field.value",function(e,n){i(e,"value",n)}),CustomEvent.observe("sn.form.journal_field.mandatory",function(e,n){i(e,"mandatory",n)}),CustomEvent.observe("sn.form.journal_field.visible",function(e,n){i(e,"visible",n)}),CustomEvent.observe("sn.form.journal_field.label",function(e,n){i(e,"label",n)}),CustomEvent.observe("sn.form.journal_field.show_msg",function(e,n,o){i(e,"messages",r[e].messages.concat([{type:o,message:n}]))}),CustomEvent.observe("sn.form.journal_field.hide_msg",function(e,n){var o;0!=r[e].messages.length&&(o=[],i(e,"messages",o=n?o:r[e].messages.slice(1)))}),CustomEvent.observe("sn.form.hide_all_field_msg",function(e){for(var n=Object.keys(r),o=0;o<n.length;o++){var s=n[o];if(0!=r[s].messages.length){var a=[];if(e)for(var t=angular.copy(r[s].messages),l=0;l<t.length;l++)t[l].type!=e&&a.push(t[l]);i(s,"messages",a)}}}),CustomEvent.observe("sn.stream.insert",function(e,n){void 0!==window.g_form&&(g_form.getControl(e).value=NOW.STREAM_VALUE_KEY+n)}),CustomEvent.observe("sn.stream.clear",function(e){window.g_form&&(r[e].value=g_form.getControl(e).value="")}),angular.module("sn.common.stream").controller("formStream",["$scope","snCustomEvent","i18n",function(n,e,o){var s,a=!angular.element(".activity-stream-label-filtered").hasClass("hide");function t(e){e=e;e=o.getMessage("Activities: {0}").withValues([e]);angular.element(".activity-stream-label-counter").html(e),angular.element(".activity-stream-label-filtered").toggleClass("hide",!a)}function l(){angular.forEach(n.formJournalFields,function(e){void 0!==window.g_form&&(e.value=g_form.getValue(e.name),!e.readonly&&e.visible&&e.value&&n.$broadcast("sn.stream.input_value",e.name,e.value))})}n.$on("sn.stream.entries_change",function(e,n){t((0===s?0:s=document.querySelectorAll("#sn_form_inline_stream_container ul.activities-form li.h-card_comments").length)+n.length)}),n.$on("sn.stream.is_filtered_change",function(e,n){a=n}),n.formJournalFields=r,n.formJournalFieldsVisible=!1,l(),e.observe("sn.form.journal_field.changed",function(){l(),n.$$phase||n.$apply()})}])}(); angular.module("sn.common.stream").directive("scrollFrom",function(){"use strict";return{restrict:"A",link:function(o,e,t){t=t.scrollFrom;$j(t).click(function(o){window.g_form&&(t=g_form._getTabNameForElement(e))&&g_form.activateTab(t),e.find("textarea").filter(":visible:first").focus();var t=e.closest(".form-group"),t=(t=0===t.length?e:t).scrollParent(),r=e.offset().top-t.offset().top-10+t.scrollTop();t.animate({scrollTop:r},"500","swing"),o.stopPropagation()})}}}); /*! RESOURCE: /scripts/dynamic_translation/service.translateStream.js */ angular.module('sn.common.stream').factory('translateStream', function($rootScope, $http, i18n, dynamicTranslation) { 'use strict'; var JOURNAL = "JOURNAL"; var SHOW_MESSAGE = 'Show'; var HIDE_MESSAGE = 'Hide'; var SAME_LANGUAGE_ERROR_MESSAGE = 'This content is written in your preferred language. No need to translate.'; var CREDITS_MESSAGE = 'Translated by {0}'; var GENERIC_ERROR_MESSAGE = 'Unable to translate.'; var CREDENTIALS_ERROR_MESSAGE = 'Credentials are missing or invalid. Contact your administrator.'; var MAX_LENGTH_ERROR_MESSAGE = 'Text has exceeded the maximum length.'; var LANGUAGE_NOT_SUPPORTED_ERROR_MESSAGE = 'Text cannot be translated to your preferred language.'; var NO_TEXT_ERROR_MESSAGE = 'No text to translate.'; var showMsg = SHOW_MESSAGE; var hideMsg = HIDE_MESSAGE; var sameLanguageErrorMsg = SAME_LANGUAGE_ERROR_MESSAGE; var creditsMsg = CREDITS_MESSAGE; var genericErrorMsg = GENERIC_ERROR_MESSAGE; var credentialsErrorMsg = CREDENTIALS_ERROR_MESSAGE; var maxLengthErrorMsg = MAX_LENGTH_ERROR_MESSAGE; var langNotSupportedErrorMsg = LANGUAGE_NOT_SUPPORTED_ERROR_MESSAGE; var noTextErrorMsg = NO_TEXT_ERROR_MESSAGE; var _getTranslatedText = function(translations) { if (!(Array.isArray(translations))) return; var translatedText; for (var index = 0; index < translations.length; index++) { if (translations[index].targetLanguage === g_lang) { translatedText = translations[index].translatedText; break; } } return translatedText; }; var _getFormattedBody = function(s, entry) { return (entry.contains_code && entry.allow_code_tag) ? s : s.replace(/[\r\n]/g, '').replace(/<br\s*\/?>/g, '\n'); }; var _getAdditionalParameters = function(entry, isRetry, isCode) { return { 'event': { 'eventName': 'Activity Stream - Platform', 'fieldType': entry.change_type === JOURNAL ? JOURNAL : (entry.is_email ? 'EMAIL' : undefined), 'retry': isRetry ? true : false }, 'additionalParameters': [{ 'parameterName': 'textType', 'parameterValue': 'html' }, { 'parameterName': 'escapeHtml', 'parameterValue': isCode ? 'true' : 'false' }] }; }; var _showTranslationInProgress = function(entry) { entry.showTranslation = true; entry.isTranslationInProgress = true; entry.isTranslationSuccess = false; entry.isTranslationError = false; }; var _hasCode = function(params) { if (!params || !params.additionalParameters) return false; for (var index = 0; index < params.additionalParameters.length; index++) { if (params.additionalParameters[index].parameterName === 'escapeHtml') return params.additionalParameters[index].parameterValue === 'true'; } return false; }; var _showTranslationSuccess = function(entry, translatedText, credits, params) { entry.credits = credits; entry.toggleMsg = hideMsg; entry.isTranslationInProgress = false; entry.isTranslationSuccess = true; entry.isTranslationError = false; entry.showDetails = true; if (entry.is_email) { entry.translatedText = translatedText; entry.contains_code = _hasCode(params); } else { $rootScope.$broadcast('sn.stream.translation_successful', { 'entry': entry, 'translatedText': translatedText }); } }; var _showTranslationError = function(entry, errorMessage, tryAgain) { entry.isTranslationInProgress = false; entry.isTranslationSuccess = false; entry.isTranslationError = true; entry.translatedText = errorMessage; entry.tryAgain = tryAgain; }; var _getTranslatedMessage = function(valueToTranslate, params, entry) { dynamicTranslation.getTranslation(valueToTranslate, params) .then(function(successResponse) { var detectedLanguage = successResponse.detectedLanguage; if ((detectedLanguage) && (detectedLanguage.code == g_lang)) { _showTranslationError(entry, sameLanguageErrorMsg, false); } else { var translatedText = _getTranslatedText(successResponse.translations); if (translatedText) { var credits = i18n.format(creditsMsg, successResponse.translator); _showTranslationSuccess(entry, translatedText, credits, params); } else { _showTranslationError(entry, genericErrorMsg, true); } } }, function(errorResponse) { var errorCode = errorResponse.code; var errorMessage; var showRetry = false; switch (errorCode) { case '40052': errorMessage = maxLengthErrorMsg; break; case '40055': errorMessage = credentialsErrorMsg; break; case '40053': case '40054': case '40056': errorMessage = langNotSupportedErrorMsg; break; default: errorMessage = genericErrorMsg; showRetry = true; } _showTranslationError(entry, errorMessage, showRetry); }); }; var _getTextToTranslate = function(entry, isRetry) { return new Promise(function(resolve, reject) { if (entry.change_type === JOURNAL) { if (entry.is_truncated) { $j.get('/api/now/ui/stream_entry/full_entry?sysparm_sys_id=' + entry.sys_id, function(response, status, request) { if (!response) reject({}); if (response.result) resolve({ valueToTranslate: _getFormattedBody(response.result, entry), event: _getAdditionalParameters(entry, isRetry, entry.contains_code) }); }) .fail(function() { reject({}); }); } else { resolve({ valueToTranslate: _getFormattedBody(entry.sanitized_new_value, entry), event: _getAdditionalParameters(entry, isRetry, entry.contains_code) }); } } else if (entry.is_email) { var URL = 'email_display.do?email_id=' + entry.email.sys_id.displayValue; $j.get(URL, function(response, status, request) { resolve({ valueToTranslate: response, event: _getAdditionalParameters(entry, isRetry, 'text/plain' === request.getResponseHeader('Content-Type') ? false : true) }); }) .fail(function() { reject({}); }); } else { reject({}); } }); }; return { getTranslatedContent: function(entry, isRetry) { i18n.getMessages(['Show', 'Hide', 'This content is written in your preferred language. No need to translate.', 'Translated by {0}', 'Unable to translate.', 'Credentials are missing or invalid. Contact your administrator.', 'Text has exceeded the maximum length.', 'Text cannot be translated to your preferred language.', 'No text to translate.'], function(translatedMsgs) { showMsg = translatedMsgs[SHOW_MESSAGE]; hideMsg = translatedMsgs[HIDE_MESSAGE]; sameLanguageErrorMsg = translatedMsgs[SAME_LANGUAGE_ERROR_MESSAGE]; creditsMsg = translatedMsgs[CREDITS_MESSAGE]; genericErrorMsg = translatedMsgs[GENERIC_ERROR_MESSAGE]; credentialsErrorMsg = translatedMsgs[CREDENTIALS_ERROR_MESSAGE]; maxLengthErrorMsg = translatedMsgs[MAX_LENGTH_ERROR_MESSAGE]; langNotSupportedErrorMsg = translatedMsgs[LANGUAGE_NOT_SUPPORTED_ERROR_MESSAGE]; noTextErrorMsg = translatedMsgs[NO_TEXT_ERROR_MESSAGE]; _showTranslationInProgress(entry); _getTextToTranslate(entry, isRetry).then( function(response, retry) { if ((response) && (response.valueToTranslate)) _getTranslatedMessage(response.valueToTranslate, response.event, entry); else _showTranslationError(entry, noTextErrorMsg, false); }, function(response) { _showTranslationError(entry, genericErrorMsg, true); }); }); }, toggleTranslation: function(entry) { entry.showDetails = !entry.showDetails; entry.toggleMsg = entry.showDetails ? hideMsg : showMsg; } }; }); ; /*! RESOURCE: /scripts/dynamic_translation/directive.snTranslatedEmail.js */ angular.module("sn.common.stream").directive("snTranslatedEmail", function() { "use strict"; return { restrict: "E", replace: true, scope: { email: "=" }, template: "<iframe style='width: 100%;' class='card translation-email-frame'></iframe>", controller: function($scope) {}, link: function(scope, element) { element.context.contentWindow.document.open(); element.context.contentWindow.document.write(scope.email.contains_code === true ? scope.email.translatedText: '<pre style="word-wrap: break-word; white-space: pre-wrap;">' + scope.email.translatedText +'</pre>'); element.context.contentWindow.document.close(); element[0].setAttribute('style', 'height: ' + element.context.contentWindow.document.body.scrollHeight + 'px'); } }; }); ; ; /*! RESOURCE: scripts/js_includes_dynamic_translation_ngStream.js */ angular.module("sn.common.dynamicTranslation",["sn.common.i18n"]); angular.module("sn.common.dynamicTranslation").provider("dynamicTranslation",function(){function o(){return{headers:{"Content-Type":"application/json",Accept:"application/json"}}}function c(e){return(e=e||{}).event=e.event||{},e.event.source="portalAPI",e}function s(e){return"string"!=typeof e}function n(e){return null==e||"string"!=typeof e||0===e.trim().length}function r(e){if(!Array.isArray(e)||0===e.length)return 1;for(var t=0;t<e.length;t++)if(s(e[t]))return 1}var l={rejectErrorMessage:function(e){this.hasMultipleTexts?this.defer.reject({code:this.code,message:e,status:"Error"}):this.defer.reject({code:this.code,message:e})}};function u(e,t,r,s,a){if(l.hasMultipleTexts=a,l.defer=t,e.constructor!=={}.constructor)l.code="40006",r.getMessage("Additional parameters are invalid",l.rejectErrorMessage.bind(l));else{if(null==(a=e.translator)||"string"==typeof a){if(s){if(null!=e.sourceLanguage&&n(e.sourceLanguage))return l.code="40008",void r.getMessage('Source language ("sourceLanguage" field) is invalid',l.rejectErrorMessage.bind(l));if(e.targetLanguages&&function(e){if(!Array.isArray(e)||0===e.length)return 1;for(var t=0;t<e.length;t++)if(n(e[t]))return 1}(e.targetLanguages))return l.code="40007",void r.getMessage('Target languages ("targetLanguages" field) are invalid',l.rejectErrorMessage.bind(l));if(e.additionalParameters&&function(e){if(!Array.isArray(e)||0===e.length)return 1;for(var t=0;t<e.length;t++){var r=e[t];if(!r||r.constructor!=={}.constructor||2!==Object.keys(r).length)return 1;for(eachkey in r)if("parameterName"!==eachkey&&"parameterValue"!==eachkey||n(r[eachkey]))return 1}}(e.additionalParameters))return l.code="40006",void r.getMessage("Additional parameters are invalid",l.rejectErrorMessage.bind(l))}return 1}l.code="40003",r.getMessage('Translator ("translator" field) is invalid',l.rejectErrorMessage.bind(l))}}function d(e,t,r,s){l.hasMultipleTexts=s,l.defer=t,400===e?(l.code="40001",r.getMessage("Dynamic Translation plugin is not installed",l.rejectErrorMessage.bind(l))):(l.code="40051",r.getMessage("Unknown error occurred",l.rejectErrorMessage.bind(l)))}this.$get=["$http","$q","i18n",function(a,n,i){return{getTranslation:function(e,t){var r=n.defer();return s(e)?(l.defer=r,l.code="40000",i.getMessage("Text is missing or invalid",l.rejectErrorMessage.bind(l))):t&&!u(t,r,i,!0,!1)||(e={textToTranslate:e,parms:c(t)},t=o(),a.post("/api/sn_dt/v1/dynamic_translation/get_dynamic_translation",e,t).success(function(e){var t;e.result.isError?r.reject(JSON.parse(e.result.errorMessage)):r.resolve((t={translations:(e=e).result.translations,translator:e.result.translator},e.result.detectedLanguage&&(t.detectedLanguage=e.result.detectedLanguage),t))}).error(function(e,t){d(t,r,i,!1)})),r.promise},getTranslations:function(e,t){var s=n.defer();return!e||r(e)?(l.defer=s,l.code="40000",l.hasMultipleTexts=!0,i.getMessage("Text is missing or invalid",l.rejectErrorMessage.bind(l))):t&&!u(t,s,i,!0,!0)||(e={textsToTranslate:e,parms:c(t)},t=o(),a.post("/api/sn_dt/v1/dynamic_translation/get_dynamic_translations",e,t).success(function(e){var t,r;e.result.isError?s.reject((t=e,r={status:(t=JSON.parse(t.result.errorMessage)).status,code:t.code,message:t.message},t.translations&&(r.translations=t.translations),t)):s.resolve({status:e.result.status,translations:e.result.translations,translator:e.result.translator})}).error(function(e,t){d(t,s,i,!0)})),s.promise},isTranslationEnabled:function(e){var t=n.defer();return e&&"string"!=typeof e?i.getMessage('Translator ("translator" field) is invalid',function(e){t.reject({code:"40003",message:e})}):this.isEnabled({event:{eventName:"isTranslationEnabled"},translator:e}).then(function(e){t.resolve(e.translation)},function(e){t.reject(!1)}),t.promise},getDetectedLanguage:function(e,t){var r=n.defer();return s(e)?(l.defer=r,l.code="40000",i.getMessage("Text is missing or invalid",l.rejectErrorMessage.bind(l))):t&&!u(t,r,i,!1,!1)||(e={text:e,parms:c(t)},t=o(),a.post("/api/sn_dt/v1/dynamic_translation/get_detected_language",e,t).success(function(e){e.result.isError?r.reject(JSON.parse(e.result.errorMessage)):r.resolve({detectedLanguage:e.result.detectedLanguage,alternatives:e.result.alternatives,translator:e.result.translator})}).error(function(e,t){d(t,r,i,!1)})),r.promise},getDetectedLanguages:function(e,t){var s=n.defer();return!e||r(e)?(l.defer=s,l.code="40000",l.hasMultipleTexts=!0,i.getMessage("Text is missing or invalid",l.rejectErrorMessage.bind(l))):t&&!u(t,s,i,!1,!0)||(e={texts:e,parms:c(t)},t=o(),a.post("/api/sn_dt/v1/dynamic_translation/get_detected_languages",e,t).success(function(e){var t,r;e.result.isError?s.reject((t=e,r={status:(t=JSON.parse(t.result.errorMessage)).status,code:t.code,message:t.message},t.detections&&(r.detections=t.detections),t)):s.resolve({status:e.result.status,detections:e.result.detections,translator:e.result.translator})}).error(function(e,t){d(t,s,i,!0)})),s.promise},isEnabled:function(e){var t,r=n.defer(),s=e&&e.constructor==={}.constructor?e.translator:e;return(t=s)&&"string"!=typeof t?i.getMessage('Translator ("translator" field) is invalid',function(e){r.reject({code:"40003",message:e})}):(t={parms:c(e="string"==typeof e?{translator:s}:e)},s=o(),a.post("/api/sn_dt/v1/dynamic_translation/is_enabled",t,s).success(function(e){r.resolve(e.result)}).error(function(e,t){r.resolve({translation:!1,detection:!1,batchTranslation:!1,batchDetection:!1})})),r.promise}}}]}); var GlideWebAnalytics=function(){function a(){var e;window.snWebaConfig=window.snWebaConfig||{},window.snWebaConfig.subscribed&&1==window.snWebaConfig.subscribed||null!=(e=window.snWebaConfig.ambClient||(window.snWebaConfig.ambClient=window.g_ambClient||(window.amb?window.amb.getClient():""),window.snWebaConfig.ambClient))&&""!=e&&(e.getChannel("/weba/config").subscribe(function(e){null!=window.snWebaConfig&&null!=window.snWebaConfig||(window.snWebaConfig={});var n,t={siteId:window.snWebaConfig.siteId||"0",trackerURL:window.snWebaConfig.trackerURL||""};if(window.snWebaConfig.siteId=e.data.weba_site_id,window.snWebaConfig.trackerURL=e.data.weba_rx_url,window.snWebaConfig.webaScriptPath=e.data.weba_script_path,e=t,function(e){return"0"==e.siteId||""==e.trackerURL}(t=window.snWebaConfig)){if(o()){e=window.parent.document;(e=e.getElementById("webaTracker")).parentNode.removeChild(e);e=window.parent.document.getElementById("webaScript");null!=e&&null!=(t=e.src)&&0<t.indexOf("piwik")&&e.parentNode.removeChild(e);for(var i=window.parent.document.getElementsByClassName("weba"),a=i.length-1;0<=a;)i[a].parentNode.removeChild(i[a]),a--}}else!function(e,n){return e.siteId&&"0"!=e.siteId&&e.siteId!=n.siteId||!(!e.trackerURL||e.trackerURL==n.trackerURL)}(e,t)?function(e){return null==e.siteId||"0"==e.siteId||(null==e.trackerURL||""==e.trackerURL)}(e)&&r(t):(e=t,o()&&(t=(t=window.parent.document).head||t.getElementsByTagName("head")[0],e="_paq.push(['setSiteId', "+e.siteId+"]);_paq.push(['setTrackerUrl', '"+e.trackerURL+"']);",(n=window.document.createElement("script")).text=e,n.className="weba",t.appendChild(n)))}),e.connect(),window.snWebaConfig.subscribed=!0)}function r(e,n){var t,i,a=window.parent.document,a=a.head||a.getElementsByTagName("head")[0];o()||s(e)&&(e=function(e,n){var t=e.trackerURL;t.endsWith("/")&&(t=e.trackerURL.substring(0,t.length-1));var n=function(e){{if(window.NOW&&window.NOW.user_id&&""!=window.NOW.user_id)return window.NOW.user_id;if(e&&e.userId)return e.userId;if(window.NOW&&window.NOW.session_id)return window.NOW.session_id;e=window.NOW?window.NOW.user:null;if(e&&e.userID)return e.userID}return""}(n),i="var _paq = _paq || [];";n&&""!=n&&(i+="_paq.push(['setUserId', '"+n+"']);");return i=(i+="_paq.push(['trackPageView']); _paq.push(['enableLinkTracking']);")+"(function() {_paq.push(['setTrackerUrl','"+t+"']);_paq.push(['setSiteId', "+e.siteId+"]);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src='"+e.webaScriptPath+"'; g.id='webaScript';s.parentNode.insertBefore(g,s); })();"}(e,n),n="webaTracker",t=window.parent.document,(i=t.getElementById(n))||((i=t.createElement("script")).id=n,i.type="text/javascript"),(t=i).text=e,a.appendChild(t))}function n(e){r(window.snWebaConfig,e),a()}function d(e,n,t,i){e=e,n=n,t=t,i=i,s(window.snWebaConfig)&&(o()||r(window.snWebaConfig),"string"==typeof e&&"string"==typeof n&&"string"==typeof t&&(e=["trackEvent",e,n,t,i=i&&("number"==typeof i?i:0)],n="_paq.push("+JSON.stringify(e)+");",t=window.parent.document,i=t.head||t.getElementsByTagName("head")[0],(e=window.document.createElement("script")).className="weba",e.text=n,i.appendChild(e))),a()}function o(){return!!window.parent.document.getElementById("webaTracker")}function s(e){var n=e&&e.siteId?e.siteId:"0",e=e&&e.trackerURL?e.trackerURL:"";return null!=n&&""!=n&&("0"!=n&&(null!=e&&""!=e))}return{trackPage:function(e){"complete"==window.document.readyState?n(e):window.addEventListener("load",function(){n(e)},!1)},trackEvent:function(e,n,t,i,a){null==a&&(a=3e3),window.setTimeout(function(){d(e,n,t,i)},a)}}}(); function _typeof(e){return(_typeof="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})(e)}!function(){window.XMLHttpRequest&&!window.XMLHttpRequest.__isFileAPIShim&&(e="setRequestHeader",t=function(r){return function(e,t){var n;"__setXHR_"===e?(n=t(this))instanceof Function&&n(this):r.apply(this,arguments)}},window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e]));var e,t,n=angular.module("angularFileUpload",[]);function f(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e}function E(e){if(2<e.length&&"/"===e[0]&&"/"===e[e.length-1])return e.substring(1,e.length-1);var t=e.split(","),n="";if(1<t.length)for(var r=0;r<t.length;r++)n+="("+E(t[r])+")",r<t.length-1&&(n+="|");else n=(n="^"+(e=0==e.indexOf(".")?"*"+e:e).replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$").replace(/\\\*/g,".*").replace(/\\\?/g,".");return n}n.version="3.1.2",n.service("$upload",["$http","$q","$timeout",function(i,e,a){function t(n){n.method=n.method||"POST",n.headers=n.headers||{},n.transformRequest=n.transformRequest||function(e,t){return window.ArrayBuffer&&e instanceof window.ArrayBuffer?e:i.defaults.transformRequest[0](e,t)};var t=e.defer(),r=t.promise;return n.headers.__setXHR_=function(){return function(e){e&&(n.__XHR=e,n.xhrFn&&n.xhrFn(e),e.upload.addEventListener("progress",function(e){e.config=n,t.notify?t.notify(e):r.progress_fn&&a(function(){r.progress_fn(e)})},!1),e.upload.addEventListener("load",function(e){e.lengthComputable&&(e.config=n,t.notify?t.notify(e):r.progress_fn&&a(function(){r.progress_fn(e)}))},!1))}},i(n).then(function(e){t.resolve(e)},function(e){t.reject(e)},function(e){t.notify(e)}),r.success=function(t){return r.then(function(e){t(e.data,e.status,e.headers,n)}),r},r.error=function(t){return r.then(null,function(e){t(e.data,e.status,e.headers,n)}),r},r.progress=function(t){return r.progress_fn=t,r.then(null,null,function(e){t(e)}),r},r.abort=function(){return n.__XHR&&a(function(){n.__XHR.abort()}),r},r.xhr=function(e){var t;return n.xhrFn=(t=n.xhrFn,function(){t&&t.apply(r,arguments),e.apply(r,arguments)}),r},r}this.upload=function(u){u.headers=u.headers||{},u.headers["Content-Type"]=void 0;u.transformRequest;return u.transformRequest=u.transformRequest?"[object Array]"===Object.prototype.toString.call(u.transformRequest)?u.transformRequest:[u.transformRequest]:[],u.transformRequest.push(function(e,t){var n=new FormData,r={};for(i in u.fields)r[i]=u.fields[i];if(e&&(r.data=e),u.formDataAppender)for(var i in r)u.formDataAppender(n,i,r[i]);else for(var i in r){var a=r[i];void 0!==a&&("[object String]"===Object.prototype.toString.call(a)?n.append(i,a):u.sendObjectsAsJsonBlob&&"object"===_typeof(a)?n.append(i,new Blob([a],{type:"application/json"})):n.append(i,JSON.stringify(a)))}if(null!=u.file){var o=u.fileFormDataName||"file";if("[object Array]"===Object.prototype.toString.call(u.file))for(var l="[object String]"===Object.prototype.toString.call(o),s=0;s<u.file.length;s++)n.append(l?o:o[s],u.file[s],u.fileName&&u.fileName[s]||u.file[s].name);else n.append(o,u.file,u.fileName||u.file.name)}return n}),t(u)},this.http=t}]),n.directive("ngFileSelect",["$parse","$timeout","$compile",function(y,A,w){return{restrict:"AEC",require:"?ngModel",link:function(e,t,n,r){var p=e,i=t,d=n,g=r,h=y,_=A,a=w,o=[];function l(){var e=i.clone();if(i.attr("__afu_gen__")&&angular.element(document.getElementById(i.attr("id").substring(1))).remove(),i.parent().length){for(var t=0;t<o.length;t++)o[t]();i.replaceWith(e),a(e)(p)}return e}function s(e,t){var n;e&&(n=e,_(function(){i.parent().length&&o.push(p.$watch(n,function(e,t){e!=t&&l()}))}),(e=h(e)(p))?(i.attr(t,e),d[t]=e):(i.attr(t,null),delete d[t]))}function u(e){for(var t=e.__files_||e.target&&e.target.files,n=d,r=g,i=p,a=e,o=[],l=[],e=h(n.ngAccept)(i),s=angular.isString(e)&&e?new RegExp(E(e),"gi"):null,u=s?null:n.ngAccept,f=0;f<t.length;f++){var c=t.item(f);(!(!s||c.type.match(s)||null!=c.name&&c.name.match(s))||u&&!h(u)(i,{$file:c,$event:a})?l:o).push(c)}_(function(){r&&(h(n.ngModel).assign(i,o),r&&r.$setViewValue(null!=o&&0==o.length?"":o),n.ngModelRejected&&h(n.ngModelRejected).assign(i,l)),n.ngFileChange&&""!=n.ngFileChange&&h(n.ngFileChange)(i,{$files:o,$rejectedFiles:l,$event:a})})}s(d.ngMultiple,"multiple"),s(d.ngAccept,"ng-accept"),s(d.ngCapture,"capture"),""!=d.ngFileSelect&&(d.ngFileChange=d.ngFileSelect);var f,c=i;if("input"===i[0].tagName.toLowerCase()&&i.attr("type")&&"file"===i.attr("type").toLowerCase())i.bind("click",m);else{for(var v in c=angular.element('<input type="file">'),i.attr("multiple")&&c.attr("multiple",i.attr("multiple")),i.attr("accept")&&c.attr("accept",i.attr("accept")),i.attr("capture")&&c.attr("capture",i.attr("capture")),d)0==v.indexOf("inputFile")&&(f=(f=v.substring("inputFile".length))[0].toLowerCase()+f.substring(1),c.attr(f,d[v]));c.css("width","0px").css("height","0px").css("position","absolute").css("padding",0).css("margin",0).css("overflow","hidden").attr("tabindex","-1").css("opacity",0).attr("__afu_gen__",!0),i.attr("__refElem__",!0),c[0].__refElem__=i[0],i.parent()[0].insertBefore(c[0],i[0]),i.css("overflow","hidden"),i.bind("click",function(e){m(e)||c[0].click()})}function m(e){var t;if(null!=c[0].value&&""!=c[0].value&&(c[0].value=null,-1===navigator.userAgent.indexOf("Trident/7")&&u({target:{files:[]}})),i.attr("__afu_clone__"))i.attr("__afu_clone__",null);else if(-1!==navigator.appVersion.indexOf("MSIE 10")||-1!==navigator.userAgent.indexOf("Trident/7"))return(t=l()).attr("__afu_clone__",!0),t[0].click(),e.preventDefault(),e.stopPropagation(),!0}c.bind("change",u),i.on("$destroy",function(){for(var e=0;e<o.length;e++)o[e]();i[0]!=c[0]&&c.remove()}),o.push(p.$watch(d.ngModel,function(e,t){e==t||null!=e&&e.length||(-1!==navigator.appVersion.indexOf("MSIE 10")?l():c[0].value=null)}))}}}]),n.directive("ngFileDrop",["$parse","$timeout","$location",function(o,s,u){return{restrict:"AEC",require:"?ngModel",link:function(e,t,n,r){var i,g,l,h,_,v,m=e,y=t,A=n,w=r,b=o,F=s,R=u,a=f();A.dropAvailable&&F(function(){m.dropAvailable?m.dropAvailable.value=a:m.dropAvailable=a}),a?(i=null,g=b(A.stopPropagation)(m),l=1,e=b(A.ngAccept)(m)||A.accept,h=angular.isString(e)&&e?new RegExp(E(e),"gi"):null,_=h?null:A.ngAccept,y[0].addEventListener("dragover",function(e){var t;e.preventDefault(),g&&e.stopPropagation(),-1<navigator.userAgent.indexOf("Chrome")&&(t=e.dataTransfer.effectAllowed,e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy"),F.cancel(i),m.actualDragOverClass||(v=function(e,t,n){var r=!0;if(h||_){var i=n.dataTransfer.items;if(null!=i)for(var a=0;a<i.length&&r;a++)r=r&&("file"==i[a].kind||""==i[a].kind)&&(_&&b(_)(e,{$file:i[a],$event:n})||h&&null!=i[a].type&&i[a].type.match(h)||null!=i[a].name&&i[a].name.match(h))}var o=b(t.dragOverClass)(e,{$event:n});o&&(o.delay&&(l=o.delay),o.accept&&(o=r?o.accept:o.reject));return o||t.dragOverClass||"dragover"}(m,A,e)),y.addClass(v)},!1),y[0].addEventListener("dragenter",function(e){e.preventDefault(),g&&e.stopPropagation()},!1),y[0].addEventListener("dragleave",function(e){i=F(function(){y.removeClass(v),v=null},l||1)},!1),""!=A.ngFileDrop&&(A.ngFileChange=A.ngFileDrop),y[0].addEventListener("drop",function(n){n.preventDefault(),g&&n.stopPropagation(),y.removeClass(v),v=null;var t=n,r=function(e,t){F(function(){w&&(b(A.ngModel).assign(m,e),w&&w.$setViewValue(null!=e&&0==e.length?"":e)),A.ngModelRejected&&m[A.ngModelRejected]&&b(A.ngModelRejected).assign(m,t)}),F(function(){b(A.ngFileChange)(m,{$files:e,$rejectedFiles:t,$event:n})})},e=0!=b(A.allowDir)(m),i=A.multiple||b(A.ngMultiple)(m),a=[],o=[],l=t.dataTransfer.items,s=0;function u(e){(!(!h||e.type.match(h)||null!=e.name&&e.name.match(h))||_&&!b(_)(m,{$file:e,$event:t})?o:a).push(e)}if(l&&0<l.length&&"file"!=R.protocol())for(var f=0;f<l.length;f++){if(l[f].webkitGetAsEntry&&l[f].webkitGetAsEntry()&&l[f].webkitGetAsEntry().isDirectory){var c=l[f].webkitGetAsEntry();if(c.isDirectory&&!e)continue;null!=c&&!function r(i,a,o){{var e,t,l;null!=a&&(a.isDirectory?(e=(o||"")+a.name,u({name:a.name,type:"directory",path:e}),t=a.createReader(),l=[],s++,function n(){t.readEntries(function(e){try{if(e.length)l=l.concat(Array.prototype.slice.call(e||[],0)),n();else{for(var t=0;t<l.length;t++)r(i,l[t],(o||"")+a.name+"/");s--}}catch(e){s--,console.error(e)}},function(){s--})}()):(s++,a.file(function(e){try{s--,e.path=(o||"")+e.name,u(e)}catch(e){s--,console.error(e)}},function(e){s--})))}}(a,c)}else{c=l[f].getAsFile();null!=c&&u(c)}if(!i&&0<a.length)break}else{var p=t.dataTransfer.files;if(null!=p)for(f=0;f<p.length&&(u(p.item(f)),i||!(0<a.length));f++);}var d=0;!function t(e){F(function(){if(s)10*d++<2e4&&t(10);else{if(!i&&1<a.length){for(var e=0;"directory"==a[e].type;)e++;a=[a[e]]}r(a,o)}},e||0)}()},!1)):0!=b(A.hideOnDropNotAvailable)(m)&&y.css("display","none")}}}]),n.directive("ngNoFileDrop",function(){return function(e,t,n){f()&&t.css("display","none")}}),n.directive("ngFileDropAvailable",["$parse","$timeout",function(i,a){return function(e,t,n){var r;f()&&(r=i(n.ngFileDropAvailable),a(function(){r(e)}))}}]);var r,i=angular.module("ngFileUpload",[]);for(r in n)i[r]=n[r]}(),function(){function o(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(null!=navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}var n,i;function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}if(window.XMLHttpRequest&&!window.FormData||window.FileAPI&&FileAPI.forceLoad){function l(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(e){}}function a(r){var i;r.__listeners||(r.upload||(r.upload={}),r.__listeners=[],i=r.upload.addEventListener,r.upload.addEventListener=function(e,t,n){r.__listeners[e]=t,i&&i.apply(this,arguments)})}function s(e){if(!o())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';var t=angular.element(e);if(!t.attr("disabled")){for(var n=!1,r=0;r<t[0].attributes.length;r++)if(-1!==t[0].attributes[r].name.indexOf("file-select")){n=!0;break}if(!t.hasClass("js-fileapi-wrapper")&&(n||null!=t.attr("__afu_gen__"))&&(t.addClass("js-fileapi-wrapper"),null!=t.attr("__afu_gen__"))){for(var i=t[0].__refElem__&&angular.element(t[0].__refElem__)||t;i&&!i.attr("__refElem__");)i=angular.element(i[0].nextSibling);i.bind("mouseover",function(){""!==t.parent().css("position")&&"static"!==t.parent().css("position")||t.parent().css("position","relative"),t.css("position","absolute").css("top",i[0].offsetTop+"px").css("left",i[0].offsetLeft+"px").css("width",i[0].offsetWidth+"px").css("height",i[0].offsetHeight+"px").css("padding",i.css("padding")).css("margin",i.css("margin")).css("filter","alpha(opacity=0)"),i.attr("onclick",""),t.css("z-index","1000")})}}}function u(r){return function(t){for(var e=FileAPI.getFiles(t),n=0;n<e.length;n++)void 0===e[n].size&&(e[n].size=0),void 0===e[n].name&&(e[n].name="file"),void 0===e[n].type&&(e[n].type="undefined");t.target||(t.target={}),t.target.files=e,t.target.files!=e&&(t.__files_=e),(t.__files_||t.target.files).item=function(e){return(t.__files_||t.target.files)[e]||null},r&&r.apply(this,[t])}}function f(e,t){return("change"===t.toLowerCase()||"onchange"===t.toLowerCase())&&"file"==e.getAttribute("type")}e("open",function(r){return function(t,e,n){a(this),this.__url=e;try{r.apply(this,[t,e,n])}catch(e){-1<e.message.indexOf("Access is denied")&&(this.__origError=e,r.apply(this,[t,"_fix_for_ie_crossdomain__",n]))}}}),e("getResponseHeader",function(t){return function(e){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(e):null==t?null:t.apply(this,[e])}}),e("getAllResponseHeaders",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}}),e("abort",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}}),e("setRequestHeader",function(r){return function(e,t){var n;"__setXHR_"===e?(a(this),(n=t(this))instanceof Function&&n(this)):(this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[e]=t,r.apply(this,arguments))}}),e("send",function(a){return function(){var r=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var e=arguments[0],t={url:r.__url,jsonp:!1,cache:!0,complete:function(e,t){r.__completed=!0,!e&&r.__listeners.load&&r.__listeners.load({type:"load",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0}),!e&&r.__listeners.loadend&&r.__listeners.loadend({type:"loadend",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0}),"abort"===e&&r.__listeners.abort&&r.__listeners.abort({type:"abort",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0}),void 0!==t.status&&l(r,"status",function(){return 0==t.status&&e&&"abort"!==e?500:t.status}),void 0!==t.statusText&&l(r,"statusText",function(){return t.statusText}),l(r,"readyState",function(){return 4}),void 0!==t.response&&l(r,"response",function(){return t.response});var n=t.responseText||(e&&0==t.status&&"abort"!==e?e:void 0);l(r,"responseText",function(){return n}),l(r,"response",function(){return n}),e&&l(r,"err",function(){return e}),r.__fileApiXHR=t,r.onreadystatechange&&r.onreadystatechange(),r.onload&&r.onload()},fileprogress:function(e){var t;(e.target=r).__listeners.progress&&r.__listeners.progress(e),r.__total=e.total,r.__loaded=e.loaded,e.total===e.loaded&&(t=this,setTimeout(function(){r.__completed||(r.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4))},headers:r.__requestHeaders,data:{},files:{}},n=0;n<e.data.length;n++){var i=e.data[n];null!=i.val&&null!=i.val.name&&null!=i.val.size&&null!=i.val.type?t.files[i.key]=i.val:t.data[i.key]=i.val}setTimeout(function(){if(!o())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r.__fileApiXHR=FileAPI.upload(t)},1)}else{if(this.__origError)throw this.__origError;a.apply(r,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0;if(HTMLInputElement.prototype.addEventListener&&(HTMLInputElement.prototype.addEventListener=(i=HTMLInputElement.prototype.addEventListener,function(e,t,n,r){f(this,e)?(s(this),i.apply(this,[e,u(t),n,r])):i.apply(this,[e,t,n,r])})),HTMLInputElement.prototype.attachEvent&&(HTMLInputElement.prototype.attachEvent=(n=HTMLInputElement.prototype.attachEvent,function(e,t){f(this,e)?(s(this),window.jQuery?angular.element(this).bind("change",u(null)):n.apply(this,[e,u(t)])):n.apply(this,[e,t])})),window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}},window.FileAPI||(window.FileAPI={}),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var t,r,c,p,d,g=document.createElement("script"),h=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)t=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(c=0;c<h.length;c++)if(-1<(p=(d=h[c].src).search(/\/angular\-file\-upload[\-a-zA-z0-9\.]*\.js/))){r=d.substring(0,p+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),g.setAttribute("src",t||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(g),FileAPI.hasFlash=o()}FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}window.FileReader||(window.FileReader=function(){function n(e,t){return e={type:e,target:r,loaded:t.loaded,total:t.total,error:t.error},null!=t.result&&(e.target.result=t.result),e}function t(e){var t;i||(i=!0,r.onloadstart&&r.onloadstart(n("loadstart",e))),"load"===e.type?(r.onloadend&&r.onloadend(n("loadend",e)),t=n("load",e),r.onload&&r.onload(t)):"progress"===e.type?(t=n("progress",e),r.onprogress&&r.onprogress(t)):(t=n("error",e),r.onerror&&r.onerror(t)),r.dispatchEvent(t)}var r=this,i=!1;this.listeners={},this.addEventListener=function(e,t){r.listeners[e]=r.listeners[e]||[],r.listeners[e].push(t)},this.removeEventListener=function(e,t){r.listeners[e]&&r.listeners[e].splice(r.listeners[e].indexOf(t),1)},this.dispatchEvent=function(e){var t=r.listeners[e.type];if(t)for(var n=0;n<t.length;n++)t[n].call(r,e)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;this.readAsArrayBuffer=function(e){FileAPI.readAsBinaryString(e,t)},this.readAsBinaryString=function(e){FileAPI.readAsBinaryString(e,t)},this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,t)},this.readAsText=function(e){FileAPI.readAsText(e,t)}})}(); angular.module("sn.common.attachments",["angularFileUpload","sn.common.util"]); angular.module("sn.common.attachments").factory("nowAttachmentHandler",["$http","nowServer","$upload","$q","$rootScope","$timeout","snNotification","snAttachmentHandler","i18n",function(o,m,u,i,f,p,s,r,a){"use strict";return f.$on("attachment.updated",function(t,e){"update"===e.operation&&"not_available"===e.state&&r.showMessage("error",a.getMessage("Upload file scan failed").withValues([e.filename]))}),function(t,e){var d=this;function n(){f.$broadcast("board.uploading.start",d.tableId)}function a(){try{$(".progress-wrapper").hide()}catch(t){}}function c(){f.$broadcast("board.uploading.end"),s.show("error","An error occured when trying to upload your file. Please try again."),d.stopAllUploading()}function l(t){t.error&&d.appendError({msg:t.error,fileName:""})}d.cardUploading="",d.setAttachments=t,d.appendError=e,d.encryptionContext="",d.ADDED="added",d.DELETED="deleted",d.RENAMED="renamed",d.getAttachmentList=function(e){var t=m.getURL("ngk_attachments",{action:"list",sys_id:d.tableId,table:d.tableName}),a=o.get;(a=d.tableId?a:function(){return i(function(t){t({data:{files:[]}})})})(t).then(function(t){t=t.data.files||[],t=d.canViewImage(t);d.setAttachments(t,e),(d.startedUploadingTimeout||d.errorTimeout)&&(d.stopAllUploading(),f.$broadcast("board.uploading.end"))})},d.canViewImage=function(t){if("undefined"!=typeof g_attachment_force_download_all_mime_types&&"undefined"!=typeof g_attachment_force_download_mime_type)for(var e=g_attachment_force_download_mime_type.split(","),a=0;a<t.length;a++){var n=t[a],o=g_attachment_force_download_all_mime_types;o||-1!=e.indexOf(n.content_type)&&(o=!0),n.viewImage=(n.thumbSrc||n.thumbnail_path)&&!o}return t},d.stopAllUploading=function(){p.cancel(d.errorTimeout),p.cancel(d.startedUploadingTimeout),a(),f.$broadcast("attachment.upload.stop")},d.setEncryptionContext=function(t){d.encryptionContext=t},d.manageFocus=function(){d.attachmentAction===d.RENAMED&&d.updatedAttachmentSysId&&p(function(){var t=$("#"+d.updatedAttachmentSysId+" button")[0];t&&t.focus(),delete d.attachmentAction,delete d.updatedAttachmentSysId,delete d.editButton})},d.onFileSelect=function(i){if(i.length){var e=m.getURL("ngk_attachments",{sys_id:d.tableId,table:d.tableName,action:"add"});d.cardUploading=d.tableId,d.maxfiles=i.length,d.fileCount=1,d.filesUploaded=d.maxfiles,d.startedUploadingTimeout=p(n,1500);for(var t=0;t<d.maxfiles;t++)if(parseInt(i[t].size)>parseInt(d.fileUploadSizeLimit))return d.stopAllUploading(),void f.$broadcast("dialog.upload_too_large.show");var a={attachments_modified:"true",sysparm_table:d.tableName,sysparm_sys_id:d.tableId,sysparm_nostack:"yes",sysparm_encryption_context:d.encryptionContext,sysparm_ck:window.g_ck},s=0,r=[];(function o(){f.$broadcast("attachment.upload.start");var t=i[s];d.upload=u.upload({url:e,fields:a,fileFormDataName:"attachFile",file:t}).progress(function(t){var t=parseInt(100*t.loaded/t.total,10);t=t,d.prevPercent===t&&d.fileCount<=d.maxfiles||(d.fileCount<=d.maxfiles&&(99<t&&d.fileCount++,d.fileCount<=d.maxfiles&&(p.cancel(d.errorTimeout),d.errorTimeout=p(c,15e3),$(".progress-label").text("Uploading file "+d.fileCount+" of "+d.maxfiles),$(".upload-progress").val(t),$(".progress-wrapper").show())),d.prevPercent=t)}).success(function(t,e,a,n){l(t),t.error||r.push(t.file_name),d.filesUploaded<=0&&(d.cardUploading=""),++s<i.length?o():(d.stopAllUploading(),d.getAttachmentList(d.ADDED),r.length&&f.$broadcast("attachment.upload.success",{names:r.join(",")}))})})()}},d.downloadAttachment=function(t){t="/sys_attachment.do?sys_id="+t.sys_id;window.open(t,"_blank")},d.viewAttachment=function(t,e){var a=window.location.protocol+"//"+window.location.host;a+="/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id="+e.sys_id,window.open(a,e.sys_id,"toolbar=no,menubar=no,personalbar=no,width=800,height=600,scrollbars=yes,resizable=yes")},d.editAttachment=function(t,e){d.editButton=t.currentTarget;var t=$(d.editButton).closest(".file-attachment"),a=t.find(".thumbnail"),n=t.find("input"),t=t.find(".tools"),o=e.file_name,e=(-1!==e.file_name.indexOf(".")&&(e.ext=o.match(/(\.[^\.]+)$/i)[0],o=e.file_name.replace(/(\.[^\.]+)$/i,"")),n.val(o),n.prev().width());n.width(e),n.prev().hide(),n.css("display","block"),a.addClass("state-locked"),t.find(".delete-edit").hide(),t.find(".rename-cancel").css("display","inline-block"),n.focus()},d.onKeyDown=function(t,e){var a=t.keyCode;13===a?(t.stopPropagation(),t.preventDefault(),d.updateAttachment(t,e)):27===a&&(t.stopPropagation(),t.preventDefault(),d.updateAttachment(t))},d.updateAttachment=function(t,e){var a,n,o,i;d.renameInProgress||(a=(t=$(t.currentTarget).closest(".file-attachment")).find(".thumbnail"),n=t.find("input"),o=t.find("a"),t=t.find(".tools"),e&&(i=n.val()).length&&((i+=e.ext)!==e.file_name?(o.text(i),d.renameAttachment(e,i)):d.editButton&&($(d.editButton).focus(),delete d.editButton)),n.hide(),n.prev().show(),t.find(".rename-cancel").hide(),a.removeClass("state-locked"),t.find(".delete-edit").css("display","inline-block"),d.editButton&&d.editButton.focus())},d.dismissMsg=function(t,e,a){var n=$(t.currentTarget);n.addClass("remove"),setTimeout(function(){n.remove(),a.splice(e,1)},500)},f.$on("dialog.comment_form.close",function(){a()}),d.openSelector=function(t){t.stopPropagation(),t.preventDefault();var e=$(t.currentTarget).parent().find("input[type=file]");p(function(){e.click()})},d.deleteAttachment=function(t){t&&t.sys_id&&($("#"+t.sys_id).hide().closest("li.attachment-box").hide(),t=m.getURL("ngk_attachments",{action:"delete",sys_id:t.sys_id}),o.get(t).then(function(t){l(t.data),d.getAttachmentList(d.DELETED),t.data.error||f.$broadcast("attachment.delete.success")}))},d.renameAttachment=function(e,t){d.renameInProgress=!0,o({url:m.getURL("ngk_attachments"),method:"POST",params:{action:"rename",sys_id:e.sys_id,new_name:t}}).then(function(t){l(t.data),d.attachmentAction=d.RENAMED,d.updatedAttachmentSysId=e.sys_id,d.getAttachmentList(d.RENAMED),d.renameInProgress=!1,t.data.error||f.$broadcast("attachment.rename.success")})},d.scanAttachment=function(t){r.scanAttachment(t)},d.setParams=function(t,e,a){d.tableName=t,d.tableId=e,d.fileUploadSizeLimit=a}}}]); angular.module("sn.common.attachments").directive("nowAttachmentsList",["getTemplateUrl",function(c){"use strict";return{restrict:"E",replace:!0,templateUrl:c("attachments_list.xml"),link:function(e,t,a,n){e.icons={preview:a.previewIcon,edit:a.editIcon,delete:a.deleteIcon,ok:a.okIcon,cancel:a.cancelIcon},e.$watch("attachments",function(){var t;(t=e).attachments&&0<t.attachments.length&&(t.attachments[0].hasOwnProperty("trackByKey")||t.attachments.forEach(function(t){t.trackByKey=t.sys_id+t.state+t.file_name.replace(/\s/g,"")+t.viewImage}))}),e.listClass="list-group",e.$eval(a.inline)&&(e.listClass="list-inline"),e.entryTemplate=c(a.template||"attachment")}}}]); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}angular.module("sn.common.attachments").factory("snAttachmentHandler",["urlTools","$http","$upload","$window","$q","$rootScope","i18n",function(l,r,d,f,p,s,o){"use strict";return{getViewUrl:a,create:function(t,e,s){var o=t,i=e,n=[];function c(t){n.unshift(t)}function u(t,e,n){var a=l.getURL("ngk_attachments",{action:"add",sys_id:i,table:o,load_attachment_record:"true"}),r={attachments_modified:"true",sysparm_table:o,sysparm_sys_id:i,sysparm_nostack:"yes",sysparm_encryption_context:""},e=(void 0!==f.g_ck&&(r.sysparm_ck=f.g_ck),e&&angular.extend(r,e),d.upload({url:a,fields:r,fileFormDataName:"attachFile",file:t,fileName:t.file_name||t.name}));return void 0!==n&&(n.hasOwnProperty("progress")&&e.progress(n.progress),n.hasOwnProperty("success")&&e.success(n.success),n.hasOwnProperty("error")&&e.error(n.error)),e.then(function(t){t=t.data;return t.error?p.reject("Exception when adding attachment: "+t.error):("object"===_typeof(t)&&t.hasOwnProperty("sys_id")&&(m(t),c(t)),s&&s.onUploadComplete&&s.onUploadComplete(t),t)})}function m(t){t.isImage=!1,t.canPreview=!1,-1!==t.content_type.indexOf("image")&&(t.isImage=!0,t.thumbSrc&&"/"!==t.thumbSrc[0]&&(t.thumbSrc="/"+t.thumbSrc),t.canPreview=-1===t.content_type.indexOf("tiff")),t.viewUrl=a(t.sys_id)}return{getSysID:function(){return i},getTableName:function(){return o},getAttachments:function(){var t=l.getURL("ngk_attachments",{action:"list",sys_id:i,table:o}),e=r.get;return(e=i?e:function(){return p(function(t){t({data:{files:[]}})})})(t).then(function(t){t=t.data.files;return 0==n.length?t.forEach(function(t){t&&t.sys_id&&(m(t),n.push(t))}):n=t,n})},addAttachment:c,deleteAttachment:function(t){var e=n.indexOf(t);if(-1!==e)return y(t.sys_id).then(function(){n.splice(e,1)})},uploadAttachment:u,uploadAttachments:function(t,e){var n=p.defer(),a=[],r=[];return angular.forEach(t,function(t){a.push(u(t,e).then(function(t){r.push(t)}))}),p.all(a).then(function(){n.resolve(r)}),n.promise}}},deleteAttachment:y,renameAttachment:function(t,e){t=l.getURL("ngk_attachments",{action:"rename",sys_id:t,new_name:e});return r.post(t)},showMessage:e,scanAttachment:function(t){var n,a;i||(i=!0,n=function(t){this.state=t.state,s.$broadcast("sn.attachment.scanned"),t.msg&&e(t.type,t.msg)}.bind(t),a="/sys_attachment.do?sys_id="+t.sys_id,r({url:"/xmlhttp.do",method:"POST",params:{sysparm_processor:"AntiVirusAttachmentDescriptor",sysparm_name:"getAttachmentState",sysparm_sysid:t.sys_id},dataType:"xml"}).then(function(t){var t=(new DOMParser).parseFromString(t.data,"text/xml").getElementsByTagName("xml")[0].getAttribute("answer"),e={};"available"===(e.state=t)?window.open(a,"_blank"):"not_available"===t?(e.type="error",e.msg=o.getMessage("File not available")):"pending"===t&&(e.type="error",e.msg=o.getMessage("File pending")),n(e),i=!1}))}};function a(t){return"/sys_attachment.do?sys_id="+t}function e(t,e){s.$broadcast("$$uiNotification",{type:t,message:e})}function y(t){t=l.getURL("ngk_attachments",{action:"delete",sys_id:t});return r.get(t)}var i}]); angular.module("sn.common.attachments").directive("snFileUploadInput",["cabrillo","$document",function(n,c){"use strict";return{restrict:"E",scope:{attachmentHandler:"=",customClassNames:"@classNames"},template:function(){var t=n.isNative()?'<button class="{{classNames}}" ng-click="showAttachOptions($event)" aria-labelledby="attach-label-{{ ::$id }}"><span class="upload-label" id="attach-label-{{ ::$id }}"><translate key="Add Attachment" /></span></button>':'<button class="{{classNames}}" ng-file-select="onFileSelect($files)" aria-labelledby="attach-label-{{ ::$id }}"><span class="upload-label" id="attach-label-{{ ::$id }}"><translate key="Add Attachment" /></span></button>';return['<div class="file-upload-input" role="button" aria-labelledby="attach-label-{{ ::$id }}">','<div role="group" class="injected-contents-break-accessibility" aria-hidden="true">',t,"</div>","</div>"].join("")},controller:["$element","$scope",function(t,l){var e="btn btn-icon attachment-btn icon-paperclip";l.customClassNames&&(e+=" "+l.customClassNames),l.classNames=e,l.showAttachOptions=function(t){var e=l.attachmentHandler,t=angular.element(t.currentTarget)[0].getBoundingClientRect(),a=c[0].body,a={sourceRect:{x:t.left+a.scrollLeft,y:t.top+a.scrollTop,width:t.width,height:t.height}};n.attachments.addFile(e.getTableName(),e.getSysID(),null,a).then(function(t){console.log("Attached new file",t),e.addAttachment(t)},function(){console.log("Failed to attach new file")})},l.onFileSelect=function(t){l.attachmentHandler.uploadAttachments(t)},l.showFileSelector=function(t){t.stopPropagation(),angular.element(t.currentTarget).parent().find("input").triggerHandler("click")}}]}}]); angular.module("sn.common.attachments").directive("snPasteFileHandler",["$parse",function(i){"use strict";return{restrict:"A",link:function(n,e,t){var a=i(t.snPasteFileHandler);e.bind("paste",function(e){var t=(e=e.originalEvent||e).clipboardData.items[0];!t||(t=t.getAsFile())&&(a(n,{file:t}),e.preventDefault(),e.stopPropagation())})}}}]); angular.module("sn.common.attachments").directive("snAttachmentList",["getTemplateUrl","snAttachmentHandler","$rootScope","$window","$timeout","$q",function(t,s,e,n,l,m){"use strict";return{restrict:"E",replace:!0,templateUrl:t("sn_attachment_list.xml"),scope:{tableName:"=?",sysID:"=?sysId",attachmentList:"=?",uploadFileFn:"&",deleteFileFn:"=?",canEdit:"=?",canRemove:"=?",canAdd:"=?",canDownload:"=?",showHeader:"=?",clickImageFn:"&?",confirmDelete:"=?"},controller:["$scope",function(a){function i(){s.create(a.tableName,a.sysID).getAttachments().then(function(t){a.attachmentList=t})}function c(t){delete a.filesInProgress[t]}function o(t){a.filesInProgress[t.name]||(a.filesInProgress[t.name]=t)}a.canEdit=a.canEdit||!1,a.canDownload=a.canDownload||!1,a.canRemove=a.canRemove||!1,a.canAdd=a.canAdd||!1,a.showHeader=a.showHeader||!1,a.clickImageFn=a.clickImageFn||function(){},a.confirmDelete=a.confirmDelete||!1,a.filesInProgress={},a.attachmentToDelete=null,a.attachmentList||(a.attachmentList=[],i()),a.$on("attachments_list.update",function(t,e,n){e===a.tableName&&n===a.sysID&&i()}),a.$on("attachments_list.upload.progress",function(t,e){o(e)}),a.$on("attachments_list.upload.success",function(t,e){c(e.name)}),a.attachFiles=function(t){var e,n;a.tableName&&a.sysID?(e=s.create(a.tableName,a.sysID),n=[],t.forEach(function(t){t=e.uploadAttachment(t,null,{progress:function(t){t=t.config.file;t.progress=100*event.loaded/event.total,o(t)},success:function(t){c(t.file_name)}});n.push(t)}),m.all(n).then(function(){i()})):a.uploadFileFn&&a.uploadFileFn({files:t})},a.getProgressStyle=function(t){return{width:a.filesInProgress[t].progress+"%"}},a.openSelector=function(t){t.stopPropagation();var e=angular.element(t.currentTarget);l(function(){e.parent().find("input").click()})},a.confirmDeleteAttachment=function(t){a.attachmentToDelete=t,a.$broadcast("dialog.confirm-delete.show")},a.deleteAttachment=function(){s.deleteAttachment(a.attachmentToDelete.sys_id).then(function(){var t=a.attachmentList.indexOf(a.attachmentToDelete);a.attachmentList.splice(t,1)})}}]}}]).directive("snAttachmentListItem",["getTemplateUrl","snAttachmentHandler","$rootScope","$window","$timeout","$parse",function(t,l,e,m,n,o){"use strict";return{restrict:"E",replace:!0,templateUrl:t("sn_attachment_list_item.xml"),link:function(e,n,t){e.attachment=o(t.attachment.size_bytes)?e.$eval(t.attachment):{content_type:(t=t.attachment).content_type,file_name:t.file_name,image:void 0!==t.thumbSrc,size_bytes:t.size,sys_created_by:"",sys_created_on:"",sys_id:t.sys_id,thumb_src:t.thumbSrc};var a=n.find(".sn-widget-list-title_view"),i=n.find(".sn-widget-list-title_edit");function c(){a.show(),i.hide()}c(),e.editModeToggle=function(t){t.preventDefault(),t.stopPropagation(),e.editMode=!e.editMode,e.editMode?(a.hide(),i.show(),n.find(".edit-text-input").focus()):c()},e.updateName=function(){e.editMode=!1,c(),l.renameAttachment(e.attachment.sys_id,e.attachment.file_name)}},controller:["$scope","snCustomEvent","i18n","$http",function(i,n,a,t){i.editMode=!1,i.buttonFocus=!1,i.removeAttachment=function(t,e){void 0!==i.deleteFileFn&&i.deleteFileFn instanceof Function?i.deleteFileFn.apply(null,arguments):i.confirmDelete?i.confirmDeleteAttachment(i.attachment):l.deleteAttachment(i.attachment.sys_id).then(function(){i.attachmentList.splice(i.$index,1)})};var e={"application/pdf":"icon-document-pdf","text/plain":"icon-document-txt","application/zip":"icon-document-zip","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"icon-document-doc","application/vnd.openxmlformats-officedocument.presentationml.presentation":"icon-document-ppt","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"icon-document-xls","application/vnd.ms-powerpoint":"icon-document-ppt"};function c(e,n){t.get("/api/now/as_attachment/getAvailability/"+i.attachment.sys_id).then(function(t){t=t.data.result;!t||!t.availability||"available"===t.availability?o(e,n):s(t.message)},function(){o(e,n)})}function o(t,e){t&&i.attachment.image?(i.attachment.size||(i.attachment.size=i.getSize(i.attachment.size_bytes,2)),i.clickImageFn({file:i.attachment}),n.fire("sn.attachment.preview",e,i.attachment)):i.attachment.sys_id&&(m.location.href="sys_attachment.do?sys_id="+i.attachment.sys_id)}function s(t){window.NOW&&window.NOW.CustomEvent&&window.NOW.CustomEvent.fire("stream.attachment.unavailable",t)}i.getDocumentType=function(t){return e[t]||"icon-document"},i.handleAttachmentClick=function(t){if(9!==t.keyCode&&!i.editMode&&i.attachment)switch(i.attachment.state){case"available":o(!0,t);break;case"not_available":var e=i.attachment.file_name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");s(a.getMessage("The file {0} did not pass security scan and cannot be downloaded").withValues([e]));break;default:c(!0,t)}},i.handleAttachmentDownload=function(t){t.stopPropagation(),"available"!==i.attachment.state&&(t.preventDefault(),c(!1))},i.getSize=function(t,e){var n,a;return"not_available"===i.attachment.state?"[unavailable]":"string"==typeof t&&"B"===t.slice(-1)?t:(a=1024*(n=1048576),0<=t&&t<1024?t+" B":1024<=t&&t<n?(t/1024).toFixed(e)+" KB":n<=t&&t<a?(t/n).toFixed(e)+" MB":a<=t?(t/a).toFixed(e)+" GB":t+" B")},i.onButtonFocus=function(){i.buttonFocus=!0},i.onButtonBlur=function(){i.buttonFocus=!1}}]}}]); var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function LZ(e){return(e<0||9<e?"":"0")+e}function isDate(e,t){return 0!=getDateFromFormat(e,t)}function compareDates(e,t,r,n){e=getDateFromFormat(e,t),t=getDateFromFormat(r,n);return 0==e||0==t?-1:t<e?1:0}function formatDateServer(e,t){var r=new GlideAjax("DateTimeUtils"),n=(r.addParam("sysparm_name","formatCalendarDate"),6e4*e.getTimezoneOffset()),e=e.getTime()-n-g_tz_offset;return r.addParam("sysparm_value",e),r.getXMLWait(),r.getAnswer()}function formatDate(e,t){if(0<t.indexOf("z"))return formatDateServer(e,t);t+="";var r,n="",a=0,g="",i=e.getFullYear()+"",s=e.getMonth()+1,l=e.getDate(),o=e.getDay(),f=e.getHours(),u=e.getMinutes(),M=e.getSeconds(),h=new Object,s=(h.M=s,h.MM=LZ(s),h.MMM=MONTH_NAMES[s+11],h.NNN=MONTH_NAMES[s+11],h.MMMM=MONTH_NAMES[s-1],h.d=l,h.dd=LZ(l),h.E=DAY_NAMES[o+7],h.EE=DAY_NAMES[o],h.H=f,h.HH=LZ(f),-1!=t.indexOf("w")&&(52<=(l=e.getWeek())&&1==s&&(i=e.getFullYear(),i--,i+=""),1==l&&12==s&&(i=e.getFullYear(),i++,i+=""),h.w=l,h.ww=LZ(l)),(7+(o+1)-(g_first_day_of_week-1))%7);for(h.D=s=0==s?7:s,i.length<4&&(i=""+(+i+1900)),h.y=""+i,h.yyyy=i,h.yy=i.substring(2,4),h.h=0==f?12:12<f?f-12:f,h.hh=LZ(h.h),h.K=11<f?f-12:f,h.k=f+1,h.KK=LZ(h.K),h.kk=LZ(h.k),h.a=11<f?"PM":"AM",h.m=u,h.mm=LZ(u),h.s=M,h.ss=LZ(M);a<t.length;){for(r=t.charAt(a),g="";t.charAt(a)==r&&a<t.length;)g+=t.charAt(a++);null!=h[g]?n+=h[g]:n+=g}return n}function _isInteger(e){for(var t=0;t<e.length;t++)if(-1=="1234567890".indexOf(e.charAt(t)))return!1;return!0}function _getInt(e,t,r,n){for(var a=n;r<=a;a--){var g=e.substring(t,t+a);if(g.length<r)return null;if(_isInteger(g))return g}return null}function getDateFromFormat(e,t){e+="",t+="";for(var r,n,a,g=0,i=0,s="",l=new Date,o=l.getYear(),f=l.getMonth()+1,u=0,M=l.getHours(),h=l.getMinutes(),y=l.getSeconds(),_="",m=!1;i<t.length;){for(r=t.charAt(i),s="";t.charAt(i)==r&&i<t.length;)s+=t.charAt(i++);if("yyyy"==s||"yy"==s||"y"==s){if("yyyy"==s&&(a=n=4),"yy"==s&&(a=n=2),"y"==s&&(n=2,a=4),null==(o=_getInt(e,g,n,a)))return 0;g+=o.length,2==o.length&&(o=70<o?+o+1900:+o+2e3)}else if("MMM"==s||"NNN"==s){for(var f=0,D=0;D<MONTH_NAMES.length;D++){var d=MONTH_NAMES[D];if(e.substring(g,g+d.length).toLowerCase()==d.toLowerCase()&&("MMM"==s||"NNN"==s&&11<D)){12<(f=D+1)&&(f-=12),g+=d.length;break}}if(f<1||12<f)return 0}else if("EE"==s||"E"==s)for(D=0;D<DAY_NAMES.length;D++){var w=DAY_NAMES[D];if(e.substring(g,g+w.length).toLowerCase()==w.toLowerCase()){m&&(0==D||7==D?u+=6:2==D||9==D?u+=1:3==D||10==D?u+=2:4==D||11==D?u+=3:5==D||12==D?u+=4:6!=D&&13!=D||(u+=5)),g+=w.length;break}}else if("MM"==s||"M"==s){if(null==(f=_getInt(e,g,s.length,2))||f<1||12<f)return 0;g+=f.length}else if("dd"==s||"d"==s){if(null==(u=_getInt(e,g,s.length,2))||u<1||31<u)return 0;g+=u.length}else if("hh"==s||"h"==s){if(null==(M=_getInt(e,g,s.length,2))||M<1||12<M)return 0;g+=M.length}else if("HH"==s||"H"==s){if(null==(M=_getInt(e,g,s.length,2))||M<0||23<M)return 0;g+=M.length}else if("KK"==s||"K"==s){if(null==(M=_getInt(e,g,s.length,2))||M<0||11<M)return 0;g+=M.length}else if("kk"==s||"k"==s){if(null==(M=_getInt(e,g,s.length,2))||M<1||24<M)return 0;g+=M.length,M--}else if("mm"==s||"m"==s){if(null==(h=_getInt(e,g,s.length,2))||h<0||59<h)return 0;g+=h.length}else if("ss"==s||"s"==s){if(null==(y=_getInt(e,g,s.length,2))||y<0||59<y)return 0;g+=y.length}else if("a"==s){if("am"==e.substring(g,g+2).toLowerCase())_="AM";else{if("pm"!=e.substring(g,g+2).toLowerCase())return 0;_="PM"}g+=2}else if("w"==s||"ww"==s){var c=_getInt(e,g,s.length,2),m=!0;null!=c&&((A=new Date(o,0,1,0,0,0)).setWeek(parseInt(c,10)),o=A.getFullYear(),f=A.getMonth()+1,u=A.getDate()),g+=(c+="").length}else if("D"==s){if(m){c=_getInt(e,g,s.length,1);if(null==c||c<=0||7<c)return 0;var A,F=(A=new Date(o,f-1,u,M,h,y)).getDay();0==(c=((c=parseInt(c,10))+g_first_day_of_week-1)%7)&&(c=7),--c<F?c=7-(F-c):c-=F,0<c&&(A.setDate(A.getDate()+c),o=A.getFullYear(),f=A.getMonth()+1,u=A.getDate()),g++}}else if("z"==s)g+=3;else{if(e.substring(g,g+s.length)!=s)return 0;g+=s.length}}if(e.length<g||e.length>g+2)return 0;if(2==f)if(o%4==0&&o%100!=0||o%400==0){if(29<u)return 0}else if(28<u)return 0;return(4==f||6==f||9==f||11==f)&&30<u?0:(M<12&&"PM"==_?M=+M+12:11<M&&"AM"==_&&(M-=12),new Date(o,f-1,u,M,h,y).getTime())}function parseDate(e){for(var t,r=2==arguments.length&&arguments[1],n=(generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d"),monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d"),dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M"),yearFirst=new Array("yyyyw.F","yyw.F"),new Array("generalFormats",r?"dateFirst":"monthFirst",r?"monthFirst":"dateFirst","yearFirst")),a=0;a<n.length;a++)for(var g=window[n[a]],i=0;i<g.length;i++)if(0!=(t=getDateFromFormat(e,g[i])))return new Date(t);return null}function getDurationString(e){var e=Math.floor(e/1e3),t="",r=Math.floor(e/86400),n=(1<=r&&(t+=r+" day"+(1<r?"s":""),e-=86400*r),Math.floor(e/3600)),a=(1<=n&&(t+=(0<r?" ":"")+n+" hour"+(1<n?"s":""),e-=3600*n),Math.floor(e/60));return 0==r&&(1<=a?(t+=(0<n?" ":"")+a+" minute"+(1<a?"s":""),n<1&&0<(e-=60*a)&&a<=10&&(t+=" "+e+" second"+(1<e?"s":""))):0==n&&0<e&&(t+=e+" second"+(1<e?"s":""))),t}function getUserDateTime(){var e=new Date,t=6e4*e.getTimezoneOffset(),e=e.getTime()+t+g_tz_offset;return new Date(e)}function convertUtcTimeToUserTimeMs(e){var t=new Date;return parseInt(e)+6e4*t.getTimezoneOffset()+g_tz_offset}function convertUserTimeToUtcTimeMs(e){var t=new Date;return parseInt(e)-6e4*t.getTimezoneOffset()-g_tz_offset}Date.prototype.getWeek=function(){var e,t=new Date(this.getFullYear(),0,1),r=0<=(r=t.getDay()-(g_first_day_of_week-1))?r:r+7,t=Math.floor((this.getTime()-t.getTime()-6e4*(this.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)+1;return r<4?52<(e=Math.floor((t+r-1)/7)+1)?this._checkNextYear(e):e:((e=Math.floor((t+r-1)/7))<1?e=this._lastWeekOfYear():52<e&&(e=this._checkNextYear(e)),e)},Date.prototype._lastWeekOfYear=function(){var e=new Date(this.getFullYear()-1,0,1),t=new Date(this.getFullYear()-1,11,31),r=e.getDay()-(g_first_day_of_week-1),t=Math.floor((t.getTime()-e.getTime()-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)+1;return r<4?Math.floor((t+r-1)/7)+1:Math.floor((t+r-1)/7)},Date.prototype._checkNextYear=function(){var e=new Date(this.getFullYear()+1,0,1).getDay()-(g_first_day_of_week-1);return(e=0<=e?e:e+7)<4?1:53},Date.prototype.setWeek=function(e){e--;var t=new Date(this.getFullYear(),0,1),r=t.getDay()-(g_first_day_of_week-1);0<r&&r<4?(this.setFullYear(t.getFullYear()-1),this.setDate(31-r+1),this.setMonth(11)):3<r&&this.setDate(t.getDate()+(7-r)),this.setDate(this.getDate()+7*e)}; angular.module("sn.common.analytics",[]); angular.module("sn.common.analytics").factory("snAnalyticsUtil",["$http","$rootScope","snAnalyticsConsentModal","i18n",function(s,e,n,t){"use strict";function a(e){e={user_consent:e.user_consent};s.post("/api/now/sp/consent/update",e).then(function(e){try{var s=JSON.parse(e.data.result);NOW.usage_tracking.usage_tracking_allowed_for_session=s.usage_tracking_allowed_for_session,NOW.usage_tracking.user_consent=s.user_consent,o()}catch(e){}})}function o(){e.$emit("sn.ucm.finished")}return{invokeUCMEngine:function(){NOW.usage_tracking=NOW.usage_tracking||{},NOW.analytics_enabled&&NOW.sp_analytics_plugin_active&&("guest"===NOW.user_name||NOW.user_impersonating||("NoConsentRequired"===NOW.usage_tracking.user_consent||"BasicTracking"===NOW.usage_tracking.user_consent)&&NOW.ucm_portal_id===NOW.portal_id||s.get("/api/now/sp/consent/getConsentDetails",{params:{portal_id:NOW.portal_id}}).then(function(e){try{s=JSON.parse(e.data.result)}catch(e){return}if(NOW.usage_tracking.user_consent=s.user_consent,NOW.usage_tracking.usage_tracking_allowed_for_session=s.usage_tracking_allowed_for_session,NOW.sp_analytics_portal_override=s.portal_override,NOW.ucm_invocations=s.ucm_invocations,NOW.ucm_portal_id=s.ucm_portal_id,"NoConsentRequired"===s.user_consent||"BasicTracking"===s.user_consent||"Disabled"===s.user_consent)o();else{e=[];if("Notice"===s.user_consent)e.push({label:t.getMessage("Agree"),user_consent:"Y",primary:!0,focus:!0});else{if("ExplicitOptIn"!==s.user_consent)return;e.push({label:t.getMessage("No"),user_consent:"N"}),e.push({label:t.getMessage("Yes"),user_consent:"Y",primary:!0,focus:!0})}var s={title:t.getMessage("Enable Analytics"),message:s.user_analytics_consent_text,buttons:e};n.open(s).then(a)}}))}}}]); angular.module("sn.common.analytics").factory("snAnalyticsConsentModal",["$q","$uibModal","i18n","$templateCache",function(s,l,i,t){"use strict";d.$inject=["$scope","options"];var r="sn-analytics-consent-modal.xml";function d(e,t){e.options=t,e.buttonClicked=function(t){t.cancel?e.$dismiss():e.$close({button:t})}}return t.put(r,'<div>\t<div class="modal-header" ng-style="options.headerStyle">\t\t<h1 class="modal-title h4" ng-bind-html="options.title" id="modal-title"></h1>\t</div>\t<div class="modal-body" id="modal-body">\t\t<p ng-if="options.message" ng-bind-html="options.message"></p>\t</div>\t<div class="modal-footer" ng-style="options.footerStyle">\t\t<button ng-repeat="button in options.buttons track by button.label" class="btn btn-default {{button.class}}"\t\t\tng-class="{\'btn-primary\':button.primary, \'btn-focus\':button.focus}" ng-click="buttonClicked(button)">{{button.label}}</button>\t</div></div>'),{open:function(t){var e,n,o,t=function(t){var e,n={title:"",message:"",messageOnly:!1,size:"",noDismiss:!1,buttons:[{label:i.getMessage("No"),cancel:!0},{label:i.getMessage("Yes"),primary:!0}]};for(e in t=t||{},n)void 0===t[e]&&(t[e]=n[e]);t.messageOnly&&(t.headerStyle={border:"none"},t.footerStyle={border:"none","padding-top":0});t.noDismiss&&(t.headerStyle={display:"none"});return t}(t),a=s.defer();return e=t,n=a,o=angular.element(e.pageRootElement||".sp-page-root"),(t=l.open({templateUrl:r,controller:d,size:e.size,appendTo:e.appendTo,backdrop:null!=e.backdrop?e.backdrop:"static",keyboard:null!=e.keyboard&&e.keyboard,resolve:{options:function(){return e}}})).result.then(function(t){n.resolve(t.button)},function(){n.reject()}),t.rendered.then(function(){var t=angular.element("#modal-title").closest("div.modal");t.attr("aria-labelledby","modal-title"),t.attr("aria-describedby","modal-body"),o.attr("aria-hidden","true"),setTimeout(function(){t.find(".btn-focus").focus()},0)}),t.closed.then(function(){o.attr("aria-hidden","false")}),a.promise}}}]); angular.module("sn.common.analytics").factory("snAnalytics",["$rootScope",function(e){"use strict";var n=NOW.analytics_enabled&&NOW.sp_analytics_plugin_active,r=!!NOW.instrumentation_authkey,t=n&&r,a=NOW.performance_monitoring_enabled,o=NOW.unauthenticated_user_tracking_enabled||!1,s=[];function i(e,n){"undefined"==typeof SNAnalytics?s.push({name:e,args:n}):(0<s.length&&c(),u({name:e,args:n}))}function c(){"undefined"!=typeof SNAnalytics&&(s.forEach(function(e){u(e)}),s=[])}function u(n){try{SNAnalytics[n.name].apply(SNAnalytics,n.args)}catch(e){console.warn("SNAnalytics "+n.name+" failed:"+e.message)}}var l={start:function(){i("start",Array.prototype.slice.call(arguments))},setTrackingConsent:function(){i("setTrackingConsent",Array.prototype.slice.call(arguments))},setUserId:function(){i("setUserId",Array.prototype.slice.call(arguments))},addEvent:function(){i("addEvent",Array.prototype.slice.call(arguments))},startPage:function(){i("startPage",Array.prototype.slice.call(arguments))},setUserProperty:function(){i("setUserProperty",Array.prototype.slice.call(arguments))},setUserProperties:function(){i("setUserProperties",Array.prototype.slice.call(arguments))},removeUserProperty:function(){i("removeUserProperty",Array.prototype.slice.call(arguments))},appendToUserProperty:function(){i("appendToUserProperty",Array.prototype.slice.call(arguments))},incUserProperty:function(){i("incUserProperty",Array.prototype.slice.call(arguments))},addPerformanceTrace:function(){i("addPerformanceTrace",Array.prototype.slice.call(arguments))}};function p(){var e;y()&&(e={serverEndpoint:NOW.instrumentation_api_host,trackingConsent:"Full"},o&&"guest"===NOW.user_name||(e.userId=NOW.user_id_hashed,e.trackingConsent="BasicTracking"===NOW.usage_tracking.user_consent?"Basic":"Full"),l.start(NOW.instance_id+":"+NOW.portal_id,NOW.instrumentation_authkey,e),NOW.instance_name&&d("Instance Name",NOW.instance_name),NOW.domain_id&&d("Domain",NOW.domain_id))}function d(e,n){y()&&l.setUserProperty(e,n)}function f(e){if(y())if(e.parentEvent){var n=e,t=n.parentEvent.EventName||"",r=n.parentEvent.EventPayload,a=(t&&r&&l.addEvent(t,r),n.childEvents);if(a)for(var o,s,i=0;i<a.length;i++)o=a[i].EventName,s=a[i].EventPayload,o&&s&&l.addEvent(o,s)}else e.name&&e.data&&l.addEvent(e.name,e.data)}function y(){return!!t&&(!(!NOW.usage_tracking.usage_tracking_allowed_for_session||"guest"===NOW.user_name)||!(!o||"guest"!==NOW.user_name))}function g(){return y()&&a}return p(),e.$on("sn.ucm.finished",function(){p()}),e.$on("sp.defer_scripts.loaded",function(){c()}),e.$on("sn.sp.ux.analytics.start",function(e,n){var t=["NoConsentRequired","BasicTracking"];t.indexOf(n.userConsent)<0?console.error('On event "'+e+'" the data object key "userConsent" must be one of these values: '+t.toString()):(NOW.usage_tracking.usage_tracking_allowed_for_session=!0,NOW.usage_tracking.user_consent=n.userConsent,p())}),e.$on("$locationChangeStart",function(e,n,t){-1!==n.indexOf("logout.do")&&(o&&r?((n={name:"Successful Logout",data:{}}).data.Login=!1,f(n)):y()&&l.setTrackingConsent("Disabled"))}),{addEvent:f,startPage:function(e,n){y()&&l.startPage(e,n)},setUserProperty:d,setUserProperties:function(e){y()&&l.setUserProperties(e)},removeUserProperty:function(e){y()&&l.removeUserProperty(e)},appendToUserProperty:function(e,n){y()&&l.appendToUserProperty(e,n)},incUserProperty:function(e,n){y()&&l.incUserProperty(e,n)},_isPerformanceMonitoringAllowed:g,_tracePerformance:function(e,n){if(g())for(var t in n)l.addPerformanceTrace(e,n[t].name,n[t].duration,n[t].properties)}}}]); angular.module("sn.common.analytics").factory("snPerformanceAnalytics",["$rootScope","snAnalytics","$window","$timeout",function(n,a,o,r){"use strict";var i="direct load",s="navigate",d=-1,c=-1;function t(e,n,r){var t={};if(n===i){if(-1===c||-1===d)return;t=function(){var e=o.performance.getEntriesByType("navigation")[0];if(e)return u({startTime:e.startTime,requestStart:e.requestStart,responseEnd:e.responseEnd,loadEventEnd:d<c?c:e.loadEventEnd},i);console.log("snPerformanceAnalytics - measuring direct-load performance metrics failed.")}()}else t=function(e){e=o.performance.getEntriesByName(e,"resource")[0];if(e)return u({startTime:e.startTime,requestStart:e.requestStart,responseEnd:e.responseEnd,loadEventEnd:c},s);console.log("snAnalytics - measuring page-nav performance metrics failed.")}(r);a._tracePerformance(e,t)}function u(e,n){n={navigationType:n};return{network:{name:"Network Time",duration:Math.round(e.requestStart-e.startTime),properties:n},server:{name:"Server Time",duration:Math.round(e.responseEnd-e.requestStart),properties:n},browser:{name:"Browser Time",duration:Math.round(e.loadEventEnd-e.responseEnd),properties:n},page_load:{name:"Page Load Time",duration:Math.round(e.loadEventEnd-e.startTime),properties:n}}}var m=n.$on("sp.page.loaded",function(){c=o.performance.now(),m()});function p(){d=o.performance.now(),r(function(){t(NOW.start_page_id,i)})}function f(){var e=-1===c;c=o.performance.now(),r(e?function(){t(NOW.start_page_id,i)}:function(){t(n.page.id,s,n.page.url)})}function e(){var e;o.performance?a._isPerformanceMonitoringAllowed()&&(0<(e=o.performance.getEntriesByType("navigation")[0]).loadEventEnd?(d=e.loadEventEnd,0<c&&r(function(){t(NOW.start_page_id,i)})):o.addEventListener("load",p),m(),n.$on("sp.page.loaded",f)):console.log("snPerformanceAnalytics - window.performance is not available.")}return n.$on("sn.ucm.finished",function(){e()}),{initialize:e}}]); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||2<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(),function(o){"use strict";o.fn.emulateTransitionEnd=function(t){var e=!1,i=this;o(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||o(i).trigger(o.support.transition.end)},t),this},o(function(){o.support.transition=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}(),o.support.transition&&(o.event.special.bsTransitionEnd={bindType:o.support.transition.end,delegateType:o.support.transition.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";function a(t){s(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.VERSION="3.3.6",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),i=e.attr("data-target"),o=(i="#"===(i=i||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""))?[]:i,s(document).find(i));function n(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(o=o.length?o:e.closest(".alert")).trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";function n(t,e){this.$element=s(t),this.options=s.extend({},n.DEFAULTS,e),this.isLoading=!1}function i(o){return this.each(function(){var t=s(this),e=t.data("bs.button"),i="object"==_typeof(o)&&o;e||t.data("bs.button",e=new n(this,i)),"toggle"==o?e.toggle():o&&e.setState(o)})}n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o]((null==n[t]?this.options:n)[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},n.prototype.toggle=function(){var t,e=!0,i=this.$element.closest('[data-toggle="buttons"]');i.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=n,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target);e.hasClass("btn")||(e=e.closest(".btn")),i.call(e,"toggle"),s(t.target).is('input[type="radio"]')||s(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(h){"use strict";function d(t,e){this.$element=h(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}function n(n){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),i=h.extend({},d.DEFAULTS,t.data(),"object"==_typeof(n)&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new d(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}d.VERSION="3.3.6",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},d.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},d.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);return("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap?e:(e=(i+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},d.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},d.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){if(!this.sliding)return this.slide("next")},d.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},d.prototype.slide=function(t,e){var i,o,n,s=this.$element.find(".item.active"),a=e||this.getItemForDirection(t,s),e=this.interval,r="next"==t?"left":"right",l=this;return a.hasClass("active")?this.sliding=!1:(i=a[0],o=h.Event("slide.bs.carousel",{relatedTarget:i,direction:r}),this.$element.trigger(o),o.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(o=h(this.$indicators.children()[this.getItemIndex(a)]))&&o.addClass("active")),n=h.Event("slid.bs.carousel",{relatedTarget:i,direction:r}),h.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,s.addClass(r),a.addClass(r),s.one("bsTransitionEnd",function(){a.removeClass([t,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(n)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(s.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(n)),e&&this.cycle(),this))};function t(t){var e,i=h(this),o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),o=i.attr("data-target")||o;(o=h(document).find(o)).hasClass("carousel")&&(e=h.extend({},o.data(),i.data()),(i=i.attr("data-slide-to"))&&(e.interval=!1),n.call(o,e),i&&o.data("bs.carousel").to(i),t.preventDefault())}var e=h.fn.carousel;h.fn.carousel=n,h.fn.carousel.Constructor=d,h.fn.carousel.noConflict=function(){return h.fn.carousel=e,this};h(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);n.call(t,t.data())})})}(jQuery),function(n){"use strict";function s(t,e){this.$element=n(t),this.options=n.extend({},s.DEFAULTS,e),this.$trigger=n('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function i(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return n(document).find(t)}function a(o){return this.each(function(){var t=n(this),e=t.data("bs.collapse"),i=n.extend({},s.DEFAULTS,t.data(),"object"==_typeof(o)&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new s(this,i)),"string"==typeof o&&e[o]()})}s.VERSION="3.3.6",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(o=t.data("bs.collapse"))&&o.transitioning)){var e=n.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),o||t.data("bs.collapse",null));var i=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!n.support.transition)return e.call(this);var o=n.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][o])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=n.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!n.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return n(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=n.fn.collapse;n.fn.collapse=a,n.fn.collapse.Constructor=s,n.fn.collapse.noConflict=function(){return n.fn.collapse=t,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=n(this),t=(e.attr("data-target")||t.preventDefault(),i(e)),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})}(jQuery),function(n){"use strict";function o(t){n(t).on("click.bs.dropdown",this.toggle)}var s='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),e="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?n(document).find(e):null;return e&&e.length?e:t.parent()}function r(o){o&&3===o.which||(n(".dropdown-backdrop").remove(),n(s).each(function(){var t=n(this),e=a(t),i={relatedTarget:this};!e.hasClass("open")||o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&n.contains(e[0],o.target)||(e.trigger(o=n.Event("hide.bs.dropdown",i)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(n.Event("hidden.bs.dropdown",i))))}))}o.VERSION="3.3.6",o.prototype.toggle=function(t){var e=n(this);if(!e.is(".disabled, :disabled")){var i=a(e),o=i.hasClass("open");if(r(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",r);o={relatedTarget:this};if(i.trigger(t=n.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",o))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=n(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=a(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(s).trigger("focus"),e.trigger("click");o=i.find(".dropdown-menu li:not(.disabled):visible a");o.length&&(e=o.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<o.length-1&&e++,o.eq(e=~e?e:0).trigger("focus"))}}};var t=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var t=n(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},n.fn.dropdown.Constructor=o,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=t,this},n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,o.prototype.toggle).on("keydown.bs.dropdown.data-api",s,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(s){"use strict";function a(t,e){this.options=e,this.$body=s(document.body),this.$element=s(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function r(o,n){return this.each(function(){var t=s(this),e=t.data("bs.modal"),i=s.extend({},a.DEFAULTS,t.data(),"object"==_typeof(o)&&o);e||t.data("bs.modal",e=new a(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}a.VERSION="3.3.6",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(i){var o=this,t=s.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){s(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=s.support.transition&&o.$element.hasClass("fade"),e=(o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus(),s.Event("shown.bs.modal",{relatedTarget:i}));t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=s.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,i=this,o=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=s.support.transition&&o,this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o=function(){i.removeBackdrop(),t&&t()},s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):o()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=s.fn.modal;s.fn.modal=r,s.fn.modal.Constructor=a,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),i=e.attr("href"),o=e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),n=s(document).find(o),o=n.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),r.call(n,o,this)})}(jQuery),function(f){"use strict";var o=["sanitize","whiteList","sanitizeFn"],u=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},g=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,m=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;for(var i=document.implementation.createHTMLDocument("sanitization"),o=(i.body.innerHTML=t,f.map(e,function(t,e){return e})),n=f(i.body).find("*"),s=0,a=n.length;s<a;s++){var r=n[s],l=r.nodeName.toLowerCase();if(-1===f.inArray(l,o))r.parentNode.removeChild(r);else for(var h=f.map(r.attributes,function(t){return t}),d=[].concat(e["*"]||[],e[l]||[]),p=0,c=h.length;p<c;p++)!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==f.inArray(i,e))return-1===f.inArray(i,u)||Boolean(t.nodeValue.match(g)||t.nodeValue.match(m));for(var o=f(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return 1}(h[p],d)&&r.removeAttribute(h[p].nodeName)}return i.body.innerHTML}function l(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}l.VERSION="3.3.6",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!1,sanitizeFn:null,whiteList:t},l.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=f(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&f(document).find(f.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s,a=o[n];"click"==a?this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,f.proxy(this.leave,this)))}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){var e,i=this.$element.data();for(e in i)i.hasOwnProperty(e)&&-1!==f.inArray(e,o)&&delete i[e];return(t=f.extend({},this.getDefaults(),i,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},l.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&f.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},l.prototype.enter=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t instanceof f.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t instanceof f.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},l.prototype.show=function(){var e,t,i,o,n,s,a,r=f.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),n=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented()&&n&&(r=(e=this).tip(),n=this.getUID(this.type),this.setContent(),r.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&r.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?r.appendTo(f(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=r[0].offsetWidth,o=r[0].offsetHeight,a&&(a=n,s=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+o>s.bottom?"top":"top"==n&&t.top-o<s.top?"bottom":"right"==n&&t.right+i>s.width?"left":"left"==n&&t.left-i<s.left?"right":n,r.removeClass(a).addClass(n)),s=this.getCalculatedOffset(n,t,i,o),this.applyPlacement(s,n),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},f.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",a).emulateTransitionEnd(l.TRANSITION_DURATION):a()))},l.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10),s=(isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,f.offset.setOffset(i[0],f.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in"),i[0].offsetWidth),a=i[0].offsetHeight,r=("top"==e&&a!=n&&(t.top=t.top+n-a),this.getViewportAdjustedDelta(e,t,s,a)),e=(r.left?t.left+=r.left:t.top+=r.top,/top|bottom/.test(e)),o=e?2*r.left-o+s:2*r.top-n+a,s=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(o,i[0][s],e)},l.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var e=this,i=f(this.$tip),o=f.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(l.TRANSITION_DURATION):n(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,e=e.getBoundingClientRect(),o=(null==e.width&&(e=f.extend({},e,{width:e.right-e.left,height:e.bottom-e.top})),i?{top:0,left:0}:t.offset()),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:f(window).width(),height:f(window).height()}:null;return f.extend({},e,t,i,o)},l.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n,s,a={top:0,left:0};return this.$viewport&&(n=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-n-s.scroll,o=e.top+n-s.scroll+o,t<s.top?a.top=s.top-t:o>s.top+s.height&&(a.top=s.top+s.height-o)):(t=e.left-n,o=e.left+n+i,t<s.left?a.left=s.left-t:o>s.right&&(a.left=s.left+s.width-o))),a},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(this.$tip||(this.$tip=f(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var e=this;t&&!(e=f(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=f.fn.tooltip;f.fn.tooltip=function(o){return this.each(function(){var t=f(this),e=t.data("bs.tooltip"),i="object"==_typeof(o)&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new l(this,i)),"string"==typeof o&&e[o]())})},f.fn.tooltip.Constructor=l,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=e,this}}(jQuery),function(n){"use strict";function s(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.3.6",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t,e=this.tip(),i=this.getTitle(),o=this.getContent();this.options.html?(t=_typeof(o),this.options.sanitize&&(i=this.sanitizeHtml(i),"string"===t&&(o=this.sanitizeHtml(o))),e.find(".popover-title").html(i),e.find(".popover-content").children().detach().end()["string"===t?"html":"append"](o)):(e.find(".popover-title").text(i),e.find(".popover-content").children().detach().end().text(o)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==_typeof(o)&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(n){"use strict";function s(t,e){this.$body=n(document.body),this.$scrollElement=n(t).is(document.body)?n(window):n(t),this.options=n.extend({},s.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function e(o){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy"),i="object"==_typeof(o)&&o;e||t.data("bs.scrollspy",e=new s(this,i)),"string"==typeof o&&e[o]()})}s.VERSION="3.3.6",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=n(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&n(t);return e&&e.length&&e.is(":visible")?[[e[i]().top+o,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(s[t])},s.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=n(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},s.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=n.fn.scrollspy;n.fn.scrollspy=e,n.fn.scrollspy.Constructor=s,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function r(t){this.element=a(t)}function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.6",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,i,o=this.element,n=o.closest("ul:not(.dropdown-menu)"),s=(s=o.data("target"))||(s=o.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"");o.parent("li").hasClass("active")||(t=n.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:o[0]}),i=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),o.trigger(i),i.isDefaultPrevented()||e.isDefaultPrevented()||(i=a(document).find(s),this.activate(o.closest("li"),n),this.activate(i,i.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:o[0]}),o.trigger({type:"shown.bs.tab",relatedTarget:t[0]})})))},r.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(r.TRANSITION_DURATION):s(),o.removeClass("in")};function t(t){t.preventDefault(),e.call(a(this),"show")}var i=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(a){"use strict";function r(t,e){this.options=a.extend({},r.DEFAULTS,e),e=this.options.target===r.DEFAULTS.target?a(this.options.target):a(document).find(this.options.target),this.$target=e.on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function i(o){return this.each(function(){var t=a(this),e=t.data("bs.affix"),i="object"==_typeof(o)&&o;e||t.data("bs.affix",e=new r(this,i)),"string"==typeof o&&e[o]()})}r.VERSION="3.3.6",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,i,o){var n,s=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();return null!=i&&"top"==this.affixed?s<i&&"top":"bottom"==this.affixed?null!=i?!(s+this.unpin<=a.top)&&"bottom":!(s+r<=t-o)&&"bottom":(a=(n=null==this.affixed)?s:a.top,null!=i&&s<=i?"top":null!=o&&t-o<=a+(n?r:e)&&"bottom")},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},r.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(a(document).height(),a(document.body).height()),e=("object"!=_typeof(e)&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element)),this.getState(n,t,i,o));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var i="affix"+(e?"-"+e:""),s=a.Event(i+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:n-t-o})}};var t=a.fn.affix;a.fn.affix=i,a.fn.affix.Constructor=r,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery); !function(){var r,e,n;void 0!==$.fn.tooltip.Constructor.prototype&&(r=$.fn.tooltip.Constructor.prototype.show,e=$.fn.tooltip.Constructor.prototype.hide,n=$.fn.tooltip.Constructor.prototype.init,$(window).on("load",function(){$("body").on("keydown",function(t){var i;27==t.which&&(i=$(".tooltip.in")).length&&(i=$("[aria-describedby="+i.attr("id")+"]")).length&&(i=$(i).data("bs.tooltip"))&&i.tip().hasClass("in")&&(i.hoverOnTip=!1,i.inState.override=!1,i.hide(),t.stopImmediatePropagation(),t.stopPropagation())})}),$.fn.tooltip.Constructor.prototype.init=function(t,i,o){n.apply(this,arguments);var e="click."+this.type;this.$element.on(e,null,$.proxy(function(){this.hoverOnTip=!1,this.inState.override=!1,"in"!=this.hoverState&&this.hide()},this))},$.fn.tooltip.Constructor.prototype.show=function(){var t=this.$element,i=t.attr("aria-describedby"),i=i?i.split(" "):[],o=this.tip(),e=("tooltip"===this.type&&g_portal_isrtl&&!t.attr("data-isrtl")&&(e="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,(n=/left|right/).test(e)&&(t.attr("data-isrtl","true"),this.options.placement=e.replace(n,function(t){return"left"===t?"right":"left"}))),r.apply(this,arguments),0<i.length&&(i.push(o.attr("id")),t.attr("aria-describedby",i.join(" "))),"mouseenter"),n="mouseleave",i="blur";o.off(e+"."+this.type).off(n+"."+this.type),o.on(e+"."+this.type,null,$.proxy(function(){this.hoverOnTip=!0,this.inState.override=!0},this)),o.on(n+"."+this.type,null,$.proxy(function(){this.hoverOnTip=!1,this.timeout=setTimeout($.proxy(function(){this.inState.override=!1,this.$element.is(":hover")||this.hide()},this),100)},this)),t.off(i+"."+this.type),t.on(i+"."+this.type,null,$.proxy(function(){this.hoverOnTip=!1,this.inState.override=!1,"in"!=this.hoverState&&this.hide()},this))},$.fn.tooltip.Constructor.prototype.hide=function(t){clearTimeout(this.timeout),this.timeout=setTimeout($.proxy(function(){var i,t,o;this.hoverOnTip||(t=(i=this.$element).attr("aria-describedby"),1<(o=t?t.split(" "):[]).length&&i.off("hidden.bs.tooltip").on("hidden.bs.tooltip",null,$.proxy(function(){var t=this.tip().attr("id");-1!==o.indexOf(t)&&(o.splice(o.indexOf(t),1),o.length?i.attr("aria-describedby",o.join(" ")):i.removeAttr("aria-describedby"))},this)),this.inState.override=!1,e.apply(this,arguments))},this),100)})}(); function formatPhone(r){r.value=trim(r.value);var t=r.value,e="",a=-1;if(0<t.length&&"+"!=t.charAt(0)){var n=0;"1"==t.charAt(0)&&(t=t.substring(1,t.length));for(var o=0;o<t.length;o++){var l=t.charAt(o);if("0"<=l&&l<="9"&&(0==n?e+="(":3==n?e+=") ":6==n&&(e+="-"),e+=l,n++),!("0"<=l&&l<="9")&&" "!=l&&"-"!=l&&"."!=l&&"("!=l&&")"!=l){a=o;break}}0<=a&&(e+=" "+t.substring(a,t.length)),10==n&&e.length<=40&&(r.value=e)}return!0}function formatClean(r){var t,e="",a=r.length,n="";try{for(var o=0;o<a;o++)t=(n=r.charAt(o)).charCodeAt(0),("-"==n||n==getDecimalSeparator()||48<=t&&t<=57)&&(e+=r.charAt(o))}catch(r){alertError("formatClean",r)}return e}function formatCurrency(r){var t="";return 0==r.lastIndexOf("-")&&(t="-"),r.lastIndexOf(".")<0&&(r+="00"),t+formatDollar(r=formatClean(r),getGroupingSeparator())+getDecimalSeparator()+formatCents(r)}function formatNumber(r){if(0==r.length)return r;r+="";var t="",e="";try{0==r.lastIndexOf("-")&&(t="-");for(var a=parseFraction((r="0"+(r=0==(r=formatClean(r)).indexOf("-")?r.substring(1):r))+""),e=(r=parseInt(r,10))+"",n=0;n<Math.floor((e.length-(1+n))/3);n++)e=e.substring(0,e.length-(4*n+3))+getGroupingSeparator()+e.substring(e.length-(4*n+3));0<a.length&&(e+=getDecimalSeparator()+a)}catch(r){alertError("Format Number",r)}return t+e}function parseFraction(r){var t=r.indexOf(getDecimalSeparator());return-1==t?"":r.substring(t+1)}function formatCents(r){var t="";try{var a=(r=parseInt(r,10))+"";if(0==a.length)return"00";if(1==a.length)return"0"+a;if(2==a.length)return a;t=a.substring(a.length-2,a.length)}catch(r){alertError("Format Cents",e)}return t}function formatDollar(r){var t="";try{if((t=(r=parseInt(r,10))+"").length<3)return 0;for(var t=t.substring(0,t.length-2),a=0;a<Math.floor((t.length-(1+a))/3);a++)t=t.substring(0,t.length-(4*a+3))+getGroupingSeparator()+t.substring(t.length-(4*a+3))}catch(r){alertError("Format Dollar",e)}return t}function padLeft(r,t,e){for(r+="";r.length<t;)r=e+r;return r}function getDecimalSeparator(){return g_user_decimal_separator||"."}function getGroupingSeparator(){return g_user_grouping_separator||","}function alertError(r,t){null==t.description?alert(r+" Exception: "+t.message):alert(r+" Exception: "+t.description)}function getFraction(r){return r&&parseFraction(r=formatClean(r))}function getWholePart(r){var t;return r&&((r=-1<(t=(r=formatClean(r)).indexOf(getDecimalSeparator()))?r.substring(0,t):r)&&"-"!==r?r:"0")} jQuery.iconset_fontawesome={iconClass:"fa",iconClassFix:"fa-",icons:["","glass","music","search","envelope-o","heart","star","star-o","user","film","th-large","th","th-list","check","times","search-plus","search-minus","power-off","signal","cog","trash-o","home","file-o","clock-o","road","download","arrow-circle-o-down","arrow-circle-o-up","inbox","play-circle-o","repeat","refresh","list-alt","lock","flag","headphones","volume-off","volume-down","volume-up","qrcode","barcode","tag","tags","book","bookmark","print","camera","font","bold","italic","text-height","text-width","align-left","align-center","align-right","align-justify","list","outdent","indent","video-camera","picture-o","pencil","map-marker","adjust","tint","pencil-square-o","share-square-o","check-square-o","arrows","step-backward","fast-backward","backward","play","pause","stop","forward","fast-forward","step-forward","eject","chevron-left","chevron-right","plus-circle","minus-circle","times-circle","check-circle","question-circle","info-circle","crosshairs","times-circle-o","check-circle-o","ban","arrow-left","arrow-right","arrow-up","arrow-down","share","expand","compress","plus","minus","asterisk","exclamation-circle","gift","leaf","fire","eye","eye-slash","exclamation-triangle","plane","calendar","random","comment","magnet","chevron-up","chevron-down","retweet","shopping-cart","folder","folder-open","arrows-v","arrows-h","bar-chart","twitter-square","facebook-square","camera-retro","key","cogs","comments","thumbs-o-up","thumbs-o-down","star-half","heart-o","sign-out","linkedin-square","thumb-tack","external-link","sign-in","trophy","github-square","upload","lemon-o","phone","square-o","bookmark-o","phone-square","twitter","facebook","github","unlock","credit-card","rss","hdd-o","bullhorn","bell","certificate","hand-o-right","hand-o-left","hand-o-up","hand-o-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-circle-down","globe","wrench","tasks","filter","briefcase","arrows-alt","users","link","cloud","flask","scissors","files-o","paperclip","floppy-o","square","bars","list-ul","list-ol","strikethrough","underline","table","magic","truck","pinterest","pinterest-square","google-plus-square","google-plus","money","caret-down","caret-up","caret-left","caret-right","columns","sort","sort-desc","sort-asc","envelope","linkedin","undo","gavel","tachometer","comment-o","comments-o","bolt","sitemap","umbrella","clipboard","lightbulb-o","exchange","cloud-download","cloud-upload","user-md","stethoscope","suitcase","bell-o","coffee","cutlery","file-text-o","building-o","hospital-o","ambulance","medkit","fighter-jet","beer","h-square","plus-square","angle-double-left","angle-double-right","angle-double-up","angle-double-down","angle-left","angle-right","angle-up","angle-down","desktop","laptop","tablet","mobile","circle-o","quote-left","quote-right","spinner","circle","reply","github-alt","folder-o","folder-open-o","smile-o","frown-o","meh-o","gamepad","keyboard-o","flag-o","flag-checkered","terminal","code","reply-all","star-half-o","location-arrow","crop","code-fork","chain-broken","question","info","exclamation","superscript","subscript","eraser","puzzle-piece","microphone","microphone-slash","shield","calendar-o","fire-extinguisher","rocket","maxcdn","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-circle-down","html5","css3","anchor","unlock-alt","bullseye","ellipsis-h","ellipsis-v","rss-square","play-circle","ticket","minus-square","minus-square-o","level-up","level-down","check-square","pencil-square","external-link-square","share-square","compass","caret-square-o-down","caret-square-o-up","caret-square-o-right","eur","gbp","usd","inr","jpy","rub","krw","btc","file","file-text","sort-alpha-asc","sort-alpha-desc","sort-amount-asc","sort-amount-desc","sort-numeric-asc","sort-numeric-desc","thumbs-up","thumbs-down","youtube-square","youtube","xing","xing-square","youtube-play","dropbox","stack-overflow","instagram","flickr","adn","bitbucket","bitbucket-square","tumblr","tumblr-square","long-arrow-down","long-arrow-up","long-arrow-left","long-arrow-right","apple","windows","android","linux","dribbble","skype","foursquare","trello","female","male","gratipay","sun-o","moon-o","archive","bug","vk","weibo","renren","pagelines","stack-exchange","arrow-circle-o-right","arrow-circle-o-left","caret-square-o-left","dot-circle-o","wheelchair","vimeo-square","try","plus-square-o","space-shuttle","slack","envelope-square","wordpress","openid","university","graduation-cap","yahoo","google","reddit","reddit-square","stumbleupon-circle","stumbleupon","delicious","digg","pied-piper-pp","pied-piper-alt","drupal","joomla","language","fax","building","child","paw","spoon","cube","cubes","behance","behance-square","steam","steam-square","recycle","car","taxi","tree","spotify","deviantart","soundcloud","database","file-pdf-o","file-word-o","file-excel-o","file-powerpoint-o","file-image-o","file-archive-o","file-audio-o","file-video-o","file-code-o","vine","codepen","jsfiddle","life-ring","circle-o-notch","rebel","empire","git-square","git","hacker-news","tencent-weibo","qq","weixin","paper-plane","paper-plane-o","history","circle-thin","header","paragraph","sliders","share-alt","share-alt-square","bomb","futbol-o","tty","binoculars","plug","slideshare","twitch","yelp","newspaper-o","wifi","calculator","paypal","google-wallet","cc-visa","cc-mastercard","cc-discover","cc-amex","cc-paypal","cc-stripe","bell-slash","bell-slash-o","trash","copyright","at","eyedropper","paint-brush","birthday-cake","area-chart","pie-chart","line-chart","lastfm","lastfm-square","toggle-off","toggle-on","bicycle","bus","ioxhost","angellist","cc","ils","meanpath","buysellads","connectdevelop","dashcube","forumbee","leanpub","sellsy","shirtsinbulk","simplybuilt","skyatlas","cart-plus","cart-arrow-down","diamond","ship","user-secret","motorcycle","street-view","heartbeat","venus","mars","mercury","transgender","transgender-alt","venus-double","mars-double","venus-mars","mars-stroke","mars-stroke-v","mars-stroke-h","neuter","genderless","facebook-official","pinterest-p","whatsapp","server","user-plus","user-times","bed","viacoin","train","subway","medium","y-combinator","optin-monster","opencart","expeditedssl","battery-full","battery-three-quarters","battery-half","battery-quarter","battery-empty","mouse-pointer","i-cursor","object-group","object-ungroup","sticky-note","sticky-note-o","cc-jcb","cc-diners-club","clone","balance-scale","hourglass-o","hourglass-start","hourglass-half","hourglass-end","hourglass","hand-rock-o","hand-paper-o","hand-scissors-o","hand-lizard-o","hand-spock-o","hand-pointer-o","hand-peace-o","trademark","registered","creative-commons","gg","gg-circle","tripadvisor","odnoklassniki","odnoklassniki-square","get-pocket","wikipedia-w","safari","chrome","firefox","opera","internet-explorer","television","contao","500px","amazon","calendar-plus-o","calendar-minus-o","calendar-times-o","calendar-check-o","industry","map-pin","map-signs","map-o","map","commenting","commenting-o","houzz","vimeo","black-tie","fonticons","reddit-alien","edge","credit-card-alt","codiepie","modx","fort-awesome","usb","product-hunt","mixcloud","scribd","pause-circle","pause-circle-o","stop-circle","stop-circle-o","shopping-bag","shopping-basket","hashtag","bluetooth","bluetooth-b","percent","gitlab","wpbeginner","wpforms","envira","universal-access","wheelchair-alt","question-circle-o","blind","audio-description","volume-control-phone","braille","assistive-listening-systems","american-sign-language-interpreting","deaf","glide","glide-g","sign-language","low-vision","viadeo","viadeo-square","snapchat","snapchat-ghost","snapchat-square","pied-piper","first-order","yoast","themeisle","google-plus-official","font-awesome","handshake-o","envelope-open","envelope-open-o","linode","address-book","address-book-o","address-card","address-card-o","user-circle","user-circle-o","user-o","id-badge","id-card","id-card-o","quora","free-code-camp","telegram","thermometer-full","thermometer-three-quarters","thermometer-half","thermometer-quarter","thermometer-empty","shower","bath","podcast","window-maximize","window-minimize","window-restore","window-close","window-close-o","bandcamp","grav","etsy","imdb","ravelry","eercast","microchip","snowflake-o","superpowers","wpexplorer","meetup"]}; function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(l){"use strict";function a(t,e){this.$element=l(t),this.options=l.extend({},a.DEFAULTS,this.$element.data()),this.options=l.extend({},this.options,e)}a.ICONSET_EMPTY={iconClass:"",iconClassFix:"",icons:[]},a.ICONSET={_custom:null,elusiveicon:l.iconset_elusiveicon||a.ICONSET_EMPTY,fontawesome:l.iconset_fontawesome||a.ICONSET_EMPTY,ionicon:l.iconset_ionicon||a.ICONSET_EMPTY,glyphicon:l.iconset_glyphicon||a.ICONSET_EMPTY,mapicon:l.iconset_mapicon||a.ICONSET_EMPTY,materialdesign:l.iconset_materialdesign||a.ICONSET_EMPTY,octicon:l.iconset_octicon||a.ICONSET_EMPTY,typicon:l.iconset_typicon||a.ICONSET_EMPTY,weathericon:l.iconset_weathericon||a.ICONSET_EMPTY},a.DEFAULTS={align:"center",arrowClass:"btn-primary",arrowNextIconClass:"glyphicon glyphicon-arrow-right",arrowPrevIconClass:"glyphicon glyphicon-arrow-left",cols:4,icon:"",iconset:"glyphicon",header:!0,labelHeader:"{0} / {1}",footer:!0,labelFooter:"{0} - {1} of {2}",placement:"bottom",rows:4,search:!0,searchText:"Search icon",selectedClass:"btn-warning",unselectedClass:"btn-default"},a.prototype.bindEvents=function(){var e=this.options,o=this;e.table.find(".btn-previous, .btn-next").off("click").on("click",function(t){l(this).hasClass("disabled")||(t.preventDefault(),t=parseInt(l(this).val(),10),o.changeList(e.page+t))}),e.table.find(".btn-icon").off("click").on("click",function(t){t.preventDefault(),o.select(l(this).val()),!1===e.inline?(o.$element.popover("destroy"),e.origEl.focus()):e.table.find("i."+l(this).val()).parent().addClass(e.selectedClass)}),e.table.find(".search-control").off("keyup").on("keyup",function(t){9!=t.which&&o.changeList(1)}),e.table.off("keyup").on("keyup",function(t){27==t.which&&(o.$element.popover("destroy"),e.origEl.focus())})},a.prototype.changeList=function(t){this.filterIcons(),this.updateLabels(t),this.updateIcons(t),this.options.page=t,this.bindEvents()},a.prototype.filterIcons=function(){var o,t=this.options,s=t.table.find(".search-control").val();""===s?t.icons=a.ICONSET[t.iconset].icons:(o=[],l.each(a.ICONSET[t.iconset].icons,function(t,e){-1<e.indexOf(s)&&o.push(e)}),t.icons=o)},a.prototype.removeAddClass=function(t,e,o){return this.options.table.find(t).removeClass(e).addClass(o),o},a.prototype.reset=function(){this.updatePicker(),this.changeList(1)},a.prototype.select=function(t){var e=this.options,o=this.$element;e.selected=l.inArray(t.replace(e.iconClassFix,""),e.icons),-1===e.selected&&(e.selected=0,t=e.iconClassFix+e.icons[e.selected]),""!==t&&0<=e.selected&&(e.icon=t,!1===e.inline&&(o.find("input").val(t),o.find("i").attr("class","").addClass(e.iconClass).addClass(t)),t===e.iconClassFix?o.trigger({type:"change",icon:"empty"}):o.trigger({type:"change",icon:t}),e.table.find("button."+e.selectedClass).removeClass(e.selectedClass))},a.prototype.switchPage=function(t){var e,o=this.options;o.selected=l.inArray(t.replace(o.iconClassFix,""),o.icons),0<=o.selected&&(e=Math.ceil((o.selected+1)/this.totalIconsPerPage()),this.changeList(e)),(""===t?o.table.find("i."+o.iconClassFix):o.table.find("i."+t)).parent().addClass(o.selectedClass)},a.prototype.totalPages=function(){return Math.ceil(this.totalIcons()/this.totalIconsPerPage())},a.prototype.totalIcons=function(){return this.options.icons.length},a.prototype.totalIconsPerPage=function(){return 0===this.options.rows?this.options.icons.length:this.options.cols*this.options.rows},a.prototype.updateArrows=function(t){var e=this.options,o=this.totalPages();1===t?e.table.find(".btn-previous").addClass("disabled"):e.table.find(".btn-previous").removeClass("disabled"),t===o||0===o?e.table.find(".btn-next").addClass("disabled"):e.table.find(".btn-next").removeClass("disabled")},a.prototype.updateIcons=function(t){var e=this.options,o=e.table.find("tbody").empty(),s=(t-1)*this.totalIconsPerPage(),n=e.rows;0===e.rows&&(n=e.icons.length);for(var i=0;i<n;i++){for(var a=l("<tr></tr>"),c=0;c<e.cols;c++){var r=s+i*e.cols+c,p=l('<button class="btn '+e.unselectedClass+' btn-icon"></button>').hide();r<e.icons.length&&(r=e.iconClassFix+e.icons[r],p.val(r).attr("title",r).append('<i class="'+e.iconClass+" "+r+'"></i>').show(),e.icon===r&&p.addClass(e.selectedClass).addClass("btn-icon-selected")),a.append(l("<td></td>").append(p))}o.append(a)}},a.prototype.updateIconsCount=function(){var t,e=this.options;!0===e.footer&&(t=["<tr>",' <td colspan="'+e.cols+'" class="text-center">',' <span class="icons-count"></span>'," </td>","</tr>"],e.table.find("tfoot").empty().append(t.join("")))},a.prototype.updateLabels=function(t){var e=this.options,o=this.totalIcons(),s=this.totalPages(),s=(e.table.find(".page-count").html(e.labelHeader.replace("{0}",0===s?0:t).replace("{1}",s)),(t-1)*this.totalIconsPerPage()),n=t*this.totalIconsPerPage();e.table.find(".icons-count").html(e.labelFooter.replace("{0}",o?1+s:0).replace("{1}",n<o?n:o).replace("{2}",o)),this.updateArrows(t)},a.prototype.updatePagesCount=function(){var t=this.options;if(!0===t.header){for(var e=l("<tr></tr>"),o=0;o<t.cols;o++){var s,n=l('<td class="text-center"></td>');0===o||o===t.cols-1?(s=['<button class="btn btn-arrow '+(0===o?"btn-previous":"btn-next")+" "+t.arrowClass+'" value="'+(0===o?-1:1)+'">','<span class="'+(0===o?t.arrowPrevIconClass:t.arrowNextIconClass)+'"></span>',"</button>"],n.append(s.join("")),e.append(n)):0===e.find(".page-count").length&&(n.attr("colspan",t.cols-2).append('<span class="page-count"></span>'),e.append(n))}t.table.find("thead").append(e)}},a.prototype.updatePicker=function(){var t=this.options;if(t.cols<4)throw"Iconpicker => The number of columns must be greater than or equal to 4. [option.cols = "+t.cols+"]";if(t.rows<0)throw"Iconpicker => The number of rows must be greater than or equal to 0. [option.rows = "+t.rows+"]";this.updateSearch(),this.updatePagesCount(),this.updateIconsCount()},a.prototype.updateSearch=function(){var t=this.options,e=['<tr style="display: table-row;">',' <td colspan="'+t.cols+'">',' <input type="text" class="form-control search-control" style="width: '+39*t.cols+'px;" placeholder="'+t.searchText+'">'," </td>","</tr>"],e=l(e.join(""));!0===t.search?e.show():e.hide(),t.table.find("thead").empty().append(e)},a.prototype.setAlign=function(t){this.$element.removeClass(this.options.align).addClass(t),this.options.align=t},a.prototype.setArrowClass=function(t){this.options.arrowClass=this.removeAddClass(".btn-arrow",this.options.arrowClass,t)},a.prototype.setArrowNextIconClass=function(t){this.options.arrowNextIconClass=this.removeAddClass(".btn-next > span",this.options.arrowNextIconClass,t)},a.prototype.setArrowPrevIconClass=function(t){this.options.arrowPrevIconClass=this.removeAddClass(".btn-previous > span",this.options.arrowPrevIconClass,t)},a.prototype.setCols=function(t){this.options.cols=t,this.reset()},a.prototype.setFooter=function(t){var e=this.options.table.find("tfoot");!0===t?e.show():e.hide(),this.options.footer=t},a.prototype.setHeader=function(t){var e=this.options.table.find("thead");!0===t?e.show():e.hide(),this.options.header=t},a.prototype.setIcon=function(t){this.select(t)},a.prototype.setIconset=function(t){var e=this.options;l.isPlainObject(t)?(a.ICONSET._custom=l.extend(a.ICONSET_EMPTY,t),e.iconset="_custom"):a.ICONSET.hasOwnProperty(t)?e.iconset=t:e.iconset=a.DEFAULTS.iconset,e=l.extend(e,a.ICONSET[e.iconset]),this.reset(),this.select(e.icon)},a.prototype.setLabelHeader=function(t){this.options.labelHeader=t,this.updateLabels(this.options.page)},a.prototype.setLabelFooter=function(t){this.options.labelFooter=t,this.updateLabels(this.options.page)},a.prototype.setPlacement=function(t){this.options.placement=t},a.prototype.setRows=function(t){this.options.rows=t,this.reset()},a.prototype.setSearch=function(t){var e=this.options.table.find(".search-control");!0===t?e.show():e.hide(),e.val(""),this.changeList(1),this.options.search=t},a.prototype.setSearchText=function(t){this.options.table.find(".search-control").attr("placeholder",t),this.options.searchText=t},a.prototype.setSelectedClass=function(t){this.options.selectedClass=this.removeAddClass(".btn-icon-selected",this.options.selectedClass,t)},a.prototype.setUnselectedClass=function(t){this.options.unselectedClass=this.removeAddClass(".btn-icon",this.options.unselectedClass,t)};var t=l.fn.iconpicker;l.fn.iconpicker=function(n,i){return this.each(function(){var e=l(this),o=e.data("bs.iconpicker"),t="object"===_typeof(n)&&n;if(o||e.data("bs.iconpicker",o=new a(this,t)),"string"==typeof n){if(void 0===o[n])throw'Iconpicker => The "'+n+'" method does not exists.';o[n](i)}else{var s=o.options,s=l.extend(s,{inline:!1,page:1,selected:-1,table:l('<table class="table-icons"><thead></thead><tbody></tbody><tfoot></tfoot></table>')}),t=void 0!==e.attr("name")?'name="'+e.attr("name")+'"':"";"BUTTON"===e.prop("tagName")?((s.origEl=e).empty().append("<i></i>").append('<input type="hidden" '+t+"></input>").append('<span class="caret"></span>').addClass("iconpicker"),o.setIconset(s.iconset),e.on("click",function(t){t.preventDefault(),e.data("bs.popover")?e.popover("destroy"):(e.popover({animation:!1,trigger:"manual",html:!0,content:s.table,container:"body",placement:s.placement}).on("shown.bs.popover",function(){o.switchPage(s.icon),o.bindEvents(),s.table.find(".search-control").focus()}),e.data("bs.popover").tip().addClass("iconpicker-popover"),e.popover("show"))}).keypress(function(t){13==t.which&&(t.preventDefault(),l(this).click())})):(s.inline=!0,o.setIconset(s.iconset),e.empty().append('<input type="hidden" '+t+"></input>").append(s.table).addClass("iconpicker").addClass(s.align),o.switchPage(s.icon),o.bindEvents())}})},l.fn.iconpicker.Constructor=a,l.fn.iconpicker.noConflict=function(){return l.fn.iconpicker=t,this},l(document).on("click","body",function(t){l(".iconpicker").each(function(){l(this).is(t.target)||0!==l(this).has(t.target).length||0!==l(".popover").has(t.target).length||l(this).popover("destroy")})}),l('button[role="iconpicker"],div[role="iconpicker"],button[class="iconpicker"]').iconpicker()}(jQuery); angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/popup.html","uib/template/datepicker/year.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(u,c,p,e){var d=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var a=p(e.expanding),i=p(e.expanded),o=p(e.collapsing),r=p(e.collapsed);function l(){n.removeClass("collapsing").addClass("collapse").css({height:"auto"}),i(t)}function s(){n.css({height:"0"}),n.removeClass("collapsing").addClass("collapse"),r(t)}t.$eval(e.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),t.$watch(e.uibCollapse,function(e){e?n.hasClass("collapse")||n.hasClass("in")?c.resolve(o(t)).then(function(){n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),d?d(n,{removeClass:"in",to:{height:"0"}}).start().finally(s):u.removeClass(n,"in",{to:{height:"0"}}).then(s)}):s():n.hasClass("collapse")&&n.hasClass("in")||c.resolve(a(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),d?d(n,{addClass:"in",easing:"ease",to:{height:n[0].scrollHeight+"px"}}).start().finally(l):u.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(l)})})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,n,a){this.groups=[],this.closeOthers=function(t){(angular.isDefined(n.closeOthers)?e.$eval(n.closeOthers):a.closeOthers)&&angular.forEach(this.groups,function(e){e!==t&&(e.isOpen=!1)})},this.addGroup=function(t){var n=this;this.groups.push(t),t.$on("$destroy",function(e){n.removeGroup(t)})},this.removeGroup=function(e){e=this.groups.indexOf(e);-1!==e&&this.groups.splice(e,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,e,a){a.addGroup(t),t.openClass=e.openClass||"panel-open",t.panelClass=e.panelClass||"panel-default",t.$watch("isOpen",function(e){n.toggleClass(t.openClass,!!e),e&&a.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};e="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=e+"-tab",t.panelId=e+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,a,i){a.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,t,n,a){e.$watch(function(){return a[n.uibAccordionTransclude]},function(e){e&&(t.find("span").html(""),t.find("span").append(e))})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,a){e.closeable=!!t.close;n=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;n&&a(function(){e.close()},parseInt(n,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(r){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,a,e){var i=e[0],o=e[1],e=r(a.uibUncheckable);n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(i.activeClass,angular.equals(o.$modelValue,t.$eval(a.uibBtnRadio)))},n.on(i.toggleEvent,function(){var e;a.disabled||((e=n.hasClass(i.activeClass))&&!angular.isDefined(a.uncheckable)||t.$apply(function(){o.$setViewValue(e?null:t.$eval(a.uibBtnRadio)),o.$render()}))}),a.uibUncheckable&&t.$watch(e,function(e){a.$set("uncheckable",e?"":null)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,e,t,a){var i=a[0],o=a[1];function r(){return l(t.btnCheckboxTrue,!0)}function l(e,t){return angular.isDefined(e)?n.$eval(e):t}e.find("input").css({display:"none"}),o.$render=function(){e.toggleClass(i.activeClass,angular.equals(o.$modelValue,r()))},e.on(i.toggleEvent,function(){t.disabled||n.$apply(function(){o.$setViewValue(e.hasClass(i.activeClass)?l(t.btnCheckboxFalse,!1):r()),o.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(i,o,t,a,r){var n,l,s=this,u=s.slides=i.slides=[],c="uib-slideDirection",p=-1,d=[],m=(s.currentSlide=null,!1);function f(){for(;d.length;)d.shift()}function h(e){if(angular.isUndefined(u[e].index))return u[e];for(var t=0,n=u.length;t<n;++t)if(u[t].index===e)return u[t]}function g(){n&&(t.cancel(n),n=null)}function b(){g();var e=+i.interval;!isNaN(e)&&0<e&&(n=t(v,e))}function v(){var e=+i.interval;l&&!isNaN(e)&&0<e&&u.length?i.next():i.pause()}s.addSlide=function(e,t){e.$element=t,u.push(e),1===u.length||e.active?(i.$currentTransition&&(i.$currentTransition=null),s.select(u[u.length-1]),1===u.length&&i.play()):e.active=!1},s.getCurrentIndex=function(){return s.currentSlide&&angular.isDefined(s.currentSlide.index)?+s.currentSlide.index:p},s.next=i.next=function(){var e=(s.getCurrentIndex()+1)%u.length;if(0!=e||!i.noWrap())return s.select(h(e),"next");i.pause()},s.prev=i.prev=function(){var e=s.getCurrentIndex()-1<0?u.length-1:s.getCurrentIndex()-1;if(!i.noWrap()||e!=u.length-1)return s.select(h(e),"prev");i.pause()},s.removeSlide=function(e){angular.isDefined(e.index)&&u.sort(function(e,t){return+e.index>+t.index});var t=d.indexOf(e),n=(-1!==t&&d.splice(t,1),u.indexOf(e));u.splice(n,1),a(function(){0<u.length&&e.active?n>=u.length?s.select(u[n-1]):s.select(u[n]):n<p&&p--}),0===u.length&&(s.currentSlide=null,f())},s.select=i.select=function(e,t){var n=i.indexOfSlide(e);void 0===t&&(t=n>s.getCurrentIndex()?"next":"prev"),e&&e!==s.currentSlide&&!i.$currentTransition?function a(e,t,n){if(m)return;angular.extend(e,{direction:n,active:!0});angular.extend(s.currentSlide||{},{direction:n,active:!1});r.enabled(o)&&!i.$currentTransition&&e.$element&&1<s.slides.length&&(e.$element.data(c,e.direction),s.currentSlide&&s.currentSlide.$element&&s.currentSlide.$element.data(c,e.direction),i.$currentTransition=!0,r.on("addClass",e.$element,function(e,t){var n;"close"===t&&(i.$currentTransition=null,r.off("addClass",e),d.length&&(t=d.pop(),e=i.indexOfSlide(t),n=e>s.getCurrentIndex()?"next":"prev",f(),a(t,e,n)))}));s.currentSlide=e;p=t;b()}(e,n,t):e&&e!==s.currentSlide&&i.$currentTransition&&(d.push(e),e.active=!1)},i.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:u.indexOf(e)},i.isActive=function(e){return s.currentSlide===e},i.pause=function(){i.noPause||(l=!1,g())},i.play=function(){l||(l=!0,b())},i.$on("$destroy",function(){m=!0,g()}),i.$watch("noTransition",function(e){r.enabled(o,!e)}),i.$watch("interval",b),i.$watchCollection("slides",function(e){e.length||(i.$currentTransition=null,f())})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(t,e,n,a){a.addSlide(t,e),t.$on("$destroy",function(){a.removeSlide(t)}),t.$watch("active",function(e){e&&a.select(t)})}}}).animation(".item",["$animateCss",function(o){var r="uib-slideDirection";function l(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(e,t,n){var a,i;if("active"===t)return t=e.data(r),i=l.bind(this,e,(a="next"===t?"left":"right")+" "+t,n),e.addClass(t),o(e,{addClass:a}).start().done(i),function(){};n()},beforeRemoveClass:function(e,t,n){var a;if("active"===t)return t="next"===e.data(r)?"left":"right",a=l.bind(this,e,t,n),o(e,{addClass:t}).start().done(a),function(){};n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(d,m,n,a){var f,s,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function g(i,o){var r=[],l=i.split(""),e=i.indexOf("'");if(-1<e){var t=!1;i=i.split("");for(var n=e;n<i.length;n++)t?("'"===i[n]&&(n+1<i.length&&"'"===i[n+1]?(i[n+1]="$",l[n+1]=""):(l[n]="",t=!1)),i[n]="$"):"'"===i[n]&&(i[n]="$",t=!(l[n]=""));i=i.join("")}return angular.forEach(s,function(e){var t=i.indexOf(e.key);if(-1<t){i=i.split(""),l[t]="("+e.regex+")",i[t]="$";for(var n=t+1,a=t+e.key.length;n<a;n++)l[n]="",i[n]="$";i=i.join(""),r.push({index:t,key:e.key,apply:e[o],matcher:e.regex})}}),{regex:new RegExp("^"+l.join("")+"$"),map:a(r,"index")}}function i(e){return parseInt(e,10)}function o(e,t){e=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(e)?t:e}function r(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function l(e,t,n){n=n?-1:1;t=o(t,e.getTimezoneOffset());return r(e,n*(t-e.getTimezoneOffset()))}this.init=function(){f=m.id,this.parsers={},this.formatters={},s=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){this.year=+e+2e3},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:m.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=m.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:m.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=m.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:m.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:m.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:m.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var e=e.match(/([+-])(\d{2})(\d{2})/),t=e[1],n=e[2],e=e[3];this.hours+=i(t+n),this.minutes+=i(t+e)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:m.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}]},this.init(),this.filter=function(i,e){if(!angular.isDate(i)||isNaN(i)||!e)return"";e=m.DATETIME_FORMATS[e]||e,m.id!==f&&this.init(),this.formatters[e]||(this.formatters[e]=g(e,"formatter"));var t=this.formatters[e].map,o=e;return t.reduce(function(e,t,n){var a=o.match(new RegExp("(.*)"+t.key));return a&&angular.isString(a[1])&&(e+=a[1],o=o.replace(a[1]+t.key,"")),t.apply?e+t.apply.call(null,i):e},"")},this.parse=function(e,t,n){if(!angular.isString(e)||!t)return e;t=(t=m.DATETIME_FORMATS[t]||t).replace(h,"\\$&"),m.id!==f&&this.init(),this.parsers[t]||(this.parsers[t]=g(t,"apply"));var t=this.parsers[t],a=t.regex,i=t.map,o=e.match(a),r=!1;if(o&&o.length){for(var l,s=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&d.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),u=1,c=o.length;u<c;u++){var p=i[u-1];"Z"===p.matcher&&(r=!0),p.apply&&p.apply.call(s,o[u])}t=r?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,e=r?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return;if(1===t&&28<n)return 29===n&&(e%4==0&&e%100!=0||e%400==0);return 3!==t&&5!==t&&8!==t&&10!==t||n<31}(s.year,s.month,s.date)&&(!angular.isDate(n)||isNaN(n.getTime())||r?(l=new Date(0),t.call(l,s.year,s.month,s.date),e.call(l,s.hours||0,s.minutes||0,s.seconds||0,s.milliseconds||0)):(l=new Date(n),t.call(l,s.year,s.month,s.date),e.call(l,s.hours,s.minutes,s.seconds,s.milliseconds))),l}},this.toTimezone=function(e,t){return e&&t?l(e,t):e},this.fromTimezone=function(e,t){return e&&t?l(e,t,!0):e},this.timezoneToOffset=o,this.addDateMinutes=r,this.convertTimezoneToLocal=l}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(p){var o=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,d=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(e,t){var a=[],s=[],u={},t=t.uibIsClass.match(o),c=t[2],n=t[1].split(",");return function(l,e,t){a.push(l),s.push({scope:l,element:e}),n.forEach(function(e,t){var n,a=l,i=e.match(d),o=a.$eval(i[1]),i=i[2],r=u[e];r||(n=function(t){var n=null;s.some(function(e){if(e.scope.$eval(c)===t)return n=e,!0}),r.lastActivated!==n&&(r.lastActivated&&p.removeClass(r.lastActivated.element,o),n&&p.addClass(n.element,o),r.lastActivated=n)},u[e]=r={lastActivated:null,scope:a,watchFn:n,compareWithExp:i,watcher:a.$watch(i,n)}),r.watchFn(a.$eval(i))}),l.$on("$destroy",i)};function i(e){var t,n=e.targetScope,e=a.indexOf(n);a.splice(e,1),s.splice(e,1),a.length?(t=a[0],angular.forEach(u,function(e){e.scope===n&&(e.watcher=t.$watch(e.compareWithExp,e.watchFn),e.scope=t)})):u={}}}}}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(l,u){var t,s={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},c={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/};return{getRawNode:function(e){return e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(e){var t,n=(e=this.getRawNode(e)).offsetParent||l[0].documentElement;for(;n&&n!==l[0].documentElement&&(t=n,"static"===(u.getComputedStyle(t).position||"static"));)n=n.offsetParent;return n||l[0].documentElement},scrollbarWidth:function(){var e;return angular.isUndefined(t)&&(e=angular.element('<div style="position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;"></div>'),l.find("body").append(e),t=e[0].offsetWidth-e[0].clientWidth,t=isFinite(t)?t:0,e.remove()),t},scrollParent:function(e,t){e=this.getRawNode(e);var n,a=t?s.hidden:s.normal,i=l[0].documentElement,t=u.getComputedStyle(e),o="absolute"===t.position;if((n=e.parentElement||i)===i||"fixed"===t.position)return i;for(;n.parentElement&&n!==i;){var r=u.getComputedStyle(n);if(!(o=o&&"static"!==r.position?!1:o)&&a.test(r.overflow+r.overflowY+r.overflowX))break;n=n.parentElement}return n},position:function(e,t){e=this.getRawNode(e);var n=this.offset(e),t=(t&&(t=u.getComputedStyle(e),n.top-=this.parseStyle(t.marginTop),n.left-=this.parseStyle(t.marginLeft)),this.offsetParent(e)),a={top:0,left:0};return t!==l[0].documentElement&&((a=this.offset(t)).top+=t.clientTop-t.scrollTop,a.left+=t.clientLeft-t.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:e.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:e.offsetHeight),top:Math.round(n.top-a.top),left:Math.round(n.left-a.left)}},offset:function(e){var t=(e=this.getRawNode(e)).getBoundingClientRect();return{width:Math.round(angular.isNumber(t.width)?t.width:e.offsetWidth),height:Math.round(angular.isNumber(t.height)?t.height:e.offsetHeight),top:Math.round(t.top+(u.pageYOffset||l[0].documentElement.scrollTop)),left:Math.round(t.left+(u.pageXOffset||l[0].documentElement.scrollLeft))}},viewportOffset:function(e,t,n){n=!1!==n;var a=(e=this.getRawNode(e)).getBoundingClientRect(),i={top:0,left:0,bottom:0,right:0},t=t?l[0].documentElement:this.scrollParent(e),e=t.getBoundingClientRect();return i.top=e.top+t.clientTop,i.left=e.left+t.clientLeft,t===l[0].documentElement&&(i.top+=u.pageYOffset,i.left+=u.pageXOffset),i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,n&&(e=u.getComputedStyle(t),i.top+=this.parseStyle(e.paddingTop),i.bottom-=this.parseStyle(e.paddingBottom),i.left+=this.parseStyle(e.paddingLeft),i.right-=this.parseStyle(e.paddingRight)),{top:Math.round(a.top-i.top),bottom:Math.round(i.bottom-a.bottom),left:Math.round(a.left-i.left),right:Math.round(i.right-a.right)}},parsePlacement:function(e){var t=c.auto.test(e);return(e=(e=t?e.replace(c.auto,""):e).split("-"))[0]=e[0]||"top",c.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",c.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,t,n,a){e=this.getRawNode(e),t=this.getRawNode(t);var i,o=angular.isDefined(t.offsetWidth)?t.offsetWidth:t.prop("offsetWidth"),r=angular.isDefined(t.offsetHeight)?t.offsetHeight:t.prop("offsetHeight"),l=(n=this.parsePlacement(n),a?this.offset(e):this.position(e)),s={top:0,left:0,placement:""};switch(n[2]&&(a=this.viewportOffset(e),e=u.getComputedStyle(t),t=o+Math.round(Math.abs(this.parseStyle(e.marginLeft)+this.parseStyle(e.marginRight))),e=r+Math.round(Math.abs(this.parseStyle(e.marginTop)+this.parseStyle(e.marginBottom))),n[0]="top"===n[0]&&e>a.top&&e<=a.bottom?"bottom":"bottom"===n[0]&&e>a.bottom&&e<=a.top?"top":"left"===n[0]&&t>a.left&&t<=a.right?"right":"right"===n[0]&&t>a.right&&t<=a.left?"left":n[0],n[1]="top"===n[1]&&e-l.height>a.bottom&&e-l.height<=a.top?"bottom":"bottom"===n[1]&&e-l.height>a.top&&e-l.height<=a.bottom?"top":"left"===n[1]&&t-l.width>a.right&&t-l.width<=a.left?"right":"right"===n[1]&&t-l.width>a.left&&t-l.width<=a.right?"left":n[1],"center"===n[1]&&(c.vertical.test(n[0])?(i=l.width/2-o/2,a.left+i<0&&t-l.width<=a.right?n[1]="left":a.right+i<0&&t-l.width<=a.left&&(n[1]="right")):(i=l.height/2-e/2,a.top+i<0&&e-l.height<=a.bottom?n[1]="top":a.bottom+i<0&&e-l.height<=a.top&&(n[1]="bottom")))),n[0]){case"top":s.top=l.top-r;break;case"bottom":s.top=l.top+l.height;break;case"left":s.left=l.left-o;break;case"right":s.left=l.left+l.width}switch(n[1]){case"top":s.top=l.top;break;case"bottom":s.top=l.top+l.height-r;break;case"left":s.left=l.left;break;case"right":s.left=l.left+l.width-o;break;case"center":c.vertical.test(n[0])?s.left=l.left+l.width/2-o/2:s.top=l.top+l.height/2-r/2}return s.top=Math.round(s.top),s.left=Math.round(s.left),s.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],s},positionArrow:function(e,t){var n=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(n){var a=angular.element(n).hasClass("tooltip-inner"),i=a?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(i)if("center"===(t=this.parsePlacement(t))[1])angular.element(i).css({top:"",bottom:"",right:"",left:"",margin:""});else{var o="border-"+t[0]+"-width",r=u.getComputedStyle(i)[o],o="border-",n=(c.vertical.test(t[0])?o+=t[0]+"-"+t[1]:o+=t[1]+"-"+t[0],o+="-radius",u.getComputedStyle(a?n:e)[o]),l={top:"auto",bottom:"auto",left:"auto",right:"auto",margin:0};switch(t[0]){case"top":l.bottom=a?"0":"-"+r;break;case"bottom":l.top=a?"0":"-"+r;break;case"left":l.right=a?"0":"-"+r;break;case"right":l.left=a?"0":"-"+r}l[t[1]]=n,angular.element(i).css(l)}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","uibDateParser",function(a,n,e,i,o,t,r,l,s,u){var c=this,p={$setViewValue:angular.noop},d={},m=[];this.modes=["day","month","year"],n.datepickerOptions?angular.forEach(["formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","initDate","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"],function(t){switch(t){case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":c[t]=angular.isDefined(a.datepickerOptions[t])?i(a.datepickerOptions[t])(a.$parent):l[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":c[t]=(angular.isDefined(a.datepickerOptions[t])?a.datepickerOptions:l)[t];break;case"startingDay":angular.isDefined(a.datepickerOptions.startingDay)?c.startingDay=a.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?c.startingDay=l.startingDay:c.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":a.datepickerOptions[t]?a.$watch(function(){return a.datepickerOptions[t]},function(e){e?angular.isDate(e)?c[t]=u.fromTimezone(new Date(e),d.timezone):c[t]=new Date(r(e,"medium")):c[t]=null,c.refreshView()}):c[t]=l[t]?u.fromTimezone(new Date(l[t]),d.timezone):null;break;case"maxMode":case"minMode":a.datepickerOptions[t]?a.$watch(function(){return a.datepickerOptions[t]},function(e){c[t]=a[t]=angular.isDefined(e)?e:datepickerOptions[t],("minMode"===t&&c.modes.indexOf(a.datepickerMode)<c.modes.indexOf(c[t])||"maxMode"===t&&c.modes.indexOf(a.datepickerMode)>c.modes.indexOf(c[t]))&&(a.datepickerMode=c[t])}):c[t]=a[t]=l[t]||null;break;case"initDate":a.datepickerOptions.initDate?(this.activeDate=u.fromTimezone(a.datepickerOptions.initDate,d.timezone)||new Date,a.$watch(function(){return a.datepickerOptions.initDate},function(e){e&&(p.$isEmpty(p.$modelValue)||p.$invalid)&&(c.activeDate=u.fromTimezone(e,d.timezone),c.refreshView())})):this.activeDate=new Date}}):(angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle"],function(e){c[e]=angular.isDefined(n[e])?i(n[e])(a.$parent):l[e]}),angular.forEach(["showWeeks","yearRows","yearColumns","shortcutPropagation"],function(e){c[e]=angular.isDefined(n[e])?a.$parent.$eval(n[e]):l[e]}),angular.isDefined(n.startingDay)?c.startingDay=a.$parent.$eval(n.startingDay):angular.isNumber(l.startingDay)?c.startingDay=l.startingDay:c.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7,angular.forEach(["minDate","maxDate"],function(t){n[t]?m.push(a.$parent.$watch(n[t],function(e){e?angular.isDate(e)?c[t]=u.fromTimezone(new Date(e),d.timezone):c[t]=new Date(r(e,"medium")):c[t]=null,c.refreshView()})):c[t]=l[t]?u.fromTimezone(new Date(l[t]),d.timezone):null}),angular.forEach(["minMode","maxMode"],function(t){n[t]?m.push(a.$parent.$watch(n[t],function(e){c[t]=a[t]=angular.isDefined(e)?e:n[t],("minMode"===t&&c.modes.indexOf(a.datepickerMode)<c.modes.indexOf(c[t])||"maxMode"===t&&c.modes.indexOf(a.datepickerMode)>c.modes.indexOf(c[t]))&&(a.datepickerMode=c[t])})):c[t]=a[t]=l[t]||null}),angular.isDefined(n.initDate)?(this.activeDate=u.fromTimezone(a.$parent.$eval(n.initDate),d.timezone)||new Date,m.push(a.$parent.$watch(n.initDate,function(e){e&&(p.$isEmpty(p.$modelValue)||p.$invalid)&&(c.activeDate=u.fromTimezone(e,d.timezone),c.refreshView())}))):this.activeDate=new Date),a.datepickerMode=a.datepickerMode||l.datepickerMode,a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),a.disabled=angular.isDefined(n.disabled)||!1,angular.isDefined(n.ngDisabled)&&m.push(a.$parent.$watch(n.ngDisabled,function(e){a.disabled=e,c.refreshView()})),a.isActive=function(e){return 0===c.compare(e.date,c.activeDate)&&(a.activeDateId=e.uid,!0)},this.init=function(e){d=(p=e).$options||l.ngModelOptions,p.$modelValue&&(this.activeDate=p.$modelValue),p.$render=function(){c.render()}},this.render=function(){var e;p.$viewValue&&(e=new Date(p.$viewValue),!isNaN(e)?this.activeDate=u.fromTimezone(e,d.timezone):s||t.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var e;this.element&&(a.selectedDt=null,this._refreshView(),a.activeDt&&(a.activeDateId=a.activeDt.uid),e=p.$viewValue?new Date(p.$viewValue):null,e=u.fromTimezone(e,d.timezone),p.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e)))},this.createDateObject=function(e,t){var n=p.$viewValue?new Date(p.$viewValue):null,n=u.fromTimezone(n,d.timezone),t={date:e,label:u.filter(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)||null};return n&&0===this.compare(e,n)&&(a.selectedDt=t),c.activeDate&&0===this.compare(t.date,c.activeDate)&&(a.activeDt=t),t},this.isDisabled=function(e){return a.disabled||this.minDate&&this.compare(e,this.minDate)<0||this.maxDate&&0<this.compare(e,this.maxDate)||n.dateDisabled&&a.dateDisabled({date:e,mode:a.datepickerMode})},this.customClass=function(e){return a.customClass({date:e,mode:a.datepickerMode})},this.split=function(e,t){for(var n=[];0<e.length;)n.push(e.splice(0,t));return n},a.select=function(e){var t;a.datepickerMode===c.minMode?((t=p.$viewValue?u.fromTimezone(new Date(p.$viewValue),d.timezone):new Date(0,0,0,0,0,0,0)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t=u.toTimezone(t,d.timezone),p.$setViewValue(t),p.$render()):(c.activeDate=e,a.datepickerMode=c.modes[c.modes.indexOf(a.datepickerMode)-1])},a.move=function(e){var t=c.activeDate.getFullYear()+e*(c.step.years||0),e=c.activeDate.getMonth()+e*(c.step.months||0);c.activeDate.setFullYear(t,e,1),c.refreshView()},a.toggleMode=function(e){e=e||1,a.datepickerMode===c.maxMode&&1===e||a.datepickerMode===c.minMode&&-1===e||(a.datepickerMode=c.modes[c.modes.indexOf(a.datepickerMode)+e])},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};a.$on("uib:datepicker.focus",function(){c.element[0].focus()}),a.keydown=function(e){var t=a.keys[e.which];!t||e.shiftKey||e.altKey||a.disabled||(e.preventDefault(),c.shortcutPropagation||e.stopPropagation(),"enter"===t||"space"===t?c.isDisabled(c.activeDate)||a.select(c.activeDate):!e.ctrlKey||"up"!==t&&"down"!==t?(c.handleKeyDown(t,e),c.refreshView()):a.toggleMode("up"===t?1:-1))},a.$on("$destroy",function(){for(;m.length;)m.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(p,e,d){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function i(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?n[t]:29}this.step={months:1},this.element=e,this.init=function(e){angular.extend(e,this),p.showWeeks=e.showWeeks,e.refreshView()},this.getDates=function(e,t){for(var n,a=new Array(t),i=new Date(e),o=0;o<t;)n=new Date(i),a[o++]=n,i.setDate(i.getDate()+1);return a},this._refreshView=function(){for(var e=this.activeDate.getFullYear(),t=this.activeDate.getMonth(),n=new Date(this.activeDate),e=(n.setFullYear(e,t,1),this.startingDay-n.getDay()),e=0<e?7-e:-e,n=new Date(n),a=(0<e&&n.setDate(1-e),this.getDates(n,42)),i=0;i<42;i++)a[i]=angular.extend(this.createDateObject(a[i],this.formatDay),{secondary:a[i].getMonth()!==t,uid:p.uniqueId+"-"+i});p.labels=new Array(7);for(var o,r,l=0;l<7;l++)p.labels[l]={abbr:d(a[l].date,this.formatDayHeader),full:d(a[l].date,"EEEE")};if(p.title=d(this.activeDate,this.formatDayTitle),p.rows=this.split(a,7),p.showWeeks){p.weekNumbers=[];for(var s=(11-this.startingDay)%7,u=p.rows.length,c=0;c<u;c++)p.weekNumbers.push((o=p.rows[c][s].date,r=void 0,(o=new Date(o)).setDate(o.getDate()+4-(o.getDay()||7)),r=o.getTime(),o.setMonth(0),o.setDate(1),Math.floor(Math.round((r-o)/864e5)/7)+1))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),a.setFullYear(t.getFullYear()),n-a},this.handleKeyDown=function(e,t){var n,a=this.activeDate.getDate();"left"===e?a-=1:"up"===e?a-=7:"right"===e?a+=1:"down"===e?a+=7:"pageup"===e||"pagedown"===e?(n=this.activeDate.getMonth()+("pageup"===e?-1:1),this.activeDate.setMonth(n,1),a=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),a)):"home"===e?a=1:"end"===e&&(a=i(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(a)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(i,e,o){this.step={years:1},this.element=e,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var e,t=new Array(12),n=this.activeDate.getFullYear(),a=0;a<12;a++)(e=new Date(this.activeDate)).setFullYear(n,a,1),t[a]=angular.extend(this.createDateObject(e,this.formatMonth),{uid:i.uniqueId+"-"+a});i.title=o(this.activeDate,this.formatMonthTitle),i.rows=this.split(t,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),a=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),a.setFullYear(t.getFullYear()),n-a},this.handleKeyDown=function(e,t){var n,a=this.activeDate.getMonth();"left"===e?a-=1:"up"===e?a-=3:"right"===e?a+=1:"down"===e?a+=3:"pageup"===e||"pagedown"===e?(n=this.activeDate.getFullYear()+("pageup"===e?-1:1),this.activeDate.setFullYear(n)):"home"===e?a=0:"end"===e&&(a=11),this.activeDate.setMonth(a)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(i,e,t){var o,r;function l(e){return parseInt((e-1)/r,10)*r+1}this.element=e,this.yearpickerInit=function(){o=this.yearColumns,r=this.yearRows*o,this.step={years:r}},this._refreshView=function(){for(var e,t=new Array(r),n=0,a=l(this.activeDate.getFullYear());n<r;n++)(e=new Date(this.activeDate)).setFullYear(a+n,0,1),t[n]=angular.extend(this.createDateObject(e,this.formatYear),{uid:i.uniqueId+"-"+n});i.title=[t[0].label,t[r-1].label].join(" - "),i.rows=this.split(t,o),i.columns=o},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=o:"right"===e?n+=1:"down"===e?n+=o:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*r:"home"===e?n=l(this.activeDate.getFullYear()):"end"===e&&(n=l(this.activeDate.getFullYear())+r-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",datepickerOptions:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,a){var i=a[0],a=a[1];i.init(a)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,n,a){var i=a[0];a[1].init(i)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,n,a){var i=a[0];a[1].init(i)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,n,a){var i=a[0];angular.extend(i,a[1]),i.yearpickerInit(),i.refreshView()}}}).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepicker/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig",function(i,a,o,t,r,n,l,s,u,c,p,d,m){var f,h,g,b,v,y,$,w,D,k,x,M,C={},T=!1,O=[];function S(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function E(e){var t=c.parse(e,f,i.date);if(isNaN(t))for(var n=0;n<M.length;n++)if(t=c.parse(e,M[n],i.date),!isNaN(t))return t;return t}function P(e){if(!(e=angular.isNumber(e)?new Date(e):e))return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=E(e);if(!isNaN(t))return c.toTimezone(t,k.timezone)}return D.$options&&D.$options.allowInvalid?e:void 0}function I(e,t){e=e||t;return!o.ngRequired&&!e||(!(e=angular.isNumber(e)?new Date(e):e)||(!(!angular.isDate(e)||isNaN(e))||!!angular.isString(e)&&!isNaN(E(t))))}function U(e){var t,n;!i.isOpen&&i.disabled||(n=x[0],t=a[0].contains(e.target),n=void 0!==n.contains&&n.contains(e.target),!i.isOpen||t||n||i.$apply(function(){i.isOpen=!1}))}function A(e){27===e.which&&i.isOpen?(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!1}),a[0].focus()):40!==e.which||i.isOpen||(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!0}))}i.watchData={},this.init=function(e){if(k=(D=e).$options||m.ngModelOptions,h=angular.isDefined(o.closeOnDateSelection)?i.$parent.$eval(o.closeOnDateSelection):p.closeOnDateSelection,g=angular.isDefined(o.datepickerAppendToBody)?i.$parent.$eval(o.datepickerAppendToBody):p.appendToBody,b=angular.isDefined(o.onOpenFocus)?i.$parent.$eval(o.onOpenFocus):p.onOpenFocus,v=(angular.isDefined(o.datepickerPopupTemplateUrl)?o:p).datepickerPopupTemplateUrl,y=(angular.isDefined(o.datepickerTemplateUrl)?o:p).datepickerTemplateUrl,M=angular.isDefined(o.altInputFormats)?i.$parent.$eval(o.altInputFormats):p.altInputFormats,i.showButtonBar=angular.isDefined(o.showButtonBar)?i.$parent.$eval(o.showButtonBar):p.showButtonBar,p.html5Types[o.type]?(f=p.html5Types[o.type],T=!0):(f=o.uibDatepickerPopup||p.datepickerPopup,o.$observe("uibDatepickerPopup",function(e,t){e=e||p.datepickerPopup;if(e!==f&&(f=e,D.$modelValue=null,!f))throw new Error("uibDatepickerPopup must have a date format specified.")})),!f)throw new Error("uibDatepickerPopup must have a date format specified.");if(T&&o.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");$=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),i.ngModelOptions=angular.copy(k),i.ngModelOptions.timezone=null,$.attr({"ng-model":"date","ng-model-options":"ngModelOptions","ng-change":"dateSelection(date)","template-url":v}),(w=angular.element($.children()[0])).attr("template-url",y),T&&"month"===o.type&&(w.attr("datepicker-mode",'"month"'),w.attr("min-mode","month")),i.datepickerOptions&&angular.forEach(i.datepickerOptions,function(e,t){-1===["minDate","maxDate","minMode","maxMode","initDate","datepickerMode"].indexOf(t)?w.attr(S(t),e):w.attr(S(t),"datepickerOptions."+t)}),angular.forEach(["minMode","maxMode","datepickerMode","shortcutPropagation"],function(e){var t,n,a;o[e]&&(t=r(o[e]),n={get:function(){return t(i.$parent)}},w.attr(S(e),"watchData."+e),"datepickerMode"===e&&(a=t.assign,n.set=function(e){a(i.$parent,e)}),Object.defineProperty(i.watchData,e,n))}),angular.forEach(["minDate","maxDate","initDate"],function(t){var e;o[t]&&(e=r(o[t]),O.push(i.$parent.$watch(e,function(e){"minDate"===t||"maxDate"===t?(null===e?C[t]=null:angular.isDate(e)?C[t]=c.fromTimezone(new Date(e),k.timezone):C[t]=new Date(u(e,"medium")),i.watchData[t]=null===e?null:C[t]):i.watchData[t]=c.fromTimezone(new Date(e),k.timezone)})),w.attr(S(t),"watchData."+t))}),o.dateDisabled&&w.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRows","yearColumns"],function(e){angular.isDefined(o[e])&&w.attr(S(e),o[e])}),o.customClass&&w.attr("custom-class","customClass({ date: date, mode: mode })"),T?D.$formatters.push(function(e){return i.date=c.fromTimezone(e,k.timezone),e}):(D.$$parserName="date",D.$validators.date=I,D.$parsers.unshift(P),D.$formatters.push(function(e){return D.$isEmpty(e)?i.date=e:(i.date=c.fromTimezone(e,k.timezone),angular.isNumber(i.date)&&(i.date=new Date(i.date)),c.filter(i.date,f))})),D.$viewChangeListeners.push(function(){i.date=E(D.$viewValue)}),a.on("keydown",A),x=t($)(i),$.remove(),g?n.find("body").append(x):a.after(x),i.$on("$destroy",function(){for(!0!==i.isOpen||l.$$phase||i.$apply(function(){i.isOpen=!1}),x.remove(),a.off("keydown",A),n.off("click",U);O.length;)O.shift()()})},i.getText=function(e){return i[e+"Text"]||p[e+"Text"]},i.isDisabled=function(e){return"today"===e&&(e=new Date),i.watchData.minDate&&i.compare(e,C.minDate)<0||i.watchData.maxDate&&0<i.compare(e,C.maxDate)},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},i.dateSelection=function(e){angular.isDefined(e)&&(i.date=e);e=i.date?c.filter(i.date,f):null;a.val(e),D.$setViewValue(e),h&&(i.isOpen=!1,a[0].focus())},i.keydown=function(e){27===e.which&&(e.stopPropagation(),i.isOpen=!1,a[0].focus())},i.select=function(e){var t;"today"===e&&(t=new Date,angular.isDate(i.date)?(e=new Date(i.date)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):e=new Date(t.setHours(0,0,0,0))),i.dateSelection(e)},i.close=function(){i.isOpen=!1,a[0].focus()},i.disabled=angular.isDefined(o.disabled)||!1,o.ngDisabled&&O.push(i.$parent.$watch(r(o.ngDisabled),function(e){i.disabled=e})),i.$watch("isOpen",function(e){e?i.disabled?i.isOpen=!1:(i.position=g?s.offset(a):s.position(a),i.position.top=i.position.top+a.prop("offsetHeight"),d(function(){b&&i.$broadcast("uib:datepicker.focus"),n.on("click",U)},0,!1)):n.off("click",U)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(e,t,n,a){var i=a[0];a[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(o){return function(n,a){var i;return function(){var e=this,t=Array.prototype.slice.call(arguments);i&&o.cancel(i),i=o(function(){n.apply(e,t)},a)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(t,n){var a=null,i=(this.open=function(e){a||(t.on("click",i),t.on("keydown",o)),a&&a!==e&&(a.isOpen=!1),a=e},this.close=function(e){a===e&&(a=null,t.off("click",i),t.off("keydown",o))},function(e){var t;!a||e&&"disabled"===a.getAutoClose()||e&&3===e.which||(t=a.getToggleElement(),e&&t&&t[0].contains(e.target)||(t=a.getDropdownElement(),e&&"outsideClick"===a.getAutoClose()&&t&&t[0].contains(e.target)||(a.isOpen=!1,n.$$phase||a.$apply())))}),o=function(e){27===e.which?(a.focusToggleElement(),i()):a.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&a.isOpen&&(e.preventDefault(),e.stopPropagation(),a.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(r,l,t,n,e,s,u,c,a,p,d){var m,i,f=this,h=r.$new(),g=e.appendToOpenClass,b=e.openClass,v=angular.noop,y=t.onToggle?n(t.onToggle):angular.noop,$=!1,w=null,o=!1,D=a.find("body");l.addClass("dropdown"),this.init=function(){var e;t.isOpen&&(i=n(t.isOpen),v=i.assign,r.$watch(i,function(e){h.isOpen=!!e})),angular.isDefined(t.dropdownAppendTo)&&(e=n(t.dropdownAppendTo)(h))&&(w=angular.element(e)),$=angular.isDefined(t.dropdownAppendToBody),o=angular.isDefined(t.keyboardNav),(w=$&&!w?D:w)&&f.dropdownMenu&&(w.append(f.dropdownMenu),l.on("$destroy",function(){f.dropdownMenu.remove()}))},this.toggle=function(e){return h.isOpen=arguments.length?!!e:!h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return f.toggleElement},h.getAutoClose=function(){return t.autoClose||"always"},h.getElement=function(){return l},h.isKeynavEnabled=function(){return o},h.focusDropdownEntry=function(e){var t=(f.dropdownMenu?angular.element(f.dropdownMenu):l.find("ul").eq(0)).find("a");switch(e){case 40:angular.isNumber(f.selectedOption)?f.selectedOption=f.selectedOption===t.length-1?f.selectedOption:f.selectedOption+1:f.selectedOption=0;break;case 38:angular.isNumber(f.selectedOption)?f.selectedOption=0===f.selectedOption?0:f.selectedOption-1:f.selectedOption=t.length-1}t[f.selectedOption].focus()},h.getDropdownElement=function(){return f.dropdownMenu},h.focusToggleElement=function(){f.toggleElement&&f.toggleElement[0].focus()},h.$watch("isOpen",function(e,t){w&&f.dropdownMenu&&(a={top:(i=c.positionElements(l,f.dropdownMenu,"bottom-left",!0)).top+"px",display:e?"block":"none"},(o=f.dropdownMenu.hasClass("dropdown-menu-right"))?(a.left="auto",a.right=window.innerWidth-(i.left+l.prop("offsetWidth"))+"px"):(a.left=i.left+"px",a.right="auto"),$||(n=c.offset(w),a.top=i.top-n.top+"px",o?a.right=window.innerWidth-(i.left-n.left+l.prop("offsetWidth"))+"px":a.left=i.left-n.left+"px"),f.dropdownMenu.css(a));var n,a,i,o=w||l;u[e?"addClass":"removeClass"](o,w?g:b).then(function(){angular.isDefined(e)&&e!==t&&y(r,{open:!!e})}),e?(f.dropdownMenuTemplateUrl&&d(f.dropdownMenuTemplateUrl).then(function(e){m=h.$new(),p(e.trim())(m,function(e){f.dropdownMenu.replaceWith(e),f.dropdownMenu=e})}),h.focusToggleElement(),s.open(h)):(f.dropdownMenuTemplateUrl&&(m&&m.$destroy(),i=angular.element('<ul class="dropdown-menu"></ul>'),f.dropdownMenu.replaceWith(i),f.dropdownMenu=i),s.close(h),f.selectedOption=null),angular.isFunction(v)&&v(r,e)}),r.$on("$locationChangeSuccess",function(){"disabled"!==h.getAutoClose()&&(h.isOpen=!1)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,a){a.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,a){a&&!angular.isDefined(n.dropdownNested)&&(t.addClass("dropdown-menu"),(n=n.templateUrl)&&(a.dropdownMenuTemplateUrl=n),a.dropdownMenu||(a.dropdownMenu=t))}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(t,n,a,i){var e;i&&(n.addClass("dropdown-toggle"),(i.toggleElement=n).bind("click",e=function(e){e.preventDefault(),n.hasClass("disabled")||a.disabled||t.$apply(function(){i.toggle()})}),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(e){n.attr("aria-expanded",!!e)}),t.$on("$destroy",function(){n.unbind("click",e)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(e,t){a.push({key:e,value:t})},get:function(e){for(var t=0;t<a.length;t++)if(e===a[t].key)return a[t]},keys:function(){for(var e=[],t=0;t<a.length;t++)e.push(a[t].key);return e},top:function(){return a[a.length-1]},remove:function(e){for(var t=-1,n=0;n<a.length;n++)if(e===a[n].key){t=n;break}return a.splice(t,1)[0]},removeTop:function(){return a.splice(a.length-1,1)[0]},length:function(){return a.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",function(){return{createNew:function(){var a={};return{entries:function(){return Object.keys(a).map(function(e){return{key:e,value:a[e]}})},get:function(e){return a[e]},hasKey:function(e){return!!a[e]},keys:function(){return Object.keys(a)},put:function(e,t){a[e]||(a[e]=[]),a[e].push(t)},remove:function(e,t){var n=a[e];n&&(-1!==(t=n.indexOf(t))&&n.splice(t,1),n.length||delete a[e])}}}}}).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(o,r){var l=e.resolver?o.get(e.resolver):null;return{resolve:function(e,t,n,a){var i;return l?l.resolve(e,t,n,a):(i=[],angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?i.push(r.resolve(o.invoke(e))):angular.isString(e)?i.push(r.resolve(o.get(e))):i.push(r.resolve(e))}),r.all(i).then(function(n){var a={},i=0;return angular.forEach(e,function(e,t){a[t]=n[i++]}),a}))}}}]}).directive("uibModalBackdrop",["$animateCss","$injector","$uibModalStack",function(o,e,t){return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),n}};function n(n,a,i){i.modalInClass&&(o(a,{addClass:i.modalInClass}).start(),n.$on(t.NOW_CLOSING_EVENT,function(e,t){t=t();n.modalOptions.animation?o(a,{removeClass:i.modalInClass}).start().then(t):t()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$animateCss","$document",function(o,r,l,s,u){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(t,n,a){n.addClass(a.windowClass||""),n.addClass(a.windowTopClass||""),t.size=a.size,t.close=function(e){var t=o.getTop();t&&t.value.backdrop&&"static"!==t.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),o.dismiss(t.key,"backdrop click"))},n.on("click",t.close),t.$isRendered=!0;var i=r.defer();a.$observe("modalRender",function(e){"true"===e&&i.resolve()}),i.promise.then(function(){var e=null,e=(a.modalInClass&&(e=s(n,{addClass:a.modalInClass}).start(),t.$on(o.NOW_CLOSING_EVENT,function(e,t){t=t();(s?s(n,{removeClass:a.modalInClass}).start():l.removeClass(n,a.modalInClass)).then(t)})),r.when(e).then(function(){u[0].activeElement&&n[0].contains(u[0].activeElement)||(n[0].querySelector("[autofocus]")||n[0]).focus()}),o.getTop());e&&o.modalRendered(e.key)})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(e,t,n,a,i){i(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap",function(o,l,r,s,u,c,e,t){var p,d,n,m="modal-open",f=t.createNew(),h=e.createNew(),g={NOW_CLOSING_EVENT:"modal.stack.now-closing"};function b(){for(var e=-1,t=f.keys(),n=0;n<t.length;n++)f.get(t[n]).value.backdrop&&(e=n);return e}function a(t,e){var n=f.get(t).value,a=n.appendTo;f.remove(t),i(n.modalDomEl,n.modalScope,function(){var e=n.openedClass||m;h.remove(e,t),a.toggleClass(e,h.hasKey(e)),v(!0)},n.closedDeferred),p&&-1===b()&&(i(p,d,function(){0}),d=p=void 0),e&&e.focus?e.focus():a.focus&&a.focus()}function v(e){var t;0<f.length()&&(t=f.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function i(e,t,n,a){var i,o=null;function r(){r.done||(r.done=!0,l(e,{event:"leave"}).start().then(function(){e.remove(),a&&a.resolve()}),t.$destroy(),n&&n())}t.$broadcast(g.NOW_CLOSING_EVENT,function(){return i||(i=c.defer(),o=i.promise),function(){i.resolve()}}),c.when(o).then(r)}function y(e){if(e.isDefaultPrevented())return e;var t=f.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),u.$apply(function(){g.dismiss(t.key,"escape key press")}));break;case 9:g.loadFocusElementList(t);var n=!1;e.shiftKey?(g.isFocusInFirstItem(e)||g.isModalFocused(e,t))&&(n=g.focusLastFocusableElement()):g.isFocusInLastItem(e)&&(n=g.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}}function $(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}return u.$watch(b,function(e){d&&(d.index=e)}),r.on("keydown",y),u.$on("$destroy",function(){r.off("keydown",y)}),g.open=function(e,t){var n=r[0].activeElement,a=t.openedClass||m,i=(v(!1),f.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,closedDeferred:t.closedDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass,animation:t.animation,appendTo:t.appendTo}),h.put(a,e),t.appendTo),e=b();if(!i.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");0<=e&&!p&&((d=u.$new(!0)).modalOptions=t,d.index=e,(p=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr("backdrop-class",t.backdropClass),t.animation&&p.attr("modal-animation","true"),s(p)(d),o.enter(p,i));e=angular.element('<div uib-modal-window="modal-window"></div>');e.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,"window-top-class":t.windowTopClass,size:t.size,index:f.length()-1,animate:"animate"}).html(t.content),t.animation&&e.attr("modal-animation","true"),o.enter(s(e)(t.scope),i).then(function(){o.addClass(i,a)}),f.top().value.modalDomEl=e,f.top().value.modalOpener=n,g.clearFocusListCache()},g.close=function(e,t){var n=f.get(e);return n&&$(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),a(e,n.value.modalOpener),!0):!n},g.dismiss=function(e,t){var n=f.get(e);return n&&$(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),a(e,n.value.modalOpener),!0):!n},g.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},g.getTop=function(){return f.top()},g.modalRendered=function(e){e=f.get(e);e&&e.value.renderDeferred.resolve()},g.focusFirstFocusableElement=function(){return 0<n.length&&(n[0].focus(),!0)},g.focusLastFocusableElement=function(){return 0<n.length&&(n[n.length-1].focus(),!0)},g.isModalFocused=function(e,t){if(e&&t){t=t.value.modalDomEl;if(t&&t.length)return(e.target||e.srcElement)===t[0]}return!1},g.isFocusInFirstItem=function(e){return 0<n.length&&(e.target||e.srcElement)===n[0]},g.isFocusInLastItem=function(e){return 0<n.length&&(e.target||e.srcElement)===n[n.length-1]},g.clearFocusListCache=function(){n=[]},g.loadFocusElementList=function(e){void 0!==n&&n.length||!e||(e=e.value.modalDomEl)&&e.length&&(n=e[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))},g}]).provider("$uibModal",function(){var v={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(p,i,d,m,f,h,g){var e={};var b=null;return e.getPromiseChain=function(){return b},e.open=function(o){var e,t,n,r=i.defer(),l=i.defer(),s=i.defer(),u=i.defer(),c={result:r.promise,opened:l.promise,closed:s.promise,rendered:u.promise,close:function(e){return g.close(c,e)},dismiss:function(e){return g.dismiss(c,e)}};if((o=angular.extend({},v.options,o)).resolve=o.resolve||{},o.appendTo=o.appendTo||d.find("body").eq(0),o.template||o.templateUrl)return e=i.all([(t=o).template?i.when(t.template):m(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl),h.resolve(o.resolve,{},null,null)]),n=b=i.all([b]).then(a,a).then(function(e){var t=o.scope||p,n=t.$new();n.$close=c.close,n.$dismiss=c.dismiss,n.$on("$destroy",function(){n.$$uibDestructionScheduled||n.$dismiss("$uibUnscheduledDestruction")});var a,i={};o.controller&&(i.$scope=n,i.$uibModalInstance=c,angular.forEach(e[1],function(e,t){i[t]=e}),a=f(o.controller,i),o.controllerAs&&(o.bindToController&&(a.$close=n.$close,a.$dismiss=n.$dismiss,angular.extend(a,t)),n[o.controllerAs]=a)),g.open(c,{scope:n,deferred:r,renderDeferred:u,closedDeferred:s,content:e[0],animation:o.animation,backdrop:o.backdrop,keyboard:o.keyboard,backdropClass:o.backdropClass,windowTopClass:o.windowTopClass,windowClass:o.windowClass,windowTemplateUrl:o.windowTemplateUrl,size:o.size,openedClass:o.openedClass,appendTo:o.appendTo}),l.resolve(!0)},function(e){l.reject(e),r.reject(e)}).finally(function(){b===n&&(b=null)}),c;throw new Error("One of template or templateUrl options is required.");function a(){return e}},e}]};return v}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(o){return{create:function(n,a,i){n.setNumPages=i.numPages?o(i.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(e,t){n.ngModelCtrl=e,n.config=t,e.$render=function(){n.render()},i.itemsPerPage?n._watchers.push(a.$parent.$watch(o(i.itemsPerPage),function(e){n.itemsPerPage=parseInt(e,10),a.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=t.itemsPerPage,a.$watch("totalItems",function(e,t){!angular.isDefined(e)&&e===t||(a.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var e=n.itemsPerPage<1?1:Math.ceil(a.totalItems/n.itemsPerPage);return Math.max(e||0,1)},n.render=function(){a.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},a.selectPage=function(e,t){t&&t.preventDefault(),(!a.ngDisabled||!t)&&a.page!==e&&0<e&&e<=a.totalPages&&(t&&t.target&&t.target.blur(),n.ngModelCtrl.$setViewValue(e),n.ngModelCtrl.$render())},a.getText=function(e){return a[e+"Text"]||n.config[e+"Text"]},a.noPrevious=function(){return 1===a.page},a.noNext=function(){return a.page===a.totalPages},n.updatePage=function(){n.setNumPages(a.$parent,a.totalPages),a.page>a.totalPages?a.selectPage(a.totalPages):n.ngModelCtrl.$render()},a.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,a){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):a.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(o){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(e,t,n,a){var i=a[0],a=a[1];a&&i.init(a,o)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,a,i){var o=this,s=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):i.maxSize,u=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):i.rotate,c=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):i.forceEllipses,p=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):i.boundaryLinkNumbers;function d(e,t,n){return{number:e,text:t,active:n}}e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):i.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):i.directionLinks,a.create(this,e,t),t.maxSize&&o._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){s=parseInt(e,10),o.render()}));var r=this.render;this.render=function(){r(),0<e.page&&e.page<=e.totalPages&&(e.pages=function(e,t){var n=[],a=1,i=t,o=angular.isDefined(s)&&s<t;o&&(u?t<(i=(a=Math.max(e-Math.floor(s/2),1))+s-1)&&(a=(i=t)-s+1):(a=(Math.ceil(e/s)-1)*s+1,i=Math.min(a+s-1,t)));for(var r=a;r<=i;r++){var l=d(r,r,r===e);n.push(l)}return o&&0<s&&(!u||c||p)&&(1<a&&((!p||3<a)&&(o=d(a-1,"...",!1),n.unshift(o)),p&&(3===a&&(o=d(2,"2",!1),n.unshift(o)),a=d(1,"1",!1),n.unshift(a))),i<t&&((!p||i<t-2)&&(o=d(i+1,"...",!1),n.push(o)),p&&(i===t-2&&(a=d(t-1,t-1,!1),n.push(a)),o=d(t,t,!1),n.push(o)))),n}(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,o){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(e,t,n,a){var i=a[0],a=a[1];a&&i.init(a,o)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var l={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},s={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},u={};this.options=function(e){angular.extend(u,e)},this.setTriggers=function(e){angular.extend(s,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,o,N,H,V,r,t,R,n){var q=n.createNew();function a(e){27===e.which&&(e=q.top())&&(e.value.close(),q.removeTop())}return H.on("keypress",a),t.$on("$destroy",function(){H.off("keypress",a)}),function(I,U,n,A){function F(e){var e=(e||A.trigger||n).split(" "),t=e.map(function(e){return s[e]||e});return{show:e,hide:t}}A=angular.extend({},l,u,A);var e=I.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()}),t=r.startSymbol(),a=r.endSymbol(),i="<div "+e+'-popup title="'+t+"title"+a+'" '+(A.useContentExp?'content-exp="contentExp()" ':'content="'+t+"content"+a+'" ')+'placement="'+t+"placement"+a+'" popup-class="'+t+"popupClass"+a+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block; top: -9999px; left: -9999px;"></div>';return{compile:function(e,t){var P=o(i);return function(n,a,i,e){function t(){o&&o.html()&&(c=c||N(function(){o.css({top:0,left:0});var e=V.positionElements(a,o,f.placement,p),t=(o.css({top:e.top+"px",left:e.left+"px",visibility:"visible"}),A.placementClassPrefix&&o.removeClass("top bottom left right"),o.removeClass(A.placementClassPrefix+"top "+A.placementClassPrefix+"top-left "+A.placementClassPrefix+"top-right "+A.placementClassPrefix+"bottom "+A.placementClassPrefix+"bottom-left "+A.placementClassPrefix+"bottom-right "+A.placementClassPrefix+"left "+A.placementClassPrefix+"left-top "+A.placementClassPrefix+"left-bottom "+A.placementClassPrefix+"right "+A.placementClassPrefix+"right-top "+A.placementClassPrefix+"right-bottom"),e.placement.split("-"));o.addClass(t[0]+" "+A.placementClassPrefix+e.placement),V.positionArrow(o,e.placement),c=null},0,!1))}var o,r,l,s,u,c,p=!!angular.isDefined(A.appendToBody)&&A.appendToBody,d=F(void 0),m=angular.isDefined(i[U+"Enable"]),f=n.$new(!0),h=!1,g=!!angular.isDefined(i[U+"IsOpen"])&&R(i[U+"IsOpen"]),b=!!A.useContentExp&&R(i[I]),v=[];function y(){(f.isOpen?w:$)()}function $(){var e,t;m&&!n.$eval(i[U+"Enable"])||(M(),f.title=i[U+"Title"],f.content=b?b(n):i[I],f.popupClass=i[U+"Class"],f.placement=angular.isDefined(i[U+"Placement"])?i[U+"Placement"]:A.placement,e=parseInt(i[U+"PopupDelay"],10),t=parseInt(i[U+"PopupCloseDelay"],10),f.popupDelay=isNaN(e)?A.popupDelay:e,f.popupCloseDelay=isNaN(t)?A.popupCloseDelay:t,f.popupDelay?s=s||N(D,f.popupDelay,!1):D())}function w(){k(),f.popupCloseDelay?u=u||N(x,f.popupCloseDelay,!1):x()}function D(){if(k(),M(),!f.content)return angular.noop;o||(r=f.$new(),o=P(r,function(e){p?H.find("body").append(e):a.after(e)}),v.length=0,b?(v.push(n.$watch(b,function(e){!(f.content=e)&&f.isOpen&&x()})),v.push(r.$watch(function(){h||(h=!0,r.$$postDigest(function(){h=!1,f&&f.isOpen&&t()}))}))):v.push(i.$observe(I,function(e){(!(f.content=e)&&f.isOpen?x:t)()})),v.push(i.$observe(U+"Title",function(e){f.title=e,f.isOpen&&t()})),v.push(i.$observe(U+"Placement",function(e){f.placement=e||A.placement,f.isOpen&&t()}))),f.$evalAsync(function(){T(f.isOpen=!0),t()})}function k(){s&&(N.cancel(s),s=null),c&&(N.cancel(c),c=null)}function x(){f&&f.$evalAsync(function(){f&&(T(f.isOpen=!1),f.animation?l=l||N(C,150,!1):C())})}function M(){u&&(N.cancel(u),u=null),l&&(N.cancel(l),l=null)}function C(){k(),M(),v.length&&(angular.forEach(v,function(e){e()}),v.length=0),o&&(o.remove(),o=null),r&&(r.$destroy(),r=null)}function T(e){g&&angular.isFunction(g.assign)&&g.assign(n,e)}function O(e){f&&f.isOpen&&o&&(a[0].contains(e.target)||o[0].contains(e.target)||w())}f.origScope=n,f.isOpen=!1,q.add(f,{close:x}),f.contentExp=function(){return f.content},i.$observe("disabled",function(e){e&&k(),e&&f.isOpen&&x()}),g&&n.$watch(g,function(e){f&&!e===f.isOpen&&y()});function S(){d.show.forEach(function(e){"outsideClick"===e?a.off("click",y):(a.off(e,$),a.off(e,y))}),d.hide.forEach(function(e){"outsideClick"===e?H.off("click",O):a.off(e,w)})}E=i[U+"Trigger"],S(),"none"!==(d=F(E)).show&&d.show.forEach(function(e,t){"outsideClick"===e?(a.on("click",y),H.on("click",O)):e===d.hide[t]?a.on(e,y):e&&(a.on(e,$),a.on(d.hide[t],w)),a.on("keypress",function(e){27===e.which&&w()})});var E=n.$eval(i[U+"Animation"]),E=(f.animation=angular.isDefined(E)?!!E:A.animation,U+"AppendToBody"),E=E in i&&void 0===i[E]||n.$eval(i[E]),p=angular.isDefined(E)?E:p;n.$on("$destroy",function(){S(),C(),q.remove(f),f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,a,p,d){return{link:function(e,i,t){function o(){n&&(n.remove(),n=null),r&&(r.$destroy(),r=null),l&&(c.leave(l).then(function(){n=null}),n=l,l=null)}var r,n,l,s=e.$eval(t.tooltipTemplateTranscludeScope),u=0;e.$watch(a.parseAsResourceUrl(t.uibTooltipTemplateTransclude),function(n){var a=++u;n?(d(n,!0).then(function(e){var t;a===u&&(t=s.$new(),e=p(e)(t,function(e){o(),c.enter(e,i)}),l=e,(r=t).$emit("$includeContentLoaded",n))},function(){a===u&&(o(),e.$emit("$includeContentError",n))}),e.$emit("$includeContentRequested",n)):o()}),e.$on("$destroy",o)}}}]).directive("uibTooltipClasses",["$uibPosition",function(i){return{restrict:"A",link:function(e,t,n){var a;e.placement?(a=i.parsePlacement(e.placement),t.addClass(a[0])):t.addClass("top"),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(a,e,t){var i=this,o=angular.isDefined(e.animate)?a.$parent.$eval(e.animate):t.animate;this.bars=[],a.max=(angular.isDefined(a.max)?a:t).max,this.addBar=function(t,e,n){o||e.css({transition:"none"}),this.bars.push(t),t.max=a.max,t.title=n&&angular.isDefined(n.title)?n.title:"progressbar",t.$watch("value",function(e){t.recalculatePercentage()}),t.recalculatePercentage=function(){var e=i.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);100<e&&(t.percent-=e-100)},t.$on("$destroy",function(){e=null,i.removeBar(t)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},a.$watch("max",function(e){i.bars.forEach(function(e){e.max=a.max,e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,a){a.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,a){a.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["1","2","3","4","5"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(t,n,a){var i={$setViewValue:angular.noop};this.init=function(e){(i=e).$render=this.render,i.$formatters.push(function(e){return e=angular.isNumber(e)&&e<<0!==e?Math.round(e):e}),this.stateOn=angular.isDefined(n.stateOn)?t.$parent.$eval(n.stateOn):a.stateOn,this.stateOff=angular.isDefined(n.stateOff)?t.$parent.$eval(n.stateOff):a.stateOff;e=angular.isDefined(n.titles)?t.$parent.$eval(n.titles):a.titles,this.titles=angular.isArray(e)&&0<e.length?e:a.titles,e=angular.isDefined(n.ratingStates)?t.$parent.$eval(n.ratingStates):new Array(angular.isDefined(n.max)?t.$parent.$eval(n.max):a.max);t.range=this.buildTemplateObjects(e)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},t.rate=function(e){!t.readonly&&0<=e&&e<=t.range.length&&(i.$setViewValue(i.$viewValue===e?0:e),i.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=i.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=i.$viewValue}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(e,t,n,a){var i=a[0],a=a[1];i.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var n,a=this,i=a.tabs=e.tabs=[];a.select=function(t){angular.forEach(i,function(e){e.active&&e!==t&&(e.active=!1,e.onDeselect(),t.selectCalled=!1)}),t.active=!0,t.selectCalled||(t.onSelect(),t.selectCalled=!0)},a.addTab=function(e){i.push(e),1===i.length&&!1!==e.active?e.active=!0:e.active?a.select(e):e.active=!1},a.removeTab=function(e){var t=i.indexOf(e);e.active&&1<i.length&&!n&&(e=t===i.length-1?t-1:t+1,a.select(i[e])),i.splice(t,1)},e.$on("$destroy",function(){n=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"uib/template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(o){return{require:"^uibTabset",replace:!0,templateUrl:"uib/template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,e,n,a,i){t.$watch("active",function(e){e&&a.select(t)}),t.disabled=!1,n.disable&&t.$parent.$watch(o(n.disable),function(e){t.disabled=!!e}),t.select=function(){t.disabled||(t.active=!0)},a.addTab(t),t.$on("$destroy",function(){a.removeTab(t)}),t.$transcludeFn=i}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(e,n,t){var a=e.$eval(t.uibTabContentTransclude);a.$transcludeFn(a.$parent,function(e){angular.forEach(e,function(e){var t;(t=e).tagName&&(t.hasAttribute("uib-tab-heading")||t.hasAttribute("data-uib-tab-heading")||t.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===t.tagName.toLowerCase()||"data-uib-tab-heading"===t.tagName.toLowerCase()||"x-uib-tab-heading"===t.tagName.toLowerCase())?a.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(i,e,a,t,n,o,r){var l,s,u=new Date,c=[],p={$setViewValue:angular.noop},d=angular.isDefined(a.meridians)?i.$parent.$eval(a.meridians):r.meridians||o.DATETIME_FORMATS.AMPMS,m=(i.tabindex=angular.isDefined(a.tabindex)?a.tabindex:0,e.removeAttr("tabindex"),this.init=function(e,t){(p=e).$render=this.render,p.$formatters.unshift(function(e){return e?new Date(e):null});var e=t.eq(0),n=t.eq(1),t=t.eq(2);(angular.isDefined(a.mousewheel)?i.$parent.$eval(a.mousewheel):r.mousewheel)&&this.setupMousewheelEvents(e,n,t),(angular.isDefined(a.arrowkeys)?i.$parent.$eval(a.arrowkeys):r.arrowkeys)&&this.setupArrowkeyEvents(e,n,t),i.readonlyInput=angular.isDefined(a.readonlyInput)?i.$parent.$eval(a.readonlyInput):r.readonlyInput,this.setupInputEvents(e,n,t)},r.hourStep),f=(a.hourStep&&c.push(i.$parent.$watch(t(a.hourStep),function(e){m=+e})),r.minuteStep),h=(a.minuteStep&&c.push(i.$parent.$watch(t(a.minuteStep),function(e){f=+e})),c.push(i.$parent.$watch(t(a.min),function(e){e=new Date(e);l=isNaN(e)?void 0:e})),c.push(i.$parent.$watch(t(a.max),function(e){e=new Date(e);s=isNaN(e)?void 0:e})),!1),g=(a.ngDisabled&&c.push(i.$parent.$watch(t(a.ngDisabled),function(e){h=e})),i.noIncrementHours=function(){var e=x(u,60*m);return h||s<e||e<u&&e<l},i.noDecrementHours=function(){var e=x(u,60*-m);return h||e<l||u<e&&s<e},i.noIncrementMinutes=function(){var e=x(u,f);return h||s<e||e<u&&e<l},i.noDecrementMinutes=function(){var e=x(u,-f);return h||e<l||u<e&&s<e},i.noIncrementSeconds=function(){var e=M(u,g);return h||s<e||e<u&&e<l},i.noDecrementSeconds=function(){var e=M(u,-g);return h||e<l||u<e&&s<e},i.noToggleMeridian=function(){return u.getHours()<12?h||x(u,720)>s:h||x(u,-720)<l},r.secondStep);function b(){var e=+i.hours;if(i.showMeridian?0<e&&e<13:0<=e&&e<24)return i.showMeridian&&(12===e&&(e=0),i.meridian===d[1]&&(e+=12)),e}function v(){var e=+i.minutes;return 0<=e&&e<60?e:void 0}function y(e){return null===e?"":angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}function $(e){w(),p.$setViewValue(new Date(u)),D(e)}function w(){p.$setValidity("time",!0),i.invalidHours=!1,i.invalidMinutes=!1,i.invalidSeconds=!1}function D(e){var t,n,a;p.$modelValue?(t=u.getHours(),n=u.getMinutes(),a=u.getSeconds(),i.showMeridian&&(t=0===t||12===t?12:t%12),i.hours="h"===e?t:y(t),"m"!==e&&(i.minutes=y(n)),i.meridian=u.getHours()<12?d[0]:d[1],"s"!==e&&(i.seconds=y(a)),i.meridian=u.getHours()<12?d[0]:d[1]):(i.hours=null,i.minutes=null,i.seconds=null,i.meridian=d[0])}function k(e){u=M(u,e),$()}function x(e,t){return M(e,60*t)}function M(e,t){t=new Date(e.getTime()+1e3*t),e=new Date(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),e}a.secondStep&&c.push(i.$parent.$watch(t(a.secondStep),function(e){g=+e})),i.showSeconds=r.showSeconds,a.showSeconds&&c.push(i.$parent.$watch(t(a.showSeconds),function(e){i.showSeconds=!!e})),i.showMeridian=r.showMeridian,a.showMeridian&&c.push(i.$parent.$watch(t(a.showMeridian),function(e){var t;i.showMeridian=!!e,p.$error.time?(e=b(),t=v(),angular.isDefined(e)&&angular.isDefined(t)&&(u.setHours(e),$())):D()})),this.setupMousewheelEvents=function(e,t,n){function a(e){var t=(e=e.originalEvent?e.originalEvent:e).wheelDelta||-e.deltaY;return e.detail||0<t}e.bind("mousewheel wheel",function(e){h||i.$apply(a(e)?i.incrementHours():i.decrementHours()),e.preventDefault()}),t.bind("mousewheel wheel",function(e){h||i.$apply(a(e)?i.incrementMinutes():i.decrementMinutes()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){h||i.$apply(a(e)?i.incrementSeconds():i.decrementSeconds()),e.preventDefault()})},this.setupArrowkeyEvents=function(e,t,n){e.bind("keydown",function(e){h||(38===e.which?(e.preventDefault(),i.incrementHours(),i.$apply()):40===e.which&&(e.preventDefault(),i.decrementHours(),i.$apply()))}),t.bind("keydown",function(e){h||(38===e.which?(e.preventDefault(),i.incrementMinutes(),i.$apply()):40===e.which&&(e.preventDefault(),i.decrementMinutes(),i.$apply()))}),n.bind("keydown",function(e){h||(38===e.which?(e.preventDefault(),i.incrementSeconds(),i.$apply()):40===e.which&&(e.preventDefault(),i.decrementSeconds(),i.$apply()))})},this.setupInputEvents=function(e,t,n){var a;i.readonlyInput?(i.updateHours=angular.noop,i.updateMinutes=angular.noop,i.updateSeconds=angular.noop):(a=function(e,t,n){p.$setViewValue(null),p.$setValidity("time",!1),angular.isDefined(e)&&(i.invalidHours=e),angular.isDefined(t)&&(i.invalidMinutes=t),angular.isDefined(n)&&(i.invalidSeconds=n)},i.updateHours=function(){var e=b(),t=v();p.$setDirty(),!angular.isDefined(e)||!angular.isDefined(t)||(u.setHours(e),u.setMinutes(t),u<l||s<u)?a(!0):$("h")},e.bind("blur",function(e){p.$setTouched(),null===i.hours||""===i.hours?a(!0):!i.invalidHours&&i.hours<10&&i.$apply(function(){i.hours=y(i.hours)})}),i.updateMinutes=function(){var e=v(),t=b();p.$setDirty(),!angular.isDefined(e)||!angular.isDefined(t)||(u.setHours(t),u.setMinutes(e),u<l||s<u)?a(void 0,!0):$("m")},t.bind("blur",function(e){p.$setTouched(),null===i.minutes?a(void 0,!0):!i.invalidMinutes&&i.minutes<10&&i.$apply(function(){i.minutes=y(i.minutes)})}),i.updateSeconds=function(){var e=0<=(e=+i.seconds)&&e<60?e:void 0;p.$setDirty(),angular.isDefined(e)?(u.setSeconds(e),$("s")):a(void 0,void 0,!0)},n.bind("blur",function(e){!i.invalidSeconds&&i.seconds<10&&i.$apply(function(){i.seconds=y(i.seconds)})}))},this.render=function(){var e=p.$viewValue;isNaN(e)?(p.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((u=e?e:u)<l||s<u?(p.$setValidity("time",!1),i.invalidHours=!0,i.invalidMinutes=!0):w(),D())},i.showSpinners=angular.isDefined(a.showSpinners)?i.$parent.$eval(a.showSpinners):r.showSpinners,i.incrementHours=function(){i.noIncrementHours()||k(60*m*60)},i.decrementHours=function(){i.noDecrementHours()||k(60*-m*60)},i.incrementMinutes=function(){i.noIncrementMinutes()||k(60*f)},i.decrementMinutes=function(){i.noDecrementMinutes()||k(60*-f)},i.incrementSeconds=function(){i.noIncrementSeconds()||k(g)},i.decrementSeconds=function(){i.noDecrementSeconds()||k(-g)},i.toggleMeridian=function(){var e=v(),t=b();i.noToggleMeridian()||(angular.isDefined(e)&&angular.isDefined(t)?k(720*(u.getHours()<12?60:-60)):i.meridian=i.meridian===d[0]?d[1]:d[0])},i.blur=function(){p.$setTouched()},i.$on("$destroy",function(){for(;c.length;)c.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||n.templateUrl},link:function(e,t,n,a){var i=a[0],a=a[1];a&&i.init(a,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var a=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(e){var t=e.match(a);if(t)return{itemName:t[3],source:n(t[4]),viewMapper:n(t[2]||t[1]),modelMapper:n(t[1])};throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+e+'".')}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(l,s,r,N,n,H,u,e,t,V,c,a,i){var p,d,m,f,o,h,g,R=[9,13,27,38,40],b=l.$eval(r.typeaheadMinLength),v=(b||0===b||(b=1),l.$eval(r.typeaheadWaitMs)||0),y=!1!==l.$eval(r.typeaheadEditable),$=(l.$watch(r.typeaheadEditable,function(e){y=!1!==e}),n(r.typeaheadLoading).assign||angular.noop),q=n(r.typeaheadOnSelect),Y=!!angular.isDefined(r.typeaheadSelectOnBlur)&&l.$eval(r.typeaheadSelectOnBlur),w=n(r.typeaheadNoResults).assign||angular.noop,D=r.typeaheadInputFormatter?n(r.typeaheadInputFormatter):void 0,k=!!r.typeaheadAppendToBody&&l.$eval(r.typeaheadAppendToBody),x=r.typeaheadAppendTo?l.$eval(r.typeaheadAppendTo):null,z=!1!==l.$eval(r.typeaheadFocusFirst),L=!!r.typeaheadSelectOnExact&&l.$eval(r.typeaheadSelectOnExact),B=n(r.typeaheadIsOpen).assign||angular.noop,M=l.$eval(r.typeaheadShowHint)||!1,C=n(r.ngModel),j=n(r.ngModel+"($$$p)"),T=i.parse(r.uibTypeahead),O=l.$new(),i=l.$on("$destroy",function(){O.$destroy()}),S=(O.$on("$destroy",i),"typeahead-"+O.$id+"-"+Math.floor(1e4*Math.random())),E="aria-expanded",P=("text"===s.attr("type")&&(E="data-aria-expanded"),s.attr({"aria-autocomplete":"list","aria-owns":S}),s.attr(E,!1),M&&((o=angular.element("<div></div>")).css("position","relative"),s.after(o),(h=s.clone()).attr("placeholder",""),h.val(""),h.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),s.css({position:"relative","vertical-align":"top","background-color":"transparent"}),o.append(h),h.after(s)),angular.element("<div uib-typeahead-popup></div>")),W=(P.attr({id:S,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(r.typeaheadTemplateUrl)&&P.attr("template-url",r.typeaheadTemplateUrl),angular.isDefined(r.typeaheadPopupTemplateUrl)&&P.attr("popup-template-url",r.typeaheadPopupTemplateUrl),function(){M&&h.val("")}),I=function(){O.matches=[],O.activeIdx=-1,s.attr(E,!1),W()},_=function(e){return S+"-option-"+e},G=(O.$watch("activeIdx",function(e){e<0?s.removeAttr("aria-activedescendant"):s.attr("aria-activedescendant",_(e))}),function(e,t){return!!(O.matches.length>t&&e)&&e.toUpperCase()===O.matches[t].label.toUpperCase()}),U=function(i,o){var r={$viewValue:i};$(l,!0),w(l,!1),H.when(T.source(l,r)).then(function(e){var t=i===p.$viewValue;if(t&&m)if(e&&0<e.length){O.activeIdx=z?0:-1,w(l,!1);for(var n,a=O.matches.length=0;a<e.length;a++)r[T.itemName]=e[a],O.matches.push({id:_(a),label:T.viewMapper(O,r),model:e[a]});O.query=i,Z(),s.attr(E,!0),L&&1===O.matches.length&&G(i,0)&&(angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?c(function(){O.select(0,o)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate.default):O.select(0,o)),M&&(n=O.matches[0].label,angular.isString(i)&&0<i.length&&n.slice(0,i.length).toUpperCase()===i.toUpperCase()?h.val(i+n.slice(i.length)):h.val(""))}else I(),w(l,!0);t&&$(l,!1)},function(){I(),$(l,!1),w(l,!0)})},K=(k&&(angular.element(t).on("resize",A),e.find("body").on("scroll",A)),c(function(){O.matches.length&&Z(),O.moveInProgress=!1},200));function A(){O.moveInProgress||(O.moveInProgress=!0,O.$digest()),K()}function Z(){O.position=k?a.offset(s):a.position(s),O.position.top+=s.prop("offsetHeight")}O.moveInProgress=!1,O.query=void 0;function X(){g&&u.cancel(g)}function J(e){s[0]!==e.target&&3!==e.which&&0!==O.matches.length&&(I(),V.$$phase||O.$digest())}I(),O.assignIsOpen=function(e){B(l,e)},O.select=function(e,t){var n,a,i,o={};f=!0,o[T.itemName]=e=O.matches[e].model,n=T.modelMapper(l,o),a=l,i=n,angular.isFunction(C(l))&&d&&d.$options&&d.$options.getterSetter?j(a,{$$$p:i}):C.assign(a,i),p.$setValidity("editable",!0),p.$setValidity("parse",!0),q(l,{$item:e,$model:n,$label:T.viewMapper(l,o),$event:t}),I(),!1!==O.$eval(r.typeaheadFocusOnSelect)&&u(function(){s[0].focus()},0,!1)},s.on("keydown",function(e){var t;if(0!==O.matches.length&&-1!==R.indexOf(e.which))if(-1!==O.activeIdx||9!==e.which&&13!==e.which)switch(e.preventDefault(),e.which){case 9:case 13:O.$apply(function(){angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?c(function(){O.select(O.activeIdx,e)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate.default):O.select(O.activeIdx,e)});break;case 27:e.stopPropagation(),I(),O.$digest();break;case 38:O.activeIdx=(0<O.activeIdx?O.activeIdx:O.matches.length)-1,O.$digest(),(t=P.find("li")[O.activeIdx]).parentNode.scrollTop=t.offsetTop;break;case 40:O.activeIdx=(O.activeIdx+1)%O.matches.length,O.$digest(),(t=P.find("li")[O.activeIdx]).parentNode.scrollTop=t.offsetTop}else I(),O.$digest()}),s.bind("focus",function(e){m=!0,0!==b||p.$viewValue||u(function(){U(p.$viewValue,e)},0)}),s.bind("blur",function(e){Y&&O.matches.length&&-1!==O.activeIdx&&!f&&(f=!0,O.$apply(function(){angular.isObject(O.debounceUpdate)&&angular.isNumber(O.debounceUpdate.blur)?c(function(){O.select(O.activeIdx,e)},O.debounceUpdate.blur):O.select(O.activeIdx,e)})),!y&&p.$error.editable&&(p.$viewValue="",s.val("")),f=m=!1});e.on("click",J),l.$on("$destroy",function(){e.off("click",J),(k||x)&&F.remove(),k&&(angular.element(t).off("resize",A),e.find("body").off("scroll",A)),P.remove(),M&&o.remove()});var F=N(P)(O);k?e.find("body").append(F):x?angular.element(x).eq(0).append(F):s.after(F),this.init=function(e,t){p=e,d=t,O.debounceUpdate=p.$options&&n(p.$options.debounce)(l),p.$parsers.unshift(function(e){var t;return m=!0,0===b||e&&e.length>=b?0<v?(X(),t=e,g=u(function(){U(t)},v)):U(e):($(l,!1),X(),I()),y?e:e?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)}),p.$formatters.push(function(e){var t,n={};return y||p.$setValidity("editable",!0),D?(n.$model=e,D(l,n)):(n[T.itemName]=e,t=T.viewMapper(l,n),n[T.itemName]=void 0,t!==T.viewMapper(l,n)?t:e)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,a){a[2].init(a[0],a[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(i){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(a,e,t){a.templateUrl=t.templateUrl,a.isOpen=function(){var e=0<a.matches.length;return a.assignIsOpen({isOpen:e}),e},a.isActive=function(e){return a.active===e},a.selectActive=function(e){a.active=e},a.selectMatch=function(e,t){var n=a.debounce();angular.isNumber(n)||angular.isObject(n)?i(function(){a.select({activeIdx:e,evt:t})},angular.isNumber(n)?n:n.default):a.select({activeIdx:e,evt:t})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(a,i,o){return{scope:{index:"=",match:"=",query:"="},link:function(t,n,e){e=o(e.templateUrl)(t.$parent)||"uib/template/typeahead/typeahead-match.html";a(e).then(function(e){e=angular.element(e.trim());n.replaceWith(e),i(e)(t)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,e,a){var i;return i=e.has("$sanitize"),function(e,t){return!i&&/<.*>/g.test(e)&&a.warn("Unsafe use of typeahead please use ngSanitize"),e=t?(""+e).replace(new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):e,e=i?e:n.trustAsHtml(e)}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-weeks" ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default btn-sm"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-months" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/popup.html",'<div>\n <ul class="uib-datepicker-popup dropdown-menu" dropdown-nested ng-if="isOpen" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" class="uib-button-bar">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close()">{{ getText(\'close\') }}</button>\n </li>\n </ul>\n</div>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-years" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value || 0}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end role="checkbox" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-checked=\'{{$index < value}}\' value="{{$index + 1}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}" class="uib-tab">\n <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td> </td>\n <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n </td>\n <td class="uib-separator">:</td>\n <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n </td>\n <td ng-show="showSeconds" class="uib-separator">:</td>\n <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n <input style="width:50px;" type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n </td>\n <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td> </td>\n <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n tabindex="-1"\n ng-bind-html="match.label | uibTypeaheadHighlight:query"\n ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-datepicker-popup.dropdown-menu{display:block;}.uib-button-bar{padding:10px 9px 2px;}</style>')}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>')}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>')}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function f(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Pt(e,t,n,s,!0).utc()}function m(e){return null==e._pf&&(e._pf={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}),e._pf}function A(e){if(null==e._isValid){var t=m(e),n=j.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&&n);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 I(e){var t=l(NaN);return null!=e?E(m(t),e):m(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=f.momentProperties=[],z=!1;function $(e,t){var n,s,i,r=Z.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=m(t)),o(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)o(i=t[s=Z[n]])||(e[s]=i);return e}function q(e){$(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,f.updateOffset(this),z=!1)}function h(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function B(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function d(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=d(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,s),ne.lastIndex=0,--n;return e}var oe={};function t(e,t){var n=e.toLowerCase();oe[n]=oe[n+"s"]=oe[t]=e}function _(e){return"string"==typeof e?oe[e]||oe[e.toLowerCase()]:void 0}function ue(e){var t,n,s={};for(n in e)c(e,n)&&(t=_(n))&&(s[t]=e[n]);return s}var le={};function n(e,t){le[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?y(e):t}function de(t,n){return function(e){return null!=e?(fe(this,t,e),f.updateOffset(this,n),this):ce(this,t)}}function ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=g(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),We(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,w=/\d\d/,me=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,p=/\d\d?/,ge=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,pe=/\d{1,3}/,ke=/\d{1,4}/,ve=/[+-]?\d{1,6}/,Me=/\d+/,De=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,Ye=/Z|[+-]\d\d(?::?\d\d)?/gi,k=/[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;function v(e,n,s){be[e]=d(n)?n:function(e,t){return e&&s?s:n}}function Oe(e,t){return c(be,e)?be[e](t._strict,t._locale):new RegExp(M(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function M(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var be={},xe={};function D(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),u(n)&&(i=function(e,t){t[n]=g(e)}),s=e.length,t=0;t<s;t++)xe[e[t]]=i}function Te(e,i){D(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var S,Y=0,O=1,b=2,x=3,T=4,N=5,Ne=6,Pe=7,Re=8;function We(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},s("M",["MM",2],"Mo",function(){return this.month()+1}),s("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),s("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),v("M",p),v("MM",p,w),v("MMM",function(e,t){return t.monthsShortRegex(e)}),v("MMMM",function(e,t){return t.monthsRegex(e)}),D(["M","MM"],function(e,t){t[O]=g(e)-1}),D(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[O]=s:m(n).invalidMonth=e});var Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ue="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=k,Le=k;function Ve(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=g(t);else if(!u(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),We(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ge(e){return null!=e?(Ve(this,e),f.updateOffset(this,!0),this):ce(this,"Month")}function Ee(){function e(e,t){return t.length-e.length}for(var t,n=[],s=[],i=[],r=0;r<12;r++)t=l([2e3,r]),n.push(this.monthsShort(t,"")),s.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),s.sort(e),i.sort(e),r=0;r<12;r++)n[r]=M(n[r]),s[r]=M(s[r]);for(r=0;r<24;r++)i[r]=M(i[r]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ae(e){return he(e)?366:365}s("Y",0,0,function(){var e=this.year();return e<=9999?r(e,4):"+"+e}),s(0,["YY",2],0,function(){return this.year()%100}),s(0,["YYYY",4],0,"year"),s(0,["YYYYY",5],0,"year"),s(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),v("Y",De),v("YY",p,w),v("YYYY",ke,_e),v("YYYYY",ve,ye),v("YYYYYY",ve,ye),D(["YYYYY","YYYYYY"],Y),D("YYYY",function(e,t){t[Y]=2===e.length?f.parseTwoDigitYear(e):g(e)}),D("YY",function(e,t){t[Y]=f.parseTwoDigitYear(e)}),D("Y",function(e,t){t[Y]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return g(e)+(68<g(e)?1900:2e3)};var Ie=de("FullYear",!0);function je(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function Ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){n=7+t-n;return n-(7+Ze(e,0,n).getUTCDay()-t)%7-1}function $e(e,t,n,s,i){var r,t=1+7*(t-1)+(7+n-s)%7+ze(e,s,i),n=t<=0?Ae(r=e-1)+t:t>Ae(e)?(r=e+1,t-Ae(e)):(r=e,t);return{year:r,dayOfYear:n}}function qe(e,t,n){var s,i,r=ze(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+P(i=e.year()-1,t,n):r>P(e.year(),t,n)?(s=r-P(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function P(e,t,n){var s=ze(e,t,n),t=ze(e+1,t,n);return(Ae(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),v("w",p),v("ww",p,w),v("W",p),v("WW",p,w),Te(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=g(e)});function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),v("d",p),v("e",p),v("E",p),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),Te(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:m(n).invalidWeekday=e}),Te(["d","e","E"],function(e,t,n,s){t[s]=g(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=k,et=k,tt=k;function nt(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=M(this.weekdaysMin(s,"")),n=M(this.weekdaysShort(s,"")),s=M(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function st(){return this.hours()%12||12}function it(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,st),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+st.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+st.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),it("a",!0),it("A",!1),t("hour","h"),n("hour",13),v("a",rt),v("A",rt),v("H",p),v("h",p),v("k",p),v("HH",p,w),v("hh",p,w),v("kk",p,w),v("hmm",ge),v("hmmss",we),v("Hmm",ge),v("Hmmss",we),D(["H","HH"],x),D(["k","kk"],function(e,t,n){e=g(e);t[x]=24===e?0:e}),D(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),D(["h","hh"],function(e,t,n){t[x]=g(e),m(n).bigHour=!0}),D("hmm",function(e,t,n){var s=e.length-2;t[x]=g(e.substr(0,s)),t[T]=g(e.substr(s)),m(n).bigHour=!0}),D("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[x]=g(e.substr(0,s)),t[T]=g(e.substr(s,2)),t[N]=g(e.substr(i)),m(n).bigHour=!0}),D("Hmm",function(e,t,n){var s=e.length-2;t[x]=g(e.substr(0,s)),t[T]=g(e.substr(s))}),D("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[x]=g(e.substr(0,s)),t[T]=g(e.substr(s,2)),t[N]=g(e.substr(i))});k=de("Hours",!0);var at,ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Ce,monthsShort:Ue,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Xe,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},R={},ut={};function lt(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=lt(e[r]).split("-")).length,n=(n=lt(e[r+1]))?n.split("-"):null;0<t;){if(s=dt(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return at}function dt(t){var e;if(void 0===R[t]&&"undefined"!=typeof module&&module&&module.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,require("./locale/"+t),ct(e)}catch(e){R[t]=null}return R[t]}function ct(e,t){return e&&((t=o(t)?mt(e):ft(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null===t)return delete R[e],null;var n,s=ot;if(t.abbr=e,null!=R[e])Q("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."),s=R[e]._config;else if(null!=t.parentLocale)if(null!=R[t.parentLocale])s=R[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;s=n._config}return R[e]=new K(X(s,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),ct(e),R[e]}function mt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!a(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function _t(e){var t=e._a;return t&&-2===m(e).overflow&&(t=t[O]<0||11<t[O]?O:t[b]<1||t[b]>We(t[Y],t[O])?b:t[x]<0||24<t[x]||24===t[x]&&(0!==t[T]||0!==t[N]||0!==t[Ne])?x:t[T]<0||59<t[T]?T:t[N]<0||59<t[N]?N:t[Ne]<0||999<t[Ne]?Ne:-1,m(e)._overflowDayOfYear&&(t<Y||b<t)&&(t=b),m(e)._overflowWeeks&&-1===t&&(t=Pe),m(e)._overflowWeekday&&-1===t&&(t=Re),m(e).overflow=t),e}var yt=/^\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)?)?$/,gt=/^\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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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]],kt=[["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/]],vt=/^\/?Date\((-?\d+)/i,Mt=/^(?:(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}))$/,Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o),o=pt.length,l=kt.length;if(u){for(m(e).iso=!0,t=0,n=o;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],s=!1!==pt[t][2];break}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){r=(u[2]||" ")+kt[t][0];break}if(null==r)return void(e._isValid=!1)}if(s||null==r){if(u[4]){if(!wt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Tt(e)}else e._isValid=!1}}else e._isValid=!1}function Yt(e,t,n,s,i,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Ue.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e}function Ot(e){var t,n,s,i,r=Mt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));r?(t=Yt(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],s=t,i=e,n&&Qe.indexOf(n)!==new Date(s[0],s[1],s[2]).getDay()?(m(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=r[8],s=r[9],i=r[10],n?Dt[n]:s?0:60*(((n=parseInt(i,10))-(s=n%100))/100)+s),e._d=Ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0)):e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,s,i,r,a,o,u,l,h,d,c=[];if(!e._d){for(s=e,i=new Date(f.now()),n=s._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[b]&&null==e._a[O]&&(null!=(i=(s=e)._w).GG||null!=i.W||null!=i.E?(u=1,l=4,r=bt(i.GG,s._a[Y],qe(W(),1,4).year),a=bt(i.W,1),((o=bt(i.E,1))<1||7<o)&&(h=!0)):(u=s._locale._week.dow,l=s._locale._week.doy,d=qe(W(),u,l),r=bt(i.gg,s._a[Y],d.year),a=bt(i.w,d.week),null!=i.d?((o=i.d)<0||6<o)&&(h=!0):null!=i.e?(o=i.e+u,(i.e<0||6<i.e)&&(h=!0)):o=u),a<1||a>P(r,u,l)?m(s)._overflowWeeks=!0:null!=h?m(s)._overflowWeekday=!0:(d=$e(r,a,o,u,l),s._a[Y]=d.year,s._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[Y],n[Y]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),h=Ze(i,0,e._dayOfYear),e._a[O]=h.getUTCMonth(),e._a[b]=h.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[x]&&0===e._a[T]&&0===e._a[N]&&0===e._a[Ne]&&(e._nextDay=!0,e._a[x]=0),e._d=(e._useUTC?Ze:je).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[x]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function Tt(e){if(e._f===f.ISO_8601)St(e);else if(e._f===f.RFC_2822)Ot(e);else{e._a=[],m(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],h=l.length,d=0;d<h;d++)n=l[d],(t=(a.match(Oe(n,e))||[])[0])&&(0<(s=a.substr(0,a.indexOf(t))).length&&m(e).unusedInput.push(s),a=a.slice(a.indexOf(t)+t.length),u+=t.length),ie[n]?(t?m(e).empty=!1:m(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(xe,s)&&xe[s](i,r._a,r,s)):e._strict&&!t&&m(e).unusedTokens.push(n);m(e).charsLeftOver=o-u,0<a.length&&m(e).unusedInput.push(a),e._a[x]<=12&&!0===m(e).bigHour&&0<e._a[x]&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[x]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[x],e._meridiem),null!==(o=m(e).era)&&(e._a[Y]=e._locale.erasConvertYear(o,e._a[Y])),xt(e),_t(e)}}function Nt(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||mt(e._l),null===i||void 0===r&&""===i)return I({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),h(i))return new q(_t(i));if(V(i))e._d=i;else if(a(r))!function(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<u;i++)r=0,a=!1,t=$({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Tt(t),A(t)&&(a=!0),r=(r+=m(t).charsLeftOver)+10*m(t).unusedTokens.length,m(t).score=r,o?r<s&&(s=r,n=t):(null==s||r<s||a)&&(s=r,n=t,a&&(o=!0));E(e,n||t)}(e);else if(r)Tt(e);else if(o(r=(i=e)._i))i._d=new Date(f.now());else V(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null!==(t=vt.exec(n._i))?n._d=new Date(+t[1]):(St(n),!1===n._isValid&&(delete n._isValid,Ot(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:f.createFromInputFallback(n))))):a(r)?(i._a=G(r.slice(0),function(e){return parseInt(e,10)}),xt(i)):F(r)?(t=i)._d||(s=void 0===(n=ue(t._i)).day?n.date:n.day,t._a=G([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),xt(t)):u(r)?i._d=new Date(r):f.createFromInputFallback(i);return A(e)||(e._d=null),e}function Pt(e,t,n,s,i){var r={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(F(e)&&L(e)||a(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(i=new q(_t(Nt(i=r))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function W(e,t,n,s){return Pt(e,t,n,s,!1)}f.createFromInputFallback=e("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":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};ge=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:I()});function Rt(e,t){var n,s;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return W();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var e=ue(e),t=e.year||0,n=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Wt.length;for(t in e)if(c(e,t)&&(-1===S.call(Wt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Wt[n]]){if(s)return!1;parseFloat(e[Wt[n]])!==g(e[Wt[n]])&&(s=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*o+1e3*a*60*60,this._days=+r+7*i,this._months=+s+3*n+12*t,this._data={},this._locale=mt(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){s(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),v("Z",Ye),v("ZZ",Ye),D(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(Ye,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+g(e[2]))?0:"+"===e[0]?t:-t}function Gt(e,t){var n;return t._isUTC?(t=t.clone(),n=(h(e)||V(e)?e:W(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),f.updateOffset(t,!1),t):W(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}f.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var n,s=e,i=null;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(i=It.exec(e))?(n="-"===i[1]?-1:1,s={y:0,d:g(i[b])*n,h:g(i[x])*n,m:g(i[T])*n,s:g(i[N])*n,ms:g(Ht(1e3*i[Ne]))*n}):(i=jt.exec(e))?(n="-"===i[1]?-1:1,s={y:Zt(i[2],n),M:Zt(i[3],n),w:Zt(i[4],n),d:Zt(i[5],n),h:Zt(i[6],n),m:Zt(i[7],n),s:Zt(i[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(W(s.from),W(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),i=new Ct(s),Ut(e)&&c(e,"_locale")&&(i._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(i._isValid=e._isValid),i}function Zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,C(e,t),s),this}}function qt(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ve(e,ce(e,"Month")+t*n),r&&fe(e,"Date",ce(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&f.updateOffset(e,r||t))}C.fn=Ct.prototype,C.invalid=function(){return C(NaN)};Ce=$t(1,"add"),Je=$t(-1,"subtract");function Bt(e){return"string"==typeof e||e instanceof String}function Jt(e){return h(e)||V(e)||Bt(e)||u(e)||function(t){var e=a(t),n=!1;e&&(n=0===t.filter(function(e){return!u(e)&&Bt(t)}).length);return e&&n}(e)||function(e){var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i}(e)||null==e}function Qt(e,t){if(e.date()<t.date())return-Qt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months"),t=t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s);return-(n+t)||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=mt(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Xe=e("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)});function Kt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function an(){for(var e=[],t=[],n=[],s=[],i=this.eras(),r=0,a=i.length;r<a;++r)t.push(M(i[r].name)),e.push(M(i[r].abbr)),n.push(M(i[r].narrow)),s.push(M(i[r].name)),s.push(M(i[r].abbr)),s.push(M(i[r].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function on(e,t){s(0,[e,e.length],0,t)}function un(e,t,n,s,i){var r;return null==e?qe(this,s,i).year:(r=P(e,s,i),function(e,t,n,s,i){e=$e(e,t,n,s,i),t=Ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,s,i))}s("N",0,0,"eraAbbr"),s("NN",0,0,"eraAbbr"),s("NNN",0,0,"eraAbbr"),s("NNNN",0,0,"eraName"),s("NNNNN",0,0,"eraNarrow"),s("y",["y",1],"yo","eraYear"),s("y",["yy",2],0,"eraYear"),s("y",["yyy",3],0,"eraYear"),s("y",["yyyy",4],0,"eraYear"),v("N",rn),v("NN",rn),v("NNN",rn),v("NNNN",function(e,t){return t.erasNameRegex(e)}),v("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),D(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?m(n).era=s:m(n).invalidEra=e}),v("y",Me),v("yy",Me),v("yyy",Me),v("yyyy",Me),v("yo",function(e,t){return t._eraYearOrdinalRegex||Me}),D(["y","yy","yyy","yyyy"],Y),D(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Y]=n._locale.eraYearOrdinalParse(e,i):t[Y]=parseInt(e,10)}),s(0,["gg",2],0,function(){return this.weekYear()%100}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),v("G",De),v("g",De),v("GG",p,w),v("gg",p,w),v("GGGG",ke,_e),v("gggg",ke,_e),v("GGGGG",ve,ye),v("ggggg",ve,ye),Te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=g(e)}),Te(["gg","GG"],function(e,t,n,s){t[s]=f.parseTwoDigitYear(e)}),s("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),v("Q",i),D("Q",function(e,t){t[O]=3*(g(e)-1)}),s("D",["DD",2],"Do","date"),t("date","D"),n("date",9),v("D",p),v("DD",p,w),v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),D(["D","DD"],b),D("Do",function(e,t){t[b]=g(e.match(p)[0])});ke=de("Date",!0);s("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),v("DDD",pe),v("DDDD",me),D(["DDD","DDDD"],function(e,t,n){n._dayOfYear=g(e)}),s("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),v("m",p),v("mm",p,w),D(["m","mm"],T);var ln,_e=de("Minutes",!1),ve=(s("s",["ss",2],0,"second"),t("second","s"),n("second",15),v("s",p),v("ss",p,w),D(["s","ss"],N),de("Seconds",!1));for(s("S",0,0,function(){return~~(this.millisecond()/100)}),s(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond()}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),v("S",pe,i),v("SS",pe,w),v("SSS",pe,me),ln="SSSS";ln.length<=9;ln+="S")v(ln,Me);function hn(e,t){t[Ne]=g(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")D(ln,hn);ye=de("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName");i=q.prototype;function dn(e){return e}i.add=Ce,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||W(),n=Gt(e,this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",t=t&&(d(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,W(e)))},i.clone=function(){return new q(this)},i.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=_(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:y(r)},i.endOf=function(e){var t,n;if(void 0===(e=_(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this},i.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=re(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(h(e)&&e.isValid()||W(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(W(),e)},i.to=function(e,t){return this.isValid()&&(h(e)&&e.isValid()||W(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(W(),e)},i.get=function(e){return d(this[e=_(e)])?this[e]():this},i.invalidAt=function(){return m(this).overflow},i.isAfter=function(e,t){return e=h(e)?e:W(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=_(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=h(e)?e:W(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=_(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,s){return e=h(e)?e:W(e),t=h(t)?t:W(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&(("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n)))},i.isSame=function(e,t){var e=h(e)?e:W(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=_(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return A(this)},i.lang=Xe,i.locale=Xt,i.localeData=Kt,i.max=we,i.min=ge,i.parsingFlags=function(){return E({},m(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:le[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else if(d(this[e=_(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0===(e=_(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3);break}return this._d.setTime(t),f.updateOffset(this,!0),this},i.subtract=Je,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){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()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):d(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-f(n[s].since).year())*e+n[s].offset;return this.year()},i.year=Ie,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ge,i.daysInMonth=function(){return We(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return P(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return P(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return P(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return P(this.isoWeekYear(),1,4)},i.date=ke,i.day=i.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},i.weekday=function(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")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=k,i.minute=i.minutes=_e,i.second=i.seconds=ve,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(Ye,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?qt(this,C(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(Se,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?W(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=At,i.isUTC=At,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",ke),i.months=e("months accessor is deprecated. Use month instead",Ge),i.years=e("years accessor is deprecated. Use year instead",Ie),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return $(t,this),(t=Nt(t))._a?(e=(t._isUTC?l:W)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&g(e[a])!==g(t[a]))&&r++;return r+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});w=K.prototype;function cn(e,t,n,s){var i=mt(),s=l().set(s,t);return i[n](s,e)}function fn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=cn(e,i,n,"month");return s}function mn(e,t,n,s){t=("boolean"==typeof e?u(t)&&(n=t,t=void 0):(t=e,e=!1,u(n=t)&&(n=t,t=void 0)),t||"");var i,r=mt(),a=e?r._week.dow:0,o=[];if(null!=n)return cn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o}w.calendar=function(e,t,n){return d(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},w.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},w.invalidDate=function(){return this._invalidDate},w.ordinal=function(e){return this._ordinal.replace("%d",e)},w.preparse=dn,w.postformat=dn,w.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return d(i)?i(e,t,n,s):i.replace(/%d/i,e)},w.pastFuture=function(e,t){return d(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},w.set=function(e){var t,n;for(n in e)c(e,n)&&(d(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},w.eras=function(e,t){for(var n,s=this._eras||mt("en")._eras,i=0,r=s.length;i<r;++i){switch(typeof s[i].since){case"string":n=f(s[i].since).startOf("day"),s[i].since=n.valueOf();break}switch(typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=f(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf();break}}return s},w.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s];break}else if(0<=[r,a,o].indexOf(e))return u[s]},w.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*n},w.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},w.erasNameRegex=function(e){return c(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},w.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},w.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},w.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},w.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},w.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},w.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},w.week=function(e){return qe(e,this._week.dow,this._week.doy).week},w.firstDayOfYear=function(){return this._week.doy},w.firstDayOfWeek=function(){return this._week.dow},w.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Be(t,this._week.dow):e?t[e.day()]:t},w.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},w.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},w.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},w.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},w.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},w.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},w.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},w.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("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;return e+(1===g(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",ct),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",mt);var _n=Math.abs;function yn(e,t,n,s){t=C(t,n);return e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function pn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}pe=kn("ms"),me=kn("s"),Ce=kn("m"),we=kn("h"),ge=kn("d"),Je=kn("w"),k=kn("M"),_e=kn("Q"),ve=kn("y");function vn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=vn("milliseconds"),ke=vn("seconds"),Ie=vn("minutes"),w=vn("hours"),Mn=vn("days"),Dn=vn("months"),Sn=vn("years");var Yn=Math.round,On={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bn(e,t,n,s){var i=C(e).abs(),r=Yn(i.as("s")),a=Yn(i.as("m")),o=Yn(i.as("h")),u=Yn(i.as("d")),l=Yn(i.as("M")),h=Yn(i.as("w")),i=Yn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return(r=(r=null!=n.w?r||h<=1&&["w"]||h<n.w&&["ww",h]:r)||l<=1&&["M"]||l<n.M&&["MM",l]||i<=1&&["y"]||["yy",i])[2]=t,r[3]=0<+e,r[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,r)}var xn=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function Nn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o=xn(this._milliseconds)/1e3,u=xn(this._days),l=xn(this._months),h=this.asSeconds();return h?(e=y(o/60),t=y(e/60),o%=60,e%=60,n=y(l/12),l%=12,s=o?o.toFixed(3).replace(/\.?0+$/,""):"",i=Tn(this._months)!==Tn(h)?"-":"",r=Tn(this._days)!==Tn(h)?"-":"",a=Tn(this._milliseconds)!==Tn(h)?"-":"",(h<0?"-":"")+"P"+(n?i+n+"Y":"")+(l?i+l+"M":"")+(u?r+u+"D":"")+(t||e||o?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(o?a+s+"S":"")):"P0D"}var U=Ct.prototype;return U.isValid=function(){return this._isValid},U.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},U.add=function(e,t){return yn(this,e,t,1)},U.subtract=function(e,t){return yn(this,e,t,-1)},U.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=_(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},U.asMilliseconds=pe,U.asSeconds=me,U.asMinutes=Ce,U.asHours=we,U.asDays=ge,U.asWeeks=Je,U.asMonths=k,U.asQuarters=_e,U.asYears=ve,U.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12):NaN},U._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(pn(n)+t),n=t=0),s.milliseconds=e%1e3,e=y(e/1e3),s.seconds=e%60,e=y(e/60),s.minutes=e%60,e=y(e/60),s.hours=e%24,t+=y(e/24),n+=e=y(wn(t)),t-=gn(pn(e)),e=y(n/12),n%=12,s.days=t,s.months=n,s.years=e,this},U.clone=function(){return C(this)},U.get=function(e){return e=_(e),this.isValid()?this[e+"s"]():NaN},U.milliseconds=ye,U.seconds=ke,U.minutes=Ie,U.hours=w,U.days=Mn,U.weeks=function(){return y(this.days()/7)},U.months=Dn,U.years=Sn,U.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=On;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},On,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),e=this.localeData(),t=bn(this,!n,s,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},U.toISOString=Nn,U.toString=Nn,U.toJSON=Nn,U.locale=Xt,U.localeData=Kt,U.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),U.lang=Xe,s("X",0,0,"unix"),s("x",0,0,"valueOf"),v("x",De),v("X",/[+-]?\d+(\.\d{1,3})?/),D("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),D("x",function(e,t,n){n._d=new Date(g(e))}),f.version="2.29.4",H=W,f.fn=i,f.min=function(){return Rt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Rt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=l,f.unix=function(e){return W(1e3*e)},f.months=function(e,t){return fn(e,t,"months")},f.isDate=V,f.locale=ct,f.invalid=I,f.duration=C,f.isMoment=h,f.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},f.parseZone=function(){return W.apply(null,arguments).parseZone()},f.localeData=mt,f.isDuration=Ut,f.monthsShort=function(e,t){return fn(e,t,"monthsShort")},f.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},f.defineLocale=ft,f.updateLocale=function(e,t){var n,s;return null!=t?(s=ot,null!=R[e]&&null!=R[e].parentLocale?R[e].set(X(R[e]._config,t)):(t=X(s=null!=(n=dt(e))?n._config:s,t),null==n&&(t.abbr=e),(s=new K(t)).parentLocale=R[e],R[e]=s),ct(e)):null!=R[e]&&(null!=R[e].parentLocale?(R[e]=R[e].parentLocale,e===ct()&&ct(e)):null!=R[e]&&delete R[e]),R[e]},f.locales=function(){return ee(R)},f.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},f.normalizeUnits=_,f.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==On[e]&&(void 0===t?On[e]:(On[e]=t,"s"===e&&(On.ss=t-1),!0))},f.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},f.prototype=i,f.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"},f}); !function(c,M){"use strict";"object"==typeof module&&module.exports?module.exports=M(require("moment")):"function"==typeof define&&define.amd?define(["moment"],M):M(c.moment)}(this,function(b){"use strict";void 0===b.version&&b.default&&(b=b.default);var M,a={},p={},n={},i={},e={};b&&"string"==typeof b.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=b.version.split("."),A=+c[0],o=+c[1];function L(c){return 96<c?c-87:64<c?c-29:c-48}function z(c){var M=0,A=c.split("."),o=A[0],z=A[1]||"",b=1,a=0,p=1;for(45===c.charCodeAt(0)&&(p=-(M=1));M<o.length;M++)a=60*a+L(o.charCodeAt(M));for(M=0;M<z.length;M++)b/=60,a+=L(z.charCodeAt(M))*b;return a*p}function O(c){for(var M=0;M<c.length;M++)c[M]=z(c[M])}function q(c,M){var A,o=[];for(A=0;A<M.length;A++)o[A]=c[M[A]];return o}function r(c){var M=c.split("|"),A=M[2].split(" "),o=M[3].split(""),z=M[4].split(" ");return O(A),O(o),O(z),function(c,M){for(var A=0;A<M;A++)c[A]=Math.round((c[A-1]||0)+6e4*c[A]);c[M-1]=1/0}(z,o.length),{name:M[0],abbrs:q(M[1].split(" "),o),offsets:q(A,o),untils:z,population:0|M[5]}}function N(c){c&&this._set(r(c))}function d(c,M){this.name=c,this.zones=M}function W(c){var M=c.toTimeString(),A=M.match(/\([a-z ]+\)/i);"GMT"===(A=A&&A[0]?(A=A[0].match(/[A-Z]/g))?A.join(""):void 0:(A=M.match(/[A-Z]{3,5}/g))?A[0]:void 0)&&(A=void 0),this.at=+c,this.abbr=A,this.offset=c.getTimezoneOffset()}function f(c){this.zone=c,this.offsetScore=0,this.abbrScore=0}function X(c,M){for(var A,o;o=6e4*((M.at-c.at)/12e4|0);)(A=new W(new Date(c.at+o))).offset===c.offset?c=A:M=A;return c}function B(c,M){return c.offsetScore!==M.offsetScore?c.offsetScore-M.offsetScore:c.abbrScore!==M.abbrScore?c.abbrScore-M.abbrScore:c.zone.population!==M.zone.population?M.zone.population-c.zone.population:M.zone.name.localeCompare(c.zone.name)}function u(c,M){var A,o;for(O(M),A=0;A<M.length;A++)o=M[A],e[o]=e[o]||{},e[o][c]=!0}function l(){try{var c=Intl.DateTimeFormat().resolvedOptions().timeZone;if(c&&3<c.length){var M=i[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var A,o,z,b=function(){var c,M,A,o=(new Date).getFullYear()-2,z=new W(new Date(o,0,1)),b=[z];for(A=1;A<48;A++)(M=new W(new Date(o,A,1))).offset!==z.offset&&(c=X(z,M),b.push(c),b.push(new W(new Date(c.at+6e4)))),z=M;for(A=0;A<4;A++)b.push(new W(new Date(o+A,0,1))),b.push(new W(new Date(o+A,6,1)));return b}(),a=b.length,p=function(c){var M,A,o,z=c.length,b={},a=[];for(M=0;M<z;M++)for(A in o=e[c[M].offset]||{})o.hasOwnProperty(A)&&(b[A]=!0);for(M in b)b.hasOwnProperty(M)&&a.push(i[M]);return a}(b),n=[];for(o=0;o<p.length;o++){for(A=new f(s(p[o]),a),z=0;z<a;z++)A.scoreOffsetAt(b[z]);n.push(A)}return n.sort(B),0<n.length?n[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function t(c){var M,A,o,z;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)z=T(A=(o=c[M].split("|"))[0]),a[z]=c[M],i[z]=A,u(z,o[2].split(" "))}function s(c,M){c=T(c);var A,o=a[c];return o instanceof N?o:"string"==typeof o?(o=new N(o),a[c]=o):p[c]&&M!==s&&(A=s(p[c],s))?((o=a[c]=new N)._set(A),o.name=i[c],o):null}function E(c){var M,A,o,z;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)o=T((A=c[M].split("|"))[0]),z=T(A[1]),p[o]=z,i[o]=A[0],p[z]=o,i[z]=A[1]}function m(c){t(c.zones),E(c.links),function(c){var M,A,o,z;if(c&&c.length)for(M=0;M<c.length;M++)A=(z=c[M].split("|"))[0].toUpperCase(),o=z[1].split(" "),n[A]=new d(A,o)}(c.countries),R.dataVersion=c.version}function C(c){var M="X"===c._f||"x"===c._f;return!(!c._a||void 0!==c._tzm||M)}function S(c){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(c)}function R(c){var M=Array.prototype.slice.call(arguments,0,-1),A=arguments[arguments.length-1],o=s(A),z=b.utc.apply(null,M);return o&&!b.isMoment(c)&&C(z)&&z.add(o.parse(z),"minutes"),z.tz(A),z}(A<2||2==A&&o<6)&&S("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+b.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,A=+c,o=this.untils;for(M=0;M<o.length;M++)if(A<o[M])return M},countries:function(){var M=this.name;return Object.keys(n).filter(function(c){return-1!==n[c].zones.indexOf(M)})},parse:function(c){var M,A,o,z,b=+c,a=this.offsets,p=this.untils,n=p.length-1;for(z=0;z<n;z++)if(M=a[z],A=a[z+1],o=a[z?z-1:z],M<A&&R.moveAmbiguousForward?M=A:o<M&&R.moveInvalidForward&&(M=o),b<p[z]-6e4*M)return a[z];return a[n]},abbr:function(c){return this.abbrs[this._index(c)]},offset:function(c){return S("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(c)]},utcOffset:function(c){return this.offsets[this._index(c)]}},f.prototype.scoreOffsetAt=function(c){this.offsetScore+=Math.abs(this.zone.utcOffset(c.at)-c.offset),this.zone.abbr(c.at).replace(/[^A-Z]/g,"")!==c.abbr&&this.abbrScore++},R.version="0.5.31",R.dataVersion="",R._zones=a,R._links=p,R._names=i,R._countries=n,R.add=t,R.link=E,R.load=m,R.zone=s,R.zoneExists=function c(M){return c.didShowError||(c.didShowError=!0,S("moment.tz.zoneExists('"+M+"') has been deprecated in favor of !moment.tz.zone('"+M+"')")),!!s(M)},R.guess=function(c){return M&&!c||(M=l()),M},R.names=function(){var c,M=[];for(c in i)i.hasOwnProperty(c)&&(a[c]||a[p[c]])&&i[c]&&M.push(i[c]);return M.sort()},R.Zone=N,R.unpack=r,R.unpackBase60=z,R.needsOffset=C,R.moveInvalidForward=!0,R.moveAmbiguousForward=!1,R.countries=function(){return Object.keys(n)},R.zonesForCountry=function(c,M){if(!(c=function(c){return c=c.toUpperCase(),n[c]||null}(c)))return null;var A=c.zones.sort();return M?A.map(function(c){return{name:c,offset:s(c).utcOffset(new Date)}}):A};var g,P=b.fn;function D(c){return function(){return this._z?this._z.abbr(this):c.call(this)}}function h(c){return function(){return this._z=null,c.apply(this,arguments)}}b.tz=R,b.defaultZone=null,b.updateOffset=function(c,M){var A,o=b.defaultZone;if(void 0===c._z&&(o&&C(c)&&!c._isUTC&&(c._d=b.utc(c._a)._d,c.utc().add(o.parse(c),"minutes")),c._z=o),c._z)if(A=c._z.utcOffset(c),Math.abs(A)<16&&(A/=60),void 0!==c.utcOffset){var z=c._z;c.utcOffset(-A,M),c._z=z}else c.zone(A,M)},P.tz=function(c,M){if(c){if("string"!=typeof c)throw new Error("Time zone name must be a string, got "+c+" ["+typeof c+"]");return this._z=s(c),this._z?b.updateOffset(this,M):S("Moment Timezone has no data for "+c+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},P.zoneName=D(P.zoneName),P.zoneAbbr=D(P.zoneAbbr),P.utc=h(P.utc),P.local=h(P.local),P.utcOffset=(g=P.utcOffset,function(){return 0<arguments.length&&(this._z=null),g.apply(this,arguments)}),b.tz.setDefault=function(c){return(A<2||2==A&&o<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+b.version+"."),b.defaultZone=c?s(c):null,b};var k=b.momentProperties;return"[object Array]"===Object.prototype.toString.call(k)?(k.push("_z"),k.push("_a")):k&&(k._z=null),m({version:"2020a",zones:["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|01212121212121212121212121212121213|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Pacific/Port_Moresby|+10|-a0|0||25e4","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],links:["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],countries:["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Currie Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Vancouver America/Whitehorse America/Dawson","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Godthab America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Astrakhan Europe/Volgograd Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}),b}); function _typeof(e){return(_typeof="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})(e)}!function(n){void 0===n.fn.each2&&n.extend(n.fn,{each2:function(e){for(var t=n([0]),s=-1,i=this.length;++s<i&&(t.context=t[0]=this[s])&&!1!==e.call(t[0],s,t););return this}})}(jQuery),function(v,b){"use strict";var i,n,e,t,s,w,o,r,m,l,a,c,h;function d(e,t,s){e=n[e];return v.fn.select2.i18n&&i[e]?v.fn.select2.i18n.format(i[e],s):t||e}function u(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}function p(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return a[e]||e})}function f(e,t){for(var s=0,i=t.length;s<i;s+=1)if(S(e,t[s]))return s;return-1}function S(e,t){return e===t||e!==b&&t!==b&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function C(e,t){var s,i,n;if(null===e||e.length<1)return[];for(i=0,n=(s=e.split(t)).length;i<n;i+=1)s[i]=v.trim(s[i]);return s}function g(e){return e.outerWidth(!1)-e.width()}function y(t){var s="keyup-change-value";t.on("keydown",function(){v.data(t,s)===b&&v.data(t,s,t.val())}),t.on("keyup",function(){var e=v.data(t,s);e!==b&&t.val()!==e&&(v.removeData(t,s),t.trigger("keyup-change"))})}function E(t,s,i){var n;return i=i||b,function(){var e=arguments;window.clearTimeout(n),n=window.setTimeout(function(){s.apply(i,e)},t)}}function x(e){e.preventDefault(),e.stopPropagation()}function T(e,t,s){var i,n=[],o=v.trim(e.attr("class"));o&&v((o=""+o).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&n.push(this)}),(o=v.trim(t.attr("class")))&&v((o=""+o).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=s(this))&&n.push(i)}),e.attr("class",n.join(" "))}function O(e,t,s,i){var n=p(e.toUpperCase()).indexOf(p(t.toUpperCase())),t=t.length;n<0?s.push(i(e)):(s.push(i(e.substring(0,n))),s.push("<span class='select2-match'>"),s.push(i(e.substring(n,n+t))),s.push("</span>"),s.push(i(e.substring(n+t,e.length))))}function I(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function P(o){var e,a=null,t=o.quietMillis||100,r=o.url,c=this;return function(n){window.clearTimeout(e),e=window.setTimeout(function(){var e=o.data,t=r,s=o.transport||v.fn.select2.ajaxDefaults.transport,i={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||b,dataType:o.dataType||"json"},i=v.extend({},v.fn.select2.ajaxDefaults.params,i),e=e?e.call(c,n.term,n.page,n.context):null,t="function"==typeof t?t.call(c,n.term,n.page,n.context):t;a&&"function"==typeof a.abort&&a.abort(),o.params&&(v.isFunction(o.params)?v.extend(i,o.params.call(c)):v.extend(i,o.params)),v.extend(i,{url:t,dataType:o.dataType,data:e,success:function(e){e=o.results(e,n.page,n);n.callback(e)},error:function(e,t,s){n.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:s})}}),a=s.call(c,i)},t)}}function k(e){var t,s,i=e,r=function(e){return""+e.text},e=(v.isArray(i)&&(i={results:s=i}),!1===v.isFunction(i)&&(s=i,i=function(){return s}),i());return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(n){var o,a=n.term,s={results:[]};""===a?n.callback(i()):(o=function(e,t){var s,i;if((e=e[0]).children){for(i in s={},e)e.hasOwnProperty(i)&&(s[i]=e[i]);s.children=[],v(e.children).each2(function(e,t){o(t,s.children)}),(s.children.length||n.matcher(a,r(s),e))&&t.push(s)}else n.matcher(a,r(e),e)&&t.push(e)},v(i().results).each2(function(e,t){o(t,s.results)}),n.callback(s))}}function A(t){var o=v.isFunction(t);return function(s){var i=s.term,n={results:[]},e=o?t(s):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==i&&!s.matcher(i,t)||n.results.push(e?this:{id:this,text:this})}),s.callback(n))}}function R(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function L(e,t){var s;return v.isFunction(e)?(s=Array.prototype.slice.call(arguments,2),e.apply(t,s)):e}function D(){var s=this;v.each(arguments,function(e,t){s[t].remove(),s[t]=null})}function M(e,t){function s(){}return((s.prototype=new e).constructor=s).prototype.parent=e.prototype,s.prototype=v.extend(s.prototype,t),s}window.Select2===b&&(i={},n={formatInputTooShort:"Please enter {0} or more character(s)",formatInputTooLong:"Please delete {0} character(s)",formatSelectionTooBig:"You can only select {0} item(s)",formatMatches:"{0} result(s) available, use up and down arrow keys to navigate and enter to select",formatNoMatches:"No matches found",formatAjaxError:"Loading failed",formatLoadMore:"Loading more results...",formatSearching:"Searching..."},r={x:0,y:0},l={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case l.LEFT:case l.RIGHT:case l.UP:case l.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case l.SHIFT:case l.CTRL:case l.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},h=v(document),c=1,w=function(){return c++},e=M(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var o,t,s,i,n=".select2-results",a=(this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+w()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v("body"),T(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(L(e.containerCss,this.opts.element)),this.container.addClass(L(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),T(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(L(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=o=this.container.find(n),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",n,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",n,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",n,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",n,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),a=80,s=this.results,i=E(a,function(e){s.trigger("scroll-debounced",e)}),s.on("scroll",function(e){0<=f(e.target,s.get())&&i(e)}),this.dropdown.on("scroll-debounced",n,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&o.mousewheel(function(e,t,s,i){var n=o.scrollTop();0<i&&n-i<=0?(o.scrollTop(0),x(e)):i<0&&o.get(0).scrollHeight-o.scrollTop()+i<=o.height()&&(o.scrollTop(o.get(0).scrollHeight-o.height()),x(e))}),y(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",n,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength),e.element.prop("disabled")),n=(this.enable(!(a=a===b?!1:a)),e.element.prop("readonly"));this.readonly(n=n===b?!1:n),m=m||((a=v("<div class='select2-measure-scrollbar'></div>")).appendTo("body"),n={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),n),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),s=this;this.close(),e.length&&e[0].detachEvent&&e.each(function(){this.detachEvent("onpropertychange",s._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),D.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:S(e.attr("locked"),"locked")||S(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(g){var t,e,m=this,a=g.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=g.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in g)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),(g=v.extend({},{populateResults:function(e,t,d){var u=this.opts.id,p=this.liveRegion,f=function(e,t,s){for(var i,n,o,a,r,c=[],l=0,h=(e=g.sortResults(e,t,d)).length;l<h;l+=1)a=!(r=!0===(i=e[l]).disabled)&&u(i)!==b,n=i.children&&0<i.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+s),o.addClass("select2-result"),o.addClass(a?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),n&&o.addClass("select2-result-with-children"),o.addClass(m.opts.formatResultCssClass(i)),o.attr("role","presentation"),(a=v(document.createElement("div"))).addClass("select2-result-label"),a.attr("id","select2-result-label-"+w()),a.attr("role","option"),(r=g.formatResult(i,a,d,m.opts.escapeMarkup))!==b&&(a.html(r),o.append(a)),n&&((r=v("<ul></ul>")).addClass("select2-result-sub"),f(i.children,r,s+1),o.append(r)),o.data("select2-data",i),c.push(o[0]);t.append(c),p.text(g.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,g)).i18n&&(v.fn.select2.i18n=g.i18n,Object.keys(i).length||g.i18n.getMessages(Object.values(n),function(e){i=e})),"function"!=typeof g.id&&(t=g.id,g.id=function(e){return e[t]}),v.isArray(g.element.data("select2Tags"))){if("tags"in g)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+g.element.attr("id");g.tags=g.element.data("select2Tags")}if(e?(g.query=this.bind(function(i){var e,s={results:[],more:!1},n=i.term,o=function(e,t){var s;e.is("option")?i.matcher(n,e.text(),e)&&t.push(m.optionToData(e)):e.is("optgroup")&&(s=m.optionToData(e),e.children().each2(function(e,t){o(t,s.children)}),0<s.children.length&&t.push(s))},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){o(t,s.results)}),i.callback(s)}),g.id=function(e){return e.id}):"query"in g||("ajax"in g?((e=g.element.data("ajax-url"))&&0<e.length&&(g.ajax.url=e),g.query=P.call(g.element,g.ajax)):"data"in g?g.query=k(g.data):"tags"in g&&(g.query=A(g.tags),g.createSearchChoice===b&&(g.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),g.initSelection===b&&(g.initSelection=function(e,t){var s=[];v(C(e.val(),g.separator)).each(function(){var e={id:this,text:this},t=g.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(S(this.id,e.id))return e=this,!1}),s.push(e)}),t(s)}))),"function"!=typeof g.query)throw"query function not defined for Select2 "+g.element.attr("id");if("top"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof g.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return g},monitorSource:function(){var e,t=this.opts.element,s=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled"),e=(this.enable(!(e=e===b?!1:e)),t.prop("readonly"));this.readonly(e=e===b?!1:e),T(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(L(this.opts.containerCssClass,this.opts.element)),T(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(L(this.opts.dropdownCssClass,this.opts.element))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",s._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,s._sync);e=e.filter(function(e){return"disabled"===e.attributeName});e[0]&&v(e[0].target).trigger("select2.disabled.toggle",e[0].target)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b||e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e!==b&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,s=this.dropdown,i=this.container.offset(),n=this.container.outerHeight(!1),o=this.container.outerWidth(!1),a=s.outerHeight(!1),r=v(window),c=r.width(),l=r.height(),h=r.scrollLeft()+c,l=r.scrollTop()+l,d=i.top+n,u=i.left,l=d+a<=l,p=i.top-a>=r.scrollTop(),f=s.outerWidth(!1),g=u+f<=h;s.hasClass("select2-drop-above")?(e=!0,!p&&l&&(e=!(t=!0))):(e=!1,!l&&p&&(e=t=!0)),t&&(s.hide(),i=this.container.offset(),n=this.container.outerHeight(!1),o=this.container.outerWidth(!1),a=s.outerHeight(!1),h=r.scrollLeft()+c,r.scrollTop(),d=i.top+n,g=(u=i.left)+(f=s.outerWidth(!1))<=h,s.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(l=v(".select2-results",s)[0],s.addClass("select2-drop-auto-width"),s.css("width",""),o<(f=s.outerWidth(!1)+(l.scrollHeight===l.clientHeight?0:m.width))?o=f:f=o,a=s.outerHeight(!1),g=u+f<=h):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(d-=(p=this.body.offset()).top,u-=p.left),t={left:u=g?u:i.left+this.container.outerWidth(!1)-f,width:o},e?(t.top=i.top-a,t.bottom="auto",this.container.addClass("select2-drop-above"),s.addClass("select2-drop-above")):(t.top=d,t.bottom="auto",this.container.removeClass("select2-drop-above"),s.removeClass("select2-drop-above")),t=v.extend(t,L(this.opts.dropdownCss,this.opts.element)),s.css(t)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),h.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var s,e=this.containerEventName,t="scroll."+e,i="resize."+e,n="orientationchange."+e,o=(this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(s=v("#select2-drop-mask")).length&&((s=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),s.hide(),s.appendTo(this.body),s.on("mousedown touchstart click",function(e){u(s);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==s[0]&&this.dropdown.before(s),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),s.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this);this.container.parents().add(window).each(function(){v(this).on(i+" "+t+" "+n,function(e){o.opened()&&o.positionDropdown()})})},close:function(){var e,t,s,i;this.opened()&&(e=this.containerEventName,t="scroll."+e,s="resize."+e,i="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(s).off(i)}),this.clearDropdownAlignmentPreference(),v("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),h.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(v.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return L(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,s,i,n=this.results,o=this.highlight();o<0||(0==o?n.scrollTop(0):(s=this.findHighlightableChoices().find(".select2-result-label"),t=(i=((e=v(s[o])).offset()||{}).top||0)+e.outerHeight(!0),o===s.length-1&&0<(o=n.find("li.select2-more-results")).length&&(t=o.offset().top+o.outerHeight(!0)),(s=n.offset().top+n.outerHeight(!0))<t&&n.scrollTop(n.scrollTop()+(t-s)),(o=i-n.offset().top)<0&&"none"!=e.css("display")&&n.scrollTop(n.scrollTop()+o)))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),s=this.highlight();-1<s&&s<t.length;){var i=v(t[s+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(s);break}}},highlight:function(e){var t=!!navigator.userAgent.match(/Trident.*rv\:11\./),s=this.findHighlightableChoices();if(0===arguments.length)return f(s.filter(".select2-highlighted")[0],s.get());(e=e>=s.length?s.length-1:e)<0&&(e=0),this.removeHighlight(),(s=v(s[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",s.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),t||this.liveRegion.text(s.text()),(e=s.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t,e=v(e.target).closest(".select2-result-selectable");0<e.length&&!e.is(".select2-highlighted")?(t=this.findHighlightableChoices(),this.highlight(t.index(e))):0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,s=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,o=this.search.val(),a=this.context;0!==s.length&&s.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(s.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){n.opened()&&(n.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),n.postprocessResults(e,!1,!1),!0===e.more?(s.detach().appendTo(t).text(L(n.opts.formatLoadMore,n.opts.element,i+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):s.remove(),n.positionDropdown(),n.resultsPage=i,n.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(s){var i,n=this.search,o=this.results,a=this.opts,r=this,e=n.val(),t=v.data(this.container,"select2-last-term");function c(){n.removeClass("select2-active"),r.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?r.liveRegion.text(o.text()):r.liveRegion.text(r.opts.formatMatches(o.find(".select2-result-selectable").length))}function l(e){o.html(e),c()}!0!==s&&t&&S(e,t)||(v.data(this.container,"select2-last-term",e),(!0===s||!1!==this.showSearchInput&&this.opened())&&(i=++this.queryCount,1<=(t=this.getMaximumSelectionSize())&&(e=this.data(),v.isArray(e)&&e.length>=t&&R(a.formatSelectionTooBig,"formatSelectionTooBig"))?l("<li class='select2-selection-limit'>"+L(a.formatSelectionTooBig,a.element,t)+"</li>"):n.val().length<a.minimumInputLength?(R(a.formatInputTooShort,"formatInputTooShort")?l("<li class='select2-no-results'>"+L(a.formatInputTooShort,a.element,n.val(),a.minimumInputLength)+"</li>"):l(""),s&&this.showSearch&&this.showSearch(!0)):a.maximumInputLength&&n.val().length>a.maximumInputLength?R(a.formatInputTooLong,"formatInputTooLong")?l("<li class='select2-no-results'>"+L(a.formatInputTooLong,a.element,n.val(),a.maximumInputLength)+"</li>"):l(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&l("<li class='select2-searching'>"+L(a.formatSearching,a.element)+"</li>"),n.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&n.val(e),this.resultsPage=1,a.query({element:a.element,term:n.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;i==this.queryCount&&(this.opened()?e.hasError!==b&&R(a.formatAjaxError,"formatAjaxError")?l("<li class='select2-ajax-error'>"+L(a.formatAjaxError,a.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>"):(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==n.val()&&(t=this.opts.createSearchChoice.call(r,n.val(),e.results))!==b&&null!==t&&r.id(t)!==b&&null!==r.id(t)&&0===v(e.results).filter(function(){return S(r.id(this),r.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&R(a.formatNoMatches,"formatNoMatches")?l("<li class='select2-no-results'>"+L(a.formatNoMatches,a.element,n.val())+"</li>"):(o.empty(),r.opts.populateResults.call(this,o,e.results,{term:n.val(),page:this.resultsPage,context:null}),!0===e.more&&R(a.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+a.escapeMarkup(L(a.formatLoadMore,a.element,this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,s),c(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})}))))},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var s;(s=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=s[0],t=s.val().length;s.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t,s;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(s=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(s,e)):e&&e.noFocus&&this.close())},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==b?e.text():b)},getPlaceholderOption:function(){var e;if(this.select)return e=this.select.children("option").first(),this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0},initContainerWidth:function(){var e=function(){var e,t,s,i,n;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if((e=this.opts.element.attr("style"))!==b)for(i=0,n=(t=e.split(";")).length;i<n;i+=1)if(null!==(s=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=s.length)return s[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),t=M(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' aria-hidden='true'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text' role='combobox' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),D.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,s=this.dropdown,i=w(),i=(this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.opts.element.attr("aria-required")&&this.focusser.attr("aria-required",this.opts.element.attr("aria-required")),this.focusser.attr("id","s2id_autogen"+i),this.originalLabel=v("label[for='"+this.opts.element.attr("id")+"']"),this.originalLabel.length&&(this.originalLabel.attr("for",this.focusser.attr("id")),e=this.originalLabel.attr("id")||this.focusser.attr("id")+"-label",this.originalLabel.attr("id",e),this.focusser.attr("aria-labelledby",this.focusser.attr("aria-labelledby")+" "+this.originalLabel.attr("id"))),this.opts.element.attr("title"));this.opts.element.attr("title",i||this.originalLabel.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which===l.PAGE_UP||e.which===l.PAGE_DOWN)x(e);else switch(e.which){case l.UP:case l.DOWN:return this.moveHighlight(e.which===l.UP?-1:1),void x(e);case l.ENTER:return this.selectHighlighted(),void x(e);case l.TAB:return void this.selectHighlighted({noFocus:!0});case l.ESC:return this.cancel(e),void x(e)}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==l.TAB&&!l.isControl(e)&&!l.isFunctionKey(e)&&e.which!==l.ESC){if(!1!==this.opts.openOnEnter||e.which!==l.ENTER)return e.which==l.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void x(e)):void(e.which!=l.DELETE&&e.which!=l.BACKSPACE||(this.opts.allowClear&&this.clear(),x(e)));x(e)}})),y(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(e){u(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(e)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var t,s=this.selection.data("select2-data");s&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.nextSearchTerm=t.opts.nextSearchTerm(e,t.search.val()))})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(s.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var n=e.val(),o=null;a.query({matcher:function(e,t,s){var i=S(n,a.id(s));return i&&(o=s),i},callback:v.isFunction(t)?function(){t(o)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();!this.isPlaceholderOptionSelected()||e===b||this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear"))},postprocessResults:function(e,t,s){var i=0,n=this;this.findHighlightableChoices().each2(function(e,t){if(S(n.id(t.data("select2-data")),n.opts.element.val()))return i=e,!1}),!1!==s&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t&&0<=(s=this.opts.minimumResultsForSearch)&&this.showSearch(function s(e){var i=0;return v.each(e,function(e,t){t.children?i+=s(t.children):i++}),i}(e.results)>=s)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var s,i;this.triggerSelect(e)&&(s=this.opts.element.val(),i=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),S(s,this.id(e))||this.triggerChange({added:e,removed:i}))},updateSelection:function(e){var t,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),(t=null!==e?this.opts.formatSelection(e,s,this.opts.escapeMarkup):t)!==b&&s.append(t),(t=this.opts.formatSelectionCssClass(e,s))!==b&&s.addClass(t),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,s=null,i=this,n=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return s=i.optionToData(t),!1}),this.updateSelection(s),this.setPlaceholder(),t&&this.triggerChange({added:s,removed:n});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:n})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,s=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;1<arguments.length&&(s=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),s&&this.triggerChange({added:e,removed:t})):this.clear(s)}}),s=M(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices' role='presentation'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' role='combobox' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' aria-autocomplete='list' />"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var c=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===c.element.get(0).tagName.toLowerCase()?c.initSelection=function(e,t){var s=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){s.push(i.optionToData(t))}),t(s)}:"data"in c&&(c.initSelection=c.initSelection||function(e,o){var a=C(e.val(),c.separator),r=[];c.query({matcher:function(e,t,s){var i=v.grep(a,function(e){return S(e,c.id(s))}).length;return i&&r.push(s),i},callback:v.isFunction(o)?function(){for(var e=[],t=0;t<a.length;t++)for(var s=a[t],i=0;i<r.length;i++){var n=r[i];if(S(s,c.id(n))){e.push(n),r.splice(i,1);break}}o(e)}:v.noop})}),c},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e),this.liveRegion.text(e.text())))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),D.call(this,"searchContainer","selection")},initContainer:function(){var c,e=".select2-choices",t=(this.searchContainer=this.container.find(".select2-search-field"),this.selection=c=this.container.find(e),this);this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+w()),this.results.attr("id",this.search.attr("id")+"_results"),this.search.attr("aria-owns",this.results.attr("id")),this.originalLabel=v("label[for='"+this.opts.element.attr("id")+"']"),this.originalLabel.length&&this.originalLabel.attr("for",this.search.attr("id")),this.opts.element.attr("aria-required")&&this.search.attr("aria-required",this.opts.element.attr("aria-required")),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||!this.isInterfaceEnabled()||this.opened()||this.open()})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,s,i,n=c.find(".select2-search-choice-focus"),o=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=(r=this.search,s=t=0,"selectionStart"in(r=v(r)[0])?(t=r.selectionStart,s=r.selectionEnd-t):"selection"in document&&(r.focus(),i=document.selection.createRange(),s=document.selection.createRange().text.length,i.moveStart("character",-r.value.length),t=i.text.length-s),{offset:t,length:s});if(!n.length||e.which!=l.LEFT&&e.which!=l.RIGHT&&e.which!=l.BACKSPACE&&e.which!=l.DELETE&&e.which!=l.ENTER)if((e.which!==l.BACKSPACE||1!=this.keydowns)&&e.which!=l.LEFT||0!=r.offset||r.length){if(this.selectChoice(null),this.opened())switch(e.which){case l.UP:case l.DOWN:return this.moveHighlight(e.which===l.UP?-1:1),void x(e);case l.ENTER:return this.selectHighlighted(),void x(e);case l.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case l.ESC:return this.cancel(e),void x(e)}if(e.which!==l.TAB&&!l.isControl(e)&&!l.isFunctionKey(e)&&e.which!==l.BACKSPACE&&e.which!==l.ESC){if(e.which===l.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==l.PAGE_UP&&e.which!==l.PAGE_DOWN||x(e),e.which===l.ENTER&&x(e)}}else this.selectChoice(c.find(".select2-search-choice:not(.select2-locked)").last()),x(e);else i=n,e.which==l.LEFT&&o.length?i=o:e.which==l.RIGHT?i=a.length?a:null:e.which===l.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),i=o.length?o:a):e.which==l.DELETE?this.unselect(n.first())&&(this.search.width(10),i=a.length?a:null):e.which==l.ENTER&&(i=null),this.selectChoice(i),x(e),i&&i.length||this.open()}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){!this.isInterfaceEnabled()||0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault())})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t=[],s=[],i=this,n=(v(e).each(function(){f(i.id(this),t)<0&&(t.push(i.id(this)),s.push(this))}),e=s,this.selection.find(".select2-search-choice").remove(),this.getVal());v(e).each(function(){i.addSelectedChoice(this),n.push(i.id(this))}),this.setVal(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=b&&(this.search.val(e),0<e.length&&this.open())},onSelect:function(e,t){var s;this.triggerSelect(e)&&""!==e.text&&(s=this.getVal(),this.addSelectedChoice(e),s.push(this.id(e)),this.setVal(s),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),s=this.getVal().map(function(e){return this.search.attr("id")+"_choice_"+e},this).join(" "),this.search.attr("aria-describedby",s),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=!e.locked,s=v("<li class='select2-search-choice'> <div></div> <a href='#' role='button' class='select2-search-choice-close' tabindex='-1'></a></li>"),i=v("<li class='select2-search-choice select2-locked'><div></div></li>"),s=t?s:i,i=this.id(e);s.attr("id",this.search.attr("id")+"_choice_"+i),(i=this.opts.formatSelection(e,s.find("div"),this.opts.escapeMarkup))!=b&&s.find("div").replaceWith("<div>"+i+"</div>"),(i=this.opts.formatSelectionCssClass(e,s.find("div")))!=b&&s.addClass(i),t&&s.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),s.data("select2-data",e),s.insertBefore(this.searchContainer)},unselect:function(e){var t,s,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var n=v.Event("select2-removing");if(n.val=this.id(t),n.choice=t,this.opts.element.trigger(n),n.isDefaultPrevented())return!1;for(;0<=(s=f(this.id(t),i));)i.splice(s,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,s){var i=this.getVal(),n=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;n.each2(function(e,t){0<=f(a.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),o.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==s&&a.highlight(0),!this.opts.createSearchChoice&&0<!n.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||R(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+L(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-g(this.search)},resizeSearch:function(){var e,t,s,i=g(this.search);t=this.search,o||(s=t[0].currentStyle||window.getComputedStyle(t[0],null),(o=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:s.fontSize,fontFamily:s.fontFamily,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,textTransform:s.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v("body").append(o)),o.text(t.val()),s=o.width()+10,t=this.search.offset().left,(t=(t=(t=(e=this.selection.width())-(t-this.selection.offset().left)-i)<s?e-i:t)<40?e-i:t)<=0&&(t=s),this.search.width(Math.floor(t))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:C(e=this.opts.element.val(),this.opts.separator)},setVal:function(e){var t;this.select?this.select.val(e):(t=[],v(e).each(function(){f(this,t)<0&&t.push(this)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),s=0;s<t.length;s++)for(var i=0;i<e.length;i++)S(this.opts.id(t[s]),this.opts.id(e[i]))&&(t.splice(s,1),0<s&&s--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(e,s){var i,n=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),e||0===e){if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),s&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,n.id);n.setVal(t),n.updateSelection(e),n.clearSearch(),s&&n.triggerChange(n.buildChangeDetails(i,n.data()))})}this.clearSearch()}else this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),s&&this.triggerChange({added:this.data(),removed:i})},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var s,i,n=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();i=this.data(),s=v.map(e=e||[],function(e){return n.opts.id(e)}),this.setVal(s),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),v.fn.select2=function(){var e,t,s,i,n=Array.prototype.slice.call(arguments,0),o=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],c={search:"externalSearch"};return this.each(function(){if(0===n.length||"object"===_typeof(n[0]))(t=0===n.length?{}:v.extend({},n[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?i=t.element.prop("multiple"):(i=t.multiple||!1,"tags"in t&&(t.multiple=i=!0)),(e=new(i?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof n[0])throw"Invalid arguments to select2 plugin: "+n;if(f(n[0],o)<0)throw"Unknown method: "+n[0];if(s=b,(e=v(this).data("select2"))!==b)return t=n[0],s="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=c[t]?c[t]:t].apply(e,n.slice(1)),!(0<=f(n[0],a)||0<=f(n[0],r)&&1==n.length)&&void 0}}),s===b?this:s},v.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,s,i){var n=[];return O(e.text,s.term,n,i),n.join("")},formatSelection:function(e,t,s){return e?s(e.text):b},sortResults:function(e,t,s){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},matcher:function(e,t){return 0<=p(""+t).toUpperCase().indexOf(p(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,s,i){var n,o,a,r,c,l=e,h=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(o=-1,a=0,r=i.tokenSeparators.length;a<r&&(c=i.tokenSeparators[a],!(0<=(o=e.indexOf(c))));a++);if(o<0)break;if(n=e.substring(0,o),e=e.substring(o+c.length),0<n.length&&(n=i.createSearchChoice.call(this,n,t))!==b&&null!==n&&i.id(n)!==b&&null!==i.id(n)){for(h=!1,a=0,r=t.length;a<r;a++)if(S(i.id(n),i.id(t[a]))){h=!0;break}h||s(n)}}return l!==e?e:void 0},escapeMarkup:I,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||0<navigator.msMaxTouchPoints)||!(e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.fn.select2.locales.en={formatMatches:function(e){return d("formatMatches",e+"result(s) available, use up and down arrow keys to navigate and enter to select",e)},formatNoMatches:function(){return d("formatNoMatches")},formatAjaxError:function(){return d("formatAjaxError")},formatInputTooShort:function(e,t){t-=e.length;return d("formatInputTooShort","Please enter "+t+" or more character(s)",t)},formatInputTooLong:function(e,t){e=e.length-t;return d("formatInputTooLong","Please delete "+e+" character(s)",e)},formatSelectionTooBig:function(e){return d("formatSelectionTooBig","You can only select "+e+" item(s)",e)},formatLoadMore:function(){return d("formatLoadMore")},formatSearching:function(){return d("formatSearching")}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:P,local:k,tags:A},util:{debounce:E,markMatch:O,escapeMarkup:I,stripDiacritics:p},class:{abstract:e,single:t,multi:s}})}(jQuery); !function(){var e,o,n;void 0!==window.Select2&&(e=window.Select2.class.abstract.prototype.init,o="",angular.element(document).ready(function(){var t=angular.element("*[ng-app]").injector().get("i18n");o=t.getMessage("Searching...")}),window.Select2.class.single.prototype.init=function(t){var i=this,n=(e.call(this,t),this.opts.element.attr("aria-hidden","true"),this.selection.off("touchstart"),-1);this.selection.on("touchstart",function(t){n=t.originalEvent.touches[0].clientY}).on("touchend",this.bind(function(t){var e=t.originalEvent.changedTouches[0].clientY;Math.abs(n-e)<10&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),t.preventDefault(),t.stopPropagation())})),this.opts.element.on("$destroy",function(){i.opts.element.select2("destroy")}),this.opts.element.on("select2-open",function(){var t,e,n;i.dropdown&&(t=i.dropdown.find("input"),e=t.attr("aria-activedescendant"),(n=i.liveRegion.text())!==o&&i.liveRegion.text(""),t.removeAttr("aria-activedescendant"),setTimeout(function(){t.attr("aria-activedescendant",e),n!==o&&i.liveRegion.text(n)},500))}),this.opts.element.on("select2-close",function(){i.dropdown&&i.dropdown.find("input").removeAttr("aria-activedescendant")})},n=window.Select2.class.abstract.prototype.highlight,window.Select2.class.single.prototype.highlight=window.Select2.class.multi.prototype.highlight=function(t){{if(void 0===t)return n.call(this);n.call(this,t)}this.liveRegion.text("")})}(); function spLoadMaps(a){"undefined"==typeof g_google_maps_api_loaded?(spLoadScript("https://maps.googleapis.com/maps/api/js?key="+a+"&v=3.exp&callback=initMap"),g_google_maps_api_loaded=!0):CustomEvent.fireAll("map.initialized")}function spLoadScript(a){var i=document.createElement("script");i.type="text/javascript",i.src=a,document.body.appendChild(i)}function initMap(){CustomEvent.fireAll("map.initialized")} ;(function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define(['jquery', 'moment'], factory); } else if (typeof exports === 'object') { factory(require('jquery'), require('moment')); } else { if (!jQuery) { throw new Error('bootstrap-datetimepicker requires jQuery to be loaded first'); } if (!moment) { throw new Error('bootstrap-datetimepicker requires moment.js to be loaded first'); } factory(root.jQuery, moment); } }(this, function ($, moment) { 'use strict'; if (typeof moment === 'undefined') { throw new Error('momentjs is required'); } var dpgId = 0, DateTimePicker = function (element, options) { var defaults = $.fn.datetimepicker.defaults, icons = { time: 'glyphicon glyphicon-time', date: 'glyphicon glyphicon-calendar', up: 'glyphicon glyphicon-chevron-up', down: 'glyphicon glyphicon-chevron-down' }, picker = this, errored = false, dDate, init = function () { var icon = false, localeData, rInterval; picker.options = $.extend({}, defaults, options); picker.options.icons = $.extend({}, icons, picker.options.icons); picker.element = $(element); dataToOptions(); if (!(picker.options.pickTime || picker.options.pickDate)) { throw new Error('Must choose at least one picker'); } picker.id = dpgId++; moment.locale(picker.options.language); picker.date = moment(); picker.unset = false; picker.isInput = picker.element.is('input'); picker.component = false; if (picker.element.hasClass('input-group')) { if (picker.element.find('.datepickerbutton').size() === 0) { picker.component = picker.element.find('[class^="input-group-"]'); } else { picker.component = picker.element.find('.datepickerbutton'); } } picker.format = picker.options.format; localeData = moment().localeData(); if (!picker.format) { picker.format = (picker.options.pickDate ? localeData.longDateFormat('L') : ''); if (picker.options.pickDate && picker.options.pickTime) { picker.format += ' '; } picker.format += (picker.options.pickTime ? localeData.longDateFormat('LT') : ''); if (picker.options.useSeconds) { if (localeData.longDateFormat('LT').indexOf(' A') !== -1) { picker.format = picker.format.split(' A')[0] + ':ss A'; } else { picker.format += ':ss'; } } } picker.use24hours = (picker.format.toLowerCase().indexOf('a') < 0 && picker.format.indexOf('h') < 0); if (picker.component) { icon = picker.component.find('span'); } if (picker.options.pickTime) { if (icon) { icon.addClass(picker.options.icons.time); } } if (picker.options.pickDate) { if (icon) { icon.removeClass(picker.options.icons.time); icon.addClass(picker.options.icons.date); } } picker.options.widgetParent = typeof picker.options.widgetParent === 'string' && picker.options.widgetParent || picker.element.parents().filter(function () { return 'scroll' === $(this).css('overflow-y'); }).get(0) || 'body'; picker.widget = $(getTemplate()).appendTo(picker.options.widgetParent); picker.minViewMode = picker.options.minViewMode || 0; if (typeof picker.minViewMode === 'string') { switch (picker.minViewMode) { case 'months': picker.minViewMode = 1; break; case 'years': picker.minViewMode = 2; break; default: picker.minViewMode = 0; break; } } picker.viewMode = picker.options.viewMode || 0; if (typeof picker.viewMode === 'string') { switch (picker.viewMode) { case 'months': picker.viewMode = 1; break; case 'years': picker.viewMode = 2; break; default: picker.viewMode = 0; break; } } picker.viewMode = Math.max(picker.viewMode, picker.minViewMode); picker.options.disabledDates = indexGivenDates(picker.options.disabledDates); picker.options.enabledDates = indexGivenDates(picker.options.enabledDates); picker.startViewMode = picker.viewMode; picker.setMinDate(picker.options.minDate); picker.setMaxDate(picker.options.maxDate); fillDow(); fillMonths(); fillHours(); fillMinutes(); fillSeconds(); update(); showMode(); if (!getPickerInput().prop('disabled')) { attachDatePickerEvents(); } if (picker.options.defaultDate !== '' && getPickerInput().val() === '') { picker.setValue(picker.options.defaultDate); } if (picker.options.minuteStepping !== 1) { rInterval = picker.options.minuteStepping; picker.date.minutes((Math.round(picker.date.minutes() / rInterval) * rInterval) % 60).seconds(0); } }, getPickerInput = function () { var input; if (picker.isInput) { return picker.element; } input = picker.element.find('.datepickerinput'); if (input.size() === 0) { input = picker.element.find('input'); } else if (!input.is('input')) { throw new Error('CSS class "datepickerinput" cannot be applied to non input element'); } return input; }, dataToOptions = function () { var eData; if (picker.element.is('input')) { eData = picker.element.data(); } else { eData = picker.element.find('input').data(); } if (eData.dateFormat !== undefined) { picker.options.format = eData.dateFormat; } if (eData.datePickdate !== undefined) { picker.options.pickDate = eData.datePickdate; } if (eData.datePicktime !== undefined) { picker.options.pickTime = eData.datePicktime; } if (eData.dateUseminutes !== undefined) { picker.options.useMinutes = eData.dateUseminutes; } if (eData.dateUseseconds !== undefined) { picker.options.useSeconds = eData.dateUseseconds; } if (eData.dateUsecurrent !== undefined) { picker.options.useCurrent = eData.dateUsecurrent; } if (eData.calendarWeeks !== undefined) { picker.options.calendarWeeks = eData.calendarWeeks; } if (eData.dateMinutestepping !== undefined) { picker.options.minuteStepping = eData.dateMinutestepping; } if (eData.dateMindate !== undefined) { picker.options.minDate = eData.dateMindate; } if (eData.dateMaxdate !== undefined) { picker.options.maxDate = eData.dateMaxdate; } if (eData.dateShowtoday !== undefined) { picker.options.showToday = eData.dateShowtoday; } if (eData.dateCollapse !== undefined) { picker.options.collapse = eData.dateCollapse; } if (eData.dateLanguage !== undefined) { picker.options.language = eData.dateLanguage; } if (eData.dateDefaultdate !== undefined) { picker.options.defaultDate = eData.dateDefaultdate; } if (eData.dateDisableddates !== undefined) { picker.options.disabledDates = eData.dateDisableddates; } if (eData.dateEnableddates !== undefined) { picker.options.enabledDates = eData.dateEnableddates; } if (eData.dateIcons !== undefined) { picker.options.icons = eData.dateIcons; } if (eData.dateUsestrict !== undefined) { picker.options.useStrict = eData.dateUsestrict; } if (eData.dateDirection !== undefined) { picker.options.direction = eData.dateDirection; } if (eData.dateSidebyside !== undefined) { picker.options.sideBySide = eData.dateSidebyside; } if (eData.dateDaysofweekdisabled !== undefined) { picker.options.daysOfWeekDisabled = eData.dateDaysofweekdisabled; } }, place = function () { var position = 'fixed', offset = picker.component ? picker.component.offset() : picker.element.offset(), $window = $(window), placePosition; picker.width = picker.component ? picker.component.outerWidth() : picker.element.outerWidth(); offset.top = offset.top + picker.element.outerHeight(); if (picker.options.direction === 'up') { placePosition = 'top'; } else if (picker.options.direction === 'bottom') { placePosition = 'bottom'; } else if (picker.options.direction === 'auto') { if (offset.top + picker.widget.height() > $window.height() + $window.scrollTop() && picker.widget.height() + picker.element.outerHeight() < offset.top) { placePosition = 'top'; } else { placePosition = 'bottom'; } } if (placePosition === 'top') { offset.top = offset.top - picker.element.outerHeight() - picker.widget.height() - 13; picker.widget.addClass('top').removeClass('bottom'); } else { offset.top += 1; picker.widget.addClass('bottom').removeClass('top'); } if (picker.options.width !== undefined) { picker.widget.width(picker.options.width); } if (picker.options.orientation === 'left') { picker.widget.addClass('left-oriented'); offset.left = offset.left - picker.widget.width() + 20; } if (isInFixed()) { position = 'fixed'; offset.top -= $window.scrollTop(); offset.left -= $window.scrollLeft(); } if ($window.width() < offset.left + picker.widget.outerWidth()) { offset.right = $window.width() - offset.left - picker.width; offset.left = 'auto'; picker.widget.addClass('pull-right'); } else { offset.right = 'auto'; picker.widget.removeClass('pull-right'); } if (placePosition === 'top') { picker.widget.css({ position: position, bottom: 'auto', top: offset.top, left: offset.left, right: offset.right }); } else { picker.widget.css({ position: position, top: offset.top, bottom: 'auto', left: offset.left, right: offset.right }); } }, notifyChange = function (oldDate, eventType) { if (moment(picker.date).isSame(moment(oldDate)) && !errored) { return; } errored = false; picker.element.trigger({ type: 'dp.change', date: moment(picker.date), oldDate: moment(oldDate) }); if (eventType !== 'change') { picker.element.change(); } }, notifyError = function (date) { errored = true; picker.element.trigger({ type: 'dp.error', date: moment(date, picker.format, picker.options.useStrict) }); }, update = function (newDate) { moment.locale(picker.options.language); var dateStr = newDate; if (!dateStr) { dateStr = getPickerInput().val(); if (dateStr) { picker.date = moment(dateStr, picker.format, picker.options.useStrict); } if (!picker.date) { picker.date = moment(); } } picker.viewDate = moment(picker.date).startOf('month'); fillDate(); fillTime(); }, fillDow = function () { moment.locale(picker.options.language); var html = $('<tr>'), weekdaysMin = moment.weekdaysMin(), i, j, startOfWeek = moment().localeData()._week.dow; if (picker.options.calendarWeeks === true) { html.append('<th class="cw">#</th>'); } for (i = 0; i < 7; i++) { j = (startOfWeek + i) % 7; html.append('<th class="dow">' + weekdaysMin[j] + '</th>'); } picker.widget.find('.datepicker-days thead').append(html); }, fillMonths = function () { moment.locale(picker.options.language); var html = '', i, monthsShort = moment.monthsShort(); for (i = 0; i < 12; i++) { html += '<span class="month">' + monthsShort[i] + '</span>'; } picker.widget.find('.datepicker-months td').append(html); }, fillDate = function () { if (!picker.options.pickDate) { return; } moment.locale(picker.options.language); var year = picker.viewDate.year(), month = picker.viewDate.month(), startYear = picker.options.minDate.year(), startMonth = picker.options.minDate.month(), endYear = picker.options.maxDate.year(), endMonth = picker.options.maxDate.month(), currentDate, prevMonth, nextMonth, html = [], row, clsName, i, days, yearCont, currentYear, months = moment.months(); picker.widget.find('.datepicker-days').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-months').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-years').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-days th:eq(1)').text( months[month] + ' ' + year); prevMonth = moment(picker.viewDate, picker.format, picker.options.useStrict).subtract(1, 'months'); days = prevMonth.daysInMonth(); prevMonth.date(days).startOf('week'); if ((year === startYear && month <= startMonth) || year < startYear) { picker.widget.find('.datepicker-days th:eq(0)').addClass('disabled'); } if ((year === endYear && month >= endMonth) || year > endYear) { picker.widget.find('.datepicker-days th:eq(2)').addClass('disabled'); } nextMonth = moment(prevMonth).add(42, 'd'); while (prevMonth.isBefore(nextMonth)) { if (prevMonth.weekday() === moment().startOf('week').weekday()) { row = $('<tr>'); html.push(row); if (picker.options.calendarWeeks === true) { row.append('<td class="cw">' + prevMonth.week() + '</td>'); } } clsName = ''; if (prevMonth.year() < year || (prevMonth.year() === year && prevMonth.month() < month)) { clsName += ' old'; } else if (prevMonth.year() > year || (prevMonth.year() === year && prevMonth.month() > month)) { clsName += ' new'; } if (prevMonth.isSame(moment({y: picker.date.year(), M: picker.date.month(), d: picker.date.date()}))) { clsName += ' active'; } if (isInDisableDates(prevMonth, 'day') || !isInEnableDates(prevMonth)) { clsName += ' disabled'; } if (picker.options.showToday === true) { if (prevMonth.isSame(moment(), 'day')) { clsName += ' today'; } } if (picker.options.daysOfWeekDisabled) { for (i = 0; i < picker.options.daysOfWeekDisabled.length; i++) { if (prevMonth.day() === picker.options.daysOfWeekDisabled[i]) { clsName += ' disabled'; break; } } } row.append('<td class="day' + clsName + '"><div role="button" tabindex="-1">' + prevMonth.date() + '</div></td>'); currentDate = prevMonth.date(); prevMonth.add(1, 'd'); if (currentDate === prevMonth.date()) { prevMonth.add(1, 'd'); } } picker.widget.find('.datepicker-days tbody').empty().append(html); currentYear = picker.date.year(); months = picker.widget.find('.datepicker-months').find('th:eq(1)').text(year).end().find('span').removeClass('active'); if (currentYear === year) { months.eq(picker.date.month()).addClass('active'); } if (year - 1 < startYear) { picker.widget.find('.datepicker-months th:eq(0)').addClass('disabled'); } if (year + 1 > endYear) { picker.widget.find('.datepicker-months th:eq(2)').addClass('disabled'); } for (i = 0; i < 12; i++) { if ((year === startYear && startMonth > i) || (year < startYear)) { $(months[i]).addClass('disabled'); } else if ((year === endYear && endMonth < i) || (year > endYear)) { $(months[i]).addClass('disabled'); } } html = ''; year = parseInt(year / 10, 10) * 10; yearCont = picker.widget.find('.datepicker-years').find( 'th:eq(1)').text(year + '-' + (year + 9)).parents('table').find('td'); picker.widget.find('.datepicker-years').find('th').removeClass('disabled'); if (startYear > year) { picker.widget.find('.datepicker-years').find('th:eq(0)').addClass('disabled'); } if (endYear < year + 9) { picker.widget.find('.datepicker-years').find('th:eq(2)').addClass('disabled'); } year -= 1; for (i = -1; i < 11; i++) { html += '<span class="year' + (i === -1 || i === 10 ? ' old' : '') + (currentYear === year ? ' active' : '') + ((year < startYear || year > endYear) ? ' disabled' : '') + '">' + year + '</span>'; year += 1; } yearCont.html(html); }, fillHours = function () { moment.locale(picker.options.language); var table = picker.widget.find('.timepicker .timepicker-hours table'), html = '', current, i, j; table.parent().hide(); if (picker.use24hours) { current = 0; for (i = 0; i < 6; i += 1) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; current++; } html += '</tr>'; } } else { current = 1; for (i = 0; i < 3; i += 1) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; current++; } html += '</tr>'; } } table.html(html); }, fillMinutes = function () { var table = picker.widget.find('.timepicker .timepicker-minutes table'), html = '', current = 0, i, j, step = picker.options.minuteStepping; table.parent().hide(); if (step === 1) { step = 5; } for (i = 0; i < Math.ceil(60 / step / 4) ; i++) { html += '<tr>'; for (j = 0; j < 4; j += 1) { if (current < 60) { html += '<td class="minute">' + padLeft(current.toString()) + '</td>'; current += step; } else { html += '<td></td>'; } } html += '</tr>'; } table.html(html); }, fillSeconds = function () { var table = picker.widget.find('.timepicker .timepicker-seconds table'), html = '', current = 0, i, j; table.parent().hide(); for (i = 0; i < 3; i++) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="second">' + padLeft(current.toString()) + '</td>'; current += 5; } html += '</tr>'; } table.html(html); }, fillTime = function () { if (!picker.date) { return; } var timeComponents = picker.widget.find('.timepicker span[data-time-component]'), hour = picker.date.hours(), period = picker.date.format('A'); if (!picker.use24hours) { if (hour === 0) { hour = 12; } else if (hour !== 12) { hour = hour % 12; } picker.widget.find('.timepicker [data-action=togglePeriod]').text(period); } timeComponents.filter('[data-time-component=hours]').text(padLeft(hour)); timeComponents.filter('[data-time-component=minutes]').text(padLeft(picker.date.minutes())); timeComponents.filter('[data-time-component=seconds]').text(padLeft(picker.date.second())); }, click = function (e) { e.stopPropagation(); e.preventDefault(); picker.unset = false; var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = moment(picker.date); if (target.length === 1) { if (!target.is('.disabled')) { switch (target[0].nodeName.toLowerCase()) { case 'th': switch (target[0].className) { case 'picker-switch': showMode(1); break; case 'prev': case 'next': step = dpGlobal.modes[picker.viewMode].navStep; if (target[0].className === 'prev') { step = step * -1; } picker.viewDate.add(step, dpGlobal.modes[picker.viewMode].navFnc); fillDate(); break; } break; case 'span': if (target.is('.month')) { month = target.parent().find('span').index(target); picker.viewDate.month(month); } else { year = parseInt(target.text(), 10) || 0; picker.viewDate.year(year); } if (picker.viewMode === picker.minViewMode) { picker.date = moment({ y: picker.viewDate.year(), M: picker.viewDate.month(), d: picker.viewDate.date(), h: picker.date.hours(), m: picker.date.minutes(), s: picker.date.seconds() }); set(); notifyChange(oldDate, e.type); } showMode(-1); fillDate(); break; case 'td': if (target.is('.day')) { day = parseInt(target.text(), 10) || 1; month = picker.viewDate.month(); year = picker.viewDate.year(); if (target.is('.old')) { if (month === 0) { month = 11; year -= 1; } else { month -= 1; } } else if (target.is('.new')) { if (month === 11) { month = 0; year += 1; } else { month += 1; } } picker.date = moment({ y: year, M: month, d: day, h: picker.date.hours(), m: picker.date.minutes(), s: picker.date.seconds() } ); picker.viewDate = moment({ y: year, M: month, d: Math.min(28, day) }); fillDate(); set(); notifyChange(oldDate, e.type); } break; } } } }, actions = { incrementYears: function () { checkDate('add', 'years', 1); }, incrementMonths: function () { checkDate('add', 'months', 1); }, incrementDays: function () { checkDate('add', 'days', 1); }, incrementWeeks: function () { checkDate('add', 'weeks', 1); }, incrementHours: function () { checkDate('add', 'hours', 1); }, incrementMinutes: function () { checkDate('add', 'minutes', picker.options.minuteStepping); }, incrementSeconds: function () { checkDate('add', 'seconds', 1); }, decrementYears: function () { checkDate('subtract', 'years', 1); }, decrementMonths: function () { checkDate('subtract', 'months', 1); }, decrementWeeks: function () { checkDate('subtract', 'weeks', 1); }, decrementDays: function () { checkDate('subtract', 'days', 1); }, decrementHours: function () { checkDate('subtract', 'hours', 1); }, decrementMinutes: function () { checkDate('subtract', 'minutes', picker.options.minuteStepping); }, decrementSeconds: function () { checkDate('subtract', 'seconds', 1); }, startOfMonth: function () { picker.setValue(moment().startOf('month')); }, endOfMonth: function () { picker.setValue(moment().endOf('month')); }, startOfCurrentMonth: function () { picker.setValue(moment(picker.date).startOf('month')); }, endOfCurrentMonth: function () { picker.setValue(moment(picker.date).endOf('month')); }, togglePeriod: function () { var hour = picker.date.hours(); if (hour >= 12) { hour -= 12; } else { hour += 12; } picker.date.hours(hour); }, showPicker: function () { picker.widget.find('.timepicker > div:not(.timepicker-picker)').hide(); picker.widget.find('.timepicker .timepicker-picker').show(); }, showHours: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-hours').show(); }, showMinutes: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-minutes').show(); }, showSeconds: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-seconds').show(); }, selectHour: function (e) { var hour = parseInt($(e.target).text(), 10); if (!picker.use24hours) { if (picker.date.hours() >= 12) { if (hour !== 12) { hour += 12; } } else { if (hour === 12) { hour = 0; } } } picker.date.hours(hour); actions.showPicker.call(picker); }, selectMinute: function (e) { picker.date.minutes(parseInt($(e.target).text(), 10)); actions.showPicker.call(picker); }, selectSecond: function (e) { picker.date.seconds(parseInt($(e.target).text(), 10)); actions.showPicker.call(picker); }, toggleDateTimePicker: function (e) { var toggleElement = picker.widget.find('.accordion-toggle')[0]; $(toggleElement).trigger('click.togglePicker'); } }, doAction = function (e) { var oldDate = moment(picker.date), action = $(e.currentTarget).data('action') || e.action, rv = actions[action].apply(picker, arguments); stopEvent(e); if (!picker.date) { picker.date = moment({y: 1970}); } set(); fillTime(); notifyChange(oldDate, e.type); picker.element.trigger({ type: 'dp.action', picker: picker, date: picker.date, action: action }); return rv; }, stopEvent = function (e) { e.stopPropagation(); e.preventDefault(); }, keydown = function (e) { if (e.keyCode === 27) { picker.hide(); } }, change = function (e) { moment.locale(picker.options.language); var input = $(e.target), oldDate = moment(picker.date), newDate = moment(input.val(), picker.format, picker.options.useStrict); if (newDate.isValid() && !isInDisableDates(newDate) && isInEnableDates(newDate)) { update(); picker.setValue(newDate); notifyChange(oldDate, e.type); set(); } else { picker.viewDate = oldDate; picker.unset = true; notifyChange(oldDate, e.type); notifyError(newDate); } }, showMode = function (dir) { if (dir) { picker.viewMode = Math.max(picker.minViewMode, Math.min(2, picker.viewMode + dir)); } picker.widget.find('.datepicker > div').hide().filter('.datepicker-' + dpGlobal.modes[picker.viewMode].clsName).show(); }, attachDatePickerEvents = function () { var $this, $parent, expanded, closed, collapseData; picker.widget.on('click', '.datepicker *', $.proxy(click, this)); picker.widget.on('click', '[data-action]', $.proxy(doAction, this)); picker.widget.on('mousedown', $.proxy(stopEvent, this)); picker.element.on('keydown', $.proxy(keydown, this)); picker.widget.on('doAction', $.proxy(doAction, this)); if (picker.options.pickDate && picker.options.pickTime) { picker.widget.on('click.togglePicker', '.accordion-toggle', function (e) { e.stopPropagation(); $this = $(this); $parent = $this.closest('ul'); expanded = $parent.find('.in'); closed = $parent.find('.collapse:not(.in)'); if (expanded && expanded.length) { collapseData = expanded.data('collapse'); if (collapseData && collapseData.transitioning) { return; } expanded.collapse('hide'); closed.collapse('show'); $this.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); if (picker.component) { picker.component.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); } } picker.element.trigger({ type: 'dp.toggle' }); }); } if (picker.isInput) { picker.element.on({ 'click': $.proxy(picker.show, this), 'focus': $.proxy(picker.show, this), 'change': $.proxy(change, this), 'blur': $.proxy(picker.hide, this) }); } else { picker.element.on({ 'change': $.proxy(change, this) }, 'input'); if (picker.component) { picker.component.on('click', $.proxy(picker.show, this)); picker.component.on('mousedown', $.proxy(stopEvent, this)); } else { picker.element.on('click', $.proxy(picker.show, this)); } } }, attachDatePickerGlobalEvents = function () { $(window).on( 'resize.datetimepicker' + picker.id, $.proxy(place, this)); if (!picker.isInput) { $(document).on( 'mousedown.datetimepicker' + picker.id, $.proxy(picker.hide, this)); } }, detachDatePickerEvents = function () { picker.widget.off('click', '.datepicker *', picker.click); picker.widget.off('click', '[data-action]'); picker.widget.off('mousedown', picker.stopEvent); if (picker.options.pickDate && picker.options.pickTime) { picker.widget.off('click.togglePicker'); } if (picker.isInput) { picker.element.off({ 'focus': picker.show, 'change': change, 'click': picker.show, 'blur' : picker.hide }); } else { picker.element.off({ 'change': change }, 'input'); if (picker.component) { picker.component.off('click', picker.show); picker.component.off('mousedown', picker.stopEvent); } else { picker.element.off('click', picker.show); } } }, detachDatePickerGlobalEvents = function () { $(window).off('resize.datetimepicker' + picker.id); if (!picker.isInput) { $(document).off('mousedown.datetimepicker' + picker.id); } }, isInFixed = function () { if (picker.element) { var parents = picker.element.parents(), inFixed = false, i; for (i = 0; i < parents.length; i++) { if ($(parents[i]).css('position') === 'fixed') { inFixed = true; break; } } return inFixed; } else { return false; } }, set = function () { moment.locale(picker.options.language); var formatted = ''; if (!picker.unset) { formatted = moment(picker.date).format(picker.format); } getPickerInput().val(formatted); picker.element.data('date', formatted); }, checkDate = function (direction, unit, amount) { moment.locale(picker.options.language); var newDate; if (direction === 'add') { newDate = moment(picker.date); if (newDate.hours() === 23) { newDate.add(amount, unit); } newDate.add(amount, unit); } else { newDate = moment(picker.date).subtract(amount, unit); } if (isInDisableDates(moment(newDate.subtract(amount, unit))) || isInDisableDates(newDate)) { notifyError(newDate.format(picker.format)); return; } if (direction === 'add') { picker.date.add(amount, unit); } else { picker.date.subtract(amount, unit); } picker.unset = false; }, isInDisableDates = function (date, timeUnit) { moment.locale(picker.options.language); var maxDate = moment(picker.options.maxDate, picker.format, picker.options.useStrict), minDate = moment(picker.options.minDate, picker.format, picker.options.useStrict); if (timeUnit) { maxDate = maxDate.endOf(timeUnit); minDate = minDate.startOf(timeUnit); } if (date.isAfter(maxDate) || date.isBefore(minDate)) { return true; } if (picker.options.disabledDates === false) { return false; } return picker.options.disabledDates[date.format('YYYY-MM-DD')] === true; }, isInEnableDates = function (date) { moment.locale(picker.options.language); if (picker.options.enabledDates === false) { return true; } return picker.options.enabledDates[date.format('YYYY-MM-DD')] === true; }, indexGivenDates = function (givenDatesArray) { var givenDatesIndexed = {}, givenDatesCount = 0, i; for (i = 0; i < givenDatesArray.length; i++) { if (moment.isMoment(givenDatesArray[i]) || givenDatesArray[i] instanceof Date) { dDate = moment(givenDatesArray[i]); } else { dDate = moment(givenDatesArray[i], picker.format, picker.options.useStrict); } if (dDate.isValid()) { givenDatesIndexed[dDate.format('YYYY-MM-DD')] = true; givenDatesCount++; } } if (givenDatesCount > 0) { return givenDatesIndexed; } return false; }, padLeft = function (string) { string = string.toString(); if (string.length >= 2) { return string; } return '0' + string; }, getTemplate = function () { var headTemplate = '<thead>' + '<tr>' + '<th class="prev">‹</th><th colspan="' + (picker.options.calendarWeeks ? '6' : '5') + '" class="picker-switch"></th><th class="next">›</th>' + '</tr>' + '</thead>', contTemplate = '<tbody><tr><td colspan="' + (picker.options.calendarWeeks ? '8' : '7') + '"></td></tr></tbody>', template = '<div class="datepicker-days">' + '<table class="table-condensed">' + headTemplate + '<tbody></tbody></table>' + '</div>' + '<div class="datepicker-months">' + '<table class="table-condensed">' + headTemplate + contTemplate + '</table>' + '</div>' + '<div class="datepicker-years">' + '<table class="table-condensed">' + headTemplate + contTemplate + '</table>' + '</div>', ret = ''; if (picker.options.pickDate && picker.options.pickTime) { ret = '<div role="application" class="bootstrap-datetimepicker-widget' + (picker.options.sideBySide ? ' timepicker-sbs' : '') + (picker.use24hours ? ' usetwentyfour' : '') + ' dropdown-menu" style="z-index:9999 !important;">'; if (picker.options.sideBySide) { ret += '<div class="row">' + '<div class="col-sm-6 datepicker">' + template + '</div>' + '<div class="col-sm-6 timepicker">' + tpGlobal.getTemplate() + '</div>' + '</div>'; } else { ret += '<ul class="list-unstyled">' + '<li' + (picker.options.collapse ? ' class="collapse in"' : '') + '>' + '<div class="datepicker">' + template + '</div>' + '</li>' + '<li class="picker-switch accordion-toggle"><a href="#" data-action="toggleDateTimePicker" class="btn" style="width:100%"><span class="' + picker.options.icons.time + '"></span></a></li>' + '<li' + (picker.options.collapse ? ' class="collapse"' : '') + '>' + '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + '</li>' + '</ul>'; } ret += '</div>'; return ret; } if (picker.options.pickTime) { return ( '<div role="application" class="bootstrap-datetimepicker-widget dropdown-menu">' + '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + '</div>' ); } return ( '<div role="application" class="bootstrap-datetimepicker-widget dropdown-menu">' + '<div class="datepicker">' + template + '</div>' + '</div>' ); }, dpGlobal = { modes: [ { clsName: 'days', navFnc: 'month', navStep: 1 }, { clsName: 'months', navFnc: 'year', navStep: 1 }, { clsName: 'years', navFnc: 'year', navStep: 10 } ] }, tpGlobal = { hourTemplate: '<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>', minuteTemplate: '<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>', secondTemplate: '<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>' }; tpGlobal.getTemplate = function () { return ( '<div class="timepicker-picker">' + '<table class="table-condensed">' + '<tr>' + '<td><a href="#" class="btn" data-action="incrementHours"><span class="' + picker.options.icons.up + '"></span></a></td>' + '<td class="separator"></td>' + '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="incrementMinutes"><span class="' + picker.options.icons.up + '"></span></a>' : '') + '</td>' + (picker.options.useSeconds ? '<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="' + picker.options.icons.up + '"></span></a></td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>') + '</tr>' + '<tr>' + '<td>' + tpGlobal.hourTemplate + '</td> ' + '<td class="separator">:</td>' + '<td>' + (picker.options.useMinutes ? tpGlobal.minuteTemplate : '<span class="timepicker-minute">00</span>') + '</td> ' + (picker.options.useSeconds ? '<td class="separator">:</td><td>' + tpGlobal.secondTemplate + '</td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>' + '<td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>') + '</tr>' + '<tr>' + '<td><a href="#" class="btn" data-action="decrementHours"><span class="' + picker.options.icons.down + '"></span></a></td>' + '<td class="separator"></td>' + '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="decrementMinutes"><span class="' + picker.options.icons.down + '"></span></a>' : '') + '</td>' + (picker.options.useSeconds ? '<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="' + picker.options.icons.down + '"></span></a></td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>') + '</tr>' + '</table>' + '</div>' + '<div class="timepicker-hours" data-action="selectHour">' + '<table class="table-condensed"></table>' + '</div>' + '<div class="timepicker-minutes" data-action="selectMinute">' + '<table class="table-condensed"></table>' + '</div>' + (picker.options.useSeconds ? '<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>' : '') ); }; picker.destroy = function () { detachDatePickerEvents(); detachDatePickerGlobalEvents(); picker.widget.remove(); picker.element.removeData('DateTimePicker'); if (picker.component) { picker.component.removeData('DateTimePicker'); } }; picker.place = function() { place(); }; picker.show = function (e) { if (getPickerInput().prop('disabled')) { return; } if (picker.options.useCurrent) { if (getPickerInput().val() === '') { if (picker.options.minuteStepping !== 1) { var mDate = moment(), rInterval = picker.options.minuteStepping; mDate.minutes((Math.round(mDate.minutes() / rInterval) * rInterval) % 60).seconds(0); picker.setValue(mDate.format(picker.format)); } else { picker.setValue(moment().format(picker.format)); } notifyChange('', e.type); } } if (e && e.type === 'click' && picker.isInput && picker.widget.hasClass('picker-open')) { return; } if (picker.widget.hasClass('picker-open')) { picker.widget.hide(); picker.widget.removeClass('picker-open'); } else { picker.widget.show(); picker.widget.addClass('picker-open'); } picker.height = picker.component ? picker.component.outerHeight() : picker.element.outerHeight(); place(); picker.element.trigger({ type: 'dp.show', date: moment(picker.date) }); attachDatePickerGlobalEvents(); if (e) { stopEvent(e); } }; picker.disable = function () { var input = getPickerInput(); if (input.prop('disabled')) { return; } input.prop('disabled', true); detachDatePickerEvents(); }; picker.enable = function () { var input = getPickerInput(); if (!input.prop('disabled')) { return; } input.prop('disabled', false); attachDatePickerEvents(); }; picker.hide = function () { var collapse = picker.widget.find('.collapse'), i, collapseData; for (i = 0; i < collapse.length; i++) { collapseData = collapse.eq(i).data('collapse'); if (collapseData && collapseData.transitioning) { return; } } picker.widget.hide(); picker.widget.removeClass('picker-open'); picker.viewMode = picker.startViewMode; showMode(); picker.element.trigger({ type: 'dp.hide', date: moment(picker.date) }); detachDatePickerGlobalEvents(); }; picker.setValue = function (newDate) { moment.locale(picker.options.language); if (!newDate) { picker.unset = true; set(); } else { picker.unset = false; } if (!moment.isMoment(newDate)) { newDate = (newDate instanceof Date) ? moment(newDate) : moment(newDate, picker.format, picker.options.useStrict); } else { newDate = newDate.locale(picker.options.language); } if (newDate.isValid()) { picker.date = newDate; set(); picker.viewDate = moment({y: picker.date.year(), M: picker.date.month()}); fillDate(); fillTime(); } else { notifyError(newDate); } }; picker.getDate = function () { if (picker.unset) { return null; } return moment(picker.date); }; picker.setDate = function (date) { var oldDate = moment(picker.date); if (!date) { picker.setValue(null); } else { picker.setValue(date); } notifyChange(oldDate, 'function'); }; picker.setDisabledDates = function (dates) { picker.options.disabledDates = indexGivenDates(dates); if (picker.viewDate) { update(); } }; picker.setEnabledDates = function (dates) { picker.options.enabledDates = indexGivenDates(dates); if (picker.viewDate) { update(); } }; picker.setMaxDate = function (date) { if (date === undefined) { return; } if (moment.isMoment(date) || date instanceof Date) { picker.options.maxDate = moment(date); } else { picker.options.maxDate = moment(date, picker.format, picker.options.useStrict); } if (picker.viewDate) { update(); } }; picker.setMinDate = function (date) { if (date === undefined) { return; } if (moment.isMoment(date) || date instanceof Date) { picker.options.minDate = moment(date); } else { picker.options.minDate = moment(date, picker.format, picker.options.useStrict); } if (picker.viewDate) { update(); } }; init(); }; $.fn.datetimepicker = function (options) { return this.each(function () { var $this = $(this), data = $this.data('DateTimePicker'); if (!data) { $this.data('DateTimePicker', new DateTimePicker(this, options)); } }); }; $.fn.datetimepicker.defaults = { format: false, pickDate: true, pickTime: true, useMinutes: true, useSeconds: false, useCurrent: true, calendarWeeks: false, minuteStepping: 1, minDate: moment({y: 1900}), maxDate: moment().add(100, 'y'), showToday: true, collapse: true, language: moment.locale(), defaultDate: '', disabledDates: false, enabledDates: false, icons: {}, useStrict: false, direction: 'auto', sideBySide: false, daysOfWeekDisabled: [], widgetParent: false }; })); !function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=r({},b),a[L]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);V(b);for(var f in this)"_"===f.charAt(0)&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:P,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),T.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){v&&v.state!==a&&(h(v,"display",a?"none":""),!a&&v.state&&w.insertBefore(v,s),v.state=a)}function c(a,b,c){if(a){c=c||N,b=b.split(".");var d=b.shift().toUpperCase(),e=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");do if(">*"===d&&a.parentNode===c||(""===d||a.nodeName.toUpperCase()==d)&&(!b.length||((" "+a.className+" ").match(e)||[]).length==b.length))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(K," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(K," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return N.defaultView&&N.defaultView.getComputedStyle?c=N.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){var h=N.createEvent("Event"),i=(a||b[L]).options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=v,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f){var g,h,i=a[L],j=i.options.onMove;return g=N.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),j&&(h=j.call(i,g)),h}function l(a){a.draggable=!1}function m(){R=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a){var b=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&b++;return b}function q(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function r(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J={},K=/\s+/g,L="Sortable"+(new Date).getTime(),M=window,N=M.document,O=M.parseInt,P=!!("draggable"in N.createElement("div")),Q=function(a){return a=N.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),R=!1,S=Math.abs,T=([].slice,[]),U=q(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(z!==c&&(y=b.scroll,z=c,y===!0)){y=c;do if(y.offsetWidth<y.scrollWidth||y.offsetHeight<y.scrollHeight)break;while(y=y.parentNode)}y&&(d=y,e=y.getBoundingClientRect(),f=(S(e.right-j)<=h)-(S(e.left-j)<=h),g=(S(e.bottom-k)<=h)-(S(e.top-k)<=h)),f||g||(f=(h>=l-j)-(h>=j),g=(h>=m-k)-(h>=k),(f||g)&&(d=M)),(J.vx!==f||J.vy!==g||J.el!==d)&&(J.el=d,J.vx=f,J.vy=g,clearInterval(J.pid),d&&(J.pid=setInterval(function(){d===M?M.scrollTo(M.pageXOffset+f*i,M.pageYOffset+g*i):(g&&(d.scrollTop+=g*i),f&&(d.scrollLeft+=f*i))},24)))}},30),V=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return a.prototype={constructor:a,_onTapStart:function(a){var b=this,d=this.el,e=this.options,f=a.type,g=a.touches&&a.touches[0],h=(g||a).target,i=h,k=e.filter;if(!("mousedown"===f&&0!==a.button||e.disabled)&&(h=c(h,e.draggable,d))){if(D=p(h),"function"==typeof k){if(k.call(this,a,h,this))return j(b,i,"filter",h,d,D),void a.preventDefault()}else if(k&&(k=k.split(",").some(function(a){return a=c(i,a.trim(),d),a?(j(b,a,"filter",h,d,D),!0):void 0})))return void a.preventDefault();(!e.handle||c(i,e.handle,d))&&this._prepareDragStart(a,g,h)}},_prepareDragStart:function(a,b,c){var d,f=this,h=f.el,j=f.options,k=h.ownerDocument;c&&!s&&c.parentNode===h&&(G=a,w=h,s=c,t=s.parentNode,x=s.nextSibling,F=j.group,d=function(){f._disableDelayedDrag(),s.draggable=!0,g(s,f.options.chosenClass,!0),f._triggerDragStart(b)},j.ignore.split(",").forEach(function(a){i(s,a.trim(),l)}),e(k,"mouseup",f._onDrop),e(k,"touchend",f._onDrop),e(k,"touchcancel",f._onDrop),j.delay?(e(k,"mouseup",f._disableDelayedDrag),e(k,"touchend",f._disableDelayedDrag),e(k,"touchcancel",f._disableDelayedDrag),e(k,"mousemove",f._disableDelayedDrag),e(k,"touchmove",f._disableDelayedDrag),f._dragStartTimer=setTimeout(d,j.delay)):d())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(G={target:s,clientX:a.clientX,clientY:a.clientY},this._onDragStart(G,"touch")):this.nativeDraggable?(e(s,"dragend",this),e(w,"dragstart",this._onDragStart)):this._onDragStart(G,!0);try{N.selection?N.selection.empty():window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){w&&s&&(g(s,this.options.ghostClass,!0),a.active=this,j(this,w,"start",s,w,D))},_emulateDragOver:function(){if(H){if(this._lastX===H.clientX&&this._lastY===H.clientY)return;this._lastX=H.clientX,this._lastY=H.clientY,Q||h(u,"display","none");var a=N.elementFromPoint(H.clientX,H.clientY),b=a,c=" "+this.options.group.name,d=T.length;if(b)do{if(b[L]&&b[L].options.groups.indexOf(c)>-1){for(;d--;)T[d]({clientX:H.clientX,clientY:H.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);Q||h(u,"display","")}},_onTouchMove:function(b){if(G){a.active||this._dragStarted(),this._appendGhost();var c=b.touches?b.touches[0]:b,d=c.clientX-G.clientX,e=c.clientY-G.clientY,f=b.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";I=!0,H=c,h(u,"webkitTransform",f),h(u,"mozTransform",f),h(u,"msTransform",f),h(u,"transform",f),b.preventDefault()}},_appendGhost:function(){if(!u){var a,b=s.getBoundingClientRect(),c=h(s),d=this.options;u=s.cloneNode(!0),g(u,d.ghostClass,!1),g(u,d.fallbackClass,!0),h(u,"top",b.top-O(c.marginTop,10)),h(u,"left",b.left-O(c.marginLeft,10)),h(u,"width",b.width),h(u,"height",b.height),h(u,"opacity","0.8"),h(u,"position","fixed"),h(u,"zIndex","100000"),h(u,"pointerEvents","none"),d.fallbackOnBody&&N.body.appendChild(u)||w.appendChild(u),a=u.getBoundingClientRect(),h(u,"width",2*b.width-a.width),h(u,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==F.pull&&(v=s.cloneNode(!0),h(v,"display","none"),w.insertBefore(v,s)),b?("touch"===b?(e(N,"touchmove",this._onTouchMove),e(N,"touchend",this._onDrop),e(N,"touchcancel",this._onDrop)):(e(N,"mousemove",this._onTouchMove),e(N,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,s)),e(N,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(a){var d,e,f,g=this.el,i=this.options,j=i.group,l=j.put,o=F===j,p=i.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!i.dragoverBubble&&a.stopPropagation()),I=!0,F&&!i.disabled&&(o?p||(f=!w.contains(s)):F.pull&&l&&(F.name===j.name||l.indexOf&&~l.indexOf(F.name)))&&(void 0===a.rootEl||a.rootEl===this.el)){if(U(a,i,this.el),R)return;if(d=c(a.target,i.draggable,g),e=s.getBoundingClientRect(),f)return b(!0),void(v||x?w.insertBefore(s,v||x):p||w.appendChild(s));if(0===g.children.length||g.children[0]===u||g===a.target&&(d=n(g,a))){if(d){if(d.animated)return;r=d.getBoundingClientRect()}b(o),k(w,g,s,e,d,r)!==!1&&(s.contains(g)||(g.appendChild(s),t=g),this._animate(e,s),d&&this._animate(r,d))}else if(d&&!d.animated&&d!==s&&void 0!==d.parentNode[L]){A!==d&&(A=d,B=h(d),C=h(d.parentNode));var q,r=d.getBoundingClientRect(),y=r.right-r.left,z=r.bottom-r.top,D=/left|right|inline/.test(B.cssFloat+B.display)||"flex"==C.display&&0===C["flex-direction"].indexOf("row"),E=d.offsetWidth>s.offsetWidth,G=d.offsetHeight>s.offsetHeight,H=(D?(a.clientX-r.left)/y:(a.clientY-r.top)/z)>.5,J=d.nextElementSibling,K=k(w,g,s,e,d,r);if(K!==!1){if(R=!0,setTimeout(m,30),b(o),1===K||-1===K)q=1===K;else if(D){var M=s.offsetTop,N=d.offsetTop;q=M===N?d.previousElementSibling===s&&!E||H&&E:N>M}else q=J!==s&&!G||H&&G;s.contains(g)||(q&&!J?g.appendChild(s):d.parentNode.insertBefore(s,q?J:d)),t=s.parentNode,this._animate(e,s),this._animate(r,d)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(N,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(J.pid),clearTimeout(this._dragStartTimer),f(N,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(N,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(I&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),u&&u.parentNode.removeChild(u),s&&(this.nativeDraggable&&f(s,"dragend",this),l(s),g(s,this.options.ghostClass,!1),g(s,this.options.chosenClass,!1),w!==t?(E=p(s),E>=0&&(j(null,t,"sort",s,w,D,E),j(this,w,"sort",s,w,D,E),j(null,t,"add",s,w,D,E),j(this,w,"remove",s,w,D,E))):(v&&v.parentNode.removeChild(v),s.nextSibling!==x&&(E=p(s),E>=0&&(j(this,w,"update",s,w,D,E),j(this,w,"sort",s,w,D,E)))),a.active&&((null===E||-1===E)&&(E=D),j(this,w,"end",s,w,D,E),this.save())),w=s=t=u=x=v=y=z=G=H=I=E=A=B=F=a.active=null)},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?s&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&V(c)))},destroy:function(){var a=this.el;a[L]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),T.splice(T.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:r,throttle:q,closest:c,toggleClass:g,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.4.2",a}); (function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function r(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&t(n[r],r,n)!==!1;);return n}function e(n,t){for(var r=null==n?0:n.length;r--&&t(n[r],r,n)!==!1;);return n}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1; return!0}function i(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function o(n,t){return!!(null==n?0:n.length)&&y(n,t,0)>-1}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function c(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function a(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function l(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n); return r}function s(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}function p(n){return n.split("")}function _(n){return n.match($t)||[]}function v(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,!1}),e}function g(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function y(n,t,r){return t===t?Z(n,t,r):g(n,b,r)}function d(n,t,r,e){ for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function b(n){return n!==n}function w(n,t){var r=null==n?0:n.length;return r?k(n,t)/r:Cn}function m(n){return function(t){return null==t?X:t[n]}}function x(n){return function(t){return null==n?X:n[t]}}function j(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)}),r}function A(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}function k(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==X&&(r=r===X?i:r+i); }return r}function O(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function I(n,t){return c(t,function(t){return[t,n[t]]})}function R(n){return n?n.slice(0,H(n)+1).replace(Lt,""):n}function z(n){return function(t){return n(t)}}function E(n,t){return c(t,function(t){return n[t]})}function S(n,t){return n.has(t)}function W(n,t){for(var r=-1,e=n.length;++r<e&&y(t,n[r],0)>-1;);return r}function L(n,t){for(var r=n.length;r--&&y(t,n[r],0)>-1;);return r}function C(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e; return e}function U(n){return"\\"+Yr[n]}function B(n,t){return null==n?X:n[t]}function T(n){return Nr.test(n)}function $(n){return Pr.test(n)}function D(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function M(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function F(n,t){return function(r){return n(t(r))}}function N(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==cn||(n[r]=cn,i[u++]=r)}return i}function P(n){var t=-1,r=Array(n.size); return n.forEach(function(n){r[++t]=n}),r}function q(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function Z(n,t,r){for(var e=r-1,u=n.length;++e<u;)if(n[e]===t)return e;return-1}function K(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}function V(n){return T(n)?J(n):_e(n)}function G(n){return T(n)?Y(n):p(n)}function H(n){for(var t=n.length;t--&&Ct.test(n.charAt(t)););return t}function J(n){for(var t=Mr.lastIndex=0;Mr.test(n);)++t;return t}function Y(n){return n.match(Mr)||[]; }function Q(n){return n.match(Fr)||[]}var X,nn="4.17.21",tn=200,rn="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",en="Expected a function",un="Invalid `variable` option passed into `_.template`",on="__lodash_hash_undefined__",fn=500,cn="__lodash_placeholder__",an=1,ln=2,sn=4,hn=1,pn=2,_n=1,vn=2,gn=4,yn=8,dn=16,bn=32,wn=64,mn=128,xn=256,jn=512,An=30,kn="...",On=800,In=16,Rn=1,zn=2,En=3,Sn=1/0,Wn=9007199254740991,Ln=1.7976931348623157e308,Cn=NaN,Un=4294967295,Bn=Un-1,Tn=Un>>>1,$n=[["ary",mn],["bind",_n],["bindKey",vn],["curry",yn],["curryRight",dn],["flip",jn],["partial",bn],["partialRight",wn],["rearg",xn]],Dn="[object Arguments]",Mn="[object Array]",Fn="[object AsyncFunction]",Nn="[object Boolean]",Pn="[object Date]",qn="[object DOMException]",Zn="[object Error]",Kn="[object Function]",Vn="[object GeneratorFunction]",Gn="[object Map]",Hn="[object Number]",Jn="[object Null]",Yn="[object Object]",Qn="[object Promise]",Xn="[object Proxy]",nt="[object RegExp]",tt="[object Set]",rt="[object String]",et="[object Symbol]",ut="[object Undefined]",it="[object WeakMap]",ot="[object WeakSet]",ft="[object ArrayBuffer]",ct="[object DataView]",at="[object Float32Array]",lt="[object Float64Array]",st="[object Int8Array]",ht="[object Int16Array]",pt="[object Int32Array]",_t="[object Uint8Array]",vt="[object Uint8ClampedArray]",gt="[object Uint16Array]",yt="[object Uint32Array]",dt=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,wt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mt=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,jt=RegExp(mt.source),At=RegExp(xt.source),kt=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(St.source),Lt=/^\s+/,Ct=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,$t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/[()=,{}\[\]\/\s]/,Mt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Yt="\\ud800-\\udfff",Qt="\\u0300-\\u036f",Xt="\\ufe20-\\ufe2f",nr="\\u20d0-\\u20ff",tr=Qt+Xt+nr,rr="\\u2700-\\u27bf",er="a-z\\xdf-\\xf6\\xf8-\\xff",ur="\\xac\\xb1\\xd7\\xf7",ir="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",or="\\u2000-\\u206f",fr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cr="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",lr=ur+ir+or+fr,sr="['\u2019]",hr="["+Yt+"]",pr="["+lr+"]",_r="["+tr+"]",vr="\\d+",gr="["+rr+"]",yr="["+er+"]",dr="[^"+Yt+lr+vr+rr+er+cr+"]",br="\\ud83c[\\udffb-\\udfff]",wr="(?:"+_r+"|"+br+")",mr="[^"+Yt+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ar="["+cr+"]",kr="\\u200d",Or="(?:"+yr+"|"+dr+")",Ir="(?:"+Ar+"|"+dr+")",Rr="(?:"+sr+"(?:d|ll|m|re|s|t|ve))?",zr="(?:"+sr+"(?:D|LL|M|RE|S|T|VE))?",Er=wr+"?",Sr="["+ar+"]?",Wr="(?:"+kr+"(?:"+[mr,xr,jr].join("|")+")"+Sr+Er+")*",Lr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ur=Sr+Er+Wr,Br="(?:"+[gr,xr,jr].join("|")+")"+Ur,Tr="(?:"+[mr+_r+"?",_r,xr,jr,hr].join("|")+")",$r=RegExp(sr,"g"),Dr=RegExp(_r,"g"),Mr=RegExp(br+"(?="+br+")|"+Tr+Ur,"g"),Fr=RegExp([Ar+"?"+yr+"+"+Rr+"(?="+[pr,Ar,"$"].join("|")+")",Ir+"+"+zr+"(?="+[pr,Ar+Or,"$"].join("|")+")",Ar+"?"+Or+"+"+Rr,Ar+"+"+zr,Cr,Lr,vr,Br].join("|"),"g"),Nr=RegExp("["+kr+Yt+tr+ar+"]"),Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zr=-1,Kr={}; Kr[at]=Kr[lt]=Kr[st]=Kr[ht]=Kr[pt]=Kr[_t]=Kr[vt]=Kr[gt]=Kr[yt]=!0,Kr[Dn]=Kr[Mn]=Kr[ft]=Kr[Nn]=Kr[ct]=Kr[Pn]=Kr[Zn]=Kr[Kn]=Kr[Gn]=Kr[Hn]=Kr[Yn]=Kr[nt]=Kr[tt]=Kr[rt]=Kr[it]=!1;var Vr={};Vr[Dn]=Vr[Mn]=Vr[ft]=Vr[ct]=Vr[Nn]=Vr[Pn]=Vr[at]=Vr[lt]=Vr[st]=Vr[ht]=Vr[pt]=Vr[Gn]=Vr[Hn]=Vr[Yn]=Vr[nt]=Vr[tt]=Vr[rt]=Vr[et]=Vr[_t]=Vr[vt]=Vr[gt]=Vr[yt]=!0,Vr[Zn]=Vr[Kn]=Vr[it]=!1;var Gr={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a", "\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae", "\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g", "\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O", "\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w", "\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},Hr={"&":"&","<":"<",">":">",'"':""","'":"'"},Jr={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qr=parseFloat,Xr=parseInt,ne="object"==typeof global&&global&&global.Object===Object&&global,te="object"==typeof self&&self&&self.Object===Object&&self,re=ne||te||Function("return this")(),ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,ue=ee&&"object"==typeof module&&module&&!module.nodeType&&module,ie=ue&&ue.exports===ee,oe=ie&&ne.process,fe=function(){ try{var n=ue&&ue.require&&ue.require("util").types;return n?n:oe&&oe.binding&&oe.binding("util")}catch(n){}}(),ce=fe&&fe.isArrayBuffer,ae=fe&&fe.isDate,le=fe&&fe.isMap,se=fe&&fe.isRegExp,he=fe&&fe.isSet,pe=fe&&fe.isTypedArray,_e=m("length"),ve=x(Gr),ge=x(Hr),ye=x(Jr),de=function p(x){function Z(n){if(cc(n)&&!bh(n)&&!(n instanceof Ct)){if(n instanceof Y)return n;if(bl.call(n,"__wrapped__"))return eo(n)}return new Y(n)}function J(){}function Y(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t, this.__index__=0,this.__values__=X}function Ct(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Un,this.__views__=[]}function $t(){var n=new Ct(this.__wrapped__);return n.__actions__=Tu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tu(this.__views__),n}function Yt(){if(this.__filtered__){var n=new Ct(this);n.__dir__=-1, n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Qt(){var n=this.__wrapped__.value(),t=this.__dir__,r=bh(n),e=t<0,u=r?n.length:0,i=Oi(0,u,this.__views__),o=i.start,f=i.end,c=f-o,a=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=Hl(c,this.__takeCount__);if(!r||!e&&u==c&&p==c)return wu(n,this.__actions__);var _=[];n:for(;c--&&h<p;){a+=t;for(var v=-1,g=n[a];++v<s;){var y=l[v],d=y.iteratee,b=y.type,w=d(g);if(b==zn)g=w;else if(!w){if(b==Rn)continue n;break n}}_[h++]=g}return _}function Xt(n){ var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function nr(){this.__data__=is?is(null):{},this.size=0}function tr(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function rr(n){var t=this.__data__;if(is){var r=t[n];return r===on?X:r}return bl.call(t,n)?t[n]:X}function er(n){var t=this.__data__;return is?t[n]!==X:bl.call(t,n)}function ur(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=is&&t===X?on:t,this}function ir(n){ var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function or(){this.__data__=[],this.size=0}function fr(n){var t=this.__data__,r=Wr(t,n);return!(r<0)&&(r==t.length-1?t.pop():Ll.call(t,r,1),--this.size,!0)}function cr(n){var t=this.__data__,r=Wr(t,n);return r<0?X:t[r][1]}function ar(n){return Wr(this.__data__,n)>-1}function lr(n,t){var r=this.__data__,e=Wr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this}function sr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){ var e=n[t];this.set(e[0],e[1])}}function hr(){this.size=0,this.__data__={hash:new Xt,map:new(ts||ir),string:new Xt}}function pr(n){var t=xi(this,n).delete(n);return this.size-=t?1:0,t}function _r(n){return xi(this,n).get(n)}function vr(n){return xi(this,n).has(n)}function gr(n,t){var r=xi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this}function yr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new sr;++t<r;)this.add(n[t])}function dr(n){return this.__data__.set(n,on),this}function br(n){ return this.__data__.has(n)}function wr(n){this.size=(this.__data__=new ir(n)).size}function mr(){this.__data__=new ir,this.size=0}function xr(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r}function jr(n){return this.__data__.get(n)}function Ar(n){return this.__data__.has(n)}function kr(n,t){var r=this.__data__;if(r instanceof ir){var e=r.__data__;if(!ts||e.length<tn-1)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new sr(e)}return r.set(n,t),this.size=r.size,this}function Or(n,t){ var r=bh(n),e=!r&&dh(n),u=!r&&!e&&mh(n),i=!r&&!e&&!u&&Oh(n),o=r||e||u||i,f=o?O(n.length,hl):[],c=f.length;for(var a in n)!t&&!bl.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||Ci(a,c))||f.push(a);return f}function Ir(n){var t=n.length;return t?n[tu(0,t-1)]:X}function Rr(n,t){return Xi(Tu(n),Mr(t,0,n.length))}function zr(n){return Xi(Tu(n))}function Er(n,t,r){(r===X||Gf(n[t],r))&&(r!==X||t in n)||Br(n,t,r)}function Sr(n,t,r){var e=n[t]; bl.call(n,t)&&Gf(e,r)&&(r!==X||t in n)||Br(n,t,r)}function Wr(n,t){for(var r=n.length;r--;)if(Gf(n[r][0],t))return r;return-1}function Lr(n,t,r,e){return ys(n,function(n,u,i){t(e,n,r(n),i)}),e}function Cr(n,t){return n&&$u(t,Pc(t),n)}function Ur(n,t){return n&&$u(t,qc(t),n)}function Br(n,t,r){"__proto__"==t&&Tl?Tl(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function Tr(n,t){for(var r=-1,e=t.length,u=il(e),i=null==n;++r<e;)u[r]=i?X:Mc(n,t[r]);return u}function Mr(n,t,r){return n===n&&(r!==X&&(n=n<=r?n:r), t!==X&&(n=n>=t?n:t)),n}function Fr(n,t,e,u,i,o){var f,c=t&an,a=t&ln,l=t&sn;if(e&&(f=i?e(n,u,i,o):e(n)),f!==X)return f;if(!fc(n))return n;var s=bh(n);if(s){if(f=zi(n),!c)return Tu(n,f)}else{var h=zs(n),p=h==Kn||h==Vn;if(mh(n))return Iu(n,c);if(h==Yn||h==Dn||p&&!i){if(f=a||p?{}:Ei(n),!c)return a?Mu(n,Ur(f,n)):Du(n,Cr(f,n))}else{if(!Vr[h])return i?n:{};f=Si(n,h,c)}}o||(o=new wr);var _=o.get(n);if(_)return _;o.set(n,f),kh(n)?n.forEach(function(r){f.add(Fr(r,t,e,r,n,o))}):jh(n)&&n.forEach(function(r,u){ f.set(u,Fr(r,t,e,u,n,o))});var v=l?a?di:yi:a?qc:Pc,g=s?X:v(n);return r(g||n,function(r,u){g&&(u=r,r=n[u]),Sr(f,u,Fr(r,t,e,u,n,o))}),f}function Nr(n){var t=Pc(n);return function(r){return Pr(r,n,t)}}function Pr(n,t,r){var e=r.length;if(null==n)return!e;for(n=ll(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===X&&!(u in n)||!i(o))return!1}return!0}function Gr(n,t,r){if("function"!=typeof n)throw new pl(en);return Ws(function(){n.apply(X,r)},t)}function Hr(n,t,r,e){var u=-1,i=o,a=!0,l=n.length,s=[],h=t.length; if(!l)return s;r&&(t=c(t,z(r))),e?(i=f,a=!1):t.length>=tn&&(i=S,a=!1,t=new yr(t));n:for(;++u<l;){var p=n[u],_=null==r?p:r(p);if(p=e||0!==p?p:0,a&&_===_){for(var v=h;v--;)if(t[v]===_)continue n;s.push(p)}else i(t,_,e)||s.push(p)}return s}function Jr(n,t){var r=!0;return ys(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Yr(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===X?o===o&&!bc(o):r(o,f)))var f=o,c=i}return c}function ne(n,t,r,e){var u=n.length;for(r=kc(r),r<0&&(r=-r>u?0:u+r), e=e===X||e>u?u:kc(e),e<0&&(e+=u),e=r>e?0:Oc(e);r<e;)n[r++]=t;return n}function te(n,t){var r=[];return ys(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function ee(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=Li),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ee(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function ue(n,t){return n&&bs(n,t,Pc)}function oe(n,t){return n&&ws(n,t,Pc)}function fe(n,t){return i(t,function(t){return uc(n[t])})}function _e(n,t){t=ku(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[no(t[r++])]; return r&&r==e?n:X}function de(n,t,r){var e=t(n);return bh(n)?e:a(e,r(n))}function we(n){return null==n?n===X?ut:Jn:Bl&&Bl in ll(n)?ki(n):Ki(n)}function me(n,t){return n>t}function xe(n,t){return null!=n&&bl.call(n,t)}function je(n,t){return null!=n&&t in ll(n)}function Ae(n,t,r){return n>=Hl(t,r)&&n<Gl(t,r)}function ke(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=il(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,z(t))),s=Hl(p.length,s),l[a]=!r&&(t||u>=120&&p.length>=120)?new yr(a&&p):X}p=n[0]; var _=-1,v=l[0];n:for(;++_<u&&h.length<s;){var g=p[_],y=t?t(g):g;if(g=r||0!==g?g:0,!(v?S(v,y):e(h,y,r))){for(a=i;--a;){var d=l[a];if(!(d?S(d,y):e(n[a],y,r)))continue n}v&&v.push(y),h.push(g)}}return h}function Oe(n,t,r,e){return ue(n,function(n,u,i){t(e,r(n),u,i)}),e}function Ie(t,r,e){r=ku(r,t),t=Gi(t,r);var u=null==t?t:t[no(jo(r))];return null==u?X:n(u,t,e)}function Re(n){return cc(n)&&we(n)==Dn}function ze(n){return cc(n)&&we(n)==ft}function Ee(n){return cc(n)&&we(n)==Pn}function Se(n,t,r,e,u){ return n===t||(null==n||null==t||!cc(n)&&!cc(t)?n!==n&&t!==t:We(n,t,r,e,Se,u))}function We(n,t,r,e,u,i){var o=bh(n),f=bh(t),c=o?Mn:zs(n),a=f?Mn:zs(t);c=c==Dn?Yn:c,a=a==Dn?Yn:a;var l=c==Yn,s=a==Yn,h=c==a;if(h&&mh(n)){if(!mh(t))return!1;o=!0,l=!1}if(h&&!l)return i||(i=new wr),o||Oh(n)?pi(n,t,r,e,u,i):_i(n,t,c,r,e,u,i);if(!(r&hn)){var p=l&&bl.call(n,"__wrapped__"),_=s&&bl.call(t,"__wrapped__");if(p||_){var v=p?n.value():n,g=_?t.value():t;return i||(i=new wr),u(v,g,r,e,i)}}return!!h&&(i||(i=new wr),vi(n,t,r,e,u,i)); }function Le(n){return cc(n)&&zs(n)==Gn}function Ce(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=ll(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++u<i;){f=r[u];var c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===X&&!(c in n))return!1}else{var s=new wr;if(e)var h=e(a,l,c,n,t,s);if(!(h===X?Se(l,a,hn|pn,e,s):h))return!1}}return!0}function Ue(n){return!(!fc(n)||Di(n))&&(uc(n)?kl:Zt).test(to(n))}function Be(n){return cc(n)&&we(n)==nt}function Te(n){return cc(n)&&zs(n)==tt; }function $e(n){return cc(n)&&oc(n.length)&&!!Kr[we(n)]}function De(n){return"function"==typeof n?n:null==n?La:"object"==typeof n?bh(n)?Ze(n[0],n[1]):qe(n):Fa(n)}function Me(n){if(!Mi(n))return Vl(n);var t=[];for(var r in ll(n))bl.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Fe(n){if(!fc(n))return Zi(n);var t=Mi(n),r=[];for(var e in n)("constructor"!=e||!t&&bl.call(n,e))&&r.push(e);return r}function Ne(n,t){return n<t}function Pe(n,t){var r=-1,e=Hf(n)?il(n.length):[];return ys(n,function(n,u,i){ e[++r]=t(n,u,i)}),e}function qe(n){var t=ji(n);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(r){return r===n||Ce(r,n,t)}}function Ze(n,t){return Bi(n)&&Fi(t)?Ni(no(n),t):function(r){var e=Mc(r,n);return e===X&&e===t?Nc(r,n):Se(t,e,hn|pn)}}function Ke(n,t,r,e,u){n!==t&&bs(t,function(i,o){if(u||(u=new wr),fc(i))Ve(n,t,o,r,Ke,e,u);else{var f=e?e(Ji(n,o),i,o+"",n,t,u):X;f===X&&(f=i),Er(n,o,f)}},qc)}function Ve(n,t,r,e,u,i,o){var f=Ji(n,r),c=Ji(t,r),a=o.get(c);if(a)return Er(n,r,a),X;var l=i?i(f,c,r+"",n,t,o):X,s=l===X; if(s){var h=bh(c),p=!h&&mh(c),_=!h&&!p&&Oh(c);l=c,h||p||_?bh(f)?l=f:Jf(f)?l=Tu(f):p?(s=!1,l=Iu(c,!0)):_?(s=!1,l=Wu(c,!0)):l=[]:gc(c)||dh(c)?(l=f,dh(f)?l=Rc(f):fc(f)&&!uc(f)||(l=Ei(c))):s=!1}s&&(o.set(c,l),u(l,c,e,i,o),o.delete(c)),Er(n,r,l)}function Ge(n,t){var r=n.length;if(r)return t+=t<0?r:0,Ci(t,r)?n[t]:X}function He(n,t,r){t=t.length?c(t,function(n){return bh(n)?function(t){return _e(t,1===n.length?n[0]:n)}:n}):[La];var e=-1;return t=c(t,z(mi())),A(Pe(n,function(n,r,u){return{criteria:c(t,function(t){ return t(n)}),index:++e,value:n}}),function(n,t){return Cu(n,t,r)})}function Je(n,t){return Ye(n,t,function(t,r){return Nc(n,r)})}function Ye(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=_e(n,o);r(f,o)&&fu(i,ku(o,n),f)}return i}function Qe(n){return function(t){return _e(t,n)}}function Xe(n,t,r,e){var u=e?d:y,i=-1,o=t.length,f=n;for(n===t&&(t=Tu(t)),r&&(f=c(n,z(r)));++i<o;)for(var a=0,l=t[i],s=r?r(l):l;(a=u(f,s,a,e))>-1;)f!==n&&Ll.call(f,a,1),Ll.call(n,a,1);return n}function nu(n,t){for(var r=n?t.length:0,e=r-1;r--;){ var u=t[r];if(r==e||u!==i){var i=u;Ci(u)?Ll.call(n,u,1):yu(n,u)}}return n}function tu(n,t){return n+Nl(Ql()*(t-n+1))}function ru(n,t,r,e){for(var u=-1,i=Gl(Fl((t-n)/(r||1)),0),o=il(i);i--;)o[e?i:++u]=n,n+=r;return o}function eu(n,t){var r="";if(!n||t<1||t>Wn)return r;do t%2&&(r+=n),t=Nl(t/2),t&&(n+=n);while(t);return r}function uu(n,t){return Ls(Vi(n,t,La),n+"")}function iu(n){return Ir(ra(n))}function ou(n,t){var r=ra(n);return Xi(r,Mr(t,0,r.length))}function fu(n,t,r,e){if(!fc(n))return n;t=ku(t,n); for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=no(t[u]),a=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(u!=o){var l=f[c];a=e?e(l,c,f):X,a===X&&(a=fc(l)?l:Ci(t[u+1])?[]:{})}Sr(f,c,a),f=f[c]}return n}function cu(n){return Xi(ra(n))}function au(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=il(u);++e<u;)i[e]=n[e+t];return i}function lu(n,t){var r;return ys(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function su(n,t,r){ var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=Tn){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!bc(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return hu(n,t,La,r)}function hu(n,t,r,e){var u=0,i=null==n?0:n.length;if(0===i)return 0;t=r(t);for(var o=t!==t,f=null===t,c=bc(t),a=t===X;u<i;){var l=Nl((u+i)/2),s=r(n[l]),h=s!==X,p=null===s,_=s===s,v=bc(s);if(o)var g=e||_;else g=a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):!p&&!v&&(e?s<=t:s<t);g?u=l+1:i=l}return Hl(i,Bn)}function pu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){ var o=n[r],f=t?t(o):o;if(!r||!Gf(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function _u(n){return"number"==typeof n?n:bc(n)?Cn:+n}function vu(n){if("string"==typeof n)return n;if(bh(n))return c(n,vu)+"";if(bc(n))return vs?vs.call(n):"";var t=n+"";return"0"==t&&1/n==-Sn?"-0":t}function gu(n,t,r){var e=-1,u=o,i=n.length,c=!0,a=[],l=a;if(r)c=!1,u=f;else if(i>=tn){var s=t?null:ks(n);if(s)return P(s);c=!1,u=S,l=new yr}else l=t?[]:a;n:for(;++e<i;){var h=n[e],p=t?t(h):h;if(h=r||0!==h?h:0,c&&p===p){for(var _=l.length;_--;)if(l[_]===p)continue n; t&&l.push(p),a.push(h)}else u(l,p,r)||(l!==a&&l.push(p),a.push(h))}return a}function yu(n,t){return t=ku(t,n),n=Gi(n,t),null==n||delete n[no(jo(t))]}function du(n,t,r,e){return fu(n,t,r(_e(n,t)),e)}function bu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?au(n,e?0:i,e?i+1:u):au(n,e?i+1:0,e?u:i)}function wu(n,t){var r=n;return r instanceof Ct&&(r=r.value()),l(t,function(n,t){return t.func.apply(t.thisArg,a([n],t.args))},r)}function mu(n,t,r){var e=n.length;if(e<2)return e?gu(n[0]):[]; for(var u=-1,i=il(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=Hr(i[u]||o,n[f],t,r));return gu(ee(i,1),t,r)}function xu(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;){r(o,n[e],e<i?t[e]:X)}return o}function ju(n){return Jf(n)?n:[]}function Au(n){return"function"==typeof n?n:La}function ku(n,t){return bh(n)?n:Bi(n,t)?[n]:Cs(Ec(n))}function Ou(n,t,r){var e=n.length;return r=r===X?e:r,!t&&r>=e?n:au(n,t,r)}function Iu(n,t){if(t)return n.slice();var r=n.length,e=zl?zl(r):new n.constructor(r); return n.copy(e),e}function Ru(n){var t=new n.constructor(n.byteLength);return new Rl(t).set(new Rl(n)),t}function zu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.byteLength)}function Eu(n){var t=new n.constructor(n.source,Nt.exec(n));return t.lastIndex=n.lastIndex,t}function Su(n){return _s?ll(_s.call(n)):{}}function Wu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.length)}function Lu(n,t){if(n!==t){var r=n!==X,e=null===n,u=n===n,i=bc(n),o=t!==X,f=null===t,c=t===t,a=bc(t); if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Cu(n,t,r){for(var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;++e<o;){var c=Lu(u[e],i[e]);if(c){if(e>=f)return c;return c*("desc"==r[e]?-1:1)}}return n.index-t.index}function Uu(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Gl(i-o,0),l=il(c+a),s=!e;++f<c;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];return l; }function Bu(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Gl(i-f,0),s=il(l+a),h=!e;++u<l;)s[u]=n[u];for(var p=u;++c<a;)s[p+c]=t[c];for(;++o<f;)(h||u<i)&&(s[p+r[o]]=n[u++]);return s}function Tu(n,t){var r=-1,e=n.length;for(t||(t=il(e));++r<e;)t[r]=n[r];return t}function $u(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):X;c===X&&(c=n[f]),u?Br(r,f,c):Sr(r,f,c)}return r}function Du(n,t){return $u(n,Is(n),t)}function Mu(n,t){return $u(n,Rs(n),t); }function Fu(n,r){return function(e,u){var i=bh(e)?t:Lr,o=r?r():{};return i(e,n,mi(u,2),o)}}function Nu(n){return uu(function(t,r){var e=-1,u=r.length,i=u>1?r[u-1]:X,o=u>2?r[2]:X;for(i=n.length>3&&"function"==typeof i?(u--,i):X,o&&Ui(r[0],r[1],o)&&(i=u<3?X:i,u=1),t=ll(t);++e<u;){var f=r[e];f&&n(t,f,e,i)}return t})}function Pu(n,t){return function(r,e){if(null==r)return r;if(!Hf(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=ll(r);(t?i--:++i<u)&&e(o[i],i,o)!==!1;);return r}}function qu(n){return function(t,r,e){ for(var u=-1,i=ll(t),o=e(t),f=o.length;f--;){var c=o[n?f:++u];if(r(i[c],c,i)===!1)break}return t}}function Zu(n,t,r){function e(){return(this&&this!==re&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=t&_n,i=Gu(n);return e}function Ku(n){return function(t){t=Ec(t);var r=T(t)?G(t):X,e=r?r[0]:t.charAt(0),u=r?Ou(r,1).join(""):t.slice(1);return e[n]()+u}}function Vu(n){return function(t){return l(Ra(ca(t).replace($r,"")),n,"")}}function Gu(n){return function(){var t=arguments;switch(t.length){ case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gs(n.prototype),e=n.apply(r,t);return fc(e)?e:r}}function Hu(t,r,e){function u(){for(var o=arguments.length,f=il(o),c=o,a=wi(u);c--;)f[c]=arguments[c];var l=o<3&&f[0]!==a&&f[o-1]!==a?[]:N(f,a); return o-=l.length,o<e?oi(t,r,Qu,u.placeholder,X,f,l,X,X,e-o):n(this&&this!==re&&this instanceof u?i:t,this,f)}var i=Gu(t);return u}function Ju(n){return function(t,r,e){var u=ll(t);if(!Hf(t)){var i=mi(r,3);t=Pc(t),r=function(n){return i(u[n],n,u)}}var o=n(t,r,e);return o>-1?u[i?t[o]:o]:X}}function Yu(n){return gi(function(t){var r=t.length,e=r,u=Y.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if("function"!=typeof i)throw new pl(en);if(u&&!o&&"wrapper"==bi(i))var o=new Y([],!0)}for(e=o?e:r;++e<r;){ i=t[e];var f=bi(i),c="wrapper"==f?Os(i):X;o=c&&$i(c[0])&&c[1]==(mn|yn|bn|xn)&&!c[4].length&&1==c[9]?o[bi(c[0])].apply(o,c[3]):1==i.length&&$i(i)?o[f]():o.thru(i)}return function(){var n=arguments,e=n[0];if(o&&1==n.length&&bh(e))return o.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}})}function Qu(n,t,r,e,u,i,o,f,c,a){function l(){for(var y=arguments.length,d=il(y),b=y;b--;)d[b]=arguments[b];if(_)var w=wi(l),m=C(d,w);if(e&&(d=Uu(d,e,u,_)),i&&(d=Bu(d,i,o,_)), y-=m,_&&y<a){return oi(n,t,Qu,l.placeholder,r,d,N(d,w),f,c,a-y)}var x=h?r:this,j=p?x[n]:n;return y=d.length,f?d=Hi(d,f):v&&y>1&&d.reverse(),s&&c<y&&(d.length=c),this&&this!==re&&this instanceof l&&(j=g||Gu(j)),j.apply(x,d)}var s=t&mn,h=t&_n,p=t&vn,_=t&(yn|dn),v=t&jn,g=p?X:Gu(n);return l}function Xu(n,t){return function(r,e){return Oe(r,n,t(e),{})}}function ni(n,t){return function(r,e){var u;if(r===X&&e===X)return t;if(r!==X&&(u=r),e!==X){if(u===X)return e;"string"==typeof r||"string"==typeof e?(r=vu(r), e=vu(e)):(r=_u(r),e=_u(e)),u=n(r,e)}return u}}function ti(t){return gi(function(r){return r=c(r,z(mi())),uu(function(e){var u=this;return t(r,function(t){return n(t,u,e)})})})}function ri(n,t){t=t===X?" ":vu(t);var r=t.length;if(r<2)return r?eu(t,n):t;var e=eu(t,Fl(n/V(t)));return T(t)?Ou(G(e),0,n).join(""):e.slice(0,n)}function ei(t,r,e,u){function i(){for(var r=-1,c=arguments.length,a=-1,l=u.length,s=il(l+c),h=this&&this!==re&&this instanceof i?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++r]; return n(h,o?e:this,s)}var o=r&_n,f=Gu(t);return i}function ui(n){return function(t,r,e){return e&&"number"!=typeof e&&Ui(t,r,e)&&(r=e=X),t=Ac(t),r===X?(r=t,t=0):r=Ac(r),e=e===X?t<r?1:-1:Ac(e),ru(t,r,e,n)}}function ii(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Ic(t),r=Ic(r)),n(t,r)}}function oi(n,t,r,e,u,i,o,f,c,a){var l=t&yn,s=l?o:X,h=l?X:o,p=l?i:X,_=l?X:i;t|=l?bn:wn,t&=~(l?wn:bn),t&gn||(t&=~(_n|vn));var v=[n,t,u,p,s,_,h,f,c,a],g=r.apply(X,v);return $i(n)&&Ss(g,v),g.placeholder=e, Yi(g,n,t)}function fi(n){var t=al[n];return function(n,r){if(n=Ic(n),r=null==r?0:Hl(kc(r),292),r&&Zl(n)){var e=(Ec(n)+"e").split("e");return e=(Ec(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"),+(e[0]+"e"+(+e[1]-r))}return t(n)}}function ci(n){return function(t){var r=zs(t);return r==Gn?M(t):r==tt?q(t):I(t,n(t))}}function ai(n,t,r,e,u,i,o,f){var c=t&vn;if(!c&&"function"!=typeof n)throw new pl(en);var a=e?e.length:0;if(a||(t&=~(bn|wn),e=u=X),o=o===X?o:Gl(kc(o),0),f=f===X?f:kc(f),a-=u?u.length:0,t&wn){var l=e,s=u; e=u=X}var h=c?X:Os(n),p=[n,t,r,e,u,l,s,i,o,f];if(h&&qi(p,h),n=p[0],t=p[1],r=p[2],e=p[3],u=p[4],f=p[9]=p[9]===X?c?0:n.length:Gl(p[9]-a,0),!f&&t&(yn|dn)&&(t&=~(yn|dn)),t&&t!=_n)_=t==yn||t==dn?Hu(n,t,f):t!=bn&&t!=(_n|bn)||u.length?Qu.apply(X,p):ei(n,t,r,e);else var _=Zu(n,t,r);return Yi((h?ms:Ss)(_,p),n,t)}function li(n,t,r,e){return n===X||Gf(n,gl[r])&&!bl.call(e,r)?t:n}function si(n,t,r,e,u,i){return fc(n)&&fc(t)&&(i.set(t,n),Ke(n,t,X,si,i),i.delete(t)),n}function hi(n){return gc(n)?X:n}function pi(n,t,r,e,u,i){ var o=r&hn,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return!1;var a=i.get(n),l=i.get(t);if(a&&l)return a==t&&l==n;var s=-1,p=!0,_=r&pn?new yr:X;for(i.set(n,t),i.set(t,n);++s<f;){var v=n[s],g=t[s];if(e)var y=o?e(g,v,s,t,n,i):e(v,g,s,n,t,i);if(y!==X){if(y)continue;p=!1;break}if(_){if(!h(t,function(n,t){if(!S(_,t)&&(v===n||u(v,n,r,e,i)))return _.push(t)})){p=!1;break}}else if(v!==g&&!u(v,g,r,e,i)){p=!1;break}}return i.delete(n),i.delete(t),p}function _i(n,t,r,e,u,i,o){switch(r){case ct:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1; n=n.buffer,t=t.buffer;case ft:return!(n.byteLength!=t.byteLength||!i(new Rl(n),new Rl(t)));case Nn:case Pn:case Hn:return Gf(+n,+t);case Zn:return n.name==t.name&&n.message==t.message;case nt:case rt:return n==t+"";case Gn:var f=M;case tt:var c=e&hn;if(f||(f=P),n.size!=t.size&&!c)return!1;var a=o.get(n);if(a)return a==t;e|=pn,o.set(n,t);var l=pi(f(n),f(t),e,u,i,o);return o.delete(n),l;case et:if(_s)return _s.call(n)==_s.call(t)}return!1}function vi(n,t,r,e,u,i){var o=r&hn,f=yi(n),c=f.length;if(c!=yi(t).length&&!o)return!1; for(var a=c;a--;){var l=f[a];if(!(o?l in t:bl.call(t,l)))return!1}var s=i.get(n),h=i.get(t);if(s&&h)return s==t&&h==n;var p=!0;i.set(n,t),i.set(t,n);for(var _=o;++a<c;){l=f[a];var v=n[l],g=t[l];if(e)var y=o?e(g,v,l,t,n,i):e(v,g,l,n,t,i);if(!(y===X?v===g||u(v,g,r,e,i):y)){p=!1;break}_||(_="constructor"==l)}if(p&&!_){var d=n.constructor,b=t.constructor;d!=b&&"constructor"in n&&"constructor"in t&&!("function"==typeof d&&d instanceof d&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(n), i.delete(t),p}function gi(n){return Ls(Vi(n,X,_o),n+"")}function yi(n){return de(n,Pc,Is)}function di(n){return de(n,qc,Rs)}function bi(n){for(var t=n.name+"",r=fs[t],e=bl.call(fs,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function wi(n){return(bl.call(Z,"placeholder")?Z:n).placeholder}function mi(){var n=Z.iteratee||Ca;return n=n===Ca?De:n,arguments.length?n(arguments[0],arguments[1]):n}function xi(n,t){var r=n.__data__;return Ti(t)?r["string"==typeof t?"string":"hash"]:r.map; }function ji(n){for(var t=Pc(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,Fi(u)]}return t}function Ai(n,t){var r=B(n,t);return Ue(r)?r:X}function ki(n){var t=bl.call(n,Bl),r=n[Bl];try{n[Bl]=X;var e=!0}catch(n){}var u=xl.call(n);return e&&(t?n[Bl]=r:delete n[Bl]),u}function Oi(n,t,r){for(var e=-1,u=r.length;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=Hl(t,n+o);break;case"takeRight":n=Gl(n,t-o)}}return{start:n,end:t}}function Ii(n){var t=n.match(Bt); return t?t[1].split(Tt):[]}function Ri(n,t,r){t=ku(t,n);for(var e=-1,u=t.length,i=!1;++e<u;){var o=no(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:(u=null==n?0:n.length,!!u&&oc(u)&&Ci(o,u)&&(bh(n)||dh(n)))}function zi(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&bl.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Ei(n){return"function"!=typeof n.constructor||Mi(n)?{}:gs(El(n))}function Si(n,t,r){var e=n.constructor;switch(t){case ft:return Ru(n); case Nn:case Pn:return new e(+n);case ct:return zu(n,r);case at:case lt:case st:case ht:case pt:case _t:case vt:case gt:case yt:return Wu(n,r);case Gn:return new e;case Hn:case rt:return new e(n);case nt:return Eu(n);case tt:return new e;case et:return Su(n)}}function Wi(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(Ut,"{\n/* [wrapped with "+t+"] */\n")}function Li(n){return bh(n)||dh(n)||!!(Cl&&n&&n[Cl])}function Ci(n,t){var r=typeof n; return t=null==t?Wn:t,!!t&&("number"==r||"symbol"!=r&&Vt.test(n))&&n>-1&&n%1==0&&n<t}function Ui(n,t,r){if(!fc(r))return!1;var e=typeof t;return!!("number"==e?Hf(r)&&Ci(t,r.length):"string"==e&&t in r)&&Gf(r[t],n)}function Bi(n,t){if(bh(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!bc(n))||(zt.test(n)||!Rt.test(n)||null!=t&&n in ll(t))}function Ti(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}function $i(n){ var t=bi(n),r=Z[t];if("function"!=typeof r||!(t in Ct.prototype))return!1;if(n===r)return!0;var e=Os(r);return!!e&&n===e[0]}function Di(n){return!!ml&&ml in n}function Mi(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||gl)}function Fi(n){return n===n&&!fc(n)}function Ni(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==X||n in ll(r)))}}function Pi(n){var t=Cf(n,function(n){return r.size===fn&&r.clear(),n}),r=t.cache;return t}function qi(n,t){var r=n[1],e=t[1],u=r|e,i=u<(_n|vn|mn),o=e==mn&&r==yn||e==mn&&r==xn&&n[7].length<=t[8]||e==(mn|xn)&&t[7].length<=t[8]&&r==yn; if(!i&&!o)return n;e&_n&&(n[2]=t[2],u|=r&_n?0:gn);var f=t[3];if(f){var c=n[3];n[3]=c?Uu(c,f,t[4]):f,n[4]=c?N(n[3],cn):t[4]}return f=t[5],f&&(c=n[5],n[5]=c?Bu(c,f,t[6]):f,n[6]=c?N(n[5],cn):t[6]),f=t[7],f&&(n[7]=f),e&mn&&(n[8]=null==n[8]?t[8]:Hl(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=u,n}function Zi(n){var t=[];if(null!=n)for(var r in ll(n))t.push(r);return t}function Ki(n){return xl.call(n)}function Vi(t,r,e){return r=Gl(r===X?t.length-1:r,0),function(){for(var u=arguments,i=-1,o=Gl(u.length-r,0),f=il(o);++i<o;)f[i]=u[r+i]; i=-1;for(var c=il(r+1);++i<r;)c[i]=u[i];return c[r]=e(f),n(t,this,c)}}function Gi(n,t){return t.length<2?n:_e(n,au(t,0,-1))}function Hi(n,t){for(var r=n.length,e=Hl(t.length,r),u=Tu(n);e--;){var i=t[e];n[e]=Ci(i,r)?u[i]:X}return n}function Ji(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}function Yi(n,t,r){var e=t+"";return Ls(n,Wi(e,ro(Ii(e),r)))}function Qi(n){var t=0,r=0;return function(){var e=Jl(),u=In-(e-r);if(r=e,u>0){if(++t>=On)return arguments[0]}else t=0; return n.apply(X,arguments)}}function Xi(n,t){var r=-1,e=n.length,u=e-1;for(t=t===X?e:t;++r<t;){var i=tu(r,u),o=n[i];n[i]=n[r],n[r]=o}return n.length=t,n}function no(n){if("string"==typeof n||bc(n))return n;var t=n+"";return"0"==t&&1/n==-Sn?"-0":t}function to(n){if(null!=n){try{return dl.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function ro(n,t){return r($n,function(r){var e="_."+r[0];t&r[1]&&!o(n,e)&&n.push(e)}),n.sort()}function eo(n){if(n instanceof Ct)return n.clone();var t=new Y(n.__wrapped__,n.__chain__); return t.__actions__=Tu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function uo(n,t,r){t=(r?Ui(n,t,r):t===X)?1:Gl(kc(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=il(Fl(e/t));u<e;)o[i++]=au(n,u,u+=t);return o}function io(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u}function oo(){var n=arguments.length;if(!n)return[];for(var t=il(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return a(bh(r)?Tu(r):[r],ee(t,1)); }function fo(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),au(n,t<0?0:t,e)):[]}function co(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),t=e-t,au(n,0,t<0?0:t)):[]}function ao(n,t){return n&&n.length?bu(n,mi(t,3),!0,!0):[]}function lo(n,t){return n&&n.length?bu(n,mi(t,3),!0):[]}function so(n,t,r,e){var u=null==n?0:n.length;return u?(r&&"number"!=typeof r&&Ui(n,t,r)&&(r=0,e=u),ne(n,t,r,e)):[]}function ho(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r); return u<0&&(u=Gl(e+u,0)),g(n,mi(t,3),u)}function po(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==X&&(u=kc(r),u=r<0?Gl(e+u,0):Hl(u,e-1)),g(n,mi(t,3),u,!0)}function _o(n){return(null==n?0:n.length)?ee(n,1):[]}function vo(n){return(null==n?0:n.length)?ee(n,Sn):[]}function go(n,t){return(null==n?0:n.length)?(t=t===X?1:kc(t),ee(n,t)):[]}function yo(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e}function bo(n){return n&&n.length?n[0]:X}function wo(n,t,r){ var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r);return u<0&&(u=Gl(e+u,0)),y(n,t,u)}function mo(n){return(null==n?0:n.length)?au(n,0,-1):[]}function xo(n,t){return null==n?"":Kl.call(n,t)}function jo(n){var t=null==n?0:n.length;return t?n[t-1]:X}function Ao(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==X&&(u=kc(r),u=u<0?Gl(e+u,0):Hl(u,e-1)),t===t?K(n,t,u):g(n,b,u,!0)}function ko(n,t){return n&&n.length?Ge(n,kc(t)):X}function Oo(n,t){return n&&n.length&&t&&t.length?Xe(n,t):n; }function Io(n,t,r){return n&&n.length&&t&&t.length?Xe(n,t,mi(r,2)):n}function Ro(n,t,r){return n&&n.length&&t&&t.length?Xe(n,t,X,r):n}function zo(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=mi(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return nu(n,u),r}function Eo(n){return null==n?n:Xl.call(n)}function So(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&Ui(n,t,r)?(t=0,r=e):(t=null==t?0:kc(t),r=r===X?e:kc(r)),au(n,t,r)):[]}function Wo(n,t){ return su(n,t)}function Lo(n,t,r){return hu(n,t,mi(r,2))}function Co(n,t){var r=null==n?0:n.length;if(r){var e=su(n,t);if(e<r&&Gf(n[e],t))return e}return-1}function Uo(n,t){return su(n,t,!0)}function Bo(n,t,r){return hu(n,t,mi(r,2),!0)}function To(n,t){if(null==n?0:n.length){var r=su(n,t,!0)-1;if(Gf(n[r],t))return r}return-1}function $o(n){return n&&n.length?pu(n):[]}function Do(n,t){return n&&n.length?pu(n,mi(t,2)):[]}function Mo(n){var t=null==n?0:n.length;return t?au(n,1,t):[]}function Fo(n,t,r){ return n&&n.length?(t=r||t===X?1:kc(t),au(n,0,t<0?0:t)):[]}function No(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),t=e-t,au(n,t<0?0:t,e)):[]}function Po(n,t){return n&&n.length?bu(n,mi(t,3),!1,!0):[]}function qo(n,t){return n&&n.length?bu(n,mi(t,3)):[]}function Zo(n){return n&&n.length?gu(n):[]}function Ko(n,t){return n&&n.length?gu(n,mi(t,2)):[]}function Vo(n,t){return t="function"==typeof t?t:X,n&&n.length?gu(n,X,t):[]}function Go(n){if(!n||!n.length)return[];var t=0;return n=i(n,function(n){ if(Jf(n))return t=Gl(n.length,t),!0}),O(t,function(t){return c(n,m(t))})}function Ho(t,r){if(!t||!t.length)return[];var e=Go(t);return null==r?e:c(e,function(t){return n(r,X,t)})}function Jo(n,t){return xu(n||[],t||[],Sr)}function Yo(n,t){return xu(n||[],t||[],fu)}function Qo(n){var t=Z(n);return t.__chain__=!0,t}function Xo(n,t){return t(n),n}function nf(n,t){return t(n)}function tf(){return Qo(this)}function rf(){return new Y(this.value(),this.__chain__)}function ef(){this.__values__===X&&(this.__values__=jc(this.value())); var n=this.__index__>=this.__values__.length;return{done:n,value:n?X:this.__values__[this.__index__++]}}function uf(){return this}function of(n){for(var t,r=this;r instanceof J;){var e=eo(r);e.__index__=0,e.__values__=X,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t}function ff(){var n=this.__wrapped__;if(n instanceof Ct){var t=n;return this.__actions__.length&&(t=new Ct(this)),t=t.reverse(),t.__actions__.push({func:nf,args:[Eo],thisArg:X}),new Y(t,this.__chain__)}return this.thru(Eo); }function cf(){return wu(this.__wrapped__,this.__actions__)}function af(n,t,r){var e=bh(n)?u:Jr;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))}function lf(n,t){return(bh(n)?i:te)(n,mi(t,3))}function sf(n,t){return ee(yf(n,t),1)}function hf(n,t){return ee(yf(n,t),Sn)}function pf(n,t,r){return r=r===X?1:kc(r),ee(yf(n,t),r)}function _f(n,t){return(bh(n)?r:ys)(n,mi(t,3))}function vf(n,t){return(bh(n)?e:ds)(n,mi(t,3))}function gf(n,t,r,e){n=Hf(n)?n:ra(n),r=r&&!e?kc(r):0;var u=n.length;return r<0&&(r=Gl(u+r,0)), dc(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&y(n,t,r)>-1}function yf(n,t){return(bh(n)?c:Pe)(n,mi(t,3))}function df(n,t,r,e){return null==n?[]:(bh(t)||(t=null==t?[]:[t]),r=e?X:r,bh(r)||(r=null==r?[]:[r]),He(n,t,r))}function bf(n,t,r){var e=bh(n)?l:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ys)}function wf(n,t,r){var e=bh(n)?s:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ds)}function mf(n,t){return(bh(n)?i:te)(n,Uf(mi(t,3)))}function xf(n){return(bh(n)?Ir:iu)(n)}function jf(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t), (bh(n)?Rr:ou)(n,t)}function Af(n){return(bh(n)?zr:cu)(n)}function kf(n){if(null==n)return 0;if(Hf(n))return dc(n)?V(n):n.length;var t=zs(n);return t==Gn||t==tt?n.size:Me(n).length}function Of(n,t,r){var e=bh(n)?h:lu;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))}function If(n,t){if("function"!=typeof t)throw new pl(en);return n=kc(n),function(){if(--n<1)return t.apply(this,arguments)}}function Rf(n,t,r){return t=r?X:t,t=n&&null==t?n.length:t,ai(n,mn,X,X,X,X,t)}function zf(n,t){var r;if("function"!=typeof t)throw new pl(en); return n=kc(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=X),r}}function Ef(n,t,r){t=r?X:t;var e=ai(n,yn,X,X,X,X,X,t);return e.placeholder=Ef.placeholder,e}function Sf(n,t,r){t=r?X:t;var e=ai(n,dn,X,X,X,X,X,t);return e.placeholder=Sf.placeholder,e}function Wf(n,t,r){function e(t){var r=h,e=p;return h=p=X,d=t,v=n.apply(e,r)}function u(n){return d=n,g=Ws(f,t),b?e(n):v}function i(n){var r=n-y,e=n-d,u=t-r;return w?Hl(u,_-e):u}function o(n){var r=n-y,e=n-d;return y===X||r>=t||r<0||w&&e>=_; }function f(){var n=fh();return o(n)?c(n):(g=Ws(f,i(n)),X)}function c(n){return g=X,m&&h?e(n):(h=p=X,v)}function a(){g!==X&&As(g),d=0,h=y=p=g=X}function l(){return g===X?v:c(fh())}function s(){var n=fh(),r=o(n);if(h=arguments,p=this,y=n,r){if(g===X)return u(y);if(w)return As(g),g=Ws(f,t),e(y)}return g===X&&(g=Ws(f,t)),v}var h,p,_,v,g,y,d=0,b=!1,w=!1,m=!0;if("function"!=typeof n)throw new pl(en);return t=Ic(t)||0,fc(r)&&(b=!!r.leading,w="maxWait"in r,_=w?Gl(Ic(r.maxWait)||0,t):_,m="trailing"in r?!!r.trailing:m), s.cancel=a,s.flush=l,s}function Lf(n){return ai(n,jn)}function Cf(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new pl(en);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Cf.Cache||sr),r}function Uf(n){if("function"!=typeof n)throw new pl(en);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2: return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Bf(n){return zf(2,n)}function Tf(n,t){if("function"!=typeof n)throw new pl(en);return t=t===X?t:kc(t),uu(n,t)}function $f(t,r){if("function"!=typeof t)throw new pl(en);return r=null==r?0:Gl(kc(r),0),uu(function(e){var u=e[r],i=Ou(e,0,r);return u&&a(i,u),n(t,this,i)})}function Df(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new pl(en);return fc(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u), Wf(n,t,{leading:e,maxWait:t,trailing:u})}function Mf(n){return Rf(n,1)}function Ff(n,t){return ph(Au(t),n)}function Nf(){if(!arguments.length)return[];var n=arguments[0];return bh(n)?n:[n]}function Pf(n){return Fr(n,sn)}function qf(n,t){return t="function"==typeof t?t:X,Fr(n,sn,t)}function Zf(n){return Fr(n,an|sn)}function Kf(n,t){return t="function"==typeof t?t:X,Fr(n,an|sn,t)}function Vf(n,t){return null==t||Pr(n,t,Pc(t))}function Gf(n,t){return n===t||n!==n&&t!==t}function Hf(n){return null!=n&&oc(n.length)&&!uc(n); }function Jf(n){return cc(n)&&Hf(n)}function Yf(n){return n===!0||n===!1||cc(n)&&we(n)==Nn}function Qf(n){return cc(n)&&1===n.nodeType&&!gc(n)}function Xf(n){if(null==n)return!0;if(Hf(n)&&(bh(n)||"string"==typeof n||"function"==typeof n.splice||mh(n)||Oh(n)||dh(n)))return!n.length;var t=zs(n);if(t==Gn||t==tt)return!n.size;if(Mi(n))return!Me(n).length;for(var r in n)if(bl.call(n,r))return!1;return!0}function nc(n,t){return Se(n,t)}function tc(n,t,r){r="function"==typeof r?r:X;var e=r?r(n,t):X;return e===X?Se(n,t,X,r):!!e; }function rc(n){if(!cc(n))return!1;var t=we(n);return t==Zn||t==qn||"string"==typeof n.message&&"string"==typeof n.name&&!gc(n)}function ec(n){return"number"==typeof n&&Zl(n)}function uc(n){if(!fc(n))return!1;var t=we(n);return t==Kn||t==Vn||t==Fn||t==Xn}function ic(n){return"number"==typeof n&&n==kc(n)}function oc(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=Wn}function fc(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function cc(n){return null!=n&&"object"==typeof n}function ac(n,t){ return n===t||Ce(n,t,ji(t))}function lc(n,t,r){return r="function"==typeof r?r:X,Ce(n,t,ji(t),r)}function sc(n){return vc(n)&&n!=+n}function hc(n){if(Es(n))throw new fl(rn);return Ue(n)}function pc(n){return null===n}function _c(n){return null==n}function vc(n){return"number"==typeof n||cc(n)&&we(n)==Hn}function gc(n){if(!cc(n)||we(n)!=Yn)return!1;var t=El(n);if(null===t)return!0;var r=bl.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&dl.call(r)==jl}function yc(n){ return ic(n)&&n>=-Wn&&n<=Wn}function dc(n){return"string"==typeof n||!bh(n)&&cc(n)&&we(n)==rt}function bc(n){return"symbol"==typeof n||cc(n)&&we(n)==et}function wc(n){return n===X}function mc(n){return cc(n)&&zs(n)==it}function xc(n){return cc(n)&&we(n)==ot}function jc(n){if(!n)return[];if(Hf(n))return dc(n)?G(n):Tu(n);if(Ul&&n[Ul])return D(n[Ul]());var t=zs(n);return(t==Gn?M:t==tt?P:ra)(n)}function Ac(n){if(!n)return 0===n?n:0;if(n=Ic(n),n===Sn||n===-Sn){return(n<0?-1:1)*Ln}return n===n?n:0}function kc(n){ var t=Ac(n),r=t%1;return t===t?r?t-r:t:0}function Oc(n){return n?Mr(kc(n),0,Un):0}function Ic(n){if("number"==typeof n)return n;if(bc(n))return Cn;if(fc(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=fc(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=R(n);var r=qt.test(n);return r||Kt.test(n)?Xr(n.slice(2),r?2:8):Pt.test(n)?Cn:+n}function Rc(n){return $u(n,qc(n))}function zc(n){return n?Mr(kc(n),-Wn,Wn):0===n?n:0}function Ec(n){return null==n?"":vu(n)}function Sc(n,t){var r=gs(n);return null==t?r:Cr(r,t); }function Wc(n,t){return v(n,mi(t,3),ue)}function Lc(n,t){return v(n,mi(t,3),oe)}function Cc(n,t){return null==n?n:bs(n,mi(t,3),qc)}function Uc(n,t){return null==n?n:ws(n,mi(t,3),qc)}function Bc(n,t){return n&&ue(n,mi(t,3))}function Tc(n,t){return n&&oe(n,mi(t,3))}function $c(n){return null==n?[]:fe(n,Pc(n))}function Dc(n){return null==n?[]:fe(n,qc(n))}function Mc(n,t,r){var e=null==n?X:_e(n,t);return e===X?r:e}function Fc(n,t){return null!=n&&Ri(n,t,xe)}function Nc(n,t){return null!=n&&Ri(n,t,je); }function Pc(n){return Hf(n)?Or(n):Me(n)}function qc(n){return Hf(n)?Or(n,!0):Fe(n)}function Zc(n,t){var r={};return t=mi(t,3),ue(n,function(n,e,u){Br(r,t(n,e,u),n)}),r}function Kc(n,t){var r={};return t=mi(t,3),ue(n,function(n,e,u){Br(r,e,t(n,e,u))}),r}function Vc(n,t){return Gc(n,Uf(mi(t)))}function Gc(n,t){if(null==n)return{};var r=c(di(n),function(n){return[n]});return t=mi(t),Ye(n,r,function(n,r){return t(n,r[0])})}function Hc(n,t,r){t=ku(t,n);var e=-1,u=t.length;for(u||(u=1,n=X);++e<u;){var i=null==n?X:n[no(t[e])]; i===X&&(e=u,i=r),n=uc(i)?i.call(n):i}return n}function Jc(n,t,r){return null==n?n:fu(n,t,r)}function Yc(n,t,r,e){return e="function"==typeof e?e:X,null==n?n:fu(n,t,r,e)}function Qc(n,t,e){var u=bh(n),i=u||mh(n)||Oh(n);if(t=mi(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:fc(n)&&uc(o)?gs(El(n)):{}}return(i?r:ue)(n,function(n,r,u){return t(e,n,r,u)}),e}function Xc(n,t){return null==n||yu(n,t)}function na(n,t,r){return null==n?n:du(n,t,Au(r))}function ta(n,t,r,e){return e="function"==typeof e?e:X, null==n?n:du(n,t,Au(r),e)}function ra(n){return null==n?[]:E(n,Pc(n))}function ea(n){return null==n?[]:E(n,qc(n))}function ua(n,t,r){return r===X&&(r=t,t=X),r!==X&&(r=Ic(r),r=r===r?r:0),t!==X&&(t=Ic(t),t=t===t?t:0),Mr(Ic(n),t,r)}function ia(n,t,r){return t=Ac(t),r===X?(r=t,t=0):r=Ac(r),n=Ic(n),Ae(n,t,r)}function oa(n,t,r){if(r&&"boolean"!=typeof r&&Ui(n,t,r)&&(t=r=X),r===X&&("boolean"==typeof t?(r=t,t=X):"boolean"==typeof n&&(r=n,n=X)),n===X&&t===X?(n=0,t=1):(n=Ac(n),t===X?(t=n,n=0):t=Ac(t)),n>t){ var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ql();return Hl(n+u*(t-n+Qr("1e-"+((u+"").length-1))),t)}return tu(n,t)}function fa(n){return Qh(Ec(n).toLowerCase())}function ca(n){return n=Ec(n),n&&n.replace(Gt,ve).replace(Dr,"")}function aa(n,t,r){n=Ec(n),t=vu(t);var e=n.length;r=r===X?e:Mr(kc(r),0,e);var u=r;return r-=t.length,r>=0&&n.slice(r,u)==t}function la(n){return n=Ec(n),n&&At.test(n)?n.replace(xt,ge):n}function sa(n){return n=Ec(n),n&&Wt.test(n)?n.replace(St,"\\$&"):n}function ha(n,t,r){n=Ec(n),t=kc(t); var e=t?V(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return ri(Nl(u),r)+n+ri(Fl(u),r)}function pa(n,t,r){n=Ec(n),t=kc(t);var e=t?V(n):0;return t&&e<t?n+ri(t-e,r):n}function _a(n,t,r){n=Ec(n),t=kc(t);var e=t?V(n):0;return t&&e<t?ri(t-e,r)+n:n}function va(n,t,r){return r||null==t?t=0:t&&(t=+t),Yl(Ec(n).replace(Lt,""),t||0)}function ga(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t),eu(Ec(n),t)}function ya(){var n=arguments,t=Ec(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function da(n,t,r){return r&&"number"!=typeof r&&Ui(n,t,r)&&(t=r=X), (r=r===X?Un:r>>>0)?(n=Ec(n),n&&("string"==typeof t||null!=t&&!Ah(t))&&(t=vu(t),!t&&T(n))?Ou(G(n),0,r):n.split(t,r)):[]}function ba(n,t,r){return n=Ec(n),r=null==r?0:Mr(kc(r),0,n.length),t=vu(t),n.slice(r,r+t.length)==t}function wa(n,t,r){var e=Z.templateSettings;r&&Ui(n,t,r)&&(t=X),n=Ec(n),t=Sh({},t,e,li);var u,i,o=Sh({},t.imports,e.imports,li),f=Pc(o),c=E(o,f),a=0,l=t.interpolate||Ht,s="__p += '",h=sl((t.escape||Ht).source+"|"+l.source+"|"+(l===It?Ft:Ht).source+"|"+(t.evaluate||Ht).source+"|$","g"),p="//# sourceURL="+(bl.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zr+"]")+"\n"; n.replace(h,function(t,r,e,o,f,c){return e||(e=o),s+=n.slice(a,c).replace(Jt,U),r&&(u=!0,s+="' +\n__e("+r+") +\n'"),f&&(i=!0,s+="';\n"+f+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),a=c+t.length,t}),s+="';\n";var _=bl.call(t,"variable")&&t.variable;if(_){if(Dt.test(_))throw new fl(un)}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(dt,""):s).replace(bt,"$1").replace(wt,"$1;"),s="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}"; var v=Xh(function(){return cl(f,p+"return "+s).apply(X,c)});if(v.source=s,rc(v))throw v;return v}function ma(n){return Ec(n).toLowerCase()}function xa(n){return Ec(n).toUpperCase()}function ja(n,t,r){if(n=Ec(n),n&&(r||t===X))return R(n);if(!n||!(t=vu(t)))return n;var e=G(n),u=G(t);return Ou(e,W(e,u),L(e,u)+1).join("")}function Aa(n,t,r){if(n=Ec(n),n&&(r||t===X))return n.slice(0,H(n)+1);if(!n||!(t=vu(t)))return n;var e=G(n);return Ou(e,0,L(e,G(t))+1).join("")}function ka(n,t,r){if(n=Ec(n),n&&(r||t===X))return n.replace(Lt,""); if(!n||!(t=vu(t)))return n;var e=G(n);return Ou(e,W(e,G(t))).join("")}function Oa(n,t){var r=An,e=kn;if(fc(t)){var u="separator"in t?t.separator:u;r="length"in t?kc(t.length):r,e="omission"in t?vu(t.omission):e}n=Ec(n);var i=n.length;if(T(n)){var o=G(n);i=o.length}if(r>=i)return n;var f=r-V(e);if(f<1)return e;var c=o?Ou(o,0,f).join(""):n.slice(0,f);if(u===X)return c+e;if(o&&(f+=c.length-f),Ah(u)){if(n.slice(f).search(u)){var a,l=c;for(u.global||(u=sl(u.source,Ec(Nt.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var s=a.index; c=c.slice(0,s===X?f:s)}}else if(n.indexOf(vu(u),f)!=f){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+e}function Ia(n){return n=Ec(n),n&&jt.test(n)?n.replace(mt,ye):n}function Ra(n,t,r){return n=Ec(n),t=r?X:t,t===X?$(n)?Q(n):_(n):n.match(t)||[]}function za(t){var r=null==t?0:t.length,e=mi();return t=r?c(t,function(n){if("function"!=typeof n[1])throw new pl(en);return[e(n[0]),n[1]]}):[],uu(function(e){for(var u=-1;++u<r;){var i=t[u];if(n(i[0],this,e))return n(i[1],this,e)}})}function Ea(n){ return Nr(Fr(n,an))}function Sa(n){return function(){return n}}function Wa(n,t){return null==n||n!==n?t:n}function La(n){return n}function Ca(n){return De("function"==typeof n?n:Fr(n,an))}function Ua(n){return qe(Fr(n,an))}function Ba(n,t){return Ze(n,Fr(t,an))}function Ta(n,t,e){var u=Pc(t),i=fe(t,u);null!=e||fc(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=fe(t,Pc(t)));var o=!(fc(e)&&"chain"in e&&!e.chain),f=uc(n);return r(i,function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__; if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Tu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})}),n}function $a(){return re._===this&&(re._=Al),this}function Da(){}function Ma(n){return n=kc(n),uu(function(t){return Ge(t,n)})}function Fa(n){return Bi(n)?m(no(n)):Qe(n)}function Na(n){return function(t){return null==n?X:_e(n,t)}}function Pa(){return[]}function qa(){return!1}function Za(){return{}}function Ka(){return""; }function Va(){return!0}function Ga(n,t){if(n=kc(n),n<1||n>Wn)return[];var r=Un,e=Hl(n,Un);t=mi(t),n-=Un;for(var u=O(e,t);++r<n;)t(r);return u}function Ha(n){return bh(n)?c(n,no):bc(n)?[n]:Tu(Cs(Ec(n)))}function Ja(n){var t=++wl;return Ec(n)+t}function Ya(n){return n&&n.length?Yr(n,La,me):X}function Qa(n,t){return n&&n.length?Yr(n,mi(t,2),me):X}function Xa(n){return w(n,La)}function nl(n,t){return w(n,mi(t,2))}function tl(n){return n&&n.length?Yr(n,La,Ne):X}function rl(n,t){return n&&n.length?Yr(n,mi(t,2),Ne):X; }function el(n){return n&&n.length?k(n,La):0}function ul(n,t){return n&&n.length?k(n,mi(t,2)):0}x=null==x?re:be.defaults(re.Object(),x,be.pick(re,qr));var il=x.Array,ol=x.Date,fl=x.Error,cl=x.Function,al=x.Math,ll=x.Object,sl=x.RegExp,hl=x.String,pl=x.TypeError,_l=il.prototype,vl=cl.prototype,gl=ll.prototype,yl=x["__core-js_shared__"],dl=vl.toString,bl=gl.hasOwnProperty,wl=0,ml=function(){var n=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),xl=gl.toString,jl=dl.call(ll),Al=re._,kl=sl("^"+dl.call(bl).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ol=ie?x.Buffer:X,Il=x.Symbol,Rl=x.Uint8Array,zl=Ol?Ol.allocUnsafe:X,El=F(ll.getPrototypeOf,ll),Sl=ll.create,Wl=gl.propertyIsEnumerable,Ll=_l.splice,Cl=Il?Il.isConcatSpreadable:X,Ul=Il?Il.iterator:X,Bl=Il?Il.toStringTag:X,Tl=function(){ try{var n=Ai(ll,"defineProperty");return n({},"",{}),n}catch(n){}}(),$l=x.clearTimeout!==re.clearTimeout&&x.clearTimeout,Dl=ol&&ol.now!==re.Date.now&&ol.now,Ml=x.setTimeout!==re.setTimeout&&x.setTimeout,Fl=al.ceil,Nl=al.floor,Pl=ll.getOwnPropertySymbols,ql=Ol?Ol.isBuffer:X,Zl=x.isFinite,Kl=_l.join,Vl=F(ll.keys,ll),Gl=al.max,Hl=al.min,Jl=ol.now,Yl=x.parseInt,Ql=al.random,Xl=_l.reverse,ns=Ai(x,"DataView"),ts=Ai(x,"Map"),rs=Ai(x,"Promise"),es=Ai(x,"Set"),us=Ai(x,"WeakMap"),is=Ai(ll,"create"),os=us&&new us,fs={},cs=to(ns),as=to(ts),ls=to(rs),ss=to(es),hs=to(us),ps=Il?Il.prototype:X,_s=ps?ps.valueOf:X,vs=ps?ps.toString:X,gs=function(){ function n(){}return function(t){if(!fc(t))return{};if(Sl)return Sl(t);n.prototype=t;var r=new n;return n.prototype=X,r}}();Z.templateSettings={escape:kt,evaluate:Ot,interpolate:It,variable:"",imports:{_:Z}},Z.prototype=J.prototype,Z.prototype.constructor=Z,Y.prototype=gs(J.prototype),Y.prototype.constructor=Y,Ct.prototype=gs(J.prototype),Ct.prototype.constructor=Ct,Xt.prototype.clear=nr,Xt.prototype.delete=tr,Xt.prototype.get=rr,Xt.prototype.has=er,Xt.prototype.set=ur,ir.prototype.clear=or,ir.prototype.delete=fr, ir.prototype.get=cr,ir.prototype.has=ar,ir.prototype.set=lr,sr.prototype.clear=hr,sr.prototype.delete=pr,sr.prototype.get=_r,sr.prototype.has=vr,sr.prototype.set=gr,yr.prototype.add=yr.prototype.push=dr,yr.prototype.has=br,wr.prototype.clear=mr,wr.prototype.delete=xr,wr.prototype.get=jr,wr.prototype.has=Ar,wr.prototype.set=kr;var ys=Pu(ue),ds=Pu(oe,!0),bs=qu(),ws=qu(!0),ms=os?function(n,t){return os.set(n,t),n}:La,xs=Tl?function(n,t){return Tl(n,"toString",{configurable:!0,enumerable:!1,value:Sa(t), writable:!0})}:La,js=uu,As=$l||function(n){return re.clearTimeout(n)},ks=es&&1/P(new es([,-0]))[1]==Sn?function(n){return new es(n)}:Da,Os=os?function(n){return os.get(n)}:Da,Is=Pl?function(n){return null==n?[]:(n=ll(n),i(Pl(n),function(t){return Wl.call(n,t)}))}:Pa,Rs=Pl?function(n){for(var t=[];n;)a(t,Is(n)),n=El(n);return t}:Pa,zs=we;(ns&&zs(new ns(new ArrayBuffer(1)))!=ct||ts&&zs(new ts)!=Gn||rs&&zs(rs.resolve())!=Qn||es&&zs(new es)!=tt||us&&zs(new us)!=it)&&(zs=function(n){var t=we(n),r=t==Yn?n.constructor:X,e=r?to(r):""; if(e)switch(e){case cs:return ct;case as:return Gn;case ls:return Qn;case ss:return tt;case hs:return it}return t});var Es=yl?uc:qa,Ss=Qi(ms),Ws=Ml||function(n,t){return re.setTimeout(n,t)},Ls=Qi(xs),Cs=Pi(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(Et,function(n,r,e,u){t.push(e?u.replace(Mt,"$1"):r||n)}),t}),Us=uu(function(n,t){return Jf(n)?Hr(n,ee(t,1,Jf,!0)):[]}),Bs=uu(function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),mi(r,2)):[]}),Ts=uu(function(n,t){ var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),X,r):[]}),$s=uu(function(n){var t=c(n,ju);return t.length&&t[0]===n[0]?ke(t):[]}),Ds=uu(function(n){var t=jo(n),r=c(n,ju);return t===jo(r)?t=X:r.pop(),r.length&&r[0]===n[0]?ke(r,mi(t,2)):[]}),Ms=uu(function(n){var t=jo(n),r=c(n,ju);return t="function"==typeof t?t:X,t&&r.pop(),r.length&&r[0]===n[0]?ke(r,X,t):[]}),Fs=uu(Oo),Ns=gi(function(n,t){var r=null==n?0:n.length,e=Tr(n,t);return nu(n,c(t,function(n){return Ci(n,r)?+n:n}).sort(Lu)),e}),Ps=uu(function(n){ return gu(ee(n,1,Jf,!0))}),qs=uu(function(n){var t=jo(n);return Jf(t)&&(t=X),gu(ee(n,1,Jf,!0),mi(t,2))}),Zs=uu(function(n){var t=jo(n);return t="function"==typeof t?t:X,gu(ee(n,1,Jf,!0),X,t)}),Ks=uu(function(n,t){return Jf(n)?Hr(n,t):[]}),Vs=uu(function(n){return mu(i(n,Jf))}),Gs=uu(function(n){var t=jo(n);return Jf(t)&&(t=X),mu(i(n,Jf),mi(t,2))}),Hs=uu(function(n){var t=jo(n);return t="function"==typeof t?t:X,mu(i(n,Jf),X,t)}),Js=uu(Go),Ys=uu(function(n){var t=n.length,r=t>1?n[t-1]:X;return r="function"==typeof r?(n.pop(), r):X,Ho(n,r)}),Qs=gi(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return Tr(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Ct&&Ci(r)?(e=e.slice(r,+r+(t?1:0)),e.__actions__.push({func:nf,args:[u],thisArg:X}),new Y(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(X),n})):this.thru(u)}),Xs=Fu(function(n,t,r){bl.call(n,r)?++n[r]:Br(n,r,1)}),nh=Ju(ho),th=Ju(po),rh=Fu(function(n,t,r){bl.call(n,r)?n[r].push(t):Br(n,r,[t])}),eh=uu(function(t,r,e){var u=-1,i="function"==typeof r,o=Hf(t)?il(t.length):[]; return ys(t,function(t){o[++u]=i?n(r,t,e):Ie(t,r,e)}),o}),uh=Fu(function(n,t,r){Br(n,r,t)}),ih=Fu(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),oh=uu(function(n,t){if(null==n)return[];var r=t.length;return r>1&&Ui(n,t[0],t[1])?t=[]:r>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),He(n,ee(t,1),[])}),fh=Dl||function(){return re.Date.now()},ch=uu(function(n,t,r){var e=_n;if(r.length){var u=N(r,wi(ch));e|=bn}return ai(n,e,t,r,u)}),ah=uu(function(n,t,r){var e=_n|vn;if(r.length){var u=N(r,wi(ah));e|=bn; }return ai(t,e,n,r,u)}),lh=uu(function(n,t){return Gr(n,1,t)}),sh=uu(function(n,t,r){return Gr(n,Ic(t)||0,r)});Cf.Cache=sr;var hh=js(function(t,r){r=1==r.length&&bh(r[0])?c(r[0],z(mi())):c(ee(r,1),z(mi()));var e=r.length;return uu(function(u){for(var i=-1,o=Hl(u.length,e);++i<o;)u[i]=r[i].call(this,u[i]);return n(t,this,u)})}),ph=uu(function(n,t){return ai(n,bn,X,t,N(t,wi(ph)))}),_h=uu(function(n,t){return ai(n,wn,X,t,N(t,wi(_h)))}),vh=gi(function(n,t){return ai(n,xn,X,X,X,t)}),gh=ii(me),yh=ii(function(n,t){ return n>=t}),dh=Re(function(){return arguments}())?Re:function(n){return cc(n)&&bl.call(n,"callee")&&!Wl.call(n,"callee")},bh=il.isArray,wh=ce?z(ce):ze,mh=ql||qa,xh=ae?z(ae):Ee,jh=le?z(le):Le,Ah=se?z(se):Be,kh=he?z(he):Te,Oh=pe?z(pe):$e,Ih=ii(Ne),Rh=ii(function(n,t){return n<=t}),zh=Nu(function(n,t){if(Mi(t)||Hf(t))return $u(t,Pc(t),n),X;for(var r in t)bl.call(t,r)&&Sr(n,r,t[r])}),Eh=Nu(function(n,t){$u(t,qc(t),n)}),Sh=Nu(function(n,t,r,e){$u(t,qc(t),n,e)}),Wh=Nu(function(n,t,r,e){$u(t,Pc(t),n,e); }),Lh=gi(Tr),Ch=uu(function(n,t){n=ll(n);var r=-1,e=t.length,u=e>2?t[2]:X;for(u&&Ui(t[0],t[1],u)&&(e=1);++r<e;)for(var i=t[r],o=qc(i),f=-1,c=o.length;++f<c;){var a=o[f],l=n[a];(l===X||Gf(l,gl[a])&&!bl.call(n,a))&&(n[a]=i[a])}return n}),Uh=uu(function(t){return t.push(X,si),n(Mh,X,t)}),Bh=Xu(function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=xl.call(t)),n[t]=r},Sa(La)),Th=Xu(function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=xl.call(t)),bl.call(n,t)?n[t].push(r):n[t]=[r]},mi),$h=uu(Ie),Dh=Nu(function(n,t,r){ Ke(n,t,r)}),Mh=Nu(function(n,t,r,e){Ke(n,t,r,e)}),Fh=gi(function(n,t){var r={};if(null==n)return r;var e=!1;t=c(t,function(t){return t=ku(t,n),e||(e=t.length>1),t}),$u(n,di(n),r),e&&(r=Fr(r,an|ln|sn,hi));for(var u=t.length;u--;)yu(r,t[u]);return r}),Nh=gi(function(n,t){return null==n?{}:Je(n,t)}),Ph=ci(Pc),qh=ci(qc),Zh=Vu(function(n,t,r){return t=t.toLowerCase(),n+(r?fa(t):t)}),Kh=Vu(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Vh=Vu(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Gh=Ku("toLowerCase"),Hh=Vu(function(n,t,r){ return n+(r?"_":"")+t.toLowerCase()}),Jh=Vu(function(n,t,r){return n+(r?" ":"")+Qh(t)}),Yh=Vu(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),Qh=Ku("toUpperCase"),Xh=uu(function(t,r){try{return n(t,X,r)}catch(n){return rc(n)?n:new fl(n)}}),np=gi(function(n,t){return r(t,function(t){t=no(t),Br(n,t,ch(n[t],n))}),n}),tp=Yu(),rp=Yu(!0),ep=uu(function(n,t){return function(r){return Ie(r,n,t)}}),up=uu(function(n,t){return function(r){return Ie(n,r,t)}}),ip=ti(c),op=ti(u),fp=ti(h),cp=ui(),ap=ui(!0),lp=ni(function(n,t){ return n+t},0),sp=fi("ceil"),hp=ni(function(n,t){return n/t},1),pp=fi("floor"),_p=ni(function(n,t){return n*t},1),vp=fi("round"),gp=ni(function(n,t){return n-t},0);return Z.after=If,Z.ary=Rf,Z.assign=zh,Z.assignIn=Eh,Z.assignInWith=Sh,Z.assignWith=Wh,Z.at=Lh,Z.before=zf,Z.bind=ch,Z.bindAll=np,Z.bindKey=ah,Z.castArray=Nf,Z.chain=Qo,Z.chunk=uo,Z.compact=io,Z.concat=oo,Z.cond=za,Z.conforms=Ea,Z.constant=Sa,Z.countBy=Xs,Z.create=Sc,Z.curry=Ef,Z.curryRight=Sf,Z.debounce=Wf,Z.defaults=Ch,Z.defaultsDeep=Uh, Z.defer=lh,Z.delay=sh,Z.difference=Us,Z.differenceBy=Bs,Z.differenceWith=Ts,Z.drop=fo,Z.dropRight=co,Z.dropRightWhile=ao,Z.dropWhile=lo,Z.fill=so,Z.filter=lf,Z.flatMap=sf,Z.flatMapDeep=hf,Z.flatMapDepth=pf,Z.flatten=_o,Z.flattenDeep=vo,Z.flattenDepth=go,Z.flip=Lf,Z.flow=tp,Z.flowRight=rp,Z.fromPairs=yo,Z.functions=$c,Z.functionsIn=Dc,Z.groupBy=rh,Z.initial=mo,Z.intersection=$s,Z.intersectionBy=Ds,Z.intersectionWith=Ms,Z.invert=Bh,Z.invertBy=Th,Z.invokeMap=eh,Z.iteratee=Ca,Z.keyBy=uh,Z.keys=Pc,Z.keysIn=qc, Z.map=yf,Z.mapKeys=Zc,Z.mapValues=Kc,Z.matches=Ua,Z.matchesProperty=Ba,Z.memoize=Cf,Z.merge=Dh,Z.mergeWith=Mh,Z.method=ep,Z.methodOf=up,Z.mixin=Ta,Z.negate=Uf,Z.nthArg=Ma,Z.omit=Fh,Z.omitBy=Vc,Z.once=Bf,Z.orderBy=df,Z.over=ip,Z.overArgs=hh,Z.overEvery=op,Z.overSome=fp,Z.partial=ph,Z.partialRight=_h,Z.partition=ih,Z.pick=Nh,Z.pickBy=Gc,Z.property=Fa,Z.propertyOf=Na,Z.pull=Fs,Z.pullAll=Oo,Z.pullAllBy=Io,Z.pullAllWith=Ro,Z.pullAt=Ns,Z.range=cp,Z.rangeRight=ap,Z.rearg=vh,Z.reject=mf,Z.remove=zo,Z.rest=Tf, Z.reverse=Eo,Z.sampleSize=jf,Z.set=Jc,Z.setWith=Yc,Z.shuffle=Af,Z.slice=So,Z.sortBy=oh,Z.sortedUniq=$o,Z.sortedUniqBy=Do,Z.split=da,Z.spread=$f,Z.tail=Mo,Z.take=Fo,Z.takeRight=No,Z.takeRightWhile=Po,Z.takeWhile=qo,Z.tap=Xo,Z.throttle=Df,Z.thru=nf,Z.toArray=jc,Z.toPairs=Ph,Z.toPairsIn=qh,Z.toPath=Ha,Z.toPlainObject=Rc,Z.transform=Qc,Z.unary=Mf,Z.union=Ps,Z.unionBy=qs,Z.unionWith=Zs,Z.uniq=Zo,Z.uniqBy=Ko,Z.uniqWith=Vo,Z.unset=Xc,Z.unzip=Go,Z.unzipWith=Ho,Z.update=na,Z.updateWith=ta,Z.values=ra,Z.valuesIn=ea, Z.without=Ks,Z.words=Ra,Z.wrap=Ff,Z.xor=Vs,Z.xorBy=Gs,Z.xorWith=Hs,Z.zip=Js,Z.zipObject=Jo,Z.zipObjectDeep=Yo,Z.zipWith=Ys,Z.entries=Ph,Z.entriesIn=qh,Z.extend=Eh,Z.extendWith=Sh,Ta(Z,Z),Z.add=lp,Z.attempt=Xh,Z.camelCase=Zh,Z.capitalize=fa,Z.ceil=sp,Z.clamp=ua,Z.clone=Pf,Z.cloneDeep=Zf,Z.cloneDeepWith=Kf,Z.cloneWith=qf,Z.conformsTo=Vf,Z.deburr=ca,Z.defaultTo=Wa,Z.divide=hp,Z.endsWith=aa,Z.eq=Gf,Z.escape=la,Z.escapeRegExp=sa,Z.every=af,Z.find=nh,Z.findIndex=ho,Z.findKey=Wc,Z.findLast=th,Z.findLastIndex=po, Z.findLastKey=Lc,Z.floor=pp,Z.forEach=_f,Z.forEachRight=vf,Z.forIn=Cc,Z.forInRight=Uc,Z.forOwn=Bc,Z.forOwnRight=Tc,Z.get=Mc,Z.gt=gh,Z.gte=yh,Z.has=Fc,Z.hasIn=Nc,Z.head=bo,Z.identity=La,Z.includes=gf,Z.indexOf=wo,Z.inRange=ia,Z.invoke=$h,Z.isArguments=dh,Z.isArray=bh,Z.isArrayBuffer=wh,Z.isArrayLike=Hf,Z.isArrayLikeObject=Jf,Z.isBoolean=Yf,Z.isBuffer=mh,Z.isDate=xh,Z.isElement=Qf,Z.isEmpty=Xf,Z.isEqual=nc,Z.isEqualWith=tc,Z.isError=rc,Z.isFinite=ec,Z.isFunction=uc,Z.isInteger=ic,Z.isLength=oc,Z.isMap=jh, Z.isMatch=ac,Z.isMatchWith=lc,Z.isNaN=sc,Z.isNative=hc,Z.isNil=_c,Z.isNull=pc,Z.isNumber=vc,Z.isObject=fc,Z.isObjectLike=cc,Z.isPlainObject=gc,Z.isRegExp=Ah,Z.isSafeInteger=yc,Z.isSet=kh,Z.isString=dc,Z.isSymbol=bc,Z.isTypedArray=Oh,Z.isUndefined=wc,Z.isWeakMap=mc,Z.isWeakSet=xc,Z.join=xo,Z.kebabCase=Kh,Z.last=jo,Z.lastIndexOf=Ao,Z.lowerCase=Vh,Z.lowerFirst=Gh,Z.lt=Ih,Z.lte=Rh,Z.max=Ya,Z.maxBy=Qa,Z.mean=Xa,Z.meanBy=nl,Z.min=tl,Z.minBy=rl,Z.stubArray=Pa,Z.stubFalse=qa,Z.stubObject=Za,Z.stubString=Ka, Z.stubTrue=Va,Z.multiply=_p,Z.nth=ko,Z.noConflict=$a,Z.noop=Da,Z.now=fh,Z.pad=ha,Z.padEnd=pa,Z.padStart=_a,Z.parseInt=va,Z.random=oa,Z.reduce=bf,Z.reduceRight=wf,Z.repeat=ga,Z.replace=ya,Z.result=Hc,Z.round=vp,Z.runInContext=p,Z.sample=xf,Z.size=kf,Z.snakeCase=Hh,Z.some=Of,Z.sortedIndex=Wo,Z.sortedIndexBy=Lo,Z.sortedIndexOf=Co,Z.sortedLastIndex=Uo,Z.sortedLastIndexBy=Bo,Z.sortedLastIndexOf=To,Z.startCase=Jh,Z.startsWith=ba,Z.subtract=gp,Z.sum=el,Z.sumBy=ul,Z.template=wa,Z.times=Ga,Z.toFinite=Ac,Z.toInteger=kc, Z.toLength=Oc,Z.toLower=ma,Z.toNumber=Ic,Z.toSafeInteger=zc,Z.toString=Ec,Z.toUpper=xa,Z.trim=ja,Z.trimEnd=Aa,Z.trimStart=ka,Z.truncate=Oa,Z.unescape=Ia,Z.uniqueId=Ja,Z.upperCase=Yh,Z.upperFirst=Qh,Z.each=_f,Z.eachRight=vf,Z.first=bo,Ta(Z,function(){var n={};return ue(Z,function(t,r){bl.call(Z.prototype,r)||(n[r]=t)}),n}(),{chain:!1}),Z.VERSION=nn,r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){Z[n].placeholder=Z}),r(["drop","take"],function(n,t){Ct.prototype[n]=function(r){ r=r===X?1:Gl(kc(r),0);var e=this.__filtered__&&!t?new Ct(this):this.clone();return e.__filtered__?e.__takeCount__=Hl(r,e.__takeCount__):e.__views__.push({size:Hl(r,Un),type:n+(e.__dir__<0?"Right":"")}),e},Ct.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),r(["filter","map","takeWhile"],function(n,t){var r=t+1,e=r==Rn||r==En;Ct.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:mi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),r(["head","last"],function(n,t){ var r="take"+(t?"Right":"");Ct.prototype[n]=function(){return this[r](1).value()[0]}}),r(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");Ct.prototype[n]=function(){return this.__filtered__?new Ct(this):this[r](1)}}),Ct.prototype.compact=function(){return this.filter(La)},Ct.prototype.find=function(n){return this.filter(n).head()},Ct.prototype.findLast=function(n){return this.reverse().find(n)},Ct.prototype.invokeMap=uu(function(n,t){return"function"==typeof n?new Ct(this):this.map(function(r){ return Ie(r,n,t)})}),Ct.prototype.reject=function(n){return this.filter(Uf(mi(n)))},Ct.prototype.slice=function(n,t){n=kc(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Ct(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==X&&(t=kc(t),r=t<0?r.dropRight(-t):r.take(t-n)),r)},Ct.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ct.prototype.toArray=function(){return this.take(Un)},ue(Ct.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Z[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t); u&&(Z.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Ct,c=o[0],l=f||bh(t),s=function(n){var t=u.apply(Z,a([n],o));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,_=i&&!h,v=f&&!p;if(!i&&l){t=v?t:new Ct(this);var g=n.apply(t,o);return g.__actions__.push({func:nf,args:[s],thisArg:X}),new Y(g,h)}return _&&v?n.apply(this,o):(g=this.thru(s),_?e?g.value()[0]:g.value():g)})}),r(["pop","push","shift","sort","splice","unshift"],function(n){ var t=_l[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Z.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bh(u)?u:[],n)}return this[r](function(r){return t.apply(bh(r)?r:[],n)})}}),ue(Ct.prototype,function(n,t){var r=Z[t];if(r){var e=r.name+"";bl.call(fs,e)||(fs[e]=[]),fs[e].push({name:t,func:r})}}),fs[Qu(X,vn).name]=[{name:"wrapper",func:X}],Ct.prototype.clone=$t,Ct.prototype.reverse=Yt,Ct.prototype.value=Qt,Z.prototype.at=Qs, Z.prototype.chain=tf,Z.prototype.commit=rf,Z.prototype.next=ef,Z.prototype.plant=of,Z.prototype.reverse=ff,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=cf,Z.prototype.first=Z.prototype.head,Ul&&(Z.prototype[Ul]=uf),Z},be=de();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(re._=be,define(function(){return be})):ue?((ue.exports=be)._=be,ee._=be):re._=be}).call(this); !function(e,n){"use strict";var r=["ng","oc.lazyLoad"],o={},t=[],i=[],a=[],s=[],u=e.noop,c={},l=[],d=e.module("oc.lazyLoad",["ng"]);d.provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(d,f,p,m,v,y){function L(n,o,t){if(o){var i,s,d,f=[];for(i=o.length-1;i>=0;i--)if(s=o[i],e.isString(s)||(s=E(s)),s&&-1===l.indexOf(s)&&(!w[s]||-1!==a.indexOf(s))){var h=-1===r.indexOf(s);if(d=g(s),h&&(r.push(s),L(n,d.requires,t)),d._runBlocks.length>0)for(c[s]=[];d._runBlocks.length>0;)c[s].push(d._runBlocks.shift());e.isDefined(c[s])&&(h||t.rerun)&&(f=f.concat(c[s])),j(n,d._invokeQueue,s,t.reconfig),j(n,d._configBlocks,s,t.reconfig),u(h?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",s),o.pop(),l.push(s)}var p=n.getInstanceInjector();e.forEach(f,function(e){p.invoke(e)})}}function $(n,r){function t(n,r){var o,t=!0;return r.length&&(o=i(n),e.forEach(r,function(e){t=t&&i(e)!==o})),t}function i(n){return e.isArray(n)?M(n.toString()):e.isObject(n)?M(S(n)):e.isDefined(n)&&null!==n?M(n.toString()):n}var a=n[2][0],s=n[1],c=!1;e.isUndefined(o[r])&&(o[r]={}),e.isUndefined(o[r][s])&&(o[r][s]={});var l=function(e,n){o[r][s].hasOwnProperty(e)||(o[r][s][e]=[]),t(n,o[r][s][e])&&(c=!0,o[r][s][e].push(n),u("ocLazyLoad.componentLoaded",[r,s,e]))};if(e.isString(a))l(a,n[2][1]);else{if(!e.isObject(a))return!1;e.forEach(a,function(n,r){e.isString(n)?l(n,a[1]):l(r,n)})}return c}function j(n,r,o,i){if(r){var a,s,u,c;for(a=0,s=r.length;s>a;a++)if(u=r[a],e.isArray(u)){if(null!==n){if(!n.hasOwnProperty(u[0]))throw new Error("unsupported provider "+u[0]);c=n[u[0]]}var l=$(u,o);if("invoke"!==u[1])l&&e.isDefined(c)&&c[u[1]].apply(c,u[2]);else{var d=function(n){var r=t.indexOf(o+"-"+n);(-1===r||i)&&(-1===r&&t.push(o+"-"+n),e.isDefined(c)&&c[u[1]].apply(c,u[2]))};if(e.isFunction(u[2][0]))d(u[2][0]);else if(e.isArray(u[2][0]))for(var f=0,h=u[2][0].length;h>f;f++)e.isFunction(u[2][0][f])&&d(u[2][0][f])}}}}function E(n){var r=null;return e.isString(n)?r=n:e.isObject(n)&&n.hasOwnProperty("name")&&e.isString(n.name)&&(r=n.name),r}function _(n){if(!e.isString(n))return!1;try{return g(n)}catch(r){if(/No module/.test(r)||r.message.indexOf("$injector:nomod")>-1)return!1}}var w={},O={$controllerProvider:d,$compileProvider:p,$filterProvider:m,$provide:f,$injector:v,$animateProvider:y},x=!1,b=!1,z=[],D={};z.push=function(e){-1===this.indexOf(e)&&Array.prototype.push.apply(this,arguments)},this.config=function(n){e.isDefined(n.modules)&&(e.isArray(n.modules)?e.forEach(n.modules,function(e){w[e.name]=e}):w[n.modules.name]=n.modules),e.isDefined(n.debug)&&(x=n.debug),e.isDefined(n.events)&&(b=n.events)},this._init=function(o){if(0===i.length){var t=[o],a=["ng:app","ng-app","x-ng-app","data-ng-app"],u=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,c=function(e){return e&&t.push(e)};e.forEach(a,function(n){a[n]=!0,c(document.getElementById(n)),n=n.replace(":","\\:"),"undefined"!=typeof o[0]&&o[0].querySelectorAll&&(e.forEach(o[0].querySelectorAll("."+n),c),e.forEach(o[0].querySelectorAll("."+n+"\\:"),c),e.forEach(o[0].querySelectorAll("["+n+"]"),c))}),e.forEach(t,function(n){if(0===i.length){var r=" "+o.className+" ",t=u.exec(r);t?i.push((t[2]||"").replace(/\s+/g,",")):e.forEach(n.attributes,function(e){0===i.length&&a[e.name]&&i.push(e.value)})}})}0!==i.length||(n.jasmine||n.mocha)&&e.isDefined(e.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");var l=function d(n){if(-1===r.indexOf(n)){r.push(n);var o=e.module(n);j(null,o._invokeQueue,n),j(null,o._configBlocks,n),e.forEach(o.requires,d)}};e.forEach(i,function(e){l(e)}),i=[],s.pop()};var S=function(n){try{return JSON.stringify(n)}catch(r){var o=[];return JSON.stringify(n,function(n,r){if(e.isObject(r)&&null!==r){if(-1!==o.indexOf(r))return;o.push(r)}return r})}},M=function(e){var n,r,o,t=0;if(0==e.length)return t;for(n=0,o=e.length;o>n;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t|=0;return t};this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(n,t,a,c,d){function f(e){var r=d.defer();return n.error(e.message),r.reject(e),r.promise}var p,m=c("ocLazyLoad");return x||(n={},n.error=e.noop,n.warn=e.noop,n.info=e.noop),O.getInstanceInjector=function(){return p?p:p=t.data("$injector")||e.injector()},u=function(e,r){b&&a.$broadcast(e,r),x&&n.info(e,r)},{_broadcast:u,_$log:n,_getFilesCache:function(){return m},toggleWatch:function(e){e?s.push(!0):s.pop()},getModuleConfig:function(n){if(!e.isString(n))throw new Error("You need to give the name of the module to get");return w[n]?e.copy(w[n]):null},setModuleConfig:function(n){if(!e.isObject(n))throw new Error("You need to give the module config object to set");return w[n.name]=n,n},getModules:function(){return r},isLoaded:function(n){var o=function(e){var n=r.indexOf(e)>-1;return n||(n=!!_(e)),n};if(e.isString(n)&&(n=[n]),e.isArray(n)){var t,i;for(t=0,i=n.length;i>t;t++)if(!o(n[t]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:E,_getModule:function(e){try{return g(e)}catch(n){throw(/No module/.test(n)||n.message.indexOf("$injector:nomod")>-1)&&(n.message='The module "'+S(e)+'" that you are trying to load does not exist. '+n.message),n}},moduleExists:_,_loadDependencies:function(n,r){var o,t,i,a=[],s=this;if(n=s._getModuleName(n),null===n)return d.when();try{o=s._getModule(n)}catch(u){return f(u)}return t=s.getRequires(o),e.forEach(t,function(o){if(e.isString(o)){var t=s.getModuleConfig(o);if(null===t)return void z.push(o);o=t,t.name=void 0}if(s.moduleExists(o.name))return i=o.files.filter(function(e){return s.getModuleConfig(o.name).files.indexOf(e)<0}),0!==i.length&&s._$log.warn('Module "',n,'" attempted to redefine configuration for dependency. "',o.name,'"\n Additional Files Loaded:',i),e.isDefined(s.filesLoader)?void a.push(s.filesLoader(o,r).then(function(){return s._loadDependencies(o)})):f(new Error("Error: New dependencies need to be loaded from external files ("+o.files+"), but no loader has been defined."));if(e.isArray(o)){var u=[];e.forEach(o,function(e){var n=s.getModuleConfig(e);null===n?u.push(e):n.files&&(u=u.concat(n.files))}),u.length>0&&(o={files:u})}else e.isObject(o)&&o.hasOwnProperty("name")&&o.name&&(s.setModuleConfig(o),z.push(o.name));if(e.isDefined(o.files)&&0!==o.files.length){if(!e.isDefined(s.filesLoader))return f(new Error('Error: the module "'+o.name+'" is defined in external files ('+o.files+"), but no loader has been defined."));a.push(s.filesLoader(o,r).then(function(){return s._loadDependencies(o)}))}}),d.all(a)},inject:function(n){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],t=this,a=d.defer();if(e.isDefined(n)&&null!==n){if(e.isArray(n)){var s=[];return e.forEach(n,function(e){s.push(t.inject(e,r,o))}),d.all(s)}t._addToLoadList(t._getModuleName(n),!0,o)}if(i.length>0){var u=i.slice(),c=function f(e){z.push(e),D[e]=a.promise,t._loadDependencies(e,r).then(function(){try{l=[],L(O,z,r)}catch(e){return t._$log.error(e.message),void a.reject(e)}i.length>0?f(i.shift()):a.resolve(u)},function(e){a.reject(e)})};c(i.shift())}else{if(r&&r.name&&D[r.name])return D[r.name];a.resolve()}return a.promise},getRequires:function(n){var o=[];return e.forEach(n.requires,function(e){-1===r.indexOf(e)&&o.push(e)}),o},_invokeQueue:j,_registerInvokeList:$,_register:L,_addToLoadList:h,_unregister:function(n){e.isDefined(n)&&e.isArray(n)&&e.forEach(n,function(e){o[e]=void 0})}}}],this._init(e.element(n.document))}]);var f=e.bootstrap;e.bootstrap=function(n,r,o){return e.forEach(r.slice(),function(e){h(e,!0,!0)}),f(n,r,o)};var h=function(n,r,o){(s.length>0||r)&&e.isString(n)&&-1===i.indexOf(n)&&(i.push(n),o&&a.push(n))},g=e.module;e.module=function(e,n,r){return h(e,!1,!0),g(e,n,r)},"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="oc.lazyLoad")}(angular,window),function(e){"use strict";e.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(n,r,o,t,i){return{restrict:"A",terminal:!0,priority:1e3,compile:function(i,a){var s=i[0].innerHTML;return i.html(""),function(i,a,u){var c=t(u.ocLazyLoad);i.$watch(function(){return c(i)||u.ocLazyLoad},function(t){e.isDefined(t)&&n.load(t).then(function(){o.enter(s,a),r(a.contents())(i)})},!0)}}}}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(n){n.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(n,r,o,t){var i=!1,a=!1,s=o.document.getElementsByTagName("head")[0]||o.document.getElementsByTagName("body")[0];return n.buildElement=function(u,c,l){var d,f,h=r.defer(),g=n._getFilesCache(),p=function(e){var n=(new Date).getTime();return e.indexOf("?")>=0?"&"===e.substring(0,e.length-1)?e+"_dc="+n:e+"&_dc="+n:e+"?_dc="+n};switch(e.isUndefined(g.get(c))&&g.put(c,h.promise),u){case"css":d=o.document.createElement("link"),d.type="text/css",d.rel="stylesheet",d.href=l.cache===!1?p(c):c;break;case"js":d=o.document.createElement("script"),d.src=l.cache===!1?p(c):c;break;default:g.remove(c),h.reject(new Error('Requested type "'+u+'" is not known. Could not inject "'+c+'"'))}d.onload=d.onreadystatechange=function(e){d.readyState&&!/^c|loade/.test(d.readyState)||f||(d.onload=d.onreadystatechange=null,f=1,n._broadcast("ocLazyLoad.fileLoaded",c),h.resolve())},d.onerror=function(){g.remove(c),h.reject(new Error("Unable to load "+c))},d.async=l.serie?0:1;var m=s.lastChild;if(l.insertBefore){var v=e.element(e.isDefined(window.jQuery)?l.insertBefore:document.querySelector(l.insertBefore));v&&v.length>0&&(m=v[0])}if(m.parentNode.insertBefore(d,m),"css"==u){if(!i){var y=o.navigator.userAgent.toLowerCase();if(/iP(hone|od|ad)/.test(o.navigator.platform)){var L=o.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),$=parseFloat([parseInt(L[1],10),parseInt(L[2],10),parseInt(L[3]||0,10)].join("."));a=6>$}else if(y.indexOf("android")>-1){var j=parseFloat(y.slice(y.indexOf("android")+8));a=4.4>j}else if(y.indexOf("safari")>-1){var E=y.match(/version\/([\.\d]+)/i);a=E&&E[1]&&parseFloat(E[1])<6}}if(a)var _=1e3,w=t(function(){try{d.sheet.cssRules,t.cancel(w),d.onload()}catch(e){--_<=0&&d.onerror()}},20)}return h.promise},n}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(n){n.decorator("$ocLazyLoad",["$delegate","$q",function(n,r){return n.filesLoader=function(o){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=[],a=[],s=[],u=[],c=null,l=n._getFilesCache();n.toggleWatch(!0),e.extend(t,o);var d=function(r){var o,d=null;if(e.isObject(r)&&(d=r.type,r=r.path),c=l.get(r),e.isUndefined(c)||t.cache===!1){if(null!==(o=/^(css|less|html|htm|js)?(?=!)/.exec(r))&&(d=o[1],r=r.substr(o[1].length+1,r.length)),!d)if(null!==(o=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(r)))d=o[1];else{if(n.jsLoader.hasOwnProperty("ocLazyLoadLoader")||!n.jsLoader.hasOwnProperty("requirejs"))return void n._$log.error("File type could not be determined. "+r);d="js"}"css"!==d&&"less"!==d||-1!==i.indexOf(r)?"html"!==d&&"htm"!==d||-1!==a.indexOf(r)?"js"===d||-1===s.indexOf(r)?s.push(r):n._$log.error("File type is not valid. "+r):a.push(r):i.push(r)}else c&&u.push(c)};if(t.serie?d(t.files.shift()):e.forEach(t.files,function(e){d(e)}),i.length>0){var f=r.defer();n.cssLoader(i,function(r){e.isDefined(r)&&n.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(n._$log.error(r),f.reject(r)):f.resolve()},t),u.push(f.promise)}if(a.length>0){var h=r.defer();n.templatesLoader(a,function(r){e.isDefined(r)&&n.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(n._$log.error(r),h.reject(r)):h.resolve()},t),u.push(h.promise)}if(s.length>0){var g=r.defer();n.jsLoader(s,function(r){e.isDefined(r)&&(n.jsLoader.hasOwnProperty("ocLazyLoadLoader")||n.jsLoader.hasOwnProperty("requirejs"))?(n._$log.error(r),g.reject(r)):g.resolve()},t),u.push(g.promise)}if(0===u.length){var p=r.defer(),m="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.";return n._$log.error(m),p.reject(m),p.promise}return t.serie&&t.files.length>0?r.all(u).then(function(){return n.filesLoader(o,t)}):r.all(u)["finally"](function(e){return n.toggleWatch(!1),e})},n.load=function(o){var t,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=this,s=null,u=[],c=r.defer(),l=e.copy(o),d=e.copy(i);if(e.isArray(l))return e.forEach(l,function(e){u.push(a.load(e,d))}),r.all(u).then(function(e){c.resolve(e)},function(e){c.reject(e)}),c.promise;if(e.isString(l)?(s=a.getModuleConfig(l),s||(s={files:[l]})):e.isObject(l)&&(s=e.isDefined(l.path)&&e.isDefined(l.type)?{files:[l]}:a.setModuleConfig(l)),null===s){var f=a._getModuleName(l);return t='Module "'+(f||"unknown")+'" is not configured, cannot load.',n._$log.error(t),c.reject(new Error(t)),c.promise}e.isDefined(s.template)&&(e.isUndefined(s.files)&&(s.files=[]),e.isString(s.template)?s.files.push(s.template):e.isArray(s.template)&&s.files.concat(s.template));var h=e.extend({},d,s);return e.isUndefined(s.files)&&e.isDefined(s.name)&&n.moduleExists(s.name)?n.inject(s.name,h,!0):(n.filesLoader(s,h).then(function(){n.inject(null,h).then(function(e){c.resolve(e)},function(e){c.reject(e)})},function(e){c.reject(e)}),c.promise)},n}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(n){n.decorator("$ocLazyLoad",["$delegate","$q",function(n,r){return n.cssLoader=function(o,t,i){var a=[];e.forEach(o,function(e){a.push(n.buildElement("css",e,i))}),r.all(a).then(function(){t()},function(e){t(e)})},n.cssLoader.ocLazyLoadLoader=!0,n}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(n){n.decorator("$ocLazyLoad",["$delegate","$q",function(n,r){return n.jsLoader=function(o,t,i){var a=[];e.forEach(o,function(e){a.push(n.buildElement("js",e,i))}),r.all(a).then(function(){t()},function(e){t(e)})},n.jsLoader.ocLazyLoadLoader=!0,n}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(n){n.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(n,r,o,t){return n.templatesLoader=function(i,a,s){var u=[],c=n._getFilesCache();return e.forEach(i,function(n){var i=o.defer();u.push(i.promise),t.get(n,s).success(function(o){e.isString(o)&&o.length>0&&e.forEach(e.element(o),function(e){"SCRIPT"===e.nodeName&&"text/ng-template"===e.type&&r.put(e.id,e.innerHTML)}),e.isUndefined(c.get(n))&&c.put(n,!0),i.resolve()}).error(function(e){i.reject(new Error('Unable to load template file "'+n+'": '+e))})}),o.all(u).then(function(){a()},function(e){a(e)})},n.templatesLoader.ocLazyLoadLoader=!0,n}])}])}(angular),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,n){var r;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),t=o.length>>>0;if(0===t)return-1;var i=+n||0;if(Math.abs(i)===1/0&&(i=0),i>=t)return-1;for(r=Math.max(i>=0?i:t-Math.abs(i),0);t>r;){if(r in o&&o[r]===e)return r;r++}return-1}); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(e,r){"use strict";var t,c={isNative:s,getPackageUtils:function(t){var e;if(t)return e=t,{isAvailable:function(t){t=o(t);return s()&&a(t)},post:function(t,e){t=o(t);c.postMethod(t,e)},call:function(t,e){t=o(t);return c.callMethod(t,e)}};function o(t){return[c.PACKAGE,e,t].join(".")}c.log("Invalid package name")},postMethod:function(t,e){return a(t)?(f(t,{options:e}),!0):(u("Missing method: "+t),!1)},callMethod:function(t,e,o){var n,r=c.q.defer();return a(t)?(n=p++,o=l(o,{callId:n},!0),o={callbackName:c.EXPORT_NAME+".receiveMethod",callbackContext:o,options:e},d[n]={defer:r},f(t,o)):(e="Missing method: "+t,r.reject(e)),r.promise},receiveMethod:function(t){n.acceptObjects||(t=JSON.parse(t));var e=t.callbackContext,o=d[e.callId];o?(delete e.callId,o.defer.resolve(t),delete d[e.callId]):u("No open call found for request",t)},EXPORT_NAME:"snmCabrillo",CLIENT_EXPORT_NAME:"CabrilloClient",PACKAGE:"com.servicenow.cabrillo",DEBUG:!0,extend:l,copyValues:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&"function"!==_typeof(e[o])&&(t[o]=e[o]);return t},log:u,q:{defer:function(){return new h},reject:function(){return!1}}},o=(e[c.EXPORT_NAME]=c,e[c.CLIENT_EXPORT_NAME]),n={isNative:!0,acceptObjects:!1,supportedMethods:null},i=(void 0===o&&(o=(o=function(){var o,n=e.webkit,t=n&&n.messageHandlers?n.messageHandlers[c.PACKAGE+".camera.getBarcode"]:r;if(void 0!==t)return o={getConfig:function(){return{acceptObjects:!0,supportedMethods:null}},hasMethod:function(t){return void 0!==(n?n.messageHandlers[t]:r)},postMethod:function(t,e){o.hasMethod(t)?n.messageHandlers[t].postMessage(e):u("Missing method: "+t)}}}())||{getConfig:function(){return{isNative:!1,acceptObjects:!0,supportedMethods:[]}},hasMethod:function(){return!1},postMethod:function(){}}),(t=o.getConfig())&&("string"==typeof t&&(t=JSON.parse(t)),l(n,t)),null);function s(){return n.isNative}function a(t){return i?i[t]:!!o.hasMethod&&o.hasMethod(t)}function l(t,e,o){var n,r=o?{}:t;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function u(t){var e;c.DEBUG&&((e=Array.prototype.slice.call(arguments,0)).unshift("(Cabrillo)"),console.log.apply(console,e))}function f(t,e){n.acceptObjects||(e=JSON.stringify(e)),o.postMethod(t,e)}n.supportedMethods&&(i={},n.supportedMethods.forEach(function(t){i[t]=!0}));var p=0,d={};function h(){var o=[],n=[],e=null,r=null;function c(){switch(e){case"done":o.forEach(function(t){t&&(r=t.call(t,r))}),o=[],n=[];break;case"fail":n.forEach(function(t){t&&(r=t.call(t,r))}),o=[],n=[]}}this.promise={then:function(t,e){return o.push(t),n.push(e),c(),this}},this.resolve=function(t){e||(e="done",r=t,c())},this.reject=function(t){e||(e="fail",r=t,c())}}}(window); !function(n){"use strict";var a="attachments",s=(n.extend(n,{attachments:{addFile:function(t,e,a,i){a=r(t,e,a);return c("addFile",{apiPath:s+"&sys_id="+e+"&table="+t,params:a,uploadParamName:"attachFile",sourceRect:(i=i||{}).sourceRect,maxWidth:i.maxWidth,maxHeight:i.maxHeight,jpgQuality:i.jpgQuality}).then(function(t){return t.results})},addFiles:function(t,e,a,i){a=r(t,e,a);return c("addFiles",{apiPath:s+"&sys_id="+e+"&table="+t,params:a,uploadParamName:"attachFile",sourceRect:(i=i||{}).sourceRect,maxWidth:i.maxWidth,maxHeight:i.maxHeight,jpgQuality:i.jpgQuality,isSingleSelection:i.isSingleSelection}).then(function(t){return t.error?n.q.reject(t.error):t.results})},viewFile:function(t,e,a){return c("viewFile",{attachment:{sys_id:t.sys_id,content_type:t.content_type,file_name:t.file_name,sys_updated_on:t.sys_updated_on,path:t.sys_id+".iix",thumbnail_path:t.thumbSrc},sourceRect:e,sourceBase64:a})}}}),"/angular.do?sysparm_type=ngk_attachments&action=add&load_attachment_record=true");function r(t,e,a){return n.extend({attachments_modified:"true",sysparm_table:t,sysparm_sys_id:e,sysparm_nostack:"yes",sysparm_encryption_context:""},a||{})}function c(t,e){return n.callMethod(n.PACKAGE+"."+a+"."+t,e)}}((window,window.snmCabrillo)); !function(r){"use strict";var a=r.getPackageUtils("auth");r.extend(r,{auth:{reauthenticate:function(t){return a.call("reauthenticate",{user:{sysId:t.userID,userName:t.userName,firstName:t.firstName,lastName:t.lastName}}).then(function(e){return e.results.reauthenticated?{sysId:t.userID,userName:t.userName,firstName:t.firstName,lastName:t.lastName}:r.q.reject(e.error)},function(e){return r.log("reauthenticate error: "+e),r.q.reject(e)})},reauthenticateComplete:function(e){var t={reauthenticated:!1},r=e.error||null,e=e.user&&e.user.userID?e.user:null;r?t.error={status:r.status,message:r.message}:e&&(t.reauthenticated=!0,t.user={sysId:e.userID,userName:e.userName});a.post("reauthenticateComplete",t)}}})}((window,window.snmCabrillo)); !function(t){"use strict";var e="camera";t.extend(t,{camera:{getBarcode:function(){return t.callMethod(t.PACKAGE+"."+e+".getBarcode",void 0).then(function(e){return e.results},function(e){return t.log("Failed to get barcode value:",e),t.q.reject(e)})}}})}((window,window.snmCabrillo)); !function(e){"use strict";var i="debug";e.extend(e,{debug:{log:function(n){e.log(n),function(n,o){e.callMethod(e.PACKAGE+"."+i+"."+n,o)}("log",{message:n})}}})}((window,window.snmCabrillo)); !function(n){"use strict";var r="filter";n.extend(n,{filter:{editEncodedQuery:function(e,t){return function(e,t){return n.callMethod(n.PACKAGE+"."+r+"."+e,t)}("editEncodedQuery",{table:e,encodedQuery:t}).then(function(e){return e.results},function(e){return n.log("Failed to edit query:",e),n.q.reject(e)})}}})}((window,window.snmCabrillo)); !function(r){"use strict";var n="form",e=r.getPackageUtils(n).isAvailable("previewRecord");function d(e,i){r.callMethod(r.PACKAGE+"."+n+"."+e,i)}r.extend(r,{form:{didChangeRecord:function(e,i,r){(e?function(e,i){d("didCreateRecord",{table:e,sysId:i})}:function(e,i){d("didUpdateRecord",{table:e,sysId:i})})(i,r)},previewRecord:function(e,i,r,n,t){d("previewRecord",{table:e,referenceKey:i,referenceValue:r,view:n,title:t})},isPreviewRecordAvailable:function(){return e}}})}((window,window.snmCabrillo)); !function(o){"use strict";var t="geolocation";o.extend(o,{geolocation:{getCurrentLocation:function(){return o.callMethod(o.PACKAGE+"."+t+".getCurrentLocation",void 0).then(function(t){return t.results},function(t){return o.log("Failed to get geolocation value:",t),o.q.reject(t)})}}})}((window,window.snmCabrillo)); !function(u){"use strict";var s="list";function a(e,t){return u.callMethod(u.PACKAGE+"."+s+"."+e,t)}u.extend(u,{list:{selectItem:function(e,t,s,l,n){var r;l&&(r={value:l.value,displayValue:l.displayValue});return a("selectItem",{title:e,table:t,query:s,selectedItem:r,params:n}).then(function(e){return u.log("selectItem response",arguments),e.results})},selectItems:function(e,t,s,l,n){return a("selectItems",{title:e,table:t,query:s,selectedItems:l,params:n}).then(function(e){return u.log("selectItems response",arguments),e.results})}}})}((window,window.snmCabrillo)); !function(o){"use strict";var l="modal";function r(e,n,t){return o.callMethod(o.PACKAGE+"."+l+"."+e,n,t)}o.extend(o,{modal:{MODAL_PRESENTATION_STYLE_FULL_SCREEN:"fullScreen",MODAL_PRESENTATION_STYLE_FORM_SHEET:"formSheet",CLOSE_BUTTON_STYLE_CANCEL:"cancel",CLOSE_BUTTON_STYLE_CLOSE:"close",CLOSE_BUTTON_STYLE_DONE:"done",presentModal:function(e,n,t,l){return r("presentModal",{title:e,url:n,closeButtonStyle:t||null,modalPresentationStyle:l||null}).then(function(e){return e.results},function(e){o.log("presentModal error: "+e)})},dismissModal:function(e,n){return r("dismissModal",{results:{results:e,redirect:n}})}}})}((window,window.snmCabrillo)); !function(i){"use strict";var t=i.getPackageUtils("navigation");i.extend(i,{navigation:{goto:function(i,o){return!!t.isAvailable("goto")&&(o=o||{},t.post("goto",{uri:i,table:o.table,sysId:o.sysId,query:o.query,view:o.view}),!0)},goBack:function(){return!!t.isAvailable("goBack")&&(t.post("goBack"),!0)}}})}((window,window.snmCabrillo)); !function(i){"use strict";var c="viewLayout",a=i.getPackageUtils(c),u=(i.extend(i,{viewLayout:{MORE_MENU_BUTTON_STYLE:"moreMenuButtonStyle",REPLACE_BACK_BUTTON_STYLE:"replaceBackButtonStyle",SUCCESS_SPINNER_STYLE:"successStyle",getTitle:function(){return a.call("getTitle").then(function(t){return t.results},function(t){return i.log("Failed to get title value:",t),i.q.reject(t)})},setTitle:function(t){a.post("setTitle",{title:t})},setNavigationBarButtons:function(t,e){var n=o("registerNavigationBarButtons",t,e);return a.call("setNavigationBarButtons",{buttons:n.payloads}).then(function(){return n},function(){n()})},setBottomButtons:function(t,e){var n=o("registerBottomButtons",t,e);return a.call("setBottomButtons",{buttons:n.payloads}).then(function(){return n},function(){n()})},showBackButton:function(){a.post("showBackButton")},hideBackButton:function(){a.post("hideBackButton")},showSpinner:function(t){var e=(t=t||{}).mask,t=t.maskColor;a.post("showSpinner",{mask:!!e,maskColor:t})},hideSpinner:function(t){a.post("hideSpinner",{dismissStyle:t})},addMessage:function(t,e){return!!a.isAvailable("addMessage")&&(a.post("addMessage",{type:t,message:e}),!0)},clearMessages:function(){return!!a.isAvailable("clearMessages")&&(a.post("clearMessages"),!0)},executeCallback:function(t){var e,t=t.callbackContext,n=u[t.className];n&&n.id===t.id?((e=document.activeElement)&&e.blur(),n.executeCallback(t.payloadId)):i.log("Handler not found")}}}),{}),r=0;function o(a,t,n){if(!a)throw"Handler class must be specified";t=t||[];function e(){var t;(t=u[a])&&t===this&&(t.payloads=null,t.executeCallback=null,delete u[a])}var o=a,s=(o="string"==typeof o?o:o.className,u[o]&&u[o](),[]),l=r++;t.forEach(function(t,e){var n=i.EXPORT_NAME+"."+c+".executeCallback",e={callbackName:n,callbackContext:{id:l,className:a,payloadId:e}};(e=i.copyValues(e,t)).callbackScript=n+"("+JSON.stringify(e)+")",s.push(e)});return e.id=l,e.className=a,e.payloads=s,e.executeCallback=function(){var t=arguments,e=i.q.defer();e.promise.then(function(){n.apply(this,t)}),e.resolve()},u[a]=e}}((window,window.snmCabrillo)); !function(E){"use strict";var S="message";E.extend(E,{message:{SUCCESS_MESSAGE_STYLE:"success",WARNING_MESSAGE_STYLE:"warning",ERROR_MESSAGE_STYLE:"error",INFO_MESSAGE_STYLE:"info",showMessage:function(s,e){!function(s,e){E.callMethod(E.PACKAGE+"."+S+"."+s,e)}("showMessage",{style:s,title:e})}}})}((window,window.snmCabrillo)); !function(e){"use strict";var d="flowControl";function l(o,n){e.callMethod(e.PACKAGE+"."+d+"."+o,n)}e.extend(e,{flowControl:{flowEnded:function(o){l("flowEnded",{flowName:o})},flowEndedWithUpdate:function(o,n){l("flowEnded",{flowName:o,clientRefreshNeeded:n})}}})}((window,window.snmCabrillo)); "undefined"!=typeof angular&&angular.module("snm.cabrillo",[]).factory("cabrillo",["$window","$q",function(n,l){n=n.snmCabrillo;return n.q=l,n}]); !function(o){"use strict";var c="nowapp",t=o.getPackageUtils(c);function i(e,n,r){o.callMethod(o.PACKAGE+"."+c+"."+e,n,r)}o.extend(o,{nowapp:{openScreen:function(e){return!!t.isAvailable("openScreen")&&(i("openScreen",{screenId:e}),!0)},openScreenWithRecordContext:function(e,n,r){return!!t.isAvailable("openScreenWithRecordContext")&&(i("openScreenWithRecordContext",{screenId:e,table:n,recordId:r}),!0)},openLauncherScreen:function(e){return!!t.isAvailable("openLauncherScreen")&&(i("openLauncherScreen",{launcherScreenId:e}),!0)},performFunction:function(e,n,r){return!!t.isAvailable("performFunction")&&(i("performFunction",{functionId:e,table:n,recordId:r}),!0)},refresh:function(){return!!t.isAvailable("refresh")&&(i("refresh",{}),!0)}}})}((window,window.snmCabrillo)); angular.module("sn.common.form",["sn.common.clientScript","sn.common.form.data"]); angular.module("sn.common.form").directive("glideFormField",["getTemplateUrl","cabrillo","glideFormFieldFactory","i18n","$log",function(e,l,a,n,d){"use strict";return{restrict:"E",templateUrl:e("directive_glide_form_field.xml"),scope:{field:"=",tableName:"=",getGlideForm:"&glideForm"},controller:["$element","$scope",function(e,i){i.requiredMsg=n.getMessage("Required"),i.getGlideForm?o=i.getGlideForm():d.warn("glideFormField: Field directive is missing GlideForm");var o,r=i.field,r=a.create(r),t=(i.isReadonly=r.isReadonly,i.isMandatory=r.isMandatory,i.isVisible=r.isVisible,i.hasMessages=r.hasMessages,l.isNative());i.showBarcodeHelper=t&&r.hasBarcodeHelper(),i.showCurrentLocationHelper=t&&r.hasCurrentLocationHelper(),i.getBarcode=function(){l.camera.getBarcode().then(function(e){l.log("Received barcode value: "+e),o.setValue(i.field.name,e)})},i.getCurrentLocation=function(){l.geolocation.getCurrentLocation().then(function(e){e=e.coordinate.latitude+","+e.coordinate.longitude;o.setValue(i.field.name,e)})}}]}}]); angular.module("sn.common.form").directive("recursiveHelper",["$compile",function(i){return{restrict:"EACM",priority:1e5,compile:function(e,r){var o,t=e.contents().remove();return function(e,r,n){o=o||i(t),r.append(o(e,function(e){return e}))}}}}]); angular.module("sn.common.form").factory("glideUIActionsFactory",["urlTools","$http","$q","$log",function(t,e,n,i){"use strict";var m={LIST_BUTTON:"list_button",FORM_BUTTON:"form_button",FORM_MORE_ITEM:"form_more_item"};return{ACTION_OPERATIONS:{INSERT:"insert",UPDATE:"update"},ACTION_TYPES:{LIST:"list",FORM:"form"},create:function(t,e){return new o(t,e)}};function o(t,e){if(!t)throw"uiActions must be provided";var n={},i=[];e=e||{},t.forEach(function(t){t=new r(t.action_name,t.sys_id,t.name,t.disabled,t.display_types,!0===t.navigate_back?"back":"default",e.uiActionExecuter);n[t.getSysId()]=t,i.push(t)}),this.getActions=function(){return i},this.getAction=function(t){return n[t]},this.getActionByName=function(e){var n;return i.forEach(function(t){n||e===t.getName()&&(n=t)}),n||(e=e.toLowerCase(),i.forEach(function(t){n||e===(t.getDisplayName()||"").toLowerCase()&&(n=t)})),n}}function r(t,e,n,i,o,r,u){var a=!1,c=t,s=e,f=n,d=!!i,h=u,l="back"===r?"back":"default",g={};o&&o.forEach(function(t){g[t]=!0}),this.getSysId=function(){return s},this.getName=function(){return c},this.getDisplayName=function(){return f},this.getNavigateBehavior=function(){return l},this.isDisabled=function(){return d},this.isMoreMenuItem=function(){return!g[m.FORM_BUTTON]&&g[m.FORM_MORE_ITEM]},this.execute=function(t){return!this.isDisabled()&&!a&&(a=!0,h(this.getSysId(),t.getTableName(),t.getSysId(),t.serialize(!0),t.getEncodedRecord()).finally(function(){a=!1}))}}}]); angular.module("sn.common.form.data",[]); angular.module("sn.common.form.data").factory("glideUIActionsApi",["$http",function(i){"use strict";return{execute:function(s,e,r,t,a,o,n){return i.post("/api/now/mobile/ui_actions/"+s+"/execute",{sysparm_type:e,sysparm_table:r,sysparm_sys_id:t,sysparm_encoded_record:o,sysparm_fields:a,sysparm_request_params:n})}}}]); angular.module("sn.common.resources",["sn.common.i18n"]); angular.module("sn.common.resources").provider("appResources",["i18nProvider",function(e){"use strict";var r="SN_APP_RESOURCES",n=(angular.isDefined(window[r])||angular.injector(["ng"]).get("$log").warn("AppResources not defined! Check plugin configurations."),window[r]||{}),t=n.properties||{},u=n.messages||[],o=n.templates||{},s=n.current_user,n=n.current_session_token;function i(e,r){e=t[e];return e=angular.isDefined(e)?e:r}function a(e){return"true"===i(e)}function g(){return t}function c(){return angular.isDefined(s)&&angular.isDefined(s.user_id)}function l(){return s}window[r]=null,n&&(window.g_ck=n),u&&e.preloadMessages(u),u=null,this.getProperty=i,this.getBooleanProperty=a,this.isCurrentUserLoggedIn=c,this.getCurrentUser=l,this.getProperties=g,this.$get=["$templateCache",function(e){var n;return n=e,o&&angular.forEach(o,function(e){var r=e.url;"/"===r.charAt(0)&&(r=r.substring(1)),n.put(r,e.content)}),o=null,{getProperty:i,getBooleanProperty:a,getProperties:g,isCurrentUserLoggedIn:c,getCurrentUser:l}}]}]).run(["appResources",function(e){}]); angular.module("snm.auth.data",["sn.common.resources"]); angular.module("snm.auth.data").provider("glideUserSession",function(){"use strict";var v,w;this.setCurrentUser=function(e){e&&(v=!0,w={userID:e.user_id,userName:e.user_name,displayValue:e.display_name,firstName:e.first_name,lastName:e.last_name,email:e.email,mobilePhone:e.mobile_phone,phone:e.phone,title:e.title,avatar:e.avatar_path,preferences:null,allRoles:e.all_roles||null,roles:e.roles||null})},this.$get=["$rootScope","$q","$http","$log","urlTools","glideUserFactory","$window","appResources","xmlUtil",function(e,a,s,n,i,o,r,t,u){var l,c,d=!1,m=r.g_public_page_url;function f(e){e=e&&e.reload;if(!l||e){if(l=a.defer(),v&&w&&!e)return c=o.create(w),l.resolve(c),l.promise;p().then(function(e){c=e,l.resolve(c)},function(){l&&l.reject(),l=null})}return l.promise}function p(e){var r={},t=!e,e=(t||(r.sysparm_user_id=e),i.getURL("get_user",r));return s.get(e).then(function(e){var r=o.create(e.data);return t&&(r.$private={loginMethod:e.data.loginMethod}),r})}function _(){return t.getBooleanProperty("glide.authenticate.multisso.enabled")}function g(e){return null!=e&&""!==e||n.warn("Invalid SSO sysId provided. Redirect URL is invalid"),"/login_with_sso.do?glide_sso_id="+encodeURIComponent(e)}function h(e){return s({method:"POST",url:i.getURL("view_form.login"),data:i.encodeURIParameters(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})}return e.$on("@page.login",function(){v=d=!1,l=null}),{loadCurrentUser:f,isLoggedIn:function(){return v||d},logout:function(e){return e?s.get("/logout.do"):(r.location.href="/logout.do",a.defer().promise)},login:function(e,r,t){return v=!1,h({sysparm_type:"login","ni.nolog.user_password":!(l=null),remember_me:!!t,user_name:e,user_password:r}).then(function(e){if(!e.data)return n.warn("login server failure:",e),a.reject("unknown_error");switch(e.data.status){default:case"error":return d=!1,a.reject("invalid_username_or_password");case"mfa_code_required":return d=!1,a.reject(e.data.status);case"success":return d=!0,f()}},function(e){return n.warn("login server failure:",e),d=!1,a.reject("unknown_error")})},requestMfaCode:function(){return h({send_mfa_code:!0}).then(function(e){e=e.data?"send_mfa_code_success"===e.data.status?a.resolve("success"):a.reject("send_mfa_code_failure"):a.reject("unknown_error");return e},function(e){return n.warn("mfa code delivery error:",e),a.reject("unknown_error")})},validateMfaCode:function(e){return h({sysparm_type:"login",validate_mfa_code:!0,mfa_code:e}).then(function(e){return e.data?(d="success"===e.data.status)?f():a.reject("invalid_mfa_code"):(d=!1,a.reject("unknown_error"))},function(e){return n.warn("mfa validation server error:",e),a.reject("unknown_error")})},isExternalAuthEnabled:_,getDefaultIdpRedirectUrl:function(){if(_()){var e=t.getProperty("glide.authenticate.sso.redirect.idp");if(e&&0<e.length)return g(e)}},getSsoRedirectUrlForUsername:function(n){var o=a.defer();return s({method:"POST",url:"/xmlhttp.do",data:i.encodeURIParameters({sysparm_processor:"MultiSSO_ClientHelper",sysparm_scope:"global",sysparm_name:"ssoByUser",sysparm_user_id:n}),headers:{"Content-Type":"application/x-www-form-urlencoded"},transformResponse:function(e){return u.getDataFromXml(e,"result")}}).then(function(e){var r,t,e=e.data[0];e?(r=e.glide_sso_id?g(e.glide_sso_id):e.discovery_service_url,t=a.defer(),s({method:"POST",url:"/xmlhttp.do",data:i.encodeURIParameters({sysparm_processor:"MobileLoginHelper",sysparm_scope:"global",sysparm_name:"setStartingPageUrl"}),headers:{"Content-Type":"application/x-www-form-urlencoded"},transformResponse:function(e){return u.getDataFromXml(e,"result")}}).then(function(e){e=e.data;t.resolve(e)},function(e){t.reject(e)}),t.promise.then(function(e){console.log("Starting page set to",e),o.resolve(r)},function(e){o.reject(e)})):o.reject("No external identity provider found for the username: "+n)},function(e){o.reject(e)}),o.promise},getSsoReauthenticationUrl:function(e){var r={sysparm_scope:"global",sysparm_processor:"ESignatureUtils",sysparm_name:"createSsoReauthenticationUrl"};return e&&(r.glide_sso_id=e),s({method:"POST",url:"/xmlhttp.do",data:i.encodeURIParameters(r),headers:{"Content-Type":"application/x-www-form-urlencoded"},transformResponse:function(e){return u.getDataFromXml(e,"result")}}).then(function(e){e=e.data?e.data[0]:{};return e.error?a.reject({message:e.error}):e.url},function(e){return e.status,a.reject({message:"Cannot determine external authentication provider"})})},loadUser:p,getPublicPageUrl:function(){return m},clearPublicPageUrl:function(){m=null}}}]}); !function(b,a){"function"==typeof define&&define.amd?define([],a):b.amdWeb=a()}(this,function(){"function"!=typeof Array.prototype.indexOf&&(Array.prototype.indexOf=function(d,a){var b,c=this.length;if(!c)return-1;if(a=Number(a),("number"!=typeof a||isNaN(a))&&(a=0),a>=c)return-1;for(0>a&&(a=c-Math.abs(a)),b=a;c>b;b++)if(this[b]===d)return b;return-1}),"function"!=typeof Function.prototype.bind&&(Function.prototype.bind=function(a){var b,d,c,e;if("function"!=typeof this)throw new TypeError("Target is not callable, and unable to be bound");return b=Array.prototype.slice,d=b.call(arguments,1),c=this,"undefined"==typeof a&&(a=c),e=function(){var e=b.call(arguments,0);return c.apply(a,d.concat(e))}})}); (function() { "use strict"; function $$utils$$objectOrFunction(x) { return typeof x === 'function' || (typeof x === 'object' && x !== null); } function $$utils$$isFunction(x) { return typeof x === 'function'; } function $$utils$$isMaybeThenable(x) { return typeof x === 'object' && x !== null; } var $$utils$$_isArray; if (!Array.isArray) { $$utils$$_isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } else { $$utils$$_isArray = Array.isArray; } var $$utils$$isArray = $$utils$$_isArray; var $$utils$$now = Date.now || function() { return new Date().getTime(); }; function $$utils$$F() { } var $$utils$$o_create = (Object.create || function (o) { if (arguments.length > 1) { throw new Error('Second argument not supported'); } if (typeof o !== 'object') { throw new TypeError('Argument must be an object'); } $$utils$$F.prototype = o; return new $$utils$$F(); }); var $$asap$$len = 0; var $$asap$$default = function asap(callback, arg) { $$asap$$queue[$$asap$$len] = callback; $$asap$$queue[$$asap$$len + 1] = arg; $$asap$$len += 2; if ($$asap$$len === 2) { $$asap$$scheduleFlush(); } }; var $$asap$$browserGlobal = (typeof window !== 'undefined') ? window : {}; var $$asap$$BrowserMutationObserver = $$asap$$browserGlobal.MutationObserver || $$asap$$browserGlobal.WebKitMutationObserver; var $$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; function $$asap$$useNextTick() { return function() { process.nextTick($$asap$$flush); }; } function $$asap$$useMutationObserver() { var iterations = 0; var observer = new $$asap$$BrowserMutationObserver($$asap$$flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function() { node.data = (iterations = ++iterations % 2); }; } function $$asap$$useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = $$asap$$flush; return function () { channel.port2.postMessage(0); }; } function $$asap$$useSetTimeout() { return function() { setTimeout($$asap$$flush, 1); }; } var $$asap$$queue = new Array(1000); function $$asap$$flush() { for (var i = 0; i < $$asap$$len; i+=2) { var callback = $$asap$$queue[i]; var arg = $$asap$$queue[i+1]; callback(arg); $$asap$$queue[i] = undefined; $$asap$$queue[i+1] = undefined; } $$asap$$len = 0; } var $$asap$$scheduleFlush; if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { $$asap$$scheduleFlush = $$asap$$useNextTick(); } else if ($$asap$$BrowserMutationObserver) { $$asap$$scheduleFlush = $$asap$$useMutationObserver(); } else if ($$asap$$isWorker) { $$asap$$scheduleFlush = $$asap$$useMessageChannel(); } else { $$asap$$scheduleFlush = $$asap$$useSetTimeout(); } function $$$internal$$noop() {} var $$$internal$$PENDING = void 0; var $$$internal$$FULFILLED = 1; var $$$internal$$REJECTED = 2; var $$$internal$$GET_THEN_ERROR = new $$$internal$$ErrorObject(); function $$$internal$$selfFullfillment() { return new TypeError("You cannot resolve a promise with itself"); } function $$$internal$$cannotReturnOwn() { return new TypeError('A promises callback cannot return that same promise.') } function $$$internal$$getThen(promise) { try { return promise.then; } catch(error) { $$$internal$$GET_THEN_ERROR.error = error; return $$$internal$$GET_THEN_ERROR; } } function $$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) { try { then.call(value, fulfillmentHandler, rejectionHandler); } catch(e) { return e; } } function $$$internal$$handleForeignThenable(promise, thenable, then) { $$asap$$default(function(promise) { var sealed = false; var error = $$$internal$$tryThen(then, thenable, function(value) { if (sealed) { return; } sealed = true; if (thenable !== value) { $$$internal$$resolve(promise, value); } else { $$$internal$$fulfill(promise, value); } }, function(reason) { if (sealed) { return; } sealed = true; $$$internal$$reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; $$$internal$$reject(promise, error); } }, promise); } function $$$internal$$handleOwnThenable(promise, thenable) { if (thenable._state === $$$internal$$FULFILLED) { $$$internal$$fulfill(promise, thenable._result); } else if (promise._state === $$$internal$$REJECTED) { $$$internal$$reject(promise, thenable._result); } else { $$$internal$$subscribe(thenable, undefined, function(value) { $$$internal$$resolve(promise, value); }, function(reason) { $$$internal$$reject(promise, reason); }); } } function $$$internal$$handleMaybeThenable(promise, maybeThenable) { if (maybeThenable.constructor === promise.constructor) { $$$internal$$handleOwnThenable(promise, maybeThenable); } else { var then = $$$internal$$getThen(maybeThenable); if (then === $$$internal$$GET_THEN_ERROR) { $$$internal$$reject(promise, $$$internal$$GET_THEN_ERROR.error); } else if (then === undefined) { $$$internal$$fulfill(promise, maybeThenable); } else if ($$utils$$isFunction(then)) { $$$internal$$handleForeignThenable(promise, maybeThenable, then); } else { $$$internal$$fulfill(promise, maybeThenable); } } } function $$$internal$$resolve(promise, value) { if (promise === value) { $$$internal$$reject(promise, $$$internal$$selfFullfillment()); } else if ($$utils$$objectOrFunction(value)) { $$$internal$$handleMaybeThenable(promise, value); } else { $$$internal$$fulfill(promise, value); } } function $$$internal$$publishRejection(promise) { if (promise._onerror) { promise._onerror(promise._result); } $$$internal$$publish(promise); } function $$$internal$$fulfill(promise, value) { if (promise._state !== $$$internal$$PENDING) { return; } promise._result = value; promise._state = $$$internal$$FULFILLED; if (promise._subscribers.length === 0) { } else { $$asap$$default($$$internal$$publish, promise); } } function $$$internal$$reject(promise, reason) { if (promise._state !== $$$internal$$PENDING) { return; } promise._state = $$$internal$$REJECTED; promise._result = reason; $$asap$$default($$$internal$$publishRejection, promise); } function $$$internal$$subscribe(parent, child, onFulfillment, onRejection) { var subscribers = parent._subscribers; var length = subscribers.length; parent._onerror = null; subscribers[length] = child; subscribers[length + $$$internal$$FULFILLED] = onFulfillment; subscribers[length + $$$internal$$REJECTED] = onRejection; if (length === 0 && parent._state) { $$asap$$default($$$internal$$publish, parent); } } function $$$internal$$publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (subscribers.length === 0) { return; } var child, callback, detail = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { $$$internal$$invokeCallback(settled, child, callback, detail); } else { callback(detail); } } promise._subscribers.length = 0; } function $$$internal$$ErrorObject() { this.error = null; } var $$$internal$$TRY_CATCH_ERROR = new $$$internal$$ErrorObject(); function $$$internal$$tryCatch(callback, detail) { try { return callback(detail); } catch(e) { $$$internal$$TRY_CATCH_ERROR.error = e; return $$$internal$$TRY_CATCH_ERROR; } } function $$$internal$$invokeCallback(settled, promise, callback, detail) { var hasCallback = $$utils$$isFunction(callback), value, error, succeeded, failed; if (hasCallback) { value = $$$internal$$tryCatch(callback, detail); if (value === $$$internal$$TRY_CATCH_ERROR) { failed = true; error = value.error; value = null; } else { succeeded = true; } if (promise === value) { $$$internal$$reject(promise, $$$internal$$cannotReturnOwn()); return; } } else { value = detail; succeeded = true; } if (promise._state !== $$$internal$$PENDING) { } else if (hasCallback && succeeded) { $$$internal$$resolve(promise, value); } else if (failed) { $$$internal$$reject(promise, error); } else if (settled === $$$internal$$FULFILLED) { $$$internal$$fulfill(promise, value); } else if (settled === $$$internal$$REJECTED) { $$$internal$$reject(promise, value); } } function $$$internal$$initializePromise(promise, resolver) { try { resolver(function resolvePromise(value){ $$$internal$$resolve(promise, value); }, function rejectPromise(reason) { $$$internal$$reject(promise, reason); }); } catch(e) { $$$internal$$reject(promise, e); } } function $$$enumerator$$makeSettledResult(state, position, value) { if (state === $$$internal$$FULFILLED) { return { state: 'fulfilled', value: value }; } else { return { state: 'rejected', reason: value }; } } function $$$enumerator$$Enumerator(Constructor, input, abortOnReject, label) { this._instanceConstructor = Constructor; this.promise = new Constructor($$$internal$$noop, label); this._abortOnReject = abortOnReject; if (this._validateInput(input)) { this._input = input; this.length = input.length; this._remaining = input.length; this._init(); if (this.length === 0) { $$$internal$$fulfill(this.promise, this._result); } else { this.length = this.length || 0; this._enumerate(); if (this._remaining === 0) { $$$internal$$fulfill(this.promise, this._result); } } } else { $$$internal$$reject(this.promise, this._validationError()); } } $$$enumerator$$Enumerator.prototype._validateInput = function(input) { return $$utils$$isArray(input); }; $$$enumerator$$Enumerator.prototype._validationError = function() { return new Error('Array Methods must be provided an Array'); }; $$$enumerator$$Enumerator.prototype._init = function() { this._result = new Array(this.length); }; var $$$enumerator$$default = $$$enumerator$$Enumerator; $$$enumerator$$Enumerator.prototype._enumerate = function() { var length = this.length; var promise = this.promise; var input = this._input; for (var i = 0; promise._state === $$$internal$$PENDING && i < length; i++) { this._eachEntry(input[i], i); } }; $$$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { var c = this._instanceConstructor; if ($$utils$$isMaybeThenable(entry)) { if (entry.constructor === c && entry._state !== $$$internal$$PENDING) { entry._onerror = null; this._settledAt(entry._state, i, entry._result); } else { this._willSettleAt(c.resolve(entry), i); } } else { this._remaining--; this._result[i] = this._makeResult($$$internal$$FULFILLED, i, entry); } }; $$$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { var promise = this.promise; if (promise._state === $$$internal$$PENDING) { this._remaining--; if (this._abortOnReject && state === $$$internal$$REJECTED) { $$$internal$$reject(promise, value); } else { this._result[i] = this._makeResult(state, i, value); } } if (this._remaining === 0) { $$$internal$$fulfill(promise, this._result); } }; $$$enumerator$$Enumerator.prototype._makeResult = function(state, i, value) { return value; }; $$$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { var enumerator = this; $$$internal$$subscribe(promise, undefined, function(value) { enumerator._settledAt($$$internal$$FULFILLED, i, value); }, function(reason) { enumerator._settledAt($$$internal$$REJECTED, i, reason); }); }; var $$promise$all$$default = function all(entries, label) { return new $$$enumerator$$default(this, entries, true , label).promise; }; var $$promise$race$$default = function race(entries, label) { var Constructor = this; var promise = new Constructor($$$internal$$noop, label); if (!$$utils$$isArray(entries)) { $$$internal$$reject(promise, new TypeError('You must pass an array to race.')); return promise; } var length = entries.length; function onFulfillment(value) { $$$internal$$resolve(promise, value); } function onRejection(reason) { $$$internal$$reject(promise, reason); } for (var i = 0; promise._state === $$$internal$$PENDING && i < length; i++) { $$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection); } return promise; }; var $$promise$resolve$$default = function resolve(object, label) { var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor($$$internal$$noop, label); $$$internal$$resolve(promise, object); return promise; }; var $$promise$reject$$default = function reject(reason, label) { var Constructor = this; var promise = new Constructor($$$internal$$noop, label); $$$internal$$reject(promise, reason); return promise; }; var $$es6$promise$promise$$counter = 0; function $$es6$promise$promise$$needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function $$es6$promise$promise$$needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } var $$es6$promise$promise$$default = $$es6$promise$promise$$Promise; function $$es6$promise$promise$$Promise(resolver) { this._id = $$es6$promise$promise$$counter++; this._state = undefined; this._result = undefined; this._subscribers = []; if ($$$internal$$noop !== resolver) { if (!$$utils$$isFunction(resolver)) { $$es6$promise$promise$$needsResolver(); } if (!(this instanceof $$es6$promise$promise$$Promise)) { $$es6$promise$promise$$needsNew(); } $$$internal$$initializePromise(this, resolver); } } $$es6$promise$promise$$Promise.all = $$promise$all$$default; $$es6$promise$promise$$Promise.race = $$promise$race$$default; $$es6$promise$promise$$Promise.resolve = $$promise$resolve$$default; $$es6$promise$promise$$Promise.reject = $$promise$reject$$default; $$es6$promise$promise$$Promise.prototype = { constructor: $$es6$promise$promise$$Promise, then: function(onFulfillment, onRejection) { var parent = this; var state = parent._state; if (state === $$$internal$$FULFILLED && !onFulfillment || state === $$$internal$$REJECTED && !onRejection) { return this; } var child = new this.constructor($$$internal$$noop); var result = parent._result; if (state) { var callback = arguments[state - 1]; $$asap$$default(function(){ $$$internal$$invokeCallback(state, child, callback, result); }); } else { $$$internal$$subscribe(parent, child, onFulfillment, onRejection); } return child; }, 'catch': function(onRejection) { return this.then(null, onRejection); } }; var $$es6$promise$polyfill$$default = function polyfill() { var local; if (typeof global !== 'undefined') { local = global; } else if (typeof window !== 'undefined' && window.document) { local = window; } else { local = self; } var es6PromiseSupport = "Promise" in local && "resolve" in local.Promise && "reject" in local.Promise && "all" in local.Promise && "race" in local.Promise && (function() { var resolve; new local.Promise(function(r) { resolve = r; }); return $$utils$$isFunction(resolve); }()); if (!es6PromiseSupport) { local.Promise = $$es6$promise$promise$$default; } }; var es6$promise$umd$$ES6Promise = { 'Promise': $$es6$promise$promise$$default, 'polyfill': $$es6$promise$polyfill$$default }; if (typeof define === 'function' && define['amd']) { define(function() { return es6$promise$umd$$ES6Promise; }); } else if (typeof module !== 'undefined' && module['exports']) { module['exports'] = es6$promise$umd$$ES6Promise; } else if (typeof this !== 'undefined') { this['ES6Promise'] = es6$promise$umd$$ES6Promise; } }).call(this); (function() { 'use strict'; if (self.fetch) { return } function Headers(headers) { this.map = {} var self = this if (headers instanceof Headers) { headers.forEach(function(name, values) { values.forEach(function(value) { self.append(name, value) }) }) } else if (headers) { Object.getOwnPropertyNames(headers).forEach(function(name) { self.append(name, headers[name]) }) } } Headers.prototype.append = function(name, value) { name = name.toLowerCase() var list = this.map[name] if (!list) { list = [] this.map[name] = list } list.push(value) } Headers.prototype['delete'] = function(name) { delete this.map[name.toLowerCase()] } Headers.prototype.get = function(name) { var values = this.map[name.toLowerCase()] return values ? values[0] : null } Headers.prototype.getAll = function(name) { return this.map[name.toLowerCase()] || [] } Headers.prototype.has = function(name) { return this.map.hasOwnProperty(name.toLowerCase()) } Headers.prototype.set = function(name, value) { this.map[name.toLowerCase()] = [value] } Headers.prototype.forEach = function(callback) { var self = this Object.getOwnPropertyNames(this.map).forEach(function(name) { callback(name, self.map[name]) }) } function consumed(body) { if (body.bodyUsed) { return Promise.reject(new TypeError('Already read')) } body.bodyUsed = true } function fileReaderReady(reader) { return new Promise(function(resolve, reject) { reader.onload = function() { resolve(reader.result) } reader.onerror = function() { reject(reader.error) } }) } function readBlobAsArrayBuffer(blob) { var reader = new FileReader() reader.readAsArrayBuffer(blob) return fileReaderReady(reader) } function readBlobAsText(blob) { var reader = new FileReader() reader.readAsText(blob) return fileReaderReady(reader) } var support = { blob: 'FileReader' in self && 'Blob' in self && (function() { try { new Blob(); return true } catch(e) { return false } })(), formData: 'FormData' in self } function Body() { this.bodyUsed = false if (support.blob) { this._initBody = function(body) { this._bodyInit = body if (typeof body === 'string') { this._bodyText = body } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { this._bodyBlob = body } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { this._bodyFormData = body } else if (!body) { this._bodyText = '' } else { throw new Error('unsupported BodyInit type') } } this.blob = function() { var rejected = consumed(this) if (rejected) { return rejected } if (this._bodyBlob) { return Promise.resolve(this._bodyBlob) } else if (this._bodyFormData) { throw new Error('could not read FormData body as blob') } else { return Promise.resolve(new Blob([this._bodyText])) } } this.arrayBuffer = function() { return this.blob().then(readBlobAsArrayBuffer) } this.text = function() { var rejected = consumed(this) if (rejected) { return rejected } if (this._bodyBlob) { return readBlobAsText(this._bodyBlob) } else if (this._bodyFormData) { throw new Error('could not read FormData body as text') } else { return Promise.resolve(this._bodyText) } } } else { this._initBody = function(body) { this._bodyInit = body if (typeof body === 'string') { this._bodyText = body } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { this._bodyFormData = body } else if (!body) { this._bodyText = '' } else { throw new Error('unsupported BodyInit type') } } this.text = function() { var rejected = consumed(this) return rejected ? rejected : Promise.resolve(this._bodyText) } } if (support.formData) { this.formData = function() { return this.text().then(decode) } } this.json = function() { return this.text().then(JSON.parse) } return this } var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] function normalizeMethod(method) { var upcased = method.toUpperCase() return (methods.indexOf(upcased) > -1) ? upcased : method } function Request(url, options) { options = options || {} this.url = url this.credentials = options.credentials || 'omit' this.headers = new Headers(options.headers) this.method = normalizeMethod(options.method || 'GET') this.mode = options.mode || null this.referrer = null if ((this.method === 'GET' || this.method === 'HEAD') && options.body) { throw new TypeError('Body not allowed for GET or HEAD requests') } this._initBody(options.body) } function decode(body) { var form = new FormData() body.trim().split('&').forEach(function(bytes) { if (bytes) { var split = bytes.split('=') var name = split.shift().replace(/\+/g, ' ') var value = split.join('=').replace(/\+/g, ' ') form.append(decodeURIComponent(name), decodeURIComponent(value)) } }) return form } function headers(xhr) { var head = new Headers() var pairs = xhr.getAllResponseHeaders().trim().split('\n') pairs.forEach(function(header) { var split = header.trim().split(':') var key = split.shift().trim() var value = split.join(':').trim() head.append(key, value) }) return head } Request.prototype.fetch = function() { var self = this return new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest() if (self.credentials === 'cors') { xhr.withCredentials = true; } function responseURL() { if ('responseURL' in xhr) { return xhr.responseURL } if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) { return xhr.getResponseHeader('X-Request-URL') } return; } xhr.onload = function() { var status = (xhr.status === 1223) ? 204 : xhr.status if (status < 100 || status > 599) { reject(new TypeError('Network request failed')) return } var options = { status: status, statusText: xhr.statusText, headers: headers(xhr), url: responseURL() } var body = 'response' in xhr ? xhr.response : xhr.responseText; resolve(new Response(body, options)) } xhr.onerror = function() { reject(new TypeError('Network request failed')) } xhr.open(self.method, self.url, true) if ('responseType' in xhr && support.blob) { xhr.responseType = 'blob' } self.headers.forEach(function(name, values) { values.forEach(function(value) { xhr.setRequestHeader(name, value) }) }) xhr.send(typeof self._bodyInit === 'undefined' ? null : self._bodyInit) }) } Body.call(Request.prototype) function Response(bodyInit, options) { if (!options) { options = {} } this._initBody(bodyInit) this.type = 'default' this.url = null this.status = options.status this.statusText = options.statusText this.headers = options.headers this.url = options.url || '' } Body.call(Response.prototype) self.Headers = Headers; self.Request = Request; self.Response = Response; self.fetch = function (url, options) { return new Request(url, options).fetch() } self.fetch.polyfill = true })(); !function(e){"use strict";var n="isInitialized";function r(e){switch(e.type){case"boolean":case"reference":return!1;default:return!0}}function t(e){return"widget"!==e.type&&(!0!==e.sys_readonly&&(!0===e.mandatory||!0===e.sys_mandatory))}function i(e){return!0===e.sys_readonly||!0===e.readonly}function u(e){if(e.isEncrypted)return!0;switch(e.type){case"user_image":case"glide_encrypted":case"translated_text":return!0;default:return!1}}e.glideFormFieldFactory={create:function(e){var n=e.attributes||{};return{isVisible:function(){if(void 0!==e.fields){var n=!1;if(e.fields.forEach(function(e){n|=!!e.visible}),!n)return!1}return!0===e.visible},isReadonly:function(){return i(e)},isMandatory:function(){return t(e)},hasBarcodeHelper:function(){return r(e)&&"true"===n.barcode},hasCurrentLocationHelper:function(){return r(e)&&"true"===n.current_location},hasMessages:function(){return e.messages&&0<e.messages.length}}},hasInputHelpers:r,useDisplayValueForValue:u,isMandatory:t,isReadonly:i,hasValue:function(e,n){void 0===n&&(n=u(e)?e.displayValue:e.value);switch(e.type){case"boolean_confirm":return"true"===n;case"boolean":return!0;case"currency":return""!==n.replace(/[^0-9]/g,"")}if(null==n)return!1;if(void 0===n)return!1;return 0<String(n).trim().length},isInitialized:function(e){return!0===e[n]},setInitialized:function(e){e[n]=!0},getCurrencyValue:function(e){if(null!=e&&-1!==["currency","currency2","price"].indexOf(e.type)&&null!==e.value)return 0<=e.value.toString().indexOf(";")?e.value.split(";")[1]:e.value}}}(window); function _typeof(e){return(_typeof="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})(e)}!function(e){"use strict";var a={MULTI_ROW_TYPE:"one_to_many",CONTAINER:"container",CHECKBOX:"boolean",CHECKBOX_MANDATORY:"boolean_confirm",CHECKBOX_CONTAINER:"checkbox_container",RICH_TEXT_LABEL:"rich_text_label",LABEL:"label",MASKED:"masked",STRING:"string",MULTIPLE_CHOICE:"multiple_choice",DEFAULT:"default",CAT_VARIABLE:"_cat_variable"};function o(e,n,r,t){e.$private.events.propertyChange("FIELD",n,r,t)}function l(e,n,r,t){n["_"+r]=t,o(e,n.name,r,t)}function f(e){return e.type==a.CONTAINER}function u(e){return null==e||"false"==e||""==e}function i(e,n){return!(n._mandatory&&!s(e,n))}function d(e,n){if(n.type==a.CONTAINER&&n.containerType==a.CHECKBOX_CONTAINER)return i(e,n);if(n._children)for(var r=0;r<n._children.length;r++)if(!c(e,e.getField(n._children[r])))return!1;return!0}function c(e,n){return f(n)?d(e,n):n.type==a.CHECKBOX?_(e,n):!(glideFormFieldFactory.isMandatory(n)&&!glideFormFieldFactory.hasValue(n))}function _(e,n){var r=e.getField(n._parent);return!(r._mandatory&&!s(e,r))||(1==(r=(r._children||[]).map(e.getField).filter(function(e){return e._visible&&!e._readonly})).length?n!==r[0]:1<r.length)}function s(e,n){if(n.type===a.CONTAINER&&n.containerType===a.CHECKBOX_CONTAINER&&n._children)for(var r=0;r<n._children.length;r++)if(!u(e.getField(n._children[r]).value))return!0;return!1}function y(e,n,r){if(f(n))if(r)!n._cascade_hidden&&d(e,n)||(l(e.g_form,n,"cascade_hidden",!1),e.g_form.setVisible(n.name,r),"string"==typeof n._parent&&e.getField(n._parent)&&y(e,e.getField(n._parent),r));else{if(n._children)for(var t=0;t<n._children.length;t++)if(e.g_form.isVisible(n._children[t]))return!1;e.g_form.setVisible(n.name,r),"string"==typeof n._parent&&e.getField(n._parent)&&y(e,e.getField(n._parent),r),l(e.g_form,n,"cascade_hidden",!0)}}var t=function(r,t){Object.defineProperty(t,"visible",{set:function(e){if((e||_(r,t))&&(t._visible=e,void 0!==t._parent&&t._parent)){var n=r.getField(t._parent);if(!e||n._visible||n._cascade_hidden){if(!e){if(n._mandatory&&!s(r,n))if(0<(n._children||[]).map(r.getField).filter(function(e){return e._visible}).length)return;return y(r,n,!1)}l(r.g_form,n,"visible",e),l(r.g_form,n,"cascade_hidden",!e),void 0!==n._parent&&n._parent&&y(r,r.getField(n._parent),e)}}},get:function(){return t._visible},configurable:!0})},g=function(n,r){Object.defineProperty(r,"readonly",{set:function(e){if(e&&!_(n,r))return!1;r.sys_readonly||(r._readonly=e);e=n.getField(r._parent);e._cascade_readonly&&(l(n.g_form,e,"cascade_readonly",!1),l(n.g_form,e,"readonly",!1))},get:function(){return r.sys_readonly||r._readonly},configurable:!0})},p=function(i,a){Object.defineProperty(a,"mandatory",{set:function(e){var n=i.getField(a._parent);if(e&&u(a.value)){a._mandatory=e,l(i.g_form,n,"mandatory",e);var r=s(i,n);if(!n._visible&&r)return;r||(a._visible||(a._visible=!0),a._readonly&&(a._readonly=!1)),l(i.g_form,n,"visible",!0),l(i.g_form,n,"readonly",!1),void 0!==n._parent&&n._parent&&y(i,i.getField(n._parent),!0)}if(a._mandatory=e)l(i.g_form,n,"mandatory",!0);else{for(var t=0;t<(n._children||[]).length;t++)if(i.getField(n._children[t])._mandatory)return void l(i.g_form,n,"mandatory",!0);l(i.g_form,n,"mandatory",e),n.isInvalid=!1,o(i.g_form,n.name,"isInvalid",!1)}},get:function(){return a._mandatory},configurable:!0})},v=function(t,i){i._value=i.value,Object.defineProperty(i,"value",{set:function(e){var n,r;i._value=e,void 0!==i._parent&&i._parent&&(e=t.getField(i._parent),n=t,(e=e).type===a.CONTAINER&&e.containerType===a.CHECKBOX_CONTAINER&&(r=!(!e._mandatory||s(n,e)),!!e.isInvalid!=r&&(e.isInvalid=r,o(n.g_form,e.name,"isInvalid",r))))},get:function(){return i._value},configurable:!0})},b=function(n,r){Object.defineProperty(r,"visible",{set:function(e){if(e){if(!r._visible&&r._cascade_hidden)return}else if(!i(n,r))return;r._visible=e,r._cascade_hidden=!1,void 0!==r._parent&&r._parent&&y(n,n.getField(r._parent),e)},get:function(){return r._visible},configurable:!0})},m=function(r,t){Object.defineProperty(t,"readonly",{set:function(e){if(!e||i(r,t)){if(t._children)for(var n=0;n<t._children.length;n++)r.g_form.setReadOnly(t._children[n],e);t.sys_readonly||(t._readonly=e,t._cascade_readonly=!0)}},get:function(){return t.sys_readonly||t._readonly},configurable:!0})},h=function(i,a){var e;if(a.render_label){if(a._children)for(var n=0;n<a._children.length;n++)if(i.getField(a._children[n]).mandatory){a._mandatory=!0;break}}else a._children&&(e=i.getField(a._children[0]))&&e.mandatory&&(a._mandatory=!0);Object.defineProperty(a,"mandatory",{set:function(e){var n=e&&!s(i,a);if(a._children)for(var r=0;r<a._children.length;r++){var t=i.getField(a._children[r]);n&&(l(i.g_form,t,"visible",!0),l(i.g_form,t,"readonly",!1)),i.g_form.setMandatory(t.name,e)}a._mandatory=e},get:function(){return a._mandatory},configurable:!0})},O=function(e,n){n.render_label||n.displayTitle||Object.defineProperty(n,"label",{get:function(){return(e.getField((n._children||[])[0])||{}).label},configurable:!0})},C=function(e,n){Object.defineProperty(n,"value",{set:function(e){},get:function(){return n._mandatory&&s(e,n)?"true":this._mandatory?"":"false"},configurable:!0})},E=function(n,r){Object.defineProperty(r,"visible",{set:function(e){if(e){if(!r._visible&&r._cascade_hidden)return}else if(!d(n,r))return;r._visible=e,r._cascade_hidden=!1,void 0!==r._parent&&r._parent&&y(n,n.getField(r._parent),e)},get:function(){return r._visible},configurable:!0})},F=function(e,n){Object.defineProperty(n,"isInvalid",{set:function(e){},get:function(){return!1},configurable:!0})},I=function(i,a){Object.defineProperty(a,"mandatory",{set:function(e){a._mandatory=e;var n=!0;if(a._children)for(var r=0;r<a._children.length;r++){var t=i.getField(a._children[r]);i.g_form.setMandatory(t.name,e),n=n&&c(i,t)}!e||!a._visible&&n||void 0!==a._parent&&a._parent&&y(i,i.getField(a._parent),!0)},get:function(){if(a._children)for(var e=0;e<a._children.length;e++){var n=i.getField(a._children[e]);if(i.g_form.isMandatory(n.name))return!0}return a._mandatory},configurable:!0})},T=function(t,i){Object.defineProperty(i,"readonly",{set:function(e){if(i._children)for(var n=0;n<i._children.length;n++){var r=t.getField(i._children[n]);!(f(r)||!e||e&&c(t,r))||r.sys_readonly||(r.readonly=e,o(t.g_form,r.name,"readonly",e))}i.sys_readonly||(i._readonly=e)},get:function(){return i.sys_readonly||i._readonly},configurable:!0})},V=function(r,t){Object.defineProperty(t,"value",{set:function(e){},get:function(){if(t._children)for(var e=0;e<t._children.length;e++){var n=r.getField(t._children[e]);if(glideFormFieldFactory.hasValue(n))return"true"}return this.mandatory?"true":""},configurable:!0})},N=function(e,n){Object.defineProperty(n,"mandatory",{set:function(e){console.log("setMandatory not applicable for 'Label' variable type")},configurable:!0})},A=function(e,n){Object.defineProperty(n,"value",{set:function(e){console.log("setValue not applicable for 'Label' variable type")},get:function(){return""},configurable:!0})},P=function(e,n){n._value=n.value,Object.defineProperty(n,"value",{set:function(e){n._value=e,n.useConfirmation&&(n.isInvalid=!1,n.confirmPassword=e,n._confirmationValue=e)},get:function(){return n._value},configurable:!0})},j=function(e,n){void 0===n.confirmationValue?n._confirmationValue=n.value:n._confirmationValue=n.confirmationValue,Object.defineProperty(n,"confirmationValue",{set:function(e){n._confirmationValue=e,n.value===e?n.isInvalid=!1:n.isInvalid=!0},get:function(){return n._confirmationValue},configurable:!0})},R=function(e,a){a._displayValue=a.displayValue,Object.defineProperty(a,"displayValue",{set:function(e){if(void 0===e&&(e=a.value),a.choices&&e===a.value)for(var n=a.choices.items||a.choices,r=String(a.value),t=0;t<n.length;t++){var i=n[t];if(String(i.value)===r){e=i.displayValue||i.label;break}}a._displayValue=e},get:function(){return a._displayValue}})},L=function(e,o){o._value=o.value&&"string"==typeof o.value?JSON.parse(o.value):o.value,Object.defineProperty(o,"value",{set:function(e){var n=o,r="_value";if(""==e)n[r]=[];else if(n.validated)n[r]=JSON.parse(e),n.validated=!1;else{if(Array.isArray(e))try{JSON.stringify(e)}catch(e){return void S("JSON parse error","Invalid value for table variable")}else if("string"!=typeof e)return void S("Invalid Input","Invalid value for table variable");var t,i={},a=n.fields;for(t in a)a[t].unique&&(i[a[t].name]=a[t].label);e=JSON.parse(e);!function(e,n,r){if(n&&n.length>e)return S("Maximum Row Limit Exceeded","The number of rows specified in the multi-row variable set "+r+" exceeds the maximum limit of: "+e),1;return}(n.maxRows,e,n.label)&&!function(e,n){if(e&&n){e=function(e,n){var r,t=new Map,i=new Set,a=[];for(r in e)t.set(r,new Map);if(0<Object.keys(e).length&&Array.isArray(n)&&0<n.length)for(var o=0;o<n.length;o++){var l=n[o];if(null!==l&&"object"===_typeof(l))for(var f in e){var u=l[f];u&&(u=u.toString().toLowerCase(),t.get(f).has(u)?i.add(e[f]):t.get(f).set(u,!0))}}i&&i.forEach(function(e){a.push(e)});return a}(e,n);if(0<e.length)return S("Duplicate Data","Some fields are not unique: "+e.join(", ")),1}return}(i,e)&&(n[r]=e)}},get:function(){return o._value&&0<o._value.length?"string"==typeof o._value?o._value:JSON.stringify(o._value):""},configurable:!0})},w=function(e,n){n._displayValue=n.displayValue&&"string"==typeof n.displayValue?JSON.parse(n.displayValue):n.displayValue,Object.defineProperty(n,"displayValue",{set:function(e){n.updateDisplayValue?(n._displayValue=e&&"string"==typeof e?JSON.parse(e):e,n.updateDisplayValue=!1):n._displayValue=n._value},get:function(){return n._displayValue&&0<n._displayValue.length?"string"==typeof n._displayValue?n._displayValue:JSON.stringify(n._displayValue):""},configurable:!0})};function S(e,n){console&&console.warn&&console.warn("(g_form) ["+e+"] "+n)}var M=function(n,r){Object.defineProperty(r,"visible",{set:function(e){r._visible=e,void 0!==r._parent&&r._parent&&y(n,n.getField(r._parent),e)},get:function(){return r._visible},configurable:!0})},B=function(n,r){Object.defineProperty(r,"mandatory",{set:function(e){r.sys_readonly||(r._mandatory=e,void 0!==r._parent&&r._parent&&y(n,n.getField(r._parent),!0))},get:function(){return r._mandatory},configurable:!0})};function H(e){return!0===e.is_handler}e.catalogVariableHandler={create:function(e,n){if(!0!==n[a.CAT_VARIABLE])return null;if(!H(n)){H(r=n)||(r.is_handler=!0,r._visible=r.visible,r._readonly=r.readonly,r._mandatory=r.mandatory);var r=(n=r).type;switch(r===a.CONTAINER&&(n.containerType===a.CHECKBOX_CONTAINER?r=n.containerType:n.containerType===a.MULTI_ROW_TYPE&&(r=a.MULTI_ROW_TYPE)),r){case a.CONTAINER:I(e,n),E(e,n),V(e,n),T(e,n),F(e,n);break;case a.CHECKBOX_CONTAINER:C(e,n),m(e,n),b(e,n),h(e,n),O(e,n);break;case a.CHECKBOX:v(e,n),t(e,n),p(e,n),g(e,n);break;case a.MULTI_ROW_TYPE:L(e,n),w(e,n),M(e,n),B(e,n);break;case a.RICH_TEXT_LABEL:case a.LABEL:N(e,n),M(e,n),A(e,n);break;case a.MASKED:B(e,n),M(e,n),P(e,n),n.useConfirmation&&j(e,n);case a.MULTIPLE_CHOICE:M(e,n),B(e,n),R(e,n);default:M(e,n),B(e,n)}}return n}}}(window); function _typeof(e){return(_typeof="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})(e)}!function(B,z,Q,Y,J){"use strict";B.glideFormFactory={create:function(N,e,t,a,i){t=t||[];var n,T=e?e.toString():"-1",M=t,w=function(e){var t={};e&&e.forEach(function(e){void 0!==e.dirtyQueryField&&!0===e.dirtyQueryField&&(t[e.name]=!0)});return t}(t),s={},r=Z,k={},o={name:K},l=[],d=[],S=[],C=[],f=[],p=[],h=[],g=[],v=!1,A={isInitialized:!1,fieldIterator:function(e){M.forEach(e)},getMappedField:null,getMappedFieldName:null,uiMessageHandler:null,formMessageHandler:null,encodedRecord:null,relatedLists:null,sections:null,cleanDecimals:!1,viewName:"",useCatalogVariableFieldHandler:!1,messageTypeMap:{},showMandatoryFieldErrorMessages:!1,document:null,submitPromises:!1,reloadForm:null,serializedExclusionList:[]},m={templateLoading:{}},O=!1;M&&M[0]&&M[0].originalValue===J&&A.fieldIterator(function(e){e.originalValue=e.value});function R(e,t){return"string"!=typeof e||"string"!=typeof t?e===t:e.replace(/\r/g,"")===t.replace(/\r/g,"")}var L=0;function U(a,t,n,i,s){var e=null===i||i===J;if(t&&(!R(t.value,n)||!e&&!R(t.displayValue,i))&&(null!==n&&n!==J||(n=""),!O||s&&s.fromLiveUpdate)){var r,o,l,u,c,d,f,p,h,g,v,e=!1,m=!1,y=!1,b=(s&&(e=!!s.skipDerivedFieldUpdate,m=!!s.skipDisplayValueUpdate,y=!!s.isUserModified),t.value);if(R(b,n)||(t.originalValue===n?delete w[t.name]:w[t.name]=!0,y&&(void 0===(y=k[t.name])?k[t.name]={initialValue:b,newValue:n}:R(y.initialValue,n)?delete k[t.name]:y.newValue=n),a.hideFieldMsg(t.name,!0)),t.mandatory&&(Q.hasValue(t,n)?I(a,t,!1):I(a,t,!0)),t.value=n,"reference"===t.type){if(e||(d=a,y=function(e){for(var t=[],i=e+".",a=0,n=M.length;a<n;a++){var s=M[a];s.name.startsWith(i)&&t.push(s)}return t}((f=t).name),Q.hasValue(f)?(p=[],h={},y.forEach(function(e){var t=D(e.name,f.name);h[t]=e,p.push(t),P(e)&&p.push(D(e.dependentField,f.name))}),0!=p.length&&(e=glideFormFactory.glideRequest,g=$(f),v=f.reference_key||"sys_id",g="/api/now/v1/table/"+g,v={sysparm_display_value:"all",sysparm_fields:p.join(","),sysparm_query:v+"="+f.value,sysparm_limit:1},e.get(g,{params:v}).then(function(e){var n=e&&e.data?e.data.result:null;0<n.length&&(n=n[0],Object.keys(n).forEach(function(e){var t,i,a=h[e];a&&(e=n[e],P(a)&&(i=n[D((t=a).dependentField,f.name)],t&&i&&(t.dependentTable=i.value,t.dependentValue=i.display_value||i.value),a=t),"glide_list"===a.type?U(d,a,e.value,e.display_value,{skipDerivedFieldUpdate:!0,skipDisplayValueUpdate:!1}):"currency2"===a.type||"currency"===a.type?U(d,a,e.currency_display_value,e.display_value,{skipDerivedFieldUpdate:!0,skipDisplayValueUpdate:!1}):U(d,a,e.value,e.display_value,{skipDerivedFieldUpdate:!0,skipDisplayValueUpdate:!0}),(i=a.name.split(".").slice(0,-1).join("."))&&d.getValue(i)&&a.dictionary&&a.dictionary.isMandatory&&d.setMandatory(a.name,!0))}))}))):y.forEach(function(e){U(d,e,"",null,{skipDerivedFieldUpdate:!0}),d.setMandatory(e.name,!1)})),!m&&Q.hasValue(t)&&!i)return t.displayValue="",void a.getReference(t.name,function(e){e=e.getDisplayValue();t.value=b,U(a,t,n,e,{skipDerivedFieldUpdate:!0,skipDisplayValueUpdate:!0})});t.referenceSysId=n}else if("glide_list"==t.type)if(Q.hasValue(t)){if(!m)return i&&!Array.isArray(i)&&Ee("g_form.setValue(field, value, displayValue)","When using setValue with a glide_list element: displayValue should be an array of display values."),l=b,u=a,e=i,g=s,-1<(o=t).value.indexOf("/")&&!e&&(e=o.value),c={},Object.assign(c,g,{skipDerivedFieldUpdate:!0,skipDisplayValueUpdate:!0}),void(Array.isArray(e)?(o.display_value_list=e,V=o.value,o.value=l,U(u,o,V,e.join(", "),c)):e&&o.value.split(",").length==e.split(",").length?(o.display_value_list=e.split(","),V=o.value,o.value=l,U(u,o,V,e,c)):(o.displayValue="",o.display_value_list=[],g=$(o),glideFormFactory.glideRequest.post("/api/now/ui/glide/list/element/display/"+g,{dataType:"json",data:o.value.toString()}).then(function(e){var t,i=e&&e.data?e.data.result:null,a=[],n=[];if(i)for(var s in i)a.push(i[s].sys_id),n.push(i[s].display);o.value=l,o.display_value_list=n,void 0===t&&(t=", "),U(u,o,a.join(","),n.join(t),c)})))}else t.display_value_list=[],i="";else if("choice"===t.type||"multiple_choice"===t.type)t.choices&&i===J&&(v=t.choices.items||t.choices,r=String(n),v.forEach(function(e){String(e.value)===r&&(i=e.displayValue||e.label)}));else if("price"===t.type&&window.NOW.currency&&"object"===_typeof(window.NOW.currency)&&window.NOW.locale&&"object"===_typeof(window.NOW.locale)){if("string"==typeof i&&-1<i.indexOf(";"))n=i;else{if("string"!=typeof n||""===n)return;-1===n.indexOf(";")&&(n=window.NOW.currency.code+";"+n)}y=(i=n).split(";"),m=y[0];parseFloat(y[1],y[1].length).toString()!==y[1]&&(y[1]=a.getDecimalValue(t.name));n=((n=y[1].toString().replace(/[^\d-^.]/g,"")).startsWith("-")?"-":"")+n.replace(/[^\d\.]/g,"");var V=Number(n).toLocaleString(window.NOW.locale.code.replace(/_/g,"-"),{style:"currency",currency:m,minimumFractionDigits:2,maximumFractionDigits:4,currencyDisplay:"code",useGrouping:!1}),e=new RegExp("("+m+"| |)+","g"),V=V.replace(e,"");n=m+";"+V}var _,F,E,y=t.displayValue;t.displayValue=void 0!==i&&null!=i?i:n,function(e){for(var t=[],i=0,a=M.length;i<a;i++){var n=M[i];n.dependentField===e&&t.push(n)}return t}(t.name).forEach(function(e){var t,i=!1;R(e.dependentValue,n)||(e.dependentValue=n,t=e.type,0<=Re.indexOf(t)&&U(a,e,"","",s),i=!0),e.ed&&!R(e.ed.dependent_value,n)&&(e.ed.dependent_value=n,i=!0),i&&a.$private.events.propertyChange(me,e.name,"dependentValue",n)}),R(b,n)&&R(y,i)||(e=a,_=t,F=n,0<S.length&&(L++,S.forEach(function(e){e.call(e,_.name,_.originalValue,F)}),L--),A.getMappedFieldName&&(E=A.getMappedFieldName(_.name),L++,S.forEach(function(e){e.call(e,E,_.originalValue,F)}),L--),0===L&&(e.$private.events.stateChange(e.isUserModified()?Ae:Z),0<C.length&&C.forEach(function(e){e.call(e)})))}}function j(t){var i;return A.relatedLists?(i=null,A.relatedLists.forEach(function(e){i||(t===y(e)||e.relationship_id&&e.relationship_id===t||t===e.table||t===e.field)&&(i=e)}),i):null}function y(e){return e.related_field?e.value:e.table+"."+e.field}function x(e){e=e.caption;return e?e.toLowerCase().replace(" ","_").replace(/[^0-9a-z_]/gi,""):null}function P(e){return e.dependentField}function H(e,t){return Q.isReadonly(t)}function q(e,t){return Q.isMandatory(t)}function G(){for(var e=[],t=0,i=M.length;t<i;t++)"annotation"===M[t].type&&e.push(M[t]);return e}function b(e,t){for(var i=0,a=(n=n||G()).length;i<a;i++)e.setVisible(n[i].name,t)}function D(e,t){return e.replace(t+".","")}function V(e,t,i,a,n){if(e.optionStack||(e.optionStack=[]),"add"===t){void 0===i&&(i=a);for(var s=e.optionStack.length-1;0<=s;s--)if(e.optionStack[s].value===i){if("add"===e.optionStack[s].operation)return!1;break}}a={operation:t,label:a,value:i,index:n};return"clear"===t?e.optionStack.splice(0,e.optionStack.length,a):e.optionStack.push(a),!0}function W(n){var s=[];if(A.fieldIterator(function(e){var t,i,a;Q.isMandatory(e)&&(Q.hasValue(e)?e.isInvalid||I(n,e,!1):(s.push({label:e.label,name:e.name}),I(n,e,!0),t=n,e=e.name,A.showMandatoryFieldErrorMessages&&(i=t.$private.getField(e),(a=u("FIELD_MANDATORY_MESSAGE",i.label+" is required"))instanceof Function&&(a=a(i.label)),i.messages&&i.messages.some(function(e){return e.message===a})||t.showErrorBox(e,a))))}),0===s.length)return 1;var e=u("MANDATORY_MESSAGE","The following mandatory fields are not filled in")+":";"undefined"!=typeof g_mandatory_field_msg&&(e=g_mandatory_field_msg),c(n,"mandatoryError",e,{fields:s})}function u(e,t){return A.messages?A.messages[e]:t}function _(e){var t,i=[];if(A.fieldIterator(function(e){!0===e.isInvalid&&i.push({label:e.label,name:e.name})}),0!==i.length)return t=u("FIELD_ERROR_MESSAGE","The following fields contain errors")+":",c(e,"fieldError",t="undefined"!=typeof g_field_error_msg?g_field_error_msg:t,{fields:i}),1}function $(e){var t=e.ed?e.ed.reference:J;return t=void 0===(t=void 0===(t=void 0===t?e.refTable:t)?e.ref_table:t)?e.reference:t}function F(e,t,i){var a=!1;(a=A.uiMessageHandler?!1!==A.uiMessageHandler(e,t,i):a)||void 0===i||alert(i),e.$private.events.propertyChange(ve,null,t)}function E(e,t,i,a,n){var s=!1;(s=A.formMessageHandler?!1!==A.formMessageHandler(e,t,i,a,n):s)||"addFormMessage"!==t||void 0===a||(s=a,"object"===_typeof(n)&&Me(n.fields)&&(s=Se(a,n.fields)),alert(s)),e.$private.events.propertyChange(ve,t,i,a,n)}function c(e,t,i,a){i&&("formMessage"===A.messageTypeMap[t]?(E(e,"clearFormMessages","mandatoryError"),E(e,"clearFormMessages","fieldError"),E(e,"addFormMessage",t,i,a)):F(e,"mandatoryError"===t?"mandatoryMessage":"errorMessage",i=Se(i,a.fields)))}function I(e,t,i){!!t.isInvalid!==i&&(t.isInvalid=i,e.$private.events.propertyChange(me,t.name,"isInvalid",t.isInvalid))}e=new function(){this.hasField=function(e){return null!==c(e)},this.getFieldNames=function(){var t=[];return A.fieldIterator(function(e){t.push(e.name)}),t},this.setLabel=function(e,t){e=c(e);e&&e.label!==t&&(e.label=t,this.$private.events.propertyChange(me,e.name,"label",e.label))},this.setLabelOf=this.setLabel,this.getLabel=function(e){e=c(e);if(e)return e.label},this.getLabelOf=this.getLabel,this.addDecoration=function(e,t,i){var a=c(e);if(a){a.decorations&&Me(a.decorations)||(a.decorations=[]);for(var e={icon:t,text:i},n=0;n<a.decorations.length;n++){var s=a.decorations[n];if(s.icon===t&&s.text===i)return}a.decorations.push(e);e=a.decorations.slice();this.$private.events.propertyChange(me,a.name,"decorations",e)}},this.removeDecoration=function(e,t,i){var a=c(e);if(a&&a.decorations&&Me(a.decorations)){for(var n=!1,s=0;s<a.decorations.length&&!n;s++){var r=a.decorations[s];r.icon===t&&r.text===i&&(a.decorations.splice(s,1),n=!0)}n&&(e=a.decorations.slice(),this.$private.events.propertyChange(me,a.name,"decorations",e))}},this.setFieldPlaceholder=function(e,t){e=c(e);e&&e.placeholder!==t&&(e.placeholder=t,this.$private.events.propertyChange(me,e.name,"placeholder",t))},this.getEncodedRecord=function(){return A.encodedRecord||""},this.isMandatory=function(e){e=c(e);return!!e&&q(0,e)},this.setMandatory=function(e,t){var i=c(e);if(i&&!i.sys_mandatory&&"widget"!==i.type){if(t=Fe(t),!Q.hasValue(i)&&t)this.setReadonly(e,!1),this.setVisible(e,!0);else{if(q(0,i)==t)return;t||I(this,i,!1)}i.mandatory=t,this.$private.events.propertyChange(me,i.name,"mandatory",i.mandatory)}},this.isReadOnly=function(e){e=c(e);return!!e&&H(0,e)},this.setReadOnly=function(e,t){e=c(e);!e||e.sys_readonly||(t=Fe(t))&&Q.isMandatory(e)&&!Q.hasValue(e)||H(0,e)!==t&&(e.readonly=t,this.$private.events.propertyChange(me,e.name,"readonly",e.readonly))},this.setReadonly=this.setReadOnly,this.setDisabled=this.setReadOnly,this.isVisible=function(e){e=c(e);return!!e&&(e.visible===J||!!e.visible)},this.setVisible=function(e,t){e=c(e);e&&(t=Fe(t),e.visible===t||e.visible&&Q.isMandatory(e)&&!Q.hasValue(e)||(e.visible=t,this.$private.events.propertyChange(me,e.name,"visible",e.visible)))},this.setDisplay=this.setVisible,this.getValue=function(e){e=c(e);return e?Q.useDisplayValueForValue(e)?e.displayValue:void 0!==e.value&&null!==e.value?e.value.toString():"":""},this.getDisplayValue=function(e){e=c(e);return e?e.displayValue:""},this.clearValue=function(e){this.setValue(e,"","")},this.sendFeedbackOnSubmit=function(e,t){t=t.logId;t&&(s[t]?s[t].push({fieldName:e,fieldValue:this.getValue(e)}):s[t]=[{fieldName:e,fieldValue:this.getValue(e)}])},this.setValue=function(e,t,i){U(this,c(e),t,i)},this.getTableName=function(){return N},this.getViewName=function(){return A.viewName},this.getControl=function(e){var t=c(e);return null===t?null:new Le(this,e,t.type)},this.isNewRecord=function(){return"-1"===T},this.getSysId=function(){return A.uniqueValue||T},this.getUniqueValue=this.getSysId,this.getBooleanValue=function(e){e=this.getValue(e);return!(!(e=e&&e+"")||0===e.length||"false"==e)},this.getDecimalValue=function(e){var t=Q.getCurrencyValue(c(e));return(t=t||this.getValue(e))&&0!==t.length?A.cleanDecimals?(e=ke(t).replace(/,/g,"."),parseFloat(e)):parseFloat(t):0},this.getIntValue=function(e){e=this.getValue(e);return(e="string"==typeof e?e.trim():e)&&0!==e.length?parseInt(ke(e),10):0},this.addOption=function(e,t,i,a){e=c(e);e&&V(e,"add",t,i,a)&&(t=e.optionStack.slice(),this.$private.events.propertyChange(me,e.name,"optionStack",t))},this.clearOptions=function(e){var t,e=c(e);e&&(V(e,"clear"),t=e.optionStack.slice(),this.$private.events.propertyChange(me,e.name,"optionStack",t))},this.removeOption=function(e,t){e=c(e);e&&(V(e,"remove",t),t=e.optionStack.slice(),this.$private.events.propertyChange(me,e.name,"optionStack",t))},this.hideRelatedList=function(e){var t=j(e);t&&!1!==t.visible&&(t.visible=!1,this.$private.events.propertyChange(be,e,"visible",!1))},this.hideRelatedLists=function(){A.relatedLists&&A.relatedLists.forEach(function(e){this.hideRelatedList(y(e))},this)},this.showRelatedList=function(e){var t=j(e);t&&!0!==t.visible&&(t.visible=!0,this.$private.events.propertyChange(be,e,"visible",!0))},this.showRelatedLists=function(){A.relatedLists&&A.relatedLists.forEach(function(e){this.showRelatedList(y(e))},this)},this.getRelatedListNames=function(){var t=[];return A.relatedLists&&A.relatedLists.forEach(function(e){t.push(y(e))}),t},this.getSectionNames=function(){var t=[];return A.sections&&A.sections.forEach(function(e){e=x(e);null!==e&&t.push(e)}),t},this.setSectionDisplay=function(e,t){i=e;var i,a,n=A.sections?(a=null,A.sections.forEach(function(e){a||x(e)===i&&(a=e)}),a):null;n&&(t=Fe(t),n.visible!==t&&(n.visible=t,this.$private.events.propertyChange(ye,e,"visible",t)))},this.getReference=function(e,t){var i,a,n;t?(i=c(e))?(a=$(i),n=i.reference_key||"sys_id",new B.GlideRecord(a).get(n,i.value,t)):Ee("GETREF:FNF","Field not found: "+e):Ee("GETREF:NOCB","Mobile scripts must specify a callback function")},this.addErrorMessage=function(e){F(this,"errorMessage",e)},this.addWarningMessage=function(e){F(this,"warningMessage",e)},this.addInfoMessage=function(e){F(this,"infoMessage",e)},this.addSuggestionMessage=function(e){"formMessage"===A.messageTypeMap.suggestion?E(this,"addFormMessage","suggestion",e):F(this,"suggestionMessage",e)},this.clearMessages=function(){F(this,"clearMessages")},this.showFieldMsg=function(e,t,i,a){e=c(e);if(e){switch(e.messages||(e.messages=[]),null==t&&(t=""),i){default:i="info";break;case"info":case"warning":break;case"error":case"warning":}e.messages.push({message:t,type:i});t=e.messages.slice();this.$private.events.propertyChange(me,e.name,"messages",t)}},this.hideFieldMsg=function(e,t){var i=c(e);if(i&&i.messages&&Me(i.messages)){t?i.messages=[]:i.messages.shift();for(var e=i.messages.slice(),a=!1,n=i.messages.length-1;0<=n;n--)"error"===i.messages[n].type&&(a=!0);a||I(this,i,!1),this.$private.events.propertyChange(me,i.name,"messages",e)}},this.hideAllFieldMsgs=function(e){switch(e){default:return;case"info":case"error":case"warning":}for(var t=0;t<M.length;t++){var i=M[t].messages;if(i&&Me(i))for(var a=i.length-1;0<=a;a--)i[a].type===e&&i.splice(a,1)}this.$private.events.propertyChange(ve,null,"messages")},this.showErrorBox=function(e,t,i){this.showFieldMsg(e,t,"error",i)},this.hideErrorBox=function(e){this.hideFieldMsg(e,!1)},this.addFormMessage=function(e,t,i){var a,i=i?i.linksToFields:null;e&&("error"!==t&&"warning"!==t&&"suggestion"!==t&&(t="info"),a=[],i&&Me(i)&&i.forEach(function(e){var t=this.getLabel(e);a.push({label:t,name:e})},this),E(this,"addFormMessage",t,e,{fields:a}))},this.clearFormMessages=function(e){E(this,"clearFormMessages",e)},this.clearAllFormMessages=function(){E(this,"clearAllFormMessages")},this.getActionName=function(){if(a&&a.getActiveActionName){var e=a.getActiveActionName();if(e!==K)return e}return o.name||K},this.reload=function(){A.reloadForm?A.reloadForm():Ee("UNSUPPORTED","g_form.reload is not supported on mobile or service portal.")},this.save=function(){var e=Ce;return a&&a.getSaveActionName&&(e=a.getSaveActionName()),this.submit(e)},this.submit=function(e){var t,i=function(e){var t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}(A.document||z);return i&&(i.blur(),i.focus()),o.sysId&&o.name===e||this.$private.userState.setRunningAction(e||X),("sysverb_ws_delete"===e||this.$private.validateForm(o.name))&&(i=function(e){if(!a)return!1;var t=a.getActionByName(e);t||Ee("NOACTION","Could not find UI Action: "+e);return t}(o.sysId||o.name))?(t=this,(a.submit?a.submit(i.sysId,{skipValidation:!0,g_form:t}):i.execute(this)).then(function(){var n;t.$private.userState.clearModifiedFields(),t.$private.events.stateChange(Oe),t.clearAllFormMessages(),t.$private.userState.resetRunningAction(),n=t,Object.keys(s).forEach(function(e){var a={};s[e].forEach(function(e){var t=e.fieldName,i=n.getValue(t);i!==e.fieldValue&&(a[t]=i)}),0!=Object.keys(a).length&&glideFormFactory.glideRequest.post("/api/sn_uxc_gen_ai/uxc_generative_ai/feedback",{dataType:"json",data:{logId:e,isResponseEdited:!0,edited_response:a}})})}).catch(function(){return t.clearFormMessages("mandatoryError"),t.clearFormMessages("fieldError"),t.$private.userState.resetRunningAction(),Promise.reject(!1)})):(this.$private.userState.resetRunningAction(),!!A.submitPromises&&Promise.reject(!1))},this.serialize=function(e){function t(e,t){null!=(e=function(e,t){var i,a={};for(i in e)t&&t.indexOf&&0<=t.indexOf(i)||Object.prototype.hasOwnProperty.call(e,i)&&"function"!==_typeof(e[i])&&(a[i]=e[i]);return a}(e,A.serializedExclusionList)).value&&void 0!==e.value||(e.value=""),t.push(e)}var i=[];return!0===e?Object.keys(w).forEach(function(e){t(c(e),i)}):M.forEach(function(e){t(e,i)}),i},this.setUserValue=function(e,t,i){e=c(e);U(this,e,t,i,{isUserModified:!0}),this.$private.events.userChangeValue(e,t)},this.isUserModified=function(){return 0!==Object.keys(k).length},this.isLiveUpdating=function(){return O},this.enableAttachments=function(){A.attachments&&(A.attachments.canCreate=!0,v=!1,this.$private.events.propertyChange(Ve,"attachments","canCreate",!0))},this.disableAttachments=function(){A.attachments&&(A.attachments.canCreate=!1,v=!0,this.$private.events.propertyChange(Ve,"attachments","canCreate",!1))},this.isAttachmentUploadDisabled=function(){return v},this.getEditableFields=function(){var t=[];return M.forEach(function(e){we(e)&&t.push(e.name)}),t},this.isEditableField=function(e){return we(c(e))};var u=this;function c(e){if(e){for(var t=null,i=null,a=0,n=M.length;a<n;a++){var s=M[a];if(s.name===e||s.isGlideVar&&s.name.split(".").slice(-1)[0]===e){t=s;break}i||s.variable_name!==e||(i=s)}if(t)return t;if(i)return i;if(A.getMappedField){var r=A.getMappedField(e);if(r)return r}}return null}this.insertContentAtCursor=function(e,t){var i,a=c(e);a&&(a=(a=(a=z.querySelectorAll("input[name='"+a.ed.name+"']")[0])?a.selectionStart:0)||0,t=(i=this.getValue(e)).substr(0,a)+t+i.substr(a),this.setValue(e,t))},this.onUserChangeValue=function(t){return this.$private.events.on(ge,t),function(){var e=g.indexOf(t);-1<e&&g.splice(e,1)}},this.setVariablesReadOnly=function(t){A.useCatalogVariableFieldHandler&&A.fieldIterator(function(e){!0===e[_e]&&u.setReadOnly(e.name,t)})},this.validateFormAsync=function(){var i=this.$private;return i.isValidating=!0,new Promise(function(e,t){var a;W(u)&&!_(u)?(a=[],l.forEach(function(i){a.push(new Promise(function(e,t){try{(!1===i.call(null)?t:e)()}catch(e){t(e)}}))}),d.forEach(function(i){a.push(new Promise(function(e,t){try{i.call(i,null),e()}catch(e){t(e)}}))}),Promise.all(a).then(function(){e(),i.isValidating=!1}).catch(function(e){t(e),i.isValidating=!1})):(t(),i.isValidating=!1)})},this.hideAllAnnotations=function(){b(this,!1)},this.showAllAnnotations=function(){b(this,!0)},this.toggleAnnotations=function(){for(var e=!1,t=0,i=(n=n||G()).length;t<i;t++)if(!1!==n[t].visible){e=!0;break}b(this,!e)},this.$private={isDirty:function(){return 0<Object.keys(w).length},getField:c,options:function(t){if(t){if("string"==typeof t)return A[t];if(A.isInitialized)throw"Cannot override options";var i;Object.keys(t).forEach(function(e){A[e]=t[e]}),t.fieldIterator&&A.fieldIterator(function(e){e.originalValue=e.value}),A.useCatalogVariableFieldHandler&&(i={fields:M,getField:c,g_form:u},A.fieldIterator(function(e){!0===e[_e]&&Y.create.call(null,i,e)}))}},events:{on:function(e,t){switch(e){case te:case ee:S.push(t);break;case ae:case ie:l.push(t);break;case se:case ne:d.push(t);break;case oe:case re:C.push(t);break;case le:case ue:f.push(t);break;case ce:case de:p.push(t);break;case fe:case pe:h.push(t);break;case he:case ge:g.push(t);break;default:throw"Unsupported GlideForm event: "+e}},propertyChange:function(t,i,a,n,s){if(0!=f.length){switch(t){default:t=me;case me:case ye:case be:case ve:case Ve:}f.forEach(function(e){e.call(e,t,i,a,n,s)})}},userChangeValue:function(t,i){0==g.length||R(t.originalValue,i)||g.forEach(function(e){e.call(e,t.name,t.originalValue,i)})},liveUpdated:function(){if(0<h.length){for(var t=[],e=0,i=M.length;e<i;e++){var a=M[e];a.liveUpdate&&t.push(a.name||a.variable_name)}h.forEach(function(e){e.call(e,t)})}},stateChange:function(e){var t;e!==r&&(t=r,r=e,0!=p.length&&p.forEach(function(e){e.call(e,t,r)}))},off:function(e){switch(e){case te:case ee:S=[];break;case ae:case ie:l=[];break;case se:case ne:d=[];break;case oe:case re:C=[];break;case le:case ue:f=[];break;case ce:case de:p=[];break;case fe:case pe:h=[];break;case he:case ge:g=[];break;default:throw"Unsupported GlideForm event: "+e}},cleanup:function(){S=[],l=[],d=[],C=[],f=[],p=[],h=[],g=[]}},userState:{setRunningAction:function(e,t){o={name:e=t&&!e?t:e,sysId:t}},resetRunningAction:function(){o={name:K}},clearModifiedFields:function(){k={}},getCurrentState:function(){return r}},fieldState:{isTemplateLoading:function(e){return m.templateLoading[e]||!1},setTemplateLoading:function(e,t){m.templateLoading[e]=t},applyTemplateValue:function(e,t,i){m.templateLoading[e]=!0;var a=t,n=c(e);"phone_number_e164"===n.type&&0<=t.indexOf(";")&&(a=(t=t.split(";",2))[1],n.value!==a&&(n.country=t[0])),u.setUserValue(e,a,i),delete m.templateLoading[e]}},validateForm:function(e){return!(!W(u)||_(u)||!function(t){if(0<l.length)for(var e=0,i=l.length;e<i;e++)if(!1===l[e].call(null))return;0<d.length&&d.forEach(function(e){e.call(e,t)});return 1}(e))},applyLiveUpdate:function(o,l){O=!0,Object.keys(o).forEach(function(e){var t,i,a=o[e].display_value,n=o[e].value,s=o[e].display_string,r=c(e);r&&((t=!!k[e])&&R(n,k[e].newValue)&&r.liveUpdate?r.liveUpdate=J:R(r.value,n)||(i={isUserModified:t,updatedBy:l,value:n,displayValue:a},s&&(i.displayString=s),r.originalValue=n,r.liveUpdate=i),t||r.value===n||U(u,r,n,a,{fromLiveUpdate:!0}),u.$private.events.propertyChange(me,r.name,"liveUpdate",i))}),O=!1,u.$private.events.liveUpdated()},clearOptionStack:function(e){var t=c(e);t&&((e=c(e=e))&&(e.optionStack?e.optionStack.splice(0):e.optionStack=[]),u.$private.events.propertyChange(me,t.name,"optionStack",[]))},setFieldInvalid:function(e,t){e=c(e);if(e)return I(u,e,t)},showFieldInvalidMsg:function(){_(u)},setAdditionalFieldState:function(e,t,i){var a=c(e);if(a&&!R(a[t],i)){var n=!1;switch(a.type){case"masked":n=a.useConfirmation&&"confirmationValue"===t;break;case"container":n="one_to_many"===a.containerType&&("validated"===t||"updateDisplayValue"===t)}n&&(a[t]=i,u.$private.events.propertyChange(me,e,t,i))}}}};i&&e.$private.options(i);return function(t,e){e.forEach(function(e){t[e]||(t[e]=function(){Ee("DEPRECATED","Method "+e+" is deprecated and unsupported on mobile")})})}(e,["flash","getElement","getFormElement","getSections"]),e},glideRequest:B.glideRequest};var K="none",X="submit",Ce="save",Z="unmodified",Ae="modified",Oe="saved",ee="onChange",te="change",ie="onSubmit",ae="submit",ne="onSubmitted",se="submitted",re="onChanged",oe="changed",le="propertyChange",ue="onPropertyChange",ce="stateChange",de="onStateChange",fe="liveUpdated",pe="onLiveUpdated",he="userChangeValue",ge="onUserChangeValue",ve="FORM",me="FIELD",ye="SECTION",be="RELATED_LIST",Ve="ATTACHMENTS",_e="_cat_variable",Re=["field_list","conditions","document_id","field_name","template"];function Le(e,t,i){this.g_form=e,this.name=t,this.options=[],this.type=i,this.focus=function(){Ee("NO:FOC","Focus not implemented for "+this.name)},Object.defineProperty(this,"value",{get:function(){return this.g_form.getValue(this.name)},set:function(e){this.g_form.setValue(this.name,e)}})}function Fe(e){return"true"===e?e=!0:"false"===e&&(e=!1),!!e}function Ee(e,t){console&&console.warn&&console.warn("(g_form) ["+e+"] "+t)}function Me(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(arg)}function we(e){return!!e&&(!!e.visible&&!Q.isReadonly(e))}function ke(t){var e,i="",a=t.length,n="",s="undefined"!=typeof g_user_decimal_separator?g_user_decimal_separator:".";try{for(var r=0;r<a;r++)e=(n=t.charAt(r)).charCodeAt(0),("-"==n||n==s||48<=e&&e<=57)&&(i+=t.charAt(r))}catch(e){console.error("Error formatting value: ",t)}return i}function Se(e,t){return e+"\n\n"+t.map(function(e){return e.label}).join("\n")}}(window,window.document||{},window.glideFormFieldFactory,window.catalogVariableHandler); !function(){"use strict";window.UI_POLICY_TYPES={dateTypes:{glide_date_time:"datetime",glide_date:"date",date:"date",datetime:"datetime",due_date:"datetime"},numberTypes:{decimal:"decimal",numeric:"numeric",integer:"integer",float:"float"},currencyTypes:{currency:"currency",price:"price"}}}(); !function(e){"use strict";e.uiPolicyFactory={create:function(c,l,t){var s=l.table||c.getTableName(),o=l.short_description,e=l.onload,f=l.conditions,r=l.condition_fields||function(e){e=e.reduce(function(e,t){t=t.field;return null!=t&&void 0!==t&&(e[t]=!0),e},{});return Object.keys(e)}(f),a=l.pre_evaluated,n={},d=null,i=!1;function u(e,t,r){n[e]&&g()}function g(){N("Running policy on table: "+s+" "+o);var e=!!function(){N("---\x3e>> Evaluating condition:");for(var e="?",t=!0,r=f,a=0;a<r.length;a++){var n=r[a];if(n.newquery){if("t"==e)return N("---<<< condition exited with: TRUE"),1;N(" OR (next condition)"),t=!0}t&&(n.or?"t"!=e&&(e=p(n)):"f"!=e||n.newquery?e=p(n):t=!1)}var u="f"!=e;return N("---<<< End evaluating condition with result: "+u),u}();if(e===d)N("No change - not running any actions");else if(d=e){for(var t=0;t<l.actions.length;t++){var r=l.actions[t];(r.relatedList?b:S)(r,e)}if(l.script_true&&L(l.script_true.name),l.hasOwnProperty("list_actions"))for(var a=0;a<l.list_actions.length;a++)b(l.list_actions[a],e)}else if(l.reverse){for(var n=0;n<l.actions.length;n++){var u=l.actions[n];(u.relatedList?b:S)(u,e)}if(l.script_false&&L(l.script_false.name),l.hasOwnProperty("list_actions"))for(var i=0;i<l.list_actions.length;i++)b(l.list_actions[i],e)}}function p(e){var t,r,a,n,u=function(e){var t=e.type;if(!c.hasField(e.field))return!!e.pre_evaluated_term&&e.pre_evaluated_term_result;if(M.dateTypes[t])return function(e){var t=e.value,r=c.getValue(e.field)+"",a=t.split("@"),n="datetime"==M.dateTypes[e.type];r&&("undefined"!=typeof g_user_date_time_format&&"undefined"!=typeof g_user_date_format?(w=n?g_user_date_time_format:g_user_date_format,O=g_user_date_time_format):n||(r+=" 00:00:00"));if("ISEMPTY"==e.oper)return""===r;var u,i,l,s=T(r,w);if(isNaN(s))return N("evaluateTermDate - invalid date, returning false"),!1;if("RELATIVE"==e.oper)return function(e,t,r){t=t.split("@");if(!t||4!=t.length||isNaN(t[3]))return!1;var a,n=t[0],u=t[1],i=t[2],l=parseInt(t[3],10),s=1;"ahead"==i&&(s=-1);switch(u){case"hour":a=D(s*l);break;case"minute":a=I(s*l);break;case"dayofweek":a=function(e){return D(24*e)}(s*l);break;case"month":a=m(s*l);break;case"quarter":a=function(e){var t=new Date,t=t.getMonth()+1;return m(t-[0,1,1,1,4,4,4,7,7,7,10,10,10][t]+3*e)}(s*l);break;case"year":a=function(e){var t=new Date,e=t.getFullYear()-e;return t.setFullYear(e),t.getTime(t)}(s*l);break;default:return N("_evaluateTermDateRelative - unsupported type '"+u+"'. Returning FALSE."),!1}t=r?{checkValue:a,userValue:e}:{checkValue:E(a),userValue:E(e)};return _(t,n)}(s,t,n);if("DATEPART"==e.oper)return function(e,t){var r=new Date(e),e=t.split("@");if(2==e.length&&e[1]){t=e[1].split(",");if(3==t.length){var a,n=t[0],u=t[1],e=t[2];switch(n){case"dayofweek":a=function(e,t){for(var r=["monday","tuesday","wednesday","thurday","friday","saturday","sunday"],a=-1,n=0;n<7;n++)if(r[n]==t){a=n;break}if(!(a<0))return e=e.getDay(),{checkValue:a,userValue:e=(e-=1)<0?6:e}}(r,u);break;case"month":a=function(e,t){for(var r=["jan","feb","mar","apr","may","june","july","aug","sep","oct","nov","dec"],a=-1,n=0;n<12;n++)if(r[n]==t){a=n;break}if(!(a<0))return{checkValue:a,userValue:e.getMonth()}}(r,u);break;case"year":a={checkValue:u,userValue:r.getFullYear()};break;case"week":a=function(e,t){var r=new Date(e.getFullYear(),0,1),e=Math.ceil(((e.getTime()-r)/864e5+r.getDay()+1)/7)-1;return{checkValue:t,userValue:e}}(r,u);break;case"hour":a={checkValue:u,userValue:r.getHour()};break;case"quarter":a=function(e,t){return{checkValue:t,userValue:[1,1,1,2,2,2,3,3,3,4,4,4][e.getMonth()]}}(r,u);break;default:return N("_evaluateTermDateTrend - unsupported trend type '"+n+"'. Returning FALSE."),!1}return _(a,e)}}}(s,t);switch(e.oper){case"=":return c.getValue(e.field)===t;case"!=":return c.getValue(e.field)!=t;case"ISNOTEMPTY":return""!==r;case"<=":case"<":return 0!==(u=T(t,O))&&s<u;case">=":case">":return 0!==(u=T(t,O))&&u<s;case"ON":return i=T(a[1],O),l=T(a[2],O),0!==i&&0!==l&&i<=s&&s<=l;case"NOTON":return i=T(a[1],O),l=T(a[2],O),0!==i&&0!==l&&(s<i||l<s);case"BETWEEN":return i=T(a[0],O),l=T(a[1],O),0!==i&&0!==l&&i<=s&&s<=l;case"LESSTHAN":return v(e.field,e.value,"LT");case"MORETHAN":return v(e.field,e.value,"GT");default:return N("evaluateTermDate - unsupported operator '"+e.oper+"'. Returning FALSE."),!1}}(e);if(M.numberTypes[t]||M.currencyTypes[t])return function(e){if(!e.field)return!1;var t=e.oper,r=e.value;""!==r&&-1===r.indexOf(",")&&(r=parseFloat(r));var a=function(e){var t;return void 0===c?"":c.getValue(e.field+".storage")+""?c.getDecimalValue(e.field+".storage"):(t=c.getValue(e.field))&&0!==t.length?c.getDecimalValue(e.field):""}(e);switch(t){case"=":return a===r;case"!=":return a!=r;case"<":return a<r;case"<=":return a<=r;case">":return r<a;case">=":return r<=a;case"IN":var n=(r+"").split(",");return a.toString()&&-1!==k(a.toString(),n);case"NOT IN":n=(r+"").split(",");return-1===k(a.toString(),n);case"ISEMPTY":return""===a.toString();case"ISNOTEMPTY":return""!==a.toString();case"GT_FIELD":return a=parseInt(c.getValue(e.field)),(r=parseInt(c.getValue(e.value)))<a;case"LT_FIELD":return a=parseInt(c.getValue(e.field)),r=parseInt(c.getValue(e.value)),a<r;case"GT_OR_EQUALS_FIELD":return a=parseInt(c.getValue(e.field)),(r=parseInt(c.getValue(e.value)))<=a;case"LT_OR_EQUALS_FIELD":return a=parseInt(c.getValue(e.field)),r=parseInt(c.getValue(e.value)),a<=r;default:return!1}}(e);var r=e.field;if(!r)return!1;var a=e.oper,n=e.value,u=c.getValue(r)+"";switch(a){case"=":return u===n;case"!=":return u!=n;case"<":return u<n;case"<=":return u<=n;case">":return n<u;case">=":return n<=u;case"ANYTHING":return!!u;case"IN":var i=n.split(",");return u&&-1!==k(u,i);case"NOT IN":i=n.split(",");return-1===k(u,i);case"STARTSWITH":return!!(u="reference"==t?c.getDisplayValue(r):u)&&0===u.indexOf(n);case"ENDSWITH":return!!(u="reference"==t?c.getDisplayValue(r):u)&&u.lastIndexOf(n)==u.length-n.length;case"LIKE":return!!(u="reference"==t?c.getDisplayValue(r):u)&&-1!=u.indexOf(n);case"NOT LIKE":return!(u="reference"==t?c.getDisplayValue(r):u)||-1==u.indexOf(n);case"ISEMPTY":return""===u;case"ISNOTEMPTY":return""!==u;case"BETWEEN":i=n.split("@");return u&&u>=i[0]&&u<=i[1];case"SAMEAS":return u="reference"==t?c.getDisplayValue(e.field):c.getValue(e.field),n="reference"==t?c.getDisplayValue(e.value):c.getValue(e.value),u==n;case"NSAMEAS":return u="reference"==t?c.getDisplayValue(e.field):c.getValue(e.field),n="reference"==t?c.getDisplayValue(e.value):c.getValue(e.value),u!=n;default:return!1}}(e);return e=e,t=u,i&&(r="",e.or&&(r=" or "),a=(a=e.field?c.getValue(e.field)+"":"(null)")||"<blank>",n=(n="")&&" ["+n+"] ",t=t?"true":"false",N(r+e.field+" ("+a+n+") "+e.oper+" "+e.value+" -> "+t)),u?"t":"f"}function v(e,t,r){var a,t=function(e){e=e.split("@");return{fieldName:e[0],interval:e[1],intervalValue:parseInt(e[3],10),beforeAfter:e[2]}}(t),e=c.getValue(e),n=c.getValue(t.fieldName);return V(n)||V(e)?(N("ui policy could not find a valid field to compare against. Returning FALSE."),!1):(e=T(e,w),n=T(n,w),"quarter"==t.interval&&(e=h(e),n=h(n)),a=e-n,!("before"==t.beforeAfter&&0<a)&&(!("after"==t.beforeAfter&&a<0)&&(n="quarter"==t.interval?Math.abs(y(n)-y(e))-t.intervalValue:(n=t.interval,e=t.intervalValue,(t={hour:36e5}).day=24*t.hour,t.week=7*t.day,t.month=30*t.day,t.year=365*t.day,t=t[n]*e,Math.abs(a)-Math.abs(t)),"GT"===r?0<n:"LT"===r?n<0:void 0)))}function y(e){var t=[1,1,1,2,2,2,3,3,3,4,4,4][e.getMonth()];return 4*e.getFullYear()+t}function h(e){var t=[0,0,0,3,3,3,6,6,6,9,9,9][e.getMonth()],r=new Date;return r.setFullYear(e.getFullYear(),t,0),r.setHours(0,0,0),r}function V(e){return void 0===e||null==e||""==e}function T(e,t){if(e)return t?getDateFromFormat(e,t)||void 0:(e=e.replace(/\s/,"T"),new Date(e))}function _(e,t){if(e)switch(t){case"EE":return e.userValue===e.checkValue;case"LT":return e.userValue<e.checkValue;case"LE":return e.userValue<=e.checkValue;case"GT":return e.userValue>e.checkValue;case"GE":return e.userValue>=e.checkValue;default:return N("_evaluateDateValues - unsupported operator '"+t+"'. Returning FALSE."),!1}}function E(e){e=new Date(e);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e.getTime()}function m(e){var t=new Date,e=t.getMonth()-e;return t.setMonth(e),t.getTime(t)}function D(e){return I(60*e)}function I(e){return e=60*e,(new Date).getTime()-1e3*e}function L(e){if("string"==typeof e&&e.length)try{t[e].execute()}catch(e){console.log("UI policy script error: "+e)}}function S(e,t){var r,a,n,u;void 0!==c&&(r=e.name,a=e.mandatory,n=e.visible,u=e.disabled,e=e.cleared||e.clearValue,"true"==a?(c.setMandatory(r,t),A(r,"mandatory",t)):"false"==a&&(c.setMandatory(r,!t),A(r,"mandatory",!t)),"true"==n?(c.setDisplay(r,t),A(r,"visible",t)):"false"==n&&(c.setDisplay(r,!t),A(r,"visible",!t)),"true"==u?(c.setReadOnly(r,t),A(r,"disabled",t)):"false"==u&&(c.setReadOnly(r,!t),A(r,"disabled",!t)),"true"==e&&t&&(c.setValue(r,""),A(r,"clear",!0)),"true"==a&&(c.setMandatory(r,t),A(r,"mandatory",t)))}function b(e,t){var r=e.name||e.relatedList,e=e.visible;t?"true"==e?c.showRelatedList(r):"false"==e&&c.hideRelatedList(r):"true"==e?c.hideRelatedList(r):"false"==e&&c.showRelatedList(r)}function k(e,t){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1}function A(e,t,r){i&&N("Setting "+t+" on field:"+e+" to "+r)}function N(){var e;i&&((e=Array.prototype.slice.call(arguments)).unshift("(uiPolicyFactory)"),console.log.apply(console.log,e))}r.forEach(function(e,t){t=f[t];n[e]=!0,e=t.oper,-1<["MORETHAN","LESSTHAN","GT_FIELD","LT_FIELD","GT_OR_EQUALS_FIELD","LT_OR_EQUALS_FIELD","SAMEAS","NSAMEAS"].indexOf(e)&&(e=t.value.split("@")[0],n[e]=!0)}),c.$private.events.on("change",u),!e||a&&!c.$private.isDirty()||g()}};var w,O,M=e.UI_POLICY_TYPES}(window); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";window.uiScriptFactory={create:function(t,r){var o={getUIScript:function(t){var n=o[t];if(n)return(r||function(t){return new Promise(t)})(function(t){return t(n)});console.error("No script registered with name: "+t)}};t&&0<t.length&&t.forEach(function(t){var n=t.name,t=function(t,n){var r=null;try{n=function(t){var n=(t=t.trim()).length,r=!1;"();"===t.substr(-3)?(t=t.substr(0,n-3),r=!0):"()"===t.substr(-2)&&(t=t.substr(0,n-2),r=!0);r&&(t+=".call(this);");return t}(n);var o=["window","document"].concat("return (function() { return "+n+"; }).call(this);"),e=Function.apply({},o);r=e.call(e,[null,null])}catch(t){}null!==r&&"object"!==_typeof(r)&&"function"!=typeof r&&(r=null,console.warn("UI Script does not return an object or function: "+t));return r}(t.name,t.script);t&&(o[n]=t)});return o}}}(); !function(n,u){"use strict";var S=n.glideFormEnvironmentFactory={create:function(g,n,t,i,e){if(void 0===t||!t)throw"g_user is required!";void 0!==n&&n||(n={});var r={g_scratchpad:l(n,{},!0),g_user:"function"==typeof t.clone?t.clone():t};void 0!==i&&(r.g_modal=i);void 0!==e&&(r.g_ui_scripts=e);var o=S.defaultExtensionPoints,s=(Object.keys(o).forEach(function(n){h(n,o[n])}),!0),f={},v={},d=[];return{initScripts:function(n,t){var i,e,r=[];if(n.onLoad)for(var o=0;o<n.onLoad.length;o++)try{i=n.onLoad[o],e=y(i.script,null,"onLoad"),r.push(C(e,g,i.name))}catch(n){_("CS:ONLOAD",'Could not load onLoad Client Script "'+i.name+'": '+n)}if(n.onChange)for(var a=0;a<n.onChange.length;a++)try{i=n.onChange[a],e=y(i.script,["control","oldValue","newValue","isLoading","isTemplate"],"onChange"),f[i.fieldName]||(f[i.fieldName]=[]),f[i.fieldName].push(C(e,g,i.name))}catch(n){_("CS:ONCHANGE",'Could not load onChange Client Script "'+i.name+'": '+n)}if(t){h("g_validation_script_field_count",0);for(var l=0;l<t.length;l++)try{i=t[l],e=y(i.script,["value","fieldName"],"validate");var c=i.fields,u=C(e,g,i.name);c.forEach(function(n){v[n]||(v[n]=[]),v[n].push(u)})}catch(n){_("CS:VALIDATE",'Could not load Validation Client Script "'+i.name+'": '+n)}}if(n.onSubmit)for(l=0;l<n.onSubmit.length;l++)try{i=n.onSubmit[l],e=y(i.script,null,"onSubmit"),d.push(C(e,g,i.name,"onSubmit"))}catch(n){_("CS:ONSUBMIT",'Could not load onSubmit Client Script "'+i.name+'": '+n)}!function(n){g.$private.options({isInitialized:!0});for(var t,i=0,e=n.length;i<e;i++)n[i].call(null);g.$private.events.on("change",p),g.$private.events.on("submit",m),Object.keys(f).forEach(function(n){p(n,t=g.getValue(n),t)}),s=!1}(r)},initUIPolicyScripts:function(n){n.forEach(function(n){e=n,r={},["script_true","script_false"].forEach(function(t){var n=e[t];if(n)try{var i=y(n.script);r[n.name]={execute:C(i,g,e.short_description)}}catch(n){_("UI:"+t.toUpperCase(),'Could not load UIPolicy script for policy "'+e.short_description+'"')}});var e,r,t=r;uiPolicyFactory.create(g,n,t)})},getExtensionPoints:a,registerExtensionPoint:h,getUserGlideForm:function(){var t={};return Object.keys(g).forEach(function(n){t[n]=g[n]}),t.setValue=t.setUserValue,t}};function a(){return l(r,{},!0)}function h(n,t){"g_form"!==n&&!r.hasOwnProperty(n)||u.warn("Overwriting extension point: "+n),r[n]=t}function p(n,t,i){var e,r=f[n];r&&(e={control:null,oldValue:t,newValue:i,isLoading:!!s,isTemplate:g.$private.fieldState.isTemplateLoading(n)},g.$private.fieldState.setTemplateLoading(n,!1),r.forEach(function(n){n.call(null,e)}))}function m(){if(!function(){for(var n=!0,t=!1,i=Object.keys(v),e=0,r=0,o=i.length;r<o;r++){var a=i[r];!g.isReadOnly(a)&&g.isVisible(a)&&e++}h("g_validation_script_field_count",e);for(var l=0,o=i.length;l<o;l++){a=i[l];if(!g.isReadOnly(a)&&g.isVisible(a)){var c=v[a];if(0<c.length)for(var u={value:g.getValue(a),fieldName:a},s=0,f=c.length;s<f;s++){var d=c[s].call(null,u),p="string"==typeof d;!1!==d&&!p||(p&&(g.showFieldMsg(a,d,"error"),g.$private.setFieldInvalid(a,!0),t=t||!0),n=!1)}}}t&&g.$private.showFieldInvalidMsg(g);return n}())return!1;for(var n,t=0,i=d.length;t<i;t++)if(!1===(n=d[t].call(null)))return n}function y(t,i,e){var r,i=i||[],o=(o=i.slice(0)).concat("g_form",Object.keys(a()));try{r=new Function(o,"return ("+t+")("+i.join(",")+")")}catch(n){if(!e)throw n;t=new Function([],t+" return "+e+".apply(this, arguments);"),r=new Function(o,"return ("+t+")("+i.join(",")+")")}return r.$inject=o,r}function C(t,i,e,r){return function(n){return function(n,t,i,e,r){e=e||{};if("string"==typeof e)_("SCRIPT:EXEC",'Invalid params passed into Client Script "'+i+'"');else{l(e,{g_form:t}),l(e,a()),"onSubmit"===r&&!0===t.$private.isValidating&&l(e,{g_form:function(t){var i={};return Object.keys(t).forEach(function(n){i[n]=t[n]}),i.save=function(){return c("g_form","save","is not available"),!1},i.submit=function(){return c("g_form","submit","is not available"),!1},i}(e.g_form)});try{return function(n,t,i){var e,r=n.$inject;if(void 0===r)throw"Missing $inject. Did you try calling externally?";for(var o=[],a=0,l=r.length;a<l;a++){if("string"!=typeof(e=r[a]))throw"Invalid injection key provided: "+e;var c=i[e];if(void 0===c)throw"Injection argument not found ("+e+")";o.push(c)}return n.apply(t,o)}(n,this,e)}catch(n){_("SCRIPT:EXEC",'Error while running Client Script "'+i+'": '+n)}}}(t,i,e,n,r)}}function l(n,t,i){var e,r=!0===i?{}:n;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}function _(n,t){u&&u.error&&u.error("(g_env) ["+n+"] "+t)}function c(n,t,i){u&&u.info&&u.info("("+n+")["+t+"] "+i)}},createWithConfiguration:function(n,t,i,e,r,o,a,l){var c=S.create(n,i,t,o,l);if(e&&e.messages)e.messages;return{g_env:c,getUserGlideForm:c.getUserGlideForm,initialize:function(){c.initScripts(e,a),r&&0<r.length&&c.initUIPolicyScripts(r)}}},defaultExtensionPoints:{window:null,document:null,$:null,jQuery:null,$$:null,$j:null,angular:null,snmCabrillo:null,cabrillo:null,NOW:window.NOW||{}}}}(window,console); function _typeof(e){return(_typeof="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})(e)}!function(e){"use strict";var a="OK",u="Cancel",f="default",m="confirm";function y(e){var t=e[0],n=e[1],r=e[2],o=e[3];switch("object"===_typeof(r)&&(o=r),_typeof(n)){case"function":r=n,n=t,t=null;break;case"object":o=n,n=t,t=null;break;case"undefined":n=t,t=null}return{title:t,message:n,callback:r,style:o||{}}}function p(e){var t=e.message;return new Promise(function(e){alert(t),e&&e()})}function h(e){var n=e.message;return new Promise(function(e,t){confirm(n)?e&&e():t&&t()})}function T(e,t){return t&&t[e]?t[e]:e}e.glideModalFactory={create:function(o,r){r=r||{};var c=(o=o||{}).alert||p,n=o.confirm||h,i=o.confirmDestroy||h,s=o.showFrame,l=o.showFields,e=Object.keys(o).filter(function(e){return-1==["alert","confirm","confirmDestroy","showFields","showFrame"].indexOf(e)}),t={alert:function(){var e=y(arguments),t=e.callback,e={title:e.title||"Alert",message:e.message,buttonTitle:e.style.buttonTitle||T(a,r.messages),buttonType:e.style.buttonType||f};return c(e).then(function(){t&&t()}).catch(function(){})},confirm:function(){var e=y(arguments),t=e.callback,e={title:e.title||"Confirm",message:e.message,cancelTitle:e.style.cancelTitle||T(u,r.messages),confirmTitle:e.style.confirmTitle||T(a,r.messages),cancelType:e.style.cancelType||f,confirmType:e.style.confirmType||m};return n(e).then(function(){return t&&t(!0),Promise.resolve(!0)}).catch(function(){return t&&t(!1),Promise.reject(!1)})},confirmDestroy:function(){var e=y(arguments),t=e.callback,e={title:e.title||"Confirm",message:e.message,cancelTitle:e.style.cancelTitle||T(u,r.messages),confirmTitle:e.style.confirmTitle||T(a,r.messages),cancelType:e.style.cancelType||f,confirmType:e.style.confirmType||"destructive"};return i(e).then(function(){return t&&t(!0),Promise.resolve(!0)}).catch(function(){return t&&t(!1),Promise.reject(!1)})},showFields:function(e){var t,n;return l?e&&"object"===_typeof(e)?(t=e.callback,n={title:e.title||" ",fields:e.fields,size:e.size,cancelTitle:e.cancelTitle||T(u,r.messages),confirmTitle:e.confirmTitle||T(a,r.messages),cancelType:e.cancelType||f,confirmType:e.confirmType||m},e.instruction&&(n.instruction=e.instruction),l(n).then(function(e){return t&&t(!0,e),Promise.resolve(e)}).catch(function(){return t&&t(!1),Promise.reject(!1)})):Promise.reject(!1):c({message:"g_modal.showFields is not supported"})},showFrame:function(e){var t;return s?e&&"object"===_typeof(e)?(t=e.callback,e={title:e.title||" ",url:e.url,size:e.size,height:e.height,autoCloseOn:e.autoCloseOn},s(e).then(function(e){return t&&t(!0,e),Promise.resolve(e)}).catch(function(e){return t&&t(!1,e),Promise.reject(e)})):Promise.reject(!1):c({message:"g_modal.showFrame is not supported"})}};return e.forEach(function(r){var e={};Object.keys(o[r]||{}).forEach(function(n){e[n]=function(e){var t=e.callback;return o[r][n](e).then(function(e){return t&&t(!0,e),Promise.resolve(e)}).catch(function(){return t&&t(!1),Promise.reject(!1)})}}),t[r]=e}),t}},e.addEventListener("unhandledrejection",function(e){e.preventDefault()})}(window); !function(t){"use strict";function o(n,e,t){var o={method:n,url:e};switch(n){case"get":var a,e=o.url;t&&t.data&&(a=r(t.data),-1!==e.indexOf("?")?e+="&"+a:e+="?"+a),o.url=e;break;case"post":o.body=r(t.data||{})}switch((t||{}).dataType){default:case"json":o.headers={Accept:"application/json","Content-Type":"application/json","X-UserToken":window.g_ck,"X-Transaction-Source":window.transaction_source};break;case"xml":o.headers={Accept:"application/xml","Content-Type":"application/x-www-form-urlencoded","X-UserToken":window.g_ck,"X-Transaction-Source":window.transaction_source}}return o}function r(n){var e,t,o,a=[];for(e in n)n.hasOwnProperty(e)&&(t=encodeURIComponent(e),o=n[e]?encodeURIComponent(n[e]):"",a.push(t+"="+o));return a.join("&")}t.glideRequest={getAngularURL:function(n,e){return"angular.do?sysparm_type="+n+(e?r(e):"")},get:function(n,e){if(n)return n=o("get",n,e),t.fetch(n.url,n);throw"Must specify a URL"},post:function(n,e){if(n)return n=o("post",n,e),t.fetch(n.url,n);throw"Must specify a URL"}}}(window); !function(e){"use strict";var s="/xmlhttp.do";function o(){this.initialize.apply(this,arguments)}o.glideRequest=e.glideRequest,o.logError=function(){console&&console.error&&console.error.apply(console,arguments)},o.prototype={initialize:function(e,t){this.processor=null,this.params={},this.callbackFn=function(){},this.errorCallbackFn=function(e){o.logError("Unhandled exception in GlideAjax.",e.responseText)},this.wantAnswer=!1,this.requestObject=null,this.setProcessor(e),s=t||s},addParam:function(e,t){this.params[e]=t},getXML:function(e){this.wantAnswer=!1,this.callbackFn=e,this.execute()},getXMLWait:function(){o.logError("GlideAjax.getXMLWait is no longer supported")},getXMLAnswer:function(e){this.wantAnswer=!0,this.callbackFn=e,this.execute()},getAnswer:function(){return this.responseXML?this.responseXML.documentElement.getAttribute("answer"):null},setErrorCallback:function(e){this.errorCallbackFn=e},getURL:function(){return s},getParams:function(){return this.params},setProcessor:function(e){this.addParam("sysparm_processor",e),e||o.logError("GlideAjax.initalize: must specify a processor"),this.processor=e},execute:function(){function r(t,e){e=[t.wantAnswer?t.getAnswer():e];try{t.callbackFn.apply(null,e)}catch(e){t.errorCallbackFn?t.errorCallbackFn({type:"unhandled exception",responseText:e.message}):o.logError("Unhandled exception in GlideAjax callback.",e)}}var n=this;o.glideRequest.post(s,{data:this.params,dataType:"xml"}).then(function(e){if(!e.responseXML)return e.text().then(function(e){try{var t=(new DOMParser).parseFromString(e,"text/xml"),s=(n.responseXML=t,{type:"xml",responseText:n.responseText=e,responseXML:t});r(n,s)}catch(e){log("Error while parsing the response "+e.getMessage())}});n.responseXML=e.responseXML,n.responseText=e.responseText;e={type:e.type,responseText:e.responseText,responseXML:e.responseXML};r(n,e)}).catch(function(e){e={type:e.type,status:e.status,responseText:e.responseText,responseXML:e.responseXML};n.errorCallbackFn&&n.errorCallbackFn(e)})},setScope:function(e){return e&&this.addParam("sysparm_scope",e),this}},e.GlideAjax=o}(window); !function(e){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.initialize.apply(this,arguments)}n.glideRequest=e.glideRequest;var r=[];function s(e,t){console&&console.error&&console.error("(GlideRecord) ["+e+"] "+t)}function o(e,t){console&&console.warn&&console.warn("(GlideRecord) ["+e+"] "+t)}n.prototype={initialized:!1,initialize:function(e){if(this.tableName=e,this.encodedQuery="",this.conditions=[],this.orderByFields=[],this.orderByDescFields=[],this.limit=0,this._callback=null,this.currentRow=-1,this.recordSet=[],this.initialized)for(var t in this)this.ignoreNames[t]||delete this[t];else for(var t in this.ignoreNames={},this)this.ignoreNames[t]=!0;this.initialized=!0},addQuery:function(){var e=[],t=(Array.prototype.push.apply(e,arguments),e.shift()),i=1==e.length?"=":e.shift(),e=e.shift();this.conditions.push({name:t,oper:i,value:e})},setEncodedQuery:function(e){this.encodedQuery=e},getEncodedQuery:function(){var e=[],t=this.encodedQuery;t&&e.push(t);for(var i=0;i<this.conditions.length;i++){var n=this.conditions[i];e.push(n.name+n.oper+n.value)}return"^"+e.join("^")},addOrderBy:function(e){this.orderByFields.push(e)},orderBy:function(e){this.addOrderBy(e)},orderByDesc:function(e){this.orderByDescFields.push(e)},setLimit:function(e){this.limit=e},getLimit:function(){return this.limit},get:function(){var e;1==arguments.length&&o("GET:NOCB","Get must be called with a callback function"),this.initialize(this.tableName),this.setLimit(1),2==arguments.length?(this.addQuery("sys_id",arguments[0]),e=arguments[1]):3==arguments.length&&(this.addQuery(arguments[0],arguments[1]),e=arguments[2]),e?this.query(this._getResponse.bind(this,e)):o("GET:NOCB","Get must be called with a callback function")},_getResponse:function(e){this.next(),e(this)},query:function(e){var t,i;"function"!=typeof e?o("Q:NOCB","Query must be called with a callback function"):(i=(t=n.glideRequest).getAngularURL("gliderecord",{operation:"query"}),t.post(i,{dataType:"json",data:{table:this.tableName,query:this.getEncodedQuery(),orderBy:this.orderByFields.join(","),orderByDesc:this.orderByDescFields.join(","),limit:this.getLimit()}}).then(this._queryResponse.bind(this,e)))},_queryResponse:function(e,t){this._loadRecordSet(t.data.records),e(this)},deleteRecord:function(e){var t,i;"function"!=typeof e?s("Q:NOCB","DeleteRecord must be called with a callback function"):(i=(t=n.glideRequest).getAngularURL("gliderecord",{operation:"delete"}),t.post(i,{dataType:"json",data:{table:this.tableName,query:this.getEncodedQuery(),sys_id:this.getValue("sys_id")}}).then(e(this)))},updateRecord:function(e){var t,i;"function"!=typeof e?s("Q:NOCB","UpdateRecord must be called with a callback function"):(i=(t=n.glideRequest).getAngularURL("gliderecord",{operation:"update"}),t.post(i,{dataType:"json",data:{table:this.tableName,sysid:this.getValue("sysid"),serializedRecord:function(e){for(var t in e)e.ignoreNames[t]||e.getValue(t)!==e[t]&&r.push({fieldName:t,value:e[t]});return r}(this)}}).then(e(this)))},hasNext:function(){return this.currentRow+1<this.recordSet.length},next:function(){return this._next()},_next:function(){return!!this.hasNext()&&(this.loadRow(this.currentRow+1),!0)},loadRow:function(e){this.recordSet[e];this.currentRow=e;var t,i=this.getCurrentRow();for(t in i)i.hasOwnProperty(t)&&(this[t]=i[t].value)},_loadRecordSet:function(e){this.recordSet=e||[]},setValue:function(e,t){r.push({fieldName:e,value:t})},getValue:function(e){var t=this.getCurrentRow();return t?t[e].value:""},getDisplayValue:function(e){var t=this.getCurrentRow();return e?t?t[e].displayvalue:"":t?t.$$displayValue:""},getCurrentRow:function(){return this.recordSet[this.currentRow]},getRowCount:function(){return this.recordSet.length},getTableName:function(){return this.tableName},toString:function(){return"GlideRecord"}},e.GlideRecord=n}(window); !function(t){"use strict";var c="maint";t.GlideUser=function t(e){if(!(this instanceof t))return new t(e);var n=e.firstName||null,r=e.lastName||null,i=e.userName||null,l=e.userID||e.userId||null,s=e.roles||null,u=e.allRoles||null,a=e.email||null,o=e.title||null,h=e.avatar||null,f=e.clientData||{};Object.defineProperties(this,{firstName:{get:function(){return n}},lastName:{get:function(){return r}},userName:{get:function(){return i}},userID:{get:function(){return l}},title:{get:function(){return o}},email:{get:function(){return a}},avatar:{get:function(){return h}}}),this.getFullName=function(){return((n||"")+" "+(r||"")).trim()},this.getClientData=function(t){return f[t]},this.hasRoles=function(t){return t?u&&0<u.length:s&&0<s.length},this.hasRoleExactly=function(t,e){if(this.hasRoles(e)&&t&&"string"==typeof t)for(var n=t.toLowerCase(),r=s,i=0,l=(r=e?u:s).length;i<l;i++)if(n===r[i].toLowerCase())return!0;return!1},this.hasRole=function(t,e){return!(!this.hasRoles(e)||!this.hasRoleExactly(c,e)&&(t===c||!this.hasRoleExactly(t,e)&&!this.hasRoleExactly("admin",e)))},this.hasRoleFromList=function(t,e){if(this.hasRoles(e)){var n=t;if(0===(n="string"==typeof t?t.split(/\s*,\s*/):n).length)return!0;for(var r=0,i=n.length;r<i;r++){var l=n[r];if(l&&this.hasRole(l,e))return!0}}return!1},this.clone=function(){return new t(e)}}}(window); angular.module("sn.common.clientScript",["sn.common.i18n","sn.common.util"]); angular.module("sn.common.clientScript").factory("glideAjaxFactory",["$window","glideRequest",function(n,e){return n.GlideAjax.glideRequest=e,{create:function(e){return new n.GlideAjax(e)},getClass:function(){return n.GlideAjax}}}]); angular.module("sn.common.clientScript").factory("glideFormEnvironmentFactory",["$q","$window","$timeout","glideFormFieldFactory","glideAjaxFactory","glideRecordFactory","i18n","glideModalFactory","jQueryRequestShim",function(e,i,n,o,t,r,c,d,s){"use strict";i=i.glideFormEnvironmentFactory;angular.extend(i.defaultExtensionPoints,{GlideAjax:t.getClass(),GlideRecord:r.getClass(),getMessage:c.getMessage,getMessages:c.getMessages,$:s}),i.createWithConfiguration=function(e,i,t,r,n,o,s,a){void 0===o&&(o=d.create());var g=glideFormEnvironmentFactory.create(e,t,i,o,a);if(r&&r.messages)for(var l in r.messages)c.loadMessage(l,r.messages[l]);return{g_env:g,getUserGlideForm:g.getUserGlideForm,initialize:function(){g.initScripts(r,s),n&&0<n.length&&g.initUIPolicyScripts(n)}}};return i.onFieldsInitialized=function(t){var r=e.defer();n(function e(){var i=t.reduce(function(e,i){return e&&o.isInitialized(i)},!0);if(!i)return void n(e,195);r.resolve()},195);return r.promise},i}]); angular.module("sn.common.clientScript").factory("glideFormFactory",["$window","glideRecordFactory","glideRequest","glideFormMessageHandler",function(e,l,n,d){"use strict";var u=e.glideFormFactory;u.glideRequest=n;return{create:function(e,n,r,t,a,o,c,i){o=angular.extend({GlideRecord:l.getClass(),uiMessageHandler:d},o);var s=u.create(n,r,t,a,o,c,i);return s.$private.events.on("changed",function(){e.$root.$$phase||e.$apply()}),s.$private.events.on("propertyChange",function(){e.$root.$$phase||e.$applyAsync()}),e.$on("$destroy",function(){s.$private.events.cleanup()}),s}}}]); angular.module("sn.common.clientScript").factory("glideFormFieldFactory",["$window",function(o){"use strict";return o.glideFormFieldFactory}]); angular.module("sn.common.clientScript").factory("catalogVariableHandler",["$window",function(a){"use strict";return a.catalogVariableHandler}]); angular.module("sn.common.clientScript").factory("glideFormMessageHandler",["$rootScope",function(t){"use strict";return function(e,s,i){switch(s){case"infoMessage":t.$emit("snm.ui.sessionNotification",{type:"info",message:i});break;case"errorMessage":t.$emit("snm.ui.sessionNotification",{type:"error",message:i});break;case"clearMessages":t.$emit("snm.ui.sessionNotification",{type:"clear"});break;default:return!1}}}]); angular.module("sn.common.clientScript").factory("glideListFactory",function(){"use strict";var l;return void 0===l&&(l=", "),{init:function(t,i){return{get:function(e){var n=e,a=t,u=function(e,t,i){for(var r=0,n=i.length;r<n;r++){var a=i[r];if(a.variable_name===e||a.name===e)return a}if(t.$private.options("getMappedField")){t=t.$private.options("getMappedField")(e);if(t)return t}}(n,a,i);if(u)return{addItem:function(e,t){var i,r=u.value;-1<r.indexOf(e)||(i=u.display_value_list,-1==(r=""==r?[]:r.split(",")).indexOf(e)&&(r.push(e),i.push(t)),a.setValue(n,r.join(","),i.join(l)))},removeItem:function(e){var t=u.value;if(-1!=t.indexOf(e)){for(var i=u.value.split(","),r=u.display_value_list,n=i.length-1;0<=n;n--)if(e==i[n]){i.splice(n,1),r.splice(n,1);break}a.setValue(u.name,i.join(","),r.join(l))}},getItems:function(){for(var e=[],t=u.value.split(","),i=u.display_value_list,r=0;r<t.length;r++)e.push({value:t[r],display_value:i[r]});return e},setQuery:function(e){u.ed.queryString=e,u.ed.queryString.replace("^EQ","")},getDefaultOperator:function(){return u.ed.defaultOperator},setDefaultOperator:function(e){u.ed.defaultOperator=e},queryString:u.ed.queryString,reset:function(){u.ed.queryString=""}}}}}}}); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}angular.module("sn.common.clientScript").factory("glideModalFactory",["$q",function(r){"use strict";return{create:function(t){var n=(t=t||{}).alert||e,o=t.confirm||i;return{alert:function(){var t=c(arguments),e=r.defer();return t.callback&&e.promise.then(function(){t.callback()}),n?n(t.title,t.message,function(){e.resolve()}):e.reject(),e.promise},confirm:function(){var e=c(arguments),n=r.defer();return e.callback&&n.promise.then(function(t){e.callback(t)}),o?o(e.title,e.message,function(t){n.resolve(!0===t)}):n.reject(),n.promise}}}};function c(t){var e=t[0],n=t[1],o=t[2];switch(_typeof(n)){case"function":o=n;case"undefined":n=e,e=null}return{title:e,message:n,callback:o}}function e(t,e,n){alert(e),n()}function i(t,e,n){n(confirm(e))}}]); angular.module("sn.common.clientScript").factory("glideRecordFactory",["$window","glideRequest",function(n,e){return n.GlideRecord.glideRequest=e,{create:function(e){return new n.GlideRecord(e)},getClass:function(){return n.GlideRecord}}}]); angular.module("sn.common.clientScript").factory("glideRequest",["$q","$log","$http","$window","urlTools","xmlUtil",function(o,e,s,t,l,u){"use strict";function n(e,t,n){(n=n||{}).url=t,n.method=e,n.headers||(n.headers={});var a=!1;switch(n.dataType){case"json":break;case"xml":n.headers["Content-Type"]="application/x-www-form-urlencoded";var r=n.data||{};n.data=l.encodeURIParameters(r),a=!0,n.responseType="text",n.data||(n.data=""),n.headers.Accept="application/xml, text/xml"}return s(n).then(function(e){return e.type=a?"xml":"json",e.responseText=e.data,e.responseXML=a?u.xmlToElement(e.data):null,e},function(e){return e.type=a?"xml":"json",e.responseText=e.data,e.responseXML=a?u.xmlToElement(e.data):null,o.reject(e)})}return t.glideRequest={getAngularURL:l.getURL,get:s.get,post:function(e,t){return n("post",e,t)},put:function(e,t){return n("put",e,t)}},t.glideRequest}]); angular.module("sn.common.clientScript").factory("glideUserFactory",["$window",function(n){function e(){return n.GlideUser}return{create:function(n){return new(e())(n)},getClass:e}}]); angular.module("sn.common.clientScript").factory("jQueryRequestShim",["glideRequest",function(a){return angular.isDefined(window.jQuery)?{get:window.jQuery.get,post:window.jQuery.post}:{get:function(){return t("get",Array.prototype.slice.call(arguments))},post:function(){return t("post",Array.prototype.slice.call(arguments))}};function t(t,e){var n,o,r=e.shift()||"",i=e.shift(),s=("function"==typeof i?(n=i,i=null):n=e.shift(),e.shift());switch(angular.isDefined(s)||(s="json"),t){case"get":o=a.get(r);break;case"post":o=a.post(r,{data:i,dataType:s})}return o=n?o.then(function(t){n(t.data,t.statusText,t)}):o}}]); angular.module("sn.common.clientScript").factory("uiScriptFactory",["$window",function(c){return c.uiScriptFactory}]); angular.module("sn.common.clientScript").factory("uiPolicyFactory",["$window",function(o){return o.uiPolicyFactory}]); angular.module("sn.common.clientScript").factory("uiPolicyTypes",["$window",function(n){return n.UI_POLICY_TYPES}]); angular.module("sn.common.clientScript").factory("xmlUtil",["$log",function(t){function e(r){var n;if("undefined"==typeof DOMParser)return n=angular.element(r),t.warn("DOMParser is not supported on this browser"),angular.element(n[1]);try{return(new DOMParser).parseFromString(r,"application/xml")}catch(r){return t.error(r),null}}return{xmlToElement:e,getDataFromXml:function(r,n){var t=[];return(r=angular.element(e(r)))&&r.length&&(n=angular.isString(n)?r.find(n):r.find("xml"),angular.forEach(n,function(r){var n;r.attributes&&r.attributes.length&&(n={},angular.forEach(r.attributes,function(r){n[r.nodeName]=r.nodeValue}),t.push(n))})),t}}}]); angular.module("snm.serviceCatalog.form",["sn.common.clientScript","sn.common.util"]); angular.module("snm.serviceCatalog.form").factory("catalogDataLookup",["$q","$log","$http","urlTools",function(v,f,_,h){"use strict";var m=!1;return{initItem:function(a,e){return l(h.getURL("catalog_data_lookup",{item:a}),a,e)},initRecord:function(a,e,t,o){return l(h.getURL("catalog_form_data_lookup",{table:t,sys_id:o}),a,e)}};function l(a,g,p){return _.get(a).then(function(a){a=a.data;if(!a.catalog_data_lookup)return null;m&&f.log("(catalogDataLookup) Loaded:",a);for(var e=g,t=p,o=a.catalog_data_lookup,l={},r=0,n=o.length;r<n;r++)for(var i=o[r],u=i.fields,s=0,d=u.length;s<d;s++){var c=u[s];t.hasField(c)&&(l[c]||(l[c]={dlds:[]})).dlds.push(i)}return t.serviceCatalog={activeDataLookupRequests:[],lastDataLookup:null,lastDataLookupField:null,history:[],remaining:0},e=function(a,e,t){var c=a,g=e,p=t;return function(a,e,t,o,l){var r=p[a];if(r&&r.dlds){m&&f.log("(catalogDataLookup) Found field lookup:",a,r);for(var n,i=[],u=0,s=r.dlds.length;u<s;u++){var d=function(a,e,l,t){for(var o=l.serviceCatalog.history,r=e.data_lookup_sys_id,n=0;n<o.length;n++)if(t+r==o[n])return;o.push(t+r),l.serviceCatalog.remaining++;var i=l.$private.options("getFieldParams")(),u=l.getTableName();u=u||"ni";l.getSysId();var s=h.getURL("run_catalog_data_lookup"),d=l.$private.options("getFieldSequence"),i=angular.extend({},i,{sys_target:u,sysparm_id:a,data_lookup_sys_id:e.data_lookup_sys_id,variable_sequence1:d()});return _({method:"POST",url:s,data:h.encodeURIParameters(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(a){var e=a.data;if(e.fields)for(var t=0;t<e.fields.length;t++){var o=e.fields[t];""===o.value?l.clearValue(o.name):l.setValue(o.name,o.value,o.label)}k(l)},function(a){k(l)})}(c,r.dlds[u],g,a);d&&i.push(d)}0!=i.length&&(n=v.all(i).finally(function(){g.serviceCatalog.activeDataLookupRequests.pop()}),g.serviceCatalog.activeDataLookupRequests.push(n))}}}(e,t,l),t.$private.events.on("change",e),{created:!0}})}function k(a){a.serviceCatalog.remaining--,0==a.serviceCatalog.remaining&&(a.serviceCatalog.history=[])}}]); angular.module("snm.serviceCatalog.form").factory("catalogGlideFormFactory",["$q","$log","$http","urlTools","glideFormFactory","catalogDataLookup",function(e,a,n,t,i,r){"use strict";return{addVariableEditor:function(e,a,n,t,i){i=o(a,i);e.$private.options(i),r.initRecord(a,e,n,t)},addItemEditor:function(e,a,n,t,i){i=o(a,i);e.$private.options(i),r.initItem(a,e,n,t)}};function o(e,a){var o=function e(a,n){n=n||[];for(var t=0;t<a.length;t++){var i=a[t];i.catalogFieldName=u(i.name,i.sys_id),n.push(i),i.fields&&0<i.fields.length&&e(i.fields,n)}return n}(a);return{fieldIterator:function(e){return o.forEach(e)},getMappedField:function(e){return l(o,e)},getMappedFieldName:function(e){e=l(o,e);return e.variable_name||e.catalogFieldName},getFieldParams:function(){for(var e=o,a={},n=0;n<e.length;n++){var t=e[n],i=t.sys_id;if(i&&0!=i.indexOf("gen_"))switch(t.catalogType){default:var r=0===t.name.indexOf("ni.QS")?"ni.QS":"IO";switch(a[r+":"+i]=t.value,a["sys_original."+r+":"+i]=t.initial_value,t.type){case"masked":"IO"==r?a["ni.nolog.IO:"+i]=!0:a["ni.nolog.QS:"+i]=!0;break;case"checkbox":a[r+":"+i]="true"==t.value?"on":""}break;case"quantity":a[i]=t.value;break;case"label":case"break":}}return a},getFieldSequence:function(){for(var e=o,a=[],n=0;n<e.length;n++){var t=e[n];"quantity"!==t.catalogType&&t.sys_id&&0!=t.sys_id.indexOf("gen_")&&""!=(t=t.sys_id)&&a.push(t)}return a.join(",")},itemSysId:e}}function l(e,a){for(var n=0,t=e.length;n<t;n++)if(e[n].name===a||e[n].catalogFieldName==a||e[n].variable_name==a)return e[n];return null}function u(e,a){var n="IO:";return(n=0===e.indexOf("ni.QS")?"ni.QS":n)+a}}]); angular.module("snm.data",[]),angular.module("snm.serviceCatalog.data",["snm.data"]); angular.module("snm.data").factory("glideRecordData",["$log","$q","$http",function(l,e,a){"use strict";function r(e,t,a,i,s){this.tableName=e,this.referenceKey=t,this.referenceValue=a,this.viewName=i,this.queryValues="string"==typeof s?s:null}function n(e){var a=[];return e.forEach(function(e){var t=e.type;switch(e.is_variable=!0,e.ref_table&&!e.refTable&&(e.refTable=e.ref_table),e.dbType=t,e.catalogType=t,e.fields&&(e.fields=n(e.fields)),t){case 1:e.catalogType="yesno",e.type="choice";break;case 2:e.catalogType="multilinetext",e.type="text_area";break;case 3:e.catalogType="multiplechoice",e.type="choice";break;case 4:e.catalogType="numericscale",e.type="integer";break;case 100:e.catalogType="quantity",e.type="choice";break;case 5:e.catalogType="selectbox",e.type="choice";break;case 6:e.catalogType="singlelinetext",e.type="string";break;case 7:e.catalogType="checkbox",e.type="boolean";break;case 8:e.type="reference";break;case 9:e.catalogType="date",e.type="glide_date";break;case 10:e.catalogType="datetime",e.type="glide_date_time";break;case 11:e.type="label";break;case 12:e.type="break";break;case 0:e.catalogType="block_container",e.type="block_container";break;case 99:e.catalogType="checkbox_container",e.type="checkbox_container";break;case 14:e.type="macro";break;case 15:e.type="uipage";break;case 16:e.catalogType="widesinglelinetext",e.type="string";break;case 17:e.type="macrowithlabel";break;case 18:e.catalogType="lookupselectbox",e.type="choice";break;case 19:e.type="containerstart";break;case 20:e.type="containerend";break;case 21:e.type="listcollector";break;case 22:e.catalogType="lookupmultiplechoice",e.type="choice";break;case 23:e.type="html";break;case 24:return e.catalogType="containersplit",void(e.type="split");case 25:e.type="masked";break;default:l.warn("Unknown field type:",t)}a.push(e)}),a}return angular.extend(r.prototype,{getDisplayTitle:function(){return this.displayTitle},isNewRecord:function(){return"-1"===this.referenceValue},getField:function(e,t){for(var a=0,i=this.fields.length;a<i;a++)if(this.fields[a].name===e){if(!t)return this.fields[a];if(!this.fields[a].section_id)return this.fields[a].section_id=t,this.fields[a];if(this.fields[a].section_id===t)return this.fields[a]}},showAttachmentButton:function(){return!this.tableAttributes||"true"!==this.tableAttributes.no_attachment},canViewActivityStream:function(){return!0===this.showStreamButton&&!this.isNewRecord()},load:function(){var e="/api/now/mobile/record/"+this.tableName+"/"+this.referenceValue,t={sysparm_sys_id:this.referenceValue,sysparm_reference_key:this.referenceKey,sysparm_query:this.queryValues,sysparm_view:this.viewName},c=this;return a.get(e,{params:t}).then(function(e){var r,a,t,e=e.data.result,i=(c.relatedLists=(i=(i=e.related_lists)||[],angular.forEach(i,function(e){e.visible=!0}),i),e.record_data),s=(c.sysId=i.sys_id,c.displayTitle=i.$$title,c.tableAttributes=i.table_attributes,c.viewName=i.view,c.showStreamButton=i.show_stream_button,[]),e=(i.fields.forEach(function(e){switch(e.name){case".end_split":case".start_split":break;default:s.push(e)}}),c.fields=s,c.layout=(r=c,e=e.layout,a=[],angular.forEach(e,function(i){var t,e=i.column_count=i.columns.length,s=!1;0<e&&(t=0<e?12/e:0,angular.forEach(i.columns,function(e){e.classes="col-xs-12 col-sm-"+t;var a=[];angular.forEach(e.fields,function(e){var t=r.getField(e.name,i.id);t?(a.push(t),s=!0):l.warn("(FormLayout)","Could not find field for layout item: ",e.name)}),e.fields=a})),s&&a.push({classes:"row",columns:i.columns,caption:i.caption,title:i.caption,titleClasses:"col-xs-12",visible:i.visible})}),{sections:a}),c.variables=null,i.variables&&0<i.variables.length&&((e=n(i.variables)).forEach(function(e){c.fields.push(e)}),c.variables=e),c.itemSysId=i.itemSysId,c.label=i.label,c.encodedRecord=i.encoded_record||"",c.uiPolicy=i.policy,c.uiActions=i.actions,c.clientScripts=i.client_script,c.g_scratchpad=i.g_scratchpad,c.validatorScripts=i.validator_script,c.uiScripts=i.ui_script,c);return e.isNewRecord()&&e.queryValues&&(t=function(e){var e=e.split("^"),t={};return e.forEach(function(e){e=e.split("=",2);t[e[0]]=e[1]}),t}(e.queryValues),e.fields.forEach(function(e){e.dirtyQueryField=!1,void 0!==t[e.name]&&(e.dirtyQueryField=!0)})),c})}}),{NEW_SYS_ID:"-1",loadRecord:function(e,t,a,i){return new r(e,"sys_id",t,a,i).load()},loadRecordByKey:function(e,t,a,i,s){return new r(e,t=void 0!==t&&null!=t?t:"sys_id",a,i,s).load()},mapCatalogFieldTypes:n}}]); angular.module("snm.serviceCatalog.data").factory("catalogItemFactory",["$q","$log","$http","glideRecordData","urlTools",function(a,i,n,c,u){"use strict";var o=!1,s="item",l="producer";function r(e,t,r){switch(r){case s:case l:break;default:r=s}t=u.getURL("catalog_item",{type:r,sys_id:t,category_sys_id:e});return n.get(t).then(function(e){var t=e.data;return o&&i.log("(catalogItemFactory) loadItem",t),angular.isDefined(t.sys_id)?d(e.data,r):a.reject("Item not found")})}function d(t,e,r){t.type||(t.type=e),t.fields&&(t.fields=c.mapCatalogFieldTypes(t.fields)),t.item_sys_id?(t.sysId=t.item_sys_id,t.cartItemSysId=t.sys_id):t.sysId=t.sys_id,t.category_sys_id&&(t.categorySysId=t.category_sys_id);var e=!0,a=null;return angular.isDefined(t.picture)&&null!==t.picture&&(""===t.picture?e=!1:"sc_placeholder_image.png"!==t.picture&&(a="/"+t.picture)),t.hasPicture=e,t.pictureUrl=a,angular.extend(t,{getTitle:function(){return t.displayValue,t.name},getDescription:function(){return t.getTitle()==t.short_description?"":t.short_description},getCategoryTitle:function(){var e=t.breadcrumbs.length;return t.breadcrumbs[e-2].displayValue},getPrice:function(){return t.price_raw||parseFloat(t.price.replace(/\$|,/g,""))},getRecurringPrice:function(){return t.recurring_price_raw||parseFloat(t.recurring_price.replace(/\$|,/g,""))},hasDescription:function(){return!(r&&!r.sc_descriptions)},hasQuantity:function(){return!(r&&!r.sc_quantity)&&(!t.no_quantity&&1<t.quantity)},hasPrice:function(){return!(r&&!r.sc_price)&&-1!==t.price},hasRecurring:function(){return!(r&&!r.sc_recurring_price)&&-1!==t.recurring_price}}),t}return{TYPE_ITEM:s,TYPE_PRODUCER:l,loadItem:r,loadProducer:function(e,t){return r(e,t,l).then(function(e){return angular.extend(e,{recordParams:{tableName:e.table,sysId:e.sysparm_item_guid}}),e})},loadItemScripts:function(e){return a.all([function(e){e=u.getURL("catalog_ui_policy",{item:e});return n.get(e).then(function(e){e=e.data;return o&&i.log("(catalogItemFactory) loadItemUiPolicy",e),e.policy||[]})}(e),function(e){e=u.getURL("catalog_client_script",{item:e});return n.get(e).then(function(e){e=e.data;return o&&i.log("(catalogItemFactory) loadItemClientScripts",e),e})}(e)]).then(function(e){return{uiPolicy:e[0],clientScripts:e[1]}})},executeProducerSubmit:function(e,t,r,a){return r=angular.extend({},r,{type:"produce_record",sysparm_action:"execute_producer",sysparm_item_guid:t,sysparm_id:e,variable_sequence:a,sysparm_uitype:"classic_mobile"}),t=u.getURL("catalog_item"),n({method:"post",url:t,data:u.encodeURIParameters(r),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=iso-8859-1"}}).then(function(e){o&&i.log("(catalogItemFactory) producerSubmit",t);var t=e.data;return t})},create:d}}]); var ATTACHMENT_SIZE_ERROR=1,EXTENSION_ERROR=2,SUCCESS=3,MB_TO_BYTES=1048576;function validateAttachmentVariable(e,n){if(n.allowedFileSize){var E=parseInt(n.allowedFileSize);if(e.size>E*MB_TO_BYTES)return ATTACHMENT_SIZE_ERROR}if(n.allowedExtensions&&n.allowedExtensions.length){for(var E=e.name.lastIndexOf(".")+1,a=e.name.substring(E).toLowerCase(),t=0;t<n.allowedExtensions.length;t++)if(a===n.allowedExtensions[t].toLowerCase())return SUCCESS;return EXTENSION_ERROR}return SUCCESS} /*! RESOURCE: /scripts/table_variable_util.js */ function getDuplicateFields(uniqueColumnNames, parentGridData, existingRowData, currentRowData) { var uniqueColumnData = new Map(); var duplicateUniqueFields = new Set(); var isExecutedFromScript = true; var duplicateUniqueFieldsArray = []; if (currentRowData) isExecutedFromScript = false; for ( var name in uniqueColumnNames) { uniqueColumnData.set(name, new Map()); } if (existingRowData && Object.keys(existingRowData).length > 0) { for ( var columnName in uniqueColumnNames) { var currentColumnData = currentRowData[columnName]; var existingColumnData = existingRowData[columnName]; if (currentColumnData && existingColumnData && currentColumnData.toLowerCase() === existingColumnData.toLowerCase()) { delete uniqueColumnNames[columnName]; } } } if (Object.keys(uniqueColumnNames).length > 0) { if (Array.isArray(parentGridData) && parentGridData.length > 0) { for (var i = 0; i < parentGridData.length; i++) { var row = parentGridData[i]; if (row !== null && typeof row === 'object') { for ( var uniqueColumnName in uniqueColumnNames) { var columnValue = row[uniqueColumnName]; if (columnValue) { columnValue = columnValue.toLowerCase(); if (!uniqueColumnData.get(uniqueColumnName).has(columnValue)) uniqueColumnData.get(uniqueColumnName).set(columnValue, true); else if (isExecutedFromScript) duplicateUniqueFields.add(uniqueColumnNames[uniqueColumnName]); } } } } } if (!isExecutedFromScript){ for (var uniqueColumnName in uniqueColumnNames) { var currentColumnData = currentRowData[uniqueColumnName]; if (currentColumnData && uniqueColumnData.get(uniqueColumnName).has(currentColumnData.toLowerCase())) duplicateUniqueFields.add(uniqueColumnNames[uniqueColumnName]) } } } if (duplicateUniqueFields) { duplicateUniqueFields.forEach(function(element) { duplicateUniqueFieldsArray.push(element) }); } return duplicateUniqueFieldsArray; } if (typeof Object.assign !== 'function') { Object.defineProperty(Object, "assign", { value : function assign(target, varArgs) { 'use strict'; if (target === null || target === undefined) { throw new TypeError( 'Cannot convert undefined or null to object'); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource !== null && nextSource !== undefined) { for ( var nextKey in nextSource) { if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }, writable : true, configurable : true }); } ; angular.module("ui.tinymce",[]).value("uiTinymceConfig",{}).directive("uiTinymce",["$rootScope","$compile","$timeout","$window","$sce","uiTinymceConfig",function($,g,v,y,b,p){return(p=p||{}).baseUrl&&(tinymce.baseURL=p.baseUrl),{require:["ngModel","^?form"],priority:599,link:function(o,r,u,e){var t,n,i,a,c,s,d,m;function l(e){e?(f(),c&&c.getBody()&&c.getBody().setAttribute("contenteditable",!1)):(f(),c&&!c.settings.readonly&&c.getDoc()&&c.getBody().setAttribute("contenteditable",!0))}function f(){c=c||tinymce.get(u.id)}y.tinymce&&(t=e[0],n=e[1]||null,a={debounce:!0},s=function(e){e=e.getContent({format:a.format}).trim(),e=b.trustAsHtml(e);t.$setViewValue(e),$.$$phase||o.$digest()},u.id||u.$set("id","ui-tinymce-"+(new Date).valueOf()),i={},angular.extend(i,o.$eval(u.uiTinymce)),d=function(t){v.cancel(m),m=v(function(){var e;(e=t).isDirty()&&(e.save(),s(e))},400)},e={setup:function(e){e.on("init",function(){t.$render(),t.$setPristine(),t.$setUntouched(),n&&n.$setPristine()}),e.on("ExecCommand change NodeChange ObjectResized",function(){(a.debounce?d:(e.save(),s))(e)}),e.on("blur",function(){r[0].blur(),t.$setTouched(),$.$$phase||o.$digest()}),e.on("remove",function(){r.remove()}),p.setup&&p.setup(e,{updateView:s}),i.setup&&i.setup(e,{updateView:s})},format:i.format||"html",selector:"#"+u.id},angular.extend(a,p,i,e),v(function(){a.baseURL&&(tinymce.baseURL=a.baseURL);var e=tinymce.init(a);e&&"function"==typeof e.then?e.then(function(){l(o.$eval(u.ngDisabled))}):l(o.$eval(u.ngDisabled))}),t.$formatters.unshift(function(e){return e?b.trustAsHtml(e):""}),t.$parsers.unshift(function(e){return e?b.getTrustedHtml(e):""}),t.$render=function(){f();var e=t.$viewValue?b.getTrustedHtml(t.$viewValue):"";c&&c.getDoc()&&(c.setContent(e),c.fire("change"))},u.$observe("disabled",l),o.$on("$tinymce:refresh",function(e,t){var n,i=u.id;!angular.isUndefined(t)&&t!==i||(t=r.parent(),(n=r.clone()).removeAttr("id"),n.removeAttr("style"),n.removeAttr("aria-hidden"),tinymce.execCommand("mceRemoveEditor",!1,i),t.append(g(n)(o)))}),o.$on("$destroy",function(){f(),c&&(c.remove(),c=null)}))}}}]); angular.module("ui.tinymce").decorator("uiTinymceDirective",["$delegate","tinymceService",function(e,i){return i.loadTinymceSync(),tinyMCE.baseURL="/scripts/tinymce_default/node_modules/sn-tinymce/js/tinymce",tinyMCE.suffix=".min",e[0].priority=10,e}]); var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e,l=/\blang(?:uage)?-(\w+)\b/i,y=_self.Prism={util:{encode:function(e){return e instanceof s?new s(e.type,y.util.encode(e.content),e.alias):"Array"===y.util.type(e)?e.map(y.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){switch(y.util.type(e)){case"Object":var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=y.util.clone(e[t]));return n;case"Array":return e.map&&e.map(function(e){return y.util.clone(e)})}return e}},languages:{extend:function(e,t){var n,a=y.util.clone(y.languages[e]);for(n in t)a[n]=t[n];return a},insertBefore:function(n,e,t,a){var i=(a=a||y.languages)[n];if(2==arguments.length){for(var r in t=e)t.hasOwnProperty(r)&&(i[r]=t[r]);return i}var s,o={};for(s in i)if(i.hasOwnProperty(s)){if(s==e)for(var r in t)t.hasOwnProperty(r)&&(o[r]=t[r]);o[s]=i[s]}return y.languages.DFS(y.languages,function(e,t){t===a[n]&&e!=n&&(this[e]=o)}),a[n]=o},DFS:function(e,t,n,a){for(var i in a=a||{},e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],n||i),"Object"!==y.util.type(e[i])||a[e[i]]?"Array"!==y.util.type(e[i])||a[e[i]]||(a[e[i]]=!0,y.languages.DFS(e[i],t,i,a)):(a[e[i]]=!0,y.languages.DFS(e[i],t,null,a)))}},plugins:{},highlightAll:function(e,t){for(var n,a=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),i=0;n=a[i++];)y.highlightElement(n,!0===e,t)},highlightElement:function(e,t,n){for(var a,i=e;i&&!l.test(i.className);)i=i.parentNode;i&&(r=(i.className.match(l)||[,""])[1],a=y.languages[r]),e.className=e.className.replace(l,"").replace(/\s+/g," ")+" language-"+r,i=e.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(l,"").replace(/\s+/g," ")+" language-"+r);var r,s=e.textContent,o={element:e,language:r,grammar:a,code:s};s&&a?(y.hooks.run("before-highlight",o),t&&_self.Worker?((r=new Worker(y.filename)).onmessage=function(e){o.highlightedCode=e.data,y.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,n&&n.call(o.element),y.hooks.run("after-highlight",o),y.hooks.run("complete",o)},r.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))):(o.highlightedCode=y.highlight(o.code,o.grammar,o.language),y.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,n&&n.call(e),y.hooks.run("after-highlight",o),y.hooks.run("complete",o))):y.hooks.run("complete",o)},highlight:function(e,t,n){e=y.tokenize(e,t);return s.stringify(y.util.encode(e),n)},tokenize:function(e,t){var n=y.Token,a=[e],i=t.rest;if(i){for(var r in i)t[r]=i[r];delete t.rest}e:for(var r in t)if(t.hasOwnProperty(r)&&t[r])for(var s=t[r],s="Array"===y.util.type(s)?s:[s],o=0;o<s.length;++o)for(var l=(p=s[o]).inside,u=!!p.lookbehind,c=0,g=p.alias,p=p.pattern||p,d=0;d<a.length;d++){var m,h,f,b=a[d];if(a.length>e.length)break e;b instanceof n||(p.lastIndex=0,(m=p.exec(b))&&(u&&(c=m[1].length),h=(f=m.index-1+c)+(m=m[0].slice(c)).length,f=b.slice(0,f+1),b=b.slice(h+1),h=[d,1],f&&h.push(f),f=new n(r,l?y.tokenize(m,l):m,g),h.push(f),b&&h.push(b),Array.prototype.splice.apply(a,h)))}return a},hooks:{all:{},add:function(e,t){var n=y.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=y.hooks.all[e];if(n&&n.length)for(var a,i=0;a=n[i++];)a(t)}}},s=y.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};return(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===y.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a,i={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e},r=("comment"==i.type&&(i.attributes.spellcheck="true"),t.alias&&(e="Array"===y.util.type(t.alias)?t.alias:[t.alias],Array.prototype.push.apply(i.classes,e)),y.hooks.run("wrap",i),"");for(a in i.attributes)r+=(r?" ":"")+a+'="'+(i.attributes[a]||"")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'" '+r+">"+i.content+"</"+i.tag+">"},_self.document)?(e=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop())&&(y.filename=e.src,document.addEventListener&&!e.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",y.highlightAll)):_self.addEventListener&&_self.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,n=e.code,e=e.immediateClose;_self.postMessage(y.highlight(n,y.languages[t],t)),e&&_self.close()},!1),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),Prism.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript,function(e){e.languages.ruby=e.languages.extend("clike",{comment:/#(?!\{[^\r\n]*?\}).*/,keyword:/\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.util.clone(e.languages.ruby)}};e.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,inside:{interpolation:t}},{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}],variable:/[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,symbol:/:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.insertBefore("ruby","number",{builtin:/\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:t}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:t}}]}(Prism),Prism.languages.java=Prism.languages.extend("clike",{keyword:/\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),Prism.languages.php=Prism.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0}}),Prism.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),Prism.languages.insertBefore("php","keyword",{delimiter:/\?>|<\?(?:php)?/i,variable:/\$\w+\b/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),Prism.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),Prism.languages.markup&&(Prism.hooks.add("before-highlight",function(t){"php"===t.language&&(t.tokenStack=[],t.backupCode=t.code,t.code=t.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi,function(e){return t.tokenStack.push(e),"{{{PHP"+t.tokenStack.length+"}}}"}))}),Prism.hooks.add("before-insert",function(e){"php"===e.language&&(e.code=e.backupCode,delete e.backupCode)}),Prism.hooks.add("after-highlight",function(e){if("php"===e.language){for(var t,n=0;t=e.tokenStack[n];n++)e.highlightedCode=e.highlightedCode.replace("{{{PHP"+(n+1)+"}}}",Prism.highlight(t,e.grammar,"php").replace(/\$/g,"$$$$"));e.element.innerHTML=e.highlightedCode}}),Prism.hooks.add("wrap",function(e){"php"===e.language&&"markup"===e.type&&(e.content=e.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'<span class="token php">$1</span>'))}),Prism.languages.insertBefore("php","comment",{markup:{pattern:/<[^?]\/?(.*?)>/,inside:Prism.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/})),Prism.languages.python={"triple-quoted-string":{pattern:/"""[\s\S]+?"""|'''[\s\S]+?'''/,alias:"string"},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:/("|')(?:\\?.)*?\1/,function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)[a-z0-9_]+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,boolean:/\b(?:True|False)\b/,number:/\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/}; angular.module("ui.tinymce").factory("tinymceService",["$http",function(n){"use strict";function c(n){var c;n=n||{},window.hasOwnProperty("tinyMCE")||(c="scripts/js_includes_sp_tinymce.js?v="+g_builddate,n=n,n=$.extend(n||{},{dataType:"script",cache:!0,url:c}),$.ajax(n))}return{loadTinymceAsync:c,loadTinymceSync:function(){c({async:!1})}}}]); window.tabbable=function(e,t){for(var o,n,a,r,d=[],i=[],u=(o=[],function e(t){if(t===document.documentElement||!t.tagName)return!1;for(var n=0,a=o.length;n<a;n++)if(o[n][0]===t)return o[n][1];var r=!1,d=window.getComputedStyle(t);return"hidden"===d.visibility||"none"===d.display?r=!0:t.parentNode&&(r=e(t.parentNode)),o.push([t,r]),r}),l=e.querySelectorAll(t||'input, select, a[href], textarea, button, [tabindex], [contenteditable]:not([contenteditable="false"])'),b=0,p=l.length;b<p;b++)n=l[b],a=n,r=void 0,r=parseInt(a.getAttribute("tabindex"),10),(a=isNaN(r)?"true"===a.contentEditable?0:a.tabIndex:r)<0||"INPUT"===n.tagName&&"hidden"===n.type||n.disabled||u(n)||(0===a?d.push(n):i.push({tabIndex:a,node:n}));e=i.sort(function(e,t){return e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(e,d),e}; !function(){var h=null;function w(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}function E(e){return e.path||e.composedPath&&e.composedPath()||function(e){var t=[];for(;e;){if(e.shadowRoot&&(e.shadowRoot.activeElement&&t.push(e.shadowRoot.activeElement),t.push(e.shadowRoot)),t.push(e),"HTML"===e.tagName){t.push(document),t.push(window);break}e=e.parentElement}return t}(e.target)}window.focusTrap=function(e,t){var a=[],n=null,o=!1,u="string"==typeof e?document.querySelector(e):e,c=t||{},i=(c.returnFocusOnDeactivate=!t||null==t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,c.escapeDeactivates=!t||null==t.escapeDeactivates||t.escapeDeactivates,{activate:function(e){e={onActivate:(e&&void 0!==e.onActivate?e:c).onActivate};o=!0,n=function(){var e=document.activeElement;if(e&&e!==document.body)return function e(t){return t=t.shadowRoot&&t.shadowRoot.activeElement?e(t.shadowRoot.activeElement):t}(e)}(),e.onActivate&&e.onActivate();return s(),i},deactivate:r,pause:v,unpause:s});return i;function r(e){var t={returnFocus:e&&null!=e.returnFocus?e.returnFocus:c.returnFocusOnDeactivate,returnFocusTo:e&&e.returnFocusTo,onDeactivate:(e&&void 0!==e.onDeactivate?e:c).onDeactivate};return v(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){w(t.returnFocusTo||n)},0),o=!1,this}function s(){if(o)return h&&h.pause(),h=i,p(),w(function(){var e;if(!c.initialFocus){if(e=a[0])return e;throw new Error("You can't have a focus-trap without at least one focusable element")}if(e=typeof c.initialFocus==="string"?document.querySelector(c.initialFocus):c.initialFocus)return e;throw new Error("`initialFocus` refers to no known node")}()),document.addEventListener("focus",l,!0),document.addEventListener("click",f,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("keydown",m,!0),i}function v(){if(o&&h)return document.removeEventListener("focus",l,!0),document.removeEventListener("click",f,!0),document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),document.removeEventListener("keydown",m,!0),h=null,i}function d(e){c.clickOutsideDeactivates&&r({returnFocus:!1})}function f(e){c.clickOutsideDeactivates||0<=E(e).indexOf(u)||(e.preventDefault(),e.stopImmediatePropagation())}function l(e){var t,n;!1!==c.focusOutsideDeactivates&&(n=(t=E(e))[0],0<=t.indexOf(u)||(e.preventDefault(),e.stopImmediatePropagation(),n.blur()))}function m(e){"Tab"!==e.key&&9!==e.keyCode||!function(e){e.preventDefault(),p();var t=E(e)[0],n=a.indexOf(t),o=a[a.length-1],u=a[0];if(e.shiftKey)return t===u||-1===a.indexOf(t)?w(o):w(a[n-1]);if(t===o)return w(u);w(a[n+1])}(e),!1===c.escapeDeactivates||"Escape"!==(e=e).key&&"Esc"!==e.key&&27!==e.keyCode||r()}function p(){a=tabbable(u)}}}(); jQuery(function(i){var e,o;window.WeakMap&&(window.NOW=window.NOW||{},window.NOW.accessibilityJSLoaded||(window.NOW.accessibilityJSLoaded=!0,e=i(document),o=new WeakMap,e.on("show.bs.modal",function(e){var t,e=e.target,n=document.activeElement;o.get(e)||(o.set(e,{}),e=e,t="trigger-element",n=n,(e=o.get(e))&&(e[t]=n))}),e.on("hidden.bs.modal",function(e){e=e.target;!function(e){function t(e){var t,e=i(e);return 0<(t=e).filter(":visible").length&&-1<t[0].tabIndex&&(e.focus(),!0)}var n=i(function(e,t){e=o.get(e);return e&&e[t]}(e,"trigger-element"));do{if(t(n)||t(n.data("menu-trigger")))return}while(n=n.parent(),0<n.length)}(e),o.delete(e)})))}); !function(o){"use strict";var t=o.fn.modal.Constructor,a=t.prototype.show,n=t.prototype.hide,l=[],s=o(document);function i(t){t.offsetLeft}function c(t,e){if(3===(e=void 0===e?1:e))return null;var n=window.tabbable(t,"input, select, a[href], textarea, button, [tabindex]:not(.focus-trap-boundary-south), iframe");if(0===n.length)return null;var o=null;if("IFRAME"!==n[0].tagName)return n[0];for(var a=0;a<=n.length-1&&null===o;a++)"IFRAME"===(o=n[a]).tagName&&(o=c(o.contentDocument,e+1));return o}function u(t){var e,n,o,a,s,i,u,r=l[l.length-1];r&&r.$element&&"true"!==(r=r.$element).attr("focus-escape")&&(u=(e=r[0])===t.target,n=0<r.has(t.target).length,o=t.target.classList.contains("focus-trap-boundary-south"),a="IFRAME"===t.target.tagName,s=e.classList.contains("vtb-classic-form-modal"),u||s||(n?o?(i=c(e))&&"function"==typeof i.focus?i.focus():r.trigger("focus"):a&&(i=c(t.target.contentDocument))&&"function"==typeof i.focus&&i.focus():(u=function t(e,n){if(3===(n=void 0===n?1:n))return null;var o=window.tabbable(e,"input, select, a[href], textarea, button, [tabindex]:not(.focus-trap-boundary-south), iframe");if(0===o.length)return null;if("IFRAME"!==o[o.length-1].tagName)return o[o.length-1];for(var a=null,s=o.length-1;0<=s&&null===a;s--)"IFRAME"===(a=o[s]).tagName&&(a=t(a.contentDocument,n+1));return a}(e))&&"function"==typeof u.focus?u.focus():r.trigger("focus")))}t.prototype.show=function(){a.apply(this,arguments),l.push(this);var t=o("body").find(".modal-backdrop").not(".stacked"),e=this.$element.css("z-index"),n=t.css("z-index");this.$element.css("z-index",~~e+10*l.length),t.css("z-index",~~n+10*l.length),t.addClass("stacked"),this.$element[0].setAttribute("tabindex","-1"),i(this.$element[0])},t.prototype.hide=function(t){n.apply(this,arguments);var e=l.indexOf(this);-1!==e&&l.splice(e,1),this.isShown||(0<l.length&&s.on("focusin.bs.modal",u),this.$element.css("z-index",""),i(this.$element[0]))},s.on("shown.bs.modal hidden.bs.modal",function(){window._frameChanged&&_frameChanged()}),s.on("shown.bs.modal",function(t){s.off("focusin.bs.modal"),s.on("focusin.bs.modal",u);var t=t.target,e=!0;(e="false"===t.getAttribute("data-auto-focus")?!1:e)&&window.tabbable&&((e=window.tabbable(t))&&e.length&&e[0]&&e[0].focus())})}(jQuery); angular.module("sn.common.session_extension",[]); angular.module("sn.common.session_extension").service("snSessionModal",["$q","$uibModal","$templateCache",function(l,s,t){"use strict";var i,c="sn-session-modal.xml",d="",u=!(r.$inject=["$scope","options"]);function r(o,e){o.options=e,o.buttonClicked=function(t){e.callback&&e.callback(),o.$close({button:t}),u=!1},o.closeModal=function(){o.$dismiss(),u=!1}}return t.put(c,'<div>\t<div class="modal-header"> \t\t<button type="button" class="close" ng-click="closeModal()"\t\t\ttitle="{{options.closeLabel}}" data-toggle="tooltip" data-placement="bottom"\t\t\taria-label="{{options.closeLabel}}" autoFocus="autofocus">×</button>\t\t<h1 class="modal-title h3" id="modal-title">{{options.title}}</h1>\t</div>\t<div class="modal-body" id="modal-body">\t\t<p>{{options.message}}</p>\t</div>\t<div class="modal-footer" ng-style="options.footerStyle">\t\t<button ng-repeat="button in options.buttons track by button.label" class="btn btn-default {{button.class}}"\t\t\tng-class="{\'btn-primary\':button.primary, \'btn-focus\':button.focus}" ng-click="buttonClicked(button)">{{button.label}}</button>\t</div></div>'),{open:function(t){d=t.name;var o,e,n,a=l.defer();return o=t,e=a,n=angular.element(o.pageRootElement||".sp-page-root"),(t=s.open({templateUrl:c,controller:r,size:o.size,appendTo:o.appendTo,backdrop:null!=o.backdrop?o.backdrop:"static",keyboard:null!=o.keyboard&&o.keyboard,resolve:{options:function(){return o}}})).result.then(function(t){e.resolve(t.button)},function(){e.reject()}),t.rendered.then(function(){var t=angular.element("#modal-title").closest("div.modal");t.attr("aria-labelledby","modal-title"),t.attr("aria-describedby","modal-body"),n.attr("aria-hidden","true"),u=!0,setTimeout(function(){t.find(".btn-focus").focus()},0)}),t.closed.then(function(){n.attr("aria-hidden","false")}),i=t,a.promise},close:function(){i.dismiss(),i=null,u=!1},isRendered:function(){return u},getModalName:function(){return d}}}]); angular.module("sn.common.session_extension").service("snExtendSessionService",["$window","$http","$location","$timeout","snSessionModal","i18n",function(e,s,n,o,i,t){"use strict";t.getMessages(["Extend your session.","Extend session","Your current session will expire soon. Click extend to continue with your current session.","Close Modal","Your session has expired.","Your login session has expired. Please login again.","Log in","Session Expiration Notification","Your session will expire within {X} minutes. Please complete your ongoing tasks to prevent loss of work.","Ok"],function(e){a=e});var a,r="extend_session_modal",l="expired_session_modal",d=!1,u=function(e){var s,e=e.ext||{};e&&("session.logged.in"===e["glide.session.status"]?(s=e["glide.active.session.time.remaining.in.seconds"]&&parseInt(e["glide.active.session.time.remaining.in.seconds"],10))?d||i.isRendered()||(s=Math.round(s/60),i.open(p("absolute_session_timeout_modal",a["Session Expiration Notification"],t.format(a["Your session will expire within {X} minutes. Please complete your ongoing tasks to prevent loss of work."],{X:s}),a.Ok)),d=!0):parseInt(e["glide.session.time.remaining.in.seconds"],10)<=NOW.session_timeleft?i.isRendered()||i.open(p(r,a["Extend your session."],a["Your current session will expire soon. Click extend to continue with your current session."],a["Extend session"],x)):i.isRendered()&&r===i.getModalName()&&i.close():c())};function c(){i.isRendered()&&l!==i.getModalName()&&i.close()}function g(){c(),d=d&&!1,!i.isRendered()&&NOW.multisso_enabled&&i.open(p(l,a["Your session has expired."],a["Your login session has expired. Please login again."],a["Log in"],f))}function m(){i.isRendered()&&l===i.getModalName()&&i.close()}function p(e,s,n,o,i){var t=[];return t.push({label:o,primary:!0,focus:!0}),{name:e,title:s,message:n,closeLabel:a["Close Modal"],buttons:t,callback:i}}function f(){e.location.href=n.absUrl()}function w(e){e.headers("X-Is-Logged-In")&&"false"===e.headers("X-Is-Logged-In")&&f()}function x(){s.post("/now/uisession/touch-session").then(w,f)}return{listenToAmbSessionData:function(){var e;!window.g_ambClient||"guest"===NOW.user_name||(e=n.search())&&"false"==e.se_modal||("false"!==NOW.forgetMe&&window.g_ambClient.getChannel("/meta/connect").subscribe(u),window.g_ambClient.subscribeToEvent("session.logged.out",g),window.g_ambClient.subscribeToEvent("session.logged.in",m))}}}]); angular.module("sn.$sp",["oc.lazyLoad","sn.common","ngAria","ngResource","ngCookies","ngAnimate","sn.base","ui.bootstrap","sn.common.attachments","sn.common.util","sn.common.presence","sn.common.analytics","sn.common.session_extension","snm.auth.data","snm.cabrillo","snm.serviceCatalog.form","snm.serviceCatalog.data","sn.common.form","sn.common.controls","ui.tinymce","ngSanitize","sp.dependencies","sp.pageData"]),angular.module("snm.auth.data").provider("glideSystemProperties",function(){"use strict";var s={};this.$get=["$window",function(n){return{set:function(n,o){s[n]=o},get:function(n){return s[n]}}}]}); angular.module("sn.$sp").run(["snPerformanceAnalytics",function(n){n.initialize()}]); angular.module("sn.$sp").run(["snExtendSessionService",function(n){n.listenToAmbSessionData()}]); angular.module("sn.$sp").constant("spConf",{page:"sp.do",angularProcessor:"angular.do",sysParamType:"$sp",widgetApi:"/api/now/sp/widget/",instanceApi:"/api/now/sp/rectangle/",pageApi:"/api/now/sp/page",announcementApi:"/api/now/sp/announcement",logoutUrl:"/logout.do?sysparm_goto_url=/{url_suffix}",s:83,e:{notification:"$$uiNotification",announcement:"$$:sp:announcement"},SYS_DATE_FORMAT:"yyyy-MM-dd",SYS_TIME_FORMAT:"HH:mm:ss"}); angular.module("sn.$sp").constant("spSCConf",{MULTI_ROW_TYPE:"sc_multi_row",CONTAINER_START:"container_start",CHECKBOX:"boolean",CHECKBOX_MANDATORY:"boolean_confirm",CHECKBOX_CONTAINER:"checkbox_container",REFERENCE:"reference",LABEL:"label",MASKED:"masked",STRING:"string",BREAK:"break",FORMATTER:"formatter",HTML:"html",RICH_TEXT_LABEL:"rich_text_label",SC_ATTACHMENT:"sc_attachment",_CAT_VARIABLE:"_cat_variable",MAX_ALSO_REQUEST_FOR:50}); angular.module("sn.$sp").directive("spFormField",["$location","glideFormFieldFactory","$timeout","spLabelHelper","spAriaUtil","i18n","spModelUtil","$ocLazyLoad","$sce","spUtil",function(e,o,t,l,i,a,s,c,n,d){"use strict";return{restrict:"E",templateUrl:"sp_form_field.xml",replace:!0,controllerAs:"c",scope:{field:"=",formModel:"=",getGlideForm:"&glideForm",setDefaultValue:"&defaultValueSetter"},controller:["$element","$scope",function(e,i){var t=this,a=i.field;if(!a)throw"spFormField used without providing a field.";t.depsLoaded=!1,t.getAttachmentGuid=function(){return i.formModel?i.formModel._attachmentGUID:""};l=a.type;var l,n={css:n=["/styles/sp_codemirror_includes.css","/scripts/libs/sp_codemirror_includes.js"],xml:n,json:n,script:n,properties:n,script_server:n,html_template:n,color:["/styles/spectrum.css","/scripts/lib/spectrum.js"]}[l],r=(n&&n.length?c.load(n).then(function(){t.depsLoaded=!0}):t.depsLoaded=!0,void 0===a.isMandatory&&s.extendField(a),i.setDefaultValue);i.setDefaultValue=function(e,t,i){r({fieldName:e,fieldInternalValue:t,fieldDisplayValue:i})},i.getGlideForm().$private.events.on("change",function(e,t,i){e==a.name&&(a.stagedValue=i)}),i.stagedValueChange=function(){i.$emit("sp.spFormField.stagedValueChange",null)},i.fieldValue=function(e,t){return angular.isDefined(e)&&i.getGlideForm().setValue(a.name,e,t),a.value},i.getEncodedRecordValues=function(){var t={};return angular.forEach(i.formModel._fields,function(e){"user_image"!=e.type?t[e.name]=e.value:e.value&&(t[e.name]="data:image/jpeg;base64,A==")}),t},i.formatNumber=function(){a.noFormat||(a.stagedValue=formatNumber(a.stagedValue))},i.onImageUpload=function(e,t){i.getGlideForm().setValue(a.name,t,e)},i.onImageDelete=function(){i.getGlideForm().setValue(a.name,"")},i.hasValueOrFocus=function(){var e=i.hasFocus||o.hasValue(a);return e="user_image"==a.type?!0:e},i.getAutocompleteValue=function(){var e=d.parseAttributes(a.attributes);return void 0!==e.autocomplete?e.autocomplete:"off"},t.showLabel=function(e){return"boolean"!=e.type&&"boolean_confirm"!=e.type&&"glide_duration"!=e.type&&"rich_text_label"!=e.type&&"MacroQuestion"!=e._class_name&&(e.isMandatory()||e.label&&""!=e.label.trim())}}],link:function(r,a,e){function o(){var e,t,i,a=r.controlElement;a&&(e=(e=r.field.messages)&&e.length,t=(t=a.attr("aria-describedby"))?t.split(" "):[],i="sp_formfield_"+r.field.name+"_fieldmsgs_container",e?-1===t.indexOf(i)&&(t.push(i),a.attr("aria-describedby",t.join(" "))):-1!==t.indexOf(i)&&(t.splice(t.indexOf(i),1),t.length?a.attr("aria-describedby",t.join(" ")):a.removeAttr("aria-describedby")))}r.$applyAsync(function(){var e;switch("boolean"!=r.field.type&&"glide_duration"!=r.field.type&&(r.labelElement=a.closest(".form-group").find(".field-label")),r.field.type){case"field_list":case"glide_list":case"reference":case"field_name":case"table_name":case"masked":return;case"multiple_choice":case"numericscale":e=a.find("input[type=radio]");break;default:(e=a.find("[name='"+r.field.name+"']"))[0]&&"string"===r.field.type&&e.attr("type","text")}function t(){r.hasFocus=!0,r.$emit("sp.spFormField.focus",a,e),r.$root.$$phase||r.$apply()}function i(){r.fieldValue(r.field.stagedValue),r.hasFocus=!1,r.$emit("sp.spFormField.blur",a,e),r.$broadcast("sp.spFormField.unFocus"),r.$root.$$phase||r.$apply()}e.on("focus",t).on("blur",i),r.$on("$destroy",function(){e.off("focus",t).off("blur",i)}),r.$emit("sp.spFormField.rendered",a,e)}),r.$on("select2.ready",function(e,t){e.stopPropagation();function i(e){t.select2("open")}t.on("focus",i),r.$on("$destroy",function(){t.off("focus",i)}),r.$emit("sp.spFormField.rendered",a,t)}),r.$on("sp.spFormField.rendered",function(e,t,i){var a;switch(r.field.type){case"glide_date":case"glide_date_time":case"multiple_choice":case"multi_two_lines":case"multi_small":case"numericscale":case"password":case"password2":case"textarea":case"integer":case"decimal":case"float":case"email":case"string":case"url":case"boolean":a=i;break;case"glide_list":a=i.parent().find(".select2-input");break;case"reference":case"choice":a=i.parent().find(".select2-focusser");break;default:return}r.controlElement=a,o()}),r.getGlideForm().$private.events.on("propertyChange",function(e,t,i,a){if(t==r.field.name){if("messages"===i&&o(),"isInvalid"===i){var l=r.field,n=r.controlElement;if(l&&n)switch(l.type){case"glide_list":case"reference":case"choice":n.attr("aria-invalid",l.isInvalid);default:;}}"readonly"===i&&r.syncFieldAriaLabel(r)}}),r.getFieldAriaHidden=function(e){return["boolean","choice","boolean_confirm","color","css","document_id","domain_id","schedule_date_time","integer_date","glide_duration","url","field_list","field_name","glide_date","glide_date_time","glide_list","glyphicon","xml","html_template","json","masked","multiple_choice","multi_two_lines","multi_small","numericscale","price","currency","password","password2","properties","reference","script_server","script","table_name","textarea","html","translated_html","user_image","widget","widget_value","integer","decimal","float","sc_multi_row","email","rich_text_label","sc_attachment"].indexOf(e.type)<0||-1<["email","url","boolean","string","textarea","sc_attachment","glide_date","glide_date_time","choice","html","translated_html","widget","ph_number","masked","multi_two_lines","reference"].indexOf(e.type)},r.getReferenceLabelContents=function(e){return l.getReferenceLabelContents(e)},r.syncFieldAriaLabel=l.syncFieldAriaLabel,r.getFieldAriaLabel=l.getFieldAriaLabel,r.accessible=i.isAccessibilityEnabled(),r.enhancePriceLabels=function(e){return e._pricing&&!0===e._pricing.enhance_price_labels},r.getCheckBoxPrice=function(e){return l.getPriceLabelForCheckbox(e)},r.setPriceLabelForChoice=function(i){angular.isDefined(i)&&!0===i._cat_variable&&r.enhancePriceLabels(i)&&l.getPriceLabelForChoices(i,r.formModel.recurring_price_frequency).then(function(e){if(e&&i.choices.length==e.length)for(var t=0;t<i.choices.length;t++)i.choices[t].priceLabel=e[t]},function(e){console.log(e)})},r.trustedHTML=function(e){return n.trustAsHtml(e)},"integer"==r.field.type||"decimal"==r.field.type||"float"==r.field.type?r.field.noFormat||(r.field.stagedValue=r.field.displayValue,r.setDefaultValue(r.field.name,r.field.displayValue,r.field.displayValue)):(r.field.encrypted&&(r.field.stagedValue=r.field.displayValue),r.field._cat_variable&&"choice"==r.field.type&&r.field._pricing&&!0===r.field._pricing.enhance_price_labels&&r.$on("sp.sc.refresh_label_choices",function(e,t){r.field.name==t.name&&(e.stopPropagation(),r.setPriceLabelForChoice(t))}),[{types:["choice","multiple_choice"],handler:function(e,t){r.setPriceLabelForChoice(t.field)}},{types:["boolean","boolean_confirm"],handler:function(e,t){var i=("true"===t.newValue.toString()||"1"===t.newValue.toString()).toString();i!==t.field.value&&(r.field.value=i)}},{types:["journal_input","journal"],handler:function(e,t){r.field.journalInputChanged=!0}}].some(function(e){if(-1<e.types.indexOf(r.field.type))return r.$on("field.change."+r.field.name,e.handler),!0}))}}}]); angular.module("sn.$sp").factory("spLabelHelper",["$q","$http","i18n","spUtil","glideFormFieldFactory",function(e,t,o,s,i){"use strict";function r(e){var c;if(e)return c="",i.isMandatory(e)&&e.mandatory_filled&&!e.mandatory_filled()&&(c=o.getMessage("Required"),c+=" - "),c+=e.label,e.displayValue?c+", "+e.displayValue:c}function a(e){var c=e.hint||"";return"reference"!==e.type&&!c&&e.readonly&&(c=e.label),e.readonly&&(c=o.getMessage("Read only - {0}").withValues([c])),"reference"===e.type&&(c+=" "+r(e)),c.trim()||void 0}function n(e){for(var c={},i=e.price||0,r=e.recurring_price||0,a=0;a<e.choices.length;a++){var t=0,s=0,t=(t=e.choices[a].price?e.choices[a].price:t,s=e.choices[a].recurring_price?e.choices[a].recurring_price:s,Math.abs(i-t)),s=Math.abs(r-s),n=t+"",_=s+"";e.choices[a].price_dc&&""!==e.choices[a].price_dc&&(n+="_"+e.choices[a].price_dc),e.choices[a].rprice_dc&&""!==e.choices[a].rprice_dc&&(_+="_"+e.choices[a].rprice_dc),c.hasOwnProperty(n)||(c[n]=t),c.hasOwnProperty(_)||(c[_]=s)}return c}function _(e,c,i){for(var r=[],a=e.price||0,t=e.recurring_price||0,s=0;s<e.choices.length;s++){var n,_=0,p=0,d=" [ ",h=a-(_=e.choices[s].price?e.choices[s].price:_),l=t-(p=e.choices[s].recurring_price?e.choices[s].recurring_price:p),_=Math.abs(a-_)+"",p=Math.abs(t-p)+"";if(e.choices[s].price_dc&&""!==e.choices[s].price_dc&&(_+="_"+e.choices[s].price_dc),e.choices[s].rprice_dc&&""!==e.choices[s].rprice_dc&&(p+="_"+e.choices[s].rprice_dc),0!=h&&0!=l&&c)n=[i[_]||"",i[p]||""],d+=(0<h&&0<l?o.getMessage("subtract {0} | subtract {1}"):0<h&&l<=0?o.getMessage("subtract {0} | add {1}"):h<=0&&0<l?o.getMessage("add {0} | subtract {1}"):o.getMessage("add {0} | add {1}")).withValues(n)+" "+c;else if(0!=h)n=[i[_]||""],d+=(0<h?o.getMessage("subtract {0}"):o.getMessage("add {0}")).withValues(n);else{if(0==l||!c){r.push("");continue}n=[i[p]||""],d+=(0<l?o.getMessage("subtract {0}"):o.getMessage("add {0}")).withValues(n)+" "+c}d+=" ]",r.push(d)}return r}return{getReferenceLabelContents:r,syncFieldAriaLabel:function(e){var c;e.labelElement&&((c=e.accessible&&e.field.hint?void 0:a(e.field))?e.labelElement.attr("aria-label",c):e.labelElement.removeAttr("aria-label"))},getFieldAriaLabel:a,getPriceLabelForCheckbox:function(e){var c;if(e&&e._pricing)return e._pricing.price_if_checked||e._pricing.rec_price_if_checked?(c=" [ ","true"==e.value?e._pricing.price_if_checked&&e._pricing.rec_price_if_checked?c+=o.getMessage("has added {0} | has added {1}").withValues([e._pricing.price_if_checked_display,e._pricing.rec_price_if_checked_display]):(e._pricing.price_if_checked||e._pricing.rec_price_if_checked)&&(c+=o.getMessage("has added {0}").withValues([e._pricing.price_if_checked_display||e._pricing.rec_price_if_checked_display])):e._pricing.price_if_checked&&e._pricing.rec_price_if_checked?c+=o.getMessage("will add {0} | will add {1}").withValues([e._pricing.price_if_checked_display,e._pricing.rec_price_if_checked_display]):(e._pricing.price_if_checked||e._pricing.rec_price_if_checked)&&(c+=o.getMessage("will add {0}").withValues([e._pricing.price_if_checked_display||e._pricing.rec_price_if_checked_display])),c+" ]"):""},getPriceLabelForChoices:function(c,i){return t.post(s.getURL("format_prices"),n(c)).then(function(e){return e.data}).then(function(e){return _(c,i,e)})},getPriceLabelsForChoiceFields:function(e,a){return t.post(s.getURL("format_prices"),(r={},e.forEach(function(e){if("choice"==e.type||"multiple_choice"==e.type){var c,i=n(e);for(c in i)r.hasOwnProperty(c)||(r[c]=i[c])}}),r)).then(function(e){return e.data}).then(function(r){e.forEach(function(e){if("choice"==e.type||"multiple_choice"==e.type){var c=_(e,a,r);if(c&&e.choices.length==c.length)for(var i=0;i<e.choices.length;i++)e.choices[i].priceLabel=c[i]}})});var r}}}]); angular.module("sn.$sp").factory("spAttachmentUpload",["spModal","$q","i18n","$rootScope",function(c,s,i,r){"use strict";return{uploadAttachments:function(e,n,t){var a,o;n&&n.length&&(g_has_encryption_context?(a="",o=1<n.length?i.getMessage("Encrypt attachments?"):i.getMessage("Encrypt attachment?"),c.open({title:o,shared:{files:n},backdrop:"static",keyboard:!0,animation:t,widget:"encryption-context-picker",buttons:[{label:i.getMessage("Upload Without Encrypting"),value:"no"},{label:i.getMessage("Upload and Encrypt"),primary:!0,value:"yes"}],onSubmit:function(){return a=this.shared.context.value,s(function(t,e){t({status:"ok"})})}}).then(function(t){"yes"==t.value?e.setEncryptionContext(a):e.setEncryptionContext("none"),e.onFileSelect(n)}).catch(function(){r.$broadcast("attachment.upload.stop")})):e.onFileSelect(n))}}}]); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}angular.module("sn.$sp").factory("spUtil",["$rootScope","$http","$location","snRecordWatcher","$q","$log","spPreference","spConf","$window","spNotificationEvents","$timeout",function(n,r,a,o,s,c,i,e,u,f,l){"use strict";return{localeMap:{pb:"pt-br",zh:"zh-cn",cs:"cs",nl:"nl",et:"et",fi:"fi",fr:"fr",fq:"fr-ca",de:"de",he:"he",hu:"hu",it:"it",ja:"ja",ko:"ko",nb:"nb",pl:"pl",pt:"pt",ru:"ru",es:"es",sv:"sv",th:"th",zt:"zh-cn",tr:"tr"},AMBIGUOUS_TIME_ZONES:{ACT:"Australia/Darwin",AET:"Australia/Sydney",AGT:"America/Argentina/Buenos_Aires",ART:"Africa/Cairo",AST:"America/Anchorage",BET:"America/Sao_Paulo",BST:"Asia/Dhaka",CAT:"Africa/Harare",CNT:"America/St_Johns",CST:"America/Chicago",CTT:"Asia/Shanghai",EAT:"Africa/Addis_Ababa",ECT:"Europe/Paris",IET:"America/Indiana/Indianapolis",IST:"Asia/Kolkata",JST:"Asia/Tokyo",MIT:"Pacific/Apia",NET:"Asia/Yerevan",NST:"Pacific/Auckland",PLT:"Asia/Karachi",PNT:"America/Phoenix",PRT:"America/Puerto_Rico",PST:"America/Los_Angeles",SST:"Pacific/Guadalcanal",VST:"Asia/Ho_Chi_Minh"},getMomentTimeZone:function(t){if(t)return null==moment.tz.zone(t)&&void 0!==this.AMBIGUOUS_TIME_ZONES[t]?this.AMBIGUOUS_TIME_ZONES[t]:t},isMobile:function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},format:function(t,e){for(var i,n=/{([^}]+)?}/g;i=new RegExp(n).exec(t);)t=t.replace(i[0],e[i[1]]);return t},update:function(t){var e=t;return this.get(e,e.data).then(function(t){return t?(angular.extend(e.data,t.data),t.data):{}})},refresh:function(t){var e=t;return this.get(e,null).then(function(t){return angular.extend(e.options,t.options),angular.extend(e.data,t.data),t})},get:function(i,t){var e=a.search();return r({method:"POST",url:this.getWidgetURL(i),params:e,headers:this.getHeaders(),data:t}).then(function(t){var e,t=t.data.result;return t&&t.invalid_token?(u.location.reload(),Promise.reject("Invalid Session")):(t&&t._server_time&&((e=i.widget)&&(e._server_time=t._server_time)),t&&t.$$uiNotification&&(i.$emit?i.$emit("$$uiNotification",t.$$uiNotification):n.$broadcast("$$uiNotification",t.$$uiNotification)),t)})},getHeaders:function(){return{Accept:"application/json","x-portal":n.portal_id,"X-UserToken":u.g_ck}},getWidgetURL:function(t){return"string"==typeof t?"/api/now/sp/widget/"+t:t.widget&&t.widget.rectangle_id?"/api/now/sp/rectangle/"+t.widget.rectangle_id:"/api/now/sp/widget/"+t.widget.sys_id},setBreadCrumb:function(t,e){t.$emit("sp.update.breadcrumbs",e)},setSearchPage:function(t){n.$emit("update.searchpage",t)},addTrivialMessage:function(t){n.$broadcast("$$uiNotification",{type:"trivial",message:t})},addInfoMessage:function(t){n.$broadcast("$$uiNotification",{type:"info",message:t})},addErrorMessage:function(t){n.$broadcast("$$uiNotification",{type:"error",message:t})},addWarningMessage:function(t){n.$broadcast("$$uiNotification",{type:"warning",message:t})},clearMessages:function(){n.$broadcast("$$uiNotification.dismiss")},getURL:function(t){t=null!==t&&"object"===_typeof(t)?$.param(t):$.param({sysparm_type:e.sysParamType,sysparm_ck:u.g_ck,type:t});return e.angularProcessor+"?"+t},getHost:function(){var t=a.protocol()+"://"+a.host();return a.port()&&(t+=":"+a.port()),t},scrollTo:function(t,e){n.$broadcast("$sp.scroll",{selector:t,time:e||1e3,offset:"header"})},getAccelerator:function(t){return u.ontouchstart?"":-1<u.navigator.userAgent.indexOf("Mac OS X")?"⌘ + "+t:"Ctrl + "+t},recordWatch:function(t,e,i,n){var r;e?((r=o.initChannel(e,i||"sys_id!=-1")).subscribe(n||function(){t.server.update()}),t.$on("$destroy",function(){r.unsubscribe()})):c.debug("spUtil.recordWatch called with no table")},createUid:function(t){return t.replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},setPreference:function(t,e){i.set(t,e)},getPreference:function(t,e){i.get(t,e)},parseAttributes:function(t){if("object"===_typeof(t))return t;for(var e,i=t&&t.length?t.split(","):[],n={},r=0;r<i.length;r++)0<i[r].length&&(n[(e=i[r].split("="))[0].trim()]=1<e.length?e[1].trim():"");return n},retrieveSessionMessages:function(){return r({method:"GET",url:"/api/now/sp/sessionuinotifications"}).then(function(t){f.addMessages(t.data.result.$$uiNotification)})},simulateFakeFormSubmitForAutoComplete:function(t,e){var i,n,r=s.defer();return this._hasAutocompleteFields(e=e||{})?(e=$("#"+t),i=$("<iframe>").appendTo(e),n=$("<input>").appendTo(e),i.attr("name","hidden_iframe").attr("style","display:none"),e.attr("method","post").attr("action","about:blank").attr("target","hidden_iframe"),n.attr("type","submit").attr("id","hidden_form_btn").attr("style","display:none"),setTimeout(function(){n.click(),setTimeout(function(){i.remove(),n.remove(),r.resolve()},1e3)},100)):r.resolve(),r.promise},setMobileBanner:function(t){var e,i;u.g_universal_link_flag&&(e=a.url(),i="/api/now/sg/ulink/banner?url="+encodeURIComponent(e),l(function(){t.bannerApiUrl=i},300))},_hasAutocompleteFields:function(t){for(var e in t)if(t.hasOwnProperty(e)){e=t[e];if(e.type&&-1<["email","url"].indexOf(e.type))return!0;if(e.attributes)if(void 0!==this.parseAttributes(e.attributes).autocomplete)return!0}return!1},normalizeNewLines:function(t){var e=t;return e=/\r|\n/.exec(t)?t.replace(/\r\n|\r(?!\n)|\n/g,"\r\n"):e},sanitizeHtml:function(t){return DOMPurify.sanitize(t,{ADD_TAGS:["noscript","fieldset","meta"],ADD_ATTR:["target","rel"],FORBID_TAGS:["style"]})}}}]); angular.module("sn.$sp").factory("spWidgetDiagnostics",["$rootScope","$http","spModal","i18n","$ocLazyLoad",function(e,t,a,s,n){"use strict";var o,d={widgetClasses:["widget-uncategorized","widget-oob","widget-cloned","widget-new","widget-customized"]},r=(d.i18nStrings={widget:s.getMessage("Widget"),cloned:s.getMessage("Cloned"),new_widget:s.getMessage("New"),customized:s.getMessage("Customized"),basesystem:s.getMessage("Base system"),color_codes:s.getMessage("Color codes"),compare_with_oob:s.getMessage("Compare with Base system"),compare_with_prev:s.getMessage("Compare with previous version"),widget_diagnostics:s.getMessage("Widget Diagnostics"),open_in_platform:s.getMessage("Open widget in platform"),open_diagnostics_info:s.getMessage("Open diagnostics information")},d.widgetMsgs=["Uncategorized",d.i18nStrings.basesystem,d.i18nStrings.cloned,d.i18nStrings.new_widget,d.i18nStrings.customized],$("body")),c='<button class="fa fa-info-circle legend-icon" data-original-title="'+d.i18nStrings.color_codes+'" data-toggle="popover" data-trigger="focus" data-placement="left"></button><div class="widget-legend-wrapper popper-content hide" id="widget-legend-wrapper"><div class="widget-legend-info" tabindex="-1"><div><span class="legend-dot-yellow"></span><span>'+d.i18nStrings.cloned+'</span></div><div><span class="legend-dot-blue"></span><span>'+d.i18nStrings.new_widget+'</span></div><div><span class="legend-dot-red"></span><span>'+d.i18nStrings.customized+'</span></div><div><span class="legend-dot-green"></span><span>'+d.i18nStrings.basesystem+"</span></div></div></div>",g='<button class="fa fa-info-circle widget-diagnostics-info"></button>';function i(){var i,a;r.attr("data-widget-diagnostics-mode","true"),i=[],a=[],$("[widget='widget']").each(function(e,t){var t=angular.element(t).scope().widget,s={},n={},s=(s.widgetName=t.name,s.widgetId=t.sys_id,n.widgetInfo=s,n.instanceId=t.rectangle_id||t.sys_id,t.rectangle_id?n.elementId="x"+t.rectangle_id:(n.elementId="v"+t.sys_id,n.isEmbeddedWidget=!0),t.rectangle_id||t.sys_id);-1==a.join("####").indexOf(s)&&(a.push(s),i.push(n))}),d.instances=i,d.instanceArr=a,t({url:"/xmlhttp.do",method:"POST",params:{sysparm_processor:"SPDiagnosticsDriver",sysparm_name:"categorize",sysparm_instances_array:JSON.stringify(d.instanceArr)},dataType:"json"}).then(function(e){for(var a,e=(new DOMParser).parseFromString(e.data,"text/xml").getElementsByTagName("xml")[0].getAttribute("answer"),t=JSON.parse(e),s=Object.keys(t),n=s.length,i=0;i<n;i++){var o=d.instances.filter(function(e){return e.instanceId===s[i]});$.extend(!0,o[0],t[s[i]])}a=d.i18nStrings.open_diagnostics_info,d.instances.forEach(function(e){var t,s=e.widgetCustDetails,n=s.category,i=$($.parseHTML(g)),s=(i.attr("aria-label",s.name.concat(" ").concat(d.widgetMsgs[n]).concat(" ").concat(d.i18nStrings.widget).concat("-").concat(a)),e.elementId);e.isEmbeddedWidget?(t=document.querySelectorAll("[class*="+s+"]"),$(t).each(function(e,t){var s=i.clone();0==$(t).innerHeight()&&s.addClass("widget-is-empty"),s.insertBefore($(t).children()[0])})):(0==(t=$("#"+s)).innerHeight()&&i.addClass("widget-is-empty"),i.insertBefore(t.contents()[0])),$(t).addClass(d.widgetClasses[n])}),r.append($.parseHTML(c)),$('[data-toggle="popover"]').popover({html:!0,content:function(){return $("#widget-legend-wrapper").html()}})}),$(document).on("click",".widget-diagnostics-info",l),o=e.$on("$locationChangeStart",function(e,t,s){t!==s&&d.isEnabled&&p()}),d.isEnabled=!0}function l(e){e.stopPropagation(),e.stopImmediatePropagation();var e=$(e.target).parent(),t=(t=e.attr("id")||e.attr("class")).split(" ")[0],e=d.instances.filter(function(e){return e.elementId===t}),n=e[0].widgetCustDetails,i=4==n.category&&!!n.isRecordCustomized,s=i?d.i18nStrings.compare_with_oob:d.i18nStrings.open_in_platform,e={title:d.i18nStrings.widget_diagnostics,widget:"widget-diagnostics",widgetInput:e[0],buttons:[{label:s,primary:!0,class:"compare-button compare-button-oob"}]};i&&(s={label:d.i18nStrings.compare_with_prev,primary:!0,compare:"previous",class:"compare-button compare-button-prev"},e.buttons.unshift(s)),a.open(e),setTimeout(function(){var e=angular.element(document.querySelectorAll(".compare-button"));e.unbind("click"),e.bind("click",function(e){var t,s,e=$(e.target).hasClass("compare-button-prev"),e=i?(t=e?n.currentSysId:n.baselineSysId,s=e?n.prevSysId:n.currentSysId,e&&(e=t,t=s,s=e),"merge_form_select_version_ro.do?sysparm_hide_back_btn=true&sysparm_version1="+t+"&sysparm_version2="+s):"sp_widget.do?sys_id="+n.widSysId;window.open(e,"_blank")})},1e3)}function p(){var n=d.widgetClasses.join(" ");r.removeAttr("data-widget-diagnostics-mode"),$(document).off("click",".widget-diagnostics-info"),d.instances.forEach(function(e){var t,s=e.elementId;e.isEmbeddedWidget?(t=document.querySelectorAll("[class*="+s+"]"),$(t).each(function(e,t){t=$(t);t.removeClass(n),t.find(".widget-diagnostics-info").remove()})):((t=$("#"+s)).removeClass(n),t.find(".widget-diagnostics-info").remove()),$("#"+$(".legend-icon").attr("aria-describedby")).remove(),$(".legend-icon").remove(),$("#widget-legend-wrapper").remove()}),o(),d.isEnabled=!1}return{diagnostics:d,enableDiagnostics:function(){var e;d.depsLoaded?i():(e=g_portal_isrtl?"/styles/rtl/sp-diagnostics-tool.css":"/styles/sp-diagnostics-tool.css",n.load([e]).finally(function(){d.depsLoaded=!0,i()}))},disableDiagnostics:p}}]); angular.module("sn.$sp").factory("spScUtil",["$http","$q","$log","$window","spSCConf","$httpParamSerializer","spUtil","i18n",function(_,d,r,t,a,c,s,n){"use strict";var i="/api/sn_sc/v1/servicecatalog/",p="/api/now/table/",u="angular.do";function o(e,t){for(var r in t)e[r]=t[r]}function l(e){var t;return r.info("REST Failure"),r.info(e),(t=e).data.result&&t.data.result.errMsg||s.addErrorMessage(n.getMessage("Something went wrong and your request could not be submitted. Please contact your system administrator")),d.reject(e)}function e(e){for(var t in e)if(e.hasOwnProperty(t)&&!1===e[t].isServerValidationDone)return!1;return!0}function m(){var e=$.param({sysparm_type:"get_user",sysparm_ck:t.g_ck});return _.post(u+"?"+e)}return{getCart:function(){return _.get(i+"cart")},submitProducer:function(e,t,r,a){return o(t={variables:t,sysparm_item_guid:r,get_portal_messages:"true",sysparm_no_validation:"true"},a),_.post(i+"items/"+e+"/submit_producer",t).then(null,l)},submitStdChgProducer:function(e,t,r,a,s,n,i,u){var o,l;return u=u||"standard",t?((t={sys_id:"-1",id:"form",table:"change_request"}).query=i?"chg_model="+i+"^std_change_producer_version="+r:"type="+u+"^std_change_producer_version="+r,i=n&&n.target_query?n.target_query:"",u=n&&n.sysparm_parent_sys_id?n.sysparm_parent_sys_id:"",l={},(r=i)&&r.match(/=/g)&&r.replaceAll("^^","&hat;").split("^").forEach(function(e){!e.match(/=/g)||(e=e.split("="))[0]&&(l[e[0]]=e.splice(1).join("=").replaceAll("&hat;","^^"))}),!l.hasOwnProperty("parent")&&u&&(t.query+="^parent="+u),i&&(t.query+="^"+i),r=s+"?"+c(t),(u={}).redirect_portal_url=r,u.redirect_url=r,u.table="change_request",o=d.resolve({data:{result:u}})):(o=this.submitProducer(e,{},a,null)).then(function(e){n&&n.target_query&&(r=n.target_query.split("^"),t={},r.forEach(function(e){e=e.split("="),t[e[0]]=e[1]}));var t,r=e.data.result.table,e=e.data.result.sys_id;r&&e&&t&&_.patch(p+r+"/"+e,t)}),o},orderNow:function(e,t,r,a,s,n){return o(t={sysparm_quantity:t,variables:r,sysparm_item_guid:a,get_portal_messages:"true",sysparm_no_validation:"true",sysparm_also_request_for:n},s),_.post(i+"items/"+e+"/order_now",t).then(null,l)},addToCart:function(e,t,r,a,s){return _.post(i+"items/"+e+"/add_to_cart",{sysparm_quantity:t,variables:r,sysparm_item_guid:a,sysparm_no_validation:"true",sysparm_also_request_for:s}).then(null,l)},updateCart:function(e,t,r,a){return _.put(i+"cart/"+e,{sysparm_quantity:t,variables:r,sysparm_no_validation:"true",sysparm_id:a}).then(null,l)},addToWishlist:function(e,t,r,a){return _.post(i+"items/"+e+"/add_to_wishlist",{sysparm_quantity:t,variables:r,sysparm_item_guid:a}).then(null,l)},orderWishlistedItem:function(e,t,r,a,s){return o(t={sysparm_quantity:t,variables:r,saved_item_id:a,get_portal_messages:"true",sysparm_no_validation:"true"},s),_.post(i+"items/"+e+"/order_now",t).then(null,l)},addWishlistedItemToCart:function(e,t,r,a){return _.post(i+"items/"+e+"/add_to_cart",{sysparm_quantity:t,variables:r,saved_item_id:a,sysparm_no_validation:"true"}).then(null,l)},submitWishlistedProducer:function(e,t,r,a){return o(t={variables:t,sysparm_item_guid:r,get_portal_messages:"true",saved_item_id:r,sysparm_no_validation:"true"},a),_.post(i+"items/"+e+"/submit_producer",t).then(null,l)},getDisplayValueForMultiRowSet:function(e,t){var r={};return r.sysparm_value=t,_.post(i+"variables/"+e+"/display_value",r).then(null,l)},isCatalogVariable:function(e){return""+e[a._CAT_VARIABLE]=="true"},queryRecord:function(e,t){return _.get(p+e+"/"+t)},queryMultipleRecords:function(e,t){var r,a="";for(r in t)a+=r+"="+t[r]+"&";return _.get(p+e+"?"+a)},isRegexDone:e,validateRegex:function(e,t){var r={};return r.sysparm_value=t,_.post(i+"variables/"+e+"/validate_regex",r).then(null,l)},validateRequestedForAccess:function(e,t){return _.get(i+"items/"+e+"/delegation/"+t).then(function(e){if(!e.data.result.result)return d.reject(e)})},validateDelegationForMultipleUsers:function(e,t){return _.post(i+"items/"+e+"/get_invalid_delegated_users",{sysparm_also_request_for:t}).then(function(e){if(0<e.data.result.invalidUsers.length)return d.reject(e)})},isServerValidationDone:e,getPreference:function(t,r){m().then(function(e){"guest"!==e.data.userName?s.getPreference(t,r):r("")})},setPreference:function(t,r){m().then(function(e){"guest"!==e.data.userName&&s.setPreference(t,r)})},saveVariables:function(e,t,r){_.put(i+"variables/"+e+"/"+t,r).then(null,l)},getDynamicValue:function(e,t,r){return _.post(i+"variables/"+t+"/dynamic_value",{sysparm_dynamic_target_fields:r.toString(),sysparm_dynamic_record_id:e}).then(function(e){return e},l)}}}]); angular.module("sn.$sp").directive("spCatItem",["$http","$rootScope","i18n","spModal","spUtil",function(i,e,s,p,o){return{restrict:"E",link:function(e,r,t){e.item=e.$eval(t.item)},controller:["$scope",function(a){var n,c=this;c.priceHasChanged=function(e,r){var t,i;return!!r.force_update||(t=!1,(i=r.recurring_price+e.recurring_price)!=e.recurring_total&&(t=!0,e.recurring_total=i),(i=r.price+e.price)!=e.price_total&&(t=!0,e.price_total=r.price+e.price),t)},c.getItemId=function(){return a.item.sys_id},c.formatPrice=function(e){var e=e.answer,r=a.item;r.price=r.recurring_price="",r.price=e.price,r.price_subtotal=e.price_subtotal,r.recurring_price=e.recurring_price,r.recurring_price_subtotal=e.recurring_price_subtotal,r.price_display=e.price_display,r.recurring_price_display=e.recurring_price_display,r.price_subtotal_display=e.price_subtotal_display,r.recurring_price_subtotal_display=e.recurring_price_subtotal_display},a.$on("spModel.gForm.initialized",function(e,r){var t,i;r.getSysId()==c.getItemId()&&(n=r,t=s.getMessage("Attachment(s) are not added"),i=s.getMessage("Please wait, attachment deletion in progress"),n.$private.events.on("onSubmit",function(){if(a.item.attachment_action_in_progress)return!1!==o.addErrorMessage(i)||p.alert(i),!1;if(a.item.mandatory_attachment&&!(a.item.attachment_submitted||a.attachments&&0<a.attachments.length))return!1!==o.addErrorMessage(t)||p.alert(t),!1;return!0}))}),a.$on("variable.price.change",function(e,r){var t=a.item._pricing;c.priceHasChanged(t,r)&&n&&((t={}).sys_id=n.$private.options("itemSysId"),t.sysparm_id=t.sys_id,t.variable_sequence1=n.$private.options("getFieldSequence")(),(r=n.$private.options("getFieldParams"))&&angular.extend(t,r()),r={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},transformRequest:function(e){for(var r in e)0==r.indexOf("IO")&&Array.isArray(e[r])&&(e[r]=JSON.stringify(e[r]));return $.param(e)}},i.post(o.getURL("update_price"),t,r).success(c.formatPrice))})}]}}]); angular.module("sn.$sp").directive("spChoiceList",["$timeout","spUtil","$http","i18n","select2EventBroker","spAriaFocusManager",function(g,_,y,V,k,w){var O=" ";return{template:'<select name="{{::field.name}}" id="sp_formfield_{{::field.name}}" ng-model="fieldValue" ng-model-options="{getterSetter: true}" sn-select-width="auto" ng-disabled="field.isReadonly()" ng-options="c.value as getLabel(c) for c in field.choices track by getVal(c.value)"></select>',restrict:"E",replace:!0,require:"ngModel",scope:{field:"=",getGlideForm:"&glideForm",snOnBlur:"&",snOptions:"=?",setDefaultValue:"&defaultValueSetter"},link:function(i,r,e,s){i.getVal=function(e){return e},i.getLabel=function(e){return e.priceLabel?e.label.concat(e.priceLabel):e.label};var a,c=i.getGlideForm(),o=i.field,u=!1;function d(){var e={},e=(e.table=c.getTableName(),e.field=o.name,e.sysparm_dependent_value=o.dependentValue,e.sysparm_type="choice_list_data",_.getURL(e));y.get(e).success(function(e){o.choices=[],c.$private.clearOptionStack(o.name),angular.forEach(e.items,function(e){o.choices.push(e)}),t()})}function f(a){var t;return a.choices.some(function(e){if(e.value===a.value)return t=e,!0}),t||""===a.value||(t={value:a.value,label:a.displayValue||a.value},c.addOption(a.name,t.value,t.label)),t}function t(){var a=!1;if(angular.forEach(o.choices,function(e){o.value==e.value&&(a=!0)}),!a&&o.value&&i.bEnsureChoice&&o.dependentField)l=f(o),c.setValue(o.name,l.value,l.label),d();else{if(!a&&0<o.choices.length){for(var e=o.choices[0].value,t=o.choices[0].label,n=0;n<o.choices.length;++n){var l=o.choices[n];if(o.default_value===l.value){e=l.value,t=l.label;break}}i.setDefaultValue({fieldName:o.name,fieldInternalValue:e,fieldDisplayValue:t})}r.select2("val",s.$viewValue),u&&r.select2("close").select2("open")}}function n(){var e={},a=(e.qualifier=o.reference_qual,e.table=o.lookup_table,e.o=o.lookup_label||o.lookup_value,e.sysparm_include_variables=!0,e.variable_ids=o.sys_id,c.$private.options("getFieldSequence")),a=(a&&(e.variable_sequence1=a()),c.$private.options("itemSysId")),a=(e.sysparm_id=a,e.sysparm_query_refs=!1,c.$private.options("getFieldParams")),a=(a&&angular.extend(e,a()),e.sysparm_type="sp_ref_list_data",_.getURL({sysparm_type:"sp_ref_list_data"}));y.post(a,e).then(function(e){e.data&&(o.choices=[],c.$private.clearOptionStack(o.name),angular.forEach(e.data.items,function(e){e.label=e.$$displayValue,e.value=e.sys_id,o.choices.push(e)}),0===o.choices.length?c.clearValue(i.field.name):t(),i.$emit("sp.sc.refresh_label_choices",o))})}function l(){var e=[];return e=o&&o.attributes&&-1<o.attributes.indexOf("ref_qual_elements")?_.parseAttributes(o.attributes).ref_qual_elements.split(";"):e}function p(){g.cancel(a),a=g(function(){o.choices=function(e,a){if(!a||0==a.length)return e;var s=angular.copy(e);s=s||[];return a.forEach(function(e){switch(e.operation){case"add":for(var a in s)if(s[a].label==e.label)return;var t={label:e.label,value:e.value};void 0===e.index?s.push(t):s.splice(e.index,0,t);break;case"remove":for(var n=String(e.value),l=0,i=s.length;l<i;l++){var r=String(s[l].value);if(r===n){s.splice(l,1);break}}break;case"clear":s=[]}}),s}(o.choices,o.optionStack),i.bEnsureChoice=!0,t(),i.bEnsureChoice=!1},35)}i.bEnsureChoice=!1,i.fieldValue=function(){return o.value},g_choices_show_missing&&o.value&&(o.choices.some(function(e){return o.value==e.value})||f(o)),c.$private.events.on("change",function(e,a,t){e==o.name?t!==a&&g_choices_show_missing&&f(o):e==o.dependentField?(o.dependentValue=t,d()):void 0!==o.variable_name&&o.reference_qual&&(a=e,t=l(),-1!=o.reference_qual.indexOf(a)||-1!=t.indexOf(a))&&n(),r.parent().find(".select2-focusser").attr("aria-label",b()),r.parent().find(".select2-focusser").attr("aria-required",o.isMandatory())}),void 0!==o.variable_name&&o.reference_qual&&function(){for(var e=l(),a=0;a<e.length;a++){var t=e[a];if(t){t=c.$private.getField(t);if(t&&t.value!=t.originalValue)return 1}}return}()&&n(),c.$private.events.on("propertyChange",function(e,a,t){a==o.name&&"optionStack"==t&&p()}),i.$watch("field.optionStack",function(){o.optionStack&&p()}),p();var v=jQuery("<span class='sr-only' />");function h(){var e=O;return o.placeholder&&(e=o.placeholder),e=i.snOptions&&i.snOptions.placeholder?i.snOptions.placeholder:e}function b(){var e="";return e+=o.label,(o.displayValue||o.value)&&(e+=" "+(o.displayValue||o.value)),e}v.text(V.getMessage("Lookup using list")),angular.isFunction(r.select2)&&(m={i18n:V,allowClear:!1,placeholder:h(),width:"100%"},r.select2(m).focus(function(){r.select2("focus")}),$(r).on("select2.disabled.toggle",function(e){w.enableFocusOnDisabledSelect2(e)}),r.bind("change select2-removed",function(e){var a;e.stopImmediatePropagation(),e.added?(a=e.added,c.setValue(o.name,a.id,a.text)):e.removed&&c.clearValue(i.field.name)}),r.parent().find(".select2-input").attr("autocomplete","off"),o.value||h()!==O||r.parent().find(".select2-chosen").append(v),O!==h()&&r.parent().find(".select2-input").attr("placeholder",h()),r.bind("select2-blur",function(){i.snOnBlur(),c.setValue(o.name,o.value,o.displayValue)}),r.bind("select2-opening",function(){k.publishSelect2Opening()}),r.bind("select2-open",function(){" "===r.data("select2").search.val()&&r.select2("search",""),u=!0,r.parent().find(".select2-focusser").attr("aria-expanded",u)}),r.bind("select2-close",function(){u=!1,r.parent().find(".select2-focusser").attr("aria-expanded",u)}),s.$render=function(){""!==s.$viewValue&&null!==s.$viewValue||t(),r.select2("val",s.$viewValue)}),i.$evalAsync(function(){var e=r.parent().find(".select2-focusser"),a=r.parent().find("ul.select2-results"),e=(e.removeAttr("aria-labelledby"),e.attr("aria-label",b()),e.attr("aria-required",o.isMandatory()),e.attr("aria-expanded",u),e.attr("aria-owns",a.attr("id")),a.attr("aria-label",o.label),r.parent().find(".select2-container"));e&&0<e.length&&e.attr("id",(e.attr("id")||"s2id_sp_formfield_{{::field.name}}").replace(/{{::field.name}}/,o.name))});var m=r.parent().find(".select2-choice"),v=(m.attr("aria-hidden",!0),m.addClass("form-control"),r.parent().find(".select2-offscreen").text(o.hint?o.label+" "+o.hint:o.label),r.parent().find(".select2-focusser").on("keydown",function(e){40!==e.which&&38!==e.which||r.select2("open")}),r.parent().find(".select2-focusser")[0]);v&&(m=$._data(v,"events").keydown,$.isArray(m)&&m.unshift(m.pop()))}}}]); angular.module("sn.$sp").directive("spRadioOption",["spUtil","$http",function(m,y){var t="ref_qual_elements";function g(e){var a=[];return a=e&&e.attributes&&-1<e.attributes.indexOf("ref_qual_elements")?m.parseAttributes(e.attributes)[t].split(";"):a}return{template:'<ng-include src="getTemplateUrl()" />',restrict:"E",scope:{field:"=",getGlideForm:"&glideForm",catItemSysId:"=?"},link:function(t,a,e){var n=t.getGlideForm(),i=t.field,r=[],s={};function l(){var a;return Array.isArray(i.choices)&&i.choices.some(function(e){if(i.value==e.value)return a=e}),g_choices_show_missing&&!a&&""!==i.value&&(a={value:i.value,label:i.displayValue||i.value},i.choices.push(a)),a}function u(){var e={},e=(e.table=n.getTableName(),e.field=i.name,e.sysparm_dependent_value=i.dependentValue,e.sysparm_type="choice_list_data",m.getURL(e));y.get(e).success(function(e){i.choices=[],angular.forEach(e.items,function(e){i.choices.push(e)}),c()})}function c(){var a=!1;if(angular.forEach(i.choices,function(e){i.value==e.value&&(a=!0)}),!a&&i.value&&i.dependentField){var e=l();if(e)return n.setValue(i.name,e.value,e.label),void u()}!a&&0<i.choices.length&&n.setValue(i.name,i.choices[0].value,i.choices[0].label)}function o(){var e={},a=(e.qualifier=i.reference_qual,e.table=i.lookup_table,e.sysparm_include_variables=!0,e.variable_ids=i.sys_id,n.$private.options("getFieldSequence")),a=(a&&(e.variable_sequence1=a()),n.$private.options("itemSysId")),a=(e.sysparm_id=a,e.sysparm_query_refs=!1,n.$private.options("getFieldParams")),a=(a&&angular.extend(e,a()),e.sysparm_type="sp_ref_list_data",m.getURL({sysparm_type:"sp_ref_list_data"}));y.post(a,e).then(function(e){e.data&&(i.choices=[],angular.forEach(e.data.items,function(e){e.label=e.$$displayValue,e.value=e.sys_id,i.choices.push(e)}),0===i.choices.length?n.clearValue(t.field.name):c())})}function d(){return null==r?null:r[0]}function f(){return null==r?null:r[r.length-1]}function h(){var e,a=!1;switch(event.keyCode){case keyCode.SPACE:case keyCode.RETURN:v(this),a=!0;break;case keyCode.UP:case keyCode.LEFT:(e=this).$$hashKey===d().$$hashKey?v(f()):0<(e=_(e))&&v(r[e-1]),a=!0;break;case keyCode.DOWN:case keyCode.RIGHT:(e=this).$$hashKey===f().$$hashKey?v(d()):-1<(e=_(e))&&v(r[e+1]),a=!0}a&&(event.stopPropagation(),event.preventDefault())}function v(e){null!==e&&(e.click(),e.focus())}function p(){for(var e=0;e<r.length;e++)r[e].setAttribute("aria-checked",!1),r[e].setAttribute("tabindex",-1);this.setAttribute("aria-checked",!0),this.setAttribute("tabindex",0)}function _(t){var n=-1;return r.some(function(e,a){if(e.$$hashKey===t.$$hashKey)return n=a,!0}),n}keyCode=Object.freeze({RETURN:13,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40}),t.onButtonLoad=function(){var e=a.find('input[type="radio"]').last();r.push(e[0]),e.on("keydown",h),e.on("click",p),this&&this.c&&angular.isDefined(this.c.value)&&(s[this.c.value]=e[0])},t.getTemplateUrl=function(){return"across"===i.choice_direction||"numericscale"==i.type?"sp_element_radio_across.xml":"sp_element_radio_down.xml"},t.fieldValue=function(e,a){return angular.isDefined(e)&&(n.setValue(i.name,e,a),e!==i.value&&s.hasOwnProperty(i.value)&&v(s[i.value])),i.value},i.choices.some(function(e){return i.value==e.value})||l(),n.$private.events.on("change",function(e,a,t){e==i.name&&t!==a?l():e==i.dependentField?(i.dependentValue=t,u()):void 0!==i.variable_name&&i.reference_qual&&(a=e,e=g(t=i),-1!=t.reference_qual.indexOf(a)||-1!=e.indexOf(a))&&o()}),void 0!==i.variable_name&&i.reference_qual&&function(){for(var e=g(i),a=0;a<e.length;a++){var t=e[a];if(t){t=n.$private.getField(t);if(t&&t.value!=t.originalValue)return 1}}return}()&&o()}}}]); angular.module("sn.$sp").directive("spCLink",["i18n",function(s){return{restrict:"E",scope:{rectangle:"=",target:"@",table:"=",id:"=",query:"="},replace:!0,template:'<span class="sp-convenience-link-wrapper" ng-if="display()"><a href="{{href}}" target="_blank" class="sp-convenience-link">{{getText()}}</a></span>',link:function(a,e,t,r){a.display=function(){return a.href&&window.NOW.sp_debug};var i,n="";a.target&&("form"==(i=a.target)&&(n=a.table+".do?sys_id="+a.id),"kb_article"==i&&(n="kb_view.do?sysparm_article="+a.id),"sc_cat_item"==i&&(n="com.glideapp.servicecatalog_cat_item_view.do?sysparm_id="+a.id+"&sysparm_catalog_view=catalog_default"),"list"==i&&(a.$watch(function(){return a.table+" | "+a.query},function(e,t){e!=t&&(a.href=a.table+"_list.do?sysparm_query="+a.query)}),n=a.table+"_list.do?sysparm_query="+a.query)),a.href=n,a.getText=function(){return s.getMessage("Open")}}}}]); angular.module("sn.$sp").directive("spDatePicker",["spConf","$rootScope","$document","$window","spAriaUtil","i18n","spDatePickerUtil","select2EventBroker","spUtil",function(e,i,v,t,y,D,M,W,r){var T,P,o,x=g_user_date_format||e.SYS_DATE_FORMAT,C=g_user_date_time_format||e.SYS_TIME_FORMAT,p={ArrowLeft:{date:"decrementDays",time:null},Left:{date:"decrementDays",time:null},ArrowRight:{date:"incrementDays",time:null},Right:{date:"incrementDays",time:null},ArrowUp:{date:"decrementWeeks",time:"incrementMinutes"},Up:{date:"decrementWeeks",time:"incrementMinutes"},ArrowDown:{date:"incrementWeeks",time:"decrementMinutes"},Down:{date:"incrementWeeks",time:"decrementMinutes"},AltUp:"toggleDateTimePicker",AltArrowUp:"toggleDateTimePicker",AltDown:"toggleDateTimePicker",AltArrowDown:"toggleDateTimePicker",PageUp:{date:"decrementMonths",time:"incrementHours"},PageDown:{date:"incrementMonths",time:"decrementHours"},AltPageUp:{date:"decrementYears",time:null},AltPageDown:{date:"incrementYears",time:null},Home:{date:"startOfCurrentMonth",time:null},End:{date:"endOfCurrentMonth",time:null}},U="toggleDateTimePicker",m="decrementMinutes",A=!1,f=".datepicker-days .day.active div",h=".datepicker-months span.active",w=".datepicker-months .month",a=".datepicker-years span.active",H=[],d=moment.weekdays();D.getMessages(["Date in format","Use format","Entered date not valid. Enter date in format","Show Calendar for {0}","Toggle date time picker","Previous month","Previous year","Previous decade","Next month","Next year","Next decade","Toggle month","Toggle year","Toggle decade","increment Minutes","increment Hours","decrement Minutes","decrement Hours","{0} hours. hour picker","{0} minutes. minute picker","{0} minutes","{0} hours","{0} is selected","Date in format {0}","YYYY-MM-DD","MM/DD/YY","MM/DD/YYYY","MM-DD-YYYY","DD/MM/YYYY","DD-MM-YYYY","DD-MMM-YY","DD.MM.YYYY","HH:mm:ss","HH.mm.ss","hh:mm:ss A","hh.mm.ss A"],function(e){H=e});var Y=!(-1<t.navigator.userAgent.indexOf("Chrome"))&&-1<t.navigator.userAgent.indexOf("Safari"),S=Y?"polite":"off",I=t.NOW.sp.enableDateTranslation;function k(e){var t=M.calendarShowType(e),a=e.widget.find(".datepicker-"+t+" [aria-disabled='true']"),e=e.widget.find(".datepicker-"+t+" .disabled");a.length&&a.removeAttr("aria-disabled"),e.length&&e.attr("aria-disabled","true")}function j(e){b(e),L(t=e),E(t);for(var t,a=t.widget.find(".datepicker-days .dow"),i=0;i<d.length;i++)a[i].setAttribute("aria-label",d[i]);{var n,n,o,n;t.options.pickTime&&(u(t),s(n=t,"increment Minutes"),s(n,"decrement Minutes"),s(n,"increment Hours"),s(n,"decrement Hours"),o=(n=t).widget.find(".timepicker .minute"),n=n.widget.find(".timepicker .hour"),$(o).each(function(e,t){$(t).attr({tabindex:"0",role:"button","aria-label":D.format(H["{0} minutes"],parseInt($(t).text()))})}),$(n).each(function(e,t){$(t).attr({tabindex:"0",role:"button","aria-label":D.format(H["{0} hours"],parseInt($(t).text()))})}),c(t,"both"))}F(e,e.date,"open"),o=e,n=window.matchMedia("(max-width: 767px)"),o.widget[0].style.height="",t=o.widget.find(".accordion-toggle a"),n.matches&&!r.isMobile()?(o.widget[0].classList.add("reposition"),n=o.widget.outerHeight(),o.widget[0].style.top=(window.pageYOffset+n/11)/window.innerHeight*100+"%",o.widget[0].style[g_portal_isrtl?"right":"left"]=(window.innerWidth/2-o.widget.outerWidth()/2)/window.innerWidth*100+"%",window.innerHeight<n&&o.element.parents().hasClass("modal-body")&&(o.widget[0].style.height=.8*window.innerHeight+"px",o.widget[0].style.overflowY="auto"),t.attr("data-placement","top")):(o.widget[0].classList.remove("reposition"),t.attr("data-placement","left")),k(e),"date"==M.datePickerShowType(e)&&(e.options.pickTime?e.widget.find(".picker-switch.accordion-toggle .flex-row"):e.widget.find(".datepicker").next()).removeClass("cancelok-hidden"),e.element.find("button").addClass("calendarbutton-pressed")}function b(e){var t=e.widget.find(".datepicker-days th.picker-switch"),a=t.text().split(" ");0===moment(e.viewDate).format("LL").indexOf(a[1])&&t.text(a.reverse().join(" "))}function K(e,t){t.stopPropagation(),t.preventDefault()}function N(e,t,a){var i=u(e),n=$(i).data("bs.tooltip"),o=(n.$tip.attr("style",""),a&&l(i,a+" "+i.getAttribute("aria-label")),i.blur(),n.disable(),e.widget.find("ul > li[aria-expanded=true]"));o.on("shown.bs.collapse.sp",function(e){n.enable(),i.focus(),n.show(),o.off("shown.bs.collapse.sp")})}function R(e,t){var a=M.calendarShowType(e),i="years"==a?"decade":"months"==a?"year":"month",i="years"==a?e.widget.find(".datepicker-years .picker-switch").html():e.widget.find(".datepicker-"+a+" .picker-switch").html()+". "+H["Toggle "+i];$(t.target).is(".day div,.day")?setTimeout(function(){F(e,e.date,"click")},200):$(t.target).is(w)?((e.options.pickTime?e.widget.find(".picker-switch.accordion-toggle .flex-row"):e.widget.find(".datepicker").next()).removeClass("cancelok-hidden"),e.widget.find(".datepicker-"+a+" .picker-switch").attr("aria-label",i),L(e),k(e)):$(t.target).hasClass("picker-switch")?((e.options.pickTime?e.widget.find(".picker-switch.accordion-toggle .flex-row"):e.widget.find(".datepicker").next()).addClass("cancelok-hidden"),e.widget.find(".datepicker-"+a+" .picker-switch").attr("aria-label",i),k(e)):$(t.target).is(".prev,.next,.year")&&(e.widget.find(".datepicker-"+a+" .picker-switch").attr("aria-label",i),t=e.widget.find(".datepicker-"+a+" .picker-switch").html(),y.sendLiveMessage(t,"status"),k(e)),E(e),L(e),b(e)}function c(e,t){switch(t){case"hour":case"both":var a=e.widget.find('.timepicker [data-action="showHours"]'),i=D.format(H["{0} hours. hour picker"],parseInt(a.text()));if(a.attr({tabindex:"0",role:"button","aria-label":i}),"hour"==t)break;case"minute":a=e.widget.find('.timepicker [data-action="showMinutes"]'),i=D.format(H["{0} minutes. minute picker"],parseInt(a.text()));a.attr({tabindex:"0",role:"button","aria-label":i})}}function L(n){var e=n.widget.find(".datepicker .day"),t=n.widget.find(".datepicker .month"),o=moment(n.date);$(e).each(function(e,t){var a=o.clone(),i=$(t).find("div")[0],t=($(t).hasClass("old")?a.subtract("1","month"):$(t).hasClass("new")&&a.add("1","month"),a.date(i.innerHTML),M.formattedDate(n,a));i.setAttribute("aria-label",t)}),$(t).each(function(e,t){var a=o.clone();a.month(t.innerHTML),a=(I?moment(a):moment(a).locale("en")).format("MMMM"),t.setAttribute("aria-label",a)})}function E(e){n(e,"days","month"),n(e,"months","year"),n(e,"years","decade")}function n(e,t,a){var i="years"==t?e.widget.find(".datepicker-years .picker-switch").html():e.widget.find(".datepicker-"+t+" .picker-switch").html()+". "+H["Toggle "+a];e.widget.find(".datepicker-"+t+" .prev").attr({role:"button",tabindex:"0","data-original-title":H["Previous "+a],"data-toggle":"tooltip","data-placement":"top","data-container":"body","aria-label":H["Previous "+a]}),e.widget.find(".datepicker-"+t+" .next").attr({role:"button",tabindex:"0","data-original-title":H["Next "+a],"data-toggle":"tooltip","data-placement":"top","data-container":"body","aria-label":H["Next "+a]}),e.widget.find(".datepicker-"+t+" .picker-switch").attr({role:"button",tabindex:"0","aria-label":i})}function s(e,t){e=e.widget.find(".timepicker [data-action="+t.replace(/\s/g,"")+"]");0<e.length&&(l(e[0],H[t]),e.attr("role","button"),z(e[0],H[t],"increment Minutes"===t||"increment Hours"===t?"top":"bottom"))}function g(e){var t=e.element.find("button"),a=e.options.pickTime?D.getMessage("Date time picker is closed."):D.getMessage("Date picker is closed."),e=D.format(H["{0} is selected"],M.formattedDate(e,e.date));0<t.length&&(t.one("keydown",function(e){27===e.which&&t.data("bs.tooltip").tip().hasClass("in")&&t.tooltip("hide")}),t.one("inserted.bs.tooltip",function(){t.removeAttr("aria-describedby")}),t.one("blur",function(){l(t[0],o)}),l(t[0],a+" "+e+". "+o),t[0].focus())}function u(e){M.datePickerShowType(e);var t=e.widget.find(".accordion-toggle a");return t[0]&&(t.attr("data-original-title",H["Toggle date time picker"]),t.attr("role","button"),t.attr("data-toggle","tooltip")),l(t[0],Q(e)+D.getMessage("Toggle date time picker")),t[0]}function Q(e){return"date"==M.datePickerShowType(e)?D.getMessage("Showing date picker."):D.getMessage("Showing date time picker.")}function O(e){var t;switch(M.calendarShowType(e)){case"days":0==e.widget.find(f).length&&e.setDate(moment(e.date).year(e.widget.find(".datepicker-days .picker-switch").html().slice(-4)).month(e.widget.find(".datepicker-days .picker-switch").html().slice(0,-5)).date(1)),t=f;break;case"months":0==e.widget.find(h).length&&e.setDate(moment(e.date).year(e.widget.find(".datepicker-months .picker-switch").html()).month(0)),t=h;break;case"years":0==e.widget.find(a).length&&e.setDate(moment(e.date).year(e.widget.find(".datepicker-years .picker-switch").html().slice(0,4))),t=a}e.widget.find(t).attr({tabindex:"-1",role:"button"}).focus(),b(e)}function B(e){59<parseInt($(e.target).text())&&e.stopPropagation()}function q(e){23<parseInt($(e.target).text())&&e.stopPropagation()}function F(e,t,a){var i,n,o,r=M.datePickerShowType(e),t=M.formattedDate(e,t),d=e.options.pickTime?D.getMessage("Date time picker is opened."):D.getMessage("Date picker is opened."),s=M.calendarShowType(e);"toggleDateTimePicker"==a&&("date"==r&&"days"==s?(e.widget.find(".picker-switch.accordion-toggle .flex-row").removeClass("cancelok-hidden"),b(e)):e.widget.find(".picker-switch.accordion-toggle .flex-row").addClass("cancelok-hidden")),a&&-1===a.indexOf("toggleDateTimePicker")&&("date"===r&&0<(i=e.widget.find(".datepicker-days td.active div")).length&&(s=t,"open"===a?(s=d+(e.options.pickTime?Q(e):"")+s,l(i[0],s)):Y||l(i[0],D.format(H["{0} is selected"],s)),i[0].blur(),setTimeout(function(){i[0].focus()},50)),"time"===r&&("open"===a?N(e,0,d):"togglePeriod"===a?(l((n=e.widget.find(".timepicker [data-action="+a+"]"))[0],a+" "+n[0].innerText),n[0].blur(),setTimeout(function(){n[0].focus()},100)):"selectHour"===a?(e.widget.find('.timepicker [data-action="showHours"]').focus(),c(e,"hour")):"selectMinute"===a?(e.widget.find('.timepicker [data-action="showMinutes"]').focus(),c(e,"minute")):"showHours"===a?(e.widget.find('[data-action="toggleDateTimePicker"]').focus(),y.sendLiveMessage(D.getMessage("hour picker opened"),"status"),e.widget.find(".timepicker-hours")[0].addEventListener("click",q)):"showMinutes"===a?(e.widget.find('[data-action="toggleDateTimePicker"]').focus(),y.sendLiveMessage(D.getMessage("minute picker opened"),"status"),e.widget.find(".timepicker-minutes")[0].addEventListener("click",B)):(l((o=e.widget.find(".timepicker [data-action="+a+"]"))[0],a+" "+(Y?"":t)),o[0].blur(),setTimeout(function(){o[0].focus()},100),c(e,"both"))))}function l(e,t){e&&e.setAttribute("aria-label",t)}function z(e,t,a){e&&(e.setAttribute("data-toggle","tooltip"),e.setAttribute("title",t),e.setAttribute("data-placement",a||"top"))}function G(e){var t=M.getSPDateickerInput(e);t&&(""===t.val()||t.parent(".has-error").length)&&e.setDate((I?moment():moment().locale("en")).format(e.format)),e.hide(),g(e)}function V(e,t){e=e.widget.find(".timepicker [data-action="+t+"]");e[0]&&e[0].focus()}function J(e){""!=P&&e.setDate(T),A=!0,e.hide(),g(e),""==P&&M.getSPDateickerInput(e).val("")}function X(e,t){var a,i,n,o,r,d,s,c,l=M.datePickerShowType(e),g=M.calendarShowType(e),u=!!e.widget.find('.timepicker [data-action="togglePeriod"]').length;if(9===t.keyCode){if("date"===l&&(r=(c=window.tabbable(e.widget[0]))[0],d=c[2],a=c[3],c=c[c.length-1],s="days"==g?".datepicker-days td.day div":".datepicker-"+g+" span."+g.slice(0,-1),t.shiftKey?document.activeElement===r?(e.options.pickTime||"days"==g?c.focus():O(e),t.stopPropagation(),t.preventDefault()):document.activeElement===a?(O(e),t.stopPropagation(),t.preventDefault()):$(t.target).is(s)&&(d.focus(),t.stopPropagation(),t.preventDefault()):document.activeElement===d?(O(e),t.stopPropagation(),t.preventDefault()):document.activeElement===c?(r.focus(),t.stopPropagation(),t.preventDefault()):$(t.target).is(s)&&((e.options.pickTime||"days"==g?a:r).focus(),t.stopPropagation(),t.preventDefault())),"time"===l){if("none"===e.widget.find(".timepicker-picker")[0].style.display)return c=(d=window.tabbable(e.widget[0]))[0],s=d[d.length-1],void(9===event.which&&(event.shiftKey?document.activeElement===c&&(s.focus(),event.preventDefault(),event.stopPropagation()):document.activeElement===s&&(c.focus(),event.preventDefault(),event.stopPropagation())));t.shiftKey?(t.stopPropagation(),t.preventDefault(),$(t.target).parent().hasClass("accordion-toggle")&&!u||"togglePeriod"===$(t.target).attr("data-action")?V(e,m):"incrementHours"===$(t.target).attr("data-action")?e.widget.find(".accordion-toggle a")[0].focus():"incrementMinutes"===$(t.target).attr("data-action")?V(e,"decrementHours"):"decrementHours"===$(t.target).attr("data-action")?V(e,"showHours"):"showHours"===$(t.target).attr("data-action")?V(e,"incrementHours"):"decrementMinutes"===$(t.target).attr("data-action")?V(e,"showMinutes"):"showMinutes"===$(t.target).attr("data-action")?V(e,"incrementMinutes"):$(t.target).parent().hasClass("accordion-toggle")&&V(e,"togglePeriod")):$(t.target).attr("data-action")===m&&!u||"togglePeriod"===$(t.target).attr("data-action")?(t.stopPropagation(),t.preventDefault(),e.widget.find("[data-action="+U+"]").focus()):(t.stopPropagation(),t.preventDefault(),$(t.target).parent().hasClass("accordion-toggle")?V(e,"incrementHours"):"incrementHours"===$(t.target).attr("data-action")?V(e,"showHours"):"showHours"===$(t.target).attr("data-action")?V(e,"decrementHours"):"decrementHours"===$(t.target).attr("data-action")?V(e,"incrementMinutes"):"incrementMinutes"===$(t.target).attr("data-action")?V(e,"showMinutes"):"showMinutes"===$(t.target).attr("data-action")?V(e,"decrementMinutes"):"decrementMinutes"===$(t.target).attr("data-action")&&V(e,"togglePeriod"))}}else 13===t.keyCode&&$(t.target).attr("data-action")&&"showHours"!==$(t.target).attr("data-action")&&"showMinutes"!==$(t.target).attr("data-action")||(-1!=[37,38,39,40].indexOf(t.keyCode)&&"days"!=g?(t.stopPropagation(),t.preventDefault(),a=moment(e.date).clone(),37==t.keyCode?a.subtract("1",g.slice(0,-1)):38==t.keyCode?a.subtract("4",g.slice(0,-1)):39==t.keyCode?a.add("1",g.slice(0,-1)):40==t.keyCode&&a.add("4",g.slice(0,-1)),"months"==g&&(i=e.date.year()),e.setDate(a),e.widget.find(".month,.year").attr({tabindex:"-1",role:"button"}),e.widget.find(".datepicker-"+g+" .active").focus(),"months"==g&&i==e.date.year()||k(e)):(t.stopPropagation(),t.preventDefault(),13===t.keyCode?($(t.target).click(),$(t.target).hasClass("picker-switch")?(g=M.calendarShowType(e),e.widget.find(".datepicker-"+g+" .picker-switch").attr({tabindex:"0",role:"button"}).focus()):$(t.target).is(".month, .year")?($(t.target).is(".month")?n=e.widget.find(f).length?e.widget.find(f):e.widget.find(".datepicker-days .day:not(.old) div").first():(n=e.widget.find(h).length?e.widget.find(h):e.widget.find(w).first(),$(n).attr({tabindex:"-1",role:"button"}),n)).focus():($(t.target).blur(),setTimeout(function(){$(t.target).focus()},100))):32===t.keyCode?setTimeout(function(){G(e)},200):27===t.keyCode?J(e):(r=(r=(o=t.altKey&&p["Alt"+t.key])||p[t.key])&&r instanceof Object?r[l]:r)&&("time"===l&&-1===r.indexOf("toggle")?(d=e.widget.find(".timepicker [data-action="+r+"]"),$(d[0]).trigger("click")):(s=jQuery.Event("doAction",{action:r}),e.widget.trigger(s),k(e),b(e))),!o||38!==t.keyCode&&40!==t.keyCode||(c="date"==M.datePickerShowType(e)?D.getMessage("Switching to date picker."):D.getMessage("Switching to date time picker."),y.sendLiveMessage(c))))}return i.user&&i.user.date_format&&(x=i.user.date_format),i.user&&i.user.date_time_format&&(C=i.user.date_time_format),{template:'<div ng-show="depsLoaded" ng-class="{\'sp-date-input-group\': snDisabled, \'input-group\': !snDisabled, \'has-error\': field.isInvalidDateFormat || field.isInvalid}" style="width: 100%;" role="presentation"><input id="sp_formfield_{{::field.name}}" aria-label="{{::field.label}} {{formattedDateAria}}" type="text" name="{{field.name}}" class="form-control" placeholder="{{snDisabled ? \'\' : (field.placeholder || (!g_accessibility ? displayFormat : \'\'))}}" title="{{g_accessibility ? formatWarning : \'\'}}" data-placement="top" data-toggle="{{g_accessibility ? \'tooltip\' : undefined}}" ng-model="formattedDate" ng-model-options="{updateOn: \'blur\', getterSetter: true}" ng-readonly="snDisabled" aria-required="{{field.isMandatory()}}" aria-invalid="{{field.isInvalidDateFormat}}"/><span class="input-group-btn" ng-hide="snDisabled"><input type="hidden" class="datepickerinput" ng-model="formattedDate" ng-readonly="true" /><button class="btn btn-default" type="button" role="button" title="{{::iconAriaLabel}}" aria-label="{{::iconAriaLabel}}" data-toggle="tooltip" data-placement="top" data-container={{dataContainer}}><glyph sn-char="calendar" /></button></span><span ng-if="field.isInvalidDateFormat" class="sp-date-format-info" style="display:table-row;" aria-hidden="true">{{formatWarning}}</span></div>',restrict:"E",replace:!0,require:"?ngModel",scope:{field:"=",snDisabled:"=",snIncludeTime:"=",snChange:"&",snMaxDate:"=",snMinDate:"="},controller:["$element","$scope",function(e,t){t.dataContainer=e.parents(".modal").length?"body":"section.page",t.depsLoaded="en"===g_lang,r.localeMap[g_lang]||(t.depsLoaded=!0);var a=i.$on("sp.date.depsLoaded",function(){t.depsLoaded=!0,a()})}],link:function(n,d,e,s){n.g_accessibility=y.isAccessibilityEnabled(),o=D.format(H["Show Calendar for {0}"],n.field.label),n.iconAriaLabel=o;var c,t,l,a=n.snIncludeTime,g=!1,u=!0,p=!!window.MSInputMethodContext&&!!document.documentMode,m=(a?C:x).trim(),f=(m=m.replace(/y/g,"Y").replace(/d/g,"D").replace(/a/g,"A"),a?(a=m.slice(0,m.indexOf(" ")),t=m.slice(m.indexOf(" ")+1),a=H[a]||a,t=H[t]||t,n.displayFormat=a+" "+t):n.displayFormat=H[m]||m,n.formatWarning=D.format(H["Date in format {0}"],n.displayFormat),{keepInvalid:!0,pickTime:!0===n.snIncludeTime,format:m,locale:r.localeMap[g_lang],language:r.localeMap[g_lang],maxDate:n.snMaxDate,minDate:n.snMinDate}),h=[];function w(e,t){var a;n.snChange&&((a={})[e]=t,n.snChange(a))}function k(e){return n.field.isInvalidDateFormat=!1,n.field.isInvalid=!1,M.validate(l,m,e,g,function(e){e&&(y.sendLiveMessage(n.translations["Entered date not valid. Enter date in format"]+" "+n.displayFormat),n.field.isInvalidDateFormat=!0,g_datepicker_validation_enable&&(n.field.isInvalid=!0))})}function b(e){var t;e&&null!==e&&""!==e&&(c=!0,M.isValidDate(e,m)||(t=null,"Invalid date"!==(t=(I?moment(e,m,!0):moment(e,m,!0).locale("en")).format(m))&&(e=t))),k(e)}s?(s.$parsers.push(k),s.$render=function(){var e=s.$viewValue;null==l?h.push(e):b(e)},n.formattedDate=function(e){angular.isDefined(e)&&(c=!0,s.$setViewValue(e),w("stagedValue",e));var t,e=s.$viewValue;return e&&null!==e&&""!==e?M.isValidDate(e,m)||(t=null,"Invalid date"!==(t=(I?moment(e,m,!0):moment(e,m,!0).locale("en")).format(m))?e=t:g_datepicker_validation_enable&&(n.field.isInvalid=!0)):n.formattedDateAria="",e}):(n.formattedDate=function(e){return angular.isDefined(e)&&(n.field.value=k(e),w("newValue",e)),n.field.value},n.$watch("field.value",function(e,t){e!=t&&k(e)})),M.onDepsLoaded(function(){function o(e){jQuery.contains(l.data("DateTimePicker").widget[0],e.target)||l.data("DateTimePicker").hide()}function t(){l.data("DateTimePicker").element.find("button").removeClass("calendarbutton-pressed"),v.off("touchstart",o);var e=$(".sp-scroll"),t=(e&&$(e[0]).off("scroll"),$(".sp-row-content > div .panel .panel-body"));if(t)for(var a=0;a<t.length;a++)$(t[a]).off("scroll")}function r(e){var t=l.data("DateTimePicker");!function(e,t){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect(),t=t.getBoundingClientRect();return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}(t.element,e)?t.hide():t.place(e)}function a(e){g=!1;var t,a=$(e.target),i=(""!==a.data("DateTimePicker").initial_value||c||moment(e.date.clone().startOf("day")).isSame(moment().startOf("day"))&&0!=moment(e.date).diff(moment(e.oldDate),"seconds")||(i=e,a=a,t=moment(),i.date.set({hour:t.get("hour"),minute:t.get("minute"),second:t.get("second")}),a.data("DateTimePicker").initial_value=null),(I?e.date:e.date.locale("en")).format(m));n.formattedDate(i),n.formattedDateAria=M.formattedDate(l.data("DateTimePicker"),e.date),n.$root.$$phase||n.$apply(),t=e,a=l.data("DateTimePicker"),e=d,Y&&e.find(".form-control")[0].setAttribute("aria-label",D.format(H["{0} is selected"],M.formattedDayTime(a,t.date))),t.date.month()===t.oldDate.month()&&t.date.year()===t.oldDate.year()||(L(a),E(a))}l=d.find(".input-group-btn").datetimepicker(f).on("dp.change",a),!0===n.snIncludeTime&&($(d.find(".input-group-btn")).data("DateTimePicker").initial_value=n.field.value),p&&angular.element("body").on("click",function(e){var e=e.target,t=angular.element(e);document.activeElement!==e&&t.hasClass("form-control")&&e.focus()}),d.find(".form-control").on("blur",function(e){w("newValue",e.target.value)}).on("keyup",function(e){13===e.keyCode?w("newValue",e.target.value):g=!0}).on("focus",function(e){e.target.setAttribute("aria-live",S)}),l.on("dp.show",function(){T=l.data("DateTimePicker").date.clone(),P=M.getSPDateickerInput(l.data("DateTimePicker")).val(),d.find(".form-control")[0].setAttribute("aria-live",S),u&&(u=!1,function(e){e.widget.on("keydown",$.proxy(X,this,e)),e.widget.on("keyup",$.proxy(K,this,e)),e.widget.on("click",".datepicker *",$.proxy(R,this,e))}(t=l.data("DateTimePicker")),t.widget.find("table.table-condensed").attr("role","presentation"),t.options.pickTime?t.widget.find(".picker-switch.accordion-toggle").append('<div class="flex-row cancelok-datetime"><button class="btn cancel">'+D.getMessage("Cancel")+'</button><button class="btn ok">'+D.getMessage("OK")+"</button></div>"):t.widget.append('<div class="flex-row cancelok-date"><button class="btn cancel">'+D.getMessage("Cancel")+'</button><button class="btn ok">'+D.getMessage("OK")+"</button></div>"),t.widget.find(".cancel").on("click",function(e){e.stopPropagation(),J(t)}),t.widget.find(".ok").on("click",function(e){e.stopPropagation(),G(t)})),v.on("touchstart",o);var t,e=_.debounce(r,100),a=$(".sp-scroll"),i=(a&&$(a[0]).scroll(e.bind(null,a[0])),$(".sp-row-content > div .panel .panel-body"));if(i)for(var n=0;n<i.length;n++)$(i[n]).scroll(e.bind(null,i[n]));j(l.data("DateTimePicker"))}).on("dp.hide",t),l.on("dp.action",function(e){F(e.picker,e.date,e.action)}),l.on("dp.toggle",function(e){N(l.data("DateTimePicker"))}),l.on("dp.hide",function(e){A&&""==P?s.$setViewValue(""):s&&w("newValue",n.field.stagedValue),A=!1}),n.$on("sp.spFormField.unFocus",function(){k(n.field.value)});var i=W.subscribeSelect2Opening(function(){var e=l.data("DateTimePicker");e&&$(e.widget[0]).is(":visible")&&e.hide()});n.$on("$destroy",function(){l.off("dp.change",a);var e=l.data("DateTimePicker");e&&(t(),i(),e.destroy())}),n.translations=H,h.forEach(b)})}}}]); angular.module("sn.$sp").factory("spDatePickerUtil",["spAriaUtil","$window","$rootScope","spUtil","$ocLazyLoad",function(e,t,n,o,i){var r=t.NOW.sp.enableDateTranslation,a={isValidDate:function(e,t){if(""===e)return!0;r||moment.locale("en");return("string"!=typeof t||-1===t.indexOf("z")?moment(e,t,!0):moment(e,t)).isValid()},validate:function(e,t,n,o,i){if(null==n||""==n)return e.data("DateTimePicker").setValue(new Date),"";a.isValidDate(n,t)?(n=(r?moment(n,t):moment(n,t).locale("en")).format(t),e.data("DateTimePicker").setDate(moment(n,t)),i()):a.isValidDate(n,moment.ISO_8601)?(o=(o?moment(n):moment.utc(n)).clone(),e.data("DateTimePicker").setDate(o),n=(r?o:o.locale("en")).format(t),i()):i(!0);return n},getSPDateickerInput:function(e){var t;if(e.isInput)return e.element;if(0===(t=e.element.find(".datepickerinput")).size())t=e.element.find("input");else if(!t.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return t.parent().prev()},formattedDate:function(e,t){var n="DD MMMM YYYY",o=null,i="",a="";e.options.pickTime&&(-1!==e.options.format.indexOf("h")&&(i=" A"),-1!==e.options.format.indexOf("s")&&(a=":ss"),n+=(i?" hh":" HH")+":mm"+a+i);n+=" dddd",o=(r?moment(t):moment(t).locale("en")).format(n);return o},formattedDayTime:function(e,t){var n="",o=null,i="";e.options.pickTime&&(-1!==e.options.format.indexOf("h")&&(i="A"),n+=i);n+=" dddd",o=(r?moment(t):moment(t).locale("en")).format(n);return o},datePickerActionType:function(e){return-1===e.indexOf("Hours")?"minute":"hour"},datePickerShowType:function(e){return e.options.pickTime&&(!e.options.pickDate||0!==$(e.widget.find(".accordion-toggle")[0]).find(".glyphicon-calendar").length)?"time":"date"},calendarShowType:function(e){return"block"==e.widget.find(".datepicker-days").css("display")?"days":"block"==e.widget.find(".datepicker-months").css("display")?"months":"block"==e.widget.find(".datepicker-years").css("display")?"years":void 0},onDepsLoaded:function(e){"function"==typeof e&&("en"===g_lang||null==d?e():i.load(d).then(function(){n.$emit("sp.date.depsLoaded"),e()}))}};var d=function(){var e=o.localeMap;if(e[g_lang])return["/scripts/libs/moment/locale/"+e[g_lang]+".js"]}();return a}]).run(["$rootScope",function(e){var t,n;"undefined"!=typeof moment&&void 0!==moment.tz&&(t=parseInt(g_date_picker_first_day_of_week),n=function(){moment.localeData()._week.dow!=t&&moment.updateLocale(g_lang,{week:{dow:t}})},isNaN(t)||t<1?t=0:7<t?t=6:t-=1,"en"==g_lang&&n(),e.$on("sp.date.depsLoaded",function(){n()}),moment.tz.setDefault(g_tz))}]); angular.module("sn.$sp").directive("spDropdownTree",["$rootScope",function(o){return{restrict:"E",scope:{items:"="},replace:!0,template:'<ul class="dropdown-menu"><li ng-repeat="mi in items" style="min-width: 20em;" ng-init="mi.unique_number = mi.number +\'_\'+ $index" ng-class="{\'dropdown-submenu\': mi.type == \'menu\', \'dropdown-menu-line\':$index < items.length - 1}" ng-include="getURL()" role="presentation"></ul>',link:function(e,t,n,i){e.getURL=function(){return"spDropdownTreeTemplate"},e.collapse=function(){o.$emit("sp-navbar-collapse")}}}}]),function(r){r("body").on("click","a.menu_trigger",function(e){var o=r(this).next(),t=r(this).parent().parent();(r(this).hasClass("left-caret")||r(this).hasClass("right-caret"))&&r(this).toggleClass("right-caret left-caret"),t.find(".left-caret").not(this).toggleClass("right-caret left-caret"),o.toggle(),r(".dropdown-menu").each(function(e,t){var n=r(t).closest(".dropdown"),i=o.closest(".dropdown");t.contains(o[0])||t==o[0]||i.length&&n.length&&n[0]!=i[0]||r(t).hide()}),e.stopPropagation()}),r("body").on("click","a:not(.menu_trigger)",function(){r(this).closest(".dropdown").find(".left-caret").toggleClass("right-caret left-caret")})}(jQuery); angular.module("sn.$sp").factory("spMacro",["$log",function(c){"use strict";return function(n,a,e,r){var o,t,i,u,f=n.page.g_form;if(f)return t=f.getFieldNames(),i=[],t.forEach(function(n){i.push(f.getField(n))}),u={},angular.forEach(e,function(a,e){i.forEach(function(n){n.variable_name==a&&(u[e]=n.name,r||f.setDisplay(n.name,!1))})}),angular.forEach(a,function(n,a){u[a]||i.forEach(function(n){n.variable_name==a&&(u[a]=n.name,r||f.setDisplay(n.name,!1))})}),o=u,{getMap:function(){return o},onChange:function(r,t){angular.isDefined(r)&&angular.forEach(r,function(n,a){var e;r[a]!=t[a]&&(e=o[a],f.setValue(e,r[a]))})}};c.warn("GlideForm not set for widget: "+n.widget.name)}}]); angular.module("sn.$sp").factory("spModelUtil",["glideFormFieldFactory",function(i){"use strict";function n(e){var a=i.create(e);e.isReadonly=a.isReadonly,e.isMandatory=a.isMandatory,e.isVisible=a.isVisible,e.mandatory_filled=function(){return i.hasValue(e,e.stagedValue)},e.stagedValue=e.value}return{extendField:n,extendFields:function(e){for(var a in e)n(e[a])}}}]); angular.module("sn.$sp").factory("spUIActionFactory",["$http","$rootScope",function(a,r){"use strict";var c={};return{create:function(t,n,e){var i=n&&n.attachmentGUID;return i&&(c[i]=e),new o(t,n)},executeUIAction:s};function o(t,n){if(!t)throw"uiActions must be provided";var e={},i=[];n=n||{},t.forEach(function(t){t=new u(t.action_name,t.sys_id,t.name,n.uiActionNotifier,n.attachmentGUID);e[t.getSysId()]=t,i.push(t)}),this.getActions=function(){return i},this.getAction=function(t){return e[t]},this.getActionByName=function(n){var e;return i.forEach(function(t){e||n===t.getName()&&(e=t)}),e||(n=n.toLowerCase(),i.forEach(function(t){e||n===(t.getDisplayName()||"").toLowerCase()&&(e=t)})),e=e||this.getAction(n)}}function u(t,n,e,i,o){var a=t,r=e,c=n,u=i;this.getSysId=function(){return c},this.getName=function(){return a},this.getDisplayName=function(){return r},this.execute=function(n){0;var e={},t=(n.getFieldNames().forEach(function(t){e[t]=n.getField(t)}),o&&(e._attachmentGUID=o),s(this.getSysId(),n.getTableName(),n.getSysId(),e).finally(function(){}));return u(this.getName(),t),t}}function s(t,n,e,i){var o=i._attachmentGUID,o=(c[o]&&(i.encoded_record=c[o]),{method:"POST",url:"/api/now/sp/uiaction/"+t,headers:{Accept:"application/json","x-portal":r.portal_id},data:{table:n,recordID:e,data:i}});return a(o).then(function(t){t=t.data.result;t&&t.$$uiNotification&&r.$broadcast("$$uiNotification",t.$$uiNotification);return t},function(t){console.log("Error "+t.status+" "+t.statusText)})}}]); angular.module("sn.$sp").directive("spGlyphPicker",["$rootScope","i18n",function(l,s){return{template:'<span class="glyph-picker-container"><button ng-show="!disabled()" class="btn btn-default iconpicker" data-iconset="fontawesome" data-icon="fa-{{field.value}}" id="sp_formfield_{{::field.name}}" aria-label="{{::label}}" tabindex="0"></button><div ng-show="disabled()" class="fa fa-{{field.value}} glyph-picker-disabled"></div></span>',restrict:"E",replace:!0,scope:{field:"=",snOnChange:"&",snOnBlur:"&",snDisabled:"&"},link:function(a,e,n,i){a.disabled=function(){return void 0!==a.snDisabled()&&a.snDisabled()};var t=e.find("button");t.on("click",function(e){var n=this.attributes["aria-describedby"];n&&n.value.startsWith("popover")&&e.stopImmediatePropagation()}),t.iconpicker({cols:6,rows:6,placement:"right",iconset:"fontawesome"}),a.label=s.getMessage("Pick a Glyph"),a.transferIcon=function(){a.field&&t.iconpicker("setIcon","fa-"+a.field.value)},a.$watch(function(){return a.field?a.field.value:null},function(e,n){e!=n&&a.transferIcon()}),a.transferIcon(),t.on("change",function(e){a.field.value=e.icon.replace(/^fa-/,""),l.$$phase||l.$digest(),a.snOnChange()}),t.on("change",function(e){a.snOnBlur()})}}}]); angular.module("sn.$sp").directive("spColorPicker",function(){return{template:'<div class="input-group" role="presentation"><input id="sp_formfield_{{::field.name}}" class="form-control" name="{{field.name}}" value="{{field.value}}" placeholder="{{field.placeholder}}" autocomplete="off" ng-readonly="snDisabled" /><input type="text" class="btn input-group-btn" name="color_picker_{{field.name}}" ng-disabled="snDisabled" /></div>',restrict:"E",replace:!0,scope:{field:"=",getGlideForm:"&glideForm",snChange:"&",snDisabled:"="},link:function(n,t,e,a){var f,i=n.field,o=n.getGlideForm();function l(e){n.snDisabled||n.snChange({newValue:e})}n.$evalAsync(function(){var e,a;e=t.find('input[name="'+i.name+'"]'),a=t.find('input[name="color_picker_'+i.name+'"]'),(n.picker=a).spectrum({color:i.value,showInitial:!0,showButtons:!1,showInput:!0,showSelectionPalette:!1,preferredFormat:"hex",showPalette:!0,hideAfterPaletteSelect:!0,replacerClassName:"input-group-btn",palette:[["#000000","#ffffff","#343d47","#485563","#81878e","#bdc0c4","#e6e8ea"],["#e7e9eb","#6d79eb","#8784db","#b1afdb","#278efc","#83bfff","#c0dcfa"],["#289fdb","#97e0fc","#caeefc","#71e279","#6edb8f","#9adbad","#fcc742"],["#ffe366","#fff1b2","#fc8a3d","#ffc266","#ffe0b2","#f95050","#ff7b65"],["#ffbeb2","#f95070","#ff93a2","#ffc1ca","#cddc39","#e6ee9c","#f9fbe7"]],show:function(e){f=e.toHexString()},hide:function(e){e=e.toHexString();f!=e&&l(e)},move:function(e){l(e.toHexString())},change:function(e){l(e.toHexString())}}),o.$private.events.on("propertyChange",function(e,n,t){n==i.name&&"readonly"==t&&a.spectrum(o.isReadOnly(i.name)?"disable":"enable")}),e.on("focus",function(){var e=angular.element(this);f=e.val()}),e.on("blur",function(){var e=angular.element(this).val();f!=e&&(a.spectrum("set",e),l(e))})}),t.on("$destroy",function(){n.picker.spectrum("destroy")})}}}); angular.module("sn.$sp").directive("spReferenceField",["$rootScope","$injector","spUtil","$uibModal","$http","spAriaUtil","i18n",function(r,c,a,u,i,d,f){"use strict";return{restrict:"E",replace:!0,templateUrl:"sp_reference_field.xml",controller:["$scope",function(l){var n,o=!1;function s(e,t,n){e.item=n,e.closeWindowMsg=f.getMessage("Close Window"),e.ok=function(){t.close()},e.$on("modal.closing",function(){var e=angular.element(".sp-page-root");1==$(".modal.in").length&&e.attr("aria-hidden","false"),o=!1}),e.cancel=function(){t.dismiss("cancel")}}l.openReference=function(e,t){t={table:e.refTable,sys_id:e.value,view:t,isPopup:!0};angular.isDefined(e.reference_key)?t[e.reference_key]=e.value:t.sys_id=e.value,n&&n(),n=r.$on("$sp.openReference",function(e,t){o||(o=!0,n(),n=null,e.defaultPrevented||e.targetScope!==l||(e=t,e={method:"POST",url:a.getWidgetURL("widget-form"),headers:a.getHeaders(),data:e},i(e).then(function(e){var o,r,n,a,e=e.data.result;function i(){var t,n;return 0<$(".modal.in").length&&$(".modal.in").each(function(){var e=$(this).css("z-index");(!t||n<e)&&(t=this,n=e)}),t}o=e,(e={size:"lg",templateUrl:"sp_form_modal",controller:["$scope","$uibModalInstance","item",s],resolve:{}}).resolve.item=function(){return angular.copy({form:o})},r=u.open(e),n=angular.element(".sp-page-root"),r.rendered.then(function(){var e=c.get("$uibModalStack").getTop().value.modalDomEl,t=i();t&&t.setAttribute("aria-hidden","true"),(t=e).attr("aria-label",t.find(".panel-title").html()),t.attr("aria-modal","true"),n.attr("aria-hidden","true")}),r.closed.then(function(){var e=i();e&&e.setAttribute("aria-hidden","false")}),r.result.then(function(){},function(){d.sendLiveMessage(l.exitMsg)}),l.$on("$destroy",function(){r.close()}),a=l.$on("sp.form.record.updated",function(e,t,n){o.data.sys_id===n&&(a(),a=null,r.close(),e.stopPropagation&&e.stopPropagation(),e.preventDefault())})},function(e){console.error("Error "+e.status+" "+e.statusText),o=!1})))}),l.$emit("$sp.openReference",t)},l.$on("$destroy",function(){n&&n(),o=!1})}],link:function(t,e){f.getMessage("Closing modal page",function(e){t.exitMsg=e})}}}]); angular.module("sn.$sp").directive("spCssEditor",["$timeout",function(a){return{template:'<textarea ng-model="v" name="{{::field.name}}" style="width: 100%; min-height: 2em;" rows="1" wrap="soft" data-length="{{::dataLength}}" data-charlimit="false"></textarea>',restrict:"E",replace:!0,require:"^ngModel",scope:{field:"=",dataLength:"@",snDisabled:"=?",snChange:"&",snBlur:"&",getGlideForm:"&glideForm"},link:function(n,e,t,r){a(function(){var a,l=n.field,i=(void 0!==t.glideForm&&(a=n.getGlideForm()),e[0].value=l.value,e[0].id="sp_formfield_"+l.name,CodeMirror.fromTextArea(e[0],{mode:"text/x-less",lineWrapping:!1,readOnly:!0===n.snDisabled,viewportMargin:1/0,lineNumbers:!0,tabSize:2,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}));$("#sp_formfield_"+l.name).next().find("textarea").attr({role:"textbox","aria-multiline":"true","aria-label":n.field.label});i.addKeyMap({"Ctrl-M":function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}),i.on("change",function(e){void 0!==l.stagedValue?(l.stagedValue=e.getValue(),r.$setViewValue(l.stagedValue)):(l.value=e.getValue(),r.$setViewValue(l.value)),angular.isDefined(n.snChange)&&n.snChange()}),i.on("blur",function(){angular.isDefined(n.snBlur)&&n.snBlur()}),r.$viewChangeListeners.push(function(){n.$eval(t.ngChange)}),a?a.$private.events.on("propertyChange",function(e,n,t){n==l.name&&("readonly"==t&&(t=a.isReadOnly(n),i.setOption("readOnly",t),n=i.getWrapperElement(),jQuery(n).css("background-color",t?"#eee":"")),a.$private.events.on("change",function(e,n,t){e!=l.name||t==n||i.hasFocus()||i.getDoc().setValue(t)}))}):(n.$watch(function(){return l.value},function(e,n){e==n||i.hasFocus()||i.getDoc().setValue(l.value)}),n.$watch("snDisabled",function(e){angular.isDefined(e)&&i.setOption("readOnly",e)}))})}}}]); angular.module("sn.$sp").directive("spTinymceEditor",["getTemplateUrl","snAttachmentHandler","$timeout","i18n","spAriaUtil","$rootScope","spUtil","$sce",function(t,y,v,e,x,C,M,w){return{templateUrl:t("sp_tinymce_editor.xml"),restrict:"E",replace:!0,scope:{model:"=ngModel",field:"=?",options:"=ngModelOptions",snBlur:"&",snDisabled:"=?",getGlideForm:"&glideForm",ngChange:"&",attachmentGuid:"=?",recordTableName:"=?",textId:"@?",autoFocus:"@?"},controller:["$scope","$element","$attrs",function(o,t,e){function n(){var e=!1,n=!1,i=(o.field&&(e=a?a.isReadOnly(r.name):o.field.sys_readonly||!1,n=o.field.isMandatory?o.field.isMandatory():o.field.mandatory||!1),l.getDoc().body);v(function(t){o.field&&i.setAttribute("aria-label",o.field.label),i.setAttribute("contenteditable",!e),i.setAttribute("aria-required",n)},1e3)}function i(){"function"==typeof l.setMode?l.getContainer()&&n():v(i,10)}var a,r,s=!!window.MSInputMethodContext&&!!document.documentMode,l=(o.accessibilityEnabled="true"===x.g_accessibility,o.onChangeModel=function(){v(function(){o.ngChange()})},o.trustedHTML=function(t){return t=M.sanitizeHtml(t),w.trustAsHtml(t)},o.options=o.options||{},{}),d=(void 0!==e.glideForm&&(a=o.getGlideForm()),void 0!==e.field&&(r=o.field),Math.ceil(1e4*Math.random())),d=(o.textareaId=(o.textId?o.textId.replace(".","-"):"ui-tinymce-")+d,"cs,de,en,es,fi,fr,fq,he,hu,it,ja,ko,nb,nl,pb,pl,pt,ru,sv,th,tr,zh,zt"),c={pb:"pt_BR",zh:"zh_CN",fr:"fr_FR",fq:"fr_FR",he:"he_IL",hu:"hu_HU",ko:"ko_KR",nb:"nb_NO",pt:"pt_PT",sv:"sv_SE",th:"th_TH",zt:"zh_TW"}[c=(c=(c=g_lang)&&-1!=d.indexOf(c)?c:g_system_lang)&&-1!=d.indexOf(c)?c:"en"]||c,d=!0,u=("undefined"!=typeof g_tinymce_remove_script_host&&(d=g_tinymce_remove_script_host),!1),m=("undefined"!=typeof g_tinymce_convert_urls&&(u=g_tinymce_convert_urls),!0);function f(){var t,e,n={},i=o.getGlideForm();return i?(t=i.getTableName(),e=i.getSysId(),t?(n.table=t,n.sys_id=-1<e?e:o.attachmentGuid):(n.table=i.recordTableName,n.sys_id=o.attachmentGuid||e)):(n.table=o.recordTableName,n.sys_id=o.attachmentGuid),n}function g(t,e){e=e.getElementsByClassName(t);if(e.length)return e[0].offsetHeight}function p(n){o.$applyAsync(function(){var t=l.getContent(),e=l.getContent({format:"text"}).trim(),t=e||t.match(/(iframe|img)/i)?t:e;s&&-1!==t.indexOf('src="blob:')&&(t=l.getContent()),t=M.normalizeNewLines(t),o.model=t,o.field&&(o.field.stagedValue=t,n||(o.field.value=t))})}function h(t){var e=$(t).offset().top,t=e+$(t).outerHeight(),n=$(window).scrollTop(),i=$(window).scrollTop()+$(window).height();return $("[data-target='#sp-nav-bar']").is(":visible")||(n+=$("header").height()),n<t&&e<i}"undefined"!=typeof g_tinymce_relative_urls&&(m=g_tinymce_relative_urls);var b=["undo redo","formatselect","bold italic","alignleft aligncenter alignright alignjustify","bullist numlist outdent indent","link unlink","image","codesample code"];o.tinyMCEOptions={min_height:100,theme:"silver",menubar:!1,language:c,remove_script_host:d,convert_urls:u,relative_urls:m,statusbar:!0,elementpath:!1,plugins:"codesample lists code link powerpaste",lists_indent_on_tab:!1,toolbar:b.join(" | "),paste_data_images:!0,browser_spellcheck:!0,debounce:!1,powerpaste_html_import:"prompt",branding:!1,valid_children:"+body[style|link]",toolbar_mode:"wrap",mobile:{toolbar_mode:"wrap"},cache_suffix:"v="+g_builddate,setup:function(i){(l=i).on("init",function(){var t=l.getContainer();t&&(t.style.height=parseInt(t.style.height)+((g("tox-editor-header",t=t)||39)+(g("tox-statusbar",t)||18))+"px"),n(),v(function(){$(".tox-tbtn",l.getContainer()).each(function(t,e){!e.hasAttribute("data-original-title")&&e.hasAttribute("title")&&e.setAttribute("data-original-title",e.getAttribute("title")),$(e).tooltip({container:"body",title:function(){return $btn.attr("data-original-title")}})})})}),i.addCommand("imageUpload",function(t,e){o.clickAttachment()}),i.ui.registry.addButton("image",{icon:"image",tooltip:"Insert image",onAction:function(t){i.execCommand("imageUpload")},stateSelector:"img:not([data-mce-object],[data-mce-placeholder])"}),i.on("blur",function(){p(!1),angular.isDefined(o.snBlur)&&o.snBlur()}),i.on("focus",function(t){var e=$(i.contentAreaContainer)[0],n=$(i.container).find(".tox-editor-header")[0];e&&n&&(h(e)&&h(n)||n.scrollIntoView())}),i.on("ProgressState",function(t){C.$emit("$sp.html.editor.progress",t)})},images_upload_handler:function(t,e,n){var i=t.blob(),t=t.filename(),t=(i.name="Pasted image"+t.substr(t.lastIndexOf(".")),f());t.table&&t.sys_id?(l.setProgressState(!0),y.create(t.table,t.sys_id).uploadAttachment(i,null,{}).then(function(t){e("/sys_attachment.do?sys_id="+t.sys_id),p(!0),l.setProgressState(!1)})):(console.warn("GlideForm or table and record id is not provided"),n())}},"true"==o.autoFocus&&(o.tinyMCEOptions.auto_focus=o.textareaId),M.isMobile()&&(o.tinyMCEOptions.toolbar=_.pull(b,"image").join(" | ")),o.attachFiles=function(t){var e=f();e.table&&e.sys_id&&t.files.length&&(l.setProgressState(!0),y.create(e.table,e.sys_id).uploadAttachments(t.files,null,{}).then(function(t){t.forEach(function(t){t=tinymce.extend({},{src:encodeURI("/sys_attachment.do?sys_id="+t.sys_id),style:"max-width: 100%; max-height: 480px;"});p(!0),l.execCommand("mceInsertContent",!1,l.dom.createHTML("img",t),{skip_undo:1})}),l.setProgressState(!1)}))},a&&r?(a.$private.events.on("propertyChange",function(t,e,n){e==r.name&&i()}),i()):void 0!==e.snDisabled&&o.$watch("snDisabled",function(t){angular.isDefined(t)&&"function"==typeof l.setMode&&(l.getContainer()?l.setMode(t?"readonly":"design"):l.on("init",function(){l.setMode(t?"readonly":"design")}))})}],link:function(t,e,n){t.attrs=n,t.clickAttachment=function(){e.find("input").click()}}}}]); angular.module("sn.$sp").directive("spHtmlEditor",["$timeout",function(a){return{template:'<textarea class="CodeMirror" name="{{::field.name}}" ng-model="v" style="width: 100%;" data-length="{{ ::dataLength }}" data-charlimit="false"></textarea>',restrict:"E",require:"^ngModel",replace:!0,scope:{field:"=",dataLength:"@",rows:"@",snDisabled:"=?",snChange:"&",snBlur:"&",getGlideForm:"&glideForm"},link:function(n,e,t,i){a(function(){var a,l=n.field,r=(void 0!==t.glideForm&&(a=n.getGlideForm()),e[0].value=l.value,e[0].id="sp_formfield_"+l.name,CodeMirror.fromTextArea(e[0],{mode:"htmlmixed",lineWrapping:!1,readOnly:!0===n.snDisabled,viewportMargin:1/0,lineNumbers:!0,autoCloseTags:!0,tabSize:2,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}));$("#sp_formfield_"+l.name).next().find("textarea").attr({role:"textbox","aria-multiline":"true","aria-label":n.field.label});r.addKeyMap({"Ctrl-M":function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}),i.$viewChangeListeners.push(function(){n.$eval(t.ngChange)}),r.on("change",function(e){void 0!==l.stagedValue?(l.stagedValue=e.getValue(),i.$setViewValue(l.stagedValue)):(l.value=e.getValue(),i.$setViewValue(l.value)),angular.isDefined(n.snChange)&&n.snChange()}),r.on("blur",function(){angular.isDefined(n.snBlur)&&n.snBlur()}),a?a.$private.events.on("propertyChange",function(e,n,t){n==l.name&&("readonly"==t&&(t=a.isReadOnly(n),r.setOption("readOnly",t),n=r.getWrapperElement(),jQuery(n).css("background-color",t?"#eee":"")),a.$private.events.on("change",function(e,n,t){e!=l.name||t==n||r.hasFocus()||r.getDoc().setValue(t)}))}):(n.$watch(function(){return l.value},function(e,n){e==n||r.hasFocus()||r.getDoc().setValue(l.value)}),n.$watch("snDisabled",function(e){angular.isDefined(e)&&r.setOption("readOnly",e)}))})}}}]); angular.module("sn.$sp").directive("spHtmlContent",["$sce","$compile",function(n,t){return{template:'<p ng-bind-html="trustAsHtml(model)"></p>',restrict:"E",replace:!0,scope:{model:"="},link:function(t,e,l,i){t.trustAsHtml=n.trustAsHtml,t.$watch("model",function(){Prism.highlightAll(),e.find("img").each(function(t,e){e.hasAttribute("role")||e.getAttribute("alt")||e.setAttribute("role","presentation")})})}}}]); angular.module("sn.$sp").directive("spCodeMirror",["$timeout",function(t){return{template:'<textarea class="CodeMirror" name="{{::field.name}}" ng-model="v" style="width: 100%;" data-length="{{ ::dataLength }}" data-charlimit="false"></textarea>',restrict:"E",replace:!0,require:"^ngModel",scope:{field:"=",mode:"@",dataLength:"@",snDisabled:"=?",snChange:"&",snBlur:"&",getGlideForm:"&glideForm",id:"@?"},link:function(a,e,n,l){t(function(){var t,r=a.field,i=(void 0!==n.glideForm&&(t=a.getGlideForm()),e[0].value=r.value,e[0].id=a.id,CodeMirror.fromTextArea(e[0],{mode:a.mode,lineWrapping:!1,readOnly:!0===a.snDisabled,viewportMargin:1/0,tabSize:2,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}));e.next().find("textarea").attr("aria-label",r.label),l.$viewChangeListeners.push(function(){a.$eval(n.ngChange)}),i.on("change",function(e){void 0!==r.stagedValue?(r.stagedValue=e.getValue(),l.$setViewValue(r.stagedValue)):(r.value=e.getValue(),l.$setViewValue(r.value)),angular.isDefined(a.snChange)&&a.snChange()}),i.on("blur",function(){angular.isDefined(a.snBlur)&&a.snBlur()}),t?t.$private.events.on("propertyChange",function(e,a,n){a==r.name&&("readonly"==n&&(n=t.isReadOnly(a),i.setOption("readOnly",n),a=i.getWrapperElement(),jQuery(a).css("background-color",n?"#eee":"")),t.$private.events.on("change",function(e,a,n){e!=r.name||n==a||i.hasFocus()||i.getDoc().setValue(n)}))}):(a.$watch(function(){return r.value},function(e,a){e==a||i.hasFocus()||i.getDoc().setValue(r.value)}),a.$watch("snDisabled",function(e){angular.isDefined(e)&&i.setOption("readOnly",e)}))})}}}]); angular.module("sn.$sp").directive("spScriptEditor",["$rootScope","$http","spCodeEditorAutocomplete","defaultJSAutocomplete","$timeout",function(e,t,c,u,i){return{template:'<textarea class="CodeMirror" name="{{::field.name}}" ng-model="v" style="width: 100%;" data-length="{{::dataLength}}" data-charlimit="false"></textarea>',restrict:"E",require:"^ngModel",replace:!0,scope:{field:"=",dataLength:"@",options:"@?",snDisabled:"=?",snChange:"&",snBlur:"&",snWidgetScopeJsLevel:"=",snServerSide:"=",getGlideForm:"&glideForm",id:"@?"},link:function(l,t,n,s){i(function(){var i,r,o=l.field,e=(void 0!==n.glideForm&&(i=l.getGlideForm()),t[0].value=o.value,t[0].id=l.id,"es_latest"===l.snWidgetScopeJsLevel&&l.snServerSide),a=function(e,t){var n={asi:!0};t&&(n.esversion=11);var i={mode:"javascript",lineNumbers:!0,lineWrapping:!1,readOnly:!0===l.snDisabled,viewportMargin:1/0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers","CodeMirror-foldgutter"],lint:n,indentWithTabs:!0,indentUnit:2,tabSize:2,matchBrackets:!0,autoCloseBrackets:!0,theme:"snc"};l.options&&Object.keys(l.options).forEach(function(e){i[e]=l.options[e]});t=CodeMirror.fromTextArea(e,i);return $("#sp_formfield_"+o.name).next().find("textarea").attr({role:"textbox","aria-multiline":"true","aria-label":l.field.label}),t}(t[0],e);c.getConfig("sp_widget",o.name).then(function(e){var t={};"client_script"===o.name&&(t={angular:"./"});r=new CodeMirror.TernServer({defs:[e,u],plugins:t}),a.setOption("extraKeys",{"Ctrl-Space":function(e){r.complete(e)},"Ctrl-I":function(e){r.showType(e)},"Ctrl-O":function(e){r.showDocs(e)},"Alt-.":function(e){r.jumpToDef(e)},"Alt-,":function(e){r.jumpBack(e)},"Ctrl-Q":function(e){r.rename(e)},"Ctrl-.":function(e){r.selectName(e)}});a.addKeyMap({"Ctrl-M":function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}),a.on("cursorActivity",function(e){r.updateArgHints(e)})}),s.$viewChangeListeners.push(function(){l.$eval(n.ngChange)}),a.on("change",function(e){void 0!==o.stagedValue?(o.stagedValue=e.getValue(),s.$setViewValue(o.stagedValue)):(o.value=e.getValue(),s.$setViewValue(o.value)),angular.isDefined(l.snChange)&&l.snChange()}),a.on("blur",function(){angular.isDefined(l.snBlur)&&l.snBlur()}),i?i.$private.events.on("propertyChange",function(e,t,n){t==o.name&&("readonly"==n&&(n=i.isReadOnly(t),a.setOption("readOnly",n),t=a.getWrapperElement(),jQuery(t).css("background-color",n?"#eee":"")),i.$private.events.on("change",function(e,t,n){e!=o.name||n==t||a.hasFocus()||a.getDoc().setValue(n)}))}):(l.$watch(function(){return o.value},function(e,t){e==t||a.hasFocus()||a.getDoc().setValue(o.value)}),l.$watch("snDisabled",function(e){angular.isDefined(e)&&a.setOption("readOnly",e)})),a.on("keyup",function(e,t){var n="which"in t?t.which:t.keyCode,i=document.getElementsByClassName("CodeMirror-Tern-tooltip")[0];if(190==n){if(t.shiftKey)return;r.complete(a,r)}57==n&&window.event.shiftKey&&i&&angular.element(i).show(),27==n&&i&&angular.element(i).hide()}),a.on("startCompletion",function(i){var e=i.state.completionActive,r=(e.options.completeSingle=!1,e.pick);e.pick=function(e,t){var n=e.list[t];CodeMirror.signal(i,"codemirror_hint_pick",{data:n,editor:i}),r.apply(this,arguments)}}),a.on("codemirror_hint_pick",function(e){var t=e.data.data,e=e.editor,n=e.getCursor(),t=t.type;t&&-1!=t.indexOf("fn(")&&("("!=e.getTokenAt({ch:n.ch+1,line:n.line}).string?(e.replaceRange("()",{line:n.line,ch:n.ch},{line:n.line,ch:n.ch}),t&&"fn()"!==t.substr(0,4)&&angular.element("div.CodeMirror-Tern-tooltip")[0]&&(e.execCommand("goCharLeft"),setTimeout(function(){var e=document.getElementsByClassName("CodeMirror-Tern-tooltip")[0];e&&angular.element(e).show()},100))):t&&"fn()"!==t.substr(0,4)&&e.execCommand("goCharRight"))})})}}}]); angular.module("sn.$sp").directive("spScroll",function(){return{restrict:"C",link:function(o,r){o.$on("$sp.scroll",function(o,t){var e,l,n;t.selector?(e=r,l=t,n=$(l.offset).height()||0,$(e).animate({scrollTop:$(l.selector).offset().top-n-10},l.time)):$(r).scrollTop(t.position||0)})}}}); angular.module("sn.$sp").directive("spEditableField",["glideFormFactory","$http","spUtil","spModelUtil","$timeout","i18n","spAriaUtil",function(e,d,n,s,r,c,u){return{restrict:"E",templateUrl:"sp_editable_field.xml",scope:{fieldModel:"=",table:"@",tableId:"=",block:"=?",editableByUser:"=",onChange:"=?",onSubmit:"=?",asyncSubmitValidation:"=?"},transclude:!0,replace:!0,controller:["$scope",function(a){var t,o="/api/now/v2/table/",i=c.getMessage("{0} saved");function l(){var e=o+a.table+"/"+a.tableId+"?sysparm_display_value=all&sysparm_fields="+a.shadowModel.name,l=("password"!==a.shadowModel.type&&"password2"!==a.shadowModel.type||(e+="&sysparm_input_display_value=true"),{});l[a.shadowModel.name]=a.shadowModel.value,d.put(e,l).success(function(e){e.result&&(e=e.result)&&a.fieldModel.name in e&&(e=e[a.fieldModel.name],a.fieldModel.value=e.value,a.fieldModel.displayValue=e.display_value,a.checkNullChoiceOverride(),u.sendLiveMessage(n.format(i,{0:a.fieldModel.label||""}))),a.closePopover()}).error(function(e){console.log("Field update failure",e),n.retrieveSessionMessages()})}this.createShadowModel=function(){s.extendField(a.fieldModel),a.shadowModel=angular.copy(a.fieldModel),a.shadowModel.table=a.table,a.shadowModel.sys_id=a.tableId,a.blockDisplay=a.block?{display:"block"}:{},a.editable=!a.shadowModel.readonly&&a.editableByUser,a.fieldID=a.table+"-"+a.shadowModel.name.replace(".","_dot_")+"-"+a.tableId,t&&t.$private.events.cleanup(),t=e.create(a,a.table,a.tableId,[a.shadowModel],null,{uiMessageHandler:function(e,l,o){switch(l){case"infoMessage":n.addInfoMessage(o);break;case"errorMessage":n.addErrorMessage(o);break;case"clearMessages":n.clearMessages();break;default:return!1}}}),a.$emit("spEditableField.gForm.initialized",t,a.shadowModel),angular.isDefined(a.onChange)&&t.$private.events.on("change",function(e,l,o){return a.onChange.call(a.onChange,t,a.shadowModel,l,o)}),angular.isDefined(a.onSubmit)&&t.$private.events.on("submit",function(){return a.onSubmit.call(a.onSubmit,t,a.shadowModel)}),angular.isDefined(a.asyncSubmitValidation)||t.$private.events.on("submitted",function(){l()})},this.createShadowModel(),a.getGlideForm=function(){return t},a.saveForm=function(){t&&t.submit(),angular.isDefined(a.asyncSubmitValidation)&&a.asyncSubmitValidation(t,a.shadowModel).then(function(e){e&&l()})},a.checkNullChoiceOverride=function(){if("choice"==a.fieldModel.type&&!a.fieldModel.value&&!a.fieldModel.displayValue)for(var e=a.fieldModel.choices||[],l=0;l<e.length;l++)if(""==e[l].value)return void(a.fieldModel.displayValue=e[l].label)}}],link:function(d,n,e,l){var a=!0;function t(e){var l,o,a,t,i;l=e,d.shadowModel.popoverIsOpen&&!$(l.target).closest(".modal")[0]&&(i=window.tabbable(n[0].querySelector("[uib-popover-template-popup]"))).length&&(t=n.find(".select2-focusser")[0],a=n.find(".select2-search-choice-close")[0],t=i.indexOf(t),a=i.indexOf(a),o=[],o=-1!==a?function(e,l,o){var a=e[l];return e[l]=e[o],e[o]=a,e}(i,a,t):i.slice(),a=o.indexOf(document.activeElement),t=o[0],i=o[o.length-1],-1!=a&&9===l.which&&(l.shiftKey?document.activeElement===t?i.focus():o[a-1]&&o[a-1].focus():document.activeElement===i?t.focus():o[a+1]&&o[a+1].focus(),l.preventDefault(),l.stopPropagation())),27!==e.which||s()||$("[uib-popover-template-popup]").find(".tooltip.in").length||d.$evalAsync("closePopover()")}function s(){var e=$(".modal.in");return e.length&&!e.find(".sp-editable-field .popover").length}function i(e){var e=$(e.target),l=e.attr("ng-click")&&"closePopover()"===e.attr("ng-click"),o=e.attr("ng-click")&&"saveForm()"===e.attr("ng-click");l||o||e.closest(".popover-"+d.fieldID).length||e.closest(".popover-trigger-"+d.fieldID).length||e.closest("[uib-popover-template-popup]").length||""===e.attr("uib-popover-template-popup")||s()||(a=!1,d.$evalAsync("closePopover()"))}d.checkNullChoiceOverride(),d.closePopover=function(){d.shadowModel.popoverIsOpen&&l.createShadowModel(),d.shadowModel.popoverIsOpen=!1,a&&n[0].querySelector(".popover-trigger-"+d.fieldID).focus(),$("body").off("keydown",t),$("body").off("click",i)},d.toggleClick=function(e){"click"===e.type&&d.togglePopover(e)},d.toggleKeydown=function(e){13!==e.which&&32!==e.which||(d.togglePopover(e),e.preventDefault(),e.stopPropagation())},d.togglePopover=function(e){d.shadowModel.popoverIsOpen=!d.shadowModel.popoverIsOpen,d.shadowModel.value=d.shadowModel.stagedValue=d.fieldModel.value,d.shadowModel.displayValue=d.fieldModel.displayValue,r(function(){var e=n.parent().find(".popover")[0];e&&(e.setAttribute("role","dialog"),e.setAttribute("aria-label",d.shadowModel.label))},0);var l,o=n.parent().find(".bs-popover")[0];o&&(l=o.getAttribute("aria-expanded"),o.setAttribute("aria-expanded","true"!==l)),d.shadowModel.popoverIsOpen&&(a=!0,$("body").on("keydown",t),$("body").on("click",i))},d.$on("$destroy",function(){$("body").off("keydown",t),$("body").off("click",i)}),d.$on("sp.spFormField.rendered",function(e,l,o){var a=o.parent()[0].querySelector(".select2-container input");r(function(){(a||o).focus()},0,!1)})}}}]),angular.module("sn.$sp").directive("spEditableField2",["glideFormFactory","$http","spUtil","spModelUtil",function(e,i,d,l){return{restrict:"E",templateUrl:"sp_editable_field2.xml",scope:{fieldModel:"=",table:"@",tableId:"=",block:"=?",editableByUser:"=",onChange:"=?",onSubmit:"=?",label:"@?"},transclude:!0,replace:!0,controller:["$scope",function(a){var t,o="/api/now/v2/table/";a.fieldModel=a.fieldModel||{},angular.isDefined(a.label)&&(a.fieldModel.label=a.label),a.editable=!a.fieldModel.readonly&&a.editableByUser,a.fieldID=a.table+"-"+a.fieldModel.name+"-"+a.tableId,t&&t.$private.events.cleanup(),l.extendField(a.fieldModel),t=e.create(a,a.table,a.tableId,[a.fieldModel],null,{uiMessageHandler:function(e,l,o){switch(l){case"addInfoMessage":d.addInfoMessage(o);break;case"addErrorMessage":d.addErrorMessage(o)}}}),a.$emit("spEditableField.gForm.initialized",t,a.fieldModel),angular.isDefined(a.onChange)&&t.$private.events.on("change",function(e,l,o){return a.onChange.call(a.onChange,t,a.fieldModel,l,o)}),angular.isDefined(a.onSubmit)&&t.$private.events.on("submit",function(){return a.onSubmit.call(a.onSubmit,t)}),t.$private.events.on("submitted",function(){var e,l;e=o+a.table+"/"+a.tableId+"?sysparm_fields="+a.fieldModel.name,(l={})[a.fieldModel.name]=a.fieldModel.value,i.put(e,l).success(function(e){console.log("Field update successful",e)}).error(function(e){console.log("Field update failure",e),d.retrieveSessionMessages()})}),a.getGlideForm=function(){return t},a.$on("sp.spEditableField.save",function(e,l){l==a.fieldModel&&a.saveForm()}),a.saveForm=function(){t&&t.submit()}}]}}]); angular.module("sn.$sp").directive("snFieldListElement",["$http","$sanitize","i18n","$filter","nowServer","$timeout",function(w,e,_,k,n,l){"use strict";return{restrict:"E",replace:!0,scope:{field:"=",snChange:"&",getGlideForm:"&glideForm",snDisabled:"="},template:'<input type="text" ng-disabled="snDisabled" class="input-field-min-width" name="{{::field.name}}" ng-model="field.value" id="sp_formfield_{{::field.name}}"/>',controller:["$scope",function(t){t.table=t.field.ed.dependent_value,l(function(){t.$watch("field.dependentValue",function(e,l){(e||l)&&(t.table=t.field.dependentValue),angular.isDefined(e)&&e!=l&&(e!=l&&console.log("Should have changed tables to "+e),l=n.getURL("table_fields","exclude_formatters=true&fd_table="+e),w.post(l).success(function(e){t.field.choices=e,t.field.ed.dependent_value&&(t.field.value=t.field.displayValue="")}))})})}],link:function(s,e){var a,l,r=k("orderBy"),t=!1,c={},o=[],u="",n=(s.field.value,s.field.value),i="",d=_.getMessage("Remove");var f={query:function(t){u=t.term,i=i||s.table,0==o.length||i!=s.table?g(s.table,function(e,l){o=l,v(t),i=s.table}):v(t)},initSelection:function(e,l){if(s.field.displayValue){for(var t=[],n=s.field.value.split(","),i=s.field.displayValue.split(","),a=0;a<n.length;a++)t.push({id:n[a],text:i[a]});l(t)}else l([])},formatResult:function(e){var l=e.text;return e.reference&&!e.children&&(l+="<span class='expand fa fa-chevron-right flip-icon-rtl sp-custom-pull-right' data-id='"+e.id+"' data-reference='"+e.reference+"'></span>"),l},formatSelectionCssClass:function(e,l){var l=l.parent().find("a");l.removeAttr("tabindex"),l.addClass("fa fa-times"),l.append((l=e.text,jQuery("<span class='sr-only' />").text(d+" "+l)))}},p={i18n:_,containerCssClass:"select2-reference ng-form-element",placeholder:" ",allowClear:!0,query:f.query,initSelection:f.initSelection,formatResult:f.formatResult,formatSelectionCssClass:f.formatSelectionCssClass,closeOnSelect:!1,multiple:!0};function v(e){var l,t={results:[]};for(l in o){var n=o[l];(0==e.term.length||0<=n.text.toUpperCase().indexOf(e.term.toUpperCase())||0<=n.id.toUpperCase().indexOf(e.term.toUpperCase()))&&t.results.push(n)}e.callback(t)}function m(e){var n,i;e.preventDefault(),e.stopPropagation(),"click"==e.type&&(e=angular.element(this),l=e.parents("ul.select2-results").scrollTop(),n=e.data(),i=function(e){var l=e.split("."),t=h(l[0],o);if(1<l.length)for(var n=1;n<l.length;n++)t=h(l[n],t.children);return t}(n.id),g(n.reference,function(e,l){for(var t=0;t<l.length;t++)l[t].id=n.id+"."+l[t].id;i.children=l,a.select2("search",u)}))}function h(e,l){for(var t=0;t<l.length;t++)if(l[t].fieldName==e)return l[t]}function g(t,n){var e;function i(e){var l,t,n=[],i=c[e];for(t in i)l=i[t],n.push({fieldName:l.name,id:l.name,text:l.label,reference:l.reference});return r(n,"text",!1)}t in c?(e=i(t),n.call(this,t,e)):w.get("/api/now/ui/meta/"+t).then(function(e){var l=[];e.data&&e.data.result&&e.data.result.columns&&(c[t]=e.data.result.columns,l=i(t)),n.call(this,t,l)})}function b(){l&&s.$evalAsync(function(){angular.element("ul.select2-results").scrollTop(l),l=null})}function y(){angular.element("ul.select2-results").on("mousedown click mouseup","span.expand",m)}function C(){angular.element("ul.select2-results").off("mousedown click mouseup","span.expand",m)}function x(e){var l;s.field.displayValue!=s.field.value?(l=s.field.value,$([],e),$(l.split(","),e)):$(e.val,e)}function S(e){var l,t=e.choice;""!=t.id&&((l=""==s.field.value?[]:s.field.value.split(",")).push(t.id),$(l,e))}function V(e){for(var l=e.choice,t=s.field.value.split(","),n=t.length-1;0<=n;n--)if(l.id==t[n]){t.splice(n,1);break}$(t,e)}function $(e,l){t=!0,n=s.field.value,s.field.value=s.field.displayValue=e.join(","),l.preventDefault(),a.select2("val",s.field.value.split(",")),s.$apply(function(){s.snChange&&s.snChange({field:s.field,newValue:s.field.value,displayValue:s.field.displayValue,oldValue:n}),t=!1})}s.$watch("field.value",function(e){t||angular.isDefined(e)&&a&&a.select2("val",e.split(",")).select2("close")}),s.$evalAsync(function(){e.css("opacity",1),e.select2("destroy"),(a=e.select2(p)).bind("select2-open",y),a.bind("select2-close",C),a.bind("select2-selecting",S),a.bind("select2-removing",V),a.bind("change",x),a.bind("select2-loaded",b);new Sortable(a.select2("container").find("ul.select2-choices").get(0),{onStart:function(){a.select2("onSortStart")},onEnd:function(){a.select2("onSortEnd")}})})}}}]); angular.module("sn.$sp").directive("spReferenceElement",["$http","spUtil","filterExpressionParser","escapeHtml","i18n","md5","spIs","spAriaUtil","select2EventBroker","spAriaFocusManager",function(k,D,E,I,q,F,M,N,T,L){"use strict";var j=" ";return{restrict:"E",replace:!0,scope:{ed:"=?",field:"=",refTable:"=?",refId:"=?",snOptions:"=?",snOnBlur:"&",snOnClose:"&",minimumInputLength:"@",snDisabled:"=",dropdownCssClass:"@",formatResultCssClass:"&",displayColumn:"@",recordValues:"&",getGlideForm:"&glideForm",domain:"@",snSelectWidth:"@",labelId:"@?"},template:'<input type="text" id="sp_formfield_{{::field.name}}" name="{{::field.name}}" ng-disabled="snDisabled" class="input-field-min-width" aria-hidden="true" />',link:function(d,c,e,a){d.cacheData={},d.ed=d.ed||d.field.ed,d.selectWidth=d.snSelectWidth||"100%",c.css("opacity",0);var u,i=!1,r=!0,p=d.field,o=d.snOptions&&!0===d.snOptions.multiple,t=(angular.isDefined(d.getGlideForm)&&(u=d.getGlideForm()),p.table_attributes||{}),n={},n=p.attributes&&void 0===d.ed.attributes?Array.isArray(p.attributes)?p.attributes:D.parseAttributes(p.attributes):D.parseAttributes(d.ed.attributes),f=l("ref_ac_order_by"),m=l("ref_sequence"),_="true"==l("ref_ac_columns_search"),g=l("ref_ac_columns"),s=l("ref_auto_completer")||"AJAXReferenceCompleter";function l(e){return angular.isDefined(n[e])?n[e]:angular.isDefined(t[e])?t[e]:""}function v(){var e=j;return p.placeholder&&(e=p.placeholder),e=d.snOptions&&d.snOptions.placeholder?d.snOptions.placeholder:e}var h={formatSelection:function(e){return I(V(e))},formatSelectionCssClass:function(e,t){t=t.parent().find("a"),t.removeAttr("tabindex"),t.addClass("fa fa-times"),e=q.getMessage("Remove {0} from {1}").withValues([V(e),p.label]);t.attr({"aria-label":e,"data-toggle":"tooltip","data-container":"body",title:e})},formatResult:function(e){var t=function(e){var t=[];e&&e.sys_id&&t.push(V(e));if(g&&"AJAXTableCompleter"===s)for(var a,i=g.split(";"),r=e&&e.$$displayField,n=0;n<i.length;n++)r!==i[n]&&(a=i[n],t.push(e[a]||""));return t}(e);if(1==t.length)return I(t[0]);if(1<t.length){for(var a=100/t.length,i="",r=0;r<t.length;r++)i+="<div style='width: "+a+"%;display: inline-block;word-wrap:break-word;vertical-align:top' class='select2-result-cell'>"+I(t[r])+"</div>";return i}return""},search:function(t){var a=F(JSON.stringify(t.data)),e=d.cacheData[a];return e?t.success(e):(e=D.getURL({sysparm_type:"sp_ref_list_data",sysparm_cancelable:!0}),k.post(e,t.data).then(function(e){e.data&&e.data.items&&(d.cacheData[a]=e,t.success(e))}))},initSelection:function(e,t){if(p.displayValue)if(o){var a=p._pricing&&!0===p._pricing.pricing_implications,i=[],r="string"==typeof p.value?p.value.split(","):p.value,n=p.display_value_list,s=[];if(a&&(s=p.price_value_list),Array.isArray(p.displayValue)){for(var l in n.length=0,p.displayValue)n[l]=p.displayValue[l];p.displayValue=n.join(g_glide_list_separator)}else if(1==r.length)n.length=0,n[0]=p.displayValue;else if(p.displayValue!=n.join(g_glide_list_separator)){n.length=0;var c=p.displayValue.split(",");for(l in c)n[l]=c[l]}for(l=0;l<r.length;l++)a?i.push({sys_id:r[l],name:n[l],pricing:s[l]}):i.push({sys_id:r[l],name:n[l]});t(i)}else t({sys_id:p.value,name:p.displayValue});else t([])},onSelecting:function(e){var t,a,i,r=e.choice;"sys_id"in r&&(t="string"==typeof p.value?""===p.value?[]:p.value.split(","):p.value,a=p.display_value_list,i=p.price_value_list,t.push(r.sys_id),a.push(V(r)),!0===p._cat_variable&&p._pricing&&!0===p._pricing.pricing_implications&&(R(r=function(e){var t={};e&&e.sys_id&&(t.price=e.price||0,t.recurring_price=e.recurring_price||0);return t}(r),!0),i&&i.push(r)),u.setValue(p.name,t.join(","),a),e.preventDefault(),c.select2("val",t).select2("close"),c.parent().find(".select2-input").removeAttr("aria-activedescendant"),c.parent().find(".select2-choices input[role='combobox']").focus())},onRemoving:function(e){for(var t=e.choice,a="string"==typeof p.value?p.value.split(","):p.value,i=p.display_value_list,r=p.price_value_list,n=a.length-1;0<=n;n--)if(t.sys_id==a[n]){a.splice(n,1),i.splice(n,1),!0===p._cat_variable&&p._pricing&&!0===p._pricing.pricing_implications&&r&&r.length>n&&(R(r[n],!1),r.splice(n,1));break}c.select2("focus"),u.setValue(p.name,a.join(","),i),e.preventDefault(),c.select2("val",a),0===i.length&&(c.parent().find(".select2-input").trigger("keyup"),b())},select2Change:function(e){var t,a,i;e.stopImmediatePropagation(),e.added?(i=(a=(t=e.added).ref_key_value||t.sys_id)?V(t):"",!0===p._cat_variable&&("price"in t||"recurring_price"in t)&&S(t.price,t.recurring_price),u.setValue(p.name,a,i),p.refTable=p.ed.reference):e.removed&&(!0===p._cat_variable&&S(0,0),u.clearValue(p.name)),"select2-removed"==e.type&&$(e.currentTarget).parent().find(".select2-focusser").focus(),b()},onOpening:function(e){T.publishSelect2Opening()}},y=jQuery("<span class='sr-only' />");function b(){p.value||v()!==j||c.parent().find(".select2-chosen").append(y),j!==v()&&c.parent().find(".select2-input").attr("placeholder",v())}function C(){c.parent().find(".select2-input").attr("placeholder","")}y.text(q.getMessage("Lookup using list"));var x={i18n:q,width:d.selectWidth,placeholder:v(),minimumInputLength:d.minimumInputLength?parseInt(d.minimumInputLength,10):0,containerCssClass:"select2-reference ng-form-element",allowClear:"false"!==e.allowClear,id:function(e){return e.sys_id},sortResults:d.snOptions&&d.snOptions.sortResults?d.snOptions.sortResults:void 0,ajax:{quietMillis:NOW.ac_wait_time,data:function(e,t){var a,i=E.parse(e,d.ed.defaultOperator),r="",n=function(){var e=["name"];_&&g?(e=g.split(";"),d.ed.searchField&&e.push(d.ed.searchField)):d.ed.searchField?e=[d.ed.searchField]:f&&(e=[f]);return e.filter(A)}(),s=[],l=""===e,c=(n.forEach(function(e){a="",p.ed.queryString&&(a+=p.ed.queryString+"^"),a+=e+i.operator+i.filterText,!l||g_sort_elements_by_session_language&&"en"!==g_lang||(a+="^"+e+"ISNOTEMPTY"),a+=function(){if(d.ed.excludeValues&&""!=d.ed.excludeValues)return"^sys_idNOT IN"+d.ed.excludeValues;return""}(),s.push(a)}),r+=s.join("^NQ"),[]),e=d.field.choice;!m||1!==e&&3!==e?f&&(c=f.split(";")):c=m.split("^");for(var o=0;o<c.length;o++)r+="^ORDERBY"+c[o].trim();n={start:d.pageSize*(t-1),count:d.pageSize,sysparm_target_table:d.refTable,sysparm_target_sys_id:d.refId,sysparm_target_field:p.name,table:d.ed.reference,qualifier:d.ed.qualifier,data_adapter:d.ed.data_adapter,attributes:d.ed.attributes,dependent_field:d.ed.dependent_field,dependent_table:d.ed.dependent_table,dependent_value:d.ed.dependent_value,p:d.ed.reference,q:r+="^EQ",r:d.ed.qualifier},l||(n.search_operation=!0),g&&(n.required_fields=g.split(";").join(":")),d.domain&&(n.sysparm_domain=d.domain),angular.isDefined(p)&&!0===p._cat_variable&&(delete n.sysparm_target_table,n.sysparm_include_variables=!0,n.variable_ids=p.sys_id,(e=u.$private.options("getFieldSequence"))&&(n.variable_sequence1=e()),t=u.$private.options("itemSysId"),n.sysparm_id=t,n.sysparm_query_refs=!1,(e=u.$private.options("getFieldParams"))&&angular.extend(n,e())),d.recordValues&&(n.sysparm_record_values=d.recordValues()),t=u.getEncodedRecord&&u.getEncodedRecord();return t&&(n.sysparm_encoded_record=t),n},results:function(e,t){return a.filterResults(e,t,d.pageSize)},transport:h.search},formatSelection:h.formatSelection,formatSelectionCssClass:h.formatSelectionCssClass,formatResult:h.formatResult,initSelection:h.initSelection,dropdownCssClass:e.dropdownCssClass,formatResultCssClass:d.formatResultCssClass||null,multiple:o};function w(e){var t=document.body.classList,a=document.body.parentElement.classList;navigator.userAgentData&&"Windows"==navigator.userAgentData.platform?e?t.add("hide-scrollbar"):t.remove("hide-scrollbar"):-1!=navigator.appVersion.indexOf("Windows")&&(-1!=navigator.userAgent.indexOf("Firefox")?e?a.add("hide-scrollbar"):a.remove("hide-scrollbar"):-1==navigator.userAgent.indexOf("Edg")&&-1==navigator.userAgent.indexOf("Chrome")||(e?t.add("hide-scrollbar"):t.remove("hide-scrollbar")))}function O(){var e="";return e+=p.label,p.displayValue&&(e+=" "+p.displayValue),e}function V(e){var t="";return e&&(e.ref_key_value||e.sys_id)&&(d.displayColumn&&void 0!==e[d.displayColumn]?t=e[d.displayColumn]:e.$$displayValue?t=e.$$displayValue:e.name?t=e.name:e.title&&(t=e.title)),t}function A(e,t,a){return a.indexOf(e)===t}function S(e,t){p.price=e,p.recurring_price=t}function R(e,t){p.price=Number(p.price),p.recurring_price=Number(p.recurring_price),p.price||(p.price=0),p.recurring_price||(p.recurring_price=0),1==t?(p.price+=Number(e.price),p.recurring_price+=Number(e.recurring_price)):(p.price-=Number(e.price),p.recurring_price-=Number(e.recurring_price))}o&&"sys_user"==d.ed.reference&&!d.field._cat_variable&&"true"!=l("no_email")&&(x.createSearchChoice=function(e){if(M.an.email(e))return{email:e,name:e,user_name:e,sys_id:e}}),d.snOptions&&d.snOptions.width&&(x.width=d.snOptions.width),u.$private.events.on("propertyChange",function(e,t,a){t==p.name&&"mandatory"==a&&c.parent().find(".select2-focusser").attr("aria-required",p.isMandatory())}),u.$private.events.on("change",function(e,t,a){e==p.name&&(""==a&&p.display_value_list&&(p.display_value_list.length=0,p.price_value_list&&(p.price_value_list.length=0)),o&&p.display_value_list&&0<p.display_value_list.length&&C(),o||t||!a||(e=q.format("A new preview button has been generated before the current element. To preview {0} details go back to preview button",p.displayValue),N.sendLiveMessage(e)),c.select2("val","string"==typeof a?a.split(","):a),(t=c.parent().find(".select2-focusser")).attr("aria-label",O()),t.attr("aria-required",p.isMandatory()),t.val(p.displayValue))}),d.$on("snReferencePicker.activate",function(e,t){$scope.$evalAsync(function(){c.select2("open")})}),d.$on("select2.ready",function(){d.labelId&&"reference"===d.field.type&&"true"==N.g_accessibility&&c.parent().find(".select2-focusser").attr("aria-labelledby",d.labelId)}),d.$evalAsync(function(){c.css("opacity",1),c.select2("destroy");c.select2(x);c.select2("val","string"==typeof p.value?p.value.split(","):p.value),e=!1,a=c.data("select2"),(o?a.container.find(".select2-choices input[role='combobox']"):a.focusser).attr("aria-expanded",e),o||(a=c.parent().find(".select2-search-choice-close"),e=(e=d.field)&&e.label?q.format(q.getMessage("Clear field {0}"),e.label):q.getMessage("Clear"),a.attr({"aria-label":e,title:e,tabindex:0,role:"button","data-toggle":"tooltip","data-container":"body"}),a.on("keydown",function(e){13!==e.which&&32!==e.which||c.select2("val","",!0)})),o?(c.bind("select2-selecting",h.onSelecting),c.bind("select2-removing",h.onRemoving),c.parent().on("keyup",".select2-search-choice-close",function(e){32===e.which&&(e.stopImmediatePropagation(),e.target.click())})):c.bind("change select2-removed",h.select2Change),c.bind("select2-opening",h.onOpening),c.bind("select2-blur",function(){d.$evalAsync(function(){var e,t;d.snOnBlur(),""!==p.value&&(e="string"==typeof p.value?p.value.split(","):p.value,t=p.display_value_list,u.setValue(p.name,e.join(","),t))})}),c.bind("select2-open",function(){w(!0);var e=c.data("select2").search.val();0===e.indexOf(p.displayValue)&&(e=e.slice(p.displayValue.length)),c.select2("search",e.trim()),i=!0,o?(c.parent().find(".select2-choices input[role='combobox']").attr("aria-expanded",i),b()):c.parent().find(".select2-focusser").attr("aria-expanded",i)}),c.bind("select2-close",function(){var e;w(!1),i=!1,o?(c.parent().find(".select2-choices input[role='combobox']").attr("aria-expanded",i),C()):((e=c.parent().find(".select2-focusser")).val(p.displayValue),e.attr("aria-expanded",i))}),r&&(d.$emit("select2.ready",c),r=!1),(!o||p.display_value_list&&0===p.display_value_list.length)&&b(),c.parent().find(".select2-input").attr("autocomplete","off"),o&&c.parent().find(".select2-input").on("focus",function(e){var t=p.display_value_list.length;0<t&&(t=1===t?q.getMessage("1 item selected"):q.format(q.getMessage("{0} items selected"),t),N.sendLiveMessage(t,"status"))}).parent().attr("aria-hidden","true"),$(c).on("select2.disabled.toggle",function(e){L.enableFocusOnDisabledSelect2(e)});var l,e=c.parent().find("ul.select2-results"),t=(o?(a=c.parent().find(".select2-choices input[role='combobox']"),c.parent().find("ul.select2-choices").removeAttr("role"),a.attr("aria-expanded",i),a.attr("aria-owns",e.attr("id")),c.parent().find(".select2-choices").addClass("form-control")):((a=c.parent().find(".select2-focusser")).removeAttr("aria-labelledby"),a.attr("aria-label",O()),a.attr("aria-required",p.isMandatory()),a.attr("aria-expanded",i),a.attr("aria-owns",e.attr("id")),a.val(p.displayValue)),e.attr("aria-label",p.label),c.parent().find(".select2-choice")),a=c.parent().find(".select2-search-choice-close"),e=(t.attr("aria-hidden","true"),a.on("focus blur",function(e){"focus"===e.type?t.attr("aria-hidden","false"):setTimeout(function(){t.attr("aria-hidden","true")},50)}),t.addClass("form-control"),c.parent().find(".select2-focusser").on("keydown",function(e){40!==e.which&&38!==e.which||c.select2("open")}),o||(c.on("click",function(e){var t=c.parent().find(".select2-focusser")[0];t&&"-1"===t.getAttribute("tabindex")&&t.removeAttribute("tabindex")}),(l=c.parent().parent()).on("keydown",function(e){var t=$(e.target).closest(".popover-content")[0];if(!t){var t=c.parent().find(".select2-focusser")[0],a=(t&&t.removeAttribute("tabindex"),window.tabbable(l[0]));if(a.length){var i=c.parent().find(".select2-search-choice-close")[0],r=a.indexOf(t),n=a.indexOf(i);if(-1!==n){r=r,s=(a=a)[n],a[n]=a[r],a[r]=s;var n=a,r=n.indexOf(document.activeElement),s=n[0];if(-1!=r&&(document.activeElement!==i||e.shiftKey||t.setAttribute("tabindex","-1"),9===e.which)){if(e.shiftKey){if(document.activeElement===s)return;n[r-1]&&n[r-1].focus()}else{if(document.activeElement===i)return;n[r+1]&&n[r+1].focus()}event.preventDefault(),event.stopPropagation()}}}}}),(e=c.parent().find(".select2-focusser")[0])&&(a=$._data(e,"events")["keyup-change"],$.isArray(a)&&a.pop())),c.parent().find(".select2-focusser")[0]);e&&(a=$._data(e,"events").keydown,$.isArray(a)&&a.unshift(a.pop()))})},controller:["$scope","$rootScope",function(a,e){a.pageSize=NOW.ac_max_search_matches,this.filterResults=function(e,t){return{results:e.data.items,more:t*a.pageSize<e.data.total}}}]}}]); angular.module("sn.$sp").directive("spCurrencyElement",function(){return{templateUrl:"sp_element_currency.xml",restrict:"E",replace:!0,scope:{field:"=",snBlur:"&",snChange:"&",getGlideForm:"&glideForm"},controller:["$scope",function(n){var e=n.getGlideForm(),c=n.field;n.field.currencyValue=formatNumber(c.currencyValue),e.$private.events.on("change",function(e,r,n){e==c.name&&(0<n.indexOf(";")?(e=n.split(";"),c.currencyCode=e[0],c.currencyValue=formatNumber(e[1])):c.currencyValue=formatNumber(n))}),n.formatValue=function(e){var r=c.currencyValue;""!=c.currencyValue&&(r=c.currencyCode+";"+c.currencyValue),c.stagedValue=r,n.snChange(),e&&n.snBlur()}}]}}); angular.module("sn.$sp").directive("spDurationElement",["spLabelHelper","spAriaUtil","i18n",function(l,r,u){"use strict";return void 0!==moment.tz&&moment.tz.setDefault(g_tz),{restrict:"E",replace:!0,require:"ngModel",templateUrl:"sp_element_duration.xml",link:function(i,e,s,a){var n;function t(e){return e?1==e.length&&(e="0"+e):e="00",e}i.field=i.$eval(s.field),i.labelElement=e.find("legend"),i.visibleUnits=(s=i.field.attributes,(n={days:[e="days","hours","minutes","seconds"],hours:["hours","minutes","seconds"],minutes:["minutes","seconds"],seconds:["seconds"]})[e=s&&s.max_unit&&s.max_unit in n?s.max_unit:e]),i.field.mandatory_filled=function(){return!(!i.field.stagedValue||"1970-01-01 00:00:00"==i.field.stagedValue)},i.syncFieldAriaLabel=l.syncFieldAriaLabel,i.getFieldAriaLabel=l.getFieldAriaLabel,i.accessible=r.isAccessibilityEnabled(),i.durationUnits={hours:u.getMessage("Hours"),minutes:u.getMessage("Minutes"),seconds:u.getMessage("Seconds"),days:u.getMessage("Days")},a.$formatters.push(function(){var e,s,n,t;return a.$modelValue?(e=(t=function(e){var s=e.split(" ");if(1===s.length&&0<e.indexOf(":")&&s.unshift("0"),2==s.length){for(var n=s[1].split(":"),t=0;t<n.length;t++)s[1+t]=n[t];e=s[0].split("-");3==e.length&&(s[0]=parseInt(Date.parse(e[1]+"/"+e[2]+"/"+e[0]+" 00:00:00 UTC"))/864e5)}return s}(a.$modelValue))[0],s=t[1],n=t[2],t=t[3],i.field.value=e+" "+s+":"+n+":"+t,"hours"==i.visibleUnits[0]?(s=+s+24*e+"",e=0):"minutes"==i.visibleUnits[0]?(n=+n+60*s+1440*e+"",e=s=0):"seconds"==i.visibleUnits[0]&&(t=+t+60*n+3600*s+86400*e+"",e=s=n=0),{days:e,hours:s,minutes:n,seconds:t}):{days:0,hours:0,minutes:0,seconds:0}}),a.$render=function(){i.parts=a.$viewValue},a.$parsers.push(function(e){return!i.field.mandatory||parseInt(e.days)||parseInt(e.hours)||parseInt(e.minutes)||parseInt(e.seconds)?e.days+" "+t(e.hours)+":"+t(e.minutes)+":"+t(e.seconds):""}),i.updateDuration=function(){i.field.mandatory&&!i.field.mandatory_filled()&&(i.field.value=""),a.$setViewValue(angular.copy(i.parts))},i.getGlideForm().$private.events.on("propertyChange",function(e,s,n,t){s==i.field.name&&"readonly"===n&&i.syncFieldAriaLabel(i)})}}}]); angular.module("sn.$sp").directive("spEmailElement",["getTemplateUrl",function(e){"use strict";return{restrict:"E",templateUrl:"sp_element_email.xml"}}]); angular.module("sn.$sp").directive("spMaskElement",["i18n",function(i){"use strict";return{restrict:"E",scope:{field:"=",onChange:"&snChange",onBlur:"&snBlur",disabled:"=snDisabled",placeholder:"=",getGlideForm:"&glideForm"},templateUrl:"sp_element_mask.xml",controller:["$scope",function(e){var l=this,a="**********";e.inputType="password",e.toggleShowHide=i.getMessage("u_show"),e.field.catalog_view_masked||""==e.field.stagedValue||(e.field.stagedValue=a),e.modelValueChange=function(){e.field._setFromModel=!0,e.getGlideForm().setValue(e.field.name,e.field.stagedValue)},e.handleValueChanged=function(){e.modelValueChange(),l.validate()},l.validate=function(){e.field.stagedValue!==e.field.confirmPassword&&1==e.field.useConfirmation?e.field.isInvalid=!0:e.field.isInvalid=!1,e.onChange()},l.cleanData=function(){e.field.stagedValue===a&&(e.field.stagedValue="",e.field.confirmPassword="")},l.togglePassword=function(){"password"==e.inputType?(e.toggleShowHide=i.getMessage("u_hide"),e.inputType="text"):(e.toggleShowHide=i.getMessage("u_show"),e.inputType="password")}}],controllerAs:"c",link:function(e,l,a){e.field.isInvalid=!1,e.field.confirmPassword=e.field.stagedValue,e.reEnter=i.format(i.getMessage("Re-enter `{0}`"),e.field.label),e.misMatch=i.getMessage("Confirmation must match")}}}]); angular.module("sn.$sp").directive("spHelpTag",["$sce","i18n","spAriaUtil","spLabelHelper",function(l,e,t,i){"use strict";return{restrict:"E",templateUrl:"sp_help_tag.xml",scope:{field:"="},controller:["$scope",function(e){e.trustedHTML=function(e){return l.trustAsHtml(e)},e.accessible=t.isAccessibilityEnabled(),e.getFieldAriaLabel=i.getFieldAriaLabel}],link:function(l,t){l.hideHelp=function(e){l.field.expand_help=!1,t[0].firstElementChild.focus(),e.preventDefault()},l.getHelpAriaLabel=function(){return e.format(e.getMessage("{h} for {f}"),{f:l.field.label,h:l.field.help_tag})},l.toggleHelpText=function(e){l.field.expand_help=!l.field.expand_help,t[0].firstElementChild.focus(),e.preventDefault()}}}}]); angular.module("sn.$sp").directive("spUrlElement",["$rootScope","i18n",function(e,l){return{restrict:"E",replace:!0,templateUrl:"sp_element_url.xml",require:"?ngModel",scope:{field:"="},controller:["$scope",function(e){}],link:function(c,e,l){var n=l.unlockEmptyUrl,p="sp_formfield_"+l.name,r=e.find('[id*="empty_url"]'),l=e.find('button[id*="_lock"]'),i=e.find('button[id*="_unlock"]');function a(e){return"string"!=typeof e?e:document.getElementById(e)}c.field.value||"true"!=n||($(r).css("display","none"),e.find("input").css("display",""),e.find("a").css("display","none"),l.css("display",""),i.css("display","none")),l.on("click",function(){var e=this,l=p,n=p,i=p+"_link",s=p,t=p+"_link",o=!0;c.field.value||$(r).css("display",""),e&&(e.style.display="none"),(e=a(l+"_unlock")).style.display="",a(n).style.display="none",a(i).style.display="inline-block",l=a(s).value,(n=a(t)).href&&(n.href=l,n.style.removeProperty("display")),n.innerHTML=l.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"),o&&e.focus()}),i.on("click",function(){var e=this,l=p,n=p,i=p+"_link";$(r).css("display","none"),e&&(e.style.display="none"),(e=a(l+"_lock"))&&(e.style.display="inline-block"),(l=a(n)).style.display="",a(i).style.display="none",l.focus()})}}}]); angular.module("sn.$sp").directive("spVariableAttachment",["spModal","getTemplateUrl","snAttachmentHandler","spScUtil","cabrillo","i18n","$http","spAriaUtil","$timeout",function(e,t,i,d,a,s,n,o,c){return{restrict:"E",replace:!0,templateUrl:t("sp_variable_attachment.xml"),scope:{field:"=?",attachmentGuid:"=?",gForm:"&"},controller:["$scope","$location",function(n,e){n.isNative=a.isNative(),n.uploading=!1,n.uploadAttachment=function(){n.field.displayValue&&n.field.enableDeleteAttachment&&!confirm(s.getMessage("Updating the attachment will delete the previous attachment permanently. Do you want to continue?"))||a.attachments.addFile("ZZ_YY"+n.getRecordTableName(),n.getRecordId(),null,null).then(function(e){var t;e&&(t={name:e.file_name,size:e.size_bytes},n.validateAttachment(t)&&(t=n.field.value,n.field.state=e.state,n.field.content_type=e.content_type,n.field.file_name=e.file_name,n.gForm().setValue(n.field.name,e.sys_id,e.file_name),n.field.enableDeleteAttachment&&n.updateAttachmentBackendValues(t,e.sys_id,e.file_name)))},function(){n.uploading=!1})},n.isItemView=function(){return"sc_cart_item"==n.getRecordTableName()&&"cart"!=e.$$search.edit},n.updateAttachmentBackendValues=function(e,t,a){e?n.deleteAttachmentAndUpdateOptions({name:n.field.name,value:e,newValue:t,newDisplayValue:a,isUpdate:!0}):n.isItemView()||((e={})[n.field.name]=n.gForm().getValue(n.field.name),d.saveVariables(n.getRecordTableName(),n.getRecordId(),e))}}],link:function(l,a){var n=s.getMessage("{0} Attached");l.onAttachmentSelect=function(e){var t,a;0!=e.length&&(t={name:e[0].name,size:e[0].size},l.validateAttachment(t)&&(a=l.field.value,l.uploading=!0,l.field.isInvalid=!0,i.create("ZZ_YY"+l.getRecordTableName(),l.getRecordId()).uploadAttachment(e[0]).then(function(e){l.uploading=!1,l.field.state=e.state,l.field.content_type=e.content_type,l.field.file_name=e.file_name,l.gForm().setValue(l.field.name,e.sys_id,e.file_name),l.field.enableDeleteAttachment&&l.updateAttachmentBackendValues(a,e.sys_id,e.file_name),c(function(){o.sendLiveMessage(n.withValues([e.file_name]))},1e3)},function(e){l.uploading=!1,l.field.isInvalid=!1})),e[0]="")},l.openAttachmentSelector=function(t){l.uploading||(l.field.displayValue&&l.field.enableDeleteAttachment?e.confirm(s.getMessage("Updating the attachment will delete the previous attachment permanently. Do you want to continue?")).then(function(e){e&&(t.stopPropagation(),a.find("input[type=file]").click())}):(t.stopPropagation(),a.find("input[type=file]").click()))},l.deleteAttachmentAndUpdateOptions=function(t){i.deleteAttachment(t.value).then(function(){var e;t.isUpdate||l.gForm().setValue(t.name,t.newValue,t.newDisplayValue),l.isItemView()||((e={})[t.name]=t.newValue,d.saveVariables(l.getRecordTableName(),l.getRecordId(),e)),l.setFocus("sp_formfield_"+t.name),o.sendLiveMessage(s.getMessage("Attachment deleted successfully"))},function(e){console.log("Failed to delete Attachment",e)})},l.deleteAttachment=function(){l.field.enableDeleteAttachment?l.isNative?confirm(s.getMessage("Delete Attachment?"))&&l.deleteAttachmentAndUpdateOptions({name:l.field.name,value:l.field.value,newValue:"",newDisplayValue:"",isUpdate:!1}):e.confirm(s.getMessage("Delete Attachment?")).then(function(e){e&&l.deleteAttachmentAndUpdateOptions({name:l.field.name,value:l.field.value,newValue:"",newDisplayValue:"",isUpdate:!1})}):(l.gForm().setValue(l.field.name,"",""),l.setFocus("sp_formfield_"+l.field.name),o.sendLiveMessage(s.getMessage("Attachment deleted successfully")))},l.scanAttachment=function(){var e,t;"not_available"==l.field.state?i.showMessage("error",s.getMessage("Upload file scan failed").withValues([l.field.displayValue])):(e=l.field.displayValue.lastIndexOf(".")+1,e=l.field.displayValue.substring(e).toLowerCase(),e=l.field.content_type||e,t=l.field.file_name||l.field.displayValue,i.scanAttachment({sys_id:l.field.value,content_type:e,file_name:t}))},l.setFocus=function(e){e=document.getElementById(e);e&&e.focus()},l.setAriaLabel=function(e){a.find("#sp_formfield_"+l.field.name).attr("aria-label",e)},l.validateAttachment=function(e){var t,a=new Array,n=(l.field.attributes.allowed_extensions&&(a=l.field.attributes.allowed_extensions.split(";")),{name:l.field.name,allowedExtensions:a,allowedFileSize:l.field.attributes.max_file_size}),a=validateAttachmentVariable(e,n);return l.field.validated=!0,a==ATTACHMENT_SIZE_ERROR?(t=s.format(s.getMessage("The size of the uploaded file cannot exceed {0} MB"),n.allowedFileSize),l.gForm().hideFieldMsg(n.name),c(function(){l.gForm().showFieldMsg(n.name,t,"error")},1e3),!1):a!=EXTENSION_ERROR||(t=s.format(s.getMessage("The uploaded file type is not permitted; allowed types are {0}"),n.allowedExtensions.join(", ")),l.gForm().hideFieldMsg(n.name),c(function(){l.gForm().showFieldMsg(n.name,t,"error")},1e3),!1)},l.getRecordId=function(){return"sc_cart_item"==l.getRecordTableName()?l.attachmentGuid:l.field.recordSysId},l.getRecordTableName=function(){return l.field.recordTableName||l.gForm().recordTableName}}}}]); angular.module("sn.$sp").directive("spCatalogVariable",["spSCConf",function(n){"use strict";return{restrict:"E",templateUrl:"sp_catalog_variable.xml",link:function(t,a,e,l){t.spSCConf=n}}}]); angular.module("sn.$sp").directive("spScMultiRowElement",["$http","spModal","spUtil","i18n","$sce","spScUtil","cabrillo","spAriaUtil",function(t,u,i,c,_,v,p,g){"use strict";function f(e,a){return t({method:"POST",url:i.getWidgetURL("widget-modal"),headers:i.getHeaders(),data:function(e,a){var t,i={embeddedWidgetId:"sc-multi-row-active-row",embeddedWidgetOptions:{action:e,source_table:"",source_id:"",row_data:{},variable_set_id:"",variable_set_name:"",cat_item:"",native_mobile:"",parent:{}},backdrop:"static",keyboard:!1,size:"lg",modalLabel:a.modalLabel};for(t in i.embeddedWidgetOptions)void 0!==a[t]&&(i.embeddedWidgetOptions[t]=a[t]);return i}(e,a)})}function m(e){return void 0===e||""==e}var y="add",b="edit",h="7";return{restrict:"E",templateUrl:"sp_element_sc_multi_row.xml",controllerAs:"c",scope:{field:"=",getGlideForm:"&glideForm",native:"=?",parentFields:"="},controller:["$scope",function(n){var o=n.field,e=n.getGlideForm(),a=(this.isMEE=p.isNative()&&n.native,this.disableMRVSActions=!1,n.parentFields),t=(this.addButtonAriaLabel=c.format(c.getMessage("Add a row for {0}"),o.label),this.removeAllButtonAriaLabel=c.format(c.getMessage("Remove all rows for {0}"),o.label),[]);function i(){return{variable_set_id:o.sys_id,variable_set_name:o.name,source_table:o.source_table,source_id:o.source_id,cat_item:o.cat_item,native_mobile:p.isNative()&&n.native,parent:(i=a,e=["value"],l={},Object.keys(i).forEach(function(a){var t;a&&(t={},e.forEach(function(e){t[e]=i[a]&&i[a][e]?i[a][e]:""}),l[a]=t)}),l),modalLabel:o.label};var i,e,l}function l(){n.getGlideForm().setValue(o.name,"",""),$("#"+o.sys_id+"_add_row").focus().after(function(){d(c.getMessage("All rows have been deleted"),500)})}function r(){for(var e=0;e<t.length;e++)t[e].call(null);t=[]}function s(e){var a=angular.copy(o._value)||[],t=angular.copy(o._displayValue)||[];a.splice(e,1),t.splice(e,1),o.validated=!0,(0!==a.length?(n.getGlideForm().setValue(o.name,JSON.stringify(a),JSON.stringify(t)),t=e===a.length?e-1:e,$("#remove-row-"+t)):(n.getGlideForm().setValue(o.name,"",""),$("#"+o.sys_id+"_add_row"))).focus().after(function(){d(c.getMessage("Row has been deleted"),500)})}function d(e,a){e&&(a=a||0,setTimeout(function(){g.sendLiveMessage(e)},a))}n.$on("$sp.sc_multi_row.create_row",function(e,a,t){o.id==a&&o.cat_item==t&&n.c.createRow()}),e.$private.events.on("change",function(e,a,t){e===o.name&&(o.skipOnChangeUpdate?o.skipOnChangeUpdate=!1:(o._value=m(t)?[]:JSON.parse(t),0<o._value.length?(o._loadingData=!0,v.getDisplayValueForMultiRowSet(o.id,o.value).then(function(e){e.data&&(o.displayValue=e.data.result,o._displayValue=JSON.parse(e.data.result),o._loadingData=!1)})):(o.displayValue=[],o._displayValue="")))}),this.clearValue=function(){var e={title:c.getMessage("Are you sure you want to delete all rows?"),headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},messageOnly:!0,buttons:[{label:c.getMessage("Cancel"),primary:!1},{label:c.getMessage("Remove"),class:"btn-danger",primary:!0}]};this.isMEE?confirm(e.title)&&l():u.open(e).then(function(e){e.primary&&l()})},this.createRow=function(e){var l=this;l.disableMRVSActions=!0,r(),f(y,i()).then(function(e){l.activeRow&&0<t.length||(e=e.data.result,t.push(n.$on("$sp.sc_multi_row_active_row.cancel",function(e,a){void 0!==a&&(void 0!==a.cat_item&&a.cat_item!=o.cat_item||void 0!==a.variable_set_id&&a.variable_set_id!=o.sys_id)||(l.activeRow="",$("#"+o.sys_id+"_add_row").focus().after(function(){d(c.getMessage("New row not added"),500)}))})),t.push(n.$on("$sp.sc_multi_row_active_row.add",function(e,a){var t,i;void 0!==a.cat_item&&a.cat_item!=o.cat_item||void 0!==a.variable_set_id&&a.variable_set_id!=o.sys_id||(l.activeRow="",t=angular.copy(o._value)||[],i=angular.copy(o._displayValue)||[],t.push(a.value),i.push(a.display_value),o.validated=!0,n.getGlideForm().setValue(o.name,JSON.stringify(t),JSON.stringify(i)),$("#"+o.sys_id+"_add_row").focus().after(function(){d(c.getMessage("New row added"),500)}))})),e.options.afterClose=function(){r()},l.activeRow=e)}).catch(function(){r()}).finally(function(){l.disableMRVSActions=!1})},this.updateRow=function(l){var s=this,e=(s.disableMRVSActions=!0,i());e.row_data=o._value[l],r(),f(b,e).then(function(e){s.activeRow&&0<t.length||(e=e.data.result,t.push(n.$on("$sp.sc_multi_row_active_row.cancel",function(e,a){void 0!==a&&(void 0!==a.cat_item&&a.cat_item!=o.cat_item||void 0!==a.variable_set_id&&a.variable_set_id!=o.sys_id)||(s.activeRow="",d(c.getMessage("Row not updated"),0))})),t.push(n.$on("$sp.sc_multi_row_active_row.update",function(e,a){var t,i;void 0!==a.cat_item&&a.cat_item!=o.cat_item||void 0!==a.variable_set_id&&a.variable_set_id!=o.sys_id||(s.activeRow="",t=angular.copy(o._value)||[],i=angular.copy(o._displayValue)||[],t[l]=a.value,i[l]=a.display_value,o._value[l]=angular.copy(a.value),o._displayValue[l]=angular.copy(a.display_value),o.validated=!0,n.getGlideForm().setValue(o.name,JSON.stringify(t),JSON.stringify(i)),d(c.getMessage("Row has been updated"),0))})),e.options.afterClose=function(){r()},s.activeRow=e)}).catch(function(){r()}).finally(function(){s.disableMRVSActions=!1})},this.deleteRow=function(a){var e={title:c.getMessage("Are you sure you want to delete the row?"),headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},messageOnly:!0,buttons:[{label:c.getMessage("Cancel"),primary:!1},{label:c.getMessage("Remove"),class:"btn-danger",primary:!0}]};this.isMEE?confirm(e.title)&&s(a):u.open(e).then(function(e){e.primary&&s(a)})},this.canDelete=function(){return!0},this.canInsert=function(){return!this.disableMRVSActions&&o._value.length<o.max_rows_size},this.canClearValue=function(){return!this.disableMRVSActions&&this.canDelete()&&o._value&&0<o._value.length},this.getCellDisplayValue=function(e,a){return a==h?""+e:_.trustAsHtml(e)}}],link:function(e,a,t,i){var l=e.field;void 0!==l.value&&Array.isArray(l.value)&&(l.value=JSON.stringify(l.value)),void 0!==l.displayValue&&Array.isArray(l.displayValue)&&(l.displayValue=JSON.stringify(l.displayValue)),void 0===l._value&&(l._value=m(l.value)?[]:JSON.parse(l.value)),void 0===l._displayValue&&(l._displayValue=m(l.displayValue)?[]:JSON.parse(l.displayValue)),e.field._loadingData=!1}}}]); angular.module("sn.$sp").directive("spScRequestFor",["$rootScope","i18n",function(e,s){"use strict";return{restrict:"E",replace:!0,templateUrl:"sp_element_sc_request_for.xml",scope:{field:"=",formModel:"=",getGlideForm:"&glideForm"},controller:["$scope","$timeout",function(o,e){o.toggleUserSelect=function(){o.sn_sc_also_request_for.value&&0!=o.sn_sc_also_request_for.value.length?(o.showList=!o.showList,o.showLess=!o.showLess):(o.showAlsoRequestFor=!o.showAlsoRequestFor,o.showList=!o.showList);var s=document.getElementById("also_request_for_button");o.showAlsoRequestFor?e(function(){null!=s&&(o.actions.isAlsoRequestForExpanded=!0);var e=document.getElementById("s2id_sp_formfield_sn_sc_also_request_for");null!=e&&0<(e=e.getElementsByClassName("select2-input")).length&&e[0].focus()},100):null!=s&&(o.actions.isAlsoRequestForExpanded=!1)}}],link:function(l){function r(e){e?(l.disabled=!0,0==l.sn_sc_also_request_for.value.length?(l.showAlsoRequestFor=!1,l.showList=!1,l.showLess=!1):(l.showLess=!0,l.showList=!1)):(l.disabled=!1,0!=l.sn_sc_also_request_for.value.length&&(l.showLess=!1,l.showList=!0))}l.alsoRequestForEnabled=function(){return!l.formModel.native_mobile&&!l.formModel.isCartItem&&!l.formModel.hideAlsoRequestFor&&l.field.also_request_for},l.alsoRequestForEnabled()&&(l.sn_sc_also_request_for={ed:{reference:l.field.ed.reference,qualifier:l.field.ed.qualifier,searchField:l.field.ed.searchField,defaultOperator:l.field.ed.defaultOperator},value:[],name:"sn_sc_also_request_for",label:s.getMessage("Also request for"),parent:l.field,attributes:l.field.attributes,placeholder:s.getMessage("Request for multiple users"),_cat_variable:!0,isMandatory:function(){return!1},display_value_list:[]},l.actions={isAlsoRequestForExpanded:!1}),l.alsoRequestForEnabled()&&l.getGlideForm().$private.events.on("propertyChange",function(e,s,o,t){"FIELD"==e&&s==l.field.name&&"readonly"==o&&r(t)}),l.getGlideForm().isReadOnly(l.field.name)&&l.alsoRequestForEnabled()&&r(!0)}}}]); angular.module("sn.$sp").directive("snScAlsoRequestFor",["$http","spUtil","filterExpressionParser","escapeHtml","i18n","md5","spAriaUtil","select2EventBroker","spAriaFocusManager","spScUtil","spSCConf",function(y,h,b,S,C,A,l,R,O,a,q){"use strict";return{restrict:"E",replace:!0,scope:{ed:"=?",field:"=",refTable:"=?",refId:"=?",snOptions:"=?",requestedFor:"=?",formatResultCssClass:"&",displayColumn:"@",recordValues:"&",getGlideForm:"&glideForm",domain:"@",snSelectWidth:"@"},template:'<input type="text" id="sp_formfield_{{::field.name}}" name="{{::field.name}}" style="min-width: 150px;" aria-hidden="true" />',controller:["$scope","$rootScope",function(r,i){function t(e){e.parent.isServerValidationDone=!0,e.parent.also_request_for_Invalid=!1,n(e),i.$broadcast("$sp.service_catalog.form_validation_complete")}function n(e){Array.isArray(e.validationMessages)&&r.$evalAsync(e.validationMessages.shift())}r.pageSize=NOW.ac_max_search_matches,this.filterResults=function(e,t){return{results:e.data.items,more:t*r.pageSize<e.data.total}},this.handleServerValidation=function(e,s){s.parent&&(s.parent.also_request_for_Invalid=!0,s.parent.isServerValidationDone=!1,""==s.value?t(s):s.value&&a.validateDelegationForMultipleUsers(e,s.value.toString()).then(function(){t(s)},function(e){e=e,(t=s).parent.isServerValidationDone=!0,n(t);var t,a=t,e=C.format(C.getMessage("Item is unavailable for {0}"),e.data.result.invalidUsers.join(", "));a.validationMessages||(a.validationMessages=[]),r.$evalAsync(a.validationMessages.push({message:e,type:"error"})),l.sendLiveMessage(e),t.parent.also_request_for_Invalid=!0,i.$broadcast("$sp.service_catalog.form_validation_complete")}))}}],link:function(c,s,e,a){c.cacheData={},c.ed=c.ed||c.field.ed,c.selectWidth=c.snSelectWidth||"100%",s.css("opacity",0);var u,p,n,f,t=!1,r=!0,_=c.field,m=(angular.isDefined(c.getGlideForm)&&(u=c.getGlideForm()),{}),m=_.attributes&&void 0===c.ed.attributes?Array.isArray(_.attributes)?_.attributes:h.parseAttributes(_.attributes):h.parseAttributes(c.ed.attributes),i=(angular.isDefined(m.ref_ac_columns)&&(p=m.ref_ac_columns),n=angular.isDefined(m.ref_auto_completer)?m.ref_auto_completer:"AJAXReferenceCompleter",angular.isDefined(m.ref_ac_order_by)&&(f=m.ref_ac_order_by),C.getMessage("Remove"));var l={formatSelection:function(e){return S(v(e))},formatSelectionCssClass:function(e,t){var t=t.parent().find("a");t.removeAttr("tabindex"),t.addClass("fa fa-times"),t.append((t=v(e),jQuery("<span class='sr-only' />").text(i+" "+t)))},formatResult:function(e){var t=function(e){var t=[];e&&e.sys_id&&t.push(v(e));if(p&&"AJAXTableCompleter"===n)for(var a,s=p.split(";"),r=e&&e.$$displayField,i=0;i<s.length;i++)r!==s[i]&&(a=s[i],t.push(e[a]||""));return t}(e);if(1==t.length)return S(t[0]);if(1<t.length){for(var a=100/t.length,s="",r=0;r<t.length;r++)s+="<div style='width: "+a+"%;display: inline-block;word-wrap:break-word;vertical-align:top' class='select2-result-cell'>"+S(t[r])+"</div>";return s}return""},search:function(t){var a=A(JSON.stringify(t.data)),e=c.cacheData[a];return e?t.success(e):(e=h.getURL({sysparm_type:"sp_ref_list_data",sysparm_cancelable:!0}),y.post(e,t.data).then(function(e){e.data&&e.data.items&&(c.cacheData[a]=e,t.success(e))}))},onSelecting:function(e){var t,a,e=e.choice;"sys_id"in e&&(t=_.value,a=_.display_value_list,t.push(e.sys_id),a.push(v(e)),d(t,a),s.parent().find(".select2-input").removeAttr("aria-activedescendant"))},onRemoving:function(e){for(var t=e.choice,a=_.value,s=_.display_value_list,r=a.length-1;0<=r;r--)if(t.sys_id==a[r]){a.splice(r,1),s.splice(r,1);break}d(a,s)},onOpening:function(e){R.publishSelect2Opening()}},o={i18n:C,width:c.selectWidth,placeholder:_.placeholder,maximumSelectionSize:q.MAX_ALSO_REQUEST_FOR,containerCssClass:"select2-reference ng-form-element",allowClear:"false"!==e.allowClear,id:function(e){return e.sys_id},sortResults:c.snOptions&&c.snOptions.sortResults?c.snOptions.sortResults:void 0,ajax:{quietMillis:NOW.ac_wait_time,data:function(e,t){var a,s=b.parse(e,c.ed.defaultOperator),r="",i=function(){var e=["name"];"true"==m.ref_ac_columns_search&&"ref_ac_columns"in m&&""!=m.ref_ac_columns?(e=m.ref_ac_columns.split(";"),c.ed.searchField&&e.push(c.ed.searchField)):c.ed.searchField?e=[c.ed.searchField]:m.ref_ac_order_by&&(e=[m.ref_ac_order_by]);return e.filter(g)}(),n=[],l=""===e;if(i.forEach(function(e){a="",_.ed.queryString&&(a+=_.ed.queryString+"^"),a+=e+s.operator+s.filterText,!l||g_sort_elements_by_session_language&&"en"!==g_lang||(a+="^"+e+"ISNOTEMPTY"),a+=c.requestedFor&&""!=c.requestedFor?"^sys_idNOT IN"+c.requestedFor:"",n.push(a)}),r+=n.join("^NQ"),f)for(var o=f.split(";"),d=0;d<o.length;d++)r+="^ORDERBY"+o[d].trim();e={start:c.pageSize*(t-1),count:c.pageSize,sysparm_target_table:c.refTable,sysparm_target_sys_id:c.refId,sysparm_target_field:(_.parent||_).name,table:c.ed.reference,qualifier:c.ed.qualifier,data_adapter:c.ed.data_adapter,attributes:c.ed.attributes,p:c.ed.reference,q:r+="^EQ",r:c.ed.qualifier},p&&(e.required_fields=p.split(";").join(":")),c.domain&&(e.sysparm_domain=c.domain),angular.isDefined(_)&&!0===_._cat_variable&&(delete e.sysparm_target_table,e.sysparm_include_variables=!0,e.variable_ids=(_.parent||_).sys_id,(i=u.$private.options("getFieldSequence"))&&(e.variable_sequence1=i()),t=u.$private.options("itemSysId"),e.sysparm_id=t,e.sysparm_query_refs=!1,(i=u.$private.options("getFieldParams"))&&angular.extend(e,i())),c.recordValues&&(e.sysparm_record_values=c.recordValues()),t=u.getEncodedRecord&&u.getEncodedRecord();return t&&(e.sysparm_encoded_record=t),e},results:function(e,t){return a.filterResults(e,t,c.pageSize)},transport:l.search},formatSelection:l.formatSelection,formatSelectionCssClass:l.formatSelectionCssClass,formatResult:l.formatResult,formatResultCssClass:c.formatResultCssClass||null,multiple:!0};function d(e,t){_.value=e,_.display_value_list=t,_.parent.also_request_for_value=e.toString(),a.handleServerValidation(u.getSysId(),_)}function v(e){var t="";return e&&(e.ref_key_value||e.sys_id)&&(c.displayColumn&&void 0!==e[c.displayColumn]?t=e[c.displayColumn]:e.$$displayValue?t=e.$$displayValue:e.name?t=e.name:e.title&&(t=e.title)),t}function g(e,t,a){return a.indexOf(e)===t}c.snOptions&&c.snOptions.width&&(o.width=c.snOptions.width),c.$evalAsync(function(){s.css("opacity",1),s.select2("destroy");s.select2(o);s.bind("select2-selecting",l.onSelecting),s.bind("select2-removing",l.onRemoving),s.bind("select2-opening",l.onOpening),s.bind("select2-blur",function(){c.$evalAsync(function(){d(_.value,_.display_value_list)})}),s.bind("select2-open",function(){" "===s.data("select2").search.val()&&s.select2("search",""),t=!0,s.parent().find(".select2-choices input[role='combobox']").attr("aria-expanded",t)}),s.bind("select2-close",function(){t=!1,s.parent().find(".select2-choices input[role='combobox']").attr("aria-expanded",t)}),r&&(c.$emit("select2.ready",s),r=!1),s.parent().find(".select2-input").attr("autocomplete","sp_formfield_"+_.name),$(s).on("select2.disabled.toggle",function(e){O.enableFocusOnDisabledSelect2(e)}),s.parent().find("ul.select2-choices").removeAttr("role"),s.parent().find(".select2-choices input[role='combobox']").attr("aria-expanded",t);var e=s.parent().find(".select2-choice"),e=(e.attr("aria-hidden","true"),e.addClass("form-control"),s.parent().find(".select2-focusser").on("keydown",function(e){40!==e.which&&38!==e.which||e.stopImmediatePropagation()}),s.parent().find(".select2-focusser")[0]);e&&(e=$._data(e,"events").keydown,$.isArray(e)&&e.unshift(e.pop()))})}}}]); angular.module("sn.$sp").factory("spSCFieldPropertyDecorator",["snAttachmentHandler","spScUtil","spSCConf","glideFormFieldFactory","$rootScope","$http","i18n","$timeout",function(e,A,D,x,l,H,$,c){function B(e){return e.type==D.CONTAINER_START||e.type==D.CHECKBOX_CONTAINER}function J(e){return"false"==e||""==e}return{decorate:function(e,O,t){var a=e;function I(e){for(var t=0,n=a.length;t<n;t++){var i=a[t];if(i.variable_name===e||i.name===e)return i}return null}function E(e){if(e.type===D.CHECKBOX_CONTAINER)for(var t=0;t<e._children.length;t++)if(!J(I(e._children[t]).value))return!0;return!1}function C(e){var t=I(e._parent);return!(t._mandatory&&!E(t))||(1==(t=t._children.map(I).filter(function(e){return e._visible&&!e._readonly})).length?e!==t[0]:1<t.length)}function S(e){return B(e)?P(e):e.type==D.CHECKBOX?C(e):!(x.isMandatory(e)&&!x.hasValue(e))}function V(e){return!(e._mandatory&&!E(e))}function P(e){if(e.type==D.CHECKBOX_CONTAINER)return V(e);for(var t=0;t<e._children.length;t++)if(!S(I(e._children[t])))return!1;return!0}function i(e){return e&&("string"==e.type&&e.validate_regex||!(e.type!=D.REFERENCE||!e.is_requested_for||!e.validate_on_change))}function r(n,e,t,i,a){n.isServerInvalid=!1,t&&(n.isServerInvalid=!0,n.isServerValidationDone=!1,i(e,t).then(function(){var e;(e=n).isServerValidationDone=!0,e.isServerInvalid=!1,l.$broadcast("$sp.service_catalog.form_validation_complete")},function(){var e=n,t=a;e.isServerValidationDone=!0,e.isServerInvalid=!0,l.$broadcast("$sp.service_catalog.form_validation_complete"),O.hideFieldMsg&&O.hideFieldMsg(e.name),O.showFieldMsg&&O.showFieldMsg(e.name,t,"error")}))}function n(e,t,n){e.startsWith("IO:")||i(e=O.getField(e))&&(e.validate_regex?r(e,e.sys_id,n,A.validateRegex,e.validation_message):e.is_requested_for&&r(e,O.getSysId(),n,A.validateRequestedForAccess,$.getMessage("Item is unavailable for this user")))}function j(t,n){Object.defineProperty(t,"mandatory",{set:function(e){t.sys_readonly||(this._mandatory=e,void 0!==this._parent&&this._parent&&R(n,I(this._parent),!0))},get:function(){return this._mandatory},configurable:!0})}function M(e,t){Object.defineProperty(e,"visible",{set:function(e){this._visible=e,void 0!==this._parent&&this._parent&&R(t,I(this._parent),e)},get:function(){return e._visible},configurable:!0})}function R(e,t,n){if(B(t))if(n)!t._cascade_hidden&&P(t)||(t._cascade_hidden=!1,t.visible=n,"string"==typeof t._parent&&I(t._parent)&&R(e,I(t._parent),n));else{for(var i=0;i<t._children.length;i++)if(e.isVisible(t._children[i]))return!1;t.visible=n,"string"==typeof t._parent&&I(t._parent)&&R(e,I(t._parent),n),t._cascade_hidden=!0}}function N(o){o._value=o.value&&"string"==typeof o.value?JSON.parse(o.value):o.value,Object.defineProperty(o,"value",{set:function(e){if(""==e)o._value=o._displayValue=[];else{if(o.isInvalid=!0,o.validated)o._value=JSON.parse(e),o.skipOnChangeUpdate=!1,o.validated=!1;else{if(Array.isArray(e))try{JSON.stringify(e)}catch(e){return void d("JSON parse error","Invalid value for table variable")}else if("string"!=typeof e)return void d("Invalid Input","Invalid value for table variable");var t,n={},i=o.columns_meta;for(t in i)i[t].unique&&(n[i[t].name]=i[t].label);var a,r,l=e&&"string"==typeof e?JSON.parse(e):e;(function(e,t){if(e&&t){e=getDuplicateFields(e,t);if(0<e.length)return d("Duplicate Data","Some fields are not unique: "+e.join(", ")),1}return})(n,l)||function(e,t,n){if(t&&t.length>e)return d("Maximum Row Limit Exceeded","The number of rows specified in the multi-row variable set "+n+" exceeds the maximum limit of: "+e),1;return}(o.max_rows,l,o.label)?(l=[],(a=o._value)?(o._value=(r="string"==typeof a)?JSON.parse(a):a,r=r?a:JSON.stringify(a),s(o,r)):o._value=o._displayValue=l,o.skipOnChangeUpdate=!0):(o._value=l,s(o,e))}o.isInvalid=!1}},get:function(){return o._value&&0<o._value.length?"string"==typeof o._value?o._value:JSON.stringify(o._value):""},configurable:!0})}function s(t,e){A.getDisplayValueForMultiRowSet(t.id,e).then(function(e){(e||e.data)&&(t._displayValue=JSON.parse(e.data.result))})}function d(e,t){console&&console.warn&&console.warn("(g_form) ["+e+"] "+t)}function T(t){Object.defineProperty(t,"isInvalid",{set:function(e){t._isInvalid=e},get:function(){return i(t)?t._isInvalid||t.isServerInvalid||t.also_request_for_Invalid:t._isInvalid},configurable:!0})}function F(e){Object.defineProperty(e,"mandatory",{set:function(){},get:function(){return!1}})}function w(n){Object.defineProperty(n,"readonly",{set:function(e){var t;n._readonly=e,t=n,(e=e)&&t.placeholder?(t._placeholder=t.placeholder,t.placeholder=""):!e&&t._placeholder&&(t.placeholder=t._placeholder,t._placeholder="")},get:function(){return this._readonly},configurable:!0})}function b(e,t,n,i,a,r){for(var l=a.serviceCatalogDynamicValue.history,o=[],s=[],d=0;d<n.length;d++)l[t+n[d].id]||(o.push(n[d].id),s.push(n[d].name),r||(l[t+n[d].id]="Y"));if(0<o.length)if(r||(a.serviceCatalogDynamicValue.remaining+=o.length),e)A.getDynamicValue(e,i[t],o).then(function(e){if(e&&e.data&&e.data.result){var t,n=e.data.result;for(t in n)a.setValue(t,n[t].value,n[t].displayValue)}u(a,r,o.length)});else{for(d=0;d<s.length;d++)!function(e){c(function(){a.clearValue(e)},0)}(s[d]);u(a,r,o.length)}}function u(e,t,n){t||(e.serviceCatalogDynamicValue.remaining-=n),0==e.serviceCatalogDynamicValue.remaining&&(e.serviceCatalogDynamicValue.history={})}(function(e){e.$private.events.on("change",n)})(O),function(e,t,n){for(var i={},a={},r=0;r<e.length;r++)a[e[r].name]=e[r].sys_id,"reference"==e[r].type&&(i[e[r].sys_id]=e[r]);for(var l,o,s,d={},r=0;r<e.length;r++){var u,c=e[r];c.dynamic_value_field&&c.dynamic_value_dot_walk_path&&i[c.dynamic_value_field]&&((u=i[c.dynamic_value_field].name)&&(c={id:c.sys_id,name:c.name},(d[u]=d[u]||[]).push(c)))}if(t.serviceCatalogDynamicValue={history:{},remaining:0},n){var f,_=d,v=i,h=a,y=t;for(f in _){var g=v[h[f]].value,p=_[f];b(g,f,p,h,y,!0)}}o=d,s=a,(l=t).$private.events.on("change",function(e,t,n){o[e]&&b(n,e,o[e],s,l,!1)})}(e,O,t),a.forEach(function(e){var a,r,t,n,i,l,o,s,d,u,c,f,_,v,h,y,g;if(A.isCatalogVariable(e))switch(e._visible=e.visible,e._readonly=e.readonly,e._mandatory=e.mandatory,e.type){case D.CONTAINER_START:return g=O,Object.defineProperty(e,"mandatory",{set:function(e){this._mandatory=e;for(var t=!0,n=0;n<this._children.length;n++){var i=I(this._children[n]);g.setMandatory(i.name,e),t=t&&S(i)}!e||!this._visible&&t||void 0!==this._parent&&this._parent&&R(g,I(this._parent),!0)},get:function(){for(var e=0;e<this._children.length;e++){var t=I(this._children[e]);if(g.isMandatory(t.name))return!0}return this._mandatory},configurable:!0}),h=e,y=O,Object.defineProperty(h,"visible",{set:function(e){if(e){if(!this._visible&&this._cascade_hidden)return}else if(!P(this))return;this._visible=e,this._cascade_hidden=!1,void 0!==this._parent&&this._parent&&R(y,I(this._parent),e)},get:function(){return h._visible},configurable:!0}),Object.defineProperty(e,"value",{get:function(){for(var e=0;e<this._children.length;e++){var t=I(this._children[e]);if(x.hasValue(t))return"true"}return this.mandatory?"true":""},set:function(e){},configurable:!0}),Object.defineProperty(e,"readonly",{set:function(e){for(var t=0;t<this._children.length;t++){var n=I(this._children[t]);!(B(n)||!e||e&&S(n))||n.sys_readonly||(n.readonly=e)}this._readonly=e},get:function(){return this._readonly},configurable:!0}),void Object.defineProperty(e,"isInvalid",{set:function(e){},get:function(){return!1},configurable:!0});case D.CHECKBOX_CONTAINER:var p=e,b=O;if(p.render_label){for(var m=0;m<p._children.length;m++)if(I(p._children[m]).mandatory){p._mandatory=!0;break}}else I(p._children[0]).mandatory&&(p._mandatory=!0);return Object.defineProperty(p,"mandatory",{set:function(e){for(var t=e&&!E(this),n=0;n<p._children.length;n++){var i=I(p._children[n]);t&&(i._visible=!0,i.readonly=!1),b.setMandatory(p._children[n],e)}this._mandatory=e},get:function(){return this._mandatory},configurable:!0}),_=e,v=O,Object.defineProperty(_,"visible",{set:function(e){if(e){if(!this._visible&&this._cascade_hidden)return}else if(!V(this))return;this._visible=e,this._cascade_hidden=!1,void 0!==this._parent&&this._parent&&R(v,I(this._parent),e)},get:function(){return _._visible},configurable:!0}),c=e,f=O,Object.defineProperty(c,"readonly",{set:function(e){if(!e||V(this)){for(var t=0;t<c._children.length;t++)f.setReadonly(c._children[t],e);this._readonly=e,this._cascade_readonly=!0}},get:function(){return this._readonly},configurable:!0}),u=e,Object.defineProperty(u,"value",{get:function(){return this._mandatory&&E(this)?"true":this._mandatory?"":"false"},set:function(e){},configurable:!0}),Object.defineProperty(u,"stagedValue",{get:function(){return this._mandatory&&E(this)?"true":this._mandatory?"":"false"},set:function(e){},configurable:!0}),void((u=e).render_label||Object.defineProperty(u,"label",{get:function(){return I(this._children[0]).label},configurable:!0}));case D.CHECKBOX:return d=O,Object.defineProperty(e,"mandatory",{set:function(e){var t=I(this._parent);if(e&&J(this.value)){this._mandatory=e,t._mandatory=e;var n=E(t);if(!t._visible&&n)return;n||(this._visible||(this._visible=!0),this._readonly&&(this._readonly=!1)),t._visible=!0,t._readonly=!1,void 0!==t._parent&&t._parent&&R(d,I(t._parent),!0)}if(this._mandatory=e)t._mandatory=!0;else{for(var i=0;i<t._children.length;i++)if(I(t._children[i])._mandatory)return void(t._mandatory=!0);t._mandatory=e,t.isInvalid=!1}},get:function(){return this._mandatory},configurable:!0}),o=e,s=O,Object.defineProperty(o,"visible",{set:function(e){if((e||C(this))&&(this._visible=e,void 0!==this._parent&&this._parent)){var t=I(this._parent);if(!e||t.visible||t._cascade_hidden){if(!e){if(t._mandatory&&!E(t))if(0<t._children.map(I).filter(function(e){return e._visible}).length)return;return R(s,t,!1)}t._visible=e,t._cascade_hidden=!e,void 0!==t._parent&&t._parent&&R(s,I(t._parent),e)}}},get:function(){return o._visible},configurable:!0}),Object.defineProperty(e,"readonly",{set:function(e){if(e&&!C(this))return!1;this._readonly=e,I(this._parent)._cascade_readonly&&(I(this._parent)._cascade_readonly=!1,I(this._parent)._readonly=!1)},get:function(){return this._readonly},configurable:!0}),l=e,void Object.defineProperty(l,"value",{set:function(e){this._value=e;e=I(l._parent);void 0!==e.isInvalid&&e._mandatory&&(E(e)?e.isInvalid=!1:e.isInvalid=!0)},get:function(){return void 0===this._value&&(this._value=this.stagedValue),this._value},configurable:!0});case D.LABEL:case D.RICH_TEXT_LABEL:return Object.defineProperty(e,"mandatory",{set:function(e){console.log("setMandatory not applicable for 'Label' variable type")},configurable:!0}),M(e,O),void Object.defineProperty(e,"value",{get:function(){return""},set:function(){},configurable:!0});case D.MASKED:return(i=e)._value=i.value,Object.defineProperty(i,"value",{set:function(e){i._value=e,i._setFromModel?i._setFromModel=!1:(i.confirmPassword=e,i.isInvalid=!1)},get:function(){return i._value},configurable:!0}),j(e,O),void M(e,O);case D.BREAK:return F(e),void M(e,O);case D.HTML:return t=e,n=O,Object.defineProperty(t,"readonly",{set:function(e){t._readonly=e,n.$private.events.propertyChange("FIELD",t.name,"readonly",e)},get:function(){return this._readonly},configurable:!0}),j(e,O),void M(e,O);case D.REFERENCE:return T(e),j(e,O),void M(e,O);case D.SC_ATTACHMENT:return r=O,(a=e)._value=a.value,Object.defineProperty(a,"value",{set:function(i){""==i?a._value=a.displayValue=a.originalValue="":(a.isInvalid=!0,a.validated?(a._value=a.originalValue=i,a.validated=!1):H.get("/api/now/attachment/"+i).then(function(e){var t=new Array,n=(a.attributes.allowed_extensions&&(t=a.attributes.allowed_extensions.split(";")),{name:e.data.result.file_name,size:e.data.result.size_bytes}),t={name:a.name,allowedExtensions:t,allowedFileSize:a.attributes.max_file_size},n=validateAttachmentVariable(n,t);a._value="",n==ATTACHMENT_SIZE_ERROR?(r.hideFieldMsg(t.name),r.showFieldMsg(t.name,$.format($.getMessage("The size of the uploaded file cannot exceed {0} MB"),t.allowedFileSize),"error")):n==EXTENSION_ERROR?(r.hideFieldMsg(t.name),r.showFieldMsg(t.name,$.format($.getMessage("The uploaded file type is not permitted; allowed types are {0}"),t.allowedExtensions.join(", ")),"error")):(a._value=a.originalValue=i,a.displayValue=a.displayValue&&e.data.result.file_name)},function(e){r.showFieldMsg(a.name,$.getMessage("Invalid value"),"error"),a._value=a.displayValue=a.originalValue=""})),a.isInvalid=!1},get:function(){return a._value},configurable:!0}),j(e,O),void M(e,O);case D.MULTI_ROW_TYPE:return N(e),j(e,O),M(e,O),void w(e);case D.FORMATTER:return F(e),void Object.defineProperty(e,"visible",{set:function(){},get:function(){return!1}});case D.STRING:T(e);default:return j(e,O),M(e,O),void w(e)}})}}}]); angular.module("sn.$sp").factory("spSCNavStateManager",["$rootScope","$window","spModal","i18n","cabrillo",function(e,o,i,a,s){"use strict";var r,u={},c=!1,l=!1;function f(){Object.keys(u).forEach(function(e){u[e].isUserModified()&&u[e].$private.userState.clearModifiedFields()})}function g(){if(g_dirty_form_warning_enabled&&!l){var e,t=!1,n=Object.keys(u);for(e in n)if(u[n[e]].isUserModified()){t=!0;break}return t}}function d(){s.isNative()&&r&&(s.viewLayout.setTitle(""),s.viewLayout.setNavigationBarButtons(),s.viewLayout.setBottomButtons())}return e.$on("$locationChangeStart",function(e,t){var n;c?e.preventDefault():g()?(e.preventDefault(),e={title:a.getMessage("Leave page?"),headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},message:a.getMessage("Changes you made will be lost."),buttons:[{label:a.getMessage("Cancel"),value:"cancel"},{label:a.getMessage("Leave"),primary:!0,value:"leave"}]},s.isNative()&&r?(n=a.format("{0} {1}",e.title,e.message),confirm(n)&&(d(),f(),o.location=t)):(c=!0,i.open(e).then(function(e){c=!1,"leave"==e.value&&(f(),o.location=t)},function(){c=!1}))):d()}),e.$on("$locationChangeSuccess",function(){g_persist_msgs_through_page_nav||e.$broadcast("$$uiNotification.dismiss")}),o.onbeforeunload=function(){if(g())return!0},o.onpagehide=function(){d()},{register:function(e){u[e.getSysId()]=e},unregisterForms:function(e){e.forEach(function(e){delete u[e]})},isNative:function(e){r=e},isPreview:function(e){l=e}}}]); angular.module("sn.$sp").directive("spCheckboxGroup",["$sce","$timeout","spLabelHelper","spAriaUtil","i18n",function(n,r,t,o,e){"use strict";return{restrict:"E",templateUrl:"sp_checkbox_group.xml",scope:{getGlideForm:"&glideForm",containers:"=containers",formModel:"=formModel",name:"="},controllerAs:"c",link:function(e,n,i,l){r(function(){e.labelElement=n.find("legend")}),e.syncFieldAriaLabel=t.syncFieldAriaLabel,e.getFieldAriaLabel=t.getFieldAriaLabel,e.accessible=o.isAccessibilityEnabled()},controller:["$scope",function(r){r.field=r.formModel._fields[r.name],r.field,r.getVarID=function(e){return void 0!==e.name&&0==e.name.indexOf("IO:")?e.name.substring(3):e.name},r.getGlideForm().$private.events.on("propertyChange",function(e,n,i,l){-1!=r.field._children.indexOf(n)&&"readonly"===i&&r.syncFieldAriaLabel(r)}),r.trustedHTML=function(e){return n.trustAsHtml(e)}}]}}]); angular.module("sn.$sp").controller("spLogin",["$scope","$http","$window","$attrs","spUtil","spConf","$location","i18n",function(s,o,n,e,i,r,d,u){s.mfa="true"==e.mfa,s.login=function(e,r){var a=i.getURL({sysparm_type:"view_form.login"}),t=d.search().id||s.page.id,t=s.portal.login_page_dv==t;return o({method:"post",url:a,data:$.param({sysparm_type:"login","ni.nolog.user_password":!0,remember_me:!(void 0===s.remember_me||!s.remember_me),user_name:e,user_password:r,get_redirect_url:!0,sysparm_goto_url:t?null:d.url(),mfa_redirect_url:d.url()}),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){e.data?"mfa_code_required"==e.data.status?n.location="/validate_multifactor_auth_code.do":"success"==e.data.status?s.mfa?i.get({widget:{sys_id:"6506d341cb33020000f8d856634c9cdc"}},{action:"multi_factor_auth_setup",directTo:e.data.redirect_url}).then(function(){n.location=e.data.redirect_url}):(s.success=e.data.message,n.location=e.data.redirect_url):s.message=e.data.message:s.message=u.getMessage("There was an error processing your request")},function(e){s.message=u.getMessage("There was an error processing your request")})}}]); angular.module("sn.$sp").directive("spMessageDialog",["nowServer","i18n","$timeout",function(e,c,o){return{restrict:"E",scope:{name:"@",title:"@",message:"@",question:"@",ok:"@",cancel:"@",dialogClass:"@",checkboxMessage:"@",checkboxCallback:"&",checkboxState:"="},replace:!0,templateUrl:"sp_dialog.xml",link:function(e,c){c.remove(),c.appendTo($("body")),e.checkboxMessage&&(e.checkboxModel={value:e.checkboxState},e.update=function(){e.checkboxState=e.checkboxModel.value,o(function(){e.checkboxCallback()(e.checkboxState)})})}}}]); function _typeof(e){return(_typeof="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})(e)}angular.module("sn.$sp").controller("spPageCtrl",["$scope","$http","$location","$window","spAriaUtil","spUtil","spMetatagService","spAnnouncement","snRecordWatcher","$rootScope","spPage","spAriaFocusManager","$timeout","spAtf","spGtd","spContextManager","snAnalyticsUtil","snAnalytics","tinymceService","snPresence",function(c,e,u,l,d,g,p,t,f,h,m,n,_,a,b,y,o,s,r,O){"use strict";var v=l._,P=this,N=!0,i=(P.doAnimate=!1,P.firstPage=!0,P.loadingIndicator=!1,c.theme={},c.page={title:"Loading..."},c.sessions={},c.$on("sp_loading_indicator",function(e,t){P.loadingIndicator=t}),l.NOW.sp_show_console_error&&m.showBrowserErrors(),P.parseJSON=function(e){return JSON.parse(e)},P.isObjectEmpty=function(e){if(e&&"object"===_typeof(e))return 0===Object.keys(e).length},P.getContainerClasses=function(e){var t=[];return e.bootstrap_alt||(t[t.length]=e.width),e.container_class_name&&(t[t.length]=e.container_class_name),t},u.search().id),C=u.path(),L=!1;function S(e,t){var n=e.indexOf("/",1),a=t.indexOf("/",1);return(e=-1<n?e.substring(0,n):e)===(t=-1<a?t.substring(0,a):t)}function W(e){var t=e.indexOf("?"),n=[];return-1<t&&(e=e.substring(t+1)).split("&").forEach(function(e){n.push(e.split("="))}),n.sort(function(e,t){e[0],t[0]}),n}function T(e){var t,n,a,o,s=e.data.result,r=(s.page&&"null"!=NOW.portal_url_suffix&&(i=decodeURI(s.page.human_readable_url.toLowerCase()),r="",!NOW.req_has_lang&&""==i||(r+="/"+g_lang),""!=i&&(r+="/"+i),m.setHrUrl(r),r=NOW.portal_url_suffix+r,u.path().toLowerCase()!=r&&(i=r,u.path(i).replace())),p.setTags(s.metatags),p.setSeoTags(s.seotags),P.firstPage=!1,c.containers=v.filter(s.containers,{subheader:!1}),c.subheaders=v.filter(s.containers,{subheader:!0}),s.page),i=s.user;if(m.isPublicOrUserLoggedIn(r,i)||!L)return e.config&&e.config.url&&(s.page.url=l.location.origin.concat(e.config.url)),h.page=c.page=r,$(m.getElement(r)).remove(),$(m.getStyle(r)).appendTo("head"),s.portal=h.portal,l.document.title=m.getTitle(s),c.$broadcast("$sp.scroll",{position:0}),s.theme&&(n=s.theme,t=(h.theme=c.theme=n).header&&!1===n.header.static,n=n.footer&&!1===n.footer.static,N=!(!t&&!n)),P.style=m.getClasses(c),c.user||(h.user=c.user={}),c.g_accessibility=d.g_accessibility,angular.extend(c.user,s.user),c.user.logged_in=m.userLoggedIn(c.user),c.$broadcast("$$uiNotification",s.$$uiNotification),O.suspendWatch(!!r.omit_watcher),c.user.logged_in&&!r.omit_watcher&&f.init(),_(function(){P.doAnimate=!0},500),g.isMobile()&&(NOW.sp.enableTours=!1),NOW&&NOW.sp&&NOW.sp.enableTours&&c.user.logged_in&&b.getToursForPage({portal:h.portal,page:h.page,user:h.user}).then(function(e){h.$broadcast("sp-menu-update-tours",e),c.$on("sp-header-loaded",function(){h.$broadcast("sp-menu-update-tours",e)})}),y.init(),a={},o=u.search(),Object.keys(o).forEach(function(e){"table"!==e&&"sys_id"!==e||(a[e]=o[e])}),(a.table||a.sys_id)&&y.updateContextForKey("record",a),A(s.page),e;l.location.href=u.absUrl()}function A(e,t){s.startPage(e.id,e.static_title),(t||NOW.sendRTLAnalyticsOnPageLoad)&&((e={name:"PortalPageLoad",data:{}}).data.Language=g_lang,e.data.RTL=g_portal_isrtl,s.addEvent(e),NOW.sendRTLAnalyticsOnPageLoad=!1)}function U(){h.$emit("sp.page.loaded",h),h.portal&&"db57a91047001200ba13a5554ee49050"===h.portal.sys_id||o.invokeUCMEngine()}function w(){return(NOW.spPageResponse?(NOW.sendRTLAnalyticsOnPageLoad=!0,NOW.spPageResponse.then(function(e){return{data:e}})):e({method:"GET",url:m.getUrl(c.portal_id,!N),headers:g.getHeaders()})).then(T,E).then(function(e){t.init(e.data.result.announcements).then(function(){n.pageLoadComplete(u.url()),a.init().then(function(e){e.triggerPageLoaded()})})}).then(U).then(function(){NOW.spPageResponse=null})}function E(e){var t=u.absUrl(),n=u.url(),a=u.path();return"Unauthorized"!=e.statusText&&"401"!=e.status||(t=t.replace(n,a+"?sysparm_goto_url="+h.portal.url_suffix),l.location.href=t),console.error(e),Promise.reject(e)}function x(e){_(function(){var e=document.createElement("script");e.src="scripts/js_includes_sp_defer.js?v="+g_builddate,e.onload=function(){h.$broadcast("sp.defer_scripts.loaded")},document.body.appendChild(e),r.loadTinymceAsync()},e||0)}h.$on("$locationChangeStart",function(e,t,n){var a,o,s;a=t,n=n,o=document.createElement("a"),s=document.createElement("a"),o.href=a,s.href=n,o.hostname===s.hostname&&S(o.pathname,s.pathname)||(e.preventDefault(),l.location=t)}),h.$on("$locationChangeSuccess",function(e,t,n){var a;!P.firstPage&&function(e,t){var n=W(t),a=W(e);if(n.length==a.length){for(var o=0;o<n.length;o++)if(n[o][0]!=a[o][0]||n[o][1]!=a[o][1])return;return 1}}(t,n)?e.preventDefault():(L=n!=t,e=u.search(),a=u.path(),S(C,a)?angular.isDefined(c.containers)&&i==e.id&&e.spa||m.isHashChange(t,n)||(g_persist_msgs_through_page_nav||c.$broadcast("$$uiNotification.dismiss"),(t=m.containsSystemPage(a))?l.location.href=t:!l.NOW.has_access&&L?l.location.href=u.absUrl():(i=e.id,w())):l.location.href=u.absUrl())}),h.$on("sp.page.loaded",function(){g.isMobile()&&g.setMobileBanner(c)}),h.$on("sn.ucm.finished",function(){var e;A(c.page,!0),1===NOW.ucm_invocations&&((e={name:"Successful Login",data:{}}).data.Login="true",s.addEvent(e))}),c.$on("sp.page.reload",w),$(l).keydown(m.saveOnCtrlS),c.$on("$destroy",function(){$(l).off("keydown",m.saveOnCtrlS)}),P.focusOnPageTitle=function(e,t){n.focusOnPageTitle(e,t)},P.focusOnAgentChat=function(){n.focusOnAgentChat()},d.init(),l.logged_in?x():x(7e3)}]); angular.module("sn.$sp").factory("spPage",["$rootScope","spConf","$location","$window","escapeHtml","i18n",function(r,a,o,i,t,n){"use strict";var s="";function u(e){return e.hasOwnProperty("logged_in")?e.logged_in:"guest"!==e.user_name&&(!(void 0===e.user_name||!e.user_name||"guest"===e.user_name)||e.can_debug_admin)}return{getTitle:function(e){return e.portal.title&&!e.portal.hide_portal_name?e.page.title?e.page.title+" - "+e.portal.title:e.portal.title:e.page.title},getStyle:function(e){return'<style type="text/css" data-page-id="'+e.sys_id+'" data-page-title="'+t(e.title)+'">'+e.css+"</style>"},getElement:function(e){return"style[data-page-id='"+e.sys_id+"']"},isHashChange:function(e,t){return e!=t&&(e=e.split("#"),t=t.split("#"),1<e.length&&e[0]==t[0])},getClasses:function(e){var t=[];return e.isNative&&t.push("isNative"),e.theme.navbar_fixed&&t.push("fixed-header"),e.theme.footer_fixed&&t.push("fixed-footer"),t.join(" ")},isPublicOrUserLoggedIn:function(e,t){return!(!e.public&&!u(t))},userLoggedIn:u,saveOnCtrlS:function(e){e.keyCode==a.s&&(e.metaKey||e.ctrlKey&&!e.altKey)&&(e.stopPropagation(),e.preventDefault(),r.$broadcast("$sp.save",e))},getUrl:function(e,t){var r=o.search(),n={};return angular.extend(n,r),n.time=(new i.Date).getTime(),n.portal_id=e,n.request_uri=o.url(),t&&(n.omitTheme=t),a.pageApi+"?"+$.param(n)},containsSystemPage:function(e){return 0<e.indexOf(".do")&&-1==e.indexOf(a.page)&&"/"+(e=o.absUrl()).substr(e.search(/[^\/]+.do/))},showBrowserErrors:function(){var t;i.console.error=(t=i.console.error.bind(i.console),function(e){t(e),r.$broadcast(a.e.notification,{type:"error",message:n.getMessage("There is a JavaScript error in your browser console")})})},getHrUrl:function(){return s},setHrUrl:function(e){s=e}}}]); function _typeof(e){return(_typeof="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})(e)}angular.module("sn.$sp").factory("spPreference",["spConf","$http","$window",function(r,o,s){"use strict";return{set:function(e,t){null!==t&&"object"===_typeof(t)&&(t=JSON.stringify(t));e=$.param({sysparm_type:r.sysParamType,sysparm_ck:s.g_ck,type:"set_preference",name:e,value:t});return o.post(r.angularProcessor+"?"+e)},get:function(t,n){var e;return null==t?null:(e=$.param({sysparm_type:r.sysParamType,sysparm_ck:s.g_ck,type:"get_preference",name:t}),o.post(r.angularProcessor+"?"+e).then(function(e){e=e.data.value;n&&"function"==typeof n?n(e):console.warn("spPreference.get synchronous use not supported in Service Portal (preference: "+t+"), use callback")}))}}}]); angular.module("sn.$sp").factory("spWidgetService",["$compile","lazyLoader","spServer","$rootScope","$injector",function($compile,lazyLoader,spServer,$rootScope,$injector){var head=document.head||document.getElementsByTagName("head")[0];function addElement(e){var t=document.createElement("style");return t.type="text/css",e.id&&t.setAttribute("id",e.id),e.widget&&t.setAttribute("widget",e.widget),t.styleSheet?t.styleSheet.cssText=e.css:t.appendChild(document.createTextNode(e.css)),t}function render(e,t,i){t.html(i);i=$compile(t.contents())(e);t.replaceWith(i)}function loadCSS(e){var t=e.widget.directiveName+"-s";e.widget.css&&(e.widget.update&&(e.widget.css=e.widget.css.replace(new RegExp("v"+e.widget.sys_id,"g"),e.widget.directiveName)),$("head #"+t).length||head.appendChild(addElement({css:e.widget.css,id:t,widget:e.widget.name}))),e.widget.options&&e.widget.options.css&&head.appendChild(addElement({css:e.widget.options.css,widget:e.widget.name}))}function initData(e){e.data=e.widget.data,e.options=e.widget.options,e.widget_parameters=e.options}function noData(e){return!e.widget||!Object.keys(e.widget).length}function loadDirective(scope,directiveName){scope.widget.providers&&lazyLoader.providers(scope.widget.providers),lazyLoader.directive(directiveName,function($injector){var api={restrict:"C",replace:!1};if(void 0!==scope.data.replace&&(api.replace=scope.data.replace),scope.widget.template&&(api.template=scope.widget.template),scope.widget.client_script)try{var stmt=scope.widget.client_script,src=(0!=stmt.indexOf("api.controller")&&(stmt="api.controller="+stmt),scope.widget.id||directiveName),stmt="//# sourceURL="+src+".js\n"+stmt;eval(stmt),api.controller.displayName=src,scope.widget.controller_as&&(api.controllerAs=scope.widget.controller_as,api.bindToController={data:"=",options:"=",widget:"=",server:"="})}catch(e){console.log(e),console.log(scope.widget.client_script)}return api.link=function(sc,elem,attr,ctrl){var link;scope.widget.link&&(eval("link="+scope.widget.link),link&&link(sc,elem,attr,ctrl))},api})}function initGlobals(e){e.page=e.page||$rootScope.page,e.portal=$rootScope.portal,e.user=$rootScope.user,e.theme=$rootScope.theme,e.server=spServer.set(e)}return{render:render,loadCSS:loadCSS,initData:initData,initGlobals:initGlobals,noData:noData,loadDirective:loadDirective}}]); angular.module("sn.$sp").directive("spWidget",["$rootScope","$timeout","escapeHtml","lazyLoader","spWidgetService","spUtil","$ocLazyLoad",function(e,t,s,o,i,c,g){"use strict";var l=i;function n(n,e){n.widget.ngTemplates&&o.putTemplates(n.widget.ngTemplates),l.initData(n),l.initGlobals(n);var t="v"+(t=n.widget.sys_id),i=(n.widget.update&&(t+=c.createUid("xxxxx")),n.widget.directiveName=t,n.$watch("widget",function(e,t){e!==t&&l.initData(n)}),n.$on("$destroy",function(){var e=n.widget.dependencies||[],i=NOW.sp.widgetCSSIncludes;e.map(function(e){e.files.map(function(e){var t;"link"===e.type&&(e=e.url,i[e]&&--i[e]||(t=$('link[href="'+e+'"]')).length&&((t=t.last()).prop("disabled",!0),t.remove(),g._getFilesCache().remove(e)))})})}),n.widget.rectangle_id?'id="x'+n.widget.rectangle_id+'"':""),d=(n.widget.options||{}).title||n.widget.name,a="<div "+i+' class="'+t+'" data="data" options="options" widget="widget" server="server" sn-atf-area="'+s(d)+'"></div>';function r(){l.loadDirective(n,t,a),l.loadCSS(n),l.render(n,e,a)}0!=t.length&&(n.widget.dependencies&&0<n.widget.dependencies.length?o.dependencies(n.widget.dependencies).then(function(){n.widget.dependencies.map(function(e){e.files.map(function(e){"link"===e.type&&(NOW.sp.widgetCSSIncludes[e.url]?NOW.sp.widgetCSSIncludes[e.url]+=1:NOW.sp.widgetCSSIncludes[e.url]=1)})}),r()},function(e){c.format("An error occurred when loading widget dependencies for: {name} ({id}) {error}",{name:n.widget.name,id:n.widget.sys_id,error:e}),r()}):r())}return{restrict:"E",link:function(e,t){var i;l.noData(e)?i=e.$watch("widget",function(){l.noData(e)||(i(),n(e,t))}):n(e,t)},scope:{widget:"=",page:"=?"}}}]); angular.module("sn.$sp").controller("spWidgetDebug",["$scope","$rootScope","$uibModal","$http","spUtil","$window","i18n","spWidgetDiagnostics",function(i,o,e,t,s,n,a,g){i.reveal=!1,i.page=o.page,i.portal=o.portal,i.menuModified=!1;var d=[null,[a.getMessage("Instance Options"),u],[a.getMessage("Instance in Page Editor {0}").withValues(["➚"]),function(){p({id:"page_edit",p:i.page.id,table:"sp_instance",sys_id:i.rectangle.sys_id})}],[a.getMessage("Page in Designer {0}").withValues(["➚"]),function(){var e="$spd.do",t={portal:i.portal.url_suffix,page:e,pageId:i.page.id,instance:i.rectangle.sys_id};n.open(s.format("/{page}#/{portal}/editor/{pageId}/{instance}",t),e)}],null,[a.getMessage("Show Widget Customizations"),g.enableDiagnostics],null,[a.getMessage("Edit Container Background"),function(){f("sp_container",i.container.sys_id)}],null,[a.getMessage("Widget Options Schema"),function(){var e={embeddedWidgetId:"we20",embeddedWidgetOptions:{sys_id:i.rectangle.widget.sys_id}};s.get("widget-modal",e).then(function(e){var t=null,n=(e.options.afterOpen=function(e){t=e},i.$on("$sp.we20.options_saved",function(){t.close(),n()}));e.options.afterClose=function(){i.rectangle.debugModal=null,o.$broadcast("sp.page.reload")},i.rectangle.debugModal=e})}],[a.getMessage("Widget in Form Modal"),function(){f("sp_widget",i.rectangle.widget.sys_id)}],[a.getMessage("Widget in Editor {0}").withValues(["➚"]),function(){p({id:"widget_editor",sys_id:i.rectangle.widget.sys_id})}],null,[a.getMessage("Log to console: {0}").withValues(["$scope.data"]),r],[a.getMessage("Log to console: {0}").withValues(["$scope"]),c]],l=[null,[a.getMessage("Instance Options"),u],[a.getMessage("Log to console: {0}").withValues(["$scope.data"]),r],[a.getMessage("Log to console: {0}").withValues(["$scope"]),c]];function c(){console.log("Widget instance...",i.rectangle.widget)}function r(){console.log("Widget $scope.data...",i.rectangle.widget.data)}function u(){f("sp_instance",i.rectangle.sys_id)}function p(e){n.open("/sp_config?"+$.param(e),"sp_config")}function f(e,t){s.get("widget-options-config",{table:e,sys_id:t}).then(function(e){var n=null,s=(e.options.afterClose=function(){i.rectangle.debugModal=null},e.options.afterOpen=function(e){n=e},i.rectangle.debugModal=e,i.$on("sp.form.record.updated",function(e,t){s(),s=null,n.close(),o.$broadcast("sp.page.reload")}))})}i.contextMenu=function(e){if((!e.ctrlKey||e.shiftKey||!o.user.can_debug)&&!window._protractor_contextmenu)return[];g_user_is_admin?g.diagnostics.isEnabled?d[5]=[a.getMessage("Hide Widget Customizations"),g.disableDiagnostics]:d[5]=[a.getMessage("Show Widget Customizations"),g.enableDiagnostics]:i.menuModified||(d.splice(5,2),i.menuModified=!0);var e=d.slice(),t=(o.user.can_debug_admin?i.page.internal&&e.splice(3,1):e=l.slice(),i.rectangle.widget),n=(e[0]=s.format("'{widget}' {text} : {time}",{widget:t.name,text:a.getMessage("generated in"),time:t._server_time}),e[1]=(t.option_schema||!t.options||t.options.widget_parameters||t.field_list)&&o.user.can_debug_admin?[a.getMessage("Instance Options"),u]:[a.getMessage("Instance Options")],"_debugContextMenu");return n in t&&Array.isArray(t[n])?e.concat([null],t[n]):e}}]); angular.module("sn.$sp").directive("spNavbarToggle",["$rootScope","$window","cabrillo",function(t,i,a){return{restrict:"A",link:function(e,n,o){e.toggleNavMenu=function(){$(n).collapse("toggle")},t.$on("sp-navbar-collapse",function(){$(n).collapse("hide")}),a.isNative&&i.innerWidth<767&&a.viewLayout.setNavigationBarButtons([{title:"Menu"}],e.toggleNavMenu)}}}]); angular.module("sn.$sp").directive("spReadonlyContenteditable",function(){return{priority:1e3,link:function(e,t,n){n.hasOwnProperty("contenteditable")&&delete n.contenteditable,n.$set("contenteditable",!0),t.on("beforeinput",function(e){e.preventDefault()}),t.on("paste",function(e){e.preventDefault()})}}}),angular.module("sn.$sp").directive("spAttachmentPicker",["i18n","$parse","$timeout","snAnalytics","spAttachmentUpload",function(e,t,n,r,a){"use strict";var o=[];return e.getMessages(["Choose a file","or drag it here.","Copy and paste clipboard files here."],function(e){o=e}),{restrict:"EA",templateUrl:"sp_attachment_picker.html",transclude:!0,scope:{disablePickerOverlay:"@?",onFilePick:"&?",attachmentHandler:"<?"},controller:["$element","$scope",function(e,i){i.i18Strings=o,i.isPasteFilesSupported=!(-1<navigator.userAgent.toLowerCase().indexOf("firefox")),i.pickFile=function(e){e.stopPropagation(),e.preventDefault();var t=$(e.currentTarget).parent().find("input[type=file]");n(function(){t.click()})},i.selectFiles=function(e){i.filePickHandler(e,"File Picker")},i.dropFiles=function(e){i.filePickHandler(e,"Drag and Drop")},i.paste=function(e){var n,t;i.isAttributeMode||(i.isPasteFilesSupported&&(n=[],t=e.originalEvent.clipboardData,angular.forEach(t.items,function(e,t){"file"===e.kind&&n.push(e.getAsFile())}),n.length&&i.filePickHandler(n,"Copy-Paste")),e.stopPropagation())},i.uploadFiles=function(e){i.attachmentHandler?a.uploadAttachments(i.attachmentHandler,e):console.warn("Either the 'on-file-pick' or 'attachment-handler' attribute is required for sp-attachment-picker.")}}],link:function(t,e,n){var i,a,o;t.isAttributeMode=!1,"sp-attachment-picker"!==e.get(0).tagName.toLowerCase()&&(t.isAttributeMode=!0),n.onFilePick||n.attachmentHandler||console.error("Either the 'on-file-pick' or 'attachment-handler' attribute is required for sp-attachment-picker."),angular.isFunction(t.onFilePick)&&(i=function(e){t.onFilePick({$files:e})}),angular.isFunction(i)||(i=t.uploadFiles),t.filePickHandler=function(e,t){r.addEvent({name:"SP File Attach",data:{type:t}}),i(e)},t.isAttributeMode||(a=$(e).find(".sn-file-drop-zone"),o=$(e).find(".sp-attachment-add-btn"),a.on("mousedown",function(e){setTimeout(function(){o.focus()}),e.preventDefault(),e.stopPropagation()}),o.on("keydown",function(e){32!=e.which&&13!=e.which||t.pickFile(e)}),t.$on("$destroy",function(){a.off("mousedown"),o.off("keydown")}))}}}]); angular.module("sn.$sp").directive("spAttachmentButton",["cabrillo","$rootScope","i18n","spAttachmentUpload","$timeout","spAriaUtil","$injector","spUtil",function(t,o,i,l,c,p,d,u){"use strict";return{restrict:"E",template:function(){return['<span ng-if="isNative" class="file-upload-input">','<button href="#" title="" ng-click="showAttachOptions()" class="panel-button sp-attachment-add btn btn-link" data-toggle="tooltip" data-placement="bottom" aria-label=""><span class="glyphicon glyphicon-camera"></span></button>',"</span>",'<span ng-if="(isMobileBrowser || (isDesktopBrowser && !showModal))" class="file-upload-input">','<input type="file" style="display: none" multiple="true" ng-file-select="uploadAttachments($files)" class="sp-attachments-input"/>','<button title="" ng-click="attachmentHandler.openSelector($event)" class="panel-button sp-attachment-add btn btn-link" data-placement="bottom" data-toggle="tooltip" aria-label="" data-container={{dataContainer}}><span class="glyphicon glyphicon-paperclip"></span></button>',"</span>",'<span ng-if="(isDesktopBrowser && showModal)" class="file-upload-input">','<button title="" ng-click="openModal($event)" class="panel-button sp-attachment-add btn btn-link" data-placement="bottom" data-toggle="tooltip" aria-label="" data-container={{dataContainer}}><span class="glyphicon glyphicon-paperclip"></span></button>',"</span>"].join("")},controller:["$element","$scope",function(e,n){var a=i.getMessage("Attached"),s=(n.dataContainer=e.parents(".modal").length?"body":"section.page",n.isNative=t.isNative(),n.isMobileBrowser=u.isMobile()&&!n.isNative,n.isDesktopBrowser=!n.isNative&&!n.isMobileBrowser,n.showAttachOptions=function(){var e=n.attachmentHandler;t.attachments.addFile(e.tableName,e.tableId,null,{maxWidth:1e3,maxHeight:1e3}).then(function(t){e.getAttachmentList(e.ADDED),o.$broadcast("added_attachment")},function(){console.log("Failed to attach new file")})},n.uploadAttachments=function(t,e){l.uploadAttachments(n.attachmentHandler,t,e)},n.isDesktopBrowser&&d.get("spAttachmentModal"));n.openModal=function(t){t.preventDefault();t={fileSelectHandler:function(t){t.length&&n.uploadAttachments(t,!1)},supportedExtensions:n.supportedExtensions};return s.open(t)},n.$on("attachment_select_files",function(t){n.$evalAsync(function(){$(e).find(".sp-attachments-input").click()})}),n.$on("attachment.upload.success",function(t,e){c(function(){p.sendLiveMessage(e.names+" "+a)},500)}),n.$on("attachment.delete.success",function(t,e){c(function(){p.sendLiveMessage(i.getMessage("Attachment deleted successfully"))},500)}),n.$on("attachment.rename.success",function(t,e){p.sendLiveMessage(i.getMessage("Attachment renamed successfully"))})}],link:function(t,n,a){i.getMessages(["Add attachments","Required"],function(t){var e=t["Add attachments"];"true"===a.required&&(e=e+" "+t.Required),c(function(){n.find("button").attr("title",e),n.find("button").attr("aria-label",e)},0,!1)}),t.showModal="true"===a.modal,t.supportedExtensions=a.supportedExtensions||""}}}]); angular.module("sn.$sp").directive("spPageRow",["$rootScope","$compile",function(e,t){return{restrict:"E",templateUrl:"sp_page_row",compile:function(e){var c=angular.element(e[0]).children().remove();return function(e,n,o){var r=c.clone();n.append(r),t(r)(e)}},replace:!1,scope:{columns:"=",container:"=",row:"="},controller:["$scope",function(e){}]}}]); angular.module("sn.$sp").directive("spPanel",function(){return{restrict:"E",transclude:!0,replace:!0,link:function(e,a,t,l,i){var n;e.widgetParameters=e.widget_parameters||e.$parent.widget_parameters||{},e.options||(e.options=e.$eval(t.options)||e.$parent.options);try{n=e.$eval(t.title)||e.$eval(t.widgetTitle)}catch(e){n=t.title}e.title=n||e.options.title,e.bodyClass=e.$eval(t.bodyClass)||"panel-body",i(e,function(e){var t=a.find("div.transclude");t.empty(),t.append(e)})},template:'<div class="panel panel-{{options.color}} b"><div class="panel-heading"> <h2 class="h4 panel-title"><fa ng-if="options.glyph.length" name="{{options.glyph}}" class="m-r-sm"></fa>{{title}}</h2></div><div class="{{bodyClass}} transclude"></div></div>'}}); angular.module("sn.$sp").directive("spVariableLayout",function(){"use strict";return{restrict:"E",templateUrl:"sp_variable_layout.xml",scope:!1}}).directive("spModel",["$q","spUtil","glideFormFactory","glideUserSession","catalogItemFactory","glideFormEnvironmentFactory","catalogGlideFormFactory","spUIActionFactory","glideModalFactory","$uibModal","spModal","glideListFactory","spModelUtil","spLabelHelper","$sce","spAtf","spSCFieldPropertyDecorator","spSCConf","$rootScope","uiScriptFactory","spAriaUtil",function(y,b,M,i,e,F,$,w,V,r,C,E,P,I,x,A,S,U,n,O,k){"use strict";return{restrict:"E",templateUrl:function(e,i){return i.templateUrl||"sp_model.xml"},replace:!0,scope:{formModel:"=",mandatory:"=",isInlineForm:"=?",embeddedInModal:"=?"},controller:["$scope","$rootScope","$timeout",function(c,r,e){var o,s,l,d,n,t,a,u=this,f=y.defer(),p={};function m(n,t,o){n in d._fields&&c.$evalAsync(function(){var e=d._fields[n],i=(e.stagedValue!=o&&(e.stagedValue=o),l&&c.formModel.process_price&&function(e){if(e._pricing){if("boolean_confirm"==e.type)return!0;if("sc_multi_row"==e.type)return!0;if(("reference"==e.type||"glide_list"==e.type||"boolean"==e.type||e.choices)&&e._pricing&&!0===e._pricing.pricing_implications)return!0}return!1}(e)),r=(i&&("boolean"!=e.type&&"boolean_confirm"!=e.type||u.setBoolean(e,o),e.choices&&u.setPrices(e,o)),c.mandatory=u.populateMandatory(s),{field:e,oldValue:t,newValue:o});c.$emit("field.change",r),c.$broadcast("field.change."+e.name,r),c.$emit("field.change."+e.name,r),i&&u.calcPrice(d._fields)})}function _(e,i,r){switch(i){case"infoMessage":b.addInfoMessage(r);break;case"warningMessage":b.addWarningMessage(r);break;case"errorMessage":case"mandatoryMessage":b.addErrorMessage(2!==(o=(n=r).replace(/\:/,"####").split("####")).length||-1!==n.indexOf("://")||(t=[],o[1].split(/\r|\n/).forEach(function(e){(e=e.trim())&&t.push(e)}),0===t.length)?n:o[0]+": "+t.join(", "));break;case"clearMessages":b.clearMessages();break;default:return!1}var n,t,o}c.okToPaintForm=!1,c.delayView=!1,c.$watch("formModel",function(e){angular.isDefined(e)&&(f||(f=y.defer(),c.execItemScripts()),c.mandatory=[],d=c.formModel,u.massageView(d),s=u.getFieldsFromView(d),l=u.hasCatalogVariable(s),i.loadCurrentUser().then(function(e){o=function(){var e=w.create(d._ui_actions||[],{attachmentGUID:d._attachmentGUID,uiActionNotifier:function(e,i){i.then(function(e){r.$broadcast("spModel.uiActionComplete",e,d.sys_id)})}},c.formModel.encoded_record);P.extendFields(s),(o=M.create(c,l?null:d.table,d.sys_id,s,e,{encodedRecord:c.formModel.encoded_record,uiMessageHandler:_,cleanDecimals:!0,relatedLists:d._related_lists,sections:d._sections})).getControl=L,o.getField=function(e){for(var i=0,r=s.length;i<r;i++){var n=s[i];if(n.variable_name===e||n.name===e)return n}var t=o.$private.options("getMappedField");if("function"==typeof t){t=t(e);if(t)return t}},l&&(S.decorate(s,o,d.is_transient),function(e){e.forEach(function(e){e.conditions.forEach(function(e){var i;e.field.startsWith("variables.")&&(i=c.formModel._fields[e.field.substring(10)])&&(e.field=i.variable_name)}),e.actions.forEach(function(e){var i;e.name.startsWith("variables.")&&(i=c.formModel._fields[e.name.substring(10)])&&(e.name=i.variable_name)})})}(d.policy));return o.$private.events.on("change",m),o.$private.events.on("propertyChange",function(e,i,r,n){var t,o,a;"mandatory"==r&&(c.mandatory=u.populateMandatory(s)),"messages"==r&&n&&n.length&&k.sendLiveMessage(n),l&&"SECTION"===e&&"visible"===r&&(o=i,(t=(e=c.formModel._sections)?(a=null,e.forEach(function(e){a||e.caption.toLowerCase().replace(" ","_").replace(/[^0-9a-z_]/gi,"")===o&&(a=e)}),a):null)&&(c.mandatory.filter(function(e){return e._parent===t.id}).length?t.visible=!0:(r=c.formModel._fields[t.id])&&(r._visible=n)))}),c.$on("sp.spFormField.stagedValueChange",function(){c.mandatory=u.populateMandatory(s)}),o}();var i=V.create({alert:v,confirm:h});t=F.createWithConfiguration(o,e,d.g_scratchpad,d.client_script||[],d.policy||[],i,d.validation_scripts||[],O.create(d.ui_scripts||[],y)),n=t.getUserGlideForm(),l&&(t.g_env.registerExtensionPoint("g_service_catalog",{isOrderGuide:function(){return!!d.isOrderGuideItem},parent:g}),$.addItemEditor(o,d.sys_id,null,d.sys_id,s),$.addVariableEditor(o,d.sys_id,null,d.sys_id,s),n.recordTableName="sc_cart_item"),t.g_env.registerExtensionPoint("spModal",C),t.g_env.registerExtensionPoint("g_list",E.init(o,s)),c.$emit("spModel.gForm.env.created",o),c.okToPaintForm=!0,c.containers=d._sections,f.resolve()}).catch(f.reject),d&&d.delayView&&(c.delayView=!0,c.$on("spModel.view.render",function(e,i){c.delayView&&d.sys_id===i&&(c.delayView=!1)})))}),c.trustedHTML=function(e){return x.trustAsHtml(e)},u.populateMandatory=function(e){var i,r,n=[];for(r in e)void 0===(i=e[r]).mandatory_filled||i.type==U.CONTAINER_START||i.type==U.LABEL||i.mandatory_filled()||i.visible&&i.isMandatory()&&n.push(i);return c.$emit("variable.mandatory.change"),n},u.getFieldsFromView=function(e){var i=[];if(void 0!==e._view)for(var r in e._view)r=e._view[r],e._fields[r.name]&&i.push(e._fields[r.name]),!function e(i,r,n){if(void 0!==n.variables){var t,o=i._fields[n.name];for(t in o&&(o._children=[]),n.variables){var a,c=n.variables[t];i._fields[c.name]&&(a=i._fields[c.name],o&&(o._children.push(c.name),a._parent=n.name),r.push(a)),e(i,r,c)}}}(e,i,r);else void 0!==e._sections&&!function e(i,r){if(!r)return;for(var n in r){var t=r[n];if(t.columns)for(var o in t.columns){var a,c=t.columns[o];for(a in c.fields){var s=c.fields[a];"container"==s.type?e(i,[s]):"checkbox_container"==s.type?e(i,s.containers):"field"==s.type&&i.push(d._fields[s.name])}}}}(i,e._sections);return i},u.hasCatalogVariable=function(e){for(var i in e)if(e[i].hasOwnProperty("_cat_variable"))return!0;return!1},u.calcPrice=function(i){var r,n,t,e;"sc_cat_item_producer"!=d.sys_class_name&&(n=r=0,t=!1,angular.forEach(i,function(e){e._multi_row_variable?t=!0:(e.price&&(r+=Number(e.price)),e.recurring_price&&(n+=Number(e.recurring_price)))}),t||(e={price:r,recurring_price:n,force_update:function(){for(var e in i){if("sc_multi_row"==i[e].type)return!0;if(("reference"==i[e].type||"glide_list"==i[e].type)&&i[e]._pricing&&!0===i[e]._pricing.pricing_implications)return!0}}()},i&&c.$emit("variable.price.change",e)))},u.setBoolean=function(e,i){"boolean"!=e.type&&"boolean_confirm"!=e.type||(1==i||"true"==i?(e.price=e._pricing.price_if_checked,e.recurring_price=e._pricing.rec_price_if_checked):e.price=e.recurring_price=0)},u.setPrices=function(i,r){i.choices&&(i.choices.length&&""!=i.value||(i.price=0,i.recurring_price=0),i.choices.forEach(function(e){e.value==r&&(i.price=e.price,i.recurring_price=e.recurring_price)}))},u.hasChoiceFields=function(e){for(var i in e)if("choice"==e[i].type||"multiple_choice"==e[i].type)return!0;return!1},u.hasChoiceFieldsWithPrice=function(e){for(var i in e){i=e[i];if(("choice"==i.type||"multiple_choice"==i.type)&&i._pricing&&!0===i._pricing.pricing_implications&&!0===i._pricing.enhance_price_labels)return!0}return!1},c.getGlideForm=function(){return n},c.setDefaultValue=function(e,i,r){o.setValue(e,i,r)},c.getVarID=function(e){return void 0!==e.name&&0==e.name.indexOf("IO:")?e.name.substring(3):e.name},c.paintForm=function(e){return c.okToPaintForm&&c.isContainerVisible(e)},c.isContainerVisible=function(e){var i;return l||void 0===e.visible?void 0===(i=d._fields[e.name])||i.visible:e._parent?void 0!==(i=p[e._parent])?i:e.visible:(p[e.id]=e.visible,e.visible)},u.massageView=function(e){if(void 0!==e._view){for(var i=e._view.length-1;0<=i;i--){var r=e._view[i];"field"!=r.type||e._fields[r.name]||e._view.splice(i,1)}null==e._sections&&(e._sections=[{_bootstrap_cells:12,visible:!0,columns:[{fields:e._view}]}])}},c.execItemScripts=function(){f.promise.then(function(){f=null,c.$emit("spModel.fields.rendered"),c.$evalAsync(function(){c.mandatory=u.populateMandatory(s),t.initialize(),c.$emit("spModel.gForm.initialized",o),l&&c.formModel.process_price&&(u.calcPrice(s),u.hasChoiceFieldsWithPrice(s)&&I.getPriceLabelsForChoiceFields(s,c.formModel.recurring_price_frequency))})})},r.$on("sp.form.submitted",function(){c.$applyAsync(function(){f||(f=y.defer(),c.execItemScripts())})});var g={getValue:function(e){var i;return e?(i=null,(i=(a=void 0!==a&&null!=a&&0!==a.size?a:a=new Map(Object.entries(d.parent))).get(e))?void 0!==i.value&&null!==i.value?i.value.toString():"":void 0):""}};function v(e,i,r){C.alert(i).then(r)}function h(e,i,r){C.confirm(i).then(function(){r(!0)},function(){r(!1)})}r.$on("spModel.gForm.rendered",function(){window.ATF&&e(function(){A.init().then(function(e){o.$rootScope=r,e.expose("g_form",A.augmentForm(o))})},1e3)}),c.$on("$destroy",function(){o&&c.$emit("spModel.gForm.destroyed",d.sys_id)})}]};function L(e){return-1==this.getFieldNames().indexOf(e)?null:new function(e,i){this.g_form=e,this.name=i,this.options=[],this.focus=function(){console.log(">> focus not implemented for "+this.name)},Object.defineProperty(this,"value",{get:function(){return this.g_form.getValue(this.name)},set:function(e){this.g_form.setValue(this.name,e)}})}(this,e)}}]); angular.module("sn.$sp").factory("spCodeEditorAutocomplete",["$rootScope","$q","$http",function(t,n,r){"use strict";var u={};return{getConfig:function(e,o){return u[e+"."+o]?n.when(u[e+"."+o]):r.get("/api/now/sp/editor/autocomplete/table/"+e+"/field/"+o).then(function(t){t=t.data.result;return u[e+"."+o]=t})}}}]); angular.module("sn.$sp").provider("defaultJSAutocomplete",function(){"use strict";this.$get=function(){return{"!name":"ecma5","!define":{"Error.prototype":"Error.prototype"},Infinity:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity","!doc":"A numeric value representing infinity."},undefined:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/undefined","!doc":"The value undefined."},NaN:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/NaN","!doc":"A value representing Not-A-Number."},Object:{"!type":"fn()",getPrototypeOf:{"!type":"fn(obj: ?) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getPrototypeOf","!doc":"Returns the prototype (i.e. the internal prototype) of the specified object."},create:{"!type":"fn(proto: ?) -> !custom:Object_create","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create","!doc":"Creates a new object with the specified prototype object and properties."},defineProperty:{"!type":"fn(obj: ?, prop: string, desc: ?) -> !custom:Object_defineProperty","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty","!doc":"Defines a new property directly on an object, or modifies an existing property on an object, and returns the object. If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see this article."},defineProperties:{"!type":"fn(obj: ?, props: ?) -> !custom:Object_defineProperties","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty","!doc":"Defines a new property directly on an object, or modifies an existing property on an object, and returns the object. If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see this article."},getOwnPropertyDescriptor:{"!type":"fn(obj: ?, prop: string) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor","!doc":"Returns a property descriptor for an own property (that is, one directly present on an object, not present by dint of being along an object's prototype chain) of a given object."},keys:{"!type":"fn(obj: ?) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/keys","!doc":"Returns an array of a given object's own enumerable properties, in the same order as that provided by a for-in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well)."},getOwnPropertyNames:{"!type":"fn(obj: ?) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames","!doc":"Returns an array of all properties (enumerable or not) found directly upon a given object."},seal:{"!type":"fn(obj: ?)","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/seal","!doc":"Seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable."},isSealed:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/isSealed","!doc":"Determine if an object is sealed."},freeze:{"!type":"fn(obj: ?) -> !0","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/freeze","!doc":"Freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed. In essence the object is made effectively immutable. The method returns the object being frozen."},isFrozen:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/isFrozen","!doc":"Determine if an object is frozen."},preventExtensions:{"!type":"fn(obj: ?)","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions","!doc":"Prevents new properties from ever being added to an object."},isExtensible:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible","!doc":"The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it)."},prototype:{"!stdProto":"Object",toString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/toString","!doc":"Returns a string representing the object."},toLocaleString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/toLocaleString","!doc":"Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes."},valueOf:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/valueOf","!doc":"Returns the primitive value of the specified object"},hasOwnProperty:{"!type":"fn(prop: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/hasOwnProperty","!doc":"Returns a boolean indicating whether the object has the specified property."},propertyIsEnumerable:{"!type":"fn(prop: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable","!doc":"Returns a Boolean indicating whether the specified property is enumerable."},isPrototypeOf:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf","!doc":"Tests for an object in another object's prototype chain."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object","!doc":"Creates an object wrapper."},Function:{"!type":"fn(body: string) -> fn()",prototype:{"!stdProto":"Function",apply:{"!type":"fn(this: ?, args: [?])","!effects":["call and return !this this=!0 !1.<i> !1.<i> !1.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/apply","!doc":"Calls a function with a given this value and arguments provided as an array (or an array like object)."},call:{"!type":"fn(this: ?, args?: ?) -> !this.!ret","!effects":["call and return !this this=!0 !1 !2 !3 !4"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/call","!doc":"Calls a function with a given this value and arguments provided individually."},bind:{"!type":"fn(this: ?, args?: ?) -> !custom:Function_bind","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind","!doc":"Creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function was called."},prototype:"?"},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function","!doc":"Every function in JavaScript is actually a Function object."},Array:{"!type":"fn(size: number) -> !custom:Array_ctor",isArray:{"!type":"fn(value: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/isArray","!doc":"Returns true if an object is an array, false if it is not."},prototype:{"!stdProto":"Array",length:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/length","!doc":"An unsigned, 32-bit integer that specifies the number of elements in an array."},concat:{"!type":"fn(other: [?]) -> !this","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/concat","!doc":"Returns a new array comprised of this array joined with other array(s) and/or value(s)."},join:{"!type":"fn(separator?: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/join","!doc":"Joins all elements of an array into a string."},splice:{"!type":"fn(pos: number, amount: number, newelt?: ?) -> [?]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/splice","!doc":"Changes the content of an array, adding new elements while removing old elements."},pop:{"!type":"fn() -> !this.<i>","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/pop","!doc":"Removes the last element from an array and returns that element."},push:{"!type":"fn(newelt: ?) -> number","!effects":["propagate !0 !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/push","!doc":"Mutates an array by appending the given elements and returning the new length of the array."},shift:{"!type":"fn() -> !this.<i>","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/shift","!doc":"Removes the first element from an array and returns that element. This method changes the length of the array."},unshift:{"!type":"fn(newelt: ?) -> number","!effects":["propagate !0 !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/unshift","!doc":"Adds one or more elements to the beginning of an array and returns the new length of the array."},slice:{"!type":"fn(from?: number, to?: number) -> !this","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/slice","!doc":"Returns a shallow copy of a portion of an array."},reverse:{"!type":"fn()","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/reverse","!doc":"Reverses an array in place. The first array element becomes the last and the last becomes the first."},sort:{"!type":"fn(compare?: fn(a: ?, b: ?) -> number)","!effects":["call !0 !this.<i> !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/sort","!doc":"Sorts the elements of an array in place and returns the array."},indexOf:{"!type":"fn(elt: ?, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf","!doc":"Returns the first index at which a given element can be found in the array, or -1 if it is not present."},lastIndexOf:{"!type":"fn(elt: ?, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/lastIndexOf","!doc":"Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex."},every:{"!type":"fn(test: fn(elt: ?, i: number, array: +Array) -> bool, context?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/every","!doc":"Tests whether all elements in the array pass the test implemented by the provided function."},some:{"!type":"fn(test: fn(elt: ?, i: number, array: +Array) -> bool, context?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/some","!doc":"Tests whether some element in the array passes the test implemented by the provided function."},filter:{"!type":"fn(test: fn(elt: ?, i: number, array: +Array) -> bool, context?: ?) -> !this","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/filter","!doc":"Creates a new array with all elements that pass the test implemented by the provided function."},forEach:{"!type":"fn(f: fn(elt: ?, i: number, array: +Array), context?: ?)","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/forEach","!doc":"Executes a provided function once per array element."},map:{"!type":"fn(f: fn(elt: ?, i: number, array: +Array) -> ?, context?: ?) -> [!0.!ret]","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map","!doc":"Creates a new array with the results of calling a provided function on every element in this array."},reduce:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number, array: +Array) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/Reduce","!doc":"Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value."},reduceRight:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number, array: +Array) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/ReduceRight","!doc":"Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array","!doc":"The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects."},String:{"!type":"fn(value: ?) -> string",fromCharCode:{"!type":"fn(code: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/fromCharCode","!doc":"Returns a string created by using the specified sequence of Unicode values."},prototype:{"!stdProto":"String",length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/String/length","!doc":"Represents the length of a string."},"<i>":"string",charAt:{"!type":"fn(i: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/charAt","!doc":"Returns the specified character from a string."},charCodeAt:{"!type":"fn(i: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/charCodeAt","!doc":"Returns the numeric Unicode value of the character at the given index (except for unicode codepoints > 0x10000)."},indexOf:{"!type":"fn(char: string, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/indexOf","!doc":"Returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex,\nreturns -1 if the value is not found."},lastIndexOf:{"!type":"fn(char: string, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/lastIndexOf","!doc":"Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, starting at fromIndex."},substring:{"!type":"fn(from: number, to?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/substring","!doc":"Returns a subset of a string between one index and another, or through the end of the string."},substr:{"!type":"fn(from: number, length?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/substr","!doc":"Returns the characters in a string beginning at the specified location through the specified number of characters."},slice:{"!type":"fn(from: number, to?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/slice","!doc":"Extracts a section of a string and returns a new string."},trim:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/Trim","!doc":"Removes whitespace from both ends of the string."},toUpperCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toUpperCase","!doc":"Returns the calling string value converted to uppercase."},toLowerCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLowerCase","!doc":"Returns the calling string value converted to lowercase."},toLocaleUpperCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase","!doc":"Returns the calling string value converted to upper case, according to any locale-specific case mappings."},toLocaleLowerCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase","!doc":"Returns the calling string value converted to lower case, according to any locale-specific case mappings."},split:{"!type":"fn(pattern?: string|+RegExp, limit?: number) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/split","!doc":"Splits a String object into an array of strings by separating the string into substrings."},concat:{"!type":"fn(other: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/concat","!doc":"Combines the text of two or more strings and returns a new string."},localeCompare:{"!type":"fn(other: string) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/localeCompare","!doc":"Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order."},match:{"!type":"fn(pattern: +RegExp) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/match","!doc":"Used to retrieve the matches when matching a string against a regular expression."},replace:{"!type":"fn(pattern: string|+RegExp, replacement: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/replace","!doc":"Returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match."},search:{"!type":"fn(pattern: +RegExp) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/search","!doc":"Executes the search for a match between a regular expression and this String object."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String","!doc":"The String global object is a constructor for strings, or a sequence of characters."},Number:{"!type":"fn(value: ?) -> number",MAX_VALUE:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/MAX_VALUE","!doc":"The maximum numeric value representable in JavaScript."},MIN_VALUE:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/MIN_VALUE","!doc":"The smallest positive numeric value representable in JavaScript."},POSITIVE_INFINITY:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY","!doc":"A value representing the positive Infinity value."},NEGATIVE_INFINITY:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY","!doc":"A value representing the negative Infinity value."},prototype:{"!stdProto":"Number",toString:{"!type":"fn(radix?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toString","!doc":"Returns a string representing the specified Number object"},toFixed:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toFixed","!doc":"Formats a number using fixed-point notation"},toExponential:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toExponential","!doc":"Returns a string representing the Number object in exponential notation"},toPrecision:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toPrecision","!doc":"The toPrecision() method returns a string representing the number to the specified precision."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number","!doc":"The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor."},Boolean:{"!type":"fn(value: ?) -> bool",prototype:{"!stdProto":"Boolean"},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean","!doc":"The Boolean object is an object wrapper for a boolean value."},RegExp:{"!type":"fn(source: string, flags?: string)",prototype:{"!stdProto":"RegExp",exec:{"!type":"fn(input: string) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/exec","!doc":"Executes a search for a match in a specified string. Returns a result array, or null."},test:{"!type":"fn(input: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/test","!doc":"Executes the search for a match between a regular expression and a specified string. Returns true or false."},global:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},ignoreCase:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},multiline:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/multiline","!doc":"Reflects whether or not to search in strings across multiple lines.\n"},source:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/source","!doc":"A read-only property that contains the text of the pattern, excluding the forward slashes.\n"},lastIndex:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/lastIndex","!doc":"A read/write integer property that specifies the index at which to start the next match."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},Date:{"!type":"fn(ms: number)",parse:{"!type":"fn(source: string) -> +Date","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse","!doc":"Parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC."},UTC:{"!type":"fn(year: number, month: number, date: number, hour?: number, min?: number, sec?: number, ms?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/UTC","!doc":"Accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time."},now:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now","!doc":"Returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC."},prototype:{toUTCString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toUTCString","!doc":"Converts a date to a string, using the universal time convention."},toISOString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString","!doc":"JavaScript provides a direct way to convert a date object into a string in ISO format, the ISO 8601 Extended Format."},toDateString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toDateString","!doc":"Returns the date portion of a Date object in human readable form in American English."},toTimeString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toTimeString","!doc":"Returns the time portion of a Date object in human readable form in American English."},toLocaleDateString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toLocaleDateString","!doc":"Converts a date to a string, returning the \"date\" portion using the operating system's locale's conventions.\n"},toLocaleTimeString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString","!doc":'Converts a date to a string, returning the "time" portion using the current locale\'s conventions.'},getTime:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getTime","!doc":"Returns the numeric value corresponding to the time for the specified date according to universal time."},getFullYear:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getFullYear","!doc":"Returns the year of the specified date according to local time."},getYear:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getYear","!doc":"Returns the year in the specified date according to local time."},getMonth:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMonth","!doc":"Returns the month in the specified date according to local time."},getUTCMonth:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCMonth","!doc":"Returns the month of the specified date according to universal time.\n"},getDate:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getDate","!doc":"Returns the day of the month for the specified date according to local time."},getUTCDate:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCDate","!doc":"Returns the day (date) of the month in the specified date according to universal time.\n"},getDay:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getDay","!doc":"Returns the day of the week for the specified date according to local time."},getUTCDay:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCDay","!doc":"Returns the day of the week in the specified date according to universal time.\n"},getHours:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getHours","!doc":"Returns the hour for the specified date according to local time."},getUTCHours:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCHours","!doc":"Returns the hours in the specified date according to universal time.\n"},getMinutes:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMinutes","!doc":"Returns the minutes in the specified date according to local time."},getUTCMinutes:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date","!doc":"Creates JavaScript Date instances which let you work with dates and times."},getSeconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getSeconds","!doc":"Returns the seconds in the specified date according to local time."},getUTCSeconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCSeconds","!doc":"Returns the seconds in the specified date according to universal time.\n"},getMilliseconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMilliseconds","!doc":"Returns the milliseconds in the specified date according to local time."},getUTCMilliseconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds","!doc":"Returns the milliseconds in the specified date according to universal time.\n"},getTimezoneOffset:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset","!doc":"Returns the time-zone offset from UTC, in minutes, for the current locale."},setTime:{"!type":"fn(date: +Date) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setTime","!doc":"Sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.\n"},setFullYear:{"!type":"fn(year: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setFullYear","!doc":"Sets the full year for a specified date according to local time.\n"},setUTCFullYear:{"!type":"fn(year: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCFullYear","!doc":"Sets the full year for a specified date according to universal time.\n"},setMonth:{"!type":"fn(month: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMonth","!doc":"Set the month for a specified date according to local time."},setUTCMonth:{"!type":"fn(month: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMonth","!doc":"Sets the month for a specified date according to universal time.\n"},setDate:{"!type":"fn(day: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setDate","!doc":"Sets the day of the month for a specified date according to local time."},setUTCDate:{"!type":"fn(day: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCDate","!doc":"Sets the day of the month for a specified date according to universal time.\n"},setHours:{"!type":"fn(hour: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setHours","!doc":"Sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance."},setUTCHours:{"!type":"fn(hour: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCHours","!doc":"Sets the hour for a specified date according to universal time.\n"},setMinutes:{"!type":"fn(min: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMinutes","!doc":"Sets the minutes for a specified date according to local time."},setUTCMinutes:{"!type":"fn(min: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMinutes","!doc":"Sets the minutes for a specified date according to universal time.\n"},setSeconds:{"!type":"fn(sec: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setSeconds","!doc":"Sets the seconds for a specified date according to local time."},setUTCSeconds:{"!type":"fn(sec: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCSeconds","!doc":"Sets the seconds for a specified date according to universal time.\n"},setMilliseconds:{"!type":"fn(ms: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMilliseconds","!doc":"Sets the milliseconds for a specified date according to local time.\n"},setUTCMilliseconds:{"!type":"fn(ms: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds","!doc":"Sets the milliseconds for a specified date according to universal time.\n"}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date","!doc":"Creates JavaScript Date instances which let you work with dates and times."},Error:{"!type":"fn(message: string)",prototype:{name:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error/name","!doc":"A name for the type of error."},message:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error/message","!doc":"A human-readable description of the error."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error","!doc":"Creates an error object."},SyntaxError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError","!doc":"Represents an error when trying to interpret syntactically invalid code."},ReferenceError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError","!doc":"Represents an error when a non-existent variable is referenced."},URIError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/URIError","!doc":"Represents an error when a malformed URI is encountered."},EvalError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/EvalError","!doc":"Represents an error regarding the eval function."},RangeError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RangeError","!doc":"Represents an error when a number is not within the correct range allowed."},TypeError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/TypeError","!doc":"Represents an error an error when a value is not of the expected type."},parseInt:{"!type":"fn(string: string, radix?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt","!doc":"Parses a string argument and returns an integer of the specified radix or base."},parseFloat:{"!type":"fn(string: string) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseFloat","!doc":"Parses a string argument and returns a floating point number."},isNaN:{"!type":"fn(value: number) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/isNaN","!doc":"Determines whether a value is NaN or not. Be careful, this function is broken. You may be interested in ECMAScript 6 Number.isNaN."},isFinite:{"!type":"fn(value: number) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/isFinite","!doc":"Determines whether the passed value is a finite number."},eval:{"!type":"fn(code: string) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/eval","!doc":"Evaluates JavaScript code represented as a string."},encodeURI:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI","!doc":'Encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).'},encodeURIComponent:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent","!doc":'Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).'},decodeURI:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/decodeURI","!doc":"Decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine."},decodeURIComponent:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent","!doc":"Decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine."},Math:{E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/E","!doc":"The base of natural logarithms, e, approximately 2.718."},LN2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LN2","!doc":"The natural logarithm of 2, approximately 0.693."},LN10:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LN10","!doc":"The natural logarithm of 10, approximately 2.302."},LOG2E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LOG2E","!doc":"The base 2 logarithm of E (approximately 1.442)."},LOG10E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LOG10E","!doc":"The base 10 logarithm of E (approximately 0.434)."},SQRT1_2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/SQRT1_2","!doc":"The square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707."},SQRT2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/SQRT2","!doc":"The square root of 2, approximately 1.414."},PI:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/PI","!doc":"The ratio of the circumference of a circle to its diameter, approximately 3.14159."},abs:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/abs","!doc":"Returns the absolute value of a number."},cos:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/cos","!doc":"Returns the cosine of a number."},sin:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/sin","!doc":"Returns the sine of a number."},tan:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/tan","!doc":"Returns the tangent of a number."},acos:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/acos","!doc":"Returns the arccosine (in radians) of a number."},asin:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/asin","!doc":"Returns the arcsine (in radians) of a number."},atan:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/atan","!doc":"Returns the arctangent (in radians) of a number."},atan2:{"!type":"fn(y: number, x: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/atan2","!doc":"Returns the arctangent of the quotient of its arguments."},ceil:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/ceil","!doc":"Returns the smallest integer greater than or equal to a number."},floor:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/floor","!doc":"Returns the largest integer less than or equal to a number."},round:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/round","!doc":"Returns the value of a number rounded to the nearest integer."},exp:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/exp","!doc":"Returns Ex, where x is the argument, and E is Euler's constant, the base of the natural logarithms."},log:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/log","!doc":"Returns the natural logarithm (base E) of a number."},sqrt:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/sqrt","!doc":"Returns the square root of a number."},pow:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/pow","!doc":"Returns base to the exponent power, that is, baseexponent."},max:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/max","!doc":"Returns the largest of zero or more numbers."},min:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/min","!doc":"Returns the smallest of zero or more numbers."},random:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random","!doc":"Returns a floating-point, pseudo-random number in the range [0, 1) that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range."},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math","!doc":"A built-in object that has properties and methods for mathematical constants and functions."},JSON:{parse:{"!type":"fn(json: string, reviver?: fn(key: string, value: ?) -> ?) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/parse","!doc":"Parse a string as JSON, optionally transforming the value produced by parsing."},stringify:{"!type":"fn(value: ?, replacer?: fn(key: string, value: ?) -> ?, space?: string|number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/stringify","!doc":"Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified."},"!url":"https://developer.mozilla.org/en-US/docs/JSON","!doc":"JSON (JavaScript Object Notation) is a data-interchange format. It closely resembles a subset of JavaScript syntax, although it is not a strict subset. (See JSON in the JavaScript Reference for full details.) It is useful when writing any kind of JavaScript-based application, including websites and browser extensions. For example, you might store user information in JSON format in a cookie, or you might store extension preferences in JSON in a string-valued browser preference."}}}}); angular.module("sn.$sp").provider("lazyLoader",function(){"use strict";var config={},propsCache={},directivesCache={};function directiveExists(e){return!!directivesCache[e]||!(directivesCache[e]=!0)}function isProviderLoaded(e){return"directive"===e.type?directiveExists(e.name):propsCache[e.name]||void(propsCache[e.name]=!0)}this.set=function(e){config=e},this.$get=["$controller","$templateCache","$ocLazyLoad",function($controller,$templateCache,$ocLazyLoad){return{directive:config.directive,directiveExists:directiveExists,controller:config.register,putTemplates:function(e){for(var r in e)$templateCache.put(r,e[r])},providers:function providers(provList){var provider,script,result=[],i;for(i in provList)provList.hasOwnProperty(i)&&(provider=provList[i],isProviderLoaded(provider)||(eval("script="+provider.script),result[i]=config[provider.type](provider.name,script)));return result},dependencies:function(e){e=e.map(function(e){var r=e.files.map(function(e){return{type:{script:"js",link:"css"}[e.type],path:e.url}});return 1==r.length?r[0]:(r={files:r,serie:!0},0<e.module.length&&(r.module=e.module),r)});return $ocLazyLoad.load(e)}}}]}); angular.module("sn.$sp").factory("spServer",["spUtil",function(e){"use strict";return{set:function(t){return{get:function(r){return e.get(t,r)},update:function(){return e.update(t)},refresh:function(){return e.refresh(t)}}}}}]); angular.module("sn.$sp").directive("spOnTransition",["$rootScope",function(t){var o=function(){var n,i=document.createElement("test"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==i.style[n])return t[n]}();return{restrict:"A",scope:{spOnTransition:"="},link:function(n,i){$(i).on(o,function(){t.$broadcast(n.spOnTransition.event)})}}}]); function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}angular.module("sn.$sp").directive("spContextMenu",["$parse","$q",function(e,g){function m(e){for(;o.length&&(!e||o.length>e);)o.pop().remove();0==o.length&&r&&r.remove()}function h(l,p,e,s,u){u=u||0;var c=c||angular.element,t=(c(p.currentTarget).addClass("context"),c("<div>")),d=(t.attr({role:"contentinfo"}),r?t=r:r=t,t.addClass("dropdown clearfix"),c("<ul>")),f=(d.addClass("dropdown-menu"),d.attr({role:"menu"}),d.css((_defineProperty(n={display:"block","padding-top":"0px",position:"absolute"},g_portal_isrtl?"right":"left",p.pageX+"px"),_defineProperty(n,"top",p.pageY+"px"),_defineProperty(n,"z-index",1e4),n)),[]),n=(angular.forEach(e,function(t,e){var n,o,r,a,i=c("<li>");i.attr({role:"menuitem"}),null===t?i.addClass("divider"):Array.isArray(t)?(n=angular.isArray(t[1])?t[1]:angular.isArray(t[2])?t[2]:angular.isArray(t[3])?t[3]:null,(o=c('<a class="sp-context-menu-padding">')).attr({tabindex:"-1",href:"#"}),r="string"==typeof t[0]?t[0]:t[0].call(l,l,p,s),$promise=g.when(r),f.push($promise),$promise.then(function(e){o.text(e),n&&(o.css("cursor","default"),o.append(c('<strong class="pull-right" style="font-family:monospace;font-weight:bold;">></strong>')))}),i.append(o),angular.isFunction(t[1])?(a=function(e){m(u+1);var t={pageX:p.pageX+d[0].offsetWidth-1,pageY:d[0].offsetTop+i[0].offsetTop-3};h(l,t,n,s,u+1)},i.on("click",function(e){e.preventDefault(),l.$apply(function(){n?a():(c(p.currentTarget).removeClass("context"),m(),t[1].call(l,l,p,s,r))})}),i.on("mouseover",function(e){l.$apply(function(){n&&a()})})):(i.on("click",function(e){e.preventDefault()}),i.addClass("disabled"))):(i.css("padding","10px 15px"),i.css("background-color","#eee"),i.css("margin-bottom","8px"),i.text(t)),d.append(i)}),t.append(d),Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight));t.css((_defineProperty(e={width:"100%",height:n+"px",position:"absolute",top:0},g_portal_isrtl?"right":"left",0),_defineProperty(e,"zIndex",9999),e)),c(document).find("body").append(t),g.all(f).then(function(){var e,t,n,o;0===u&&(e=p.pageY,n=angular.element(d[0]).prop("offsetHeight"),t=p.view.innerHeight,n<e&&t-e<n&&(e=p.pageY-n),t=p.pageX,n=angular.element(d[0]).prop("offsetWidth"),o=p.view.innerWidth,n<t&&o-t<n&&(t=p.pageX-n),g_portal_isrtl?(t=p.view.innerWidth-p.pageX-n,d.css({display:"block",position:"absolute",top:e+"px",right:t+"px"})):d.css({display:"block",position:"absolute",top:e+"px",left:t+"px"}))}),t.on("mousedown",function(e){c(e.target).hasClass("dropdown")&&(c(p.currentTarget).removeClass("context"),m())}).on("contextmenu",function(e){c(e.currentTarget).removeClass("context"),e.preventDefault(),m(u)}),l.$on("$destroy",function(){m()}),o.push(d)}var o=[],r=null;return function(o,e,r){e.on("contextmenu",function(n){o.$apply(function(){var e=o.$eval(r.spContextMenu,{event:n}),t=o.$eval(r.model);if(!(e instanceof Array))throw'"'+r.contextMenu+'" not an array';0!==e.length&&(n.stopPropagation(),n.preventDefault(),h(o,n,e,t))})})}}]); function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}angular.module("sn.$sp").factory("spInterceptor",["$q","$rootScope",function(n,r){"use strict";var t=[],e=["^/api/now/ui/presence","^/api/now/table/"],i=["^/api/now/sp/rectangle/","^/api/now/sp/widget/","^/api/now/sp/uiaction/"];function a(o){for(var n in t)t[n]===o&&t.splice(n,1);0===t.length&&(r.$broadcast("sp_loading_indicator",!1),r.loadingIndicator=!1)}function c(o,n){for(var r in n)if(new RegExp(n[r]).test(o))return!0;return!1}function o(o){return o.config.id&&a(o.config.id),n.reject(o)}return{request:function(o){return c(o.url,e)||(o.id="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var n=16*Math.random()|0;return("x"===o?n:3&n|8).toString(16)}),c(o.url,i)&&(o.data=o.data||{},o.headers=o.headers||{},"object"==_typeof(o.data)&&(o.data.sessionRotationTrigger=!window.logged_in),window.getHeaders&&(o.headers=angular.merge(window.getHeaders(),o.headers))),t.push(o.id),r.$broadcast("sp_loading_indicator",!0),r.loadingIndicator=!0),o},requestError:o,response:function(o){return o.config.id&&a(o.config.id),o},responseError:o}}]); angular.module("sn.$sp").directive("glyph",function(){"use strict";return{restrict:"E",replace:!0,scope:{snChar:"@"},template:'<span class="glyphicon glyphicon-{{snChar}}" />',link:function(n){}}}); angular.module("ui.bootstrap.carousel").decorator("uibCarouselDirective",["$delegate","i18n",function(e,l){function r(t,e,n,r){t.getNextButtonAriaLabel=function(){return l.getMessage("Show next, Slide {0} of {1}").withValues([1+(r.getCurrentIndex()+1)%t.slides.length,t.slides.length])},t.getPreviousButtonAriaLabel=function(){return l.getMessage("Show previous, Slide {0} of {1}").withValues([1+((e=r.getCurrentIndex())-1<0?t.slides.length-1:e-1),t.slides.length]);var e}}e=e[0];e.templateUrl=function(e,t){return t.templateUrl||"sp_carousel.xml"};return e.compile=function(){return function(e,t,n){r.apply(this,arguments)}},[e]}]); angular.module("sn.$sp").directive("spNotifications",["$timeout","spAriaUtil","spAriaFocusManager","i18n","$window",function(d,p,v,i,y){var h="CONSOLE:";return{restrict:"E",replace:!0,template:'<div id="uiNotificationContainer" role="{{c.containerRole}}" aria-atomic="false">\t\t\t<div ng-repeat="m in c.notifications"\t\t class="alert" ng-class="{\'alert-danger\' : m.type == \'error\', \'alert-warning\' : m.type == \'warning\', \'alert-success\' : m.type != \'warning\' && m.type != \'error\'}">\t\t\t<span ng-if="m.type == \'error\' " class="fa fa-exclamation-triangle m-r-xs" aria-hidden="true"></span>\t\t\t<span ng-if="m.type == \'error\' " class="sr-only">{{c.errorMsg}}</span>\t\t\t<span class="alert-msg" ng-bind-html="m.displayMessage" ng-click="::c.dismissOnAnchorClick($event)" role="{{c.messageRole}}"></span>\t\t\t<button class="btn btn-link fa fa-close dismiss-notifications" ng-click="::c.dismissNotification($index)" aria-label="{{c.closeNotification}}"></button>\t\t\t</div>\t\t\t</div>',controllerAs:"c",controller:["$scope","$element",function(t,e){var s,n,o=this,a=[],c=(o.errorMsg=i.getMessage("Error"),o.closeNotification=i.getMessage("Close Notification"),o.notifications=[],o.messageRole="presentation",o.containerRole="status",f()&&(o.messageRole="status",o.containerRole="none"),function(i,t,n){for(var e=0;e<i.length;e++)if(t.message===(n?i[e].displayMessage:i[e].message)&&i[e].type===t.type)return e;return-1});function r(i){if(i)if((t=i.message)&&t.startsWith(h)){t=i.message;if(t=t.substring(h.length),new RegExp("^\\{|^\\[").test(t))try{t=jQuery.parseJSON(t)}catch(i){}console.warn(t)}else{var t,n;void 0===i.message?console.warn('Invalid message "'+i+'" passed to spNotifications directive, expected an Object {type:[type], message:[message]}'):(e.on("mouseover",function(){e.off(),o.cancelAutoDismiss()}),i.displayMessage=i.message,n=c(o.notifications,i,!1),d(function(){n<0?(-1<c(a,i,!0)&&(i.displayMessage+=" "),o.notifications.push(i),l(o.notifications.length-1)):(o.notifications[n].message===o.notifications[n].displayMessage?o.notifications[n].displayMessage+=" ":o.notifications[n].displayMessage=o.notifications[n].message,l(n)),f()||(s=function(){s&&d.cancel(s);var i=o.getMilliSeconds();if(0<i)return d(o.dismissNotifications,i)}())},500),f()?"error"===i.type&&"alert"!==e.attr("role")&&(e.attr("role","alert"),o.messageRole="alert"):d(function(){u()},50))}}function f(){return"true"===p.g_accessibility||!y.logged_in}function l(i){f()&&(1===o.notifications.length&&(n=document.activeElement),t.focusOnNotificationCloseButton(i))}function u(){var i=$(".has-error:first"),t=["input:visible","textarea:visible","button:visible"],n=i.find("iframe:visible");if(i.hasClass("type-html")&&n.length)return n.contents().find("body").focus(),1;for(var e=0;e<t.length;e++){var s=i.find(t[e]);if(s.length)return s[0].focus(),1}}t.$on("$$uiNotification",function(i,t){if(t)if(Array.isArray(t))for(var n in t)r(t[n]);else r(t);else console.warn("$$uiNotification event fired with invalid or missing notifications parameter")});function g(i){var t=c(a,i,!1);t<0?a.push(i):a[t]=i}function m(i){return 1<=i.length&&i.every(function(i){return i&&"trivial"===i.type})}o.dismissNotification=function(i){g(o.notifications[i]),-1<i&&o.notifications.splice(i,1),p.isAccessibilityEnabled()&&(0<o.notifications.length?t.focusOnNotificationCloseButton(0===i?i+1:i-1):u()||(n&&n!==document.body&&document.contains(n)?n.focus():v.focusOnPageTitle()))},o.dismissNotifications=function(){o.notifications.forEach(function(i){g(i)}),o.notifications.length=0},o.dismissOnAnchorClick=function(i){g_persist_msgs_through_page_nav&&"A"==i.target.nodeName&&o.dismissNotifications()},o.getMilliSeconds=function(){var i="undefined"!=typeof g_notif_timeout?g_notif_timeout:5;return 1e3*(m(o.notifications)?3:i)},o.cancelAutoDismiss=function(){m(o.notifications)||d.cancel(s)},t.$on("$$uiNotification.dismiss",o.dismissNotifications)}],link:function(i,t,n,e){i.focusOnNotificationCloseButton=function(i){d(function(){$("#uiNotificationContainer .dismiss-notifications")[i].focus()})}}}}]); angular.module("sn.$sp").provider("spNotificationEvents",function(){"use strict";var i;function t(){i&&i.$broadcast("$$uiNotification.dismiss")}function a(s){i&&i.$broadcast("$$uiNotification",s)}this.clearMessages=t,this.addMessages=a,this.$get=["$rootScope",function(s){return i=s,{clearMessages:t,addMessages:a}}]}); angular.module("sn.$sp").factory("spIs",function(){return{an:{email:function(a){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)}}}}); angular.module("sn.$sp").factory("spThrottle",["$timeout",function(o){return function(n,t){var u=!1;return function(){u||(n.call(),u=!0,o(function(){u=!1},t))}}}]); angular.module("sn.$sp").factory("spModal",["$q","spUtil","$http","$uibModal","i18n","$document","$timeout","$uibModalStack",function(r,o,i,a,s,e,u,t){"use strict";function n(e){e.messageOnly=!0,e.title.length<25&&(e.size="sm");var t=r.defer();return l(e).then(function(){t.resolve(!0)},function(){t.reject(!1)}),t.promise}function l(t){t=function(e){var t,n={title:"",message:"",messageOnly:!1,errorMessage:"",input:!1,label:"",size:"",value:"",required:!1,values:!1,onSubmit:null,widget:null,widgetInput:null,noDismiss:!1,dismissOnEnter:!1,buttons:[{label:s.getMessage("Cancel"),cancel:!0},{label:s.getMessage("OK"),primary:!0}]};for(t in e=e||{},n)void 0===e[t]&&(e[t]=n[t]);e.messageOnly&&(e.headerStyle={border:"none"},e.footerStyle={border:"none","padding-top":0});e.noDismiss&&(e.headerStyle={display:"none"});return e}(t);var e,n=r.defer();return t.widget?(e=o.getWidgetURL(t.widget),i.post(e,t.widgetInput).success(function(e){t.widget=e.result,t.widget.options.shared=t.shared,c(t,n)})):c(t,n),n.promise}function c(n,t){var e=angular.element(".sp-page-root"),o=a.open({templateUrl:"sp-modal.html",controller:d,size:n.size,appendTo:n.appendTo,backdrop:null==n.backdrop||n.backdrop,keyboard:null==n.keyboard||n.keyboard,animation:null==n.animation||n.animation,resolve:{options:function(){return n}}});o.result.then(function(e){n.input?t.resolve(e.input,e.button):t.resolve(e.button)},function(){t.reject()}),o.rendered.then(function(){var t=angular.element("#modal-title").closest("div.modal");t.attr("aria-labelledby","modal-title"),e.attr("aria-hidden","true"),t.attr("aria-modal","true"),n.noDismiss&&u(function(){var e=window.tabbable(t[0]);e[0]&&e[0].focus()},0)})}function d(n,e){n.input={value:e.value},n.options=e,n.form={},n.buttonClicked=function(t){t.cancel?n.$dismiss():e.input&&n.form.xpForm.$invalid?n.changed=!0:e.onSubmit?e.onSubmit().then(function(e){e.status?n.$close({button:t,input:n.input.value}):n.options.errorMessage=e.errorMessage}):n.$close({button:t,input:n.input.value})},n.$on("modal.closing",function(){angular.element(".sp-page-root").attr("aria-hidden","false")}),n.clearFocusListCache=function(){t.clearFocusListCache()},n.submit=function(){var t;angular.forEach(n.options.buttons,function(e){e.primary&&(t=e)}),t&&n.buttonClicked(t)},n.keyPress=function(e){13===e&&1==n.options.dismissOnEnter&&n.submit()}}return d.$inject=["$scope","options"],{alert:function(e,t){return n({title:e,buttons:[{label:s.getMessage("OK"),primary:!0}],appendTo:t})},confirm:function(e,t){return n({title:e,appendTo:t})},prompt:function(e,t,n,o){var o={label:o||"",title:e,input:!0,value:t,appendTo:n,headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0}},i=r.defer();return l(o).then(function(e){i.resolve(e)},function(){i.reject(null)}),i.promise},open:l}}]),angular.module("sn.$sp").directive("spFocusIf",["$timeout",function(r){return{restrict:"A",link:function(t,e,n){var o=e[0];function i(e){e&&r(function(){o.focus()},t.$eval(n.spFocusDelay)||0)}n.spFocusIf?t.$watch(n.spFocusIf,i):i(!0)}}}]); angular.module("sn.$sp").factory("spAttachmentModal",["$uibModal","$q","$timeout",function(r,i,l){"use strict";function s(e,n){e.loadingIndicator=!1,e.supportedExtensions=n.supportedExtensions,e.fileSelectHandler=function(t){e.loadingIndicator=!0,n.fileSelectHandler(t)};var t=e.$on("attachment.upload.stop",function(){e.loadingIndicator&&e.$close()});e.$on("$destroy",function(){t()})}return s.$inject=["$scope","options"],{open:function(t){var e,n,a,t=function(t){var e,n={title:"",message:"",messageOnly:!1,size:"",noDismiss:!1,buttons:[]};for(e in t=t||{},n)void 0===t[e]&&(t[e]=n[e]);return t}(t),o=i.defer();return e=t,n=o,a=null,(t=r.open({templateUrl:"sp_attachment_modal.html",controller:s,options:e,backdrop:!0,keyboard:!0,resolve:{options:function(){return e}}})).result.then(function(t){n.resolve(t)},function(){n.reject()}),t.rendered.then(function(){var t=angular.element(".modal-attachment-picker"),t=(t.attr("aria-labelledby","attachment-header-title"),(a=angular.element(".sp-page-root")).attr("aria-hidden","true"),t.attr("aria-modal","true"),/^((?!chrome|android).)*safari/i.test(navigator.userAgent));l(function(){angular.element(".modal-attachment-picker .sp-attachment-add-btn").focus()},t?50:0,!1)}),t.closed.then(function(){a.attr("aria-hidden","false")}),o.promise}}}]); angular.module("sn.$sp").directive("spTextarea",["$window","$rootScope","spUtil",function(o,a,s){"use strict";function d(e,i){e.$applyAsync(function(){e.field.isVisible()&&o.requestAnimationFrame(function(){o.autosize.update(i)})})}return{scope:{field:"=",getGlideForm:"&glideForm"},require:"^ngModel",template:'<textarea sp-ignore-composition="" ng-attr-placeholder="{{field.placeholder}}" style="resize:vertical;" aria-required="{{field.isMandatory()}}" aria-label="{{field.label}}"/>',restrict:"E",replace:!0,link:function(t,l,e,i){o.autosize(l);var n=i.$render;i.$render=function(){n(),d(t,l)},l.on("blur",function(){var e=s.normalizeNewLines(i.$viewValue);i.$setViewValue(e)});function r(){t.field.isVisible()&&d(t,l)}t.field.isVisible()||a.$on("field.change",r),a.$on("sp.components.resize",r),t.getGlideForm().$private.events.on("propertyChange",function(e,i,n,r){i===t.field.name&&"FIELD"===e&&"visible"===n&&r&&d(t,l)})}}}]); function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}angular.module("sn.$sp").factory("spAriaUtil",["$window","$rootScope",function(t,n){"use strict";var i,o=t.g_accessibility;function s(t,e,i){_.isEmpty(e.tabindex)||(i=e.tabindex),_.isEmpty(i)||t.attr("tabindex",i)}return{init:function(){window.g_accessibility_resizeText&&$(window).on("load",function(){var t,i,e;"26f2fffb77322300454792718a1061e5"===window.NOW.portal_id?(i=16,t=parseInt(window.getComputedStyle(document.documentElement).fontSize,10),150<=10*Math.ceil(t/i*100/10)?document.body.setAttribute("text-zoom","true"):document.body.removeAttribute("text-zoom")):(i=parseInt(window.getComputedStyle(document.documentElement).fontSize,10),(e=document.createElement("iframe")).setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.id="text_only_resize_iframe",e.style.top="-999px",e.style[g_portal_isrtl?"right":"left"]="-999px",e.style.position="absolute",e.style.height="1em",e.onload=function(t){e.contentWindow.addEventListener("resize",function(t){var e=parseInt(window.getComputedStyle(document.documentElement).fontSize,10),e=10*Math.ceil(e/i*100/10);n.$broadcast("sp.textOnlyZoom",e),150<=e?document.body.setAttribute("text-zoom","true"):document.body.removeAttribute("text-zoom")})},document.body.insertBefore(e,document.body.childNodes[0]))})},link:function(n,r,a){return function(t,e,i){o&&(_.isEmpty(i.role)||r)&&e.attr("role",n),s(e,i,a)}},tabindex:s,g_accessibility:o,sendLiveMessage:function(t,e){i&&i(t,e)},onLiveMessage:function(t){i=t},isAccessibilityEnabled:function(){return!0===o||"true"===o}}}]).directive("spa11y",["spAriaUtil",function(t){return{restrict:"A",link:function(t,e,i){e.attr("accessibility",g_accessibility)}}}]).directive("spAria",["spAriaUtil",function(n){return{restrict:"A",link:function(t,e,i){i=i.spAria,n.g_accessibility&&!_.isEmpty(i)&&e.attr("role",i)}}}]).directive("body",["spAriaUtil","spAriaFocusManager","$location","$browser","$window","spPage",function(t,n,r,a,o,s){function c(){var t=window.location.href.replace(window.location.hash,"");return t=t.endsWith("#")?t.substring(0,t.length-1):t}function l(t){var e,i,n,r,a;t.href&&(i=$(t).attr("href"),e=new URL(t.href),i&&1<i.length&&(n=e,0==(i=i).indexOf("#")||(r=c(),"?"==i[0]?r==n.origin+n.pathname+s.getHrUrl()+i.replace(n.hash,""):"/"==i[0]?(a=-1<(a=i.indexOf("?"))?i.substring(0,a)+s.getHrUrl()+i.substring(a).replace(n.hash,""):i.replace(n.hash,"")+s.getHrUrl(),r==n.origin+a):void 0))&&(t.href=c()+e.hash))}return{restrict:"E",link:function(t,e){angular.element(e).on("click","a",function(){var i=this;l(i),t.$applyAsync(function(){n.navigateToLink(r.url());var t,e=r.hash();i.hash&&r.absUrl()===a.url()&&e&&((t=document.getElementById(e)||$("a:visible[name="+e+"]")[0])?t.scrollIntoView():"top"===e&&o.scrollTo(0,0))})})}}}]).directive("form",["spAriaUtil",function(n){return{restrict:"E",link:function(t,e,i){e.is("form")||n.link("form")}}}]).directive("img",["spAriaUtil",function(n){return{restrict:"E",link:function(t,e,i){i.title||i.alt||n.link("presentation")(t,e,i)}}}]).directive("textarea",["spAriaUtil",function(t){return{restrict:"E",link:t.link("textbox",!1,0)}}]).directive("input",["spAriaUtil",function(r){return{restrict:"E",link:function(t,e,i){var n;switch(i.type){case"email":case"password":case"tel":case"text":case"url":n="textbox";break;case"button":case"checkbox":case"radio":n=i.type;break;case"hidden":break;case"image":case"reset":case"submit":n="button";break;case"number":n="spinbutton";break;case"range":n="slider";break;case"search":n="searchbox"}r.g_accessibility&&!_.isEmpty(n)&&r.link(n,!1,0)(t,e,i)}}}]).directive("span",["spAriaUtil",function(r){return{restrict:"E",link:function(t,e,i){var n;i.style&&-1<i.style.indexOf("background")&&(n="presentation",i["aria-hidden"]=!0),r.g_accessibility&&!_.isEmpty(n)&&r.link(n,!1,0)(t,e,i)}}}]).directive("role",["spAriaUtil",function(n){return{restrict:"A",link:function(t,e,i){"slider"===i.role&&(n.tabindex(e,i,-1),e.find("i[aria-valuetext]").each(function(t,e){$(e).attr("tabindex",0)}))}}}]).directive("spAriaLive",["spAriaUtil","spUtil","$sanitize",function(l,u,d){return{template:["<div>",'<div aria-live="assertive" class="sr-only sp-aria-live"></div>','<div aria-live="polite" class="sr-only sp-aria-live-polite"></div>',"</div>"].join(""),restrict:"E",link:function(t,e,i){function n(t,n){var r,a;o&&clearTimeout(o),c&&$(e).find("status"==n?".sp-aria-live-polite":".sp-aria-live").removeAttr("style"),n=n||"alert",t.length?(r=[],t.forEach(function(t,e){-1==r.indexOf(t.message)&&r.push(t.message)}),1===t.length&&(s[n]=!s[n]),a=document.createElement("div"),r.forEach(function(t,e){r[e]=s[n]?r[e]+" ":r[e];var i=document.createElement("div");i.innerHTML=d(r[e]),a.appendChild(i)}),$(e).find("status"==n?".sp-aria-live-polite":".sp-aria-live").html("").append(a),c&&setTimeout(function(){document.querySelector("status"==n?".sp-aria-live-polite":".sp-aria-live").style.display="none"},200),o=setTimeout(function(){$(e).find(".sp-aria-live-polite")[0].innerHTML="",$(e).find(".sp-aria-live")[0].innerHTML=""},1e3)):$(e).find("status"==n?".sp-aria-live-polite":".sp-aria-live").html("")}var o,r,a,s={status:!1,alert:!1},c=u.isMobile();l.onLiveMessage(function(t,e){var i="object"===_typeof(t)?t:[{message:t}];a=1===i.length?(t==a?(r&&clearTimeout(r),r=setTimeout(function(){n(i,e)},150)):n(i,e),t):(r&&clearTimeout(r),n(i,e),"")})}}}]).directive("spRating",["$timeout","i18n",function(a,o){return{restrict:"A",link:function(t,e,i){var n=o.getMessage("{0} out of {1} selected"),r=angular.element(e);a(function(){!0!==i.readonly&&"true"!==i.readonly||(r.removeAttr("tabindex"),r.find(".glyphicon").attr("data-toggle","tooltip"),r.find(".glyphicon").attr("data-placement","bottom")),t.$watch(i.ngModel,function(t){r.attr("aria-valuetext",n.withValues([t,i.max]))})})}}}]); angular.module("sn.$sp").directive("spAriaPageTitle",["spAriaFocusManager",function(i){return{restrict:"E",replace:!0,scope:{pageTitle:"="},template:"<div class='sr-only' role='heading' aria-level='1'>{{pageTitle}}</div>",link:function(e,t,a){i.registerPageTitleFocus(function(a,i){e.$applyAsync(function(){if(a){var e=window.tabbable($("main")[0]);if(e[0])return e[0].focus(),void i.stopPropagation()}t.attr("tabIndex","-1").focus()})})}}}]); angular.module("sn.$sp").service("spAriaFocusManager",function(){var a,t;return{navigateToLink:function(e){a=e},pageLoadComplete:function(e){e==a&&t&&t(),a=null},registerPageTitleFocus:function(e){t=e},focusOnPageTitle:function(e,a){t&&t(e,a)},enableFocusOnDisabledSelect2:function(e){var a,t;"true"===g_accessibility&&(a=(t=(e=$(e.currentTarget)).parent()).find(".select2-focusser"))[0]&&(t=t.find(".select2-arrow")[0]||t.find("[data-select2-arrow]")[0],t=$(t),e.attr("disabled")?(a.removeAttr("disabled"),a.removeAttr("aria-expanded"),a.attr("readonly","readonly"),a.removeAttr("role"),t.removeClass("select2-arrow"),t.attr("data-select2-arrow","false")):(a.removeAttr("readonly"),a.attr("role","combobox"),a.attr("aria-expanded","false"),t.addClass("select2-arrow"),t.attr("data-select2-arrow","true")))},focusOnAgentChat:function(){var e=$(".sp-ac-root")[0],a=$("button.sp-ac-btn")[0];(angular.element(e).scope().$parent.c.isOpen?e:a).focus()}}}); angular.module("sn.$sp").factory("spAnnouncement",["$rootScope","$http","$window","$timeout","$q","spConf","spUtil",function(t,o,r,n,i,s,e){"use strict";var a=!1,c=!1,u=r.NOW.session_id,l=[],f=[];function d(){for(var n in r.localStorage){if(!r.localStorage.hasOwnProperty(n))return;0===n.indexOf("dismissed_announcement_")&&r.localStorage.getItem(n)!==u&&r.localStorage.removeItem(n)}}function m(n){console.log(e.format("*** [HTTP::{code}] Unable to retrieve announcement",{code:n.status}))}function g(n,e){return{method:e||"GET",url:n?s.announcementApi+"/"+n:s.announcementApi,headers:{"X-PORTAL-ID":t.portal_id}}}function p(){f=[],l.forEach(function(n){var e;!n.dismissed&&("SESSION_DISMISSIBLE"!==n.dismissOption&&t.user.logged_in||(e=n.id,r.localStorage.getItem("dismissed_announcement_"+e)!==u))||(n.dismissed=!0),f.push(n)}),t.$broadcast(s.e.announcement)}return{init:function(n){return a||c||r.NOW.sp.disableAnnouncements?i(function(n){n()}):(c=!0,((e=n)?i(function(n){l=e,n()}):o(g()).then(function(n){l=n.data.result},m)).then(function(){p(),t.$evalAsync(d),c=!(a=!0)}));var e},subscribe:function(n,e){e=n.$on(s.e.announcement,e),n.$on("$destroy",e)},dismiss:function(n){var e=_.find(l,{id:n});if("SESSION_DISMISSIBLE"!==e.dismissOption&&t.user.logged_in)o(g(n+"/dismiss","POST"));else try{r.localStorage.setItem("dismissed_announcement_"+n,u)}catch(n){}e.dismissed=!0,p()},filterOnType:function(i){return function(n){if(!i)return!0;for(var e=i.trim().toLowerCase().split(","),t=n.type.trim().toLowerCase().split(","),o=0;o<t.length;o++)for(var r=0;r<e.length;r++)if(t[o].trim()===e[r].trim())return!0;return!1}},get:function(n,e,t){return n=function(n,t,e,o){var r=[],r=t?n.filter(function(n){var e=!1;try{"function"==typeof t?e=t(n):t.key&&(e=n[t.key]===t.value)}catch(n){console.log("*** spAnnouncement.service: unable to process filter",n)}return e}):n;if(e&&o){if(!r.length)return{data:r,page:0,totalPages:0,totalRecords:0};e=parseInt(e,10);n=((o=parseInt(o+"",10))-1)*e;return{data:r.slice(n,n+e),page:o,totalPages:Math.ceil(r.length/e),totalRecords:r.length}}return r}(f,n,e,t),JSON.parse(JSON.stringify(n))}}}]); angular.module("sn.$sp").directive("spAnnouncements",["$timeout","spAriaFocusManager",function(r,n){return{restrict:"E",replace:!0,templateUrl:"sp_announcements.xml",controllerAs:"c",controller:["$scope","spAnnouncement","i18n","$window",function(n,o,e,t){var s,l=this;function a(){l.announcements=l.showAll?s:[s[0]]}function i(){l.totalAnnouncements=0,(s=o.get(function(n){return!n.dismissed&&o.filterOnType("banner")(n)})).length&&(l.totalAnnouncements=s.length,1<l.totalAnnouncements?(l.expandMoreCount=e.format(e.getMessage("EXPAND ALL {0}"),l.totalAnnouncements-1),l.showAll||(l.showMore=l.expandMoreCount)):l.showMore=l.showAll?l.i18n.less:l.i18n.more,s=0<l.totalAnnouncements?s:[],a())}l.showAll=!1,l.announcements=[],l.totalAnnouncements=0,l.i18n={dismiss_announcement:e.getMessage("Dismiss announcement"),collapse:e.getMessage("HIDE ALL"),announcement:e.getMessage("announcement"),announcements:e.getMessage("announcements"),defaultLinkText:e.getMessage("Learn More"),more:e.getMessage("MORE"),less:e.getMessage("LESS"),defaultLinkDetailText:e.getMessage("Learn more details on this announcement")},l.dismiss=function(n,e,t){$('[data-toggle="tooltip"]',$(t.target).parent()).tooltip("hide"),o.dismiss(n),r(function(){!function n(e){var t=$("div.announcement-container .text-container");t[e]?t[e].focus():0<e?n(e-1):0<(t=$(".skip-link")).length&&t[0].focus()}(e)},10)},l.toggleShowAll=function(n){l.showAll=!l.showAll,1<l.totalAnnouncements?(a(),l.showMore=l.showAll?l.i18n.collapse:l.expandMoreCount):l.showMore=l.showAll?l.i18n.less:l.i18n.more,l.showAll||(t.scrollTo(0,0),(n.currentTarget.classList.contains("text-container")?$(".text-container"):$(".sp-announcement-list-actions"))[0].focus())},l.getStyle=function(n){var n=n.displayStyle||{},e=g_portal_isrtl?"right":"left";return g_portal_isrtl&&n.alignment&&"left"==n.alignment.toLowerCase()&&(n.alignment="right"),{backgroundColor:n.backgroundColor||"#006ED5",color:n.foregroundColor||"#ffffff",textAlign:(n.alignment||e).toLowerCase()}},l.getJustifyContentValue=function(n){return"CENTER"===(n.displayStyle||{}).alignment?"center":"flex-start"},l.linkSetup=function(n){n.linkTarget="_self","urlNew"===n.clickTarget&&(n.linkTarget="_blank"),n.linkType=n.targetLink?n.targetLinkText?"normal":"title":"none"},o.subscribe(n,i),i(),1!==l.totalAnnouncements||l.announcements[0].targetLinkText||l.announcements[0].summary||(l.singleEmptyTitle=!0),$(document).ready(function(){$("body").tooltip({selector:'[data-toggle="tooltip"]'})})}]}}]); angular.module("sn.$sp").factory("spNavStateManager",["$rootScope","$window","spConf","$q","spModal","i18n",function(e,n,r,t,o,i){"use strict";var s={};function a(a){return o.open({title:i.getMessage("Save Changes"),headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},message:i.getMessage("Do you want to save your changes before leaving this page?"),buttons:[{label:i.getMessage("Discard"),value:"discard"},{label:i.getMessage("Save"),primary:!0,value:"save"}]}).then(function(e){if("save"==e.value)for(var n in a){var r=a[n];s[r].saveFunc()}for(var t in a){r=a[t];s[r].g_form.$private.userState.clearModifiedFields()}})}function u(){if(!g_dirty_form_warning_enabled)return[];var e,n=[],r=Array.prototype.slice.call(arguments,0);for(e in r=0===r.length?Object.keys(s):r){var t=r[e];s[t]&&s[t].g_form.isUserModified()&&n.push(t)}return n}function g(){var n;return g_dirty_form_warning_enabled?(n=[],Object.keys(s).forEach(function(e){s[e].g_form.isUserModified()&&n.push(e)}),n):[]}return e.$on("$locationChangeStart",function(e,n){var r=g();0<r.length&&(e.preventDefault(),a(r).then(function(){window.location=n}))}),n.onbeforeunload=function(e){0<g().length&&(e.returnValue="")},{_getDirtyArrayFromArgs:u,onRecordChange:function(){var e=u();return 0!==e.length?a(e):t.when(!0)},register:function(e,n,r){return s[e]={saveFunc:n,g_form:r},s[e]}}}]); angular.module("sn.$sp").factory("spMetatagService",function(){"use strict";var e,r={},s=[],u=[];return{setTags:function(n){if(r={},n&&n.length)for(var t=0;t<n.length;t++)r[n[t].name]=n[t].content;for(var e=0;e<s.length;e++)s[e](r)},setSeoTags:function(n){e=n[0];for(var t=0;t<u.length;t++)u[t](e)},subscribe:function(n){s.push(n)},subscribeSEO:function(n){u.push(n)}}}); angular.module("sn.$sp").directive("spMetatags",["spMetatagService","$window",function(r,l){return{restrict:"A",link:function(t,o,e){r.subscribe(function(t){for(var e in o.find("[custom-tag]").remove(),t){var r=l.document.createElement("meta");r.setAttribute("custom-tag",""),r.setAttribute("name",e),r.setAttribute("content",t[e]),o.append(r)}}),r.subscribeSEO(function(t){if(t){(e=t.canonicalURL)&&((i=l.document.createElement("link")).setAttribute("custom-tag",""),i.setAttribute("rel","canonical"),i.setAttribute("href",e),o.append(i));var e=t.hrefLangs;if(e)try{for(var r=JSON.parse(e),n=0;n<r.length;n++){var a=l.document.createElement("link");a.setAttribute("custom-tag",""),a.setAttribute("rel","alternate"),a.setAttribute("hreflang",r[n].locale),a.setAttribute("href",r[n].href),o.append(a)}}catch(t){}var i=t.customSEOTags;if(i)try{for(var c=JSON.parse(i),s=0;s<c.length;s++){var u=l.document.createElement("div");u.innerHTML=c[s].trim(),o.append(u.firstChild)}}catch(t){}}})}}}]); angular.module("sn.$sp").factory("spUIActionsExecuter",["$q","glideUIActionsApi","spModal","i18n","$http","spAuthentication","glideUserSession","cabrillo","spAuthModal","spNotificationEvents","spUtil","$window",function(i,n,e,o,l,s,t,p,g,w,f,_){"use strict";var W="NOW.REAUTHENTICATE";function h(){window.NOW.esigWin&&!window.NOW.esigWin.closed&&window.NOW.esigWin.close()}function m(s,t,r,u,a,c,d){var i=n.execute(s,t,r,u,a,c,d);return window.NOW.esigWin&&!window.NOW.esigWin.closed||"sysapproval_approver"!==r||p.isNative()||!f.isMobile()||!_.g_sso_open_in_window||"saml"!==_.g_user_login_method&&"multisso"!==_.g_user_login_method&&"oidc"!==_.g_user_login_method||(window.NOW.esigWin=window.open("")),i.then(function(i){var n=i.data.result,e=d.username,o=d.userSysId;return l({method:"GET",url:"/api/now/sp/sessionuinotifications"}).then(function(i){if(w.addMessages(i.data.result.$$uiNotification),n.response_code===W)return g.prompt(d,e,o).then(function(){return w.clearMessages(),(d=angular.isDefined(d)?d:{})[W]=o,h(),m(s,t,r,u,a,c,d)},function(){console.error("Re-auth failed"),h()});h()})})}return{executeListAction:function(i,n,e,o){return m(i,"list",n,e,void 0,void 0,o)},executeFormAction:function(i,n,e,o,s,t){return m(i,"form",n,e,o,s,t)}}}]); angular.module("sn.$sp").provider("spEsignature",function(){"use strict";this.$get=["$q","$http","$window","urlTools","xmlUtil",function(t,n,e,i,o){var a=window;function s(t){a.esignOW&&!a.esignOW.closed?a.esignOW.location.href=t:a.esignOW=window.open(t,"esignatureAuthentication","height="+a.windowHeight+",width="+a.windowWidth+",top=100,left=100,toolbar=0,location=0,menubar=0")}return a.authenticate=function(){a.loginURL&&s(a.loginURL)},a.evaluateRedirect=function(t){a.esignOW.close(),"oidc login complete"!=t&&"saml2 login complete"!=t||e.onReauthenticationComplete(t)},{initiateEsignature:function(){return n({method:"POST",url:"/xmlhttp.do",data:i.encodeURIParameters({sysparm_scope:"global",sysparm_processor:"ESignatureAuthUtils",sysparm_name:"fetchAuthDetails"}),headers:{"Content-Type":"application/x-www-form-urlencoded"},transformResponse:function(t){return o.getDataFromXml(t,"result")}}).then(function(t){var t=t.data?t.data[0]:{},n="true"===t.logoutFirst;a.windowHeight=t.popup_window_height,a.windowWidth=t.popup_window_width,a.loginURL=t.loginURL,window.NOW.esigWin&&(a.esignOW=window.NOW.esigWin),n?s(t.logoutURL):authenticate()})}}}]}); angular.module("sn.$sp").factory("spAuthentication",["$window","$q","$http","spUtil","i18n",function(e,n,r,s,t){"use strict";var a=t.getMessage("There was an error processing your request"),u=e.NOW.user_name,o=s.getURL({sysparm_type:"view_form.login"});function i(s){return n(function(e){e({success:!1,message:s||a})})}function c(e,s,t){return r({method:"post",url:o,data:$.param(_.extend({},{sysparm_type:"login","ni.nolog.user_password":!0,user_name:e,user_password:s},t||{})),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){return e.data?"success"!==e.data.status?i(e.data.message):n(function(e){e({success:!0})}):i()},function(e){return i()})}return{validateCreds:function(e,s){return e!==u?i(t.getMessage("Specified username does not match with the username of currently logged in user")):c(e,s)}}}]); angular.module("sn.$sp").factory("spAuthModal",["$q","spModal","i18n","$http","spAuthentication","glideUserSession","cabrillo","$cookies","$window","spUtil","$uibModal","spEsignature",function(a,u,l,d,g,c,p,m,f,h,v,w){"use strict";function M(t,e){t.options=e,t.form={},t.buttonClicked=function(e){e.cancel&&t.$dismiss()}}return M.$inject=["$scope","options"],{prompt:function(i,s,e){var o,r=a.defer();return c.loadCurrentUser({reload:!0}).then(function(e){var t,n;e?(t={sysId:(o=e).userID,userName:o.userName,firstName:o.firstName,lastName:o.lastName},p.isNative()?p.auth.reauthenticate(o).then(function(){r.resolve(t)},function(e){e&&e.status&&r.reject({error:e}),r.reject()}):"saml"===(e=(e=o.$private.loginMethod)||(m.get("glide_sso_id")?"multisso":"db"))||"oidc"===e||"multisso"===e?(f.g_sso_open_in_window?w.initiateEsignature():c.getSsoReauthenticationUrl().then(function(e){var t,s;i.externalLoginURL=e,e=i,t=a.defer(),s={title:l.getMessage("Approver authentication"),message:"",messageOnly:!1,errorMessage:"",input:!1,label:"",size:"lg",value:"",required:!1,footerStyle:{border:"none","padding-top":0},values:!1,onSubmit:null,widget:"simpleloginui",widgetInput:{},shared:e,buttons:[{label:l.getMessage("Cancel"),cancel:!0}]},e=h.getWidgetURL(s.widget),d.post(e,s.widgetInput).success(function(e){s.widget=e.result,s.widget.options.shared=s.shared;e=v.open({templateUrl:"sp-modal.html",controller:M,size:s.size,resolve:{options:function(){return s}}});t.resolve(e)}),t.promise.then(function(e){n=e})}),f.onReauthenticationComplete=function(e){r.resolve(t),n&&n.close()}):u.open({title:l.getMessage("Approver authentication"),message:l.getMessage("Additional authentication is required, enter your usename and password to continue."),footerStyle:{border:"none","padding-top":0},widget:"simpleloginui",widgetInput:{},shared:i,onSubmit:function(){return n=i,o=s,a(function(t,e){var s=null;n.username&&""!==n.username.trim()&&n.password&&""!==n.password.trim()?n.username!==o&&(s=l.getMessage("Attempted to authenticate as a different user")):s=l.getMessage("User name or password invalid"),s&&""!==s?t({status:!s||""===s,errorMessage:s}):g.validateCreds(n.username,n.password).then(function(e){t({status:e.success,errorMessage:e.message})})});var n,o}}).then(function(e){e.label==l.getMessage("OK")?r.resolve(t):r.reject()})):r.reject({error:{status:"ANONYMOUS",message:l.getMessage("Not logged in")}})}),r.promise}}}]); angular.module("sn.$sp").directive("spPauseChildWatchersIfHidden",function(){return{link:function(e,c,n){function r(e,a){$.each(e.children(),function(e,c){var c=angular.element(c),n=a,t=c.data();t.hasOwnProperty("$scope")&&t.$scope.hasOwnProperty("$$watchers")&&t.$scope.$$watchers&&(n?(t._bk_$$watchers=[],$.each(t.$scope.$$watchers,function(e,c){var n={};$.extend(!0,n,c),t._bk_$$watchers.push(n)}),t.$scope.$$watchers=[]):t.hasOwnProperty("_bk_$$watchers")&&(t._bk_$$watchers.length,$.each(t._bk_$$watchers,function(e,c){var n={};$.extend(!0,n,c),t.$scope.$$watchers.push(n)}))),r(c,n)})}e.$watch(function(){return!c.is(":visible")},function(e){r(c,!!e)})}}}); angular.module("sn.$sp").factory("spGtd",["$q","$http","$rootScope","spUtil","i18n",function(n,u,i,e,r){"use strict";var c="/api/now/guided_tours/tours",d={TOUR_STARTED:"tourStarted",STEP_STARTED:"stepStarted",TOUR_ABANDONED:"tourAbandoned",TOUR_FAILED:"tourFailed",TOUR_COMPLETED:"tourCompleted",TOUR_ENDED:"tourEnded",TOUR_DISMISSED:"tourDismissed",GET_ALL_TOURS:"getAllTours"},o={tourStarted:"tourStarted",stepStarted:"step_started",abandoned:"abandoned",failed:"failed",completed:"completed",tourEnded:"tourEnded",dismissed:"dismissed"},s="gtd_client_api_event";try{top.NOW=top.NOW||{},top.NOW.gtdConfig=top.NOW.gtdConfig||{servicePortalTours:!0,displayMessage:{info:function(t){e.addInfoMessage(t)},error:function(t){e.addErrorMessage(t)}},i18n:r},top.NOW.guided_tours=top.NOW.guided_tours||{api:{startTour:a,endTour:f,applyListFilter:_,getAllTours:v,loadPlayer:O},events:{on:S,off:N},_filterFunc:null,_tourService:null,_registerEvents:T}}catch(t){return{getToursForPage:function(){var t=n.defer();return t.reject(),t.promise},launch:function(){}}}function l(t,e,o){top.NOW.gtdConfig.tours=e,top.NOW.gtdConfig.state=o,top.NOW.gtdConfig.portal_id=t.portal.sys_id,top.NOW.gtdConfig.page_id=t.page.sys_id,top.NOW.guidedToursService?(top.NOW.guidedToursService.setConfig(top.NOW.gtdConfig),top.NOW.guidedToursService.trigger("check-autolaunch",{location:window.location,config:top.NOW.gtdConfig})):W()}function p(t){var e,o=0<=t.indexOf("?"),r=null,n=[];return n=o&&1<(r=t.split("?")).length?r[1].split("&").map(function(t){return{name:(e=t.split("="))[0],value:e[1]||null}}):n}function g(t,e){for(var o=null,r=p(t),n=0;n<r.length;n++)if(r[n].name===e){o=r[n];break}return o}function t(d){var t,e,o,r,s=n.defer(),a=null;return sessionStorage&&(a=sessionStorage.getItem("guided_tour:tour.state")||0<=location.href.indexOf("gtd_preview_tour_id"))&&l(d,null,a),d&&d.page&&d.user&&d.portal?(o=document.location.href.replace(/^.*\/\/[^\\/]+/,""),t=d.portal.sys_id,e=d.page.sys_id,o=o,r=n.defer(),u({method:"GET",url:c,params:{page_id:e,portal_id:t,type:"service_portal",context:o}}).then(function(t){r.resolve(t.data.result)},function(t){r.reject(t)}),r.promise.then(function(t){var o,r=document.location.href,n=g(r,"id"),u=n&&n.value;if(t=(t=t||[]).filter(function(t){if(!function(t,e){for(var o=["gtd_portal_title","gtd_page_title","id"],r=p(t).filter(function(t){return-1===o.indexOf(t.name)}),n=0;n<r.length;n++){var u=r[n],i=u&&u.name?g(e,u.name):"";if((i&&i.value)!==u.value)return}return 1}(t.context,r))return!1;var e=g(t.context,"id");if(u){if(e.value===n.value)return!0;if(t.options)try{if((o=JSON.parse(t.options)).isMapped&&o.actualContext===e.value)return!0}catch(t){}return!1}return!0}),!a&&t&&t.length&&l(d,t,a),t&&t.length){for(var e={isTourPresent:!1},i=0;i<t.length;i++)if(t[i].isAutoLaunchable){e.name=t[i].name,e.options=t[i].options,e.type=t[i].type,e.tourId=t[i].sysID,e.isTourPresent=!0;break}sessionStorage.setItem("guided_tour:autolaunchable",JSON.stringify(e))}s.resolve(t)},function(){s.reject()})):s.reject(),s.promise}function a(t,e,o){E(s,{payload:t,event:d.TOUR_STARTED}),top.NOW.guided_tours._tourService&&(e=e||0,top.NOW.guided_tours._tourService.currentTour?o&&o({success:!1,message:r.getMessage("Cannot start a new tour while another tour is in progress.")}):top.NOW.guided_tours._tourService.startTour(t,e,o))}function f(){var t,e=top.NOW.guided_tours._tourService;e&&(t=e&&e.currentTour&&e.currentTour.sys_id,E(s,{payload:t,event:d.TOUR_ENDED}),e.endTour())}function _(t){top.NOW.guided_tours._filterFunc=t}function v(e){var o,r;top.NOW.guided_tours._tourService&&(E(s,{payload:"",event:d.GET_ALL_TOURS}),o=[],t({portal:i.portal,page:i.page,user:i.user}).then(function(t){o=t;try{return(r=top.NOW.guided_tours._filterFunc)&&(o=o.filter(r)),e&&e(null,o)}catch(t){e&&e(t)}},function(){defer.reject}))}function O(){try{top!==window||NOW&&NOW.guidedToursService||W()}catch(t){console&&console.log("An error has occured. Guided Tours could not be loaded!")}}function T(t){var e=top.NOW.guided_tours;e._tourService=t,e._tourService.on(o.tourStarted,function(t){E(d.TOUR_STARTED,t)}),e._tourService.on(o.stepStarted,function(t){E(d.STEP_STARTED,t)}),e._tourService.on(o.abandoned,function(t){E(d.TOUR_ABANDONED,t)}),e._tourService.on(o.failed,function(t){E(d.TOUR_FAILED,t)}),e._tourService.on(o.completed,function(t){E(d.TOUR_COMPLETED,t)}),e._tourService.on(o.tourEnded,function(t){E(d.TOUR_ENDED,t),i.$broadcast("sp-tour-ended")}),e._tourService.on(o.dismissed,function(t){E(d.TOUR_DISMISSED,t)})}function S(t,e){CustomEvent&&CustomEvent.on(t,e)}function N(t,e){CustomEvent&&(e&&"function"==typeof e?CustomEvent.un(t,e):CustomEvent.unAll(t))}function E(t,e){CustomEvent.fireTop(t,e)}function W(){var t=document.createElement("script"),e=(t.src="/scripts/app.guided_tours/guided_tours_player.js?v="+g_builddate,t.type="text/javascript",t.async="true",document.getElementsByTagName("script")[0]);e.parentNode.insertBefore(t,e)}return i.$on("$locationChangeSuccess",function(t,e,o){top.NOW&&top.NOW.guidedToursService&&(top.NOW.gtdConfig.tours=null,top.NOW.gtdConfig.state=null,top.NOW.gtdConfig.portal_id=null,top.NOW.gtdConfig.page_id=null,top.NOW.guidedToursService.setConfig(top.NOW.gtdConfig))}),{getToursForPage:t,launch:function(t){top.NOW&&top.NOW.guidedToursService&&top.NOW.guidedToursService.startTour(t,0)},endTour:f,getCurrentTour:function(){return top.NOW&&top.NOW.guidedToursService&&top.NOW.guidedToursService.currentTour}}}]); angular.module("sn.$sp").factory("spFacetsClientService",["$rootScope","$location","$http","$q","spFacetManager",function(n,t,a,c,i){"use strict";return{search:function(t){return e=t,a.post("/api/now/sp/search",e).then(function(t){var a;return e.include_facets&&i.notify(t),t.data.result&&(a={},t.data.result.$$uiNotification.forEach(function(t){a[t.message]||(a[t.message]=t)}),e.include_facets||n.$broadcast("$$uiNotification",_.values(a))),c.when(t)},function(t){});var e}}}]); angular.module("sn.$sp").factory("spAtf",["$q","$http","$rootScope",function(a,u,s){"use strict";var n;function t(e){return{triggerPageLoaded:function(){e.triggerPortalPageLoaded&&e.triggerPortalPageLoaded()},expose:function(e,n){window[e]=n}}}return{init:function(){return n?a(function(e){e(t(n))}):window.ATF?(n=window.ATF,a(function(e){e(t(n))})):(window.frameElement&&"testFrame"===window.frameElement.id&&(window.ATF={},window.ATF.portalPageLoaded=!0),a(function(e,n){n()}))},augmentForm:function(i){var o={};function n(e){return"string"!=typeof e?e:document.getElementById(e)}return i.getParameter=function(e){e=n(e="sysparm_"!=e.substr(0,8)?"sysparm_"+e:e);return e?e.value:""},i.getFormElement=function(){return n(i.getTableName()+".do")},i.isChoiceField=function(e){e=i.getField(e);return e&&("choice"===e.type||"multiple_choice"===e.type)},i.isValidChoice=function(e,n){for(var t=i.getField(e).choices||[],r=0;r<t.length;r++)if(t[r].value===n)return!0;return!1},i.getRef=function(e,n){var t,r,o;n?(t=i.getField(e))?(o=r=void 0===(r=void 0===(r=(o=t).ed?o.ed.reference:void 0)?o.refTable:r)?o.ref_table:r,r=t.reference_key||"sys_id",o="/api/now/table/"+o+"?sysparm_query="+encodeURIComponent(r+"="+t.value)+"&sysparm_fields=sys_id&sysparm_limit=1",u.get(o).then(function(e){if(e.data.result&&1===e.data.result.length)return n(e.data.result[0]);n({_error:"No matching record found"})},function(e){n({_error:e.data.error.message})})):_logWarn("GETREF:FNF","Field not found: "+e):_logWarn("GETREF:NOCB","Mobile scripts must specify a callback function")},i.serializeToString=function(){var t=i.getTableName(),r=["sys_target="+t,"sys_uniqueValue="+i.getUniqueValue()];return i.serialize().forEach(function(e){var n=t+"."+e.ed.name;r.push("sys_original."+n+"="+encodeURIComponent((o[e.ed.name]||e).value)),r.push(n+"="+encodeURIComponent(e.value))}),r.join("&")},i.atfSubmit=function(e){var e=2<e.length?"sysverb_update":"sysverb_insert",t=a.defer(),r=(i.submit(e),s.$on("sp.form.submitted",function(e,n){r(),t.resolve(n)}));return t.promise},i.$private.events.on("onChange",function(e,n){o[e]={value:n}}),i}}}]); angular.module("sn.$sp").directive("spFacetPill",["spFacetManager","spAriaUtil",function(c,s){return{restrict:"E",replace:!0,scope:{facet:"="},template:'<div class="sp-facet-pill label label-as-badge label-primary" ng-class="{ \'active\': c.focused}"><span>{{::facet.label}}</span><span class="pull-right"><i class="fa fa-close" ng-focus="c.onFocus()" ng-blur="c.onBlur()" ng-click="c.removePill($event)" aria-label="{{::c.removeLabel}}" role="button" tabindex="0" ng-attr-title="{{::c.removeLabel}}" data-toggle="tooltip" data-placement="top" data-container="section.page"></i></span></div>',controllerAs:"c",controller:["$scope","i18n",function(a,e){var t=this,l=(t.removeLabel=e.getMessage("Remove {0} facet filter").withValues([a.facet.label]),e.getMessage("Facet removed, search results updated"));t.removePill=function(e){$(e.target).tooltip("destroy"),c.clearFacetValue(a.facet.id,a.facet.item.value),s.sendLiveMessage(l)},t.onFocus=function(){t.focused=!0},t.onBlur=function(){t.focused=!1}}]}}]); angular.module("sn.$sp").directive("spSearchNav",["i18n","$location","spFacetManager",function(r,l,n){return{restrict:"E",replace:!0,scope:{searchSources:"=",q:"=",t:"=",listView:"=",showToggle:"="},templateUrl:"sp_search_nav.xml",controllerAs:"c",controller:["$scope",function(c){var e,t=this;function s(e,r){e=e.match(/id=.+/),r=r.match(/id=.+/);return!(!e&&!r)&&(!!(!e&&r||e&&!r)||e[0].split("&")[0]!==r[0].split("&")[0])}function a(r){var e=t.searchSources.items;r?e.forEach(function(e){e.value===r?e.selected=!0:e.selected=!1}):e.forEach(function(e){e.value?e.selected=!1:e.selected=!0}),t.searchSources.items=e}t.i18n={all:r.getMessage("All"),sources:r.getMessage("Sources"),search_categories:r.getMessage("Search Categories")},t.searchSources=(e=c.searchSources,{label:t.i18n.sources,id:"searchSources",items:function(e){var e=_.values(e),r=[];return e.forEach(function(e){r.push({label:e.name,value:e.id,selected:e.id==c.t,order:e.order})}),r.sort(function(e,r){return e.order-r.order}),r.unshift({label:t.i18n.all,value:null,selected:!c.t}),r}(e)}),c.$on("$locationChangeSuccess",function(e,r,c){s(r,c);!s(r,c)&&function(e,r){e=e.match(/t=.+/),r=r.match(/t=.+/);if(!e&&!r)return;if(!e&&r||e&&!r)return 1;return e[0].split("&")[0]!==r[0].split("&")[0]}(r,c)&&a((c=r.match(/t=.+/))?c[0].split("&")[0].substring(2):null)}),t.onSearchSourceClick=function(e,r){n.clearAllFacet(),l.search("spa","1"),l.search("q",c.q),r&&r.value?l.search("t",r.value):l.search("t",null),a(r.value)}}]}}]); angular.module("sn.$sp").directive("spFacetList",["i18n","spFacetManager","spAriaUtil",function(e,d,i){return{restrict:"E",replace:!0,scope:{listTitle:"=",t:"=",facets:"=",loading:"=",collapsed:"=",collpasedMap:"=",toggleSearchsource:"=",collapsedSearchsource:"="},templateUrl:"sp_facet_list.xml",controllerAs:"c",controller:["$scope",function(s){var t=this;function c(){for(var e=0;e<s.facets.length;e++)if(d.isFacetSelected(s.facets[e].id,s.t))return!0;return!1}t.showClearAll=c(),t.show=s.facets&&0!==s.facets.length,t.collapsed=s.collapsedSearchsource,s.$on("$locationChangeSuccess",function(e,a,l){t.showClearAll=c()}),t.toggleIcon=function(e){t.collapsed=!t.collapsed,d.publish("spSearchSources.toggle.data",{searchSource:s.t,collapsed:t.collapsed}),t.collapsed?i.sendLiveMessage(t.i18n.isCollapsed.withValues([e])):i.sendLiveMessage(t.i18n.isExpanded.withValues([e]))},t.i18n={clearAll:e.getMessage("Clear All"),clearAllFacets:e.getMessage("Clear all active facets"),loading:e.getMessage("Loading"),filterSelectionCleared:e.getMessage("filter selection has cleared for {0} and search results updated"),filterSelected:e.getMessage("Filter selected {0} and search results updated"),filterSelectedWithLabels:e.getMessage("Filter selected {0} {1} and search results updated"),isCollapsed:e.getMessage("{0} is collapsed"),isExpanded:e.getMessage("{0} is Expanded"),allFacetsCleared:e.getMessage("All facets have been cleared, and search results have been updated"),enabled:e.getMessage("Enabled"),disabled:e.getMessage("Disabled")},t.showClear=function(e){return d.isFacetSelected(e.id,s.t)},t.clearAll=function(){d.clearAllFacet(),i.sendLiveMessage(t.i18n.allFacetsCleared)},t.onSelectFacet=function(e,a){var l;Array.isArray(a)?(l=a.map(function(e){return e.value}),s.t?d.addFacetWithSearchSource(s.t,e.id,l):d.addFacet(e.id,l),i.sendLiveMessage(t.i18n.filterSelected.withValues([e.label]))):(l=a,s.t?d.addFacetWithSearchSource(s.t,e.id,l.value):d.addFacet(e.id,l.value),i.sendLiveMessage(t.i18n.filterSelectedWithLabels.withValues([e.label,l.label])))},t.clearFacet=function(e){d.clearFacet(e.id),i.sendLiveMessage(t.i18n.filterSelectionCleared.withValues([e.label])),t.showClearAll=c()},t.isCollapsed=function(e){return s.collpasedMap&&void 0!==s.collpasedMap[e]?s.collpasedMap[e]:s.collapsed},t.onFacetToggle=function(e,a){d.publish("spFacets.toggle.data",{searchSource:s.t,facetId:e,collapsed:a})}}]}}]); angular.module("sn.$sp").directive("spFacetLists",["spFacetManager",function(e){return{restrict:"E",replace:!0,scope:{collapsed:"=",collapsedSearchsource:"=",toggleSearchsource:"=",listTitle:"=",searchSources:"="},template:'<div class="sp-facet-lists"><div ng-show="c.isLoading" class="loading-icon"><i class="fa fa-spinner fa-spin fa-3x fa-fw spinner-text-size"></i><span class="sr-only">{{::c.i18n.loading}}</span></div><div ng-show="c.show()"><div class="panel-heading heading"><h2 class="panel-title" aria-label="{{::listTitle}}">{{::listTitle}}</h2></div><div ng-repeat="data in c.facets"><sp-facet-list collapsed="collapsed" collpased-map="c.facetToogleMap[data.searchSource]" collapsed-searchsource="c.isSearchSourceCollapsed(data.searchSource)" toggle-searchsource="toggleSearchsource" facets="data.facets" list-title="searchSources[data.searchSource].name" t="data.searchSource"></sp-facet-list></div></div></div>',controllerAs:"c",controller:["$scope",function(t){var r=this;r.facetToogleMap={},r.searchSourceToggleMap={},e.subscribe("spFacets.refresh.data","list",function(e){r.facetsObjectMap=e.data,r.facets=function(e){var a,c=[];for(a in e){var s={};s.searchSource=a,s.facets=e[a],s.order=t.searchSources[a].order,c.push(s)}return c.sort(function(e,a){return e.order-a.order}),c}(r.facetsObjectMap),r.isLoading=!1,function(s){var e=Object.keys(s),t=s.t;e.forEach(function(a){var e=s[a],c=[];"["===e.charAt(0)&&"]"===e.charAt(e.length-1)?c=(e=e.substring(1,e.length-1)).split(","):c.push(e),c.forEach(function(e){e=e.split("%2C").join(",");e=function(e,a,c){e=r.facetsObjectMap[e];if(e&&0<e.length)return(e=e.filter(function(e){return e.id===a}))&&0<e.length?e[0].items.filter(function(e){return e.value===c})[0]:null}(t,a,e);e&&(e.selected=!0,r.showClearAll=!0)})})}(e.query)}),e.subscribe("spFacets.toggle.data","list",function(e){r.facetToogleMap[e.searchSource]||(r.facetToogleMap[e.searchSource]={});r.facetToogleMap[e.searchSource][e.facetId]=e.collapsed}),e.subscribe("spSearchSources.toggle.data","list",function(e){r.searchSourceToggleMap[e.searchSource]=e.collapsed}),r.isLoading=!0,r.show=function(){return!r.isLoading&&!function(e){if(e)for(var a in e)if(e[a]&&0<e[a].length)return;return 1}(r.facetsObjectMap)},r.isCollapsed=function(e,a){return void 0!==r.facetToogleMap[e]&&void 0!==r.facetToogleMap[e][a]?r.facetToogleMap[e][menuId]:t.collapsed},r.isSearchSourceCollapsed=function(e){return void 0!==r.searchSourceToggleMap[e]?r.searchSourceToggleMap[e]:t.collapsedSearchsource}}]}}]); angular.module("sn.$sp").directive("spListMenu",["i18n","spAriaUtil","$window","$timeout",function(e,c,u,i){return{restrict:"E",replace:!0,scope:{onclickFn:"&",onclearFn:"&",ontoggleFn:"&",showClear:"=",listView:"=",showToggle:"=",collapsed:"=",menu:"="},link:function(n,e,t,l){n.menu.id===u.facetId&&(u.facetId=!1,i(function(){var e=$("div[data-menu-id="+n.menu.id+"]").filter(":visible")[0];0<(e=$(e).find(".panel-title").find("button")).length&&$(e[0]).focus()}))},templateUrl:"sp_list_menu.xml",controllerAs:"c",controller:["$scope",function(i){var s=this,t=l(),o=t;function l(){var e,n,t,l=i.menu.items.filter(function(e){return e.selected});return o&&(s.selectionIsDirty=(n=o,(e=l).length!==n.length||(t=n.map(function(e){return e.value}),!e.every(function(e){if(-1<t.indexOf(e.value))return!0})))),l}s.selectionIsDirty=!1,s.isMultiSelect="MULTI_SELECT"===i.menu.type,s.onItemClickFn=function(e,n){!s.isMultiSelect&&n.selected||(n.selected=!n.selected,t=s.isMultiSelect?l():n,s.isMultiSelect||s.submit())},s.submit=function(){0==t.length?s.clear():(s.setCurrentFacetId(),i.onclickFn({menu:i.menu,input:t}))},s.clear=function(){s.setCurrentFacetId(),i.onclearFn({menu:i.menu})},s.setCurrentFacetId=function(){u.facetId=i.menu.id},s.show=function(){return i.menu&&i.menu.items&&0<i.menu.items.length},s.i18n={clear:e.getMessage("Clear"),apply:e.getMessage("Apply"),collapse:e.getMessage("Collapse"),isCollapsed:e.getMessage("{0} is collapsed"),isExpanded:e.getMessage("{0} is Expanded")},s.collapsed=i.collapsed,s.showToggle=i.showToggle,s.toggleIcon=function(e,n){s.collapsed=!s.collapsed,i.ontoggleFn({menuId:i.menu.id,collapsed:s.collapsed}),s.collapsed?c.sendLiveMessage(s.i18n.isCollapsed.withValues([n])):c.sendLiveMessage(s.i18n.isExpanded.withValues([n]))},s.showClearButton=function(){return i.showClear&&!s.showApplyButton()},s.showApplyButton=function(){return s.isMultiSelect&&s.selectionIsDirty},i.$on("sp.search.cancel",function(){t=o,s.selectionIsDirty=!1,i.menu.items.forEach(function(e){var n=o.map(function(e){return e.value});e.selected=-1<n.indexOf(e.value)})})}]}}]); angular.module("sn.$sp").directive("spListMenuItems",["i18n",function(i){return{restrict:"E",replace:!0,scope:{onclickFn:"&",menu:"="},link:function(e,t,n){e.focus=function(){$(t).find("button")[0].focus()}},templateUrl:function(e,t){return"MULTI_SELECT"===t.type?"sp_list_menu_checkbox.xml":"sp_list_menu_item.xml"},controllerAs:"c",controller:["$scope",function(t){var e,n=this;n.showNextItems=!1,n.i18n={see_more:i.getMessage("See more"),see_less:i.getMessage("See less"),selected:i.getMessage("Selected")},i.getMessage("Search by {0}",function(e){n.i18n.search_by=e.withValues([t.menu.label])});for(var s=t.menu.items,l=0;l<s.length;l++)-1<s[l].label.indexOf(">")?(e=s[l].label.split(">"),e=e[e.length-1],s[l].ariaLabel=e):s[l].ariaLabel=s[l].label;10<s.length?(n.items=s.slice(0,10),n.nextItems=s.slice(10)):n.items=s,n.showMoreButton=function(){return 10<t.menu.items.length&&!n.showNextItems},n.onMoreButtonClick=function(){n.showNextItems=!0},n.onLessButtonClick=function(){n.showNextItems=!1,t.focus()},n.onClick=function(e){t.onclickFn({menu:t.menu,item:e})}}]}}]); angular.module("sn.$sp").factory("spFacetManager",["$location",function(r){"use strict";var n={};function c(t,a){r.search("spa","1");var e=a.toString();Array.isArray(a)&&(e="["+(a=a.map(i)).toString()+"]"),r.search(t,e)}function s(t){r.search(t,null)}function e(t,a){if(n[t])for(var e=n[t],r=0;r<e.length;r++)e[r](a)}function i(t){return t.split(",").join("%2C")}return{addFacet:c,addFacetWithSearchSource:function(t,a,e){r.search("spa","1"),r.search("t",t),c(a,e)},clearFacet:s,clearFacetValue:function(t,a){a=i(a);var e=r.search()[t];"["===!e.charAt(0)||"]"===!e.charAt(e.length-1)||(a=(e=e.substring(1,e.length-1).split(",")).indexOf(a),e.splice(a,1),0==e.length)?s(t):r.search(t,"["+e.toString()+"]")},clearAllFacet:function(){for(var t=r.search(),a=_.keys(t),e=0;e<a.length;e++)"q"!==a[e]&&"t"!==a[e]&&"id"!==a[e]&&"spa"!==a[e]&&r.search(a[e],null)},isAnyFacetSelected:function(){for(var t=r.search(),a=_.keys(t),e=0;e<a.length;e++)if("q"!==a[e]&&"t"!==a[e]&&"id"!==a[e]&&"spa"!==a[e])return!0;return!1},isFacetSelected:function(t,a){var t=r.search()[t],e=r.search().t;return null!=t&&e===a},notify:function(t){e("spFacets.refresh.data",{data:t.data.result.facets,query:r.search()})},publish:function(t,a){e(t,a)},subscribe:function(t,a,e){n[t]||(n[t]=[]),n[t].push(e)}}}]); angular.module("sn.$sp").factory("spAISearchResults",["$location","$rootScope","spAriaFocusManager",function(e,a,o){"use strict";function c(n){a.$applyAsync(function(){var a=e.search(n);o.navigateToLink(a.url())})}return{navigate:function(a,n,e,o){var r=a.tableToSourceMap[n.table]||n.table,s="d46f400473211010c342d5fdbdf6a7cf";if(e&&(s=e.assignmentId||e.actionAssignmentId),r||n.url){var i=a.urlMap[r]&&a.urlMap[r][s];if(i){var l,t,u=a.sourceToPageMap[r]&&a.sourceToPageMap[r][s].payload2QueryParamMap;for(l in n)"url"!==l&&(t="sysId"===l?"sys_id":l,i+="&"+(t=u&&u[l]?u[l]:t)+"="+n[l])}else{if(n.url)return e=o&&o.openInNewTab?"_blank":"_self",void window.open(n.url,e);i="&id=form&table="+n.table+"&sys_id="+n.sysId}o&&o.openInNewTab?window.open(window.NOW.portal_url_suffix+"?"+i.substring(1),"_blank"):c(i)}},locationSearch:c}}]); angular.module("sn.$sp").factory("select2EventBroker",function(){var t={},r=-1;return{publishSelect2Opening:function(){for(var n in t)t[n]()},subscribeSelect2Opening:function(n){var e=(++r).toString();return t[e]=n.bind(this),function(){delete t[e]}}}}); angular.module("sn.$sp").filter("unique",function(){return function(n,u){return _.uniqBy(n,function(n){return n[u]})}}); angular.module("sn.$sp").factory("spContextManager",["$rootScope","$window","$interval","$q",function(o,u,a,t){"use strict";var r,n,s,i="global";function f(e){if(e)return JSON.parse(JSON.stringify(e))}function l(e){s[e]&&delete s[e]}function c(n){return t(function(t){var r=a(function(){var e=n||o;e.portal&&e.page&&e.user&&(l(i),p(i,{portal:{sys_id:e.portal.sys_id,title:e.portal.title,url_suffix:e.portal.url_suffix},page:{sys_id:e.page.sys_id,id:e.page.id,title:e.page.title,is_public:e.page.public},user:{sys_id:e.user.sys_id,username:e.user.user_name,first_name:e.user.first_name,last_name:e.user.last_name,email:e.user.email,roles:e.user.roles},language:{user:u.g_lang,system:u.g_system_lang}}),a.cancel(r),r=void 0,t())},0)})}function p(e,t){if(e=function(e){if(""===(e=(e||"").trim().toLowerCase()))throw new Error("Please provide proper key for the context");return e}(e),!t)throw new Error("Please provide proper context for the key: "+e);if(void 0!==s[e])throw new Error('Context for the key "'+e+'" is already registered');s[e]=t}return o.$on("sp.page.loaded",function(){c(o)}),{init:function(){return r||n?t(function(e){e()}):(n=!0,t(function(e){s={},c().then(function(){n=!(r=!0),e()})}))},addContext:p,getContext:function(){return f(s)},getContextForKey:function(n,e){var o,i;return e?(i=function(){a.cancel(o),o=void 0},t(function(t){var r=(new Date).getTime()+u.NOW.sp_ctx_mgr_timeout;o=a(function(){var e=function(e){if(s)return f(s[e])}(n);if(e)i(),t(e);else if((new Date).getTime()>r)throw i(),new Error('Request to get context for the key "'+n+'" timed out')},10)})):f(s[n])},updateContextForKey:function(e,t){l(e),p(e,t)}}}]); angular.module("sn.$sp").factory("spAgentChat",["$q","$http","$window","$location","spContextManager",function(n,a,r,s,i){"use strict";var o,c,u,l="agent-chat",g="sp.agent-chat",f="/$sn-va-web-client-app.do?sysparm_nostack=true&sysparm_stack=no",p=window.NOW.hasAdvanceChat,d=!1,h=!1,m={isVisible:!1,isOpen:!1,hasUnreadMessage:!1,unreadMessages:0},E={},_={NEW_UNREAD_MESSAGE:"sn-va-web-client-app-new-message",REAUTH:"sn-va-web-client-app-trigger-login",CLOSE_AGENT_CHAT:"sn-va-web-client-app-close-iframe",STATE_CHANGE:"STATE_CHANGE"};function v(t,n){Object.keys(t).forEach(function(e){n[e]=t[e]})}function y(){var t=n.defer(),e=JSON.parse(localStorage.getItem(g));return e&&e[c]&&e[c][o]?(e=e[c][o],m.isVisible=!0,m.isOpen=e.is_open,m.hasUnreadMessage=e.has_unread_message,m.unreadMessages=e.unread_messages,m.frameUrl=e.frameUrl,t.resolve(m)):a({method:"GET",url:"/api/now/sp/agent_chat/portal/"+u+"/config"}).then(function(e){e.data.result&&null!==e.data.result.id&&(m.isVisible=!0),t.resolve(m)}),t.promise}function S(e,t){(E[e]||[]).forEach(function(e){e(t)})}return{init:function(e){var t;return d||h?n(function(e){e(m)}):(h=!0,o=s.path(),c=r.NOW.session_id,u=e,t=JSON.parse(localStorage.getItem(g))||{},Object.keys(t).forEach(function(e){e!==c&&delete t[e]}),t[c]=t[c]||{},localStorage.setItem(g,JSON.stringify(t)),n(function(t){Object.keys(_).forEach(function(e){E[_[e]]=[]}),r.addEventListener("message",function(e){S(e.data)}),r.addEventListener("storage",function(e){e.key===g&&y().then(function(e){S(_.STATE_CHANGE,e)})},!0),i.init().then(function(){i.addContext(l,{}),y().then(function(e){h=!(d=!0),t(e)})})}))},events:_,subscribe:function(e,t){e=E[e],Array.isArray(e)&&e.push(t)},getFrameUrl:function(){var o=n.defer();return a({method:"GET",url:"/api/now/sp/agent_chat/portal/"+u+"/context"}).then(function(s){i.getContextForKey("global",!0).then(function(r){i.getContextForKey(l,!0).then(function(e){var t,n,a={};a.portal=r.portal.url_suffix,a.page=r.page.id,a.language=r.language.user,v(i.getContextForKey("record")||{},a),v(e,a),s.data&&s.data.result&&v(s.data.result,a),p?o.resolve(a):o.resolve(f+(t=a,n=[],Object.keys(t).forEach(function(e){n.push("sysparm_"+e+"="+t[e])}),0<n.length?"&"+n.join("&"):""))})})},function(e){console.error("Unable to retrieve SP Agent Chat Context. Error: "+e.data.error.message),p?o.resolve({}):o.resolve(f)}),o.promise},setState:function(e){var t=JSON.parse(localStorage.getItem(g));t[c][s.path()]={is_open:e.isOpen,has_unread_message:e.hasUnreadMessage,unread_messages:e.unreadMessages,frameUrl:e.frameUrl},localStorage.setItem(g,JSON.stringify(t))},registerParam:function(t,n){if("string"!=typeof n)throw new Error('Value for the "'+t+'" agent chat param must be of type "string"');i.getContextForKey(l,!0).then(function(e){e[t]=n,i.updateContextForKey(l,e)})}}}]); angular.module("sn.$sp").directive("spAgentChat",function(){return{restrict:"E",replace:!0,templateUrl:"sp_agent_chat.xml",controllerAs:"c",scope:!0,controller:["$window","spAgentChat","i18n","$rootScope","$scope","spUtil",function(e,a,s,n,t,r){var i=window.NOW.hasAdvanceChat,o=this,n=n.portal_id;o.frameUrl=null,i?(o.getIconDetails=function(e){var e=/\s*url\s*\(\s*['"](.+)['"]\s*\)/.exec(e);return null==e||2!=e.length||0==(e=e[1].split("/")).length?"":e[e.length-1]},a.init(n).then(function(e){o.frameUrl=e.frameUrl;var s=(s=window.getComputedStyle(document.documentElement).getPropertyValue("--sp-agent-chat-btn-open"))&&o.getIconDetails(s),n=(n=window.getComputedStyle(document.documentElement).getPropertyValue("--sp-agent-chat-btn-close"))&&o.getIconDetails(n);a.getFrameUrl().then(function(e){new ServiceNowChat({context:e,branding:{bgColor:"--sp-agent-chat-bg",hoverColor:"--sp-agent-hover-color",activeColor:"--sp-agent-hover-color",primaryColor:"#fff",sizeMultiplier:1.6,openIcon:s,closeIcon:n},offsetX:30,offsetY:15,isInternalUrl:!0})})})):(o.isVisible=!1,o.isOpen=!1,o.hasUnreadMessage=!1,o.unreadMessages=0,o.isMobile=r.isMobile(),o.i18n={openChatWindow:s.getMessage("Open chat window"),minimizeChatWindow:s.getMessage("Minimize chat window"),openChatWindowWithUnreadMessage:s.getMessage("Open chat window. {0} unread messages"),agentChatWindow:s.getMessage("Agent Chat Window")},o.getBadgeAriaLabel=function(){return o.isOpen?o.i18n.minimizeChatWindow:o.hasUnreadMessage?o.i18n.openChatWindowWithUnreadMessage.withValues([o.unreadMessages]):o.i18n.openChatWindow},o.toggle=function(e){var s;e&&e.currentTarget.blur(),o.isOpen=!o.isOpen,o.hasUnreadMessage=!1,o.unreadMessages=0,$("body").toggleClass("disable_overflow_scrolling"),o.isOpen&&void 0!==o.frameUrl?(e=$("iframe.sp-ac-frame"),e=$("sn-component-va-web-client",e.contents())[0],void 0===(s=$(".sn-chat-input-element",$(e))[0])&&(s=$(".sn-chat-input-element",e.shadowRoot)[0]),setTimeout(function(){(s.disabled?$(".sp-ac-root")[0]:s).focus()},0)):o.isOpen&&void 0===o.frameUrl?setTimeout(function(){$(".sp-ac-root")[0].focus()},0):o.isOpen||$("button.sp-ac-btn")[0].focus(),void 0!==o.frameUrl?a.setState({isOpen:o.isOpen,hasUnreadMessage:o.hasUnreadMessage,unreadMessages:o.unreadMessages,frameUrl:o.frameUrl}):a.getFrameUrl().then(function(e){o.frameUrl=e,a.setState({isOpen:o.isOpen,hasUnreadMessage:o.hasUnreadMessage,unreadMessages:o.unreadMessages,frameUrl:o.frameUrl})})},a.init(n).then(function(e){o.frameUrl=e.frameUrl,o.isVisible=e.isVisible,o.hasUnreadMessage=e.hasUnreadMessage,o.unreadMessages=e.unreadMessages,o.isOpen!==e.isOpen&&o.toggle()}),a.subscribe(a.events.NEW_UNREAD_MESSAGE,function(){o.isOpen||(o.hasUnreadMessage=!0,o.unreadMessages=o.unreadMessages+1,999<o.unreadMessages&&(o.unreadMessages=999),t.$apply(),a.setState({isOpen:o.isOpen,hasUnreadMessage:o.hasUnreadMessage,unreadMessages:o.unreadMessages}))}),a.subscribe(a.events.CLOSE_AGENT_CHAT,function(){o.toggle(),t.$apply(),$("button.sp-ac-btn")[0].focus()}),a.subscribe(a.events.REAUTH,function(){e.location.reload(!0)}),a.subscribe(a.events.STATE_CHANGE,function(e){o.isOpen=e.isOpen,o.frameUrl=e.frameUrl}))}]}}); angular.module("sn.$sp").directive("spRichTextLabel",["$sce","cabrillo","getTemplateUrl",function(t,l,e){return{scope:{field:"="},templateUrl:e("sp_rich_text_label.xml"),restrict:"E",replace:!0,controller:["$scope",function(e){e.trustAsHtml=function(e){return t.trustAsHtml(e)},e.isNative=l.isNative()}]}}]); angular.module("sn.$sp").directive("spIgnoreComposition",function(){return{restrict:"A",link:function(o,n){!window.MSInputMethodContext||!document.documentMode||n.off("compositionstart").off("compositionend")}}}); angular.module("sn.$sp").directive("spAssessmentNavButtons",function(){"use strict";return{restrict:"E",templateUrl:"sp_assessment_nav_buttons.xml",scope:!1}}).directive("spAssessmentProgressBar",["i18n",function(t){"use strict";return{restrict:"E",templateUrl:"sp_assessment_progressbar.xml",scope:!0,controller:["$scope",function(e){e.progress=parseInt(e.formModel.percent_answered),e.progressText=t.format(t.getMessage("{0} complete"),parseInt(e.formModel.percent_answered)+"%")}]}}]).directive("spAssessmentAddInfo",["i18n",function(e){"use strict";return{restrict:"E",templateUrl:"sp_assessment_add_info.xml",scope:{field:"=",isMobile:"=?",isNative:"="},controller:["$scope",function(e){e.field.add_info||(e.field.add_info=""),e.field.original_add_info=e.field.add_info}]}}]).directive("spAssessmentModel",["$q","spUtil","glideFormFactory","glideUserSession","glideFormEnvironmentFactory","spUIActionFactory","spModelUtil","$rootScope","spAriaUtil","$http","i18n","snAttachmentHandler","spAsmtSignatureUtil","cabrillo","$sce","spModal","uiScriptFactory","spAsmtFieldPropertyDecorator","spAsmtDirtyFormManager",function(P,S,N,I,A,F,E,e,w,x,D,T,O,q,k,V,C,U,B){"use strict";return{restrict:"E",templateUrl:"sp_assessment_model.xml",replace:!0,scope:{formModel:"=",isMobile:"=?"},controller:["$scope","$rootScope","$timeout",function(b,s,n){function o(){l.addErrorMessage(c.signature.msgs.emptySignatureMessage)}var l,t,i,c,a,e=this,r=P.defer();b.renderFields=!1,b.currentPage=0,b.hasPagination,b.controlMessages=[],D.getMessages(["Collapse","Expand","Submit","Submitting...","Save","Saving..."],function(e){b.controlMessages=e}),b.getTransaltedMessage=function(e,t){return D.format(D.getMessage(e),t)},b.updateTooltip=function(e,t,s){var i=e?$("#category_"+t+"_"+s):$("#assessable_record_"+t+"_"+s);$(i).tooltip("hide"),n(function(){$(i).tooltip("show")},300)},b.checkQuestionVisibility=function(e,t,s){return(e||"template"!=t._fields[s].type)&&t._fields[s].visible||"template"==t._fields[s].type&&t._fields[s].template.firstQuestion&&Q(t._fields[s].template_group,t)},b.getTooltipTitle=function(e,t){var s;return t?(s=b.pages[b.currentPage].categoriesExpanded[e.sourceId]?"Collapse":"Expand",b.getTransaltedMessage(s+" all categories for {0}",e.assessableRecord.assessable_record_name)):(s=e.collapsed?"Expand":"Collapse",b.controlMessages[s]+" "+e.name)},b.isNative=q.isNative(),O.setNative(b.isNative),b.$watch("formModel",function(e){angular.isDefined(e)&&p()}),b.trustHTML=function(e){return k.trustAsHtml(e)},b.$watch("isMobile",function(e,t){if(angular.isDefined(e)&&e!==t&&(p(),"question"!==b.formModel.pagination))if(e)b.currentPage=0;else{var s=b.currentPage,i=0,n=!1;if("category"===b.formModel.pagination)for(var a=0;a<b.pages.length&&!n;a++)for(var r=0;r<b.pages[a].categories.length&&!n;r++)0<=s-b.pages[a].categories[r].questions.length?(s-=b.pages[a].categories[r].questions.length,i++):n=!0;b.currentPage=i,M()}}),b.isLastPage=function(e){return e==b.pages.length-1},b.showNativeButtons=function(e){var t;b.isNative&&(t=[],0==b.currentPage?(t.push({title:1==b.pages.length?e?D.getMessage("Submitting..."):D.getMessage("Submit"):D.getMessage("Next"),enabled:!e}),q.viewLayout.setBottomButtons(t,function(e){b.validatePageAndSave(1==b.pages.length?"submit":"next")})):(t.push({title:D.getMessage("Previous"),backgroundColor:"#f7f7f7",textColor:"#000000",enabled:!e}),t.push({title:b.isLastPage(b.currentPage)?e?D.getMessage("Submitting..."):D.getMessage("Submit"):D.getMessage("Next"),enabled:!e}),q.viewLayout.setBottomButtons(t,function(e){switch(e){case 0:b.navigatePage("previous");break;case 1:b.validatePageAndSave(b.isLastPage(b.currentPage)?"submit":"next")}})))},s.$on("sp.assessment.form.visible",function(){b.showNativeButtons(!1),n(function(){J(b.getPagination(),b.pages[b.currentPage].categories[0].name)},300)}),s.$on("mesp.popup.close",function(){n(function(){M(),b.showNativeButtons(!1)})}),s.$on("mesp.popup.open",function(){n(function(){q.viewLayout.setBottomButtons()})}),s.$on("asmt.signature.popup.close",function(e,t){b.isNative&&b.showNativeButtons(t.signatureValidated)}),s.$on("asmt.signature.popup.open",function(){b.isNative&&q.viewLayout.setBottomButtons()}),b.navigatePage=function(e){"next"==e?b.currentPage++:b.currentPage--,M(),b.showNativeButtons(!1),m(),n(function(){J(b.getPagination(),b.pages[b.currentPage].categories[0].name),b.$emit("sp.components.resize")},300)};function u(s,i){var e=s.sys_id;if(s.isVisible())switch(s.type){case"attachment":i["ASMTQUESTION:"+e]="",i["ADDINFO:ASMTQUESTION:"+e]=s.add_info;break;case"multiplecheckbox":case"ranking":n="multiplecheckbox"==s.type?"ASMTDEFINITION:":"ASMTDEFINITIONRANK:";s.choices.map(function(e){var t=n+e.sys_id+"_"+s.metric+"_"+s.source_id;"multiplecheckbox"==s.type?i[t]=!(!e.selected&&"true"!=e.selected)||"":i[t]=e.value,i["ADDINFO:"+t]=s.add_info});break;default:i["ASMTQUESTION:"+e]=s.value,i["ADDINFO:ASMTQUESTION:"+e]=s.add_info}else switch(i.hidden_questions.push(e),s.type){case"attachment":s.attachments&&s.attachments.forEach(function(e){T.deleteAttachment(e.sys_id)}),i["ADDINFO:ASMTQUESTION:"+e]="";break;case"multiplecheckbox":case"ranking":var n="multiplecheckbox"==s.type?"ASMTDEFINITION:":"ASMTDEFINITIONRANK:";s.choices.map(function(e){e=n+e.sys_id+"_"+s.metric+"_"+s.source_id;i[e]="",i["ADDINFO:"+e]=""});break;default:i["ASMTQUESTION:"+e]="",i["ADDINFO:ASMTQUESTION:"+e]=""}}b.submitAssessment=function(a){var r=b.currentPage;b.$evalAsync(function(){if("submit"!=a||b.isSignatureFilled()){var e={sysparm_action:"next"==a?"save":a,sysparm_instance_id:c.instance_id,hidden_questions:[]},t=b.getFlatFieldsFromPage(r);for(s in b.currentAction=a,t)u(t[s],e);if("submit"==a){var s,i=b.hiddenDepQuestionPag;for(s in i)u(i[s],e);b.hiddenDepQuestionPag=[]}e.percent_answered=b.getPercentAnswered(),e.channel=b.isNative?"mobile":c.from_iframe?"workspace":"portal",c.signature&&"submit"===a&&(n=c._fields[c.signature.sys_id].value,e.signature_result="checkbox"==c.signature.type?"checked":n),e.continue_from_question=function(e){e=b.isLastPage(e)?e:e+1;return b.pages[e].categories[0].questions[0]}(r);var n=JSON.stringify(e),n=encodeURIComponent(n);"submit"==a&&b.showNativeButtons(!0),x({method:"POST",url:"/sp_survey.do",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then(function(e){!b.isSavingOrSubmitting()&&"cancel"!=b.currentAction||B.unregisterForms([l.getSysId()]);b.$emit("assessment.form.submitted",{action_name:a,response:e})}).catch(function(e){b.$emit("assessment.form.submit_failed",{action_name:a}),b.currentAction=""})}else b.formModel.signature&&"full_name"!==b.formModel.signature.type&&o()})};var g=function(e){var s={};return e.forEach(function(e){var t=c._fields[e];"string"!=t.type&&"textarea"!=t.type||(s[e]={validator:t.field_validation,value:t.value})}),s};function d(s,i,n){s in c._fields&&b.$evalAsync(function(){var e=c._fields[s],t=(e.stagedValue!=n&&(e.stagedValue=n),L(b.formModel,b.pages),{field:e,oldValue:i,newValue:n});!b.isMobile&&c.is_kiosk_survey&&(e.readonly=!0,b.validatePageAndSave("submit")),b.$emit("field.change",t),b.$broadcast("field.change."+e.name,t),b.$emit("field.change."+e.name,t)})}function f(e,t,s){switch(t){case"infoMessage":S.addInfoMessage(s);break;case"warningMessage":S.addWarningMessage(s);break;case"errorMessage":case"mandatoryMessage":S.addErrorMessage(2!==(a=(i=s).replace(/\:/,"####").split("####")).length||-1!==i.indexOf("://")||(n=[],a[1].split(/\r|\n/).forEach(function(e){(e=e.trim())&&n.push(e)}),0===n.length)?i:a[0]+": "+n.join(", "));break;case"clearMessages":S.clearMessages();break;default:return!1}var i,n,a}function p(){c=b.formModel,b.pages=h(c),b.hasPagination=!c.enforce_none&&("none"!==c.pagination||b.isMobile),m(),b.hasPagination&&M(),(c.one_click_survey||c.not_show_intro_note)&&b.showNativeButtons(!1)}function m(){r||(r=P.defer(),b.execItemScripts()),a=e.getFlatFields(c),I.loadCurrentUser().then(function(e){e=e,l=function(){var e=F.create(c._ui_actions||[],{attachmentGUID:c._attachmentGUID,uiActionNotifier:function(e,t){t.then(function(e){s.$broadcast("spModel.uiActionComplete",e,c.sys_id)})}},b.formModel.encoded_record);return E.extendFields(a),(l=N.create(b,c.table,c.sys_id,a,e,{encodedRecord:b.formModel.encoded_record,uiMessageHandler:f,cleanDecimals:!0,relatedLists:c._related_lists,sections:c._sections,fieldIterator:b.fieldIterator})).getControl=R,l.getField=function(e){for(var t=0,s=a.length;t<s;t++){var i=a[t];if(i.name===e)return i}var n=l.$private.options("getMappedField");if("function"==typeof n){n=n(e);if(n)return n}},l.$private.events.on("change",d),l.$private.events.on("propertyChange",function(e,t,s,i){"mandatory"==s&&L(b.formModel,b.pages),"messages"==s&&i&&i.length&&w.sendLiveMessage(i),"visible"==s&&(i&&b.$broadcast("sp.assessment.details.visible",t),"question"!=c.pagination&&!b.isMobile||(b.pages=h(c)),b.showNativeButtons(!1))}),l.$private.events.on("submitted",function(e){b.submitAssessment(e),"next"==e&&b.navigatePage(e)}),b.$on("sp.spFormField.stagedValueChange",function(){L(b.formModel,b.pages)}),U.decorate(a,l),l}(),i=A.createWithConfiguration(l,e,c.g_scratchpad,c.client_script||[],c.policy||[],{},b.getValidationScriptsForCurrentPage(),C.create(c.ui_scripts)||[]),t=i.getUserGlideForm(),b.renderFields=!0,b.$emit("spModel.gForm.env.created",l),l.$private.events.on("change",v),r.resolve()}).catch(r.reject)}function v(e,t,s){var i;"textarea"!=c._fields[e].type&&"string"!=c._fields[e].type||((i=c._fields[e]).isServerValidationDone=!i.field_validation,i.isServerInvalid=!1,i=g([e]),b.validateString(i))}function y(e,t,s,i,n,a){c.resume&&i&&(a?(a=c.signature&&c.signature.sys_id==i,b.currentPage=a?n:b.currentPage):"question"!=e||i.visible?function(e,t,s,i){switch(e){case"none":return 1;case"category":return t.sysId==i.category&&t.sourceId==i.source_id;case"question":return"template"!==s.type||b.isMobile?s.sys_id==i.sys_id:s.template.firstQuestion&&c.template_groups[s.template_group].questions.some(function(e){return c._fields[e].sys_id==i.sys_id})}}(e,t,s,i)&&(b.currentPage=n):b.currentPage=0)}function h(e){var t,s,i,n,a,r,o=[],l=0,c=b.getPagination(e.enforce_none),u=e._fields[e.continue_from_question];if("category"==c)for(var g=0;g<e.categories.length;g++){var d={categories:[],visible:!0},f=e.categories[g];d.categories.push(f),d.visible=b.isPageVisible(d,e),d.visible&&(y(c,f,h,u,l,!1),d.id=l++,d.showCategoryDetails=!0,o.push(d))}else if("question"==c){b.hiddenDepQuestionPag=[];for(g=0;g<e.categories.length;g++)for(var p=(f=e.categories[g]).questions,m=0;m<p.length;m++){var d={categories:[],visible:!0},v=p[m],h=e._fields[v],v=_.assign({},f);if(h.visible||b.hiddenDepQuestionPag.push(h),d.visible=h.visible,y(c,f,h,u,l,!1),"template"!==h.type||b.isMobile)v.questions=[h.sys_id];else{if(!h.template.firstQuestion)continue;v.questions=e.template_groups[h.template_group].questions,d.visible=Q(h.template_group,e)}d.categories.push(v),d.visible&&(d.id=l++,0==m&&(d.showCategoryDetails=!0),o.push(d))}}else{(d={categories:[],visible:!0}).categories=[],d.categoriesExpanded={};for(g=0;g<e.categories.length;g++)(f=JSON.parse(JSON.stringify(e.categories[g]))).collapsed=!1,d.categoriesExpanded[f.sourceId]=!0,d.categories.push(f),d.id=l;o.push(d)}return L(e,o),t=e,s=o,i=l,n=b.isMobile,r=t.signature,!t.isPublic&&r&&("none"!=t.pagination||n?(n={categories:[],visible:!0,isSignature:!0},(a={}).id=r.sys_id,a.name=t.title,a.questions=[r.sys_id],n.categories.push(a),n.id=i,s.push(n)):(a=s[s.length-1].categories.length,i=s[s.length-1].categories[a-1],t._fields.hasOwnProperty(r.sys_id)||i.questions.push(r.sys_id)),t._fields[r.sys_id]||(t._fields[r.sys_id]=O.getQuestion(r))),y(c,f,h,e.continue_from_question,l,!0),o}function M(){var e,t;b.pages[b.currentPage]&&(e=!!b.pages[b.currentPage].isSignature,t=b.pages[b.currentPage].categories[0].name,b.$emit("survey.update.title",t,e))}b.validateString=function(e){S.get(b.$parent,{action:"check_string_validation",string_qa_map:JSON.stringify(e)}).then(function(e){var i;e&&e.data&&e.data.stringValidationResponse&&(i=JSON.parse(e.data.stringValidationResponse),angular.forEach(i,function(e,t){var s=c._fields[t];s.isServerValidationDone=!0,s.isInvalid=s.isServerInvalid=i[t].isInvalidString,s.fieldValidatorErrorMsg=i[t].fieldValidatorErrorMsg,s.isInvalid&&l.showFieldMsg(s.name,s.fieldValidatorErrorMsg,"error")}))})},b.isSignatureFilled=function(){var e=c.signature;return!(!c.isPublic&&e&&"assertion_only"!=e.type)||("full_name"!=e.type||e.validated?!("checkbox"==e.type&&!c._fields[e.sys_id].value):(e.validationCallback=function(e){if(e)return b.submitAssessment("submit"),!0;o()},O.verifySignature(c.signature),!1))},b.isRegexDone=function(){var e,t=b.getFlatFieldsFromPage(b.currentPage);for(e in t)if(t.hasOwnProperty(e)&&!1===t[e].isServerValidationDone)return!1;return!0},b.validatePageAndSave=function(t){if(c.readonly_form)return b.navigatePage(t);var e,s;"cancel"==t?(e=c.parameterizedMsgsMap.cancel_header,s=c.parameterizedMsgsMap.cancel_modal_msg,V.open({title:e,message:s,headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},buttons:[{label:D.getMessage("Cancel"),value:"cancel"},{label:D.getMessage("OK"),primary:!0,value:"ok"}]}).then(function(e){if("ok"==e.value)return b.submitAssessment(t),!0})):b.isRegexDone()&&l&&(l.submit(t)||b.openInvalidFields())},b.openInvalidFields=function(){var s,e;b.pages[b.currentPage].categories.forEach(function(e){var t=e.questions.filter(function(e){return 1==b.formModel._fields[e].isInvalid||"signature"==b.formModel._fields[e].type&&1!=b.formModel._fields[e].value});t.length&&(s=s||t[0],e.collapsed&&(e.collapsed=!1,b.categoryToggled(e.sourceId)))}),(e=$('label[for="sp_formfield_'+s+'"]')).length&&n(function(){e[0].scrollIntoView()},500)},b.isPageVisible=function(e,t){for(var s=0;s<e.categories.length;s++)for(var i=e.categories[s].questions,n=0;n<i.length;n++)if(t._fields[i[n]].visible)return!0;return!1},b.getPercentAnswered=function(){var e=0,e=b.currentPage==b.pages.length-1&&"submit"==b.currentAction?100:100*b.currentPage/b.pages.length;return c.percent_answered=c.percent_answered>e?c.percent_answered:e,c.percent_answered},b.isSavingOrSubmitting=function(){return"save"==b.currentAction||"submit"==b.currentAction},e.getFlatFields=function(e){var t,s=e._fields,i=[];for(t in s)"signature"!=s[t].type&&i.push(s[t]);return i},b.getGlideForm=function(){return t},b.setDefaultValue=function(e,t,s){l.setValue(e,t,s)},b.fieldIterator=function(e){b.getFlatFieldsFromPage(b.currentPage).forEach(e)},b.toggleAssessableRecordCategories=function(t){var s,i=b.pages[b.currentPage].categoriesExpanded[t],e=(b.pages[b.currentPage].categories.forEach(function(e){e.sourceId==t&&(e.collapsed=i,s=e.assessableRecord.assessable_record_name)}),b.pages[b.currentPage].categoriesExpanded[t]=!i,i?"Collapsed all categories for {0}":"Expanded all categories for {0}");w.sendLiveMessage(b.getTransaltedMessage(e,s))},b.categoryToggled=function(e){if("assessment"==c.evaluation_method||"risk_assessment"==c.evaluation_method){for(var t=b.pages[b.currentPage].categoriesExpanded[e],s=b.pages[b.currentPage].categories,i=0;i<s.length;i++)if(s[i].sourceId==e&&s[i].collapsed!=t)return;b.pages[b.currentPage].categoriesExpanded[e]=!t}},b.getFlatFieldsFromPage=function(e){var t=[],s=b.formModel.signature;return b.pages[e].categories.forEach(function(e){e.questions.forEach(function(e){s&&s.sys_id==e||t.push(b.formModel._fields[e])})}),t},b.execItemScripts=function(){r.promise.then(function(){r=null,b.$emit("spModel.fields.rendered"),b.$evalAsync(function(){L(b.formModel,b.pages),i.initialize(),b.$emit("spModel.gForm.initialized",l),B.register(l),B.isNative(b.isNative),delete b.formModel.resume})})},b.getValidationScriptsForCurrentPage=function(){if(!c.validation_scripts||!c.validation_scripts.length)return[];for(var t=[],e=(b.pages[b.currentPage].categories.forEach(function(e){t=t.concat(e.questions||[])}),[]),s=0;s<c.validation_scripts.length;s++){var i,n;0<(n=c.validation_scripts[s].fields.filter(function(e){return-1!=t.indexOf(e)})).length&&((i=JSON.parse(JSON.stringify(c.validation_scripts[s]))).fields=n,e.push(i))}return e},b.getPagination=function(e){return e&&!b.isNative?"none":b.isMobile?"question":c.pagination}}]};function Q(e,t){var s,i=t.template_groups[e].questions;for(s in i)if(t._fields[i[s]].visible)return!0;return!1}function L(i,e){e.forEach(function(s){s.isPageMandatory=!1,s.categories.forEach(function(e){var t=!1;e.questions.forEach(function(e){e=i._fields[e];e.mandatory&&e.mandatory_filled&&!e.mandatory_filled()&&(t=!0)}),e.isMandatory=t,e.isMandatory&&(s.isPageMandatory=!0)})})}function R(e){return-1==this.getFieldNames().indexOf(e)?null:new function(e,t){this.g_form=e,this.name=t,this.options=[],this.focus=function(){console.log(">> focus not implemented for "+this.name)},Object.defineProperty(this,"value",{get:function(){return this.g_form.getValue(this.name)},set:function(e){this.g_form.setValue(this.name,e)}})}(this,e)}function J(e,t){for(var s=$(".sp-asmt-auto-focus:first"),i=["button:visible",".asmt-img-scale","input:visible","textarea:visible",".survey-label",".category-heading"],n=0;n<i.length;n++){var a,r,o=s.find(i[n]);if(o.length){"category"!=e&&"question"!=e||(a=(a=document.getElementsByClassName("progress-bar")[0]?document.getElementsByClassName("progress-bar")[0].ariaValueNow:"")?D.format(D.getMessage("{0} complete"),parseInt(a)+"%"):"",r="",r=(s[0].querySelector(".type-imagescale")?o:s[0].querySelector(".type-multiple_choice")?o[0].labels:s)[0].innerText,o[0].setAttribute("aria-label",[a,t,r].join(" "))),o[0].focus();break}}$(".asmt-modal-layout")[0].scrollIntoView()}}]); angular.module("sn.$sp").directive("spAssessmentMobileField",function(){"use strict";return{restrict:"E",templateUrl:"sp_assessment_mobile_field.xml",scope:!1}}).directive("spAssessmentFormField",["i18n",function(i){"use strict";return{restrict:"E",templateUrl:"sp_assessment_form_field.xml",replace:!0,controllerAs:"c",scope:{field:"=",formModel:"=",isMobile:"=",getGlideForm:"&glideForm",isNative:"="},controller:["$scope",function(t){var r=t.field;if(!r)throw"spAssessmentFormField used without providing a field.";switch(this.showLabel=function(e){return(t.isMobile||"template"!=e.type)&&e.label&&""!=e.label.trim()},t.stagedValueChange=function(){t.$emit("sp.spFormField.stagedValueChange",null)},this.renderSPFormField=function(e){switch(e.type){case"imagescale":case"ranking":case"number":case"template":case"multiplecheckbox":case"signature":case"attachment":return!1;case"numericscale":case"multiple_choice":if(t.isMobile)return!1;default:return!0}},t.fieldValueChanged=function(e){return angular.isDefined(e)&&(r.stagedValue=e,t.getGlideForm().setValue(r.name,e,e)),r.value},t.field.type){case"choice":var e="-- "+i.getMessage("Choose")+" --";r.choices&&0!=r.choices.length&&r.choices[0].label==e||(r.choices=[{label:e,value:"",sys_id:"NONESYSID"}].concat(r.choices||[]));break;case"reference":e={name:"reference",reference:r.recordTableName,searchField:r.searchField,qualifier:r.refCondition,defaultOperator:r.defaultOperator};r.ed=e,r.refTable=r.recordTableName;break;case"ranking":e=r.choices.map(function(e){return!!e.value&&"-1"!=e.value}).reduce(function(e,t){return e&&t},!0);r.value=r.stagedValue=r.originalValue=e?r.value:"";break;case"template":if(!t.isMobile){var a=Object.entries(t.formModel._fields).filter(function(e){return e[1].template_group===r.template_group});t.templateGroupFields={};for(var l=0;l<a.length;l++)t.templateGroupFields[a[l][0]]=a[l][1]}}}]}}]); angular.module("sn.$sp").directive("spAssessmentLayout",["getTemplateUrl",function(e){"use strict";return{restrict:"E",templateUrl:"sp_assessment_layout.xml",scope:!1}}]); angular.module("sn.$sp").directive("spAssessmentRanking",["$timeout",function(e){return{restrict:"E",templateUrl:"sp_assessment_ranking.xml",scope:{field:"=?",snChange:"&",isNative:"="},controller:["$scope","$element",function(o,s){function t(e,i,n){var o;i<0||i>=e.length||n<0||n>=e.length||(o=e[i],e[i]=e[n],e[n]=o)}o.field.choices.sort(function(e,i){return e.value-i.value}),o.choicesOrder=[],o.field.choices.forEach(function(e){o.choicesOrder.push(e.sys_id)}),o.updatingChoices=!1,o.onSelectChange=function(i){o.field.choices.forEach(function(e){e.value==i.value&&e.sys_id!=i.sys_id&&(e.value="-1")});var e=o.choicesOrder.indexOf(i.sys_id),n=o.sortable.toArray();t(n,parseInt(i.value)-1,e),t(o.choicesOrder,parseInt(i.value)-1,e),o.sortable.sort(n),o.lastModifiedChoice=i.value-1,o.setFieldValue(),o.setFocusToLastModifiedChoice()},o.field.isReadonly()||e(function(){o.sortable=new Sortable(s.find("ul")[0],{onUpdate:function(){o.updatingChoices=!0;for(var e=s.find("select"),i=0;i<e.length;i++){e[i].value=i+1;var n=o.choicesOrder.indexOf(e[i].id);t(o.choicesOrder,i,n),$(e[i]).triggerHandler("change")}o.updatingChoices=!1,o.setFieldValue(),o.setFocusToLastModifiedChoice()}}),angular.element(s.find("ul")[0]).on("touchmove",function(e){e.preventDefault()})}),o.setFieldValue=function(){if(!o.updatingChoices){var e,i,n=!0;for(e in o.field.choices)if("-1"==o.field.choices[e].value){n=!1;break}o.snChange&&((i={}).newValue=n?n+"":"",o.snChange(i)),o.updatingChoices=!1}},o.setFocusToLastModifiedChoice=function(){o.updatingChoices||o.setFocusToSelect(o.lastModifiedChoice)}}],link:function(e,n){e.field.isReadonly()||setTimeout(function(){$(n).find("li").mouseenter(function(e){$(this).addClass("hovered")}),$(n).find("li").mouseleave(function(e){$(this).removeClass("hovered")}),$(n).find("li").attr("style",e.isNative?"margin-top: .325rem !important":void 0)},10),e.setFocusToSelect=function(e){var i=n.find("select");i&&i[e].focus()}}}}]); angular.module("sn.$sp").factory("spAsmtSignatureUtil",["$rootScope","$http","$q","i18n","spModal","$sce",function(a,n,i,t,s,e){"use strict";var r;return{verifySignature:function(e){e.signAuthFailure=!1,e.password="",e.isNative=r,a.$broadcast("asmt.signature.popup.open"),s.open({title:e.msgs.signatureAuthentication,onSubmit:function(){return a=this,(t=e).signAuthFailure=!1,s=a.widget.data.templateData.password,i(function(e,a){n({method:"POST",url:"/sp_survey.do",data:{sysparm_request_type:"verify_signature",sysparm_user:t.username,sysparm_password:s}}).then(function(a){a="true"==a.data;t.signAuthFailure=!a,e({status:a,errorMessage:t.msgs.invalidCredentials}),t.validationCallback&&a&&(t.validated=!0,t.validationCallback(!0),t.validationCallback=null)},function(a){e({status:!1,errorMessage:t.msgs.emptySignatureMessage})})});var t,a,s},widget:"template_renderer",buttons:[{label:t.getMessage("Cancel"),value:"close",cancel:!0},{label:t.getMessage("OK"),value:"ok",primary:!0}],widgetInput:{data:e,template:"sp_assessment_signature.xml"}}).then(function(){a.$broadcast("asmt.signature.popup.close",{signatureValidated:!!e.validated})},function(){a.$broadcast("asmt.signature.popup.close",{signatureValidated:!!e.validated}),e.validationCallback&&e.signAuthFailure&&e.validationCallback(!1)})},getQuestion:function(a){return{type:"signature",name:a.sys_id,value:a.value,stagedValue:a.value,sys_id:a.sys_id,signType:a.type,userName:a.username,depends_on:"",visible:!0,readonly:"full_name"===a.type,sys_readonly:a.sys_readonly,mandatory:"checkbox"===a.type,htmlLabel:e.trustAsHtml(a.label),isVisible:function(){return!0},isMandatory:function(){return this.mandatory},isReadonly:function(){return this.sys_readonly||this.readonly},mandatory_filled:function(){return this.value}}},setNative:function(a){r=a}}}]); angular.module("sn.$sp").directive("spAssessmentNumber",["i18n",function(n){return{restrict:"E",templateUrl:"sp_assessment_number.xml",scope:{field:"=?",snChange:"&",isMobile:"=?",isNative:"="},controller:["$scope","$element",function(t,e){t.translations={},n.getMessages(["The value is not valid or it is out of range.","The entered value has been changed to an integer."],function(e){t.translations=e});var i=t.field;t.validate=function(){var e=i.stagedValue,n=(i.isConverted=!1,t.isFloat(e)&&0<=e&&(e=Math.floor(e),i.isConverted=!0),parseFloat(e)),s=parseInt(i.maxValue),a=parseInt(i.minValue);i.isInvalid=i.isInvalidInput=""!==e&&(isNaN(e)||s<n||n<a),t.snChange&&((s={}).newValue=e,t.snChange(s))},t.isFloat=function(e){return e%1!=0}}]}}]); angular.module("sn.$sp").directive("spAssessmentCheckboxGroup",function(){"use strict";return{restrict:"E",templateUrl:"sp_assessment_checkbox_group.xml",replace:!0,scope:{field:"=",snChange:"&"},controller:["$scope",function(n){var t=[];n.field.choices.forEach(function(e){e.selected&&t.push(e.value)}),n.setFieldValue=function(s){var e;s.selected?t.push(s.value):t=t.filter(function(e){return e!=s.value}),n.snChange&&((e={}).newValue=t.toString(),n.snChange(e))}}]}}); angular.module("sn.$sp").directive("spAssessmentImageScale",function(){return{restrict:"E",replace:!0,templateUrl:"sp_assessment_image_scale.xml",scope:{field:"=?",snChange:"&",isMobile:"=?",isKioskSurvey:"=",isNative:"="},controller:["$scope",function(c){c.initialOpacity=c.field.unselected_image_all_present?1:.5;var a=37,t=38,o=39,n=40,r=32;if(c.selectChoice=function(e,i){e.stopPropagation(),c.initialOpacity=0,i.opacity=1,c.snChange&&((e={}).newValue=i.value,c.snChange(e));for(var l=c.field.choices,s=0;s<l.length;s++){var a=l[s];a.initialOpacity=0,c.field.value!=a.value&&(c.isKioskSurvey?a.opacity=.15:c.field.unselected_image_all_present||(a.opacity=.5))}c.isMobile&&(c.mobileChoice=i)},c.selectOption=function(e,i){if(e.which==r)e.preventDefault(),c.selectChoice(e,c.field.choices[i]);else{var l=c.field.choices.length,s=-1;switch(e.which){case a:case t:s=(--i+l)%l;break;case o:case n:s=++i%l}-1!=s&&(e.preventDefault(),c.chooseOption(e,s,!0))}},c.chooseOption=function(e,i,l){var s=document.getElementsByClassName("img-scale-"+c.field.sys_id);if(s&&s[i]){for(var a=0;a<s.length;a++)s[a].tabIndex=-1;c.isKioskSurvey&&l||c.selectChoice(e,c.field.choices[i]),s[i].tabIndex=0,s[i].focus()}},c.getTabIndex=function(e,i){return c.field.value?c.field.value===i.value?"0":"-1":0===e?"0":"-1"},c.isMobile){c.mobileChoice=c.field.choices[0];for(var e=0;e<c.field.choices.length;e++){var i=c.field.choices[e];if(c.field.value==i.value){c.mobileChoice=i;break}}}}]}}); angular.module("sn.$sp").directive("spAssessmentAttachment",["getTemplateUrl","i18n","nowAttachmentHandler","spAttachmentUpload","$timeout","spAriaUtil","cabrillo","spModal",function(e,i,t,r,m,d,h,u){return{restrict:"E",replace:!0,templateUrl:"sp_assessment_attachment.xml",scope:{field:"=?",snChange:"&",allowedFileSize:"=?",allowedFileExtensions:"=?"},controller:["$scope","$element",function(n,a){n.isNative=h.isNative(),n.errorMessages=[];var s=n.allowedFileSize,c=n.allowedFileExtensions,o=n.field,l=i.getMessage("Attached");m(function(){var e=n.attachmentHandler=new t(n.setAttachments,n.appendError);e.setParams(o.recordTableName,o.recordSysId),e.getAttachmentList()}),n.showAttachOptions=function(){var t=n.attachmentHandler;h.attachments.addFile(o.recordTableName,o.recordSysId,null,{maxWidth:1e3,maxHeight:1e3}).then(function(e){t.getAttachmentList(t.ADDED)},function(){console.log("Failed to attach new file")})},n.onAttachmentSelect=function(e){0!=e.length&&(r.uploadAttachments(n.attachmentHandler,e),n.$on("attachment.upload.success",function(){n.errorMessages=[]}))},n.openAttachmentSelector=function(e){e.stopPropagation();var t=a.find("input[type=file]");t&&m(function(){t.click()},0,!1)},n.setFocus=function(e){e=document.getElementById(e);e&&e.focus()},n.setAttachments=function(e){var t="";e.forEach(function(e){e.canWrite=!1,e.canDelete=!o.isReadonly(),t+=e.file_name+","}),o.attachments=e,n.snChange&&((e={}).newValue=t,n.snChange(e))},n.appendError=function(e){var t=i.format(i.getMessage("Attached files must be smaller than {0} MB, or the files must have {1} file extensions."),[s,c]);e&&(n.errorMessages.push({msg:t}),d.sendLiveMessage(t))},n.getAttachmentTemplate=function(){return e("sp_attachment_single_line.xml")},n.confirmDeleteAttachment=function(e){n.isNative?confirm(i.getMessage("Delete Attachment?"))&&(n.attachmentHandler.deleteAttachment(e),n.setFocus("sp_asmt_formfield_"+o.name)):u.confirm(i.getMessage("Delete Attachment?")).then(function(){n.attachmentHandler.deleteAttachment(e),n.setFocus("sp_asmt_formfield_"+o.name)})},n.$on("attachment.upload.success",function(e,t){m(function(){d.sendLiveMessage(t.names+" "+l)},500)}),n.$on("attachment.delete.success",function(e,t){m(function(){d.sendLiveMessage(i.getMessage("Attachment deleted successfully"))},500)})}]}}]); angular.module("sn.$sp").directive("spAssessmentTemplate",["$timeout",function(e){return{restrict:"E",templateUrl:"sp_assessment_template.xml",scope:{field:"=?",fields:"=?",templateGroup:"=?",getGlideForm:"&glideForm"},controller:["$scope",function(i){var e=i.field.choices.length;0<e&&e<=5?(i.questionWidth=40,i.choiceWidth=100/e):5<e&&(i.questionWidth=15,i.choiceWidth=100/e),i.selectChoice=function(e,t){angular.isDefined(t)&&i.getGlideForm().setValue(e,t,t)}}]}}]); angular.module("sn.$sp").directive("spAssessmentDetails",["$sce","i18n","$timeout","cabrillo",function(o,e,a,i){"use strict";return{restrict:"E",templateUrl:"sp_assessment_details.xml",scope:{htmlDetails:"=",paddingRequired:"=?",clampLine:"=",isMobile:"=?",fieldId:"=",isCategory:"=",label:"="},link:function(n,l){function t(i){a(function(){var e,s,t,o=i?l.find("#sp_assessment_details_"+i):l.find(".show-more-box");o&&o[0]&&(e=$(o[0]),s=$(l.find(".show-more-control")),t=parseInt(o.css("line-height")),e[0].style.maxHeight="",o[0].offsetHeight/t>n.clampLine?(n.showMore=!0,n.showButton=!0,e.addClass("details-text"),e[0].style.maxHeight=t*n.clampLine+"px",s.removeClass("hide-button")):(n.showMore=!1,n.showButton=!1,e.removeClass("details-text"),e[0].style.maxHeight="",s.addClass("hide-button")))})}t(),n.$on("sp.assessment.details.visible",function(e,s){t(s)})},controller:["$scope","$element",function(s,t){s.isNative=i.isNative(),s.showMore=!0,s.controlMessages=[],e.getMessages(["Show less","Show more"],function(e){s.controlMessages=e}),s.showMoreMsg=e.format(e.getMessage("{0} details show more"),s.label),s.showLessMsg=e.format(e.getMessage("{0} details show less"),s.label),s.showMoreClicked=function(){s.showMore=!s.showMore,a(function(){var e=t.find(".show-more-box");e&&(e[0].style.maxHeight=s.showMore?parseInt(e.css("line-height"))*s.clampLine+"px":"",(e=s.isCategory?t.closest(".category-container").find(".category-heading-section"):t.closest(".asmt-question-border"))&&s.showMore&&(t.focus(),e[0].scrollIntoView()))})},s.trustedHTML=function(e){return o.trustAsHtml(e)}}]}}]); angular.module("sn.$sp").factory("spAsmtFieldPropertyDecorator",function(){"use strict";return{decorate:function(n,e){n.forEach(function(n){switch(n.type){case"number":return i=n,void Object.defineProperty(i,"isInvalid",{set:function(n){i._isInvalid=n},get:function(){return i._isInvalid||i.isInvalidInput},configurable:!0});case"string":case"textarea":return e=n,void Object.defineProperty(e,"isInvalid",{set:function(n){e._isInvalid=n},get:function(){return e._isInvalid||e.isServerInvalid},configurable:!0})}var e,i})}}}); angular.module("sn.$sp").factory("spAsmtDirtyFormManager",["$rootScope","$window","spModal","i18n","cabrillo",function(e,o,a,i,r){"use strict";var l,s={},u=!1;function c(){var t,n=Object.keys(s),e=!1;for(t in n)if(e=s[n[t]].getFieldNames().some(function(e){e=s[n[t]].getField(e);if(void 0!==e.original_add_info&&e.original_add_info!==e.add_info||"attachment"!==e.type&&e.originalValue!==e.value)return!0}))break;return e}function g(){r.isNative()&&l&&(r.viewLayout.setTitle(""),r.viewLayout.setNavigationBarButtons(),r.viewLayout.setBottomButtons())}return e.$on("$locationChangeStart",function(e,t){var n;0!=Object.keys(s).length&&(c()?(e.preventDefault(),e={title:i.getMessage("Leave page?"),headerStyle:{border:"none","padding-bottom":0},footerStyle:{border:"none","padding-top":0},message:i.getMessage("Changes you made will be lost."),buttons:[{label:i.getMessage("Cancel"),value:"cancel"},{label:i.getMessage("Leave"),primary:!0,value:"leave"}]},r.isNative()&&l?(n=i.format("{0} {1}",e.title,e.message),confirm(n)&&(g(),o.location=t)):(u=!0,a.open(e).then(function(e){"leave"==e.value&&(o.location=t),u=!1},function(){u=!1}))):g())}),o.onbeforeunload=function(){if(0!=Object.keys(s).length&&c()&&!u)return!0},o.onpagehide=function(){g()},{register:function(e){s[e.getSysId()]=e},unregisterForms:function(e){e.forEach(function(e){delete s[e]})},isNative:function(e){l=e}}}]); angular.module("sn.$sp").config(["$compileProvider","$controllerProvider","$locationProvider","lazyLoaderProvider","$provide","$httpProvider","$ariaProvider",function(r,e,i,a,o,t,l){i.html5Mode({enabled:!0,requireBase:!0}).hashPrefix("!hash"),t.interceptors.push("spInterceptor"),a.set({register:e.register,directive:r.directive,factory:o.factory,value:o.value,service:o.service}),l.config({ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!1,ariaValue:!0,tabindex:!1,bindKeydown:!0,bindRoleForClick:!0})}]).run(["$rootScope","spPageData","spConf","spUtil",function(r,e,i,a){r.portal=e.getPortal(),r.portal.logoutUrl=a.format(i.logoutUrl,{url_suffix:r.portal.url_suffix})}]); ;