Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ui-select-stable

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-select-stable - npm Package Compare versions

Comparing version 0.19.9 to 0.19.10

index.js

2

dist/select.min.js

@@ -1,2 +0,2 @@

!function(){"use strict";var x={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,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(e){switch(e.which){case x.COMMAND:case x.SHIFT:case x.CTRL:case x.ALT:return!0}return!!(e.metaKey||e.ctrlKey||e.altKey)},isFunctionKey:function(e){return 112<=(e=e.which?e.which:e)&&e<=123},isVerticalMovement:function(e){return~[x.UP,x.DOWN].indexOf(e)},isHorizontalMovement:function(e){return~[x.LEFT,x.RIGHT,x.BACKSPACE,x.DELETE].indexOf(e)},toSeparator:function(e){var t={ENTER:"\n",TAB:"\t",SPACE:" "}[e];return t||(x[e]?void 0:e)}};function E(e){return angular.isUndefined(e)||null===e}void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(s.bind(t)(e))return t;t=t.parentElement}return!1});var e=0,t=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return e++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",function(){var t=angular.$$minErr("ui.select");return function(){var e=t.apply(this,arguments).message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(e)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,s,i,c){c(e,function(e){t.append(e)})}}}).filter("highlight",function(){return function(e,t){return t&&e?(""+e).replace(new RegExp((""+t).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),'<span class="ui-select-highlight">$&</span>'):e}}).factory("uisOffset",["$document","$window",function(s,i){return function(e){var t=e[0].getBoundingClientRect();return{width:t.width||e.prop("offsetWidth"),height:t.height||e.prop("offsetHeight"),top:t.top+(i.pageYOffset||s[0].documentElement.scrollTop),left:t.left+(i.pageXOffset||s[0].documentElement.scrollLeft)}}}]);t.factory("$$uisDebounce",["$timeout",function(n){return function(s,i){var c;return function(){var e=this,t=Array.prototype.slice.call(arguments);c&&n.cancel(c),c=n(function(){s.apply(e,t)},i)}}}]),t.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(r,o,u,e,d){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){return e.addClass("ui-select-choices"),(e.parent().attr("theme")||r.theme)+"/choices.tpl.html"},compile:function(n,e){if(!e.repeat)throw u("repeat","Expected 'repeat' expression.");var l=e.groupBy,a=e.groupFilter;if(l){var t=n.querySelectorAll(".ui-select-choices-group");if(1!==t.length)throw u("rows","Expected 1 .ui-select-choices-group but got '{0}'.",t.length);t.attr("ng-repeat",o.getGroupNgRepeatExpression())}var s=o.parse(e.repeat),i=n.querySelectorAll(".ui-select-choices-row");if(1!==i.length)throw u("rows","Expected 1 .ui-select-choices-row but got '{0}'.",i.length);i.attr("ng-repeat",s.repeatExpression(l)).attr("ng-if","$select.open");var c=n.querySelectorAll(".ui-select-choices-row-inner");if(1!==c.length)throw u("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",c.length);return c.attr("uis-transclude-append",""),(d.document.addEventListener?i:c).attr("ng-click","$select.select("+s.itemName+",$select.skipFocusser,$event)"),function(t,s,i,c){c.parseRepeatAttr(i.repeat,l,a),c.disableChoiceExpression=i.uiDisableChoice,c.onHighlightCallback=i.onHighlight,c.minimumInputLength=parseInt(i.minimumInputLength)||0,c.dropdownPosition=i.position?i.position.toLowerCase():r.dropdownPosition,t.$watch("$select.search",function(e){e&&!c.open&&c.multiple&&c.activate(!1,!0),c.activeIndex=c.tagging.isActivated?-1:0,!i.minimumInputLength||c.search.length>=i.minimumInputLength?c.refresh(i.refresh):c.items=[]}),i.$observe("refreshDelay",function(){var e=t.$eval(i.refreshDelay);c.refreshDelay=void 0!==e?e:r.refreshDelay}),t.$watch("$select.open",function(e){e?(n.attr("role","listbox"),c.refresh(i.refresh)):s.removeAttr("role")})}}}}]),t.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(l,a,r,e,t,n,o,s,u,i,c){var d,p=this,h="";if(p.placeholder=s.placeholder,p.searchEnabled=s.searchEnabled,p.sortable=s.sortable,p.refreshDelay=s.refreshDelay,p.paste=s.paste,p.resetSearchInput=s.resetSearchInput,p.refreshing=!1,p.spinnerEnabled=s.spinnerEnabled,p.spinnerClass=s.spinnerClass,p.removeSelected=s.removeSelected,p.closeOnSelect=!0,p.skipFocusser=!1,p.search=h,p.activeIndex=0,p.items=[],p.open=!1,p.focus=!1,p.disabled=!1,p.selected=void 0,p.dropdownPosition="auto",p.focusser=void 0,p.multiple=void 0,p.disableChoiceExpression=void 0,p.tagging={isActivated:!1,fct:void 0},p.taggingTokens={isActivated:!1,tokens:void 0},p.lockChoiceExpression=void 0,p.clickTriggeredSelect=!1,p.$filter=e,p.$element=a,p.$animate=function(){try{return i.get("$animate")}catch(e){return null}}(),p.searchInput=a.querySelectorAll("input.ui-select-search"),1!==p.searchInput.length)throw o("searchInput","Expected 1 input.ui-select-search but got '{0}'.",p.searchInput.length);function g(){p.resetSearchInput&&(p.search=h,p.selected&&p.items.length&&!p.multiple&&(p.activeIndex=function(e,t,s){if(e.findIndex)return e.findIndex(t,s);for(var i,c=Object(e),n=c.length>>>0,l=0;l<n;l++)if(i=c[l],t.call(s,i,l,c))return l;return-1}(p.items,function(e){return angular.equals(this,e)},p.selected)))}p.isEmpty=function(){return E(p.selected)||""===p.selected||p.multiple&&0===p.selected.length},p.activate=function(s,e){if(p.disabled||p.open)p.open&&!p.searchEnabled&&p.close();else{e||g(),l.$broadcast("uis:activate"),p.open=!0,p.activeIndex=p.activeIndex>=p.items.length?0:p.activeIndex,-1===p.activeIndex&&!1!==p.taggingLabel&&(p.activeIndex=0);var i=a.querySelectorAll(".ui-select-choices-content"),c=a.querySelectorAll(".ui-select-search");if(p.$animate&&p.$animate.on&&p.$animate.enabled(i[0])){var n=function(e,t){"start"===t&&0===p.items.length?(p.$animate.off("removeClass",c[0],n),r(function(){p.focusSearchInput(s)})):"close"===t&&(p.$animate.off("enter",i[0],n),r(function(){p.focusSearchInput(s)}))};0<p.items.length?p.$animate.on("enter",i[0],n):p.$animate.on("removeClass",c[0],n)}else r(function(){p.focusSearchInput(s),!p.tagging.isActivated&&1<p.items.length&&w()})}},p.focusSearchInput=function(e){p.search=e||p.search,p.searchInput[0].focus()},p.findGroupByName=function(t){return p.groups&&p.groups.filter(function(e){return e.name===t})[0]},p.parseRepeatAttr=function(e,s,c){p.setItemsFn=s?function(e){var i=l.$eval(s);if(p.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(i)?i(e):e[i],s=p.findGroupByName(t);s?s.items.push(e):p.groups.push({name:t,items:[e]})}),c){var t=l.$eval(c);angular.isFunction(t)?p.groups=t(p.groups):angular.isArray(t)&&(p.groups=function(e,t){var s,i,c=[];for(s=0;s<t.length;s++)for(i=0;i<e.length;i++)e[i].name==[t[s]]&&c.push(e[i]);return c}(p.groups,t))}p.items=[],p.groups.forEach(function(e){p.items=p.items.concat(e.items)})}:function(e){p.items=e||[]},p.parserResult=n.parse(e),p.isGrouped=!!s,p.itemProperty=p.parserResult.itemName;var t=p.parserResult.source,i=function(){var s=t(l);l.$uisSource=Object.keys(s).map(function(e){var t={};return t[p.parserResult.keyName]=e,t.value=s[e],t})};p.parserResult.keyName&&(i(),p.parserResult.source=u("$uisSource"+p.parserResult.filters),l.$watch(t,function(e,t){e!==t&&i()},!0)),p.refreshItems=function(e){e=e||p.parserResult.source(l);var s=p.selected;if(p.isEmpty()||angular.isArray(s)&&!s.length||!p.multiple||!p.removeSelected)p.setItemsFn(e);else if(null!=e){var t=e.filter(function(t){return angular.isArray(s)?s.every(function(e){return!angular.equals(t,e)}):!angular.equals(t,s)});p.setItemsFn(t)}"auto"!==p.dropdownPosition&&"up"!==p.dropdownPosition||l.calculateDropdownPos(),l.$broadcast("uis:refresh")},l.$watchCollection(p.parserResult.source,function(e){if(null==e)p.items=[];else{if(!angular.isArray(e))throw o("items","Expected an array but got '{0}'.",e);p.refreshItems(e),angular.isDefined(p.ngModel.$modelValue)&&(p.ngModel.$modelValue=null)}})},p.refresh=function(t){void 0!==t&&(d&&r.cancel(d),d=r(function(){if(l.$select.search.length>=l.$select.minimumInputLength){var e=l.$eval(t);e&&angular.isFunction(e.then)&&!p.refreshing&&(p.refreshing=!0,e.finally(function(){p.refreshing=!1}))}},p.refreshDelay))},p.isActive=function(e){if(!p.open)return!1;var t=p.items.indexOf(e[p.itemProperty]),s=t==p.activeIndex;return!(!s||t<0)&&(s&&!angular.isUndefined(p.onHighlightCallback)&&e.$eval(p.onHighlightCallback),s)};var f=function(t){return p.selected&&angular.isArray(p.selected)&&0<p.selected.filter(function(e){return angular.equals(e,t)}).length},v=[];function m(e){return-1<v.indexOf(e)}p.isDisabled=function(e){if(p.open){var t,s,i,c=e[p.itemProperty],n=!1;if(0<=p.items.indexOf(c)&&(angular.isDefined(p.disableChoiceExpression)||p.multiple)){if(c.isTag)return!1;p.multiple&&(n=f(c)),!n&&angular.isDefined(p.disableChoiceExpression)&&(n=!!e.$eval(p.disableChoiceExpression)),t=c,s=n,i=v.indexOf(t),s&&-1===i&&v.push(t),!s&&-1<i&&v.splice(i,1)}return n}},p.select=function(e,t,s){if(E(e)||!m(e)){if(!p.items&&!p.search&&!p.tagging.isActivated)return;if(!e||!m(e)){if(p.clickTriggeredSelect=!1,s&&("click"===s.type||"touchend"===s.type)&&e&&(p.clickTriggeredSelect=!0),p.tagging.isActivated&&!1===p.clickTriggeredSelect){if(!1===p.taggingLabel)if(p.activeIndex<0){if(void 0===e&&(e=void 0!==p.tagging.fct?p.tagging.fct(p.search):p.search),!e||angular.equals(p.items[0],e))return}else e=p.items[p.activeIndex];else if(0===p.activeIndex){if(void 0===e)return;if(void 0!==p.tagging.fct&&"string"==typeof e){if(!(e=p.tagging.fct(e)))return}else"string"==typeof e&&(e=e.replace(p.taggingLabel,"").trim())}if(f(e))return void p.close(t)}g(),l.$broadcast("uis:select",e),p.closeOnSelect&&p.close(t)}}},p.close=function(e){p.open&&(p.ngModel&&p.ngModel.$setTouched&&p.ngModel.$setTouched(),p.open=!1,g(),l.$broadcast("uis:close",e))},p.setFocus=function(){p.focus||p.focusInput[0].focus()},p.clear=function(e){p.select(null),e.stopPropagation(),r(function(){p.focusser[0].focus()},0,!1)},p.toggle=function(e){p.open?(p.close(),e.preventDefault(),e.stopPropagation()):p.activate()},p.isLocked=function(){return!1},l.$watch(function(){return angular.isDefined(p.lockChoiceExpression)&&""!==p.lockChoiceExpression},function(e){if(!e)return;var n=[];p.isLocked=function(e,t){var s,i=!1,c=p.selected[t];return c&&(e?(i=!!e.$eval(p.lockChoiceExpression),function(e,t){var s=n.indexOf(e);t&&-1===s&&n.push(e);!t&&-1<s&&n.splice(s,1)}(c,i)):(s=c,i=-1<n.indexOf(s))),i}});var $=null,b=!1;function w(){var e=a.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw o("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(p.activeIndex<0)){var s=t[p.activeIndex],i=s.offsetTop+s.clientHeight-e[0].scrollTop,c=e[0].offsetHeight;c<i?e[0].scrollTop+=i-c:i<s.clientHeight&&(p.isGrouped&&0===p.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=s.clientHeight-i)}}p.sizeSearchInput=function(){var s=p.searchInput[0],e=p.$element[0],t=function(){return e.clientWidth*!!s.offsetParent},i=function(e){if(0===e)return!1;var t=e-s.offsetLeft-10;return t<50&&(t=e),p.searchInput.css("width",t+"px"),!0};p.searchInput.css("width","10px"),r(function(){null!==$||i(t())||($=l.$watch(function(){b||(b=!0,l.$$postDigest(function(){b=!1,i(t())&&($(),$=null)}))},angular.noop))})},p.searchInput.on("keydown",function(s){var i=s.which;~[x.ENTER,x.ESC].indexOf(i)&&(s.preventDefault(),s.stopPropagation()),l.$apply(function(){var e=!1;if((0<p.items.length||p.tagging.isActivated)&&(function(e){var t=!0;switch(e){case x.DOWN:if(!p.open&&p.multiple)p.activate(!1,!0);else if(p.activeIndex<p.items.length-1)for(var s=++p.activeIndex;m(p.items[s])&&s<p.items.length;)p.activeIndex=++s;break;case x.UP:var i=0===p.search.length&&p.tagging.isActivated?-1:0;if(!p.open&&p.multiple)p.activate(!1,!0);else if(p.activeIndex>i)for(var c=--p.activeIndex;m(p.items[c])&&i<c;)p.activeIndex=--c;break;case x.TAB:p.multiple&&!p.open||p.select(p.items[p.activeIndex],!0);break;case x.ENTER:p.open&&(p.tagging.isActivated||0<=p.activeIndex)?p.select(p.items[p.activeIndex],p.skipFocusser):p.activate(!1,!0);break;case x.ESC:p.close();break;default:t=!1}return t}(i)||p.searchEnabled||(s.preventDefault(),s.stopPropagation()),p.taggingTokens.isActivated)){for(var t=0;t<p.taggingTokens.tokens.length;t++)p.taggingTokens.tokens[t]===x.MAP[s.keyCode]&&0<p.search.length&&(e=!0);e&&r(function(){p.searchInput.triggerHandler("tagged");var e=p.search.replace(x.MAP[s.keyCode],"").trim();p.tagging.fct&&(e=p.tagging.fct(e)),e&&p.select(e,!0)})}}),x.isVerticalMovement(i)&&0<p.items.length&&w(),i!==x.ENTER&&i!==x.ESC||(s.preventDefault(),s.stopPropagation())}),p.searchInput.on("paste",function(e){var t;if(t=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(e.originalEvent||e).clipboardData.getData("text/plain"),(t=p.search+t)&&0<t.length)if(p.taggingTokens.isActivated){for(var s=[],i=0;i<p.taggingTokens.tokens.length;i++){var c=x.toSeparator(p.taggingTokens.tokens[i])||p.taggingTokens.tokens[i];if(-1<t.indexOf(c)){s=t.split(c);break}}0===s.length&&(s=[t]);var n=p.search;angular.forEach(s,function(e){var t=p.tagging.fct?p.tagging.fct(e):e;t&&p.select(t,!0)}),p.search=n||h,e.preventDefault(),e.stopPropagation()}else p.paste&&(p.paste(t),p.search=h,e.preventDefault(),e.stopPropagation())}),p.searchInput.on("tagged",function(){r(function(){g()})});var y=t(function(){p.sizeSearchInput()},50);angular.element(c).bind("resize",y),l.$on("$destroy",function(){p.searchInput.off("keyup keydown tagged blur paste"),angular.element(c).off("resize",y)}),l.$watch("$select.activeIndex",function(e){e&&a.find("input").attr("aria-activedescendant","ui-select-choices-row-"+p.generatedId+"-"+e)}),l.$watch("$select.open",function(e){e||a.find("input").removeAttr("aria-activedescendant")})}]),t.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(m,$,b,w,e,y,x){return{restrict:"EA",templateUrl:function(e,t){return(t.theme||$.theme)+(angular.isDefined(t.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(e,t){var s=/{(.*)}\s*{(.*)}/.exec(t.ngClass);if(s){var i="{"+s[1]+", "+s[2]+"}";t.ngClass=i,e.attr("ng-class",i)}return angular.isDefined(t.multiple)?e.append("<ui-select-multiple/>").removeAttr("multiple"):e.append("<ui-select-single/>"),t.inputId&&(e.querySelectorAll("input.ui-select-search")[0].id=t.inputId),function(i,n,t,e,s){var l=e[0],c=e[1];function a(e){if(l.open){if(!(window.jQuery?window.jQuery.contains(n[0],e.target):n[0].contains(e.target))&&!l.clickTriggeredSelect){var t;if(l.skipFocusser)t=!0;else{var s=angular.element(e.target).controller("uiSelect");(t=s&&s!==l)||(t=~["input","button","textarea","select"].indexOf(e.target.tagName.toLowerCase()))}l.close(t),i.$digest()}l.clickTriggeredSelect=!1}}l.generatedId=$.generateId(),l.baseTitle=t.title||"Select box",l.focusserTitle=l.baseTitle+" focus",l.focusserId="focusser-"+l.generatedId,l.closeOnSelect=angular.isDefined(t.closeOnSelect)?y(t.closeOnSelect)():$.closeOnSelect,i.$watch("skipFocusser",function(){var e=i.$eval(t.skipFocusser);l.skipFocusser=void 0!==e?e:$.skipFocusser}),l.onSelectCallback=y(t.onSelect),l.onRemoveCallback=y(t.onRemove),l.ngModel=c,l.choiceGrouped=function(e){return l.isGrouped&&e&&e.name},t.tabindex&&t.$observe("tabindex",function(e){l.focusInput.attr("tabindex",e),n.removeAttr("tabindex")}),i.$watch(function(){return i.$eval(t.searchEnabled)},function(e){l.searchEnabled=void 0!==e?e:$.searchEnabled}),i.$watch("sortable",function(){var e=i.$eval(t.sortable);l.sortable=void 0!==e?e:$.sortable}),t.$observe("backspaceReset",function(){var e=i.$eval(t.backspaceReset);l.backspaceReset=void 0===e||e}),t.$observe("limit",function(){l.limit=angular.isDefined(t.limit)?parseInt(t.limit,10):void 0}),i.$watch("removeSelected",function(){var e=i.$eval(t.removeSelected);l.removeSelected=void 0!==e?e:$.removeSelected}),t.$observe("disabled",function(){l.disabled=void 0!==t.disabled&&t.disabled}),t.$observe("resetSearchInput",function(){var e=i.$eval(t.resetSearchInput);l.resetSearchInput=void 0===e||e}),t.$observe("paste",function(){l.paste=i.$eval(t.paste)}),t.$observe("tagging",function(){if(void 0!==t.tagging){var e=i.$eval(t.tagging);l.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else l.tagging={isActivated:!1,fct:void 0}}),t.$observe("taggingLabel",function(){void 0!==t.tagging&&("false"===t.taggingLabel?l.taggingLabel=!1:l.taggingLabel=void 0!==t.taggingLabel?t.taggingLabel:"(new)")}),t.$observe("taggingTokens",function(){if(void 0!==t.tagging){var e=void 0!==t.taggingTokens?t.taggingTokens.split("|"):[",","ENTER"];l.taggingTokens={isActivated:!0,tokens:e}}}),t.$observe("spinnerEnabled",function(){var e=i.$eval(t.spinnerEnabled);l.spinnerEnabled=void 0!==e?e:$.spinnerEnabled}),t.$observe("spinnerClass",function(){var e=t.spinnerClass;l.spinnerClass=void 0!==e?t.spinnerClass:$.spinnerClass}),angular.isDefined(t.autofocus)&&x(function(){l.setFocus()}),angular.isDefined(t.focusOn)&&i.$on(t.focusOn,function(){x(function(){l.setFocus()})}),m.on("click",a),i.$on("$destroy",function(){m.off("click",a)}),s(i,function(e){var t=angular.element("<div>").append(e),s=t.querySelectorAll(".ui-select-match");if(s.removeAttr("ui-select-match"),s.removeAttr("data-ui-select-match"),1!==s.length)throw b("transcluded","Expected 1 .ui-select-match but got '{0}'.",s.length);n.querySelectorAll(".ui-select-match").replaceWith(s);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw b("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);n.querySelectorAll(".ui-select-choices").replaceWith(i);var c=t.querySelectorAll(".ui-select-no-choice");c.removeAttr("ui-select-no-choice"),c.removeAttr("data-ui-select-no-choice"),1==c.length&&n.querySelectorAll(".ui-select-no-choice").replaceWith(c)});var r=i.$eval(t.appendToBody);(void 0!==r?r:$.appendToBody)&&(i.$watch("$select.open",function(e){var t;e?(t=w(n),(o=angular.element('<div class="ui-select-placeholder"></div>'))[0].style.width=t.width+"px",o[0].style.height=t.height+"px",n.after(o),u=n[0].style.width,m.find("body").append(n),n[0].style.position="absolute",n[0].style.left=t.left+"px",n[0].style.top=t.top+"px",n[0].style.width=t.width+"px"):d()}),i.$on("$destroy",function(){d()}));var o=null,u="";function d(){null!==o&&(o.replaceWith(n),o=null,n[0].style.position="",n[0].style.left="",n[0].style.top="",n[0].style.width=u,l.setFocus())}var p=null,h="direction-up";i.$watch("$select.open",function(){"auto"!==l.dropdownPosition&&"up"!==l.dropdownPosition||i.calculateDropdownPos()});var g=function(e,t){e=e||w(n),t=t||w(p),p[0].style.position="absolute",p[0].style.top=-1*t.height+"px",n.addClass(h)},f=function(){x(function(){if("up"===l.dropdownPosition)g();else{n.removeClass(h);var e=w(n),t=w(p),s=m[0].documentElement.scrollTop||m[0].body.scrollTop;e.top+e.height+t.height>s+m[0].documentElement.clientHeight?g(e,t):(i=e,c=t,n.removeClass(h),i=i||w(n),c=c||w(p),p[0].style.position="",p[0].style.top="")}var i,c;p[0].style.opacity=1})},v=!1;i.calculateDropdownPos=function(){if(l.open){if(0===(p=angular.element(n).querySelectorAll(".ui-select-dropdown")).length)return;if(""!==l.search||v||(p[0].style.opacity=0,v=!0),!w(p).height&&l.$animate&&l.$animate.on&&l.$animate.enabled(p)){var s=!0;l.$animate.on("enter",p,function(e,t){"close"===t&&s&&(f(),s=!1)})}else f()}else{if(null===p||0===p.length)return;p[0].style.opacity=0,p[0].style.position="",p[0].style.top="",n.removeClass(h)}}}}}}]),t.directive("uiSelectMatch",["uiSelectConfig",function(n){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){e.addClass("ui-select-match");var t=e.parent();return(s(t,"theme")||n.theme)+(angular.isDefined(s(t,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(e,t,s,i){function c(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=s.uiLockChoice,s.$observe("placeholder",function(e){i.placeholder=void 0!==e?e:n.placeholder}),s.$observe("allowClear",c),c(s.allowClear),i.multiple&&i.sizeSearchInput()}};function s(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}}]),t.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(c,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(i,c){var e,n=this,l=i.$select;angular.isUndefined(l.selected)&&(l.selected=[]),i.$evalAsync(function(){e=i.ngModel}),n.activeMatchIndex=-1,n.updateModel=function(){e.$setViewValue(Date.now()),n.refreshComponent()},n.refreshComponent=function(){l.refreshItems&&l.refreshItems(),l.sizeSearchInput&&l.sizeSearchInput()},n.removeChoice=function(e){if(l.isLocked(null,e))return!1;var t=l.selected[e],s={};return s[l.parserResult.itemName]=t,l.selected.splice(e,1),n.activeMatchIndex=-1,l.sizeSearchInput(),c(function(){l.onRemoveCallback(i,{$item:t,$model:l.parserResult.modelMapper(i,s)})}),n.updateModel(),!0},n.getPlaceholder=function(){if(!l.selected||!l.selected.length)return l.placeholder}}],controllerAs:"$selectMultiple",link:function(r,e,t,s){var o=s[0],i=r.ngModel=s[1],u=r.$selectMultiple;function d(e){return void 0!==e&&void 0!==o.search&&0<e.filter(function(e){return void 0!==o.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===o.search.toUpperCase()}).length}function p(e,t){var s=-1;if(angular.isArray(e))for(var i=angular.copy(e),c=0;c<i.length;c++)if(void 0===o.tagging.fct)i[c]+" "+o.taggingLabel===t&&(s=c);else{var n=i[c];angular.isObject(n)&&(n.isTag=!0),angular.equals(n,t)&&(s=c)}return s}o.multiple=!0,o.focusInput=o.searchInput,i.$isEmpty=function(e){return!e||0===e.length},i.$parsers.unshift(function(){for(var e,t={},s=[],i=o.selected.length-1;0<=i;i--)(t={})[o.parserResult.itemName]=o.selected[i],e=o.parserResult.modelMapper(r,t),s.unshift(e);return s}),i.$formatters.unshift(function(e){var n,t=o.parserResult&&o.parserResult.source(r,{$select:{search:""}}),l={};if(!t)return e;var a=[],s=function(e,t){if(e&&e.length){for(var s=e.length-1;0<=s;s--){if(l[o.parserResult.itemName]=e[s],n=o.parserResult.modelMapper(r,l),o.parserResult.trackByExp){var i=/(\w*)\./.exec(o.parserResult.trackByExp),c=/\.([^\s]+)/.exec(o.parserResult.trackByExp);if(i&&0<i.length&&i[1]==o.parserResult.itemName&&c&&0<c.length&&n[c[1]]==t[c[1]])return a.unshift(e[s]),!0}if(angular.equals(n,t))return a.unshift(e[s]),!0}return!1}};if(!e)return a;for(var i=e.length-1;0<=i;i--)s(o.selected,e[i])||s(t,e[i])||a.unshift(e[i]);return a}),r.$watchCollection(function(){return i.$modelValue},function(e,t){t!=e&&(angular.isDefined(i.$modelValue)&&(i.$modelValue=null),u.refreshComponent())}),i.$render=function(){if(!angular.isArray(i.$viewValue)){if(!E(i.$viewValue))throw c("multiarr","Expected model value to be array but got '{0}'",i.$viewValue);i.$viewValue=[]}o.selected=i.$viewValue,u.refreshComponent(),r.$evalAsync()},r.$on("uis:select",function(e,t){if(!(o.selected.length>=o.limit)){o.selected.push(t);var s={};s[o.parserResult.itemName]=t,n(function(){o.onSelectCallback(r,{$item:t,$model:o.parserResult.modelMapper(r,s)})}),u.updateModel()}}),r.$on("uis:activate",function(){u.activeMatchIndex=-1}),r.$watch("$select.disabled",function(e,t){t&&!e&&o.sizeSearchInput()}),o.searchInput.on("keydown",function(t){var s=t.which;r.$apply(function(){var e=!1;x.isHorizontalMovement(s)&&(e=function(e){var t=(r=o.searchInput[0],angular.isNumber(r.selectionStart)?r.selectionStart:r.value.length),s=o.selected.length,i=s-1,c=u.activeMatchIndex,n=u.activeMatchIndex+1,l=u.activeMatchIndex-1,a=c;var r;if(0<t||o.search.length&&e==x.RIGHT)return!1;o.close(),a=function(){switch(e){case x.LEFT:return~u.activeMatchIndex?l:i;case x.RIGHT:return~u.activeMatchIndex&&c!==i?n:(o.activate(),!1);case x.BACKSPACE:return~u.activeMatchIndex?u.removeChoice(c)?l:c:i;case x.DELETE:return!!~u.activeMatchIndex&&(u.removeChoice(u.activeMatchIndex),c)}}(),o.selected.length&&!1!==a?u.activeMatchIndex=Math.min(i,Math.max(0,a)):u.activeMatchIndex=-1;return!0}(s)),e&&s!=x.TAB&&(t.preventDefault(),t.stopPropagation())})}),o.searchInput.on("keyup",function(e){if(x.isVerticalMovement(e.which)||r.$evalAsync(function(){o.activeIndex=!1===o.taggingLabel?-1:0}),o.tagging.isActivated&&0<o.search.length){if(e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||x.isVerticalMovement(e.which))return;if(o.activeIndex=!1===o.taggingLabel?-1:0,!1===o.taggingLabel)return;var t,s,i,c=angular.copy(o.items),n=angular.copy(o.items),l=!1,a=-1;if(void 0!==o.tagging.fct){if(0<(s=o.$filter("filter")(c,{isTag:!0})).length&&(i=s[0]),0<c.length&&i&&(l=!0,c=c.slice(1,c.length),n=n.slice(1,n.length)),t=o.tagging.fct(o.search),n.some(function(e){return angular.equals(e,t)})||o.selected.some(function(e){return angular.equals(e,t)}))return void r.$evalAsync(function(){o.activeIndex=0,o.items=c});t&&(t.isTag=!0)}else{if(0<(s=o.$filter("filter")(c,function(e){return e.match(o.taggingLabel)})).length&&(i=s[0]),void 0!==c[0]&&0<c.length&&i&&(l=!0,c=c.slice(1,c.length),n=n.slice(1,n.length)),t=o.search+" "+o.taggingLabel,-1<p(o.selected,o.search))return;if(d(n.concat(o.selected)))return void(l&&(c=n,r.$evalAsync(function(){o.activeIndex=0,o.items=c})));if(d(n))return void(l&&(o.items=n.slice(1,n.length)))}l&&(a=p(o.selected,t)),-1<a?c=c.slice(a+1,c.length-1):(c=[],t&&c.push(t),c=c.concat(n)),r.$evalAsync(function(){if(o.activeIndex=0,o.items=c,o.isGrouped){var e=t?c.slice(1):c;o.setItemsFn(e),t&&(o.items.unshift(t),o.groups.unshift({name:"",items:[t],tagging:!0}))}})}}),o.searchInput.on("blur",function(){n(function(){u.activeMatchIndex=-1})})}}}]),t.directive("uiSelectNoChoice",["uiSelectConfig",function(t){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){return e.addClass("ui-select-no-choice"),(e.parent().attr("theme")||t.theme)+"/no-choice.tpl.html"}}}]),t.directive("uiSelectSingle",["$timeout","$compile",function(a,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(n,e,t,s){var l=s[0],i=s[1];i.$parsers.unshift(function(e){if(E(e))return e;var t={};return t[l.parserResult.itemName]=e,l.parserResult.modelMapper(n,t)}),i.$formatters.unshift(function(t){if(E(t))return t;var e=l.parserResult&&l.parserResult.source(n,{$select:{search:""}}),s={};if(e){var i=function(e){return s[l.parserResult.itemName]=e,l.parserResult.modelMapper(n,s)===t};if(l.selected&&i(l.selected))return l.selected;for(var c=e.length-1;0<=c;c--)if(i(e[c]))return e[c]}return t}),n.$watch("$select.selected",function(e){i.$viewValue!==e&&i.$setViewValue(e)}),i.$render=function(){l.selected=i.$viewValue},n.$on("uis:select",function(e,t){l.selected=t;var s={};s[l.parserResult.itemName]=t,a(function(){l.onSelectCallback(n,{$item:t,$model:E(t)?t:l.parserResult.modelMapper(n,s)})})}),n.$on("uis:close",function(e,t){a(function(){l.focusser.prop("disabled",!1),t||l.focusser[0].focus()},0,!1)}),n.$on("uis:activate",function(){c.prop("disabled",!0)});var c=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");r(c)(n),l.focusser=c,l.focusInput=c,e.parent().append(c),c.bind("focus",function(){n.$evalAsync(function(){l.focus=!0})}),c.bind("blur",function(){n.$evalAsync(function(){l.focus=!1})}),c.bind("keydown",function(e){if(e.which===x.BACKSPACE&&!1!==l.backspaceReset)return e.preventDefault(),e.stopPropagation(),l.select(void 0),void n.$apply();e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||(e.which!=x.DOWN&&e.which!=x.UP&&e.which!=x.ENTER&&e.which!=x.SPACE||(e.preventDefault(),e.stopPropagation(),l.activate()),n.$digest())}),c.bind("keyup input",function(e){e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||e.which==x.ENTER||e.which===x.BACKSPACE||(l.activate(c.val()),c.val(""),n.$digest())})}}}]),t.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(v,e,m){return{require:["^^uiSelect","^ngModel"],link:function(c,n,l,e){if(null===c[l.uiSelectSort])throw m("sort","Expected a list to sort");var s=e[0],a=e[1],t=angular.extend({axis:"horizontal"},c.$eval(l.uiSelectSortOptions)).axis,i="dragging",r="dropping",o="dropping-before",u="dropping-after";c.$watch(function(){return s.sortable},function(e){e?n.attr("draggable",!0):n.removeAttr("draggable")}),n.on("dragstart",function(e){n.addClass(i),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",c.$index.toString())}),n.on("dragend",function(){p(i)});var d,p=function(t){angular.forEach(s.$element.querySelectorAll("."+t),function(e){angular.element(e).removeClass(t)})},h=function(e){e.preventDefault(),("vertical"===t?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===t?"offsetHeight":"offsetWidth"]/2?(p(u),n.addClass(o)):(p(o),n.addClass(u))},g=function(e){e.preventDefault();var t=parseInt((e.dataTransfer||e.originalEvent.dataTransfer).getData("text"),10);v.cancel(d),d=v(function(){f(t)},20)},f=function(e){var t=c.$eval(l.uiSelectSort),s=t[e],i=null;i=n.hasClass(o)?e<c.$index?c.$index-1:c.$index:e<c.$index?c.$index:c.$index+1,function(e,t){this.splice(t,0,this.splice(e,1)[0])}.apply(t,[e,i]),a.$setViewValue(Date.now()),c.$apply(function(){c.$emit("uiSelectSort:change",{array:t,item:s,from:e,to:i})}),p(r),p(o),p(u),n.off("drop",g)};n.on("dragenter",function(){n.hasClass(i)||(n.addClass(r),n.on("dragover",h),n.on("drop",g))}),n.on("dragleave",function(e){e.target==n&&(p(r),p(o),p(u),n.off("dragover",h),n.off("drop",g))})}}}]),t.directive("uisOpenClose",["$parse","$timeout",function(c,n){return{restrict:"A",require:"uiSelect",link:function(s,e,t,i){i.onOpenCloseCallback=c(t.uisOpenClose),s.$watch("$select.open",function(e,t){e!==t&&n(function(){i.onOpenCloseCallback(s,{isOpen:e})})})}}}]),t.service("uisRepeatParser",["uiSelectMinErr","$parse",function(n,l){this.parse=function(e){var t;if(!(t=e.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw n("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",e);var s=t[5],i="";if(t[3]){s=t[5].replace(/(^\()|(\)$)/g,"");var c=t[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);c&&c[1].trim()&&(i=c[1],s=s.replace(i,""))}return{itemName:t[4]||t[2],keyName:t[3],source:l(s),filters:i,trackByExp:t[6],modelMapper:l(t[1]||t[4]||t[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},this.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""></span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;</span></span></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>')}]);
!function(){"use strict";var x={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,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(e){switch(e.which){case x.COMMAND:case x.SHIFT:case x.CTRL:case x.ALT:return!0}return!!(e.metaKey||e.ctrlKey||e.altKey)},isFunctionKey:function(e){return 112<=(e=e.which?e.which:e)&&e<=123},isVerticalMovement:function(e){return~[x.UP,x.DOWN].indexOf(e)},isHorizontalMovement:function(e){return~[x.LEFT,x.RIGHT,x.BACKSPACE,x.DELETE].indexOf(e)},toSeparator:function(e){var t={ENTER:"\n",TAB:"\t",SPACE:" "}[e];return t||(x[e]?void 0:e)}};function E(e){return angular.isUndefined(e)||null===e}void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(s.bind(t)(e))return t;t=t.parentElement}return!1});var e=0,t=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return e++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",function(){var t=angular.$$minErr("ui.select");return function(){var e=t.apply(this,arguments).message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(e)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,s,i,c){c(e,function(e){t.append(e)})}}}).filter("highlight",function(){return function(e,t){return t&&e?(""+e).replace(new RegExp((""+t).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),'<span class="ui-select-highlight">$&</span>'):e}}).factory("uisOffset",["$document","$window",function(s,i){return function(e){var t=e[0].getBoundingClientRect();return{width:t.width||e.prop("offsetWidth"),height:t.height||e.prop("offsetHeight"),top:t.top+(i.pageYOffset||s[0].documentElement.scrollTop),left:t.left+(i.pageXOffset||s[0].documentElement.scrollLeft)}}}]);t.factory("$$uisDebounce",["$timeout",function(n){return function(s,i){var c;return function(){var e=this,t=Array.prototype.slice.call(arguments);c&&n.cancel(c),c=n(function(){s.apply(e,t)},i)}}}]),t.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(r,o,u,e,d){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){return e.addClass("ui-select-choices"),(e.parent().attr("theme")||r.theme)+"/choices.tpl.html"},compile:function(n,e){if(!e.repeat)throw u("repeat","Expected 'repeat' expression.");var l=e.groupBy,a=e.groupFilter;if(l){var t=n.querySelectorAll(".ui-select-choices-group");if(1!==t.length)throw u("rows","Expected 1 .ui-select-choices-group but got '{0}'.",t.length);t.attr("ng-repeat",o.getGroupNgRepeatExpression())}var s=o.parse(e.repeat),i=n.querySelectorAll(".ui-select-choices-row");if(1!==i.length)throw u("rows","Expected 1 .ui-select-choices-row but got '{0}'.",i.length);i.attr("ng-repeat",s.repeatExpression(l)).attr("ng-if","$select.open");var c=n.querySelectorAll(".ui-select-choices-row-inner");if(1!==c.length)throw u("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",c.length);return c.attr("uis-transclude-append",""),(d.document.addEventListener?i:c).attr("ng-click","$select.select("+s.itemName+",$select.skipFocusser,$event)"),function(t,s,i,c){c.parseRepeatAttr(i.repeat,l,a),c.disableChoiceExpression=i.uiDisableChoice,c.onHighlightCallback=i.onHighlight,c.minimumInputLength=parseInt(i.minimumInputLength)||0,c.dropdownPosition=i.position?i.position.toLowerCase():r.dropdownPosition,t.$watch("$select.search",function(e){e&&!c.open&&c.multiple&&c.activate(!1,!0),c.activeIndex=c.tagging.isActivated?-1:0,!i.minimumInputLength||c.search.length>=i.minimumInputLength?c.refresh(i.refresh):c.items=[]}),i.$observe("refreshDelay",function(){var e=t.$eval(i.refreshDelay);c.refreshDelay=void 0!==e?e:r.refreshDelay}),t.$watch("$select.open",function(e){e?(n.attr("role","listbox"),c.refresh(i.refresh)):s.removeAttr("role")})}}}}]),t.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(l,a,r,e,t,n,o,s,u,i,c){var d,p=this,h="";if(p.placeholder=s.placeholder,p.searchEnabled=s.searchEnabled,p.sortable=s.sortable,p.refreshDelay=s.refreshDelay,p.paste=s.paste,p.resetSearchInput=s.resetSearchInput,p.refreshing=!1,p.spinnerEnabled=s.spinnerEnabled,p.spinnerClass=s.spinnerClass,p.removeSelected=s.removeSelected,p.closeOnSelect=!0,p.skipFocusser=!1,p.search=h,p.activeIndex=0,p.items=[],p.open=!1,p.focus=!1,p.disabled=!1,p.selected=void 0,p.dropdownPosition="auto",p.focusser=void 0,p.multiple=void 0,p.disableChoiceExpression=void 0,p.tagging={isActivated:!1,fct:void 0},p.taggingTokens={isActivated:!1,tokens:void 0},p.lockChoiceExpression=void 0,p.clickTriggeredSelect=!1,p.$filter=e,p.$element=a,p.$animate=function(){try{return i.get("$animate")}catch(e){return null}}(),p.searchInput=a.querySelectorAll("input.ui-select-search"),1!==p.searchInput.length)throw o("searchInput","Expected 1 input.ui-select-search but got '{0}'.",p.searchInput.length);function g(){p.resetSearchInput&&(p.search=h,p.selected&&p.items.length&&!p.multiple&&(p.activeIndex=function(e,t,s){if(e.findIndex)return e.findIndex(t,s);for(var i,c=Object(e),n=c.length>>>0,l=0;l<n;l++)if(i=c[l],t.call(s,i,l,c))return l;return-1}(p.items,function(e){return angular.equals(this,e)},p.selected)))}p.isEmpty=function(){return E(p.selected)||""===p.selected||p.multiple&&0===p.selected.length},p.activate=function(s,e){if(p.disabled||p.open)p.open&&!p.searchEnabled&&p.close();else{e||g(),l.$broadcast("uis:activate"),p.open=!0,p.activeIndex=p.activeIndex>=p.items.length?0:p.activeIndex,-1===p.activeIndex&&!1!==p.taggingLabel&&(p.activeIndex=0);var i=a.querySelectorAll(".ui-select-choices-content"),c=a.querySelectorAll(".ui-select-search");if(p.$animate&&p.$animate.on&&p.$animate.enabled(i[0])){var n=function(e,t){"start"===t&&0===p.items.length?(p.$animate.off("removeClass",c[0],n),r(function(){p.focusSearchInput(s)})):"close"===t&&(p.$animate.off("enter",i[0],n),r(function(){p.focusSearchInput(s)}))};0<p.items.length?p.$animate.on("enter",i[0],n):p.$animate.on("removeClass",c[0],n)}else r(function(){p.focusSearchInput(s),!p.tagging.isActivated&&1<p.items.length&&w()})}},p.focusSearchInput=function(e){p.search=e||p.search,p.searchInput[0].focus()},p.findGroupByName=function(t){return p.groups&&p.groups.filter(function(e){return e.name===t})[0]},p.parseRepeatAttr=function(e,s,c){p.setItemsFn=s?function(e){var i=l.$eval(s);if(p.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(i)?i(e):e[i],s=p.findGroupByName(t);s?s.items.push(e):p.groups.push({name:t,items:[e]})}),c){var t=l.$eval(c);angular.isFunction(t)?p.groups=t(p.groups):angular.isArray(t)&&(p.groups=function(e,t){var s,i,c=[];for(s=0;s<t.length;s++)for(i=0;i<e.length;i++)e[i].name==[t[s]]&&c.push(e[i]);return c}(p.groups,t))}p.items=[],p.groups.forEach(function(e){p.items=p.items.concat(e.items)})}:function(e){p.items=e||[]},p.parserResult=n.parse(e),p.isGrouped=!!s,p.itemProperty=p.parserResult.itemName;var t=p.parserResult.source,i=function(){var s=t(l);l.$uisSource=Object.keys(s).map(function(e){var t={};return t[p.parserResult.keyName]=e,t.value=s[e],t})};p.parserResult.keyName&&(i(),p.parserResult.source=u("$uisSource"+p.parserResult.filters),l.$watch(t,function(e,t){e!==t&&i()},!0)),p.refreshItems=function(e){e=e||p.parserResult.source(l);var s=p.selected;if(p.isEmpty()||angular.isArray(s)&&!s.length||!p.multiple||!p.removeSelected)p.setItemsFn(e);else if(null!=e){var t=e.filter(function(t){return angular.isArray(s)?s.every(function(e){return!angular.equals(t,e)}):!angular.equals(t,s)});p.setItemsFn(t)}"auto"!==p.dropdownPosition&&"up"!==p.dropdownPosition||l.calculateDropdownPos(),l.$broadcast("uis:refresh")},l.$watchCollection(p.parserResult.source,function(e){if(null==e)p.items=[];else{if(!angular.isArray(e))throw o("items","Expected an array but got '{0}'.",e);p.refreshItems(e),angular.isDefined(p.ngModel.$modelValue)&&(p.ngModel.$modelValue=null)}})},p.refresh=function(t){void 0!==t&&(d&&r.cancel(d),d=r(function(){if(l.$select.search.length>=l.$select.minimumInputLength){var e=l.$eval(t);e&&angular.isFunction(e.then)&&!p.refreshing&&(p.refreshing=!0,e.finally(function(){p.refreshing=!1}))}},p.refreshDelay))},p.isActive=function(e){if(!p.open)return!1;var t=p.items.indexOf(e[p.itemProperty]),s=t==p.activeIndex;return!(!s||t<0)&&(s&&!angular.isUndefined(p.onHighlightCallback)&&e.$eval(p.onHighlightCallback),s)};var f=function(t){return p.selected&&angular.isArray(p.selected)&&0<p.selected.filter(function(e){return angular.equals(e,t)}).length},v=[];function m(e){return-1<v.indexOf(e)}p.isDisabled=function(e){if(p.open){var t,s,i,c=e[p.itemProperty],n=!1;if(0<=p.items.indexOf(c)&&(angular.isDefined(p.disableChoiceExpression)||p.multiple)){if(c.isTag)return!1;p.multiple&&(n=f(c)),!n&&angular.isDefined(p.disableChoiceExpression)&&(n=!!e.$eval(p.disableChoiceExpression)),t=c,s=n,i=v.indexOf(t),s&&-1===i&&v.push(t),!s&&-1<i&&v.splice(i,1)}return n}},p.select=function(e,t,s){if(E(e)||!m(e)){if(!p.items&&!p.search&&!p.tagging.isActivated)return;if(!e||!m(e)){if(p.clickTriggeredSelect=!1,s&&("click"===s.type||"touchend"===s.type)&&e&&(p.clickTriggeredSelect=!0),p.tagging.isActivated&&!1===p.clickTriggeredSelect){if(!1===p.taggingLabel)if(p.activeIndex<0){if(void 0===e&&(e=void 0!==p.tagging.fct?p.tagging.fct(p.search):p.search),!e||angular.equals(p.items[0],e))return}else e=p.items[p.activeIndex];else if(0===p.activeIndex){if(void 0===e)return;if(void 0!==p.tagging.fct&&"string"==typeof e){if(!(e=p.tagging.fct(e)))return}else"string"==typeof e&&(e=e.replace(p.taggingLabel,"").trim())}if(f(e))return void p.close(t)}g(),l.$broadcast("uis:select",e),p.closeOnSelect&&p.close(t)}}},p.close=function(e){p.open&&(p.ngModel&&p.ngModel.$setTouched&&p.ngModel.$setTouched(),p.open=!1,g(),l.$broadcast("uis:close",e))},p.setFocus=function(){p.focus||p.focusInput[0].focus()},p.clear=function(e){p.select(null),e.stopPropagation(),r(function(){p.focusser[0].focus()},0,!1)},p.toggle=function(e){p.open?(p.close(),e.preventDefault(),e.stopPropagation()):p.activate()},p.isLocked=function(){return!1},l.$watch(function(){return angular.isDefined(p.lockChoiceExpression)&&""!==p.lockChoiceExpression},function(e){if(!e)return;var n=[];p.isLocked=function(e,t){var s,i=!1,c=p.selected[t];return c&&(e?(i=!!e.$eval(p.lockChoiceExpression),function(e,t){var s=n.indexOf(e);t&&-1===s&&n.push(e);!t&&-1<s&&n.splice(s,1)}(c,i)):(s=c,i=-1<n.indexOf(s))),i}});var $=null,b=!1;function w(){var e=a.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw o("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(p.activeIndex<0)){var s=t[p.activeIndex],i=s.offsetTop+s.clientHeight-e[0].scrollTop,c=e[0].offsetHeight;c<i?e[0].scrollTop+=i-c:i<s.clientHeight&&(p.isGrouped&&0===p.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=s.clientHeight-i)}}p.sizeSearchInput=function(){var s=p.searchInput[0],e=p.$element[0],t=function(){return e.clientWidth*!!s.offsetParent},i=function(e){if(0===e)return!1;var t=e-s.offsetLeft-10;return t<50&&(t=e),p.searchInput.css("width",t+"px"),!0};p.searchInput.css("width","10px"),r(function(){null!==$||i(t())||($=l.$watch(function(){b||(b=!0,l.$$postDigest(function(){b=!1,i(t())&&($(),$=null)}))},angular.noop))})},p.searchInput.on("keydown",function(s){var i=s.which;~[x.ENTER,x.ESC].indexOf(i)&&(s.preventDefault(),s.stopPropagation()),l.$apply(function(){var e=!1;if((0<p.items.length||p.tagging.isActivated)&&(function(e){var t=!0;switch(e){case x.DOWN:if(!p.open&&p.multiple)p.activate(!1,!0);else if(p.activeIndex<p.items.length-1)for(var s=++p.activeIndex;m(p.items[s])&&s<p.items.length;)p.activeIndex=++s;break;case x.UP:var i=0===p.search.length&&p.tagging.isActivated?-1:0;if(!p.open&&p.multiple)p.activate(!1,!0);else if(p.activeIndex>i)for(var c=--p.activeIndex;m(p.items[c])&&i<c;)p.activeIndex=--c;break;case x.TAB:p.multiple&&!p.open||p.select(p.items[p.activeIndex],!0);break;case x.ENTER:p.open&&(p.tagging.isActivated||0<=p.activeIndex)?p.select(p.items[p.activeIndex],p.skipFocusser):p.activate(!1,!0);break;case x.ESC:p.close();break;default:t=!1}return t}(i)||p.searchEnabled||(s.preventDefault(),s.stopPropagation()),p.taggingTokens.isActivated)){for(var t=0;t<p.taggingTokens.tokens.length;t++)p.taggingTokens.tokens[t]===x.MAP[s.keyCode]&&0<p.search.length&&(e=!0);e&&r(function(){p.searchInput.triggerHandler("tagged");var e=p.search.replace(x.MAP[s.keyCode],"").trim();p.tagging.fct&&(e=p.tagging.fct(e)),e&&p.select(e,!0)})}}),x.isVerticalMovement(i)&&0<p.items.length&&w(),i!==x.ENTER&&i!==x.ESC||(s.preventDefault(),s.stopPropagation())}),p.searchInput.on("paste",function(e){var t;if(t=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(e.originalEvent||e).clipboardData.getData("text/plain"),(t=p.search+t)&&0<t.length)if(p.taggingTokens.isActivated){for(var s=[],i=0;i<p.taggingTokens.tokens.length;i++){var c=x.toSeparator(p.taggingTokens.tokens[i])||p.taggingTokens.tokens[i];if(-1<t.indexOf(c)){s=t.split(c);break}}0===s.length&&(s=[t]);var n=p.search;angular.forEach(s,function(e){var t=p.tagging.fct?p.tagging.fct(e):e;t&&p.select(t,!0)}),p.search=n||h,e.preventDefault(),e.stopPropagation()}else p.paste&&(p.paste(t),p.search=h,e.preventDefault(),e.stopPropagation())}),p.searchInput.on("tagged",function(){r(function(){g()})});var y=t(function(){p.sizeSearchInput()},50);angular.element(c).bind("resize",y),l.$on("$destroy",function(){p.searchInput.off("keyup keydown tagged blur paste"),angular.element(c).off("resize",y)}),l.$watch("$select.activeIndex",function(e){e&&a.find("input").attr("aria-activedescendant","ui-select-choices-row-"+p.generatedId+"-"+e)}),l.$watch("$select.open",function(e){e||a.find("input").removeAttr("aria-activedescendant")})}]),t.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(m,$,b,w,e,y,x){return{restrict:"EA",templateUrl:function(e,t){return(t.theme||$.theme)+(angular.isDefined(t.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(e,t){var s=/{(.*)}\s*{(.*)}/.exec(t.ngClass);if(s){var i="{"+s[1]+", "+s[2]+"}";t.ngClass=i,e.attr("ng-class",i)}return angular.isDefined(t.multiple)?e.append("<ui-select-multiple/>").removeAttr("multiple"):e.append("<ui-select-single/>"),t.inputId&&(e.querySelectorAll("input.ui-select-search")[0].id=t.inputId),function(i,n,t,e,s){var l=e[0],c=e[1];function a(e){if(l.open){if(!(window.jQuery?window.jQuery.contains(n[0],e.target):n[0].contains(e.target))&&!l.clickTriggeredSelect){var t;if(l.skipFocusser)t=!0;else{var s=angular.element(e.target).controller("uiSelect");(t=s&&s!==l)||(t=~["input","button","textarea","select"].indexOf(e.target.tagName.toLowerCase()))}l.close(t),i.$digest()}l.clickTriggeredSelect=!1}}l.generatedId=$.generateId(),l.baseTitle=t.title||"Select box",l.focusserTitle=l.baseTitle+" focus",l.focusserId="focusser-"+l.generatedId,l.closeOnSelect=angular.isDefined(t.closeOnSelect)?y(t.closeOnSelect)():$.closeOnSelect,i.$watch("skipFocusser",function(){var e=i.$eval(t.skipFocusser);l.skipFocusser=void 0!==e?e:$.skipFocusser}),l.onSelectCallback=y(t.onSelect),l.onRemoveCallback=y(t.onRemove),l.ngModel=c,l.choiceGrouped=function(e){return l.isGrouped&&e&&e.name},t.tabindex&&t.$observe("tabindex",function(e){l.focusInput.attr("tabindex",e),n.removeAttr("tabindex")}),i.$watch(function(){return i.$eval(t.searchEnabled)},function(e){l.searchEnabled=void 0!==e?e:$.searchEnabled}),i.$watch("sortable",function(){var e=i.$eval(t.sortable);l.sortable=void 0!==e?e:$.sortable}),t.$observe("backspaceReset",function(){var e=i.$eval(t.backspaceReset);l.backspaceReset=void 0===e||e}),t.$observe("limit",function(){l.limit=angular.isDefined(t.limit)?parseInt(t.limit,10):void 0}),i.$watch("removeSelected",function(){var e=i.$eval(t.removeSelected);l.removeSelected=void 0!==e?e:$.removeSelected}),t.$observe("disabled",function(){l.disabled=void 0!==t.disabled&&t.disabled}),t.$observe("resetSearchInput",function(){var e=i.$eval(t.resetSearchInput);l.resetSearchInput=void 0===e||e}),t.$observe("paste",function(){l.paste=i.$eval(t.paste)}),t.$observe("tagging",function(){if(void 0!==t.tagging){var e=i.$eval(t.tagging);l.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else l.tagging={isActivated:!1,fct:void 0}}),t.$observe("taggingLabel",function(){void 0!==t.tagging&&("false"===t.taggingLabel?l.taggingLabel=!1:l.taggingLabel=void 0!==t.taggingLabel?t.taggingLabel:"(new)")}),t.$observe("taggingTokens",function(){if(void 0!==t.tagging){var e=void 0!==t.taggingTokens?t.taggingTokens.split("|"):[",","ENTER"];l.taggingTokens={isActivated:!0,tokens:e}}}),t.$observe("spinnerEnabled",function(){var e=i.$eval(t.spinnerEnabled);l.spinnerEnabled=void 0!==e?e:$.spinnerEnabled}),t.$observe("spinnerClass",function(){var e=t.spinnerClass;l.spinnerClass=void 0!==e?t.spinnerClass:$.spinnerClass}),angular.isDefined(t.autofocus)&&x(function(){l.setFocus()}),angular.isDefined(t.focusOn)&&i.$on(t.focusOn,function(){x(function(){l.setFocus()})}),m.on("click",a),i.$on("$destroy",function(){m.off("click",a)}),s(i,function(e){var t=angular.element("<div>").append(e),s=t.querySelectorAll(".ui-select-match");if(s.removeAttr("ui-select-match"),s.removeAttr("data-ui-select-match"),1!==s.length)throw b("transcluded","Expected 1 .ui-select-match but got '{0}'.",s.length);n.querySelectorAll(".ui-select-match").replaceWith(s);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw b("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);n.querySelectorAll(".ui-select-choices").replaceWith(i);var c=t.querySelectorAll(".ui-select-no-choice");c.removeAttr("ui-select-no-choice"),c.removeAttr("data-ui-select-no-choice"),1==c.length&&n.querySelectorAll(".ui-select-no-choice").replaceWith(c)});var r=i.$eval(t.appendToBody);(void 0!==r?r:$.appendToBody)&&(i.$watch("$select.open",function(e){var t;e?(t=w(n),(o=angular.element('<div class="ui-select-placeholder"></div>'))[0].style.width=t.width+"px",o[0].style.height=t.height+"px",n.after(o),u=n[0].style.width,m.find("body").append(n),n[0].style.position="absolute",n[0].style.left=t.left+"px",n[0].style.top=t.top+"px",n[0].style.width=t.width+"px"):d()}),i.$on("$destroy",function(){d()}));var o=null,u="";function d(){null!==o&&(o.replaceWith(n),o=null,n[0].style.position="",n[0].style.left="",n[0].style.top="",n[0].style.width=u,l.setFocus())}var p=null,h="direction-up";i.$watch("$select.open",function(){"auto"!==l.dropdownPosition&&"up"!==l.dropdownPosition||i.calculateDropdownPos()});var g=function(e,t){e=e||w(n),t=t||w(p),p[0].style.position="absolute",p[0].style.top=-1*t.height+"px",n.addClass(h)},f=function(){x(function(){if("up"===l.dropdownPosition)g();else{n.removeClass(h);var e=w(n),t=w(p),s=m[0].documentElement.scrollTop||m[0].body.scrollTop;e.top+e.height+t.height>s+m[0].documentElement.clientHeight?g(e,t):(i=e,c=t,n.removeClass(h),i=i||w(n),c=c||w(p),p[0].style.position="",p[0].style.top="")}var i,c;p[0].style.opacity=1})},v=!1;i.calculateDropdownPos=function(){if(l.open){if(0===(p=angular.element(n).querySelectorAll(".ui-select-dropdown")).length)return;if(""!==l.search||v||(p[0].style.opacity=0,v=!0),!w(p).height&&l.$animate&&l.$animate.on&&l.$animate.enabled(p)){var s=!0;l.$animate.on("enter",p,function(e,t){"close"===t&&s&&(f(),s=!1)})}else f()}else{if(null===p||0===p.length)return;p[0].style.opacity=0,p[0].style.position="",p[0].style.top="",n.removeClass(h)}}}}}}]),t.directive("uiSelectMatch",["uiSelectConfig",function(n){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){e.addClass("ui-select-match");var t=e.parent();return(s(t,"theme")||n.theme)+(angular.isDefined(s(t,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(e,t,s,i){function c(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=s.uiLockChoice,s.$observe("placeholder",function(e){i.placeholder=void 0!==e?e:n.placeholder}),s.$observe("allowClear",c),c(s.allowClear),i.multiple&&i.sizeSearchInput()}};function s(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}}]),t.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(c,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(i,c){var e,n=this,l=i.$select;angular.isUndefined(l.selected)&&(l.selected=[]),i.$evalAsync(function(){e=i.ngModel}),n.activeMatchIndex=-1,n.updateModel=function(){e.$setViewValue(Date.now()),n.refreshComponent()},n.refreshComponent=function(){l.refreshItems&&l.refreshItems(),l.sizeSearchInput&&l.sizeSearchInput()},n.removeChoice=function(e){if(l.isLocked(null,e))return!1;var t=l.selected[e],s={};return s[l.parserResult.itemName]=t,l.selected.splice(e,1),n.activeMatchIndex=-1,l.sizeSearchInput(),c(function(){l.onRemoveCallback(i,{$item:t,$model:l.parserResult.modelMapper(i,s)})}),n.updateModel(),!0},n.getPlaceholder=function(){if(!l.selected||!l.selected.length)return l.placeholder}}],controllerAs:"$selectMultiple",link:function(r,e,t,s){var o=s[0],i=r.ngModel=s[1],u=r.$selectMultiple;function d(e){return void 0!==e&&void 0!==o.search&&0<e.filter(function(e){return void 0!==o.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===o.search.toUpperCase()}).length}function p(e,t){var s=-1;if(angular.isArray(e))for(var i=angular.copy(e),c=0;c<i.length;c++)if(void 0===o.tagging.fct)i[c]+" "+o.taggingLabel===t&&(s=c);else{var n=i[c];angular.isObject(n)&&(n.isTag=!0),angular.equals(n,t)&&(s=c)}return s}o.multiple=!0,o.focusInput=o.searchInput,i.$isEmpty=function(e){return!e||0===e.length},i.$parsers.unshift(function(){for(var e,t={},s=[],i=o.selected.length-1;0<=i;i--)(t={})[o.parserResult.itemName]=o.selected[i],e=o.parserResult.modelMapper(r,t),s.unshift(e);return s}),i.$formatters.unshift(function(e){var n,t=o.parserResult&&o.parserResult.source(r,{$select:{search:""}}),l={};if(!t)return e;var a=[],s=function(e,t){if(e&&e.length){for(var s=e.length-1;0<=s;s--){if(l[o.parserResult.itemName]=e[s],n=o.parserResult.modelMapper(r,l),o.parserResult.trackByExp){var i=/(\w*)\./.exec(o.parserResult.trackByExp),c=/\.([^\s]+)/.exec(o.parserResult.trackByExp);if(i&&0<i.length&&i[1]==o.parserResult.itemName&&c&&0<c.length&&n[c[1]]==t[c[1]])return a.unshift(e[s]),!0}if(angular.equals(n,t))return a.unshift(e[s]),!0}return!1}};if(!e)return a;for(var i=e.length-1;0<=i;i--)s(o.selected,e[i])||s(t,e[i])||a.unshift(e[i]);return a}),r.$watchCollection(function(){return i.$modelValue},function(e,t){t!=e&&(angular.isDefined(i.$modelValue)&&(i.$modelValue=null),u.refreshComponent())}),i.$render=function(){if(!angular.isArray(i.$viewValue)){if(!E(i.$viewValue))throw c("multiarr","Expected model value to be array but got '{0}'",i.$viewValue);i.$viewValue=[]}o.selected=i.$viewValue,u.refreshComponent(),r.$evalAsync()},r.$on("uis:select",function(e,t){if(!(o.selected.length>=o.limit)){o.selected.push(t);var s={};s[o.parserResult.itemName]=t,n(function(){o.onSelectCallback(r,{$item:t,$model:o.parserResult.modelMapper(r,s)})}),u.updateModel()}}),r.$on("uis:activate",function(){u.activeMatchIndex=-1}),r.$watch("$select.disabled",function(e,t){t&&!e&&o.sizeSearchInput()}),o.searchInput.on("keydown",function(t){var s=t.which;r.$apply(function(){var e=!1;x.isHorizontalMovement(s)&&(e=function(e){var t=(r=o.searchInput[0],angular.isNumber(r.selectionStart)?r.selectionStart:r.value.length),s=o.selected.length,i=s-1,c=u.activeMatchIndex,n=u.activeMatchIndex+1,l=u.activeMatchIndex-1,a=c;var r;if(0<t||o.search.length&&e==x.RIGHT)return!1;o.close(),a=function(){switch(e){case x.LEFT:return~u.activeMatchIndex?l:i;case x.RIGHT:return~u.activeMatchIndex&&c!==i?n:(o.activate(),!1);case x.BACKSPACE:return~u.activeMatchIndex?u.removeChoice(c)?l:c:i;case x.DELETE:return!!~u.activeMatchIndex&&(u.removeChoice(u.activeMatchIndex),c)}}(),o.selected.length&&!1!==a?u.activeMatchIndex=Math.min(i,Math.max(0,a)):u.activeMatchIndex=-1;return!0}(s)),e&&s!=x.TAB&&(t.preventDefault(),t.stopPropagation())})}),o.searchInput.on("keyup",function(e){if(x.isVerticalMovement(e.which)||r.$evalAsync(function(){o.activeIndex=!1===o.taggingLabel?-1:0}),o.tagging.isActivated&&0<o.search.length){if(e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||x.isVerticalMovement(e.which))return;if(o.activeIndex=!1===o.taggingLabel?-1:0,!1===o.taggingLabel)return;var t,s,i,c=angular.copy(o.items),n=angular.copy(o.items),l=!1,a=-1;if(void 0!==o.tagging.fct){if(0<(s=o.$filter("filter")(c,{isTag:!0})).length&&(i=s[0]),0<c.length&&i&&(l=!0,c=c.slice(1,c.length),n=n.slice(1,n.length)),t=o.tagging.fct(o.search),n.some(function(e){return angular.equals(e,t)})||o.selected.some(function(e){return angular.equals(e,t)}))return void r.$evalAsync(function(){o.activeIndex=0,o.items=c});t&&(t.isTag=!0)}else{if(0<(s=o.$filter("filter")(c,function(e){return e.match(o.taggingLabel)})).length&&(i=s[0]),void 0!==c[0]&&0<c.length&&i&&(l=!0,c=c.slice(1,c.length),n=n.slice(1,n.length)),t=o.search+" "+o.taggingLabel,-1<p(o.selected,o.search))return;if(d(n.concat(o.selected)))return void(l&&(c=n,r.$evalAsync(function(){o.activeIndex=0,o.items=c})));if(d(n))return void(l&&(o.items=n.slice(1,n.length)))}l&&(a=p(o.selected,t)),-1<a?c=c.slice(a+1,c.length-1):(c=[],t&&c.push(t),c=c.concat(n)),r.$evalAsync(function(){if(o.activeIndex=0,o.items=c,o.isGrouped){var e=t?c.slice(1):c;o.setItemsFn(e),t&&(o.items.unshift(t),o.groups.unshift({name:"",items:[t],tagging:!0}))}})}}),o.searchInput.on("blur",function(){n(function(){u.activeMatchIndex=-1})})}}}]),t.directive("uiSelectNoChoice",["uiSelectConfig",function(t){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(e){return e.addClass("ui-select-no-choice"),(e.parent().attr("theme")||t.theme)+"/no-choice.tpl.html"}}}]),t.directive("uiSelectSingle",["$timeout","$compile",function(a,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(n,e,t,s){var l=s[0],i=s[1];i.$parsers.unshift(function(e){if(E(e))return e;var t={};return t[l.parserResult.itemName]=e,l.parserResult.modelMapper(n,t)}),i.$formatters.unshift(function(t){if(E(t))return t;var e=l.parserResult&&l.parserResult.source(n,{$select:{search:""}}),s={};if(e){var i=function(e){return s[l.parserResult.itemName]=e,l.parserResult.modelMapper(n,s)===t};if(l.selected&&i(l.selected))return l.selected;for(var c=e.length-1;0<=c;c--)if(i(e[c]))return e[c]}return t}),n.$watch("$select.selected",function(e){i.$viewValue!==e&&i.$setViewValue(e)}),i.$render=function(){l.selected=i.$viewValue},n.$on("uis:select",function(e,t){l.selected=t;var s={};s[l.parserResult.itemName]=t,a(function(){l.onSelectCallback(n,{$item:t,$model:E(t)?t:l.parserResult.modelMapper(n,s)})})}),n.$on("uis:close",function(e,t){a(function(){l.focusser.prop("disabled",!1),t||l.focusser[0].focus()},0,!1)}),n.$on("uis:activate",function(){c.prop("disabled",!0)});var c=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");r(c)(n),l.focusser=c,l.focusInput=c,e.parent().append(c),c.bind("focus",function(){n.$evalAsync(function(){l.focus=!0})}),c.bind("blur",function(){n.$evalAsync(function(){l.focus=!1})}),c.bind("keydown",function(e){if(e.which===x.BACKSPACE&&!1!==l.backspaceReset)return e.preventDefault(),e.stopPropagation(),l.select(void 0),void n.$apply();e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||(e.which!=x.DOWN&&e.which!=x.UP&&e.which!=x.ENTER&&e.which!=x.SPACE||(e.preventDefault(),e.stopPropagation(),l.activate()),n.$digest())}),c.bind("keyup input",function(e){e.which===x.TAB||x.isControl(e)||x.isFunctionKey(e)||e.which===x.ESC||e.which==x.ENTER||e.which===x.BACKSPACE||(l.activate(c.val()),c.val(""),n.$digest())})}}}]),t.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(v,e,m){return{require:["^^uiSelect","^ngModel"],link:function(c,n,l,e){if(null===c[l.uiSelectSort])throw m("sort","Expected a list to sort");var s=e[0],a=e[1],t=angular.extend({axis:"horizontal"},c.$eval(l.uiSelectSortOptions)).axis,i="dragging",r="dropping",o="dropping-before",u="dropping-after";c.$watch(function(){return s.sortable},function(e){e?n.attr("draggable",!0):n.removeAttr("draggable")}),n.on("dragstart",function(e){n.addClass(i),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",c.$index.toString())}),n.on("dragend",function(){p(i)});var d,p=function(t){angular.forEach(s.$element.querySelectorAll("."+t),function(e){angular.element(e).removeClass(t)})},h=function(e){e.preventDefault(),("vertical"===t?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===t?"offsetHeight":"offsetWidth"]/2?(p(u),n.addClass(o)):(p(o),n.addClass(u))},g=function(e){e.preventDefault();var t=parseInt((e.dataTransfer||e.originalEvent.dataTransfer).getData("text"),10);v.cancel(d),d=v(function(){f(t)},20)},f=function(e){var t=c.$eval(l.uiSelectSort),s=t[e],i=null;i=n.hasClass(o)?e<c.$index?c.$index-1:c.$index:e<c.$index?c.$index:c.$index+1,function(e,t){this.splice(t,0,this.splice(e,1)[0])}.apply(t,[e,i]),a.$setViewValue(Date.now()),c.$apply(function(){c.$emit("uiSelectSort:change",{array:t,item:s,from:e,to:i})}),p(r),p(o),p(u),n.off("drop",g)};n.on("dragenter",function(){n.hasClass(i)||(n.addClass(r),n.on("dragover",h),n.on("drop",g))}),n.on("dragleave",function(e){e.target==n&&(p(r),p(o),p(u),n.off("dragover",h),n.off("drop",g))})}}}]),t.directive("uisOpenClose",["$parse","$timeout",function(c,n){return{restrict:"A",require:"uiSelect",link:function(s,e,t,i){i.onOpenCloseCallback=c(t.uisOpenClose),s.$watch("$select.open",function(e,t){e!==t&&n(function(){i.onOpenCloseCallback(s,{isOpen:e})})})}}}]),t.service("uisRepeatParser",["uiSelectMinErr","$parse",function(n,l){this.parse=function(e){var t;if(!(t=e.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw n("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",e);var s=t[5],i="";if(t[3]){s=t[5].replace(/(^\()|(\)$)/g,"");var c=t[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);c&&c[1].trim()&&(i=c[1],s=s.replace(i,""))}return{itemName:t[4]||t[2],keyName:t[3],source:l(s),filters:i,trackByExp:t[6],modelMapper:l(t[1]||t[4]||t[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},this.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""></span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;</span></span></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>')}]);
//# sourceMappingURL=select.min.js.map

@@ -10,6 +10,7 @@ {

"files": [
"dist"
"dist",
"index.js"
],
"style": "dist/select.css",
"version": "0.19.9",
"version": "0.19.10",
"devDependencies": {

@@ -16,0 +17,0 @@ "angular": "^1.2.18",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc