(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+auO":function(e,t,n){var r=n("XKFU"),i=n("lvtm");r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},"+f+8":function(e,t){!function(e,t){"use strict";function n(e){var t=e.slice(9);return void 0!==t&&null!==t&&t.length>0?t.substring(0,1).toLowerCase()+t.substring(1):t}var r=window.angulartics||(window.angulartics={});r.waitForVendorCount=0,r.waitForVendorApi=function(e,t,n,i,o){o||r.waitForVendorCount++,i||(i=n,n=void 0),!Object.prototype.hasOwnProperty.call(window,e)||void 0!==n&&void 0===window[e][n]?setTimeout(function(){r.waitForVendorApi(e,t,n,i,!0)},t):(r.waitForVendorCount--,i(window[e]))},e.module("angulartics",[]).provider("$analytics",function(){function t(t,n,r){return a[t]||(a[t]=[]),a[t].push(n),s[n]=r,function(){var n=Array.prototype.slice.apply(arguments);return this.$inject(["$q",e.bind(this,function(r){return r.all(a[t].map(function(t){if((s[t]||{}).async){var i=r.defer(),o=e.copy(n);return o.unshift(i.resolve),t.apply(this,o),i.promise}return r.when(t.apply(this,n))},this))})])}}function n(n,r,a){if(!i.developerMode){l[n]=t(n,r,a);var s=i[n],u=s?s.bufferFlushDelay:null,c=null!==u?u:i.bufferFlushDelay;e.forEach(o[n],function(e,t){!function(e,t){t?setTimeout(e,t):e()}(function(){r.apply(this,e)},t*c)})}}var i={pageTracking:{autoTrackFirstPage:!0,autoTrackVirtualPages:!0,trackRelativePath:!1,autoBasePath:!1,basePath:"",excludedRoutes:[]},eventTracking:{},bufferFlushDelay:1e3,trackExceptions:!1,developerMode:!1},o={},a={},s={},l={settings:i},u={$get:["$injector",function(e){return c(e)}],api:l,settings:i,virtualPageviews:function(e){this.settings.pageTracking.autoTrackVirtualPages=e},excludeRoutes:function(e){this.settings.pageTracking.excludedRoutes=e},firstPageview:function(e){this.settings.pageTracking.autoTrackFirstPage=e},withBase:function(t){this.settings.pageTracking.basePath=t?e.element(document).find("base").attr("href"):""},withAutoBase:function(e){this.settings.pageTracking.autoBasePath=e},trackExceptions:function(e){this.settings.trackExceptions=e},developerMode:function(e){this.settings.developerMode=e}},c=function(t){return e.extend(l,{$inject:t.invoke})};for(var f in e.forEach(["pageTrack","eventTrack","exceptionTrack","setAlias","setUsername","setUserProperties","setUserPropertiesOnce","setSuperProperties","setSuperPropertiesOnce","incrementProperty","userTimings"],function(e){var i="register"+function(e){return e.replace(/^./,function(e){return e.toUpperCase()})}(e);u[i]=function(t,r){n(e,t,r)},l[e]=t(e,function(e){return function(){r.waitForVendorCount&&(o[e]||(o[e]=[]),o[e].push(arguments))}}(e))}),u)this[f]=u[f]}).run(["$rootScope","$window","$analytics","$injector",function(t,n,r,i){function o(e,t){(function(e){for(var t=0;t<r.settings.pageTracking.excludedRoutes.length;t++){var n=r.settings.pageTracking.excludedRoutes[t];if(n instanceof RegExp&&n.test(e)||e.indexOf(n)>-1)return!0}return!1})(e)||r.pageTrack(e,t)}r.settings.pageTracking.autoTrackFirstPage&&i.invoke(["$location",function(e){var t=!0;if(i.has("$route")){var a=i.get("$route");if(a)for(var s in a.routes){t=!1;break}else null===a&&(t=!1)}else if(i.has("$state")){var l=i.get("$state");for(var u in l.get()){t=!1;break}}t&&(r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=n.location.pathname),r.settings.pageTracking.trackRelativePath?o(r.settings.pageTracking.basePath+e.url(),e):o(e.absUrl(),e))}]),r.settings.pageTracking.autoTrackVirtualPages&&i.invoke(["$location",function(e){r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=n.location.pathname+"#");var a=!0;if(i.has("$route")){var s=i.get("$route");if(s)for(var l in s.routes){a=!1;break}else null===s&&(a=!1);t.$on("$routeChangeSuccess",function(t,n){n&&(n.$$route||n).redirectTo||o(r.settings.pageTracking.basePath+e.url(),e)})}i.has("$state")&&!i.has("$transitions")&&(a=!1,t.$on("$stateChangeSuccess",function(t,n){o(r.settings.pageTracking.basePath+e.url(),e)})),i.has("$state")&&i.has("$transitions")&&(a=!1,i.invoke(["$transitions",function(t){t.onSuccess({},["$transition$",function(t){t.options().notify&&o(r.settings.pageTracking.basePath+e.url(),e)}])}])),a&&t.$on("$locationChangeSuccess",function(t,n){n&&(n.$$route||n).redirectTo||(r.settings.pageTracking.trackRelativePath?o(r.settings.pageTracking.basePath+e.url(),e):o(e.absUrl(),e))})}]),r.settings.developerMode&&e.forEach(r,function(e,t){"function"==typeof e&&(r[t]=function(){})})}]).directive("analyticsOn",["$analytics",function(t){return{restrict:"A",link:function(r,i,o){var a=o.analyticsOn||"click",s={};e.forEach(o.$attr,function(e,t){(function(e){return"analytics"===e.substr(0,9)&&-1===["On","Event","If","Properties","EventType"].indexOf(e.substr(9))})(t)&&(s[n(t)]=o[t],o.$observe(t,function(e){s[n(t)]=e}))}),e.element(i[0]).bind(a,function(n){var a=o.analyticsEvent||function(e){return function(e){return["a:","button:","button:button","button:submit","input:button","input:submit"].indexOf(e.tagName.toLowerCase()+":"+(e.type||""))>=0}(e)?e.innerText||e.value:e.id||e.name||e.tagName}(i[0]);s.eventType=n.type,o.analyticsIf&&!r.$eval(o.analyticsIf)||(o.analyticsProperties&&e.extend(s,r.$eval(o.analyticsProperties)),t.eventTrack(a,s))})}}}]).config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate","$injector",function(e,t){return function(n,r){var i=e(n,r),o=t.get("$analytics");return o.settings.trackExceptions&&o.exceptionTrack(n,r),i}}])}])}(angular)},"+lvF":function(e,t,n){e.exports=n("VTer")("native-function-to-string",Function.toString)},"+pFL":function(e,t,n){},"+rLv":function(e,t,n){var r=n("dyZX").document;e.exports=r&&r.documentElement},"/8Fb":function(e,t,n){var r=n("XKFU"),i=n("UExd")(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},"/FxV":function(e,t){void 0!==e&&void 0!==t&&e.exports===t&&(e.exports="monospaced.elastic"),angular.module("monospaced.elastic",[]).constant("msdElasticConfig",{append:""}).directive("msdElastic",["$timeout","$window","msdElasticConfig",function(e,t,n){"use strict";return{require:"ngModel",restrict:"A, C",link:function(r,i,o,a){var s=i[0],l=i;if("TEXTAREA"===s.nodeName&&t.getComputedStyle){l.css({overflow:"hidden","overflow-y":"hidden","word-wrap":"break-word"});var u=s.value;s.value="",s.value=u;var c,f,d=o.msdElastic?o.msdElastic.replace(/\\n/g,"\n"):n.append,p=angular.element(t),h="position: absolute; top: -999px; right: auto; bottom: auto;left: 0; overflow: hidden; -webkit-box-sizing: content-box;-moz-box-sizing: content-box; box-sizing: content-box;min-height: 0 !important; height: 0 !important; padding: 0;word-wrap: break-word; border: 0;",g=angular.element('<textarea aria-hidden="true" tabindex="-1" style="'+h+'"/>').data("elastic",!0),m=g[0],v=getComputedStyle(s),y=v.getPropertyValue("resize"),b="border-box"===v.getPropertyValue("box-sizing")||"border-box"===v.getPropertyValue("-moz-box-sizing")||"border-box"===v.getPropertyValue("-webkit-box-sizing")?{width:parseInt(v.getPropertyValue("border-right-width"),10)+parseInt(v.getPropertyValue("padding-right"),10)+parseInt(v.getPropertyValue("padding-left"),10)+parseInt(v.getPropertyValue("border-left-width"),10),height:parseInt(v.getPropertyValue("border-top-width"),10)+parseInt(v.getPropertyValue("padding-top"),10)+parseInt(v.getPropertyValue("padding-bottom"),10)+parseInt(v.getPropertyValue("border-bottom-width"),10)}:{width:0,height:0},w=parseInt(v.getPropertyValue("min-height"),10),$=parseInt(v.getPropertyValue("height"),10),E=Math.max(w,$)-b.height,S=parseInt(v.getPropertyValue("max-height"),10),x=["font-family","font-size","font-weight","font-style","letter-spacing","line-height","text-transform","word-spacing","text-indent"];l.data("elastic")||(S=S&&S>0?S:9e4,m.parentNode!==document.body&&angular.element(document.body).append(m),l.css({resize:"none"===y||"vertical"===y?"none":"horizontal"}).data("elastic",!0),s.oninput="onpropertychange"in s&&"oninput"in s?s.onkeyup=T:T,p.bind("resize",k),r.$watch(function(){return a.$modelValue},function(e){k()}),r.$on("elastic:adjust",function(){C(),k()}),e(T,0,!1),r.$on("$destroy",function(){g.remove(),p.unbind("resize",k)}))}function C(){var e=h;c=s,v=getComputedStyle(s),angular.forEach(x,function(t){e+=t+":"+v.getPropertyValue(t)+";"}),m.setAttribute("style",e)}function T(){var t,n,i,o,a;c!==s&&C(),f||(f=!0,m.value=s.value+d,m.style.overflowY=s.style.overflowY,t=""===s.style.height?"auto":parseInt(s.style.height,10),"px"===(n=getComputedStyle(s).getPropertyValue("width")).substr(n.length-2,2)&&(o=parseInt(n,10)-b.width,m.style.width=o+"px"),(i=m.scrollHeight)>S?(i=S,a="scroll"):i<E&&(i=E),i+=b.height,s.style.overflowY=a||"hidden",t!==i&&(r.$emit("elastic:resize",l,t,i),s.style.height=i+"px"),e(function(){f=!1},1,!1))}function k(){f=!1,T()}}}}])},"/KAi":function(e,t,n){var r=n("XKFU"),i=n("dyZX").isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},"/SS/":function(e,t,n){var r=n("XKFU");r(r.S,"Object",{setPrototypeOf:n("i5dc").set})},"/i0V":function(e,t,n){},"/tgB":function(e,t){angular.module("angular-carousel",["ngTouch","angular-carousel.shifty"]),angular.module("angular-carousel").directive("rnCarouselAutoSlide",["$interval",function(e){return{restrict:"A",link:function(t,n,r){var i=function(){t.autoSlider&&(e.cancel(t.autoSlider),t.autoSlider=null)},o=function(){t.autoSlide()};t.$watch("carouselIndex",o),r.hasOwnProperty("rnCarouselPauseOnHover")&&"false"!==r.rnCarouselPauseOnHover&&(n.on("mouseenter",i),n.on("mouseleave",o)),t.$on("$destroy",function(){i(),n.off("mouseenter",i),n.off("mouseleave",o)})}}}]),angular.module("angular-carousel").directive("rnCarouselIndicators",["$parse",function(e){return{restrict:"A",scope:{slides:"=",index:"=rnCarouselIndex"},templateUrl:"carousel-indicators.html",link:function(t,n,r){var i=e(r.rnCarouselIndex);t.goToSlide=function(e){i.assign(t.$parent.$parent,e)}}}}]),angular.module("angular-carousel").run(["$templateCache",function(e){e.put("carousel-indicators.html",'<div class="rn-carousel-indicator">\n<span ng-repeat="slide in slides" ng-class="{active: $index==index}" ng-click="goToSlide($index)">●</span></div>')}]),function(){"use strict";angular.module("angular-carousel").service("DeviceCapabilities",function(){return{has3d:function(){var e,t=document.createElement("p"),n={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",transform:"transform"};for(var r in document.body.insertBefore(t,null),n)void 0!==t.style[r]&&(t.style[r]="translate3d(1px,1px,1px)",e=window.getComputedStyle(t).getPropertyValue(n[r]));return document.body.removeChild(t),void 0!==e&&e.length>0&&"none"!==e}(),transformProperty:(e="transform",void 0!==document.body.style[e]?["webkit","moz","o","ms"].every(function(t){var n="-"+t+"-transform";return void 0===document.body.style[n]||(e=n,!1)}):e=void 0!==document.body.style.webkitTransform?"-webkit-transform":void 0,e)};var e}).service("computeCarouselSlideStyle",["DeviceCapabilities",function(e){return function(t,n,r){var i,o={display:"inline-block"},a=100*t+n,s=e.has3d?"translate3d("+a+"%, 0, 0)":"translate3d("+a+"%, 0)",l=(100-Math.abs(a))/100;if(e.transformProperty)if("fadeAndSlide"==r)o[e.transformProperty]=s,i=0,Math.abs(a)<100&&(i=.3+.7*l),o.opacity=i;else if("hexagon"==r){var u,c,f=60*(l-1);u=n<-100*t?100:0,c=n<-100*t?f:-f,o[e.transformProperty]=s+" rotateY("+c+"deg)",o[e.transformProperty+"-origin"]=u+"% 50%"}else if("zoom"==r){o[e.transformProperty]=s;var d=1;Math.abs(a)<100&&(d=1+2*(1-l)),o[e.transformProperty]+=" scale("+d+")",o[e.transformProperty+"-origin"]="50% 50%",i=0,Math.abs(a)<100&&(i=.3+.7*l),o.opacity=i}else o[e.transformProperty]=s;else o["margin-left"]=a+"%";return o}}]).service("createStyleString",function(){return function(e){var t=[];return angular.forEach(e,function(e,n){t.push(n+":"+e)}),t.join(";")}}).directive("rnCarousel",["$swipe","$window","$document","$parse","$compile","$timeout","$interval","computeCarouselSlideStyle","createStyleString","Tweenable",function(e,t,n,r,i,o,a,s,l,u){t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame;return{restrict:"A",scope:!0,compile:function(c,f){var d,p,h=c[0].querySelector("li"),g=h?h.attributes:[],m=!1,v=!1;return["ng-repeat","data-ng-repeat","ng:repeat","x-ng-repeat"].every(function(e){var t=g[e];if(angular.isDefined(t)){var n=t.value.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),r=n[3];if(d=n[1],p=n[2],d)return angular.isDefined(f.rnCarouselBuffered)&&(v=!0,t.value=d+" in "+p+"|carouselSlice:carouselBufferIndex:carouselBufferSize",r&&(t.value+=" track by "+r)),m=!0,!1}return!0}),function(c,d,h,g){0;var y,b,w,$={transitionType:h.rnCarouselTransition||"slide",transitionEasing:h.rnCarouselEasing||"easeTo",transitionDuration:parseInt(h.rnCarouselDuration,10)||300,isSequential:!0,autoSlideDuration:3,bufferSize:5,moveTreshold:.1,defaultIndex:0},E=angular.extend({},$),S=0,x=!1,C=[],T=null,k=!1,_=!1;function A(){return d[0].querySelectorAll("ul[rn-carousel] > li")}function O(e){x=!0,z({x:e.clientX,y:e.clientY},e)}function D(e){var t=100*c.carouselBufferIndex+e;angular.forEach(A(),function(e,n){e.style.cssText=l(s(n,t,E.transitionType))})}function M(e,t){if(void 0===e&&(e=c.carouselIndex),!1===(t=t||{}).animate||"none"===E.transitionType)return _=!1,S=-100*e,c.carouselIndex=e,void V();_=!0,(new u).tween({from:{x:S},to:{x:-100*e},duration:E.transitionDuration,easing:E.transitionEasing,step:function(e){isFinite(e.x)&&D(e.x)},finish:function(){c.$apply(function(){c.carouselIndex=e,S=-100*e,V(),o(function(){_=!1},0,!1)})}})}function N(){var e;e=d[0].getBoundingClientRect(),T=e.width?e.width:e.right-e.left}function I(){k&&(k=!1,n.unbind("mouseup",O))}"true"!==h.rnSwipeDisabled&&e.bind(d,{start:function(e,t){if(_||C.length<=1)return;return N(),d[0].querySelector("li").getBoundingClientRect().left,y=!0,b=e.x,!1},move:function(e,t){var r,i;if(k||(k=!0,n.bind("mouseup",O)),y&&(r=e.x,(i=b-r)>2||i<-2)){x=!0;var o=S+100*-i/T;D(o)}return!1},end:z,cancel:function(e){z({},e)}}),c.nextSlide=function(e){var t=c.carouselIndex+1;t>C.length-1&&(t=0),_||M(t,e)},c.prevSlide=function(e){var t=c.carouselIndex-1;t<0&&(t=C.length-1),M(t,e)};var F=!0;if(c.carouselIndex=0,m||(C=[],angular.forEach(A(),function(e,t){C.push({id:t})})),void 0!==h.rnCarouselControls){var R=(m?c.$eval(p.replace("::","")).length:C.length)>1&&angular.isDefined(f.rnCarouselControlsAllowLoop),P='<div class="rn-carousel-controls">\n  <span class="rn-carousel-control rn-carousel-control-prev" ng-click="prevSlide()" ng-if="carouselIndex > 0 || '+R+'"></span>\n  <span class="rn-carousel-control rn-carousel-control-next" ng-click="nextSlide()" ng-if="carouselIndex < '+(m?"("+p.replace("::","")+").length - 1":C.length-1)+" || "+R+'"></span>\n</div>';d.append(i(angular.element(P))(c))}if(void 0!==h.rnCarouselAutoSlide){var L=parseInt(h.rnCarouselAutoSlide,10)||E.autoSlideDuration;c.autoSlide=function(){c.autoSlider&&(a.cancel(c.autoSlider),c.autoSlider=null),c.autoSlider=a(function(){_||y||c.nextSlide()},1e3*L)}}if(h.rnCarouselDefaultIndex){var j=r(h.rnCarouselDefaultIndex);E.defaultIndex=j(c.$parent)||0}if(h.rnCarouselIndex){var U=function(e){B.assign(c.$parent,e)},B=r(h.rnCarouselIndex);angular.isFunction(B.assign)?(c.$watch("carouselIndex",function(e){U(e)}),c.$parent.$watch(B,function(e,t){void 0!==e&&null!==e&&(C&&C.length>0&&e>=C.length?(e=C.length-1,U(e)):C&&e<0&&U(e=0),_||M(e,{animate:!F}),F=!1)}),!0,E.defaultIndex&&M(E.defaultIndex,{animate:!F})):isNaN(h.rnCarouselIndex)||M(parseInt(h.rnCarouselIndex,10),{animate:!1})}else M(E.defaultIndex,{animate:!F}),F=!1;if(h.rnCarouselLocked&&c.$watch(h.rnCarouselLocked,function(e,t){_=!0===e}),m){var H=void 0!==h.rnCarouselDeepWatch;c[H?"$watch":"$watchCollection"](p,function(e,t){if(C=e,H&&angular.isArray(e)){var n=t[c.carouselIndex];M((r=e,i=n,o=c.carouselIndex,a=o,r.every(function(e,t){return!angular.equals(e,i)||(a=t,!1)}),a),{animate:!1})}else M(c.carouselIndex,{animate:!1});var r,i,o,a},!0)}function z(e,t,n){if((!t||x)&&(I(),y=!1,x=!1,0!==(w=b-e.x)&&!_))if(S+=100*-w/T,E.isSequential){var i=E.moveTreshold*T,o=-w,a=-Math[o>=0?"ceil":"floor"](o/T),s=Math.abs(o)>i;C&&a+c.carouselIndex>=C.length&&(a=C.length-1-c.carouselIndex),a+c.carouselIndex<0&&(a=-c.carouselIndex);var l=s?a:0;M(w=c.carouselIndex+l),void 0!==h.rnCarouselOnInfiniteScrollRight&&0===a&&0!==c.carouselIndex&&(r(h.rnCarouselOnInfiniteScrollRight)(c),M(0)),void 0!==h.rnCarouselOnInfiniteScrollLeft&&0===a&&0===c.carouselIndex&&0===l&&(r(h.rnCarouselOnInfiniteScrollLeft)(c),M(C.length))}else c.$apply(function(){c.carouselIndex=parseInt(-S/100,10),V()})}function V(){var e=0,t=(c.carouselBufferSize-1)/2;v?(e=c.carouselIndex<=t?0:C&&C.length<c.carouselBufferSize?0:C&&c.carouselIndex>C.length-c.carouselBufferSize?C.length-c.carouselBufferSize:c.carouselIndex-t,c.carouselBufferIndex=e,o(function(){D(S)},0,!1)):o(function(){D(S)},0,!1)}function Y(){N(),M()}c.$on("$destroy",function(){I()}),c.carouselBufferIndex=0,c.carouselBufferSize=E.bufferSize;var W=angular.element(t);W.bind("orientationchange",Y),W.bind("resize",Y),c.$on("$destroy",function(){I(),W.unbind("orientationchange",Y),W.unbind("resize",Y)})}}}}])}(),angular.module("angular-carousel.shifty",[]).factory("Tweenable",function(){return function(e){var t=function(){"use strict";var t,n,r,i,o,a,s="linear",l=1e3/60,u=Date.now?Date.now:function(){return+new Date},c="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:u;function f(){}function d(e,t){var n;for(n in e)Object.hasOwnProperty.call(e,n)&&t(n)}function p(e,t){return d(t,function(n){e[n]=t[n]}),e}function h(e,t){d(t,function(n){void 0===e[n]&&(e[n]=t[n])})}function g(e,n,r,i,o,a,s){var l,u=(e-a)/o;for(l in n)n.hasOwnProperty(l)&&(n[l]=m(r[l],i[l],t[s[l]],u));return n}function m(e,t,n,r){return e+(t-e)*n(r)}function v(e,t){var n=w.prototype.filter,r=e._filterArgs;d(n,function(i){void 0!==n[i][t]&&n[i][t].apply(e,r)})}function y(e,t,n,s,u,f,d,p,h){r=t+n,i=Math.min(c(),r),o=i>=r,a=n-(r-i),e.isPlaying()&&!o?(e._scheduleId=h(e._timeoutHandler,l),v(e,"beforeTween"),g(i,s,u,f,n,t,d),v(e,"afterTween"),p(s,e._attachment,a)):o&&(p(f,e._attachment,a),e.stop(!0))}function b(e,t){var n={};return d(e,"string"==typeof t?function(e){n[e]=t}:function(e){n[e]||(n[e]=t[e]||s)}),n}function w(e,t){this._currentState=e||{},this._configured=!1,this._scheduleFunction=n,void 0!==t&&this.setConfig(t)}return n="undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame)||setTimeout,w.prototype.tween=function(e){return this._isTweening?this:(void 0===e&&this._configured||this.setConfig(e),this._timestamp=c(),this._start(this.get(),this._attachment),this.resume())},w.prototype.setConfig=function(e){e=e||{},this._configured=!0,this._attachment=e.attachment,this._pausedAtTime=null,this._scheduleId=null,this._start=e.start||f,this._step=e.step||f,this._finish=e.finish||f,this._duration=e.duration||500,this._currentState=e.from||this.get(),this._originalState=this.get(),this._targetState=e.to||this.get();var t=this._currentState,n=this._targetState;return h(n,t),this._easing=b(t,e.easing||s),this._filterArgs=[t,this._originalState,n,this._easing],v(this,"tweenCreated"),this},w.prototype.get=function(){return p({},this._currentState)},w.prototype.set=function(e){this._currentState=e},w.prototype.pause=function(){return this._pausedAtTime=c(),this._isPaused=!0,this},w.prototype.resume=function(){this._isPaused&&(this._timestamp+=c()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var e=this;return this._timeoutHandler=function(){y(e,e._timestamp,e._duration,e._currentState,e._originalState,e._targetState,e._easing,e._step,e._scheduleFunction)},this._timeoutHandler(),this},w.prototype.seek=function(e){return this._timestamp=c()-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,y(this,this._timestamp,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction),this._timeoutHandler(),this.pause()),this},w.prototype.stop=function(t){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=f,(e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||e.mozCancelRequestAnimationFrame||e.clearTimeout)(this._scheduleId),t&&(p(this._currentState,this._targetState),v(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},w.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},w.prototype.setScheduleFunction=function(e){this._scheduleFunction=e},w.prototype.dispose=function(){var e;for(e in this)this.hasOwnProperty(e)&&delete this[e]},w.prototype.filter={},w.prototype.formula={linear:function(e){return e}},t=w.prototype.formula,p(w,{now:c,each:d,tweenProps:g,tweenProp:m,applyFilter:v,shallowCopy:p,defaults:h,composeEasingObject:b}),e.Tweenable=w,w}();t.shallowCopy(t.prototype.formula,{easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInQuint:function(e){return Math.pow(e,5)},easeOutQuint:function(e){return Math.pow(e-1,5)+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:function(e){var t=1.70158;return e*e*((t+1)*e-t)},swingTo:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},bounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},easeFromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeFrom:function(e){return Math.pow(e,4)},easeTo:function(e){return Math.pow(e,.25)}}),function(){function e(e,t,n,r,i,o){var a=0,s=0,l=0,u=0,c=0,f=0;function d(e){return((a*e+s)*e+l)*e}function p(e){return e>=0?e:0-e}return a=1-(l=3*t)-(s=3*(r-t)-l),u=1-(f=3*n)-(c=3*(i-n)-f),function(e,t){return n=function(e,t){var n,r,i,o,u,c,f;for(i=e,c=0;c<8;c++){if(p(o=d(i)-e)<t)return i;if(p(u=(3*a*(f=i)+2*s)*f+l)<1e-6)break;i-=o/u}if(r=1,(i=e)<(n=0))return n;if(i>r)return r;for(;n<r;){if(p((o=d(i))-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i}(e,t),((u*n+c)*n+f)*n;var n}(e,function(e){return 1/(200*e)}(o))}t.setBezierFunction=function(n,r,i,o,a){var s=function(t,n,r,i){return function(o){return e(o,t,n,r,i,1)}}(r,i,o,a);return s.x1=r,s.y1=i,s.x2=o,s.y2=a,t.prototype.formula[n]=s},t.unsetBezierFunction=function(e){delete t.prototype.formula[e]}}(),function(){var e=new t;e._filterArgs=[],t.interpolate=function(n,r,i,o){var a=t.shallowCopy({},n),s=t.composeEasingObject(n,o||"linear");e.set({});var l=e._filterArgs;l.length=0,l[0]=a,l[1]=n,l[2]=r,l[3]=s,t.applyFilter(e,"tweenCreated"),t.applyFilter(e,"beforeTween");var u=function(e,n,r,i,o){return t.tweenProps(i,n,e,r,1,0,o)}(n,a,r,i,s);return t.applyFilter(e,"afterTween"),u}}(),function(e){var t=/(\d|\-|\.)/,n=/([^\-0-9\.]+)/g,r=/[0-9.\-]+/g,i=new RegExp("rgb\\("+r.source+/,\s*/.source+r.source+/,\s*/.source+r.source+"\\)","g"),o=/^.*\(/,a=/#([0-9]|[a-f]){3,6}/gi,s="VAL",l=[];function u(t){e.each(t,function(e){var n=t[e];"string"==typeof n&&n.match(a)&&(t[e]=p(a,n,c))})}function c(e){var t=function(e){3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return f[0]=d(e.substr(0,2)),f[1]=d(e.substr(2,2)),f[2]=d(e.substr(4,2)),f}(e);return"rgb("+t[0]+","+t[1]+","+t[2]+")"}var f=[];function d(e){return parseInt(e,16)}function p(e,t,n){var r=t.match(e),i=t.replace(e,s);if(r)for(var o,a=r.length,l=0;l<a;l++)o=r.shift(),i=i.replace(s,n(o));return i}function h(e){for(var t=e.match(r),n=t.length,i=e.match(o)[0],a=0;a<n;a++)i+=parseInt(t[a],10)+",";return i=i.slice(0,-1)+")"}function g(r){var i={};return e.each(r,function(e){var o,a,u=r[e];if("string"==typeof u){var c=b(u);i[e]={formatString:(o=u,a=o.match(n),a?(1===a.length||o[0].match(t))&&a.unshift(""):a=["",""],a.join(s)),chunkNames:function(e,t){l.length=0;var n,r=e.length;for(n=0;n<r;n++)l.push("_"+t+"_"+n);return l}(c,e)}}}),i}function m(t,n){e.each(n,function(e){for(var r=b(t[e]),i=r.length,o=0;o<i;o++)t[n[e].chunkNames[o]]=+r[o];delete t[e]})}function v(t,n){e.each(n,function(e){var r=t[e],o=function(e,t){y.length=0;for(var n=t.length,r=0;r<n;r++)y.push(e[t[r]]);return y}(function(e,t){for(var n,r={},i=t.length,o=0;o<i;o++)n=t[o],r[n]=e[n],delete e[n];return r}(t,n[e].chunkNames),n[e].chunkNames);r=function(e,t){for(var n=e,r=t.length,i=0;i<r;i++)n=n.replace(s,+t[i].toFixed(4));return n}(n[e].formatString,o),t[e]=p(i,r,h)})}var y=[];function b(e){return e.match(r)}e.prototype.filter.token={tweenCreated:function(e,t,n,r){u(e),u(t),u(n),this._tokenData=g(e)},beforeTween:function(t,n,r,i){!function(t,n){e.each(n,function(e){for(var r=n[e].chunkNames,i=r.length,o=t[e].split(" "),a=o[o.length-1],s=0;s<i;s++)t[r[s]]=o[s]||a;delete t[e]})}(i,this._tokenData),m(t,this._tokenData),m(n,this._tokenData),m(r,this._tokenData)},afterTween:function(t,n,r,i){v(t,this._tokenData),v(n,this._tokenData),v(r,this._tokenData),function(t,n){e.each(n,function(e){for(var r=n[e].chunkNames,i=r.length,o="",a=0;a<i;a++)o+=" "+t[r[a]],delete t[r[a]];t[e]=o.substr(1)})}(i,this._tokenData)}}}(t)}(window),window.Tweenable}),function(){"use strict";angular.module("angular-carousel").filter("carouselSlice",function(){return function(e,t,n){return angular.isArray(e)?e.slice(t,t+n):angular.isObject(e)?e:void 0}})}()},"0/R4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"0YWM":function(e,t,n){var r=n("EemH"),i=n("OP3Y"),o=n("aagx"),a=n("XKFU"),s=n("0/R4"),l=n("y3w9");a(a.S,"Reflect",{get:function e(t,n){var a,u,c=arguments.length<3?t:arguments[2];return l(t)===c?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(u=i(t))?e(u,n,c):void 0}})},"0sh+":function(e,t,n){var r=n("quPj"),i=n("vhPU");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},"1MBn":function(e,t,n){var r=n("DVgA"),i=n("JiEa"),o=n("UqcF");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"1qXd":function(e,t){!function(e,t){"use strict";function n(e,n){var r=!1,i=!1;this.ngClickOverrideEnabled=function(a){return t.isDefined(a)?(a&&!i&&(i=!0,o.$$moduleName="ngTouch",n.directive("ngClick",o),e.decorator("ngClickDirective",["$delegate",function(e){if(r)e.shift();else for(var t=e.length-1;0<=t;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),r=a,this):r},this.$get=function(){return{ngClickOverrideEnabled:function(){return r}}}}function r(e,n,r){i.directive(e,["$parse","$swipe",function(i,o){return function(a,s,l){function u(e){if(!c)return!1;var t=Math.abs(e.y-c.y);return e=(e.x-c.x)*n,f&&75>t&&0<e&&30<e&&.3>t/e}var c,f,d=i(l[e]),p=["touch"];t.isDefined(l.ngSwipeDisableMouse)||p.push("mouse"),o.bind(s,{start:function(e,t){c=e,f=!0},cancel:function(e){f=!1},end:function(e,t){u(e)&&a.$apply(function(){s.triggerHandler(r),d(a,{$event:t})})}},p)}}])}var i=t.module("ngTouch",[]);i.provider("$touch",n),n.$inject=["$provide","$compileProvider"],i.factory("$swipe",[function(){function e(e){var t=(e=e.originalEvent||e).touches&&e.touches.length?e.touches:[e];return{x:(e=e.changedTouches&&e.changedTouches[0]||t[0]).clientX,y:e.clientY}}function n(e,n){var i=[];return t.forEach(e,function(e){(e=r[e][n])&&i.push(e)}),i.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(t,r,i){var o,a,s,l,u=!1;i=i||["mouse","touch","pointer"],t.on(n(i,"start"),function(t){s=e(t),u=!0,a=o=0,l=s,r.start&&r.start(s,t)});var c=n(i,"cancel");c&&t.on(c,function(e){u=!1,r.cancel&&r.cancel(e)}),t.on(n(i,"move"),function(t){if(u&&s){var n=e(t);o+=Math.abs(n.x-l.x),a+=Math.abs(n.y-l.y),l=n,10>o&&10>a||(a>o?(u=!1,r.cancel&&r.cancel(t)):(t.preventDefault(),r.move&&r.move(n,t)))}}),t.on(n(i,"end"),function(t){u&&(u=!1,r.end&&r.end(e(t),t))})}}}]);var o=["$parse","$timeout","$rootElement",function(e,n,r){function i(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r+1],o=n;if(25>Math.abs(e[r]-t)&&25>Math.abs(i-o))return e.splice(r,r+2),!0}return!1}function o(e){if(!(2500<Date.now()-s)){var n=(r=e.touches&&e.touches.length?e.touches:[e])[0].clientX,r=r[0].clientY;if(!(1>n&&1>r||u&&u[0]===n&&u[1]===r)){u&&(u=null);var o=e.target;"label"===t.lowercase(o.nodeName||o[0]&&o[0].nodeName)&&(u=[n,r]),i(l,n,r)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur())}}}function a(e){var t=(e=e.touches&&e.touches.length?e.touches:[e])[0].clientX,r=e[0].clientY;l.push(t,r),n(function(){for(var e=0;e<l.length;e+=2)if(l[e]===t&&l[e+1]===r){l.splice(e,e+2);break}},2500,!1)}var s,l,u;return function(n,u,c){var f,d,p,h,g=e(c.ngClick),m=!1;u.on("touchstart",function(e){m=!0,3===(f=e.target?e.target:e.srcElement).nodeType&&(f=f.parentNode),u.addClass("ng-click-active"),d=Date.now(),e=((e=e.originalEvent||e).touches&&e.touches.length?e.touches:[e])[0],p=e.clientX,h=e.clientY}),u.on("touchcancel",function(e){m=!1,u.removeClass("ng-click-active")}),u.on("touchend",function(e){var n=Date.now()-d,g=(v=((g=e.originalEvent||e).changedTouches&&g.changedTouches.length?g.changedTouches:g.touches&&g.touches.length?g.touches:[g])[0]).clientX,v=v.clientY,y=Math.sqrt(Math.pow(g-p,2)+Math.pow(v-h,2));m&&750>n&&12>y&&(l||(r[0].addEventListener("click",o,!0),r[0].addEventListener("touchstart",a,!0),l=[]),s=Date.now(),i(l,g,v),f&&f.blur(),t.isDefined(c.disabled)&&!1!==c.disabled||u.triggerHandler("click",[e])),m=!1,u.removeClass("ng-click-active")}),u.onclick=function(e){},u.on("click",function(e,t){n.$apply(function(){g(n,{$event:t||e})})}),u.on("mousedown",function(e){u.addClass("ng-click-active")}),u.on("mousemove mouseup",function(e){u.removeClass("ng-click-active")})}}];r("ngSwipeLeft",-1,"swipeleft"),r("ngSwipeRight",1,"swiperight")}(window,window.angular)},"1sa7":function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},"25dN":function(e,t,n){var r=n("XKFU");r(r.S,"Object",{is:n("g6HL")})},"2OiF":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"2atp":function(e,t,n){var r=n("XKFU"),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},"33yf":function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("8oxB"))},"3Lyj":function(e,t,n){var r=n("KroJ");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"3NLb":function(e,t,n){var r;void 0===(r=function(){return function(){function e(e,t){"use strict";return function(n){if(!n||!(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix)))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var i=[r.prefix,n.key,r.suffix].join("");return angular.isObject(n.fileMap)&&n.fileMap[i]&&(i=n.fileMap[i]),t(angular.extend({url:i,method:"GET"},n.$http)).then(function(e){return e.data},function(){return e.reject(n.key)})},i=[],o=n.files.length,a=0;a<o;a++)i.push(r({prefix:n.files[a].prefix,key:n.key,suffix:n.files[a].suffix}));return e.all(i).then(function(e){for(var t=e.length,n={},r=0;r<t;r++)for(var i in e[r])n[i]=e[r][i];return n})}}return e.$inject=["n","a"],e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},"3bSO":function(e,t,n){"use strict";!function(e){var t=e.module("angularCSS",[]);e.module("door3.css",[]).run(function(){}),t.provider("$css",[function(){var t=this.defaults={element:"link",rel:"stylesheet",type:"text/css",container:"head",method:"append",weight:0},r=!1;this.debugMode=function(t){return e.isDefined(t)&&(r=t),r},this.$get=["$rootScope","$injector","$q","$window","$timeout","$compile","$http","$filter","$log","$interpolate",function(i,o,a,s,l,u,c,f,d,p){function h(t){return t?(e.isFunction(t)&&(t=e.copy(o.invoke(t))),e.isString(t)&&(t=e.extend({href:t},$)),e.isArray(t)&&e.isString(t[0])&&e.forEach(t,function(n){t=e.extend({href:n},$)}),e.isObject(t)&&!e.isArray(t)&&(t=e.extend({},$,t)),e.isArray(t)&&e.isObject(t[0])&&e.forEach(t,function(n){t=e.extend(n,$)}),function(t){e.isDefined($.breakpoints)&&(t.breakpoint in $.breakpoints&&(t.media=$.breakpoints[t.breakpoint]),delete t.breakpoints)}(t),t):void 0}function g(t){return t?void(i&&e.isDefined(y)&&y[t.href]&&e.isDefined(b)&&y[t.href].removeListener(b[t.href])):void(r&&d.error("No stylesheet provided"))}var m={},v='<link ng-repeat="stylesheet in stylesheets | orderBy: \'weight\' track by $index " rel="{{ stylesheet.rel }}" type="{{ stylesheet.type }}" ng-href="{{ stylesheet.href }}" ng-attr-media="{{ stylesheet.media }}">';v=v.replace(/{{/g,p.startSymbol()).replace(/}}/g,p.endSymbol());var y={},b={},w=["print"],$=e.extend({},t),E=e.element(document.querySelector?document.querySelector($.container):document.getElementsByTagName($.container)[0]),S=[];return e.forEach(n,function(e,t){e.hasOwnProperty("css")&&(n[t]=h(e.css))}),i.stylesheets=[],E[$.method](u(v)(i)),i.$on("$directiveAdd",function(e,t,n){n&&t.hasOwnProperty("css")&&m.bind(t.css,n)}),i.$on("$routeChangeSuccess",function(e,t,n){n&&(m.remove(m.getFromRoute(n).concat(S)),S.length=0),t&&m.add(m.getFromRoute(t))}),i.$on("$stateChangeSuccess",function(e,t,n,r){r&&(m.remove(m.getFromState(r).concat(S)),S.length=0),t&&m.add(m.getFromState(t))}),m.getFromRoute=function(t){if(t){var n=null,i=[];return t.$$route&&t.$$route.css?n=t.$$route.css:t.css&&(n=t.css),n&&(e.isArray(n)?e.forEach(n,function(t){e.isFunction(t)&&S.push(h(t)),i.push(h(t))}):(e.isFunction(n)&&S.push(h(n)),i.push(h(n)))),i}r&&d.error("Get From Route: No route provided")},m.getFromRoutes=function(t){if(t){var n=[];return e.forEach(t,function(e){var t=m.getFromRoute(e);t.length&&n.push(t[0])}),n}r&&d.error("Get From Routes: No routes provided")},m.getFromState=function(t){if(t){var n=[];if(e.isDefined(t.views)&&e.forEach(t.views,function(t){t.css&&(e.isFunction(t.css)&&S.push(h(t.css)),n.push(h(t.css)))}),e.isDefined(t.children)&&e.forEach(t.children,function(t){t.css&&(e.isFunction(t.css)&&S.push(h(t.css)),n.push(h(t.css))),e.isDefined(t.children)&&e.forEach(t.children,function(t){t.css&&(e.isFunction(t.css)&&S.push(h(t.css)),n.push(h(t.css)))})}),e.isDefined(t.css)||e.isDefined(t.data)&&e.isDefined(t.data.css)){var i=t.css||t.data.css;e.isArray(i)?e.forEach(i,function(t){e.isFunction(t)&&S.push(h(t)),n.push(h(t))}):(e.isFunction(i)&&S.push(h(i)),n.push(h(i)))}return n}r&&d.error("Get From State: No state provided")},m.getFromStates=function(t){if(t){var n=[];return e.forEach(t,function(t){var r=m.getFromState(t);e.isArray(r)?e.forEach(r,function(e){n.push(e)}):n.push(r)}),n}r&&d.error("Get From States: No states provided")},m.preload=function(t,i){t||(t=[],n.length&&Array.prototype.push.apply(t,n),o.has("$route")&&Array.prototype.push.apply(t,m.getFromRoutes(o.get("$route").routes)),o.has("$state")&&Array.prototype.push.apply(t,m.getFromStates(o.get("$state").get())),t=function(e,t){return e&&t?f("filter")(e,function(e){return e[t]}):void(r&&d.error("filterBy: missing array or property"))}(t,"preload")),e.isArray(t)||(t=[t]);var s=[];e.forEach(t,function(e,n){e=t[n]=h(e),s.push(c.get(e.href).error(function(t){r&&d.error("AngularCSS: Incorrect path for "+e.href)}))}),e.isFunction(i)&&a.all(s).then(function(){i(t)})},m.bind=function(t,n){if(t&&n){var i=[];e.isArray(t)?e.forEach(t,function(e){i.push(h(e))}):i.push(h(t)),m.add(i),r&&d.debug("$css.bind(): Added",i),n.$on("$destroy",function(){m.remove(i),r&&d.debug("$css.bind(): Removed",i)})}else r&&d.error("No scope or stylesheets provided")},m.add=function(t,n){return t?(e.isArray(t)||(t=[t]),e.forEach(t,function(e){(e=h(e)).href&&!f("filter")(i.stylesheets,{href:e.href}).length&&(function(e){if(e){var t="?cache=";-1===e.href.indexOf(t)&&(e.href=e.href+(e.bustCache?t+(new Date).getTime():""))}else r&&d.error("No stylesheets provided")}(e),function(e){return e?!(!e.media||-1!==w.indexOf(e.media)||!s.matchMedia):void(r&&d.error("No stylesheet provided"))}(e)?function(e){e?(y[e.href]=s.matchMedia(e.media),b[e.href]=function(t){l(function(){if(t.matches)i.stylesheets.push(e);else{var n=i.stylesheets.indexOf(f("filter")(i.stylesheets,{href:e.href})[0]);-1!==n&&i.stylesheets.splice(n,1)}})},y[e.href].addListener(b[e.href]),b[e.href](y[e.href])):r&&d.error("No stylesheet provided")}(e):i.stylesheets.push(e),r&&d.debug("$css.add(): "+e.href))}),void i.$broadcast("$cssAdd",t,i.stylesheets)):void(r&&d.error("No stylesheets provided"))},m.remove=function(t,n){return t?(e.isArray(t)||(t=[t]),t=f("filter")(t,function(e){return!e.persist}),e.forEach(t,function(e){e=h(e);var t=i.stylesheets.indexOf(f("filter")(i.stylesheets,{href:e.href})[0]);-1!==t&&i.stylesheets.splice(t,1),g(e),r&&d.debug("$css.remove(): "+e.href)}),void i.$broadcast("$cssRemove",t,i.stylesheets)):void(r&&d.error("No stylesheets provided"))},m.removeAll=function(){i&&i.hasOwnProperty("stylesheets")&&(i.stylesheets.length=0),r&&d.debug("all stylesheets removed")},m.preload(),m}]}]),t.filter("$cssLinks",function(){return function(t){if(!t||!e.isArray(t))return t;var n="";return e.forEach(t,function(e){n+='<link rel="'+e.rel+'" type="'+e.type+'" href="'+e.href+'"',n+=e.media?' media="'+e.media+'"':"",n+=">\n\n"}),n}}),t.run(["$css",function(e){}]);var n=[],r=e.module,i=function(e,t){return e.reduce(function(e,n){return e.push(t(n)),e},[])},o=function(e,t){return e.indexOf(t)>-1};e.module=function(){var t=r.apply(this,arguments),a=t.directive;t.directive=function(t,r){var s=e.isFunction(r)?r:r[r?r.length-1:0];try{var l=e.copy(s)();l.directiveName=t,l.hasOwnProperty("css")&&!o(i(n,function(e){return e.ddo.directiveName}),t)&&n.push({ddo:l,handled:!1})}catch(e){}return a.apply(this,arguments)};var s=t.component;return t.component=function(e,t){return t.directiveName=e,t.hasOwnProperty("css")&&!o(i(n,function(e){return e.ddo.directiveName}),e)&&n.push({ddo:t,handled:!1}),s.apply(this,arguments)},t.config(["$provide","$injector",function(t,r){e.forEach(n,function(e){if(!e.handled){var n=e.ddo,i=n.directiveName+"Directive";r.has(i)&&(e.handled=!0,t.decorator(i,["$delegate","$rootScope","$timeout",function(e,t,r){var i=e[0],o=i.compile;return i.css||(i.css=n.css),i.compile=function(){var e=!!o&&o.apply(this,arguments);return function(n){var o=arguments;r(function(){e&&e.apply(this,o)}),t.$broadcast("$directiveAdd",i,n)}},e}]))}})}]),t}}(angular)},"3xty":function(e,t,n){var r=n("XKFU"),i=n("2OiF"),o=n("y3w9"),a=(n("dyZX").Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n("eeVq")(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),l=o(n);return a?a(r,t,l):s.call(r,t,l)}})},"41y4":function(e,t,n){(function(e){angular.module("ui.calendar",[]).constant("uiCalendarConfig",{calendars:{}}).controller("uiCalendarCtrl",["$scope","$locale",function(e,t){var n=e.eventSources,r=e.calendarWatchEvent?e.calendarWatchEvent:angular.noop,i=1;this.eventFingerprint=function(e){e._id||(e._id=i++);var t=r({event:e})||"",n=moment.isMoment(e.start)?e.start.unix():e.start?moment(e.start).unix():"",o=moment.isMoment(e.end)?e.end.unix():e.end?moment(e.end).unix():"";return""+e._id+(e.id||"")+(e.title||"")+(e.url||"")+n+o+(e.allDay||"")+(e.className||"")+t};var o=1,a=1;this.sourceFingerprint=function(e){var t=""+(e.__id||(e.__id=o++)),n=angular.isObject(e)&&e.events;return n&&(t=t+"-"+(n.__id||(n.__id=a++))),t},this.allEvents=function(){for(var e=[],t=0,r=n.length;t<r;t++){var i=n[t];if(angular.isArray(i))e.push(i);else if(angular.isObject(i)&&angular.isArray(i.events)){var o={};for(var a in i)"_id"!==a&&"events"!==a&&(o[a]=i[a]);for(var s=0;s<i.events.length;s++)angular.extend(i.events[s],o);e.push(i.events)}}return Array.prototype.concat.apply([],e)},this.changeWatcher=function(e,t){var n,r=function(){for(var n,r,i=angular.isFunction(e)?e():e,a=[],s=0,l=i.length;s<l;s++)r=i[s],n=t(r),o[n]=r,a.push(n);return a},i=function(e,t){var n,r,i=[],o={};for(n=0,r=t.length;n<r;n++)o[t[n]]=!0;for(n=0,r=e.length;n<r;n++)o[e[n]]||i.push(e[n]);return i},o={};return n={subscribe:function(e,a){e.$watch(r,function(e,r){!(a&&!1===a(e,r))&&function(e,r){var a,s,l,u,c={},f=i(r,e);for(a=0,s=f.length;a<s;a++){var d=f[a];l=o[d],delete o[d];var p=t(l);p===d?n.onRemoved(l):(c[p]=d,n.onChanged(l))}var h=i(e,r);for(a=0,s=h.length;a<s;a++)u=h[a],l=o[u],c[u]||n.onAdded(l)}(e,r)},!0)},onAdded:angular.noop,onChanged:angular.noop,onRemoved:angular.noop}},this.getFullCalendarConfig=function(t,n){var r={};return angular.extend(r,n),angular.extend(r,t),angular.forEach(r,function(t,n){var i;"function"==typeof t&&(r[n]=(i=r[n],function(){if(e.$root.$$phase)return i.apply(this,arguments);var t=arguments,n=this;return e.$root.$apply(function(){return i.apply(n,t)})}))}),r},this.getLocaleConfig=function(e){if(!e.lang||e.useNgLocale){var n=function(e){var t,n;for(n in t=[],e)t[n]=e[n];return t},r=t.DATETIME_FORMATS;return{monthNames:n(r.MONTH),monthNamesShort:n(r.SHORTMONTH),dayNames:n(r.DAY),dayNamesShort:n(r.SHORTDAY)}}return{}}}]).directive("uiCalendar",["uiCalendarConfig",function(t){return{restrict:"A",scope:{eventSources:"=ngModel",calendarWatchEvent:"&"},controller:"uiCalendarCtrl",link:function(n,r,i,o){var a,s=n.eventSources,l=!1,u=o.changeWatcher(s,o.sourceFingerprint),c=o.changeWatcher(o.allEvents,o.eventFingerprint),f=null;n.destroyCalendar=function(){a&&a.fullCalendar&&a.fullCalendar("destroy"),a=i.calendar?t.calendars[i.calendar]=e(r).html(""):e(r).html("")},n.initCalendar=function(){a||(a=angular.element(r).html("")),a.fullCalendar(f),i.calendar&&(t.calendars[i.calendar]=a)},n.$on("$destroy",function(){n.destroyCalendar()}),u.onAdded=function(e){a&&a.fullCalendar&&(a.fullCalendar(f),i.calendar&&(t.calendars[i.calendar]=a),a.fullCalendar("addEventSource",e),l=!0)},u.onRemoved=function(e){a&&a.fullCalendar&&(a.fullCalendar("removeEventSource",e),l=!0)},u.onChanged=function(){a&&a.fullCalendar&&(a.fullCalendar("refetchEvents"),l=!0)},c.onAdded=function(e){a&&a.fullCalendar&&a.fullCalendar("renderEvent",e,!!e.stick)},c.onRemoved=function(e){a&&a.fullCalendar&&a.fullCalendar("removeEvents",e._id)},c.onChanged=function(e){if(a&&a.fullCalendar)for(var t=a.fullCalendar("clientEvents",e._id),n=0;n<t.length;n++){var r=t[n];r=angular.extend(r,e),a.fullCalendar("updateEvent",r)}},u.subscribe(n),c.subscribe(n,function(){if(!0===l)return l=!1,!1}),n.$watch(function(){var e,r=i.uiCalendar?n.$parent.$eval(i.uiCalendar):{};e=o.getFullCalendarConfig(r,t);var a=o.getLocaleConfig(e);angular.extend(a,e),f={eventSources:s},angular.extend(f,a),f.calendars=null;var l={};for(var u in f)"eventSources"!==u&&(l[u]=f[u]);return JSON.stringify(l)},function(e,t){e!==t?(n.destroyCalendar(),n.initCalendar()):e&&angular.isUndefined(a)&&n.initCalendar()})}}}])}).call(this,n("EVdn"))},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),i=n("XKFU"),o=n("KroJ"),a=n("3Lyj"),s=n("Z6vF"),l=n("SlkY"),u=n("9gX7"),c=n("0/R4"),f=n("eeVq"),d=n("XMVh"),p=n("fyDq"),h=n("Xbzi");e.exports=function(e,t,n,g,m,v){var y=r[e],b=y,w=m?"set":"add",$=b&&b.prototype,E={},S=function(e){var t=$[e];o($,e,"delete"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||$.forEach&&!f(function(){(new b).entries().next()}))){var x=new b,C=x[w](v?{}:-0,1)!=x,T=f(function(){x.has(1)}),k=d(function(e){new b(e)}),_=!v&&f(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});k||((b=t(function(t,n){u(t,b,e);var r=h(new y,t,b);return void 0!=n&&l(n,m,r[w],r),r})).prototype=$,$.constructor=b),(T||_)&&(S("delete"),S("has"),m&&S("get")),(_||C)&&S(w),v&&$.clear&&delete $.clear}else b=g.getConstructor(t,e,m,w),a(b.prototype,n),s.NEED=!0;return p(b,e),E[e]=b,i(i.G+i.W+i.F*(b!=y),E),v||g.setStrong(b,e,m),b}},"4R4u":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"4dOw":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"4fFP":function(e,t,n){"use strict";(function(e){var t,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(t=e).fn.brickify=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=function(e){if(1!==e.data("colNum")){var t=e.data("bricksMap"),n=0,r=!0,i=!1,o=void 0;try{for(var a,s=t.cols[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l.height>n&&(n=l.height)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}e.css("height",n+"px")}else e.css("height","auto")},i=function(e){var t=void 0,n=void 0,r=void 0;for(r=0;r<e.cols.length;r++)(void 0===t||e.cols[r].height<t)&&(t=e.cols[r].height,n=r);return n||0},o=function(){return u.each(function(){var e,n,o,s=t(this),l=s.data("brickifyOptions"),u=void 0,c=void 0,f=void 0,d=(e=l.gridSystem,n=t(window).width(),e.LG&&n>=e.LG.width?e.LG.columns:e.MD&&n>=e.MD.width?e.MD.columns:e.SM&&n>=e.SM.width?e.SM.columns:1),p=function(e){var t={cols:[]},n=void 0;for(n=0;n<e;n++)t.cols.push({elements:[],height:0});return t}(d);s.data("colNum",d),s.data("bricksMap",p),o=s,l.cssTransition&&o.children().each(function(e,n){t(n).css({WebkitTransition:"all 0.2s ease-in-out",MozTransition:"all 0.2s ease-in-out",MsTransition:"all 0.2s ease-in-out",OTransition:"all 0.2s ease-in-out",transition:"all 0.2s ease-in-out"})}),d>1?(s.css("position","relative"),s.children().each(function(e,n){u=function(e,t,n){return t.preserveOrder?n%e.cols.length:i(e)}(p,l,e),c=100/d*u,n=t(n).css({position:"absolute",left:c+"%",width:100/d+"%"}),f={el:n,h:n.outerHeight(),left:c,top:0},p.cols[u].elements.length>0&&(f.top=p.cols[u].height),n.css({top:f.top+"px"}),p.cols[u].elements.push(f),p.cols[u].height+=f.h}),r(s)):1===d&&(s.children().each(function(e,n){n=t(n).css({width:"100%",position:"relative",left:"unset",top:"unset"})}),r(s)),l.rebuildOnResize&&t(window).off("resize",a).on("resize",a)}),u},a=function(){clearTimeout(l),l=setTimeout(function(){var e=t(window).width();s!==e&&(s=e,o())},66)},s=t(window).width(),l=void 0,u=this;switch(void 0===e?"undefined":n(e)){case"object":var c=t.extend({},t.fn.brickify.defaults,e);return u.each(function(){t(this).data("brickifyOptions",c)}),o();case"string":return function(e){switch(e){case"reload":return o();case"destroy":return void t(window).off("resize",a)}}(e)}},t.fn.brickify.defaults={gridSystem:{LG:{width:1100,columns:4},MD:{width:768,columns:3},SM:{width:480,columns:2}},rebuildOnResize:!1,cssTransition:!1,preserveOrder:!1}}).call(this,n("EVdn"))},"5Pf0":function(e,t,n){var r=n("S/j/"),i=n("OP3Y");n("Xtr8")("getPrototypeOf",function(){return function(e){return i(r(e))}})},"694e":function(e,t,n){var r=n("EemH"),i=n("XKFU"),o=n("y3w9");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},"69bn":function(e,t,n){var r=n("y3w9"),i=n("2OiF"),o=n("K0xU")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},"6AQ9":function(e,t,n){"use strict";var r=n("XKFU"),i=n("8a7r");r(r.S+r.F*n("eeVq")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},"6FMO":function(e,t,n){var r=n("0/R4"),i=n("EWmC"),o=n("K0xU")("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},"7DDg":function(e,t,n){"use strict";if(n("nh4g")){var r=n("LQAc"),i=n("dyZX"),o=n("eeVq"),a=n("XKFU"),s=n("D4iV"),l=n("7Qtz"),u=n("m0Pp"),c=n("9gX7"),f=n("RjD/"),d=n("Mukb"),p=n("3Lyj"),h=n("RYi7"),g=n("ne8i"),m=n("Cfrj"),v=n("d/Gc"),y=n("apmT"),b=n("aagx"),w=n("I8a+"),$=n("0/R4"),E=n("S/j/"),S=n("M6Qj"),x=n("Kuth"),C=n("OP3Y"),T=n("kJMx").f,k=n("J+6e"),_=n("ylqs"),A=n("K0xU"),O=n("CkkT"),D=n("w2a5"),M=n("69bn"),N=n("yt8O"),I=n("hPIQ"),F=n("XMVh"),R=n("elZq"),P=n("Nr18"),L=n("upKx"),j=n("hswa"),U=n("EemH"),B=j.f,H=U.f,z=i.RangeError,V=i.TypeError,Y=i.Uint8Array,W=Array.prototype,q=l.ArrayBuffer,K=l.DataView,G=O(0),X=O(2),Z=O(3),J=O(4),Q=O(5),ee=O(6),te=D(!0),ne=D(!1),re=N.values,ie=N.keys,oe=N.entries,ae=W.lastIndexOf,se=W.reduce,le=W.reduceRight,ue=W.join,ce=W.sort,fe=W.slice,de=W.toString,pe=W.toLocaleString,he=A("iterator"),ge=A("toStringTag"),me=_("typed_constructor"),ve=_("def_constructor"),ye=s.CONSTR,be=s.TYPED,we=s.VIEW,$e=O(1,function(e,t){return Te(M(e,e[ve]),t)}),Ee=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Se=!!Y&&!!Y.prototype.set&&o(function(){new Y(1).set({})}),xe=function(e,t){var n=h(e);if(n<0||n%t)throw z("Wrong offset!");return n},Ce=function(e){if($(e)&&be in e)return e;throw V(e+" is not a typed array!")},Te=function(e,t){if(!($(e)&&me in e))throw V("It is not a typed array constructor!");return new e(t)},ke=function(e,t){return _e(M(e,e[ve]),t)},_e=function(e,t){for(var n=0,r=t.length,i=Te(e,r);r>n;)i[n]=t[n++];return i},Ae=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Oe=function(e){var t,n,r,i,o,a,s=E(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,d=k(s);if(void 0!=d&&!S(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),i=Te(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},De=function(){for(var e=0,t=arguments.length,n=Te(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!Y&&o(function(){pe.call(new Y(1))}),Ne=function(){return pe.apply(Me?fe.call(Ce(this)):Ce(this),arguments)},Ie={copyWithin:function(e,t){return L.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return P.apply(Ce(this),arguments)},filter:function(e){return ke(this,X(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){G(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Ce(this),arguments)},lastIndexOf:function(e){return ae.apply(Ce(this),arguments)},map:function(e){return $e(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ce(this),arguments)},reduceRight:function(e){return le.apply(Ce(this),arguments)},reverse:function(){for(var e,t=Ce(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),r=n.length,i=v(e,r);return new(M(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:v(t,r))-i))}},Fe=function(e,t){return ke(this,fe.call(Ce(this),e,t))},Re=function(e){Ce(this);var t=xe(arguments[1],1),n=this.length,r=E(e),i=g(r.length),o=0;if(i+t>n)throw z("Wrong length!");for(;o<i;)this[t+o]=r[o++]},Pe={entries:function(){return oe.call(Ce(this))},keys:function(){return ie.call(Ce(this))},values:function(){return re.call(Ce(this))}},Le=function(e,t){return $(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},je=function(e,t){return Le(e,t=y(t,!0))?f(2,e[t]):H(e,t)},Ue=function(e,t,n){return!(Le(e,t=y(t,!0))&&$(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};ye||(U.f=je,j.f=Ue),a(a.S+a.F*!ye,"Object",{getOwnPropertyDescriptor:je,defineProperty:Ue}),o(function(){de.call({})})&&(de=pe=function(){return ue.call(this)});var Be=p({},Ie);p(Be,Pe),d(Be,he,Pe.values),p(Be,{slice:Fe,set:Re,constructor:function(){},toString:de,toLocaleString:Ne}),Ae(Be,"buffer","b"),Ae(Be,"byteOffset","o"),Ae(Be,"byteLength","l"),Ae(Be,"length","e"),B(Be,ge,{get:function(){return this[be]}}),e.exports=function(e,t,n,l){var u=e+((l=!!l)?"Clamped":"")+"Array",f="get"+e,p="set"+e,h=i[u],v=h||{},y=h&&C(h),b=!h||!s.ABV,E={},S=h&&h.prototype,k=function(e,n){B(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[f](n*t+r.o,Ee)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](n*t+i.o,r,Ee)}(this,n,e)},enumerable:!0})};b?(h=n(function(e,n,r,i){c(e,h,u,"_d");var o,a,s,l,f=0,p=0;if($(n)){if(!(n instanceof q||"ArrayBuffer"==(l=w(n))||"SharedArrayBuffer"==l))return be in n?_e(h,n):Oe.call(h,n);o=n,p=xe(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw z("Wrong length!");if((a=v-p)<0)throw z("Wrong length!")}else if((a=g(i)*t)+p>v)throw z("Wrong length!");s=a/t}else s=m(n),o=new q(a=s*t);for(d(e,"_d",{b:o,o:p,l:a,e:s,v:new K(o)});f<s;)k(e,f++)}),S=h.prototype=x(Be),d(S,"constructor",h)):o(function(){h(1)})&&o(function(){new h(-1)})&&F(function(e){new h,new h(null),new h(1.5),new h(e)},!0)||(h=n(function(e,n,r,i){var o;return c(e,h,u),$(n)?n instanceof q||"ArrayBuffer"==(o=w(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,xe(r,t),i):void 0!==r?new v(n,xe(r,t)):new v(n):be in n?_e(h,n):Oe.call(h,n):new v(m(n))}),G(y!==Function.prototype?T(v).concat(T(y)):T(v),function(e){e in h||d(h,e,v[e])}),h.prototype=S,r||(S.constructor=h));var _=S[he],A=!!_&&("values"==_.name||void 0==_.name),O=Pe.values;d(h,me,!0),d(S,be,u),d(S,we,!0),d(S,ve,h),(l?new h(1)[ge]==u:ge in S)||B(S,ge,{get:function(){return u}}),E[u]=h,a(a.G+a.W+a.F*(h!=v),E),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o(function(){v.of.call(h,1)}),u,{from:Oe,of:De}),"BYTES_PER_ELEMENT"in S||d(S,"BYTES_PER_ELEMENT",t),a(a.P,u,Ie),R(u),a(a.P+a.F*Se,u,{set:Re}),a(a.P+a.F*!A,u,Pe),r||S.toString==de||(S.toString=de),a(a.P+a.F*o(function(){new h(1).slice()}),u,{slice:Fe}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!o(function(){S.toLocaleString.call([1,2])})),u,{toLocaleString:Ne}),I[u]=A?_:O,r||A||d(S,he,O)}}else e.exports=function(){}},"7Qtz":function(e,t,n){"use strict";var r=n("dyZX"),i=n("nh4g"),o=n("LQAc"),a=n("D4iV"),s=n("Mukb"),l=n("3Lyj"),u=n("eeVq"),c=n("9gX7"),f=n("RYi7"),d=n("ne8i"),p=n("Cfrj"),h=n("kJMx").f,g=n("hswa").f,m=n("Nr18"),v=n("fyDq"),y="prototype",b="Wrong index!",w=r.ArrayBuffer,$=r.DataView,E=r.Math,S=r.RangeError,x=r.Infinity,C=w,T=E.abs,k=E.pow,_=E.floor,A=E.log,O=E.LN2,D=i?"_b":"buffer",M=i?"_l":"byteLength",N=i?"_o":"byteOffset";function I(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?k(2,-24)-k(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===x?(i=e!=e?1:0,r=l):(r=_(A(e)/O),e*(o=k(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?c/o:c*k(2,1-u))*o>=2&&(r++,o/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*o-1)*k(2,t),r+=u):(i=e*k(2,u-1)*k(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function F(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:u?-x:x;r+=k(2,t),c-=a}return(u?-1:1)*r*k(2,c-t)}function R(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function P(e){return[255&e]}function L(e){return[255&e,e>>8&255]}function j(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function U(e){return I(e,52,8)}function B(e){return I(e,23,4)}function H(e,t,n){g(e[y],t,{get:function(){return this[n]}})}function z(e,t,n,r){var i=p(+n);if(i+t>e[M])throw S(b);var o=e[D]._b,a=i+e[N],s=o.slice(a,a+t);return r?s:s.reverse()}function V(e,t,n,r,i,o){var a=p(+n);if(a+t>e[M])throw S(b);for(var s=e[D]._b,l=a+e[N],u=r(+i),c=0;c<t;c++)s[l+c]=u[o?c:t-c-1]}if(a.ABV){if(!u(function(){w(1)})||!u(function(){new w(-1)})||u(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var Y,W=(w=function(e){return c(this,w),new C(p(e))})[y]=C[y],q=h(C),K=0;q.length>K;)(Y=q[K++])in w||s(w,Y,C[Y]);o||(W.constructor=w)}var G=new $(new w(2)),X=$[y].setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||l($[y],{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=p(e);this._b=m.call(new Array(t),0),this[M]=t},$=function(e,t,n){c(this,$,"DataView"),c(e,w,"DataView");var r=e[M],i=f(t);if(i<0||i>r)throw S("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw S("Wrong length!");this[D]=e,this[N]=i,this[M]=n},i&&(H(w,"byteLength","_l"),H($,"buffer","_b"),H($,"byteLength","_l"),H($,"byteOffset","_o")),l($[y],{getInt8:function(e){return z(this,1,e)[0]<<24>>24},getUint8:function(e){return z(this,1,e)[0]},getInt16:function(e){var t=z(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=z(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return R(z(this,4,e,arguments[1]))},getUint32:function(e){return R(z(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return F(z(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return F(z(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){V(this,1,e,P,t)},setUint8:function(e,t){V(this,1,e,P,t)},setInt16:function(e,t){V(this,2,e,L,t,arguments[2])},setUint16:function(e,t){V(this,2,e,L,t,arguments[2])},setInt32:function(e,t){V(this,4,e,j,t,arguments[2])},setUint32:function(e,t){V(this,4,e,j,t,arguments[2])},setFloat32:function(e,t){V(this,4,e,B,t,arguments[2])},setFloat64:function(e,t){V(this,8,e,U,t,arguments[2])}});v(w,"ArrayBuffer"),v($,"DataView"),s($[y],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=$},"7VC1":function(e,t,n){"use strict";var r=n("XKFU"),i=n("Lgjv"),o=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},"7VPu":function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("lPiR"),n("WYAk"),r.HmacSHA256)},"7h0T":function(e,t,n){var r=n("XKFU");r(r.S,"Number",{isNaN:function(e){return e!=e}})},"7lmw":function(e,t,n){},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),i=n("0/R4"),o=n("MfQN"),a=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),l=function(){var r=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(l.prototype=t.prototype),l}},"8a7r":function(e,t,n){"use strict";var r=n("hswa"),i=n("RjD/");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"8oxB":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"8uk5":function(e,t,n){},"91GP":function(e,t,n){var r=n("XKFU");r(r.S+r.F,"Object",{assign:n("czNK")})},"9AAn":function(e,t,n){"use strict";var r=n("wmvG"),i=n("s5qY");e.exports=n("4LiD")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},"9HHT":function(e,t,n){var r;void 0===(r=function(){return function(){function e(e){"use strict";var t;if(1===angular.version.major&&4<=angular.version.minor){var n=e.get("$cookies");t={get:function(e){return n.get(e)},put:function(e,t){n.put(e,t,{samesite:"lax"})}}}else{var r=e.get("$cookieStore");t={get:function(e){return r.get(e)},put:function(e,t){r.put(e,t)}}}return{get:function(e){return t.get(e)},set:function(e,n){t.put(e,n)},put:function(e,n){t.put(e,n)}}}return e.$inject=["t"],e.$inject=["$injector"],angular.module("pascalprecht.translate").factory("$translateCookieStorage",e),e.displayName="$translateCookieStorage","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},"9P93":function(e,t,n){var r=n("XKFU"),i=Math.imul;r(r.S+r.F*n("eeVq")(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(e,t,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},"9XZr":function(e,t,n){"use strict";var r=n("XKFU"),i=n("Lgjv"),o=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},"9Yyp":function(e,t){!function(){function e(e,t){angular.element(t).bind("resize",function(){e.$emit("resizeMsg")})}angular.module("googlechart",[]).run(e),e.$inject=["$rootScope","$window"]}(),function(){angular.module("googlechart").factory("FormatManager",function(){return function(e){var t=this,n={};function r(r,i,o){var a;if(angular.isArray(o[r])&&!angular.equals(o[r],n[r]))if(n[r]=o[r],t.iFormats[r]=[],"color"===r)!function(n){var r,i,o,a;for(r=0;r<n.color.length;r++){for(i=new e.visualization.ColorFormat,o=0;o<n.color[r].formats.length;o++)void 0!==(a=n.color[r].formats[o]).fromBgColor&&void 0!==a.toBgColor?i.addGradientRange(a.from,a.to,a.color,a.fromBgColor,a.toBgColor):i.addRange(a.from,a.to,a.color,a.bgcolor);t.iFormats.color.push(i)}}(o);else for(a=0;a<o[r].length;a++)t.iFormats[r].push(new i(o[r][a]))}function i(t,n){var r=t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()+"Format";return e.visualization.hasOwnProperty(r)?google.visualization[r]:angular.isDefined(n)&&n.hasOwnProperty(t)?n[t]:void 0}t.iFormats={},t.applyFormats=function(e,n,o){var a,s,l=!1;if(!angular.isDefined(n)||!angular.isDefined(e))return{requiresHtml:!1};for(a in n)if(n.hasOwnProperty(a)){if(s=i(a,o),!angular.isFunction(s))continue;r(a,s,n),"arrow"!==a&&"bar"!==a&&"color"!==a||(l=!0)}return function(e,n){var r,i;for(i in e)if(e.hasOwnProperty(i))for(r=0;r<t.iFormats[i].length;r++)e[i][r].columnNum<n.getNumberOfColumns()&&t.iFormats[i][r].format(n,e[i][r].columnNum)}(n,e),{requiresHtml:l}}}})}(),function(){function e(e,t,n,r,i,o,a,s){var l,u,c=this;function f(){l()}function d(){d.triggered||void 0===c.chart?void 0!==c.chart&&(i.cancel(d.recallTimeout),d.recallTimeout=i(d,10)):(d.triggered=!0,i(g,0,!0))}function p(){u.getReadyPromise().then(d)}function h(){u.draw(),d.triggered=!1}function g(){u.setup(t,c.chart.type,c.chart.data,c.chart.view,c.chart.options,c.chart.formatters,c.chart.customFormatters),i(h)}function m(){c.chart=e.$eval(n.chart),p()}function v(){var t=e.$eval(n.chart);if(angular.isDefined(t)&&angular.isObject(t))return{customFormatters:t.customFormatters,data:t.data,formatters:t.formatters,options:t.options,type:t.type,view:t.view}}u=new s,c.registerChartListener=u.registerChartListener,c.registerWrapperListener=u.registerWrapperListener,c.registerServiceListener=u.registerServiceListener,e.$watch(v,m,!0),l=a.$on("resizeMsg",p),e.$on("$destroy",f)}angular.module("googlechart").controller("GoogleChartController",e),e.$inject=["$scope","$element","$attrs","$injector","$timeout","$window","$rootScope","GoogleChartService"]}(),function(){angular.module("googlechart").directive("agcBeforeDraw",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t){e.$apply(function(){e.$eval(n.agcBeforeDraw,{chartWrapper:t})})}i.$inject=["chartWrapper"],r.registerServiceListener("beforeDraw",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnClick",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t,r,i){e.$apply(function(){e.$eval(n.agcOnClick,{args:t,chart:r,chartWrapper:i})})}i.$inject=["args","chart","chartWrapper"],r.registerChartListener("click",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnError",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t,r,i){var o={chartWrapper:t,chart:r,args:i,error:i[0],err:i[0],id:i[0].id,message:i[0].message};e.$apply(function(){e.$eval(n.agcOnError,o)})}i.$inject=["chartWrapper","chart","args"],r.registerWrapperListener("error",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnMouseout",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t,r,i){var o={chartWrapper:i,chart:r,args:t,column:t[0].column,row:t[0].row};e.$apply(function(){e.$eval(n.agcOnMouseout,o)})}i.$inject=["args","chart","chartWrapper"],r.registerChartListener("onmouseout",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnMouseover",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t,r,i){var o={chartWrapper:i,chart:r,args:t,column:t[0].column,row:t[0].row};e.$apply(function(){e.$eval(n.agcOnMouseover,o)})}i.$inject=["args","chart","chartWrapper"],r.registerChartListener("onmouseover",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnReady",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t){e.$apply(function(){e.$eval(n.agcOnReady,{chartWrapper:t})})}i.$inject=["chartWrapper"],r.registerWrapperListener("ready",i,this)}}})}(),function(){angular.module("googlechart").directive("agcOnSelect",function(){return{restrict:"A",scope:!1,require:"googleChart",link:function(e,t,n,r){function i(t,r){var i={selectedItems:r.getSelection()};i.selectedItem=i.selectedItems[0],i.chartWrapper=t,i.chart=r,e.$apply(function(){e.$eval(n.agcOnSelect,i)})}i.$inject=["chartWrapper","chart"],r.registerWrapperListener("select",i,this)}}})}(),function(){function e(){return{restrict:"A",scope:!1,controller:"GoogleChartController"}}angular.module("googlechart").directive("googleChart",e),e.$inject=[]}(),angular.module("googlechart").value("googleChartApiConfig",{version:"1",optionalSettings:{packages:["corechart"]}}),function(){function e(e,t,n,r){n.optionalSettings=n.optionalSettings||{};var i=t.defer(),o=function(){var t={callback:function(){var t=n.optionalSettings.callback;e.$apply(function(){i.resolve(google)}),angular.isFunction(t)&&t.call(this)}};t=angular.extend({},n.optionalSettings,t),window.google.load("visualization",n.version,t)},a=document.getElementsByTagName("head")[0],s=document.createElement("script");return s.setAttribute("type","text/javascript"),s.src=r,s.addEventListener?s.addEventListener("load",o,!1):s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,o())},a.appendChild(s),i.promise}angular.module("googlechart").factory("googleChartApiPromise",e),e.$inject=["$rootScope","$q","googleChartApiConfig","googleJsapiUrl"]}(),function(){function e(e,t,n,r){return function(){var i=this;i.draw=function(){b&&(a=a.then(C)),a=a.then((function(e){var t;if(angular.isArray(w[e]))for(t=0;t<w[e].length;t++)w[e][t]()}("beforeDraw"),void l.draw()))},i.getChartWrapper=function(){return l},i.getData=function(){var e=f||{};return angular.copy(e)},i.getElement=function(){return u},i.getOption=function(e){return T(p||{},e)},i.getOptions=function(){var e=p||{};return angular.copy(e)},i.getView=function(){var e=d||{};return angular.copy(e)},i.getReadyPromise=function(){return y.promise},i.isApiReady=function(){return s},i.registerChartListener=function(e,t,n){return _(E,e,t,n)},i.registerServiceListener=function(e,t,n){return _(w,e,t,n)},i.registerWrapperListener=O,i.setData=function(e){angular.isDefined(e)&&(f=angular.copy(e),b=!0)},i.setElement=function(e){angular.isElement(e)&&u!==e&&(u=e,l=null,b=!0)},i.setOption=function(e,t){T(p=p||{},e,angular.copy(t)),b=!0},i.setOptions=function(e){angular.isDefined(e)&&(p=angular.copy(e),b=!0)},i.setup=function(e,t,n,r,i,o,s){u=e||u,c=t||c,f=n||f,d=r||d,p=i||p,h=o||h,v=s||v,a=a.then(C)},i.setView=function(e){d=angular.copy(e)};var o,a,s,l,u,c,f,d,p,h,g,m,v,y,b=!0,w={},$={},E={};function S(e){return e}function x(e){return o=e,s=!0,y.resolve(),e}function C(){angular.isDefined(l)?(l.setChartType(c),l.setDataTable(f),l.setView(d),l.setOptions(p)):A(l=new o.visualization.ChartWrapper({chartType:c,dataTable:f,view:d,options:p,containerId:u[0]}),$),m||(m=new r(o)),m.applyFormats(l.getDataTable(),h,v).requiresHtml&&l.setOption("allowHtml",!0),b=!1}function T(e,t,n){for(var r=t?t.split("."):[];r.length&&e;){var i=r.shift();new RegExp("(.+)\\[([0-9]*)\\]").exec(i),n&&(void 0===e[i]&&(e[i]={}),0===r.length&&(e[i]=n)),e=e[i]}return e}function k(){g!==l.getChart()&&A(g=l.getChart(),E)}function _(e,n,r,i){var a=function(){var e={chartWrapper:l,chart:l.getChart(),args:arguments};t.invoke(r,i||this,e)};if(angular.isDefined(e)&&angular.isObject(e))return angular.isArray(e[n])||(e[n]=[]),e[n].push(a),function(){angular.isDefined(a.googleListenerHandle)&&o.visualization.events.removeListener(a.googleListenerHandle);var t=e[n].indexOf(a);e[n].splice(t,1),0===e[n].length&&(e[n]=void 0)}}function A(e,t){for(var n in t)if(t.hasOwnProperty(n)&&angular.isArray(t[n]))for(var r=0;r<t[n].length;r++)angular.isFunction(t[n][r])&&(t[n][r].googleListenerHandle=o.visualization.events.addListener(e,n,t[n][r]))}function O(e,t,n){return _($,e,t,n)}s=!1,y=n.defer(),a=e.then(x).catch(S),O("ready",k,i)}}angular.module("googlechart").factory("GoogleChartService",e),e.$inject=["googleChartApiPromise","$injector","$q","FormatManager"]}(),function(){angular.module("googlechart").provider("googleJsapiUrl",function(){var e="https:",t="//www.google.com/jsapi";this.setProtocol=function(t){e=t},this.setUrl=function(e){t=e},this.$get=function(){return(e||"")+t}})}()},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"9hYE":function(e,t){angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","gettextFallbackLanguage","$http","$cacheFactory","$interpolate","$rootScope",function(e,t,n,r,i,o){var a,s="$$noContext",l='<span id="test" title="test" class="tested">test</span>',u=angular.element("<span>"+l+"</span>").html()!==l,c=function(e){return a.debug&&a.currentLanguage!==a.baseLanguage?a.debugPrefix+e:e},f=function(e){return a.showTranslatedMarkers?a.translatedMarkerPrefix+e+a.translatedMarkerSuffix:e};function d(){o.$broadcast("gettextLanguageChanged")}return a={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:r("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,d()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(t,n){this.strings[t]||(this.strings[t]={});var r=e(t,1);for(var i in n){var o=n[i];if(u&&(i=angular.element("<span>"+i+"</span>").html()),angular.isString(o)||angular.isArray(o)){var a={};a[s]=o,o=a}for(var l in this.strings[t][i]||(this.strings[t][i]={}),o){var c=o[l];angular.isArray(c)?this.strings[t][i][l]=c:(this.strings[t][i][l]=[],this.strings[t][i][l][r]=c)}}d()},getStringFormFor:function(t,n,r,i){return t?(((this.strings[t]||{})[n]||{})[i||s]||[])[e(t,r)]:null},getString:function(e,n,r){var o=t(this.currentLanguage);return e=this.getStringFormFor(this.currentLanguage,e,1,r)||this.getStringFormFor(o,e,1,r)||c(e),e=n?i(e)(n):e,f(e)},getPlural:function(e,n,r,o,a){var s=t(this.currentLanguage);return n=this.getStringFormFor(this.currentLanguage,n,e,a)||this.getStringFormFor(s,n,e,a)||c(1===e?n:r),o&&(o.$count=e,n=i(n)(o)),f(n)},loadRemote:function(e){return n({method:"GET",url:e,cache:a.cache}).then(function(e){var t=e.data;for(var n in t)a.setStrings(n,t[n]);return e})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window","gettextUtil",function(e,t,n,r,i,o){var a=parseInt((/msie (\d+)/i.exec(i.navigator.userAgent)||[])[1],10),s="translateParams";function l(e,t,n){var r=Object.keys(t).filter(function(e){return o.startsWith(e,s)&&e!==s});if(!r.length)return null;var i=e.$new(),a=[];return r.forEach(function(r){var l=e.$watch(t[r],function(e){var t,a=(t=r,o.lcFirst(t.replace(s,"")));i[a]=e,n(i)});a.push(l)}),e.$on("$destroy",function(){a.forEach(function(e){e()}),i.$destroy()}),i}return{restrict:"AE",terminal:!0,compile:function(i,s){var u=s.translate;if(!u||!u.match(/^yes|no$/i)){o.assert(!s.translatePlural||s.translateN,"translate-n","translate-plural"),o.assert(!s.translateN||s.translatePlural,"translate-plural","translate-n");var c=o.trim(i.html()),f=s.translatePlural,d=s.translateContext;return a<=8&&"\x3c!--IE fix--\x3e"===c.slice(-13)&&(c=c.slice(0,-13)),{post:function(i,a,s){var u=t(s.translateN),p=null,h=!0;function g(t){var s;t=t||null,f?((i=p||(p=i.$new())).$count=u(i),s=e.getPlural(i.$count,c,f,null,d)):s=e.getString(c,null,d);var l=a.contents();if(l||s)if(s!==o.trim(l.html())){var g=angular.element("<span>"+s+"</span>");r(g.contents())(t||i);var m=g.contents();n.enter(m,a),n.leave(l)}else h&&r(l)(i)}var m=l(i,s,g);g(m),h=!1,s.translateN&&i.$watch(s.translateN,function(){g(m)}),i.$on("gettextLanguageChanged",function(){g(m)})}}}}}}]),angular.module("gettext").factory("gettextFallbackLanguage",function(){var e={},t=/([^_]+)_[^_]+$/;return function(n){if(e[n])return e[n];var r=t.exec(n);return r?(e[n]=r[1],r[1]):null}}),angular.module("gettext").filter("translate",["gettextCatalog",function(e){function t(t,n){return e.getString(t,null,n)}return t.$stateful=!0,t}]),angular.module("gettext").factory("gettextPlurals",function(){var e={pt_BR:"pt_BR","pt-BR":"pt_BR"};return function(t,n){switch(function(t){return e[t]||(e[t]=t.split(/\-|_/).shift()),e[t]}(t)){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return n%10!=1||n%100==11?1:0;case"jv":return 0!=n?1:0;case"mk":return 1==n||n%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return 1<n?1:0;case"lv":return n%10==1&&n%100!=11?0:0!=n?1:2;case"lt":return n%10==1&&n%100!=11?0:2<=n%10&&(n%100<10||20<=n%100)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return n%10==1&&n%100!=11?0:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?1:2;case"mnk":return 0==n?0:1==n?1:2;case"ro":return 1==n?0:0==n||0<n%100&&n%100<20?1:2;case"pl":return 1==n?0:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?1:2;case"cs":case"sk":return 1==n?0:2<=n&&n<=4?1:2;case"sl":return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0;case"mt":return 1==n?0:0==n||1<n%100&&n%100<11?1:10<n%100&&n%100<20?2:3;case"gd":return 1==n||11==n?0:2==n||12==n?1:2<n&&n<20?2:3;case"cy":return 1==n?0:2==n?1:8!=n&&11!=n?2:3;case"kw":return 1==n?0:2==n?1:3==n?2:3;case"ga":return 1==n?0:2==n?1:n<7?2:n<11?3:4;case"ar":return 0==n?0:1==n?1:2==n?2:3<=n%100&&n%100<=10?3:11<=n%100?4:5;default:return 1!=n?1:0}}}),angular.module("gettext").factory("gettextUtil",function(){return{trim:String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e},assert:function(e,t,n){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+n+" attribute.")},startsWith:function(e,t){return 0===e.indexOf(t)},lcFirst:function(e){return e.charAt(0).toLowerCase()+e.substr(1)}}})},"9kEb":function(module,exports,__webpack_require__){module.exports=function(angular){return angular.module("ngMap",[]),function(){"use strict";var e,t=function(t,n,r,i,o,a,s,l,u){e=a;var c=this,f=o.startSymbol(),d=o.endSymbol();c.mapOptions,c.mapEvents,c.eventListeners,c.addObject=function(e,t){if(c.map){c.map[e]=c.map[e]||{};var n=Object.keys(c.map[e]).length;c.map[e][t.id||n]=t,c.map instanceof google.maps.Map&&("infoWindows"!=e&&t.setMap&&t.setMap&&t.setMap(c.map),t.centered&&t.position&&c.map.setCenter(t.position),"markers"==e&&c.objectChanged("markers"),"customMarkers"==e&&c.objectChanged("customMarkers"))}},c.deleteObject=function(e,t){if(t.map){var n=t.map[e];for(var r in n)n[r]===t&&(google.maps.event.clearInstanceListeners(t),delete n[r]);t.map&&t.setMap&&t.setMap(null),"markers"==e&&c.objectChanged("markers"),"customMarkers"==e&&c.objectChanged("customMarkers")}},c.observeAttrSetObj=function(t,n,r){if(n.noWatcher)return!1;for(var i=e.getAttrsToObserve(t),o=0;o<i.length;o++){var a=i[o];n.$observe(a,s.observeAndSet(a,r))}},c.zoomToIncludeMarkers=function(){if(null!=c.map.markers&&Object.keys(c.map.markers).length>0||null!=c.map.customMarkers&&Object.keys(c.map.customMarkers).length>0){var e=new google.maps.LatLngBounds;for(var t in c.map.markers)e.extend(c.map.markers[t].getPosition());for(var n in c.map.customMarkers)e.extend(c.map.customMarkers[n].getPosition());c.mapOptions.maximumZoom&&(c.enableMaximumZoomCheck=!0),c.map.fitBounds(e)}},c.objectChanged=function(e){!c.map||"markers"!=e&&"customMarkers"!=e||"auto"!=c.map.zoomToIncludeMarkers||c.zoomToIncludeMarkers()},c.initializeMap=function(){var o=c.mapOptions,a=c.mapEvents,h=c.map;if(c.map=l.getMapInstance(n[0]),s.setStyle(n[0]),h){var g=e.filter(r),m=e.getOptions(g),v=e.getControlOptions(g);for(var y in o=angular.extend(m,v),h){var b=h[y];if("object"==typeof b)for(var w in b)c.addObject(y,b[w])}c.map.showInfoWindow=c.showInfoWindow,c.map.hideInfoWindow=c.hideInfoWindow}o.zoom=o.zoom&&!isNaN(o.zoom)?+o.zoom:15;var $=o.center,E=new RegExp(u(f)+".*"+u(d));if(!o.center||"string"==typeof $&&$.match(E))o.center=new google.maps.LatLng(0,0);else if("string"==typeof $&&$.match(/^[0-9.-]*,[0-9.-]*$/)){var S=parseFloat($.split(",")[0]),x=parseFloat($.split(",")[1]);o.center=new google.maps.LatLng(S,x)}else if(!($ instanceof google.maps.LatLng)){var C=o.center;delete o.center,s.getGeoLocation(C,o.geoLocationOptions).then(function(e){c.map.setCenter(e);var n=o.geoCallback;n&&i(n)(t)},function(){o.geoFallbackCenter&&c.map.setCenter(o.geoFallbackCenter)})}for(var T in c.map.setOptions(o),a){var k=a[T],_=google.maps.event.addListener(c.map,T,k);c.eventListeners[T]=_}c.observeAttrSetObj(p,r,c.map),c.singleInfoWindow=o.singleInfoWindow,google.maps.event.trigger(c.map,"resize"),google.maps.event.addListenerOnce(c.map,"idle",function(){s.addMap(c),o.zoomToIncludeMarkers&&c.zoomToIncludeMarkers(),t.map=c.map,t.$emit("mapInitialized",c.map),r.mapInitialized&&i(r.mapInitialized)(t,{map:c.map})}),o.zoomToIncludeMarkers&&o.maximumZoom&&google.maps.event.addListener(c.map,"zoom_changed",function(){1==c.enableMaximumZoomCheck&&(c.enableMaximumZoomCheck=!1,google.maps.event.addListenerOnce(c.map,"bounds_changed",function(){c.map.setZoom(Math.min(o.maximumZoom,c.map.getZoom()))}))})},t.google=google;var p=e.orgAttributes(n),h=e.filter(r),g=e.getOptions(h,{scope:t}),m=e.getControlOptions(h),v=angular.extend(g,m),y=e.getEvents(t,h);if(Object.keys(y).length,c.mapOptions=v,c.mapEvents=y,c.eventListeners={},g.lazyInit){if(r.id&&0===r.id.indexOf(f,0)&&-1!==r.id.indexOf(d,r.id.length-d.length))var b=r.id.slice(2,-2),w=i(b)(t);else var w=r.id;c.map={id:w},s.addMap(c)}else c.initializeMap();g.triggerResize&&google.maps.event.trigger(c.map,"resize"),n.bind("$destroy",function(){l.returnMapInstance(c.map),s.deleteMap(c)})};t.$inject=["t","n","o","r","a","i","s","p","c"],t.$inject=["$scope","$element","$attrs","$parse","$interpolate","Attr2MapOptions","NgMap","NgMapPool","escapeRegexpFilter"],angular.module("ngMap").controller("__MapController",t)}(),function(){"use strict";var e,t=function(t,r,i,o){o=o[0]||o[1];var a=e.orgAttributes(r),s=e.filter(i),l=e.getOptions(s,{scope:t}),u=e.getEvents(t,s),c=n(l,u);o.addObject("bicyclingLayers",c),o.observeAttrSetObj(a,i,c),r.bind("$destroy",function(){o.deleteObject("bicyclingLayers",c)})},n=function(e,t){var n=new google.maps.BicyclingLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n},r=function(n){return e=n,{restrict:"E",require:["?^map","?^ngMap"],link:t}};r.$inject=["n"],r.$inject=["Attr2MapOptions"],angular.module("ngMap").directive("bicyclingLayer",r)}(),function(){"use strict";var e,t=function(t,n,r,i,o){i=i[0]||i[1];var a=e.filter(r),s=e.getOptions(a,{scope:t}),l=e.getEvents(t,a),u=t.$new(),c=n[0].parentElement.removeChild(n[0]);for(var f in o(u,function(e){n.empty(),n.append(e),n.on("$destroy",function(){u.$destroy()})}),l)google.maps.event.addDomListener(c,f,l[f]);i.addObject("customControls",c);var d=s.position;i.map.controls[google.maps.ControlPosition[d]].push(c),n.bind("$destroy",function(){i.deleteObject("customControls",c)})},n=function(n,r){return e=n,{restrict:"E",require:["?^map","?^ngMap"],link:t,transclude:!0}};n.$inject=["o","r"],n.$inject=["Attr2MapOptions","NgMap"],angular.module("ngMap").directive("customControl",n)}(),function(){"use strict";var e,t,n,r,i=function(){for(var e="transform WebkitTransform MozTransform OTransform msTransform".split(" "),t=document.createElement("div"),n=0;n<e.length;n++)if(t&&void 0!==t.style[e[n]])return e[n];return!1}(),o=function(e){for(var t in e=e||{},this.el=document.createElement("div"),this.el.style.display="block",this.el.style.visibility="hidden",this.visible=!0,e)this[t]=e[t]},a=function(){(o.prototype=new google.maps.OverlayView).setContent=function(e,t){this.el.innerHTML=e,this.el.style.position="absolute",this.el.style.top=0,this.el.style.left=0,t&&n(angular.element(this.el).contents())(t)},o.prototype.getDraggable=function(){return this.draggable},o.prototype.setDraggable=function(e){this.draggable=e},o.prototype.getPosition=function(){return this.position},o.prototype.setPosition=function(e){e&&(this.position=e);var n=this;if(this.getProjection()&&"function"==typeof this.position.lng){var r=function(){if(n.getProjection()){var e=n.getProjection().fromLatLngToDivPixel(n.position),t=Math.round(e.x-n.el.offsetWidth/2),r=Math.round(e.y-n.el.offsetHeight-10);i?n.el.style[i]="translate("+t+"px, "+r+"px)":(n.el.style.left=t+"px",n.el.style.top=r+"px"),n.el.style.visibility="visible"}};n.el.offsetWidth&&n.el.offsetHeight?r():t(r,300)}},o.prototype.setZIndex=function(e){void 0!==e&&(this.zIndex!==e&&(this.zIndex=e),this.el.style.zIndex!==this.zIndex&&(this.el.style.zIndex=this.zIndex))},o.prototype.getVisible=function(){return this.visible},o.prototype.setVisible=function(e){"none"===this.el.style.display&&e?this.el.style.display="block":"none"===this.el.style.display||e||(this.el.style.display="none"),this.visible=e},o.prototype.addClass=function(e){var t=this.el.className.trim().split(" ");-1==t.indexOf(e)&&t.push(e),this.el.className=t.join(" ")},o.prototype.removeClass=function(e){var t=this.el.className.split(" "),n=t.indexOf(e);n>-1&&t.splice(n,1),this.el.className=t.join(" ")},o.prototype.onAdd=function(){this.getPanes().overlayMouseTarget.appendChild(this.el)},o.prototype.draw=function(){this.setPosition(),this.setZIndex(this.zIndex),this.setVisible(this.visible)},o.prototype.onRemove=function(){this.el.parentNode.removeChild(this.el)}},s=function(t,n){return function(i,a,s,l){l=l[0]||l[1];var u=e.orgAttributes(a),c=e.filter(s),f=e.getOptions(c,{scope:i}),d=e.getEvents(i,c);a[0].style.display="none";var p=new o(f);for(var h in setTimeout(function(){i.$watch("["+n.join(",")+"]",function(){p.setContent(t,i)},!0),p.setContent(a[0].innerHTML,i);var e=a[0].firstElementChild&&(a[0].firstElementChild.className||"");p.class&&(e+=" "+p.class),p.addClass("custom-marker"),e&&p.addClass(e),f.position instanceof google.maps.LatLng||r.getGeoLocation(f.position).then(function(e){p.setPosition(e)})}),d)google.maps.event.addDomListener(p.el,h,d[h]);l.addObject("customMarkers",p),l.observeAttrSetObj(u,s,p),a.bind("$destroy",function(){l.deleteObject("customMarkers",p)})}},l=function(i,o,l,u,c,f){e=u,t=i,n=o,r=c;var d=l.startSymbol(),p=l.endSymbol(),h=new RegExp(f(d)+"([^"+p.substring(0,1)+"]+)"+f(p),"g");return{restrict:"E",require:["?^map","?^ngMap"],compile:function(e){a(),e[0].style.display="none";var t=e.html(),n=t.match(h),r=[];return(n||[]).forEach(function(e){var t=e.replace(d,"").replace(p,"");-1==e.indexOf("::")&&-1==e.indexOf("this.")&&-1==r.indexOf(t)&&r.push(e.replace(d,"").replace(p,""))}),s(t,r)}}};l.$inject=["r","a","p","c","u","l"],l.$inject=["$timeout","$compile","$interpolate","Attr2MapOptions","NgMap","escapeRegexpFilter"],angular.module("ngMap").directive("customMarker",l)}(),function(){"use strict";var e,t,n,r,i,o=function(e,o){var a=new google.maps.DirectionsService,s=o;s.travelMode=s.travelMode||"DRIVING";var l=["origin","destination","travelMode","transitOptions","unitSystem","durationInTraffic","waypoints","optimizeWaypoints","provideRouteAlternatives","avoidHighways","avoidTolls","region"];if(s)for(var u in s)s.hasOwnProperty(u)&&-1===l.indexOf(u)&&delete s[u];s.waypoints&&(Array.isArray(s.waypoints)||delete s.waypoints);var c=function(n){if(r&&n)if(i)for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);else i=n;else r=t(function(){i||(i=n),a.route(i,function(t,n){n==google.maps.DirectionsStatus.OK&&(e.setDirections(t),i=void 0)}),t.cancel(r),r=void 0},20)};s&&s.origin&&s.destination&&("current-location"==s.origin?n.getCurrentPosition().then(function(e){s.origin=new google.maps.LatLng(e.coords.latitude,e.coords.longitude),c(s)}):"current-location"==s.destination?n.getCurrentPosition().then(function(e){s.destination=new google.maps.LatLng(e.coords.latitude,e.coords.longitude),c(s)}):c(s))},a=function(r,i,a,s){var l=r;return e=s,t=i,n=a,{restrict:"E",require:["?^map","?^ngMap"],link:function(n,r,i,a){a=a[0]||a[1];var s=l.orgAttributes(r),u=l.filter(i),c=l.getOptions(u,{scope:n}),f=l.getEvents(n,u),d=l.getAttrsToObserve(s),d=[];u.noWatcher||(d=l.getAttrsToObserve(s));var p=function(e,t){e.panel&&(e.panel=document.getElementById(e.panel)||document.querySelector(e.panel));var n=new google.maps.DirectionsRenderer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(c,f);a.addObject("directionsRenderers",p),d.forEach(function(e){!function(e){i.$observe(e,function(n){if("panel"==e)t(function(){var e=document.getElementById(n)||document.querySelector(n);e&&p.setPanel(e)});else if(c[e]!==n){var r=l.toOptionValue(n,{key:e});c[e]=r,o(p,c)}})}(e)}),e.getMap().then(function(){o(p,c)}),r.bind("$destroy",function(){a.deleteObject("directionsRenderers",p)})}}};a.$inject=["o","r","a","p"],a.$inject=["Attr2MapOptions","$timeout","NavigatorGeolocation","NgMap"],angular.module("ngMap").directive("directions",a)}(),function(){"use strict";angular.module("ngMap").directive("drawingManager",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.filter(r),a=t.getOptions(o,{scope:e}),s=t.getControlOptions(o),l=t.getEvents(e,o),u=new google.maps.drawing.DrawingManager({drawingMode:a.drawingmode,drawingControl:a.drawingcontrol,drawingControlOptions:s.drawingControlOptions,circleOptions:a.circleoptions,markerOptions:a.markeroptions,polygonOptions:a.polygonoptions,polylineOptions:a.polylineoptions,rectangleOptions:a.rectangleoptions});for(var c in r.$observe("drawingControlOptions",function(e){u.drawingControlOptions=t.getControlOptions({drawingControlOptions:e}).drawingControlOptions,u.setDrawingMode(null),u.setMap(i.map)}),l)google.maps.event.addListener(u,c,l[c]);i.addObject("mapDrawingManager",u),n.bind("$destroy",function(){i.deleteObject("mapDrawingManager",u)})}}}])}(),function(){"use strict";angular.module("ngMap").directive("dynamicMapsEngineLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.filter(r),a=t.getOptions(o,{scope:e}),s=t.getEvents(e,o,s),l=function(e,t){var n=new google.maps.visualization.DynamicMapsEngineLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(a,s);i.addObject("mapsEngineLayers",l)}}}])}(),function(){"use strict";angular.module("ngMap").directive("fusionTablesLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.filter(r),a=t.getOptions(o,{scope:e}),s=t.getEvents(e,o,s),l=function(e,t){var n=new google.maps.FusionTablesLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(a,s);i.addObject("fusionTablesLayers",l),n.bind("$destroy",function(){i.deleteObject("fusionTablesLayers",l)})}}}])}(),function(){"use strict";angular.module("ngMap").directive("heatmapLayer",["Attr2MapOptions","$window",function(e,t){var n=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,r,i,o){o=o[0]||o[1];var a=n.filter(i),s=n.getOptions(a,{scope:e});if(s.data=t[i.data]||function(e,t){return e.split(".").reduce(function(e,t){return e[t]},t||this)}(i.data,e),!(s.data instanceof Array))throw"invalid heatmap data";s.data=new google.maps.MVCArray(s.data);var l=new google.maps.visualization.HeatmapLayer(s);n.getEvents(e,a),o.addObject("heatmapLayers",l)}}}])}(),function(){"use strict";var e=function(e,t,n,r,i,o,a){var s=e,l=function(e,o,a){var s;for(var l in!e.position||e.position instanceof google.maps.LatLng||delete e.position,s=new google.maps.InfoWindow(e),o)l&&google.maps.event.addListener(s,l,o[l]);var u=n(function(e){angular.isString(a)?r(a).then(function(t){e(angular.element(t).wrap("<div>").parent())},function(e){throw"info-window template request failed: "+e}):e(a)}).then(function(e){var t=e.html().trim();if(1!=angular.element(t).length)throw"info-window working as a template must have a container";s.__template=t.replace(/\s?ng-non-bindable[='"]+/,"")});return s.__open=function(e,n,r){u.then(function(){i(function(){r&&(n.anchor=r);var o=t(s.__template)(n);s.setContent(o[0]),n.$apply(),r&&r.getPosition?s.open(e,r):r&&r instanceof google.maps.LatLng?(s.open(e),s.setPosition(r)):s.open(e),i(function(){var e=s.content.parentElement.parentElement.parentElement;e.className="ng-map-info-window"})})})},s};return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,t,n,r){r=r[0]||r[1],t.css("display","none");var i,u=s.orgAttributes(t),c=s.filter(n),f=s.getOptions(c,{scope:e}),d=s.getEvents(e,c),p=l(f,d,f.template||t);!f.position||f.position instanceof google.maps.LatLng||(i=f.position),i&&a.getGeoLocation(i).then(function(t){p.setPosition(t),p.__open(r.map,e,t);var i=n.geoCallback;i&&o(i)(e)}),r.addObject("infoWindows",p),r.observeAttrSetObj(u,n,p),r.showInfoWindow=r.map.showInfoWindow=r.showInfoWindow||function(t,n,i){var o="string"==typeof t?t:n,a="string"==typeof t?n:i;if("string"==typeof a)if(void 0!==r.map.markers&&void 0!==r.map.markers[a])a=r.map.markers[a];else{if(void 0===r.map.customMarkers||void 0===r.map.customMarkers[a])throw new Error("Cant open info window for id "+a+". Marker or CustomMarker is not defined");a=r.map.customMarkers[a]}var s=r.map.infoWindows[o],l=a||(this.getPosition?this:null);s.__open(r.map,e,l),r.singleInfoWindow&&(r.lastInfoWindow&&e.hideInfoWindow(r.lastInfoWindow),r.lastInfoWindow=o)},r.hideInfoWindow=r.map.hideInfoWindow=r.hideInfoWindow||function(e,t){var n="string"==typeof e?e:t,i=r.map.infoWindows[n];i.close()},e.showInfoWindow=r.map.showInfoWindow,e.hideInfoWindow=r.map.hideInfoWindow;var h=p.mapId?{id:p.mapId}:0;a.getMap(h).then(function(t){if(p.visible&&p.__open(t,e),p.visibleOnMarker){var n=p.visibleOnMarker;p.__open(t,e,t.markers[n])}})}}};e.$inject=["e","t","n","o","r","a","i"],e.$inject=["Attr2MapOptions","$compile","$q","$templateRequest","$timeout","$parse","NgMap"],angular.module("ngMap").directive("infoWindow",e)}(),function(){"use strict";angular.module("ngMap").directive("kmlLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.orgAttributes(n),a=t.filter(r),s=t.getOptions(a,{scope:e}),l=t.getEvents(e,a),u=function(e,t){var n=new google.maps.KmlLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(s,l);i.addObject("kmlLayers",u),i.observeAttrSetObj(o,r,u),n.bind("$destroy",function(){i.deleteObject("kmlLayers",u)})}}}])}(),function(){"use strict";angular.module("ngMap").directive("mapData",["Attr2MapOptions","NgMap",function(e,t){var n=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,r,i,o){o=o[0]||o[1];var a=n.filter(i),s=n.getOptions(a,{scope:e}),l=n.getEvents(e,a,l);t.getMap(o.map.id).then(function(t){for(var n in s){var r=s[n];"function"==typeof e[r]?t.data[n](e[r]):t.data[n](r)}for(var i in l)t.data.addListener(i,l[i])})}}}])}(),function(){"use strict";var e,t,n=[],r=[],i=function(i,o,a){var s=a.mapLazyLoadParams||a.mapLazyLoad;if(void 0===window.google||void 0===window.google.maps){r.push({scope:i,element:o,savedHtml:n[r.length]}),window.lazyLoadCallback=function(){e(function(){r.forEach(function(e){e.element.html(e.savedHtml),t(e.element.contents())(e.scope)})},100)};var l=document.createElement("script");l.src=s+(s.indexOf("?")>-1?"&":"?")+"callback=lazyLoadCallback",document.querySelector('script[src="'+l.src+'"]')||document.body.appendChild(l)}else o.html(n),t(o.contents())(i)},o=function(e,t){return t.mapLazyLoad,n.push(e.html()),t.mapLazyLoad,(void 0===window.google||void 0===window.google.maps)&&(e.html(""),{pre:i})},a=function(n,r){return t=n,e=r,{compile:o}};a.$inject=["n","o"],a.$inject=["$compile","$timeout"],angular.module("ngMap").directive("mapLazyLoad",a)}(),function(){"use strict";angular.module("ngMap").directive("mapType",["$parse","NgMap",function(e,t){return{restrict:"E",require:["?^map","?^ngMap"],link:function(n,r,i,o){o=o[0]||o[1];var a,s=i.name;if(!s)throw"invalid map-type name";if(!(a=e(i.object)(n)))throw"invalid map-type object";t.getMap().then(function(e){e.mapTypes.set(s,a)}),o.addObject("mapTypes",a)}}}])}(),function(){"use strict";var e=function(){return{restrict:"AE",controller:"__MapController",controllerAs:"ngmap"}};angular.module("ngMap").directive("map",[e]),angular.module("ngMap").directive("ngMap",[e])}(),function(){"use strict";angular.module("ngMap").directive("mapsEngineLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.filter(r),a=t.getOptions(o,{scope:e}),s=t.getEvents(e,o,s),l=function(e,t){var n=new google.maps.visualization.MapsEngineLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(a,s);i.addObject("mapsEngineLayers",l)}}}])}(),function(){"use strict";var e,t,n,r=function(r,i,o,a){a=a[0]||a[1];var s,l=e.orgAttributes(i),u=e.filter(o),c=e.getOptions(u,r,{scope:r}),f=e.getEvents(r,u);c.position instanceof google.maps.LatLng||(s=c.position);var d=function(e,t){var r;if(n.defaultOptions.marker)for(var i in n.defaultOptions.marker)void 0===e[i]&&(e[i]=n.defaultOptions.marker[i]);for(var o in e.position instanceof google.maps.LatLng||(e.position=new google.maps.LatLng(0,0)),r=new google.maps.Marker(e),Object.keys(t).length,t)o&&google.maps.event.addListener(r,o,t[o]);return r}(c,f);a.addObject("markers",d),s&&n.getGeoLocation(s).then(function(e){d.setPosition(e),c.centered&&d.map.setCenter(e);var n=o.geoCallback;n&&t(n)(r)}),a.observeAttrSetObj(l,o,d),i.bind("$destroy",function(){a.deleteObject("markers",d)})},i=function(i,o,a){return e=i,t=o,n=a,{restrict:"E",require:["^?map","?^ngMap"],link:r}};i.$inject=["o","a","i"],i.$inject=["Attr2MapOptions","$parse","NgMap"],angular.module("ngMap").directive("marker",i)}(),function(){"use strict";angular.module("ngMap").directive("overlayMapType",["NgMap",function(e){return{restrict:"E",require:["?^map","?^ngMap"],link:function(t,n,r,i){i=i[0]||i[1];var o=r.initMethod||"insertAt",a=t[r.object];e.getMap().then(function(e){if("insertAt"==o){var t=parseInt(r.index,10);e.overlayMapTypes.insertAt(t,a)}else"push"==o&&e.overlayMapTypes.push(a)}),i.addObject("overlayMapTypes",a)}}}])}(),function(){"use strict";var e=function(e,t){var n=e;return{restrict:"A",require:"?ngModel",link:function(e,r,i,o){if("false"===i.placesAutoComplete)return!1;var a=n.filter(i),s=n.getOptions(a,{scope:e}),l=n.getEvents(e,a),u=new google.maps.places.Autocomplete(r[0],s);for(var c in u.setOptions({strictBounds:!0===s.strictBounds}),l)google.maps.event.addListener(u,c,l[c]);var f=function(){t(function(){o&&o.$setViewValue(r.val())},100)};google.maps.event.addListener(u,"place_changed",f),r[0].addEventListener("change",f),i.$observe("rectBounds",function(e){if(e){var t=n.toOptionValue(e,{key:"rectBounds"});u.setBounds(new google.maps.LatLngBounds(new google.maps.LatLng(t.south_west.lat,t.south_west.lng),new google.maps.LatLng(t.north_east.lat,t.north_east.lng)))}}),i.$observe("circleBounds",function(e){if(e){var t=n.toOptionValue(e,{key:"circleBounds"}),r=new google.maps.Circle(t);u.setBounds(r.getBounds())}}),i.$observe("types",function(e){if(e){var t=n.toOptionValue(e,{key:"types"});u.setTypes(t)}}),i.$observe("componentRestrictions",function(t){t&&u.setComponentRestrictions(e.$eval(t))})}}};e.$inject=["e","t"],e.$inject=["Attr2MapOptions","$timeout"],angular.module("ngMap").directive("placesAutoComplete",e)}(),function(){"use strict";var e=function(e,t,n){var r=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,i,o,a){a=a[0]||a[1];var s,l,u=r.orgAttributes(i),c=r.filter(o),f=r.getOptions(c,{scope:e}),d=r.getEvents(e,c);l=f.name,f.center instanceof google.maps.LatLng||(s=f.center);var p=function(e,t){var n,r=e.name;switch(delete e.name,r){case"circle":e.center instanceof google.maps.LatLng||(e.center=new google.maps.LatLng(0,0)),n=new google.maps.Circle(e);break;case"polygon":n=new google.maps.Polygon(e);break;case"polyline":n=new google.maps.Polyline(e);break;case"rectangle":n=new google.maps.Rectangle(e);break;case"groundOverlay":case"image":var i=e.url,o={opacity:e.opacity,clickable:e.clickable,id:e.id};n=new google.maps.GroundOverlay(i,e.bounds,o)}for(var a in t)t[a]&&google.maps.event.addListener(n,a,t[a]);return n}(f,d);a.addObject("shapes",p),s&&"circle"==l&&n.getGeoLocation(s).then(function(n){p.setCenter(n),p.centered&&p.map.setCenter(n);var r=o.geoCallback;r&&t(r)(e)}),a.observeAttrSetObj(u,o,p),i.bind("$destroy",function(){a.deleteObject("shapes",p)})}}};e.$inject=["t","n","o"],e.$inject=["Attr2MapOptions","$parse","NgMap"],angular.module("ngMap").directive("shape",e)}(),function(){"use strict";var e=function(e,t){var n=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,r,i){var o=n.filter(i),a=n.getOptions(o,{scope:e}),s=n.getControlOptions(o),l=angular.extend(a,s),u=n.getEvents(e,o);t.getMap().then(function(e){var t=function(e,t,n){var r,i;for(var o in t.container&&(i=(i=document.getElementById(t.container))||document.querySelector(t.container)),i?r=new google.maps.StreetViewPanorama(i,t):(r=e.getStreetView()).setOptions(t),n)o&&google.maps.event.addListener(r,o,n[o]);return r}(e,l,u);e.setStreetView(t),!t.getPosition()&&t.setPosition(e.getCenter()),google.maps.event.addListener(t,"position_changed",function(){t.getPosition()!==e.getCenter()&&e.setCenter(t.getPosition())});var n=google.maps.event.addListener(e,"center_changed",function(){t.setPosition(e.getCenter()),google.maps.event.removeListener(n)})})}}};e.$inject=["e","t"],e.$inject=["Attr2MapOptions","NgMap"],angular.module("ngMap").directive("streetViewPanorama",e)}(),function(){"use strict";angular.module("ngMap").directive("trafficLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.orgAttributes(n),a=t.filter(r),s=t.getOptions(a,{scope:e}),l=t.getEvents(e,a),u=function(e,t){var n=new google.maps.TrafficLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(s,l);i.addObject("trafficLayers",u),i.observeAttrSetObj(o,r,u),n.bind("$destroy",function(){i.deleteObject("trafficLayers",u)})}}}])}(),function(){"use strict";angular.module("ngMap").directive("transitLayer",["Attr2MapOptions",function(e){var t=e;return{restrict:"E",require:["?^map","?^ngMap"],link:function(e,n,r,i){i=i[0]||i[1];var o=t.orgAttributes(n),a=t.filter(r),s=t.getOptions(a,{scope:e}),l=t.getEvents(e,a),u=function(e,t){var n=new google.maps.TransitLayer(e);for(var r in t)google.maps.event.addListener(n,r,t[r]);return n}(s,l);i.addObject("transitLayers",u),i.observeAttrSetObj(o,r,u),n.bind("$destroy",function(){i.deleteObject("transitLayers",u)})}}}])}(),function(){"use strict";var e=/([\:\-\_]+(.))/g,t=/^moz([A-Z])/;angular.module("ngMap").filter("camelCase",function(){return function(n){return n.replace(e,function(e,t,n,r){return r?n.toUpperCase():n}).replace(t,"Moz$1")}})}(),function(){"use strict";angular.module("ngMap").filter("escapeRegexp",function(){return function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}})}(),function(){"use strict";angular.module("ngMap").filter("jsonize",function(){return function(e){try{return JSON.parse(e),e}catch(t){return e.replace(/([\$\w]+)\s*:/g,function(e,t){return'"'+t+'":'}).replace(/'([^']+)'/g,function(e,t){return'"'+t+'"'}).replace(/''/g,'""')}}})}(),function(){"use strict";var isoDateRE=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/,Attr2MapOptions=function($parse,$timeout,$log,$interpolate,NavigatorGeolocation,GeoCoder,camelCaseFilter,jsonizeFilter,escapeRegExp){var exprStartSymbol=$interpolate.startSymbol(),exprEndSymbol=$interpolate.endSymbol(),orgAttributes=function(e){e.length>0&&(e=e[0]);for(var t={},n=0;n<e.attributes.length;n++){var r=e.attributes[n];t[r.name]=r.value}return t},getJSON=function(e){return e.match(/^[\+\-]?[0-9\.]+,[ ]*\ ?[\+\-]?[0-9\.]+$/)&&(e="["+e+"]"),JSON.parse(jsonizeFilter(e))},getLatLng=function(e){var t=e;if(e[0].constructor==Array)if(e[0][0].constructor==Array&&2==e[0][0].length||e[0][0].constructor==Object){for(var n,r=[],i=0;i<e.length;i++)n=e[i].map(function(e){return new google.maps.LatLng(e[0],e[1])}),r.push(n);t=r}else t=e.map(function(e){return new google.maps.LatLng(e[0],e[1])});else!isNaN(parseFloat(e[0]))&&isFinite(e[0])&&(t=new google.maps.LatLng(t[0],t[1]));return t},toOptionValue=function(input,options){var output;try{output=getNumber(input)}catch(err){try{var output=getJSON(input);if(output instanceof Array)output=output[0].constructor==Object?output:output[0]instanceof Array&&output[0][0].constructor==Object?output:getLatLng(output);else if(output===Object(output)){var newOptions=options;newOptions.doNotConverStringToNumber=!0,output=getOptions(output,newOptions)}}catch(err2){if(input.match(/^[A-Z][a-zA-Z0-9]+\(.*\)$/))try{var exp="new google.maps."+input;output=eval(exp)}catch(e){output=input}else if(input.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/))try{var matches=input.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/);output=google.maps[matches[1]][matches[2]]}catch(e){output=input}else if(input.match(/^[A-Z]+$/))try{var capitalizedKey=options.key.charAt(0).toUpperCase()+options.key.slice(1);options.key.match(/temperatureUnit|windSpeedUnit|labelColor/)?(capitalizedKey=capitalizedKey.replace(/s$/,""),output=google.maps.weather[capitalizedKey][input]):output=google.maps[capitalizedKey][input]}catch(e){output=input}else if(input.match(isoDateRE))try{output=new Date(input)}catch(e){output=input}else if(input.match(new RegExp("^"+escapeRegExp(exprStartSymbol)))&&options.scope)try{var expr=input.replace(new RegExp(escapeRegExp(exprStartSymbol)),"").replace(new RegExp(escapeRegExp(exprEndSymbol),"g"),"");output=options.scope.$eval(expr)}catch(e){output=input}else output=input}}if(("center"==options.key||"position"==options.key)&&output instanceof Array&&(output=new google.maps.LatLng(output[0],output[1])),"bounds"==options.key&&output instanceof Array&&(output=new google.maps.LatLngBounds(output[0],output[1])),"icons"==options.key&&output instanceof Array)for(var i=0;i<output.length;i++){var el=output[i];el.icon.path.match(/^[A-Z_]+$/)&&(el.icon.path=google.maps.SymbolPath[el.icon.path])}if("icon"==options.key&&output instanceof Object)for(var key in(""+output.path).match(/^[A-Z_]+$/)&&(output.path=google.maps.SymbolPath[output.path]),output){var arr=output[key];"anchor"==key||"origin"==key||"labelOrigin"==key?output[key]=new google.maps.Point(arr[0],arr[1]):("size"==key||"scaledSize"==key)&&(output[key]=new google.maps.Size(arr[0],arr[1]))}return output},getAttrsToObserve=function(e){var t=[],n=new RegExp(escapeRegExp(exprStartSymbol)+".*"+escapeRegExp(exprEndSymbol),"g");if(!e.noWatcher)for(var r in e){var i=e[r];i&&i.match(n)&&t.push(camelCaseFilter(r))}return t},filter=function(e){var t={};for(var n in e)n.match(/^\$/)||n.match(/^ng[A-Z]/)||(t[n]=e[n]);return t},getOptions=function(e,t){t=t||{};var n={};for(var r in e)if(e[r]||0===e[r]){if(r.match(/^on[A-Z]/))continue;if(r.match(/ControlOptions$/))continue;n[r]="string"!=typeof e[r]?e[r]:t.doNotConverStringToNumber&&e[r].match(/^[0-9]+$/)?e[r]:toOptionValue(e[r],{key:r,scope:t.scope})}return n},getEvents=function(e,t){var n={},r=function(e){return"_"+e.toLowerCase()},i=function(t){var n=t.match(/([^\(]+)\(([^\)]*)\)/),r=n[1],i=n[2].replace(/event[ ,]*/,""),o=$parse("["+i+"]");return function(t){var n=o(e),i=r.split(".").reduce(function(e,t){return e[t]},e);i&&i.apply(this,[t].concat(n)),$timeout(function(){e.$apply()})}};for(var o in t)if(t[o]){if(!o.match(/^on[A-Z]/))continue;var a=o.replace(/^on/,"");a=(a=a.charAt(0).toLowerCase()+a.slice(1)).replace(/([A-Z])/g,r);var s=t[o];n[a]=new i(s)}return n},getControlOptions=function(e){var t={};if("object"!=typeof e)return!1;for(var n in e)if(e[n]){if(!n.match(/(.*)ControlOptions$/))continue;var r=e[n],i=r.replace(/'/g,'"');i=i.replace(/([^"]+)|("[^"]+")/g,function(e,t,n){return t?t.replace(/([a-zA-Z0-9]+?):/g,'"$1":'):n});try{var o=JSON.parse(i);for(var a in o)if(o[a]){var s=o[a];if("string"==typeof s?s=s.toUpperCase():"mapTypeIds"===a&&(s=s.map(function(e){return e.match(/^[A-Z]+$/)?google.maps.MapTypeId[e.toUpperCase()]:e})),"style"===a){var l=n.charAt(0).toUpperCase()+n.slice(1),u=l.replace(/Options$/,"")+"Style";o[a]=google.maps[u][s]}else o[a]="position"===a?google.maps.ControlPosition[s]:s}t[n]=o}catch(e){}}return t};return{filter:filter,getOptions:getOptions,getEvents:getEvents,getControlOptions:getControlOptions,toOptionValue:toOptionValue,getAttrsToObserve:getAttrsToObserve,orgAttributes:orgAttributes}};Attr2MapOptions.$inject=["$parse","$timeout","$log","$interpolate","NavigatorGeolocation","GeoCoder","camelCaseFilter","jsonizeFilter","escapeRegExp"],Attr2MapOptions.$inject=["$parse","$timeout","$log","$interpolate","NavigatorGeolocation","GeoCoder","camelCaseFilter","jsonizeFilter","escapeRegexpFilter"],angular.module("ngMap").service("Attr2MapOptions",Attr2MapOptions)}(),function(){"use strict";var e,t=function(t){var n=e.defer(),r=new google.maps.Geocoder;return r.geocode(t,function(e,t){t==google.maps.GeocoderStatus.OK?n.resolve(e):n.reject(t)}),n.promise},n=function(n){return e=n,{geocode:t}};n.$inject=["n"],n.$inject=["$q"],angular.module("ngMap").service("GeoCoder",n)}(),function(){"use strict";var e,t,n=function(n,r){return e=n,t=r,{load:function(n){var r=e.defer();if(void 0===window.google||void 0===window.google.maps){window.lazyLoadCallback=function(){t(function(){r.resolve(window.google)},100)};var i=document.createElement("script");i.src=n+(n.indexOf("?")>-1?"&":"?")+"callback=lazyLoadCallback",document.querySelector('script[src="'+i.src+'"]')||document.body.appendChild(i)}else r.resolve(window.google);return r.promise}}};n.$inject=["n","o"],n.$inject=["$q","$timeout"],angular.module("ngMap").service("GoogleMapsApi",n)}(),function(){"use strict";var e,t=function(t){var n=e.defer();return navigator.geolocation?(void 0===t?t={timeout:5e3}:void 0===t.timeout&&(t.timeout=5e3),navigator.geolocation.getCurrentPosition(function(e){n.resolve(e)},function(e){n.reject(e)},t)):n.reject("Browser Geolocation service failed."),n.promise},n=function(n){return e=n,{getCurrentPosition:t}};n.$inject=["n"],n.$inject=["$q"],angular.module("ngMap").service("NavigatorGeolocation",n)}(),function(){"use strict";var e,t,n,r=[],i=function(n){var i=t.createElement("div");i.style.width="100%",i.style.height="100%",n.appendChild(i);var o=new e.google.maps.Map(i,{});return r.push(o),o},o=function(e){var t=function(e,t){for(var n,i=0;i<r.length;i++){var o=r[i];if(o.id==t&&!o.inUse){var a=o.getDiv();e.appendChild(a),n=o;break}}return n}(e,e.id)||function(e){for(var t,n=0;n<r.length;n++){var i=r[n];if(!i.id&&!i.inUse){var o=i.getDiv();e.appendChild(o),t=i;break}}return t}(e);return t?n(function(){google.maps.event.trigger(t,"idle")},100):t=i(e),t.inUse=!0,t},a=function(e){e.inUse=!1},s=function(){for(var e=0;e<r.length;e++)r[e]=null;r=[]},l=function(e){for(var t=0;t<r.length;t++)null!==r[t]&&r[t].id==e&&(r[t]=null,r.splice(t,1))},u=function(i,u,c){return t=i[0],e=u,n=c,{mapInstances:r,resetMapInstances:s,getMapInstance:o,returnMapInstance:a,deleteMapInstance:l}};u.$inject=["r","a","i"],u.$inject=["$document","$window","$timeout"],angular.module("ngMap").factory("NgMapPool",u)}(),function(){"use strict";var e,t,n,r,i,o,a,s,l={},u=function(n,r){var i;return n.currentStyle?i=n.currentStyle[r]:e.getComputedStyle&&(i=t.defaultView.getComputedStyle(n,null).getPropertyValue(r)),i},c=function(e){var t=l[e||0];return t.map instanceof google.maps.Map?void 0:(t.initializeMap(),t.map)},f=function(t,r){r=r||{},t="object"==typeof t?t.id:t;var i=n.defer(),o=r.timeout||1e4;return function n(r){var a=Object.keys(l),s=l[a[0]];t&&l[t]?i.resolve(l[t].map):!t&&s&&s.map?i.resolve(s.map):r>o?i.reject("could not find map"):e.setTimeout(function(){n(r+100)},100)}(0),i.promise},d=function(e){if(e.map){var t=Object.keys(l).length;l[e.map.id||t]=e}},p=function(e){var t=Object.keys(l).length-1,n=e.map.id||t;if(e.map){for(var r in e.eventListeners){var i=e.eventListeners[r];google.maps.event.removeListener(i)}e.map.controls&&e.map.controls.forEach(function(e){e.clear()})}e.map.heatmapLayers&&Object.keys(e.map.heatmapLayers).forEach(function(t){e.deleteObject("heatmapLayers",e.map.heatmapLayers[t])}),s.deleteMapInstance(n),delete l[n]},h=function(e,t){var i=n.defer();return!e||e.match(/^current/i)?r.getCurrentPosition(t).then(function(e){var t=e.coords.latitude,n=e.coords.longitude,r=new google.maps.LatLng(t,n);i.resolve(r)},function(e){i.reject(e)}):o.geocode({address:e}).then(function(e){i.resolve(e[0].geometry.location)},function(e){i.reject(e)}),i.promise},g=function(e,t){return function(n){if(n){var r=a("set-"+e),o=i.toOptionValue(n,{key:e});t[r]&&(e.match(/center|position/)&&"string"==typeof o?h(o).then(function(e){t[r](e)}):t[r](o))}}},m=function(e){var t=e.getAttribute("default-style");"true"==t?(e.style.display="block",e.style.height="300px"):("block"!=u(e,"display")&&(e.style.display="block"),u(e,"height").match(/^(0|auto)/)&&(e.style.height="300px"))};angular.module("ngMap").provider("NgMap",function(){var l={};this.setDefaultOptions=function(e){l=e};var u=function(u,v,y,b,w,$,E,S){return e=u,t=v[0],n=y,r=b,i=w,o=$,a=E,s=S,{defaultOptions:l,addMap:d,deleteMap:p,getMap:f,initMap:c,setStyle:m,getGeoLocation:h,observeAndSet:g}};u.$inject=["c","y","h","b","M","O","w","L"],u.$inject=["$window","$document","$q","NavigatorGeolocation","Attr2MapOptions","GeoCoder","camelCaseFilter","NgMapPool"],this.$get=u})}(),function(){"use strict";var e,t=function(t,n){n=n||t.getCenter();var r=e.defer(),i=new google.maps.StreetViewService;return i.getPanoramaByLocation(n||t.getCenter,100,function(e,t){t===google.maps.StreetViewStatus.OK?r.resolve(e.location.pano):r.resolve(!1)}),r.promise},n=function(e,t){var n=new google.maps.StreetViewPanorama(e.getDiv(),{enableCloseButton:!0});n.setPano(t)},r=function(r){return e=r,{getPanorama:t,setPanorama:n}};r.$inject=["o"],r.$inject=["$q"],angular.module("ngMap").service("StreetView",r)}(),"ngMap"}(__webpack_require__("KHwQ"))},"9rMk":function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(e,t){return t in e}})},"9yDZ":function(e,t,n){},A5AN:function(e,t,n){"use strict";var r=n("AvRE")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),i=n("XKFU"),o=n("KroJ"),a=n("Mukb"),s=n("hPIQ"),l=n("QaDb"),u=n("fyDq"),c=n("OP3Y"),f=n("K0xU")("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,g,m,v){l(n,t,h);var y,b,w,$=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",S="values"==g,x=!1,C=e.prototype,T=C[f]||C["@@iterator"]||g&&C[g],k=T||$(g),_=g?S?$("entries"):k:void 0,A="Array"==t&&C.entries||T;if(A&&(w=c(A.call(new e)))!==Object.prototype&&w.next&&(u(w,E,!0),r||"function"==typeof w[f]||a(w,f,p)),S&&T&&"values"!==T.name&&(x=!0,k=function(){return T.call(this)}),r&&!v||!d&&!x&&C[f]||a(C,f,k),s[t]=k,s[E]=p,g)if(y={values:S?k:$("values"),keys:m?k:$("keys"),entries:_},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||x),t,y);return y}},AvRE:function(e,t,n){var r=n("RYi7"),i=n("vhPU");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},BC7C:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},"C/va":function(e,t,n){"use strict";var r=n("y3w9");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"Cc+d":function(e,t,n){"use strict";function r(e){this.cookiesBlocked=e||[],this.initialScripts=[],this.blockedScripts=[],this.exdays=180}n.r(t),n.d(t,"CustomCookieConsent",function(){return r}),r.prototype.setCookie=function(e,t,n){var r=new Date;r.setTime(r.getTime()+24*(n||this.exdays)*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"},r.prototype.getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},r.prototype.allowAndLoadCookies=function(){this.loadCookies(),this.setCookie("cookieconsent_status","allow")},r.prototype.isAllowed=function(){return"allow"===this.getCookie("cookieconsent_status")},r.prototype.loadCookies=function(){for(var e=0;e<this.cookiesBlocked.length;e++)this.cookiesBlocked[e].init();this.loadBlockedScripts()},r.prototype.loadScripts=function(){for(var e=0;e<this.initialScripts.length;e++)this.initialScripts[e].init()},r.prototype.loadBlockedScripts=function(){for(var e=0;e<this.blockedScripts.length;e++)this.blockedScripts[e].init()},r.prototype.denyCookies=function(){this.setCookie("cookieconsent_status","deny")}},Cfrj:function(e,t,n){var r=n("RYi7"),i=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},CkkT:function(e,t,n){var r=n("m0Pp"),i=n("Ymqv"),o=n("S/j/"),a=n("ne8i"),s=n("zRwo");e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var g,m,v=o(t),y=i(v),b=r(s,h,3),w=a(y.length),$=0,E=n?p(t,w):l?p(t,0):void 0;w>$;$++)if((d||$ in y)&&(m=b(g=y[$],$,v),e))if(n)E[$]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return $;case 2:E.push(g)}else if(c)return!1;return f?-1:u||c?c:E}}},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},D4iV:function(e,t,n){for(var r,i=n("dyZX"),o=n("Mukb"),a=n("ylqs"),s=a("typed_array"),l=a("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},DVgA:function(e,t,n){var r=n("zhAb"),i=n("4R4u");e.exports=Object.keys||function(e){return r(e,i)}},DW2E:function(e,t,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n("wd/R"))},EK0E:function(e,t,n){"use strict";var r,i=n("dyZX"),o=n("CkkT")(0),a=n("KroJ"),s=n("Z6vF"),l=n("czNK"),u=n("ZD67"),c=n("0/R4"),f=n("s5qY"),d=n("s5qY"),p=!i.ActiveXObject&&"ActiveXObject"in i,h=s.getWeak,g=Object.isExtensible,m=u.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=h(e);return!0===t?m(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",v,y,u,!0,!0);d&&p&&(l((r=u.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];a(t,e,function(t,i){if(c(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},ETIr:function(e,t,n){var r,i,o;e.exports=(r=n("Ib8C"),o=(i=r).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2,u=s|l;r[i>>>2]|=u<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},EVdn:function(e,t,n){var r,i,o;i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=n.document,s=o.slice,l=o.concat,u=o.push,c=o.indexOf,f={},d=f.toString,p=f.hasOwnProperty,h={},g=function(e,t){return new g.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,y=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length"in e&&e.length,n=g.type(e);return"function"!==n&&!g.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:"2.2.4",constructor:g,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return g.each(this,e)},map:function(e){return this.pushStack(g.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||g.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(u&&r&&(g.isPlainObject(r)||(i=g.isArray(r)))?(i?(i=!1,o=n&&g.isArray(n)?n:[]):o=n&&g.isPlainObject(n)?n:{},a[t]=g.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},g.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!g.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==g.type(e)||e.nodeType||g.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=g.trim(e))&&(1===e.indexOf("use strict")?((t=a.createElement("script")).text=e,a.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?g.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(w(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g.isFunction(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||g.guid++,i},now:Date.now,support:h}),"function"==typeof Symbol&&(g.fn[Symbol.iterator]=o[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var $=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,p,h,g,m,v,y,b,w="sizzle"+1*new Date,$=e.document,E=0,S=0,x=oe(),C=oe(),T=oe(),k=function(e,t){return e===t&&(f=!0),0},_=1<<31,A={}.hasOwnProperty,O=[],D=O.pop,M=O.push,N=O.push,I=O.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",j="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",U=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),H=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),z=new RegExp("^"+P+"*,"+P+"*"),V=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),Y=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),W=new RegExp(U),q=new RegExp("^"+L+"$"),K={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){d()};try{N.apply(O=I.call($.childNodes),$.childNodes),O[$.childNodes.length].nodeType}catch(e){N={apply:O.length?function(e,t){M.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,u,c,f,h,v,y,E=t&&t.ownerDocument,S=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return r;if(!i&&((t?t.ownerDocument||t:$)!==p&&d(t),t=t||p,g)){if(11!==S&&(h=J.exec(e)))if(o=h[1]){if(9===S){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(E&&(u=E.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(h[2])return N.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!m||!m.test(e))){if(1!==S)E=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=w),s=(v=a(e)).length,f=q.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=f+" "+ge(v[s]);y=v.join(","),E=Q.test(e)&&pe(t.parentNode)||t}if(y)try{return N.apply(r,E.querySelectorAll(y)),r}catch(e){}finally{c===w&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[w]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||_)-(~e.sourceIndex||_);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return ae(function(t){return t=+t,ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=ie.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:$;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,g=!o(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Z.test(p.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+P+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===$&&b($,e)?-1:t===p||t.ownerDocument===$&&b($,t)?1:c?F(c,e)-F(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:c?F(c,e)-F(c,t):0;if(i===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===$?-1:s[r]===$?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&d(e),t=t.replace(Y,"='$1']"),n.matchesSelector&&g&&!T[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&d(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(k),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:ae,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(p=(u=(c=(f=(d=m)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1])&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[E,p,b];break}}else if(y&&(b=p=(u=(c=(f=(d=t)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=F(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[w]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return q.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:de(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function he(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=S++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u,c=[E,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(l=(u=t[w]||(t[w]={}))[t.uniqueID]||(u[t.uniqueID]={}))[r])&&s[0]===E&&s[1]===o)return c[2]=s[2];if(l[r]=c,c[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function be(e,t,n,r,i,o){return r&&!r[w]&&(r=be(r)),i&&!i[w]&&(i=be(i,o)),ae(function(o,a,s,l){var u,c,f,d=[],p=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:ye(g,d,e,s,l),v=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(u=ye(v,p),r(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[p[c]]=!(m[p[c]]=f));if(o){if(i||e){if(i){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(m[c]=f);i(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&(u=i?F(o,f):d[c])>-1&&(o[u]=!(a[u]=f))}}else v=ye(v===a?v.splice(h,v.length):v),i?i(null,a,v,l):N.apply(a,v)})}function we(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return F(t,e)>-1},s,!0),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])d=[me(ve(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return be(l>1&&ve(d),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<i&&we(e.slice(l,i)),i<o&&we(e=e.slice(i)),i<o&&ge(e))}d.push(n)}return ve(d)}return he.prototype=r.filters=r.pseudos,r.setFilters=new he,a=ie.tokenize=function(e,t){var n,i,o,a,s,l,u,c=C[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=z.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):C(e,l).slice(0)},s=ie.compile=function(e,t){var n,i=[],o=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=we(t[n]))[w]?i.push(s):o.push(s);(s=T(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var f,h,m,v=0,y="0",b=o&&[],w=[],$=u,S=o||i&&r.find.TAG("*",c),x=E+=null==$?1:Math.random()||.1,C=S.length;for(c&&(u=a===p||a||c);y!==C&&null!=(f=S[y]);y++){if(i&&f){for(h=0,a||f.ownerDocument===p||(d(f),s=!g);m=e[h++];)if(m(f,a||p,s)){l.push(f);break}c&&(E=x)}n&&((f=!m&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(b,w,a,s);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=D.call(l));w=ye(w)}N.apply(l,w),c&&!o&&w.length>0&&v+t.length>1&&ie.uniqueSort(l)}return c&&(E=x,u=$),b};return n?ae(o):o}(o,i))).selector=e}return s},l=ie.select=function(e,t,i,o){var l,u,c,f,d,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(l=K.needsContext.test(e)?0:u.length;l--&&(c=u[l],!r.relative[f=c.type]);)if((d=r.find[f])&&(o=d(c.matches[0].replace(te,ne),Q.test(u[0].type)&&pe(t.parentNode)||t))){if(u.splice(l,1),!(e=o.length&&ge(u)))return N.apply(i,o),i;break}}return(p||s(e,h))(o,t,!g,i,!t||Q.test(e)&&pe(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||le(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(n);g.find=$,g.expr=$.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=$.uniqueSort,g.text=$.getText,g.isXMLDoc=$.isXML,g.contains=$.contains;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&g(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=g.expr.match.needsContext,C=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,T=/^.[^:#\[\.,]*$/;function k(e,t,n){if(g.isFunction(t))return g.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return g.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(T.test(t))return g.filter(t,e,n);t=g.filter(t,e)}return g.grep(e,function(e){return c.call(t,e)>-1!==n})}g.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?g.find.matchesSelector(r,e)?[r]:[]:g.find.matches(e,g.grep(t,function(e){return 1===e.nodeType}))},g.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(g(e).filter(function(){for(t=0;t<n;t++)if(g.contains(i[t],this))return!0}));for(t=0;t<n;t++)g.find(e,i[t],r);return(r=this.pushStack(n>1?g.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&x.test(e)?g(e):e||[],!1).length}});var _,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||_,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),C.test(r[1])&&g.isPlainObject(t))for(r in t)g.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=a.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==n.ready?n.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,_=g(a);var O=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.fn.extend({has:function(e){var t=g(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(g.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=x.test(e)||"string"!=typeof e?g(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&g.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(g(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return e.contentDocument||g.merge([],e.childNodes)}},function(e,t){g.fn[e]=function(n,r){var i=g.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=g.filter(r,i)),this.length>1&&(D[e]||g.uniqueSort(i),O.test(e)&&i.reverse()),this.pushStack(i)}});var N,I=/\S+/g;function F(){a.removeEventListener("DOMContentLoaded",F),n.removeEventListener("load",F),g.ready()}g.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return g.each(e.match(I)||[],function(e,n){t[n]=!0}),t}(e):g.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){g.each(n,function(n,r){g.isFunction(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==g.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return g.each(arguments,function(e,t){for(var n;(n=g.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?g.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred(function(n){g.each(t,function(t,o){var a=g.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?g.extend(e,r):r}},i={};return r.pipe=r.then,g.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=s.call(arguments),a=o.length,l=1!==a||e&&g.isFunction(e.promise)?a:0,u=1===l?e:g.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?s.call(arguments):i,r===t?u.notifyWith(n,r):--l||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&g.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,t)).done(c(i,r,o)).fail(u.reject):--l;return l||u.resolveWith(r,o),u.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||(N.resolveWith(a,[g]),g.fn.triggerHandler&&(g(a).triggerHandler("ready"),g(a).off("ready"))))}}),g.ready.promise=function(e){return N||(N=g.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(g.ready):(a.addEventListener("DOMContentLoaded",F),n.addEventListener("load",F))),N.promise(e)},g.ready.promise();var R=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===g.type(n))for(s in i=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(g(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},P=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function L(){this.expando=g.expando+L.uid++}L.uid=1,L.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!P(e))return{};var t=e[this.expando];return t||(t={},P(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,g.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{g.isArray(t)?r=t.concat(t.map(g.camelCase)):(i=g.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(I)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||g.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!g.isEmptyObject(t)}};var j=new L,U=new L,B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/[A-Z]/g;function z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(H,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?g.parseJSON(n):n)}catch(e){}U.set(e,t,n)}else n=void 0;return n}g.extend({hasData:function(e){return U.hasData(e)||j.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return j.access(e,t,n)},_removeData:function(e,t){j.remove(e,t)}}),g.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=U.get(o),1===o.nodeType&&!j.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=g.camelCase(r.slice(5)),z(o,r,i[r]));j.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){U.set(this,e)}):R(this,function(t){var n,r;if(o&&void 0===t)return void 0!==(n=U.get(o,e)||U.get(o,e.replace(H,"-$&").toLowerCase()))?n:(r=g.camelCase(e),void 0!==(n=U.get(o,r))?n:void 0!==(n=z(o,r,void 0))?n:void 0);r=g.camelCase(e),this.each(function(){var n=U.get(this,r);U.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&U.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){U.remove(this,e)})}}),g.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=j.get(e,t),n&&(!r||g.isArray(n)?r=j.access(e,t,g.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=g.queue(e,t),r=n.length,i=n.shift(),o=g._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){g.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return j.get(e,n)||j.access(e,n,{empty:g.Callbacks("once memory").add(function(){j.remove(e,[t+"queue",n])})})}}),g.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?g.queue(this[0],e):void 0===t?this:this.each(function(){var n=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&g.dequeue(this,e)})},dequeue:function(e){return this.each(function(){g.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=g.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=j.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"],q=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)};function K(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return g.css(e,t,"")},l=s(),u=n&&n[3]||(g.cssNumber[t]?"":"px"),c=(g.cssNumber[t]||"px"!==u&&+l)&&Y.exec(g.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=o=o||".5",g.style(e,t,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var G=/^(?:checkbox|radio)$/i,X=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,J={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Q(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&g.nodeName(e,t)?g.merge([e],n):n}function ee(e,t){for(var n=0,r=e.length;n<r;n++)j.set(e[n],"globalEval",!t||j.get(t[n],"globalEval"))}J.optgroup=J.option,J.tbody=J.tfoot=J.colgroup=J.caption=J.thead,J.th=J.td;var te,ne,re=/<|&#?\w+;/;function ie(e,t,n,r,i){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===g.type(o))g.merge(d,o.nodeType?[o]:o);else if(re.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(X.exec(o)||["",""])[1].toLowerCase(),l=J[s]||J._default,a.innerHTML=l[1]+g.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;g.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&g.inArray(o,r)>-1)i&&i.push(o);else if(u=g.contains(o.ownerDocument,o),a=Q(f.appendChild(o),"script"),u&&ee(a),n)for(c=0;o=a[c++];)Z.test(o.type||"")&&n.push(o);return f}te=a.createDocumentFragment().appendChild(a.createElement("div")),(ne=a.createElement("input")).setAttribute("type","radio"),ne.setAttribute("checked","checked"),ne.setAttribute("name","t"),te.appendChild(ne),h.checkClone=te.cloneNode(!0).cloneNode(!0).lastChild.checked,te.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!te.cloneNode(!0).lastChild.defaultValue;var oe=/^key/,ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=/^([^.]*)(?:\.(.+)|)/;function le(){return!0}function ue(){return!1}function ce(){try{return a.activeElement}catch(e){}}function fe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)fe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ue;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return g().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=g.guid++)),e.each(function(){g.event.add(this,t,i,r,n)})}g.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,v=j.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=g.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==g&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(I)||[""]).length;u--;)p=m=(s=se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=g.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=g.event.special[p]||{},c=g.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&g.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),g.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,v=j.hasData(e)&&j.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(I)||[""]).length;u--;)if(p=m=(s=se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=g.event.special[p]||{},d=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||g.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)g.event.remove(e,p+t[u],n,r,!0);g.isEmptyObject(l)&&j.remove(e,"handle events")}},dispatch:function(e){e=g.event.fix(e);var t,n,r,i,o,a,l=s.call(arguments),u=(j.get(this,"events")||{})[e.type]||[],c=g.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=g.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((g.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?g(i,this).index(l)>-1:g.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||a).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[g.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=ae.test(i)?this.mouseHooks:oe.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new g.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=a),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ce()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ce()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},g.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?le:ue):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:ue,isPropagationStopped:ue,isImmediatePropagationStopped:ue,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||g.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),g.fn.extend({on:function(e,t,n,r){return fe(this,e,t,n,r)},one:function(e,t,n,r){return fe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,g(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ue),this.each(function(){g.event.remove(this,e,n,t)})}});var de=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,pe=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^true\/(.*)/,me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ve(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function be(e){var t=ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function we(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(j.hasData(e)&&(o=j.access(e),a=j.set(t,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n<r;n++)g.event.add(t,i,u[i][n]);U.hasData(e)&&(s=U.access(e),l=g.extend({},s),U.set(t,l))}}function $e(e,t,n,r){t=l.apply([],t);var i,o,a,s,u,c,f=0,d=e.length,p=d-1,m=t[0],v=g.isFunction(m);if(v||d>1&&"string"==typeof m&&!h.checkClone&&he.test(m))return e.each(function(i){var o=e.eq(i);v&&(t[0]=m.call(this,i,o.html())),$e(o,t,n,r)});if(d&&(o=(i=ie(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=g.map(Q(i,"script"),ye)).length;f<d;f++)u=i,f!==p&&(u=g.clone(u,!0,!0),s&&g.merge(a,Q(u,"script"))),n.call(e[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,g.map(a,be),f=0;f<s;f++)u=a[f],Z.test(u.type||"")&&!j.access(u,"globalEval")&&g.contains(c,u)&&(u.src?g._evalUrl&&g._evalUrl(u.src):g.globalEval(u.textContent.replace(me,"")))}return e}function Ee(e,t,n){for(var r,i=t?g.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||g.cleanData(Q(r)),r.parentNode&&(n&&g.contains(r.ownerDocument,r)&&ee(Q(r,"script")),r.parentNode.removeChild(r));return e}g.extend({htmlPrefilter:function(e){return e.replace(de,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,u,c=e.cloneNode(!0),f=g.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(a=Q(c),r=0,i=(o=Q(e)).length;r<i;r++)s=o[r],l=a[r],void 0,"input"===(u=l.nodeName.toLowerCase())&&G.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Q(e),a=a||Q(c),r=0,i=o.length;r<i;r++)we(o[r],a[r]);else we(e,c);return(a=Q(c,"script")).length>0&&ee(a,!f&&Q(e,"script")),c},cleanData:function(e){for(var t,n,r,i=g.event.special,o=0;void 0!==(n=e[o]);o++)if(P(n)){if(t=n[j.expando]){if(t.events)for(r in t.events)i[r]?g.event.remove(n,r):g.removeEvent(n,r,t.handle);n[j.expando]=void 0}n[U.expando]&&(n[U.expando]=void 0)}}}),g.fn.extend({domManip:$e,detach:function(e){return Ee(this,e,!0)},remove:function(e){return Ee(this,e)},text:function(e){return R(this,function(e){return void 0===e?g.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ve(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ve(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(Q(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return g.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!pe.test(e)&&!J[(X.exec(e)||["",""])[1].toLowerCase()]){e=g.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(g.cleanData(Q(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,function(t){var n=this.parentNode;g.inArray(this,e)<0&&(g.cleanData(Q(this)),n&&n.replaceChild(t,this))},e)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){g.fn[e]=function(e){for(var n,r=[],i=g(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),g(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Se,xe={HTML:"block",BODY:"block"};function Ce(e,t){var n=g(t.createElement(e)).appendTo(t.body),r=g.css(n[0],"display");return n.detach(),r}function Te(e){var t=a,n=xe[e];return n||("none"!==(n=Ce(e,t))&&n||((t=(Se=(Se||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Ce(e,t),Se.detach()),xe[e]=n),n}var ke=/^margin/,_e=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Ae=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Oe=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},De=a.documentElement;function Me(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Ae(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),n&&!h.pixelMarginRight()&&_e.test(a)&&ke.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function Ne(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,r,i,o=a.createElement("div"),s=a.createElement("div");function l(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",De.appendChild(o);var a=n.getComputedStyle(s);e="1%"!==a.top,i="2px"===a.marginLeft,t="4px"===a.width,s.style.marginRight="50%",r="4px"===a.marginRight,De.removeChild(o)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),g.extend(h,{pixelPosition:function(){return l(),e},boxSizingReliable:function(){return null==t&&l(),t},pixelMarginRight:function(){return null==t&&l(),r},reliableMarginLeft:function(){return null==t&&l(),i},reliableMarginRight:function(){var e,t=s.appendChild(a.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",De.appendChild(o),e=!parseFloat(n.getComputedStyle(t).marginRight),De.removeChild(o),s.removeChild(t),e}}))}();var Ie=/^(none|table(?!-c[ea]).+)/,Fe={position:"absolute",visibility:"hidden",display:"block"},Re={letterSpacing:"0",fontWeight:"400"},Pe=["Webkit","O","Moz","ms"],Le=a.createElement("div").style;function je(e){if(e in Le)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Pe.length;n--;)if((e=Pe[n]+t)in Le)return e}function Ue(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Be(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=g.css(e,n+W[o],!0,i)),r?("content"===n&&(a-=g.css(e,"padding"+W[o],!0,i)),"margin"!==n&&(a-=g.css(e,"border"+W[o]+"Width",!0,i))):(a+=g.css(e,"padding"+W[o],!0,i),"padding"!==n&&(a+=g.css(e,"border"+W[o]+"Width",!0,i)));return a}function He(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ae(e),a="border-box"===g.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Me(e,t,o))<0||null==i)&&(i=e.style[t]),_e.test(i))return i;r=a&&(h.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Be(e,t,n||(a?"border":"content"),r,o)+"px"}function ze(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=j.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&q(r)&&(o[a]=j.access(r,"olddisplay",Te(r.nodeName)))):(i=q(r),"none"===n&&i||j.set(r,"olddisplay",i?n:g.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Ve(e,t,n,r,i){return new Ve.prototype.init(e,t,n,r,i)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=g.camelCase(t),l=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=je(s)||s),a=g.cssHooks[t]||g.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=K(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(g.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=je(s)||s),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Me(e,t,r)),"normal"===i&&t in Re&&(i=Re[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),g.each(["height","width"],function(e,t){g.cssHooks[t]={get:function(e,n,r){if(n)return Ie.test(g.css(e,"display"))&&0===e.offsetWidth?Oe(e,Fe,function(){return He(e,t,r)}):He(e,t,r)},set:function(e,n,r){var i,o=r&&Ae(e),a=r&&Be(e,t,r,"border-box"===g.css(e,"boxSizing",!1,o),o);return a&&(i=Y.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=g.css(e,t)),Ue(0,n,a)}}}),g.cssHooks.marginLeft=Ne(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Me(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),g.cssHooks.marginRight=Ne(h.reliableMarginRight,function(e,t){if(t)return Oe(e,{display:"inline-block"},Me,[e,"marginRight"])}),g.each({margin:"",padding:"",border:"Width"},function(e,t){g.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+W[r]+t]=o[r]||o[r-2]||o[0];return i}},ke.test(e)||(g.cssHooks[e+t].set=Ue)}),g.fn.extend({css:function(e,t){return R(this,function(e,t,n){var r,i,o={},a=0;if(g.isArray(t)){for(r=Ae(e),i=t.length;a<i;a++)o[t[a]]=g.css(e,t[a],!1,r);return o}return void 0!==n?g.style(e,t,n):g.css(e,t)},e,t,arguments.length>1)},show:function(){return ze(this,!0)},hide:function(){return ze(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){q(this)?g(this).show():g(this).hide()})}}),g.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||g.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(g.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[g.cssProps[e.prop]]&&!g.cssHooks[e.prop]?e.elem[e.prop]=e.now:g.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},g.fx=Ve.prototype.init,g.fx.step={};var Ye,We,qe=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function Ge(){return n.setTimeout(function(){Ye=void 0}),Ye=g.now()}function Xe(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=W[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Ze(e,t,n){for(var r,i=(Je.tweeners[t]||[]).concat(Je.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function Je(e,t,n){var r,i,o=0,a=Je.prefilters.length,s=g.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=Ye||Ge(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ye||Ge(),duration:n.duration,tweens:[],createTween:function(t,n){var r=g.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=g.camelCase(n)],o=e[n],g.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=g.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=Je.prefilters[o].call(u,e,c,u.opts))return g.isFunction(r.stop)&&(g._queueHooks(u.elem,u.opts.queue).stop=g.proxy(r.stop,r)),r;return g.map(c,Ze,u),g.isFunction(u.opts.start)&&u.opts.start.call(e,u),g.fx.timer(g.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}g.Animation=g.extend(Je,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return K(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Je.tweeners[n]=Je.tweeners[n]||[],Je.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c=this,f={},d=e.style,p=e.nodeType&&q(e),h=j.get(e,"fxshow");for(r in n.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=g.css(e,"display"))?j.get(e,"olddisplay")||Te(e.nodeName):u)&&"none"===g.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),t)if(i=t[r],qe.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||g.style(e,r)}else u=void 0;if(g.isEmptyObject(f))"inline"===("none"===u?Te(e.nodeName):u)&&(d.display=u);else for(r in h?"hidden"in h&&(p=h.hidden):h=j.access(e,"fxshow",{}),o&&(h.hidden=!p),p?g(e).show():c.done(function(){g(e).hide()}),c.done(function(){var t;for(t in j.remove(e,"fxshow"),f)g.style(e,t,f[t])}),f)a=Ze(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Je.prefilters.unshift(e):Je.prefilters.push(e)}}),g.speed=function(e,t,n){var r=e&&"object"==typeof e?g.extend({},e):{complete:n||!n&&t||g.isFunction(e)&&e,duration:e,easing:n&&t||t&&!g.isFunction(t)&&t};return r.duration=g.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in g.fx.speeds?g.fx.speeds[r.duration]:g.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g.isFunction(r.old)&&r.old.call(this),r.queue&&g.dequeue(this,r.queue)},r},g.fn.extend({fadeTo:function(e,t,n,r){return this.filter(q).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=g.isEmptyObject(e),o=g.speed(t,n,r),a=function(){var t=Je(this,g.extend({},e),o);(i||j.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=g.timers,a=j.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Ke.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||g.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=j.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=g.timers,a=r?r.length:0;for(n.finish=!0,g.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),g.each(["toggle","show","hide"],function(e,t){var n=g.fn[t];g.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Xe(t,!0),e,r,i)}}),g.each({slideDown:Xe("show"),slideUp:Xe("hide"),slideToggle:Xe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){g.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),g.timers=[],g.fx.tick=function(){var e,t=0,n=g.timers;for(Ye=g.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||g.fx.stop(),Ye=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){We||(We=n.setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){n.clearInterval(We),We=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=a.createElement("input"),t=a.createElement("select"),n=t.appendChild(a.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=n.selected,t.disabled=!0,h.optDisabled=!n.disabled,(e=a.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var Qe,et=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return R(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){g.removeAttr(this,e)})}}),g.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?g.prop(e,t,n):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),i=g.attrHooks[t]||(g.expr.match.bool.test(t)?Qe:void 0)),void 0!==n?null===n?void g.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=g.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&g.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(I);if(o&&1===e.nodeType)for(;n=o[i++];)r=g.propFix[n]||n,g.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Qe={set:function(e,t,n){return!1===t?g.removeAttr(e,n):e.setAttribute(n,n),n}},g.each(g.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||g.find.attr;et[t]=function(e,t,r){var i,o;return r||(o=et[t],et[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,et[t]=o),i}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;g.fn.extend({prop:function(e,t){return R(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[g.propFix[e]||e]})}}),g.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(e)||(t=g.propFix[t]||t,i=g.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function it(e){return e.getAttribute&&e.getAttribute("class")||""}g.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(g.isFunction(e))return this.each(function(t){g(this).addClass(e.call(this,t,it(this)))});if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=g.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(g.isFunction(e))return this.each(function(t){g(this).removeClass(e.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=g.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each(function(n){g(this).toggleClass(e.call(this,n,it(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=g(this),o=e.match(I)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=it(this))&&j.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":j.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+it(n)+" ").replace(rt," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g,at=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,g(this).val()):e)?i="":"number"==typeof i?i+="":g.isArray(i)&&(i=g.map(i,function(e){return null==e?"":e+""})),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=g.valHooks[i.type]||g.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ot,""):null==n?"":n:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(h.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!g.nodeName(n.parentNode,"optgroup"))){if(t=g(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=g.makeArray(t),a=i.length;a--;)((r=i[a]).selected=g.inArray(g.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(e,t){if(g.isArray(t))return e.checked=g.inArray(g(e).val(),t)>-1}},h.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(e,t,r,i){var o,s,l,u,c,f,d,h=[r||a],m=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(s=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!st.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[g.expando]?e:new g.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:g.makeArray(t,[e]),d=g.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!g.isWindow(r)){for(u=d.delegateType||m,st.test(u+m)||(s=s.parentNode);s;s=s.parentNode)h.push(s),l=s;l===(r.ownerDocument||a)&&h.push(l.defaultView||l.parentWindow||n)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:d.bindType||m,(f=(j.get(s,"events")||{})[e.type]&&j.get(s,"handle"))&&f.apply(s,t),(f=c&&s[c])&&f.apply&&P(s)&&(e.result=f.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!P(r)||c&&g.isFunction(r[m])&&!g.isWindow(r)&&((l=r[c])&&(r[c]=null),g.event.triggered=m,r[m](),g.event.triggered=void 0,l&&(r[c]=l)),e.result}},simulate:function(e,t,n){var r=g.extend(new g.Event,n,{type:e,isSimulated:!0});g.event.trigger(r,null,t)}}),g.fn.extend({trigger:function(e,t){return this.each(function(){g.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return g.event.trigger(e,t,n,!0)}}),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){g.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),h.focusin="onfocusin"in n,h.focusin||g.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){g.event.simulate(t,e.target,g.event.fix(e))};g.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=j.access(r,t);i||r.addEventListener(e,n,!0),j.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=j.access(r,t)-1;i?j.access(r,t,i):(r.removeEventListener(e,n,!0),j.remove(r,t))}}});var lt=n.location,ut=g.now(),ct=/\?/;g.parseJSON=function(e){return JSON.parse(e+"")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var ft=/#.*$/,dt=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:GET|HEAD)$/,gt=/^\/\//,mt={},vt={},yt="*/".concat("*"),bt=a.createElement("a");function wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(I)||[];if(g.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===vt;function a(s){var l;return i[s]=!0,g.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Et(e,t){var n,r,i=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&g.extend(!0,e,r),e}bt.href=lt.href,g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Et(Et(e,g.ajaxSettings),t):Et(g.ajaxSettings,e)},ajaxPrefilter:wt(mt),ajaxTransport:wt(vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,l,u,c,f,d=g.ajaxSetup({},t),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?g(p):g.event,m=g.Deferred(),v=g.Callbacks("once memory"),y=d.statusCode||{},b={},w={},$=0,E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(2===$){if(!s)for(s={};t=pt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===$?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return $||(e=w[n]=w[n]||e,b[e]=t),this},overrideMimeType:function(e){return $||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if($<2)for(t in e)y[t]=[y[t],e[t]];else S.always(e[S.status]);return this},abort:function(e){var t=e||E;return r&&r.abort(t),x(0,t),this}};if(m.promise(S).complete=v.add,S.success=S.done,S.error=S.fail,d.url=((e||d.url||lt.href)+"").replace(ft,"").replace(gt,lt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=g.trim(d.dataType||"*").toLowerCase().match(I)||[""],null==d.crossDomain){u=a.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=bt.protocol+"//"+bt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=g.param(d.data,d.traditional)),$t(mt,d,t,S),2===$)return S;for(f in(c=g.event&&d.global)&&0==g.active++&&g.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!ht.test(d.type),i=d.url,d.hasContent||(d.data&&(i=d.url+=(ct.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=dt.test(i)?i.replace(dt,"$1_="+ut++):i+(ct.test(i)?"&":"?")+"_="+ut++)),d.ifModified&&(g.lastModified[i]&&S.setRequestHeader("If-Modified-Since",g.lastModified[i]),g.etag[i]&&S.setRequestHeader("If-None-Match",g.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+yt+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,S,d)||2===$))return S.abort();for(f in E="abort",{success:1,error:1,complete:1})S[f](d[f]);if(r=$t(vt,d,t,S)){if(S.readyState=1,c&&h.trigger("ajaxSend",[S,d]),2===$)return S;d.async&&d.timeout>0&&(l=n.setTimeout(function(){S.abort("timeout")},d.timeout));try{$=1,r.send(b,x)}catch(e){if(!($<2))throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,a,s){var u,f,b,w,E,x=t;2!==$&&($=2,l&&n.clearTimeout(l),r=void 0,o=s||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,S,a)),w=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,w,S,u),u?(d.ifModified&&((E=S.getResponseHeader("Last-Modified"))&&(g.lastModified[i]=E),(E=S.getResponseHeader("etag"))&&(g.etag[i]=E)),204===e||"HEAD"===d.type?x="nocontent":304===e?x="notmodified":(x=w.state,f=w.data,u=!(b=w.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),S.status=e,S.statusText=(t||x)+"",u?m.resolveWith(p,[f,x,S]):m.rejectWith(p,[S,x,b]),S.statusCode(y),y=void 0,c&&h.trigger(u?"ajaxSuccess":"ajaxError",[S,d,u?f:b]),v.fireWith(p,[S,x]),c&&(h.trigger("ajaxComplete",[S,d]),--g.active||g.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return g.get(e,t,n,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],function(e,t){g[t]=function(e,n,r,i){return g.isFunction(n)&&(i=i||r,r=n,n=void 0),g.ajax(g.extend({url:e,type:t,dataType:i,data:n,success:r},g.isPlainObject(e)&&e))}}),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return g.isFunction(e)?this.each(function(t){g(this).wrapAll(e.call(this,t))}):(this[0]&&(t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return g.isFunction(e)?this.each(function(t){g(this).wrapInner(e.call(this,t))}):this.each(function(){var t=g(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g.isFunction(e);return this.each(function(n){g(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}}),g.expr.filters.hidden=function(e){return!g.expr.filters.visible(e)},g.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var St=/%20/g,xt=/\[\]$/,Ct=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function _t(e,t,n,r){var i;if(g.isArray(t))g.each(t,function(t,i){n||xt.test(e)?r(e,i):_t(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==g.type(t))r(e,t);else for(i in t)_t(e+"["+i+"]",t[i],n,r)}g.param=function(e,t){var n,r=[],i=function(e,t){t=g.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,function(){i(this.name,this.value)});else for(n in e)_t(n,e[n],t,i);return r.join("&").replace(St,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&kt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!G.test(e))}).map(function(e,t){var n=g(this).val();return null==n?null:g.isArray(n)?g.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}}),g.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Ot=g.ajaxSettings.xhr();h.cors=!!Ot&&"withCredentials"in Ot,h.ajax=Ot=!!Ot,g.ajaxTransport(function(e){var t,r;if(h.cors||Ot&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(At[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),g.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=g("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Dt=[],Mt=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||g.expando+"_"+ut++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Mt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Mt,"$1"+i):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||g.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?g(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(i)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),g.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie([e],t,i),i&&i.length&&g(i).remove(),g.merge([],r.childNodes))};var Nt=g.fn.load;function It(e){return g.isWindow(e)?e:9===e.nodeType&&e.defaultView}g.fn.load=function(e,t,n){if("string"!=typeof e&&Nt)return Nt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=g.trim(e.slice(s)),e=e.slice(0,s)),g.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&g.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?g("<div>").append(g.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){g.fn[t]=function(e){return this.on(t,e)}}),g.expr.filters.animated=function(e){return g.grep(g.timers,function(t){return e===t.elem}).length},g.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=g.css(e,"position"),c=g(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=g.css(e,"top"),l=g.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),g.isFunction(t)&&(t=t.call(e,n,g.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){g.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,g.contains(t,r)?(i=r.getBoundingClientRect(),n=It(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(r=e.offset()),r.top+=g.css(e[0],"borderTopWidth",!0),r.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-g.css(n,"marginTop",!0),left:t.left-r.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===g.css(e,"position");)e=e.offsetParent;return e||De})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;g.fn[e]=function(r){return R(this,function(e,r,i){var o=It(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),g.each(["top","left"],function(e,t){g.cssHooks[t]=Ne(h.pixelPosition,function(e,n){if(n)return n=Me(e,t),_e.test(n)?g(e).position()[t]+"px":n})}),g.each({Height:"height",Width:"width"},function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){g.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return R(this,function(t,n,r){var i;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?g.css(t,n,a):g.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),g.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),g.fn.andSelf=g.fn.addBack,void 0===(r=function(){return g}.apply(t,[]))||(e.exports=r);var Ft=n.jQuery,Rt=n.$;return g.noConflict=function(e){return n.$===g&&(n.$=Rt),e&&n.jQuery===g&&(n.jQuery=Ft),g},i||(n.jQuery=n.$=g),g},"object"==typeof e&&"object"==typeof e.exports?e.exports=i.document?o(i,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(i)},"EVp/":function(e,t){!function(e,t,n){"use strict";var r=t.$$minErr("$sanitize");var i=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,o=/^<\s*\/\s*([\w:-]+)[^>]*>/,a=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,s=/^</,l=/^<\s*\//,u=/<!--(.*?)-->/g,c=/<!DOCTYPE([^>]*?)>/i,f=/<!\[CDATA\[(.*?)]]>/g,d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~| |!])/g,h=x("area,br,col,hr,img,wbr"),g=x("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=x("rp,rt"),v=t.extend({},m,g),y=t.extend({},g,x("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),b=t.extend({},m,x("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),w=x("script,style"),$=t.extend({},h,y,b,v),E=x("background,cite,href,longdesc,src,usemap"),S=t.extend({},E,x("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"));function x(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}var C=document.createElement("pre"),T=/^(\s*)([\s\S]*?)(\s*)$/;function k(e){if(!e)return"";var t=T.exec(e),n=t[1],r=t[3],i=t[2];return i&&(C.innerHTML=i.replace(/</g,"&lt;"),i="textContent"in C?C.textContent:C.innerText),n+i+r}function _(e){return e.replace(/&/g,"&amp;").replace(d,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(p,function(e){var t=e.charCodeAt(0);return t<=159||173===t||t>=1536&&t<=1540||1807===t||6068===t||6069===t||t>=8204&&t<=8207||t>=8232&&t<=8239||t>=8288&&t<=8303||65279===t||t>=65520&&t<=65535?"&#"+t+";":e}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var A=String.prototype.trim?function(e){return t.isString(e)?e.trim():e}:function(e){return t.isString(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e};function O(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,o,a){e=t.lowercase(e),!r&&w[e]&&(r=e),r||!0!==$[e]||(i("<"),i(e),t.forEach(o,function(r,a){var s,l,u=t.lowercase(a),c="img"===e&&"src"===u||"background"===u;("style"===u&&""!==(s="",l=r.split(";"),t.forEach(l,function(e){var n=e.split(":");if(2===n.length){var r=A(t.lowercase(n[0]));e=A(t.lowercase(n[1])),(("color"===r||"background-color"===r)&&(e.match(/^rgb\([0-9%,\. ]*\)$/i)||e.match(/^rgba\([0-9%,\. ]*\)$/i)||e.match(/^hsl\([0-9%,\. ]*\)$/i)||e.match(/^hsla\([0-9%,\. ]*\)$/i)||e.match(/^#[0-9a-f]{3,6}$/i)||e.match(/^[a-z]*$/i))||"text-align"===r&&("left"===e||"right"===e||"center"===e||"justify"===e)||"float"===r&&("left"===e||"right"===e||"none"===e)||"direction"===r&&("rtl"===e||"ltr"===e)||"font-family"===r&&("arial,helvetica,sans-serif"===e||"georgia,serif"===e||"impact,charcoal,sans-serif"===e||"tahoma,geneva,sans-serif"===e||"'times new roman',times,serif"===e||"verdana,geneva,sans-serif"===e)||("width"===r||"height"===r||"font-size"===r||"margin-left"===r)&&e.match(/[0-9\.]*(px|em|rem|%)/))&&(s+=r+": "+e+";")}}),r=s)||function(e,t,n,r){return!("img"!==e||!t["ta-insert-video"]||"ta-insert-video"!==n&&"allowfullscreen"!==n&&"frameborder"!==n&&("contenteditble"!==n||"false"!==r))}(e,o,u,r)||!0===S[u]&&(!0!==E[u]||n(r,c)))&&(i(" "),i(a),i('="'),i(_(r)),i('"'))}),i(a?"/>":">"))},end:function(e){e=t.lowercase(e),r||!0!==$[e]||(i("</"),i(e),i(">")),e===r&&(r=!1)},chars:function(e){r||i(_(e))}}}t.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(e){return function(n){var d=[];return function(e,n){var d,p,g,m=[],$=e;for(m.last=function(){return m[m.length-1]};e;){if(p=!0,m.last()&&w[m.last()])e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+m.last()+"[^>]*>","i"),function(e,t){return t=t.replace(u,"$1").replace(f,"$1"),n.chars&&n.chars(k(t)),""}),x("",m.last());else if(0===e.indexOf("\x3c!--")?(d=e.indexOf("--",4))>=0&&e.lastIndexOf("--\x3e",d)===d&&(n.comment&&n.comment(e.substring(4,d)),e=e.substring(d+3),p=!1):c.test(e)?(g=e.match(c))&&(e=e.replace(g[0],""),p=!1):l.test(e)?(g=e.match(o))&&(e=e.substring(g[0].length),g[0].replace(o,x),p=!1):s.test(e)&&(g=e.match(i))&&(e=e.substring(g[0].length),g[0].replace(i,S),p=!1),p){var E=(d=e.indexOf("<"))<0?e:e.substring(0,d);e=d<0?"":e.substring(d),n.chars&&n.chars(k(E))}if(e===$)throw r("badparse","The sanitizer was unable to parse the following block of html: {0}",e);$=e}function S(e,r,i,o){if(r=t.lowercase(r),y[r])for(;m.last()&&b[m.last()];)x("",m.last());v[r]&&m.last()===r&&x("",r),(o=h[r]||!!o)||m.push(r);var s={};i.replace(a,function(e,t,n,r,i){var o=n||r||i||"";s[t]=k(o)}),n.start&&n.start(r,s,o)}function x(e,r){var i,o=0;if(r=t.lowercase(r))for(o=m.length-1;o>=0&&m[o]!==r;o--);if(o>=0){for(i=m.length-1;i>=o;i--)n.end&&n.end(m[i]);m.length=o}}x()}(n,O(d,function(t,n){return!/^unsafe/.test(e(t,n))})),d.join("")}}]}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>]/,r=/^mailto:/;return function(i,o){if(!i)return i;for(var a,s,l,u=i,c=[];a=u.match(n);)s=a[0],a[2]===a[3]&&(s="mailto:"+s),l=a.index,f(u.substr(0,l)),d(s,a[0].replace(r,"")),u=u.substring(l+a[0].length);return f(u),e(c.join(""));function f(e){var n,r;e&&c.push((n=e,O(r=[],t.noop).chars(n),r.join("")))}function d(e,n){c.push("<a "),t.isDefined(o)&&(c.push('target="'),c.push(o),c.push('" ')),c.push('href="'),c.push(e),c.push('">'),f(n),c.push("</a>")}}}])}(window,window.angular)},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),i=n("RjD/"),o=n("aCFj"),a=n("apmT"),s=n("aagx"),l=n("xpql"),u=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},Epcx:function(e,t,n){(function(e){!function(e,t,n,r){"use strict";t.module("froala",[]).value("froalaConfig",{}).directive("froala",["froalaConfig",function(e){var r=0,i={immediateAngularModelUpdate:!1,angularIgnoreAttrs:null};e=e||{};var o=["img","button","input","a"];return{restrict:"A",require:"ngModel",scope:{froalaOptions:"=froala",initFunction:"&froalaInit"},link:function(a,s,l,u){n&&(s=n(s));var c=!1;-1!=o.indexOf(s.prop("tagName").toLowerCase())&&(c=!0);var f={editorInitialized:!1};if(a.initMode=l.froalaInit?"manual":"automatic",f.init=function(){l.id||l.$set("id","froala-"+r++),"automatic"===a.initMode&&f.createEditor(),u.$render=function(){if(c){var e=u.$modelValue;if(e){for(var t in e)e.hasOwnProperty(t)&&"innerHTML"!=t&&s.attr(t,e[t]);e.hasOwnProperty("innerHTML")&&(s[0].innerHTML=e.innerHTML)}}else f.editorInitialized&&(s.froalaEditor("html.set",u.$viewValue||"",!0),s.froalaEditor("undo.reset"),s.froalaEditor("undo.saveStep"))},u.$isEmpty=function(e){return!e||(!f.editorInitialized||s.froalaEditor("node.isEmpty",n("<div>"+e+"</div>").get(0)))}},f.createEditor=function(n){if(f.listeningEvents=["froalaEditor"],!f.editorInitialized){for(var r in n=n||{},f.options=t.extend({},i,e,a.froalaOptions,n),f.registerEventsWithCallbacks("froalaEditor.initializationDelayed",function(){u.$render()}),f.registerEventsWithCallbacks("froalaEditor.initialized",function(){f.editorInitialized=!0}),f.options.events)f.options.events.hasOwnProperty(r)&&f.registerEventsWithCallbacks(r,f.options.events[r]);s.innerHTML=f.froalaElement=s.froalaEditor(f.options).data("froala.editor").$el,f.froalaEditor=t.bind(s,s.froalaEditor),f.initListeners(),a.froalaOptions&&(a.froalaOptions.froalaEditor=f.froalaEditor)}},f.initListeners=function(){f.options.immediateAngularModelUpdate&&f.froalaElement.on("froalaEditor.keyup",function(){a.$evalAsync(f.updateModelView)}),s.on("froalaEditor.contentChanged",function(){a.$evalAsync(f.updateModelView)}),s.bind("$destroy",function(){s&&(s.froalaEditor("destroy"),s=null)})},f.updateModelView=function(){var e=null;if(c){for(var n=s[0].attributes,r={},i=0;i<n.length;i++){var o=n[i].name;f.options.angularIgnoreAttrs&&-1!=f.options.angularIgnoreAttrs.indexOf(o)||(r[o]=n[i].value)}s[0].innerHTML&&(r.innerHTML=s[0].innerHTML),e=r}else{var l=s.froalaEditor("html.get");t.isString(l)&&(e=l)}u.$setViewValue(e),a.$root.$$phase||a.$apply()},f.registerEventsWithCallbacks=function(e,t){e&&t&&(f.listeningEvents.push(e),s.on(e,t))},"manual"===a.initMode){var d=f,p={initialize:f.createEditor,destroy:function(){d.froalaEditor&&(d.froalaEditor("destroy"),d.editorInitialized=!1)},getEditor:function(){return d.froalaEditor?d.froalaEditor:null}};a.initFunction({initControls:p})}f.init()}}}]).directive("froalaView",["$sce",function(e){return{restrict:"ACM",scope:!1,link:function(t,n,r){n.addClass("fr-view"),t.$watch(r.froalaView,function(t){if(t||""===t){var r=e.trustAsHtml(t);n.html(r.toString())}})}}}])}(window,window.angular,e)}).call(this,n("EVdn"))},"Ew+T":function(e,t,n){var r=n("XKFU"),i=n("GZEu");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},FJW5:function(e,t,n){var r=n("hswa"),i=n("y3w9"),o=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},FLlr:function(e,t,n){var r=n("XKFU");r(r.P,"String",{repeat:n("l0Rn")})},Faw5:function(e,t,n){n("7DDg")("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},FlsD:function(e,t,n){var r=n("0/R4");n("Xtr8")("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},GLm6:function(e,t){!function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(e){var t=["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(t,n,r,i,o,a){function s(){r.cancel(u),a.complete(),f=0,c=0}function l(t){var r,i=n.get("$http"),o=e.defaults;!t.cache&&!o.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(r=angular.isObject(t.cache)?t.cache:angular.isObject(o.cache)?o.cache:i);var a=void 0!==r&&void 0!==r.get(t.url);return void 0!==t.cached&&a!==t.cached?t.cached:(t.cached=a,a)}var u,c=0,f=0,d=a.latencyThreshold;return{request:function(e){return e.ignoreLoadingBar||l(e)||(i.$broadcast("cfpLoadingBar:loading",{url:e.url}),0===c&&(u=r(function(){a.start()},d)),c++,a.set(f/c)),e},response:function(e){return e&&e.config?(e.config.ignoreLoadingBar||l(e.config)||(++f>=c?(i.$broadcast("cfpLoadingBar:loaded",{url:e.config.url,result:e}),s()):a.set(f/c)),e):(o.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),e)},responseError:function(e){return e&&e.config?(e.config.ignoreLoadingBar||l(e.config)||(++f>=c?(i.$broadcast("cfpLoadingBar:loaded",{url:e.config.url,result:e}),s()):a.set(f/c)),t.reject(e)):(o.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),t.reject(e))}}}];e.interceptors.push(t)}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.autoIncrement=!0,this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(e,t,n,r){function i(e){if(g){var t=100*e+"%";p.css("width",t),m=e,v&&(n.cancel(u),u=n(function(){o()},250))}}function o(){if(!(a()>=1)){var e,t=a();e=t>=0&&t<.25?(3*Math.random()+3)/100:t>=.25&&t<.65?3*Math.random()/100:t>=.65&&t<.9?2*Math.random()/100:t>=.9&&t<.99?.005:0,i(a()+e)}}function a(){return m}function s(){m=0,g=!1}var l,u,c,f=this.parentSelector,d=angular.element(this.loadingBarTemplate),p=d.find("div").eq(0),h=angular.element(this.spinnerTemplate),g=!1,m=0,v=this.autoIncrement,y=this.includeSpinner,b=this.includeBar,w=this.startSize;return{start:function(){if(l||(l=e.get("$animate")),n.cancel(c),!g){var o=t[0],a=o.querySelector?o.querySelector(f):t.find(f)[0];a||(a=o.getElementsByTagName("body")[0]);var s=angular.element(a),u=a.lastChild&&angular.element(a.lastChild);r.$broadcast("cfpLoadingBar:started"),g=!0,b&&l.enter(d,s,u),y&&l.enter(h,s,d),i(w)}},set:i,status:a,inc:o,complete:function(){l||(l=e.get("$animate")),i(1),n.cancel(c),c=n(function(){var e=l.leave(d,s);e&&e.then&&e.then(s),l.leave(h),r.$broadcast("cfpLoadingBar:completed")},500)},autoIncrement:this.autoIncrement,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}()},GZEu:function(e,t,n){var r,i,o,a=n("m0Pp"),s=n("MfQN"),l=n("+rLv"),u=n("Iw71"),c=n("dyZX"),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,g=c.Dispatch,m=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete v[e]},"process"==n("LZWt")(f)?r=function(e){f.nextTick(a(y,e,1))}:g&&g.now?r=function(e){g.now(a(y,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},H7XF:function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},HEwt:function(e,t,n){"use strict";var r=n("m0Pp"),i=n("XKFU"),o=n("S/j/"),a=n("H6hf"),s=n("M6Qj"),l=n("ne8i"),u=n("8a7r"),c=n("J+6e");i(i.S+i.F*!n("XMVh")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(d);if(m&&(g=r(g,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(n=new p(t=l(d.length));t>v;v++)u(n,v,m?g(d[v],v):d[v]);else for(f=y.call(d),n=new p;!(i=f.next()).done;v++)u(n,v,m?a(f,g,[i.value,v],!0):i.value);return n.length=v,n}})},HiV5:function(e,t){!function(){"use strict";angular.module("as.sortable",[]).constant("sortableConfig",{itemClass:"as-sortable-item",handleClass:"as-sortable-item-handle",placeHolderClass:"as-sortable-placeholder",dragClass:"as-sortable-drag",hiddenClass:"as-sortable-hidden",dragging:"as-sortable-dragging"})}(),function(){"use strict";angular.module("as.sortable").factory("$helper",["$document","$window",function(e,t){return{height:function(e){return e[0].getBoundingClientRect().height},width:function(e){return e[0].getBoundingClientRect().width},offset:function(n,r){var i=n[0].getBoundingClientRect();return r||(r=e[0].documentElement),{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(t.pageYOffset||r.scrollTop-r.offsetTop),left:i.left+(t.pageXOffset||r.scrollLeft-r.offsetLeft)}},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},isTouchInvalid:function(e){var t=!1;return void 0!==e.touches&&e.touches.length>1?t=!0:void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&e.originalEvent.touches.length>1&&(t=!0),t},positionStarted:function(e,t,n){var r={};return r.offsetX=e.pageX-this.offset(t,n).left,r.offsetY=e.pageY-this.offset(t,n).top,r.startX=r.lastX=e.pageX,r.startY=r.lastY=e.pageY,r.nowX=r.nowY=r.distX=r.distY=r.dirAx=0,r.dirX=r.dirY=r.lastDirX=r.lastDirY=r.distAxX=r.distAxY=0,r},calculatePosition:function(e,t){e.lastX=e.nowX,e.lastY=e.nowY,e.nowX=t.pageX,e.nowY=t.pageY,e.distX=e.nowX-e.lastX,e.distY=e.nowY-e.lastY,e.lastDirX=e.dirX,e.lastDirY=e.dirY,e.dirX=0===e.distX?0:e.distX>0?1:-1,e.dirY=0===e.distY?0:e.distY>0?1:-1;var n=Math.abs(e.distX)>Math.abs(e.distY)?1:0;e.dirAx!==n?(e.distAxX=0,e.distAxY=0):(e.distAxX+=Math.abs(e.distX),0!==e.dirX&&e.dirX!==e.lastDirX&&(e.distAxX=0),e.distAxY+=Math.abs(e.distY),0!==e.dirY&&e.dirY!==e.lastDirY&&(e.distAxY=0)),e.dirAx=n},movePosition:function(e,t,n,r,i,o){var a,s="relative"===i;t.x=e.pageX-n.offsetX,t.y=e.pageY-n.offsetY,r&&(a=this.offset(r,o),s&&(t.x-=a.left,t.y-=a.top,a.left=0,a.top=0),t.x<a.left?t.x=a.left:t.x>=a.width+a.left-this.offset(t).width&&(t.x=a.width+a.left-this.offset(t).width),t.y<a.top?t.y=a.top:t.y>=a.height+a.top-this.offset(t).height&&(t.y=a.height+a.top-this.offset(t).height)),t.css({left:t.x+"px",top:t.y+"px"}),this.calculatePosition(n,e)},dragItem:function(e){return{index:e.index(),parent:e.sortableScope,source:e,targetElement:null,targetElementOffset:null,sourceInfo:{index:e.index(),itemScope:e.itemScope,sortableScope:e.sortableScope},canMove:function(e,t,n){return this.targetElement!==t?(this.targetElement=t,this.targetElementOffset=n,!0):(e.dirX*(n.left-this.targetElementOffset.left)>0||e.dirY*(n.top-this.targetElementOffset.top)>0)&&(this.targetElementOffset=n,!0)},moveTo:function(e,t){this.parent=e,this.isSameParent()&&this.source.index()<t&&!this.sourceInfo.sortableScope.cloning&&(t-=1),this.index=t},isSameParent:function(){return this.parent.element===this.sourceInfo.sortableScope.element},isOrderChanged:function(){return this.index!==this.sourceInfo.index},eventArgs:function(){return{source:this.sourceInfo,dest:{index:this.index,sortableScope:this.parent}}},apply:function(){this.sourceInfo.sortableScope.cloning?this.parent.options.clone||this.parent.insertItem(this.index,angular.copy(this.source.modelValue)):(this.sourceInfo.sortableScope.removeItem(this.sourceInfo.index),(this.parent.options.allowDuplicates||this.parent.modelValue.indexOf(this.source.modelValue)<0)&&this.parent.insertItem(this.index,this.source.modelValue))}}},noDrag:function(e){return void 0!==e.attr("no-drag")||void 0!==e.attr("data-no-drag")},findAncestor:function(e,t){e=e[0];for(var n=Element.matches||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;(e=e.parentElement)&&!n.call(e,t););return e?angular.element(e):angular.element(document.body)}}}])}(),function(){"use strict";var e=angular.module("as.sortable");e.controller("as.sortable.sortableController",["$scope",function(e){this.scope=e,e.modelValue=null,e.callbacks=null,e.type="sortable",e.options={longTouch:!1},e.isDisabled=!1,e.insertItem=function(t,n){e.options.allowDuplicates?e.modelValue.splice(t,0,angular.copy(n)):e.modelValue.splice(t,0,n)},e.removeItem=function(t){var n=null;return t>-1&&(n=e.modelValue.splice(t,1)[0]),n},e.isEmpty=function(){return e.modelValue&&0===e.modelValue.length},e.accept=function(t,n,r){return e.callbacks.accept(t,n,r)}}]),e.directive("asSortable",function(){return{require:"ngModel",restrict:"A",scope:!0,controller:"as.sortable.sortableController",link:function(e,t,n,r){var i,o;(i=r)&&(i.$render=function(){e.modelValue=i.$modelValue},e.element=t,t.data("_scope",e),(o={accept:null,orderChanged:null,itemMoved:null,dragStart:null,dragMove:null,dragCancel:null,dragEnd:null}).accept=function(e,t,n){return!0},o.orderChanged=function(e){},o.itemMoved=function(e){},o.dragStart=function(e){},o.dragMove=angular.noop,o.dragCancel=function(e){},o.dragEnd=function(e){},e.$watch(n.asSortable,function(t,n){angular.forEach(t,function(t,n){o[n]?"function"==typeof t&&(o[n]=t):e.options[n]=t}),e.callbacks=o},!0),angular.isDefined(n.isDisabled)&&e.$watch(n.isDisabled,function(t,n){angular.isUndefined(t)||(e.isDisabled=t)},!0))}}})}(),function(){"use strict";var e=angular.module("as.sortable");e.controller("as.sortable.sortableItemHandleController",["$scope",function(e){this.scope=e,e.itemScope=null,e.type="handle"}]),e.directive("asSortableItemHandle",["sortableConfig","$helper","$window","$document","$timeout",function(e,t,n,r,i){return{require:"^asSortableItem",scope:!0,restrict:"A",controller:"as.sortable.sortableItemHandleController",link:function(o,a,s,l){var u,c,f,d,p,h,g,m,v,y,b,w,$,E,S,x,C,T,k,_,A,O,D,M,N,I,F,R,P=!1,L=!1;function j(e,t){"table-row"!==c.css("display")&&c.css("display","block"),t.sortableScope.options.clone||(e[0].parentNode.insertBefore(c[0],e[0]),p.moveTo(t.sortableScope,t.index()))}function U(e){for(var t;!t&&e.length;)(t=e.data("_scope"))||(e=e.parent());return t}function B(){o.itemScope.sortableScope.cloning||f.replaceWith(o.itemScope.element),c.remove(),u.remove(),u=null,N=!1,h.css("cursor",""),h.removeClass("as-sortable-un-selectable")}_="ontouchstart"in n,A=/iPad|iPhone|iPod|Android|webOS|Windows Phone|BlackBerry/.test(n.navigator.userAgent)&&!n.MSStream,e.handleClass&&a.addClass(e.handleClass),o.itemScope=l.scope,a.data("_scope",o),o.$watchGroup(["sortableScope.isDisabled","sortableScope.options.longTouch"],function(e){P!==e[0]?(P=e[0])?C():x():L!==e[1]?(L=e[1],C(),x()):x()}),o.$on("$destroy",function(){angular.element(r[0].body).unbind("keydown",R)}),I=function(e){return"function"==typeof o.sortableScope.options.placeholder?angular.element(o.sortableScope.options.placeholder(e)):"string"==typeof o.sortableScope.options.placeholder?angular.element(o.sortableScope.options.placeholder):angular.element(r[0].createElement(e.element.prop("tagName")))},m=function(e){var n,i=function(){angular.element(r).unbind("mousemove",o),angular.element(r).unbind("touchmove",o),a.unbind("mouseup",i),a.unbind("touchend",i),a.unbind("touchcancel",i)},o=function(r){r.preventDefault();var o=t.eventObj(r);n||(n={clientX:o.clientX,clientY:o.clientY}),Math.abs(o.clientX-n.clientX)+Math.abs(o.clientY-n.clientY)>10&&(i(),y(e))};angular.element(r).bind("mousemove",o),angular.element(r).bind("touchmove",o),a.bind("mouseup",i),a.bind("touchend",i),a.bind("touchcancel",i),e.stopPropagation()},y=function(n){var i,s;(_||2!==n.button&&3!==n.which)&&(_&&t.isTouchInvalid(n)||!N&&E(n)&&(N=!0,n.preventDefault(),i=t.eventObj(n),o.sortableScope=o.sortableScope||o.itemScope.sortableScope,o.callbacks=o.callbacks||o.itemScope.callbacks,o.itemScope.sortableScope.options.clone||o.itemScope.sortableScope.options.ctrlClone&&n.ctrlKey?o.itemScope.sortableScope.cloning=!0:o.itemScope.sortableScope.cloning=!1,v=angular.element(r[0].querySelector(o.sortableScope.options.scrollableContainer)).length>0?r[0].querySelector(o.sortableScope.options.scrollableContainer):r[0].documentElement,(h=o.sortableScope.options.containment?t.findAncestor(a,o.sortableScope.options.containment):angular.element(r[0].body)).css("cursor","move"),h.css("cursor","-webkit-grabbing"),h.css("cursor","-moz-grabbing"),h.addClass("as-sortable-un-selectable"),g=o.sortableScope.options.containerPositioning||"absolute",p=t.dragItem(o.itemScope),s=o.itemScope.element.prop("tagName"),(u=angular.element(r[0].createElement(o.sortableScope.element.prop("tagName"))).addClass(o.sortableScope.element.attr("class")).addClass(e.dragClass)).css("width",t.width(o.itemScope.element)+"px"),u.css("height",t.height(o.itemScope.element)+"px"),(c=I(o.itemScope).addClass(e.placeHolderClass).addClass(o.sortableScope.options.additionalPlaceholderClass)).css("width",t.width(o.itemScope.element)+"px"),c.css("height",t.height(o.itemScope.element)+"px"),f=angular.element(r[0].createElement(s)),e.hiddenClass&&f.addClass(e.hiddenClass),d=t.positionStarted(i,o.itemScope.element,v),o.itemScope.sortableScope.options.clone||o.itemScope.element.after(c),o.itemScope.sortableScope.cloning?u.append(o.itemScope.element.clone()):(o.itemScope.element.after(f),u.append(o.itemScope.element)),h.append(u),t.movePosition(i,u,d,h,g,v),o.sortableScope.$apply(function(){o.callbacks.dragStart(p.eventArgs())}),T()))},E=function(e){var n,r,i;for(i=(r=U(n=angular.element(e.target)))&&"handle"===r.type;i&&n[0]!==a[0];)t.noDrag(n)&&(i=!1),n=n.parent();return i},b=function(i){var a,s,l,f,m;if((!_||!t.isTouchInvalid(i))&&N&&u){if(i.preventDefault(),a=t.eventObj(i),o.callbacks.dragMove!==angular.noop&&o.sortableScope.$apply(function(){o.callbacks.dragMove(d,h,a)}),s=a.pageX-r[0].documentElement.scrollLeft,l=a.pageY-(n.pageYOffset||r[0].documentElement.scrollTop),u.addClass(e.hiddenClass),m=angular.element(r[0].elementFromPoint(s,l)),u.removeClass(e.hiddenClass),t.movePosition(a,u,d,h,g,v),u.addClass(e.dragging),!(f=U(m))||!f.type)return;if("handle"===f.type&&(f=f.itemScope),"item"!==f.type&&"sortable"!==f.type)return;if("item"===f.type&&f.accept(o,f.sortableScope,f)){m=f.element;var y=t.offset(m,v);if(!p.canMove(d,m,y))return;var b=S(f.sortableScope.element);b<0?j(m,f):b<=f.index()?function(e,t){"table-row"!==c.css("display")&&c.css("display","block"),t.sortableScope.options.clone||(e.after(c),p.moveTo(t.sortableScope,t.index()+1))}(m,f):j(m,f)}"sortable"===f.type&&f.accept(o,f)&&!function e(t,n){return!(!n||"HTML"===n.nodeName)&&(n.parentNode===t||e(t,n.parentNode))}(f.element[0],m[0])&&(F(m)||f.options.clone||(m[0].appendChild(c[0]),p.moveTo(f,f.modelValue.length)))}},S=function(t){var n,r;if(t.hasClass(e.placeHolderClass))return 0;for(n=t.children(),r=0;r<n.length;r+=1)if(angular.element(n[r]).hasClass(e.placeHolderClass))return r;return-1},F=function(e){return S(e)>=0},w=function(e){N&&(e.preventDefault(),u&&(B(),p.apply(),o.sortableScope.$apply(function(){p.isSameParent()?p.isOrderChanged()&&o.callbacks.orderChanged(p.eventArgs()):o.callbacks.itemMoved(p.eventArgs())}),o.sortableScope.$apply(function(){o.callbacks.dragEnd(p.eventArgs())}),p=null),k())},$=function(e){N&&(e.preventDefault(),u&&(B(),o.sortableScope.$apply(function(){o.callbacks.dragCancel(p.eventArgs())}),p=null),k())},x=function(){_&&(L?A?(a.bind("touchstart",O),a.bind("touchend",D),a.bind("touchmove",D)):a.bind("contextmenu",m):a.bind("touchstart",m)),a.bind("mousedown",m)},C=function(){a.unbind("touchstart",O),a.unbind("touchend",D),a.unbind("touchmove",D),a.unbind("contextmenu",m),a.unbind("touchstart",m),a.unbind("mousedown",m)},O=function(e){M=i(function(){a.addClass("sw_longtouch"),m(e)},500)},D=function(){i.cancel(M),a.removeClass("sw_longtouch")},R=function(e){27===e.keyCode&&$(e)},angular.element(r[0].body).bind("keydown",R),T=function(){angular.element(r).bind("touchmove",b),angular.element(r).bind("touchend",w),angular.element(r).bind("touchcancel",$),angular.element(r).bind("mousemove",b),angular.element(r).bind("mouseup",w)},k=function(){angular.element(r).unbind("touchend",w),angular.element(r).unbind("touchcancel",$),angular.element(r).unbind("touchmove",b),angular.element(r).unbind("mouseup",w),angular.element(r).unbind("mousemove",b)}}}}])}(),function(){"use strict";var e=angular.module("as.sortable");e.controller("as.sortable.sortableItemController",["$scope",function(e){this.scope=e,e.sortableScope=null,e.modelValue=null,e.type="item",e.index=function(){return e.$index},e.itemData=function(){return e.sortableScope.modelValue[e.$index]}}]),e.directive("asSortableItem",["sortableConfig",function(e){return{require:["^asSortable","?ngModel"],restrict:"A",controller:"as.sortable.sortableItemController",link:function(t,n,r,i){var o=i[0],a=i[1];e.itemClass&&n.addClass(e.itemClass),t.sortableScope=o.scope,a?a.$render=function(){t.modelValue=a.$modelValue}:t.modelValue=o.scope.modelValue[t.$index],t.element=n,n.data("_scope",t)}}}])}()},I5cv:function(e,t,n){var r=n("XKFU"),i=n("Kuth"),o=n("2OiF"),a=n("y3w9"),s=n("0/R4"),l=n("eeVq"),u=n("8MEG"),c=(n("dyZX").Reflect||{}).construct,f=l(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!l(function(){c(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var l=n.prototype,p=i(s(l)?l:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},"I8a+":function(e,t,n){var r=n("LZWt"),i=n("K0xU")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},INYr:function(e,t,n){"use strict";var r=n("XKFU"),i=n("CkkT")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")(o)},"IU+Z":function(e,t,n){"use strict";n("sMXx");var r=n("KroJ"),i=n("Mukb"),o=n("eeVq"),a=n("vhPU"),s=n("K0xU"),l=n("Ugos"),u=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),p=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),h=p?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t}):void 0;if(!p||!h||"replace"===e&&!c||"split"===e&&!f){var g=/./[d],m=n(a,d,""[e],function(e,t,n,r,i){return t.exec===l?p&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=m[0],y=m[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},Ib8C:function(e,t,n){(function(t){var r;e.exports=(r=r||function(e,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=n(0)}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},u=l.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),f=s.enc={},d=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},g=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=4*a,l=o/s,u=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,f=e.min(4*u,o);if(u){for(var d=0;d<u;d+=a)this._doProcessBlock(i,d);n=i.splice(0,u),r.sigBytes-=f}return new c.init(n,f)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(l.Hasher=g.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),r)}).call(this,n("yLpj"))},"IbG+":function(e,t,n){(function(e){!function(t){"use strict";function n(e,t){return t=t||Error,function(){var n,r,i=arguments,o=i[0],a="["+(e?e+":":"")+o+"] ";for(a+=i[1].replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1)+2;return t<i.length?He(i[t]):e}),a+="\nhttp://errors.angularjs.org/1.5.11/"+(e?e+"/":"")+o,r=2,n="?";r<i.length;r++,n="&")a+=n+"p"+(r-2)+"="+encodeURIComponent(He(i[r]));return new t(a)}}var r=/^\/(.+)\/([a-z]*)$/,i="validity",o=Object.prototype.hasOwnProperty,a=function(e){return U(e)?e.toLowerCase():e},s=function(e){return U(e)?e.toUpperCase():e};"i"!=="I".toLowerCase()&&(a=function(e){return U(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},s=function(e){return U(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e});var l,u,c,f,d=[].slice,p=[].splice,h=[].push,g=Object.prototype.toString,m=Object.getPrototypeOf,v=n("ng"),y=t.angular||(t.angular={}),b=0;function w(e){if(null==e||W(e))return!1;if(z(e)||U(e)||u&&e instanceof u)return!0;var t="length"in Object(e)&&e.length;return B(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function $(e,t,n){var r,i;if(e)if(V(e))for(r in e)"prototype"===r||"length"===r||"name"===r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(z(e)||w(e)){var a="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(a||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==$)e.forEach(t,n,e);else if(j(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)o.call(e,r)&&t.call(n,e[r],r,e);return e}function E(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function S(e){return function(t,n){e(n,t)}}function x(){return++b}function C(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function T(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(L(a)||V(a))for(var s=Object.keys(a),l=0,u=s.length;l<u;l++){var c=s[l],f=a[c];n&&L(f)?H(f)?e[c]=new Date(f.valueOf()):Y(f)?e[c]=new RegExp(f):f.nodeName?e[c]=f.cloneNode(!0):Q(f)?e[c]=f.clone():(L(e[c])||(e[c]=z(f)?[]:{}),T(e[c],[f],!0)):e[c]=f}}return C(e,r),e}function k(e){return T(e,d.call(arguments,1),!1)}function _(e){return T(e,d.call(arguments,1),!0)}function A(e){return parseInt(e,10)}l=t.document.documentMode;var O=Number.isNaN||function(e){return e!=e};function D(e,t){return k(Object.create(e),t)}function M(){}function N(e){return e}function I(e){return function(){return e}}function F(e){return V(e.toString)&&e.toString!==g}function R(e){return void 0===e}function P(e){return void 0!==e}function L(e){return null!==e&&"object"==typeof e}function j(e){return null!==e&&"object"==typeof e&&!m(e)}function U(e){return"string"==typeof e}function B(e){return"number"==typeof e}function H(e){return"[object Date]"===g.call(e)}M.$inject=[],N.$inject=[];var z=Array.isArray;function V(e){return"function"==typeof e}function Y(e){return"[object RegExp]"===g.call(e)}function W(e){return e&&e.window===e}function q(e){return e&&e.$evalAsync&&e.$watch}function K(e){return"boolean"==typeof e}function G(e){return e&&V(e.then)}var X=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Z=function(e){return U(e)?e.trim():e},J=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function Q(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function ee(e){return a(e.nodeName||e[0]&&e[0].nodeName)}function te(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function ne(e,t){var n,r,i=[],a=[];if(t){if((r=t)&&B(r.length)&&X.test(g.call(r))||(n=t,"[object ArrayBuffer]"===g.call(n)))throw v("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw v("cpi","Can't copy! Source and destination are identical.");return z(t)?t.length=0:$(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),i.push(e),a.push(t),s(e,t)}return l(e);function s(e,t){var n,r=t.$$hashKey;if(z(e))for(var i=0,a=e.length;i<a;i++)t.push(l(e[i]));else if(j(e))for(n in e)t[n]=l(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=l(e[n]));else for(n in e)o.call(e,n)&&(t[n]=l(e[n]));return C(t,r),t}function l(e){if(!L(e))return e;var t=i.indexOf(e);if(-1!==t)return a[t];if(W(e)||q(e))throw v("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var n=!1,r=function(e){switch(g.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(l(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(V(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===r&&(r=z(e)?[]:Object.create(m(e)),n=!0),i.push(e),a.push(r),n?s(e,r):r}}function re(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!z(e)){if(H(e))return!!H(t)&&re(e.getTime(),t.getTime());if(Y(e))return!!Y(t)&&e.toString()===t.toString();if(q(e)||q(t)||W(e)||W(t)||z(t)||H(t)||Y(t))return!1;for(r in i=Fe(),e)if("$"!==r.charAt(0)&&!V(e[r])){if(!re(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&P(t[r])&&!V(t[r]))return!1;return!0}if(!z(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!re(e[r],t[r]))return!1;return!0}}return!1}var ie=function(){if(!P(ie.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");ie.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ie.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return ie.rules},oe=function(){if(P(oe.name_))return oe.name_;var e,n,r,i,o=$e.length;for(n=0;n<o;++n)if(r=$e[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return oe.name_=i};function ae(e,t,n){return e.concat(d.call(t,n))}function se(e,t){return d.call(e,t||0)}function le(e,t){var n=arguments.length>2?se(arguments,2):[];return!V(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,ae(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function ue(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:W(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":q(n)&&(r="$SCOPE"),r}function ce(e,t){if(!R(e))return B(t)||(t=t?2:null),JSON.stringify(e,ue,t)}function fe(e){return U(e)?JSON.parse(e):e}var de=/:/g;function pe(e,t){e=e.replace(de,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return O(n)?t:n}function he(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,n*(pe(t,r)-r))}function ge(e){e=u(e).clone();try{e.empty()}catch(e){}var t=u("<div>").append(e).html();try{return e[0].nodeType===Pe?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+a(t)})}catch(e){return a(t)}}function me(e){try{return decodeURIComponent(e)}catch(e){}}function ve(e){var t={};return $((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),P(r=me(r))&&(i=!P(i)||me(i),o.call(t,r)?z(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ye(e){var t=[];return $(e,function(e,n){z(e)?$(e,function(e){t.push(we(n,!0)+(!0===e?"":"="+we(e,!0)))}):t.push(we(n,!0)+(!0===e?"":"="+we(e,!0)))}),t.length?t.join("&"):""}function be(e){return we(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function we(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var $e=["ng-","data-ng-","ng:","x-ng-"];var Ee=function(e){var t=e.currentScript,n=t&&t.getAttribute("src");if(!n)return!0;var r=e.createElement("a");if(r.href=n,e.location.origin===r.origin)return!0;switch(r.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}(t.document);function Se(e,n){var r,i,o={};if($($e,function(t){var n=t+"app";!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))}),$($e,function(t){var n,o=t+"app";!r&&(n=e.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!Ee)return void t.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(e,t){var n,r,i=$e.length;for(r=0;r<i;++r)if(n=$e[r]+t,U(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function xe(e,n,r){L(r)||(r={});r=k({strictDi:!1},r);var i=function(){if((e=u(e)).injector()){var i=e[0]===t.document?"document":ge(e);throw v("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=zt(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&o.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(o,"")),t&&!a.test(t.name))return i();t.name=t.name.replace(a,""),y.resumeBootstrap=function(e){return $(e,function(e){n.push(e)}),i()},V(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function Ce(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function Te(e){var t=y.element(e).injector();if(!t)throw v("test","no injector found for element argument to getTestability");return t.get("$$testability")}var ke=/[A-Z]/g;function _e(e,t){return t=t||"_",e.replace(ke,function(e,n){return(n?t:"")+e.toLowerCase()})}var Ae=!1;function Oe(e,t,n){if(!e)throw v("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function De(e,t,n){return n&&z(e)&&(e=e[e.length-1]),Oe(V(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function Me(e,t){if("hasOwnProperty"===e)throw v("badname","hasOwnProperty is not a valid {0} name",t)}function Ne(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&V(e)?le(o,e):e}function Ie(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=u(d.call(e,0,i))),t.push(n));return t||e}function Fe(){return Object.create(null)}var Re=1,Pe=3,Le=8,je=9,Ue=11;function Be(e,t){if(z(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(L(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function He(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):R(e)?"undefined":"string"!=typeof e?function(e){var t=[];return JSON.stringify(e,function(e,n){if(L(n=ue(e,n))){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}(e):e}var ze={full:"1.5.11",major:1,minor:5,dot:11,codeName:"princely-quest"};ut.expando="ng339";var Ve=ut.cache={},Ye=1,We=function(e,t,n){e.addEventListener(t,n,!1)},qe=function(e,t,n){e.removeEventListener(t,n,!1)};ut._data=function(e){return this.cache[e[this.expando]]||{}};var Ke=/([:\-_]+(.))/g,Ge=/^moz([A-Z])/,Xe={mouseleave:"mouseout",mouseenter:"mouseover"},Ze=n("jqLite");function Je(e){return e.replace(Ke,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Ge,"Moz$1")}var Qe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,et=/<|&#?\w+;/,tt=/<([\w:-]+)/,nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rt={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function it(e){return!et.test(e)}function ot(e){var t=e.nodeType;return t===Re||!t||t===je}function at(e,t){var n,r,i,o,a=t.createDocumentFragment(),s=[];if(it(e))s.push(t.createTextNode(e));else{for(n=a.appendChild(t.createElement("div")),r=(tt.exec(e)||["",""])[1].toLowerCase(),i=rt[r]||rt._default,n.innerHTML=i[1]+e.replace(nt,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;s=ae(s,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",$(s,function(e){a.appendChild(e)}),a}function st(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}rt.optgroup=rt.option,rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var lt=t.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function ut(e){if(e instanceof ut)return e;var n,r,i,o;if(U(e)&&(e=Z(e),n=!0),!(this instanceof ut)){if(n&&"<"!==e.charAt(0))throw Ze("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ut(e)}bt(this,n?(r=e,i=i||t.document,(o=Qe.exec(r))?[i.createElement(o[1])]:(o=at(r,i))?o.childNodes:[]):e)}function ct(e){return e.cloneNode(!0)}function ft(e,t){if(t||pt(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)pt(n[r])}function dt(e,t,n,r){if(P(r))throw Ze("offargs","jqLite#off() does not support the `selector` argument");var i=ht(e),o=i&&i.events,a=i&&i.handle;if(a)if(t){var s=function(t){var r=o[t];P(n)&&te(r||[],n),P(n)&&r&&r.length>0||(qe(e,t,a),delete o[t])};$(t.split(" "),function(e){s(e),Xe[e]&&s(Xe[e])})}else for(t in o)"$destroy"!==t&&qe(e,t,a),delete o[t]}function pt(e,t){var n=e.ng339,r=n&&Ve[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),dt(e)),delete Ve[n],e.ng339=void 0}}function ht(e,t){var n=e.ng339,r=n&&Ve[n];return t&&!r&&(e.ng339=n=++Ye,r=Ve[n]={events:{},data:{},handle:void 0}),r}function gt(e,t,n){if(ot(e)){var r=P(n),i=!r&&t&&!L(t),o=!t,a=ht(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];k(s,t)}}}function mt(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function vt(e,t){t&&e.setAttribute&&$(t.split(" "),function(t){e.setAttribute("class",Z((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Z(t)+" "," ")))})}function yt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");$(t.split(" "),function(e){e=Z(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Z(n))}}function bt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function wt(e,t){return $t(e,"$"+(t||"ngController")+"Controller")}function $t(e,t,n){e.nodeType===je&&(e=e.documentElement);for(var r=z(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(P(n=u.data(e,r[i])))return n;e=e.parentNode||e.nodeType===Ue&&e.host}}function Et(e){for(ft(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function St(e,t){t||ft(e);var n=e.parentNode;n&&n.removeChild(e)}var xt=ut.prototype={ready:function(e){var n=!1;function r(){n||(n=!0,e())}"complete"===t.document.readyState?t.setTimeout(r):(this.on("DOMContentLoaded",r),ut(t).on("load",r))},toString:function(){var e=[];return $(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return u(e>=0?this[e]:this[this.length+e])},length:0,push:h,sort:[].sort,splice:[].splice},Ct={};$("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ct[a(e)]=e});var Tt={};$("input,select,option,textarea,button,form,details".split(","),function(e){Tt[e]=!0});var kt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function _t(e,t){var n=Ct[t.toLowerCase()];return n&&Tt[ee(e)]&&n}function At(e,t,n){n.call(e,t)}function Ot(e,t,n){var r=t.relatedTarget;r&&(r===e||lt.call(e,r))||n.call(e,t)}function Dt(){this.$get=function(){return k(ut,{hasClass:function(e,t){return e.attr&&(e=e[0]),mt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),yt(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),vt(e,t)}})}}function Mt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||x)():r+":"+e}function Nt(e,t){if(t){var n=0;this.nextUid=function(){return++n}}$(e,this.put,this)}$({data:gt,removeData:pt,hasData:function(e){for(var t in Ve[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)pt(e[t])}},function(e,t){ut[t]=e}),$({data:gt,inheritedData:$t,scope:function(e){return u.data(e,"$scope")||$t(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return u.data(e,"$isolateScope")||u.data(e,"$isolateScopeNoTemplate")},controller:wt,injector:function(e){return $t(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:mt,css:function(e,t,n){if(t=Je(t),!P(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r=e.nodeType;if(r!==Pe&&2!==r&&r!==Le){var i=a(t);if(Ct[i]){if(!P(n))return e[t]||(e.attributes.getNamedItem(t)||M).specified?i:void 0;n?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(P(n))e.setAttribute(t,n);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?void 0:o}}},prop:function(e,t,n){if(!P(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(R(t)){var n=e.nodeType;return n===Re||n===Pe?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(R(t)){if(e.multiple&&"select"===ee(e)){var n=[];return $(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(R(t))return e.innerHTML;ft(e,!0),e.innerHTML=t},empty:Et},function(e,t){ut.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Et&&R(2===e.length&&e!==mt&&e!==wt?t:n)){if(L(t)){for(r=0;r<o;r++)if(e===gt)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=R(a)?Math.min(o,1):o,l=0;l<s;l++){var u=e(this[l],t,n);a=a?a+u:u}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),$({removeData:pt,on:function(e,t,n,r){if(P(r))throw Ze("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ot(e)){var i=ht(e,!0),o=i.events,a=i.handle;a||(a=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(R(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||At;o>1&&(i=Be(i));for(var l=0;l<o;l++)n.isImmediatePropagationStopped()||s(e,n,i[l])}};return n.elem=e,n}(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],l=s.length,u=function(t,r,i){var s=o[t];s||((s=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||We(e,t,a)),s.push(n)};l--;)t=s[l],Xe[t]?(u(Xe[t],Ot),u(t,void 0,!0)):u(t)}},off:dt,one:function(e,t,n){(e=u(e)).on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;ft(e),$(new ut(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return $(e.childNodes,function(e){e.nodeType===Re&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Re||n===Ue)for(var r=0,i=(t=new ut(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(e.nodeType===Re){var n=e.firstChild;$(new ut(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){st(e,u(t).eq(0).clone()[0])},remove:St,detach:function(e){St(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new ut(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:yt,removeClass:vt,toggleClass:function(e,t,n){t&&$(t.split(" "),function(t){var r=n;R(r)&&(r=!mt(e,t)),(r?yt:vt)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Ue?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ct,triggerHandler:function(e,t,n){var r,i,o,a=t.type||t,s=ht(e),l=s&&s.events,u=l&&l[a];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:M,type:a,target:e},t.type&&(r=k(r,t)),i=Be(u),o=n?[r].concat(n):[r],$(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(e,t){ut.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)R(i)?P(i=e(this[o],t,n,r))&&(i=u(i)):bt(i,e(this[o],t,n,r));return P(i)?i:this}}),ut.prototype.bind=ut.prototype.on,ut.prototype.unbind=ut.prototype.off,Nt.prototype={put:function(e,t){this[Mt(e,this.nextUid)]=t},get:function(e){return this[Mt(e,this.nextUid)]},remove:function(e){var t=this[e=Mt(e,this.nextUid)];return delete this[e],t}};var It=[function(){this.$get=[function(){return Nt}]}],Ft=/^([^(]+?)=>/,Rt=/^[^(]*\(\s*([^)]*)\)/m,Pt=/,/,Lt=/^\s*(_?)(\S+?)\1\s*$/,jt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ut=n("$injector");function Bt(e){return Function.prototype.toString.call(e)+" "}function Ht(e){var t=Bt(e).replace(jt,"");return t.match(Ft)||t.match(Rt)}function zt(e,t){t=!0===t;var n={},r="Provider",i=[],o=new Nt([],!0),a={$provide:{provider:h(g),factory:h(m),service:h(function(e,t){return m(e,["$injector",function(e){return e.instantiate(t)}])}),value:h(function(e,t){return m(e,I(t),!1)}),constant:h(function(e,t){Me(e,"constant"),a[e]=t,u[e]=t}),decorator:function(e,t){var n=s.get(e+r),i=n.$get;n.$get=function(){var e=d.invoke(i,n);return d.invoke(t,null,{$delegate:e})}}}},s=a.$injector=v(a,function(e,t){throw y.isString(t)&&i.push(t),Ut("unpr","Unknown provider: {0}",i.join(" <- "))}),u={},c=v(u,function(e,t){var n=s.get(e+r,t);return d.invoke(n.$get,n,void 0,e)}),d=c;a["$injector"+r]={$get:I(c)};var p=function e(t){Oe(R(t)||z(t),"modulesToLoad","not an array");var n,r=[];$(t,function(t){if(!o.get(t)){o.put(t,!0);try{U(t)?(n=f(t),r=r.concat(e(n.requires)).concat(n._runBlocks),i(n._invokeQueue),i(n._configBlocks)):V(t)?r.push(s.invoke(t)):z(t)?r.push(s.invoke(t)):De(t,"module")}catch(e){throw z(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ut("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}});return r}(e);return(d=c.get("$injector")).strictDi=t,$(p,function(e){e&&d.invoke(e)}),d;function h(e){return function(t,n){if(!L(t))return e(t,n);$(t,S(e))}}function g(e,t){if(Me(e,"service"),(V(t)||z(t))&&(t=s.instantiate(t)),!t.$get)throw Ut("pget","Provider '{0}' must define $get factory method.",e);return a[e+r]=t}function m(e,t,n){return g(e,{$get:!1!==n?function(e,t){return function(){var n=d.invoke(t,this);if(R(n))throw Ut("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}(e,t):t})}function v(e,o){function s(t,r){if(e.hasOwnProperty(t)){if(e[t]===n)throw Ut("cdep","Circular dependency found: {0}",t+" <- "+i.join(" <- "));return e[t]}try{return i.unshift(t),e[t]=n,e[t]=o(t,r),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{i.shift()}}function u(e,n,r){for(var i=[],o=zt.$$annotate(e,t,r),a=0,l=o.length;a<l;a++){var u=o[a];if("string"!=typeof u)throw Ut("itkn","Incorrect injection token! Expected service name as string, got {0}",u);i.push(n&&n.hasOwnProperty(u)?n[u]:s(u,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i,o=u(e,n,r);return z(e)&&(e=e[e.length-1]),i=e,l<=11||"function"!=typeof i||!/^(?:class\b|constructor\()/.test(Bt(i))?e.apply(t,o):(o.unshift(null),new(Function.prototype.bind.apply(e,o)))},instantiate:function(e,t,n){var r=z(e)?e[e.length-1]:e,i=u(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:zt.$$annotate,has:function(t){return a.hasOwnProperty(t+r)||e.hasOwnProperty(t)}}}}function Vt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(e){if(e){e.scrollIntoView();var t=function(){var e=s.yOffset;if(V(e))e=e();else if(Q(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else B(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function s(e){var t,n,i;(e=U(e)?e:B(e)?e.toString():r.hash())?(t=o.getElementById(e))?a(t):(n=o.getElementsByName(e),i=null,Array.prototype.some.call(n,function(e){if("a"===ee(e))return i=e,!0}),(t=i)?a(t):"top"===e&&a(null)):a(null)}return e&&i.$watch(function(){return r.hash()},function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(s)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):u(o).on("load",r))}),s}]}zt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw U(n)&&n||(n=e.name||function(e){var t=Ht(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Ut("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);$(Ht(e)[1].split(Pt),function(e){e.replace(Lt,function(e,t,n){r.push(n)})})}e.$inject=r}}else z(e)?(De(e[i=e.length-1],"fn"),r=e.slice(0,i)):De(e,"fn",!0);return r};var Yt=n("$animate"),Wt=1;function qt(e,t){return e||t?e?t?(z(e)&&(e=e.join(" ")),z(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Kt(e){return L(e)?e:{}}var Gt=function(){this.$get=M},Xt=function(){var e=new Nt,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:M,on:M,off:M,pin:M,push:function(a,s,l,u){u&&u(),(l=l||{}).from&&a.css(l.from),l.to&&a.css(l.to),(l.addClass||l.removeClass)&&function(n,a,s){var l=e.get(n)||{},u=i(l,a,!0),c=i(l,s,!1);(u||c)&&(e.put(n,l),t.push(n),1===t.length&&r.$$postDigest(o))}(a,l.addClass,l.removeClass);var c=new n;return c.complete(),c}};function i(e,t,n){var r=!1;return t&&$(t=U(t)?t.split(" "):z(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function o(){$(t,function(t){var n=e.get(t);if(n){var r=function(e){U(e)&&(e=e.split(" "));var t=Fe();return $(e,function(e){e.length&&(t[e]=!0)}),t}(t.attr("class")),i="",o="";$(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:o+=(o.length?" ":"")+t)}),$(t,function(e){i&&yt(e,i),o&&vt(e,o)}),e.remove(t)}}),t.length=0}}]},Zt=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Yt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter&&new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)").test(this.$$classNameFilter.toString())))throw Yt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Wt)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&u(r),i=i&&u(i),t(n,r=r||i.parent(),i),e.push(n,"enter",Kt(o))},move:function(n,r,i,o){return r=r&&u(r),i=i&&u(i),t(n,r=r||i.parent(),i),e.push(n,"move",Kt(o))},leave:function(t,n){return e.push(t,"leave",Kt(n),function(){t.remove()})},addClass:function(t,n,r){return(r=Kt(r)).addClass=qt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=Kt(r)).removeClass=qt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=Kt(i)).addClass=qt(i.addClass,n),i.removeClass=qt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=Kt(o)).from=o.from?k(o.from,n):n,o.to=o.to?k(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=qt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Jt=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e(function(){for(var e=0;e<t.length;e++)t[e]();t=[]})}return function(){var e=!1;return n(function(){e=!0}),function(t){e?t():n(t)}}}]},Qt=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,r,i){function o(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){var n=r[0];n&&n.hidden?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return o.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n](function(e){!1!==e?(n++,r()):t(!1)})}()},o.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}$(e,function(e){e.done(i)})},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:M,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&($(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},o}]},en=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=ne(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return e(function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),o||a.complete(),o=!0}),a}}}]};function tn(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new function(e,t,n,r){var i=this,o=e.location,a=e.history,s=e.setTimeout,l=e.clearTimeout,c={};i.isMock=!1;var f=0,d=[];function p(e){try{e.apply(null,se(arguments,1))}finally{if(0==--f)for(;d.length;)try{d.pop()()}catch(e){n.error(e)}}}i.$$completeOutstandingRequest=p,i.$$incOutstandingRequestCount=function(){f++},i.notifyWhenNoOutstandingRequests=function(e){0===f?e():d.push(e)};var h,g,m=o.href,v=t.find("base"),y=null,b=r.history?function(){try{return a.state}catch(e){}}:M;C(),g=h,i.url=function(t,n,s){if(R(s)&&(s=null),o!==e.location&&(o=e.location),a!==e.history&&(a=e.history),t){var l=g===s;if(m===t&&(!r.history||l))return i;var u=m&&Xn(m)===Xn(t);return m=t,g=s,!r.history||u&&l?(u||(y=t),n?o.replace(t):u?o.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):o.href=t,o.href!==t&&(y=t)):(a[n?"replaceState":"pushState"](s,"",t),C(),g=h),y&&(y=t),i}return y||o.href.replace(/%27/g,"'")},i.state=function(){return h};var w=[],E=!1;function S(){y=null,C(),T()}var x=null;function C(){re(h=R(h=b())?null:h,x)&&(h=x),x=h}function T(){m===i.url()&&g===h||(m=i.url(),g=h,$(w,function(e){e(i.url(),h)}))}i.onUrlChange=function(t){return E||(r.history&&u(e).on("popstate",S),u(e).on("hashchange",S),E=!0),w.push(t),t},i.$$applicationDestroyed=function(){u(e).off("hashchange popstate",S)},i.$$checkUrlChange=T,i.baseHref=function(){var e=v.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},i.defer=function(e,t){var n;return f++,n=s(function(){delete c[n],p(e)},t||0),c[n]=!0,n},i.defer.cancel=function(e){return!!c[e]&&(delete c[e],l(e),p(M),!0)}}(e,r,t,n)}]}function nn(){this.$get=function(){var e={};function t(t,r){if(t in e)throw n("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var i=0,o=k({},r,{id:t}),a=Fe(),s=r&&r.capacity||Number.MAX_VALUE,l=Fe(),u=null,c=null;return e[t]={put:function(e,t){if(!R(t)){if(s<Number.MAX_VALUE)f(l[e]||(l[e]={key:e}));return e in a||i++,a[e]=t,i>s&&this.remove(c.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;f(t)}return a[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;t===u&&(u=t.p),t===c&&(c=t.n),d(t.n,t.p),delete l[e]}e in a&&(delete a[e],i--)},removeAll:function(){a=Fe(),i=0,l=Fe(),u=c=null},destroy:function(){a=null,o=null,l=null,delete e[t]},info:function(){return k({},o,{size:i})}};function f(e){e!==u&&(c?c===e&&(c=e.n):c=e,d(e.n,e.p),d(e,u),(u=e).n=null)}function d(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return $(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function rn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var on=n("$compile");var an=new function(){};function sn(e,n){var r={},i="Directive",s=/^\s*directive:\s*([\w-]+)\s+(.*)$/,c=/(([\w-]+)(?::([^;]+))?;?)/,f=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),d=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,p=/^(on[a-z]+|formaction)$/,h=Fe();function m(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=Fe();return $(e,function(e,o){if(e in h)i[o]=h[e];else{var a=e.match(r);if(!a)throw on("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(h[e]=i[o])}}),i}function v(e,t){var n={isolateScope:null,bindToController:null};if(L(e.scope)&&(!0===e.bindToController?(n.bindToController=m(e.scope,t,!0),n.isolateScope={}):n.isolateScope=m(e.scope,t,!1)),L(e.bindToController)&&(n.bindToController=m(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw on("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function t(n,o){return Oe(n,"name"),Me(n,"directive"),U(n)?(!function(e){var t=e.charAt(0);if(!t||t!==a(t))throw on("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw on("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),Oe(o,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],e.factory(n+i,["$injector","$exceptionHandler",function(e,t){var i=[];return $(r[n],function(r,o){try{var a=e.invoke(r);V(a)?a={compile:I(a)}:!a.compile&&a.link&&(a.compile=I(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(e){var t=e.require||e.controller&&e.name;return!z(t)&&L(t)&&$(t,function(e,n){var r=e.match(d);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}(a),a.restrict=function(e,t){if(e&&(!U(e)||!/[EACM]/.test(e)))throw on("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(a.restrict,n),a.$$moduleName=r.$$moduleName,i.push(a)}catch(e){t(e)}}),i}])),r[n].push(o)):$(n,S(t)),this},this.component=function(e,t){var n=t.controller||function(){};function r(e){function r(t){return V(t)||z(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=t.template||t.templateUrl?t.template:"",o={controller:n,controllerAs:function(e,t){if(t&&U(t))return t;if(U(e)){var n=hn.exec(e);if(n)return n[3]}}(t.controller)||t.controllerAs||"$ctrl",template:r(i),templateUrl:r(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return $(t,function(e,t){"$"===t.charAt(0)&&(o[t]=e)}),o}return $(t,function(e,t){"$"===t.charAt(0)&&(r[t]=e,V(n)&&(n[t]=e))}),r.$inject=["$injector"],this.directive(e,r)},this.aHrefSanitizationWhitelist=function(e){return P(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return P(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(e){return P(e)?(y=e,this):y};var b=!0;this.preAssignBindingsEnabled=function(e){return P(e)?(b=e,this):b};var w=10;this.onChangesTtl=function(e){return arguments.length?(w=e,this):w};var E=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(E=e,this):E};var x=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(x=e,this):x},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,h,m,S,C,T,_,A,O){var I,F=/^\w/,j=t.document.createElement("div"),B=E,H=x,Y=w;function W(){try{if(!--Y)throw I=void 0,on("infchng","{0} $onChanges() iterations reached. Aborting!\n",w);T.$apply(function(){for(var e=[],t=0,n=I.length;t<n;++t)try{I[t]()}catch(t){e.push(t)}if(I=void 0,e.length)throw e})}finally{Y++}}function G(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function X(e,t){try{e.addClass(t)}catch(e){}}G.prototype={$normalize:cn,$addClass:function(e){e&&e.length>0&&A.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&A.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=fn(e,t);n&&n.length&&A.addClass(this.$$element,n);var r=fn(t,e);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i,o=_t(this.$$element[0],e),a=kt[e],s=e;if(o?(this.$$element.prop(e,t),r=o):a&&(this[a]=t,s=a),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=_e(e,"-")),"a"===(i=ee(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===i&&"src"===e)this[e]=t=O(t,"src"===e);else if("img"===i&&"srcset"===e&&P(t)){for(var l="",u=Z(t),c=/\s/.test(u)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,f=u.split(c),d=Math.floor(f.length/2),p=0;p<d;p++){var g=2*p;l+=O(Z(f[g]),!0),l+=" "+Z(f[g+1])}var m=Z(f[2*p]).split(/\s/);l+=O(Z(m[0]),!0),2===m.length&&(l+=" "+Z(m[1])),this[e]=t=l}!1!==n&&(null===t||R(t)?this.$$element.removeAttr(r):F.test(r)?this.$$element.attr(r,t):function(e,t,n){j.innerHTML="<span "+t+">";var r=j.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var v=this.$$observers;v&&$(v[s],function(e){try{e(t)}catch(e){h(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Fe()),i=r[e]||(r[e]=[]);return i.push(t),T.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||R(n[e])||t(n[e])}),function(){te(i,t)}}};var J=n.startSymbol(),Q=n.endSymbol(),ne="{{"===J&&"}}"===Q?N:function(e){return e.replace(/\{\{/g,J).replace(/}}/g,Q)},ie=/^ngAttr[A-Z]/,oe=/^(.+)Start$/;return ae.$$addBindingInfo=y?function(e,t){var n=e.data("$binding")||[];z(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:M,ae.$$addBindingClass=y?function(e){X(e,"ng-binding")}:M,ae.$$addScopeInfo=y?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:M,ae.$$addScopeClass=y?function(e,t){X(e,t?"ng-isolate-scope":"ng-scope")}:M,ae.$$createComment=function(e,n){var r="";return y&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},ae;function ae(e,n,r,i,o){e instanceof u||(e=u(e));for(var a=/\S+/,s=0,l=e.length;s<l;s++){var c=e[s];c.nodeType===Pe&&c.nodeValue.match(a)&&st(c,e[s]=t.document.createElement("span"))}var f=ue(e,n,e,r,i,o);ae.$$addScopeClass(e);var d=null;return function(t,n,r){Oe(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new());var i,a,s,l=(r=r||{}).parentBoundTranscludeFn,c=r.transcludeControllers,p=r.futureParentElement;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),d||(a=(i=p)&&i[0],d=a&&"foreignobject"!==ee(a)&&g.call(a).match(/SVG/)?"svg":"html"),s="html"!==d?u(Ce(d,u("<div>").append(e).html())):n?xt.clone.call(e):e,c)for(var h in c)s.data("$"+h+"Controller",c[h].instance);return ae.$$addScopeInfo(s,t),n&&n(s,t),f&&f(t,s,s,l),s}}function ue(e,t,n,r,i,o){for(var a,s,l,c,f,d,p,h=[],g=0;g<e.length;g++)a=new G,(l=(s=fe(e[g],[],a,0===g?r:void 0,i)).length?me(s,e[g],a,t,n,null,[],[],o):null)&&l.scope&&ae.$$addScopeClass(a.$$element),f=l&&l.terminal||!(c=e[g].childNodes)||!c.length?null:ue(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||f)&&(h.push(g,l,f),d=!0,p=p||l),o=null;return d?function(e,n,r,i){var o,a,s,l,c,f,d,g,m;if(p){var v=n.length;for(m=new Array(v),c=0;c<h.length;c+=3)d=h[c],m[d]=n[d]}else m=n;for(c=0,f=h.length;c<f;)s=m[h[c++]],o=h[c++],a=h[c++],o?(o.scope?(l=e.$new(),ae.$$addScopeInfo(u(s),l)):l=e,g=o.transcludeOnThisElement?ce(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?ce(e,t):null,o(a,l,s,r,g)):a&&a(e,s.childNodes,void 0,i)}:null}function ce(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=Fe();for(var o in t.$$slots)t.$$slots[o]?i[o]=ce(e,t.$$slots[o],n):i[o]=null;return r}function fe(e,t,r,i,o){var a,u,f,d=e.nodeType,p=r.$attr;switch(d){case Re:be(t,cn(u=ee(e)),"E",i,o);for(var h,g,m,v,y,b,w=e.attributes,$=0,E=w&&w.length;$<E;$++){var S=!1,x=!1;g=(h=w[$]).name,y=Z(h.value),v=cn(g),(b=ie.test(v))&&(g=g.replace(un,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=v.match(oe);C&&we(C[1])&&(S=g,x=g.substr(0,g.length-5)+"end",g=g.substr(0,g.length-6)),p[m=cn(g.toLowerCase())]=g,!b&&r.hasOwnProperty(m)||(r[m]=y,_t(e,m)&&(r[m]=!0)),Te(e,t,y,m,b),be(t,m,"A",i,o,S,x)}if("input"===u&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!H)break;if(L(f=e.className)&&(f=f.animVal),U(f)&&""!==f)for(;a=c.exec(f);)be(t,m=cn(a[2]),"C",i,o)&&(r[m]=Z(a[3])),f=f.substr(a.index+a[0].length);break;case Pe:if(11===l)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===Pe;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&ae.$$addBindingClass(t),function(e,t){var i=t.parent();n||ae.$$addBindingClass(i),ae.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}(t,e.nodeValue);break;case Le:if(!B)break;!function(e,t,n,r,i){try{var o=s.exec(e.nodeValue);if(o){var a=cn(o[1]);be(t,a,"M",r,i)&&(n[a]=Z(o[2]))}}catch(e){}}(e,t,r,i,o)}return t.sort(Se),t}function de(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw on("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===Re&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return u(r)}function pe(e,t,n){return function(r,i,o,a,s){return i=de(i[0],t,n),e(r,i,o,a,s)}}function he(e,t,n,r,i,o){var a;return e?ae(t,n,r,i,o):function(){return a||(a=ae(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function me(e,t,n,r,i,o,a,s,l){l=l||{};for(var c,f,d,p,g,m=-Number.MAX_VALUE,v=l.newScopeDirective,y=l.controllerDirectives,w=l.newIsolateScopeDirective,E=l.templateDirective,S=l.nonTlbTranscludeDirective,x=!1,T=!1,_=l.hasElementTranscludeDirective,A=n.$$element=u(t),O=o,D=r,M=!1,N=!1,I=0,F=e.length;I<F;I++){var P=(c=e[I]).$$start,j=c.$$end;if(P&&(A=de(t,P,j)),d=void 0,m>c.priority)break;if((g=c.scope)&&(c.templateUrl||(L(g)?(xe("new/isolated scope",w||v,c,A),w=c):xe("new/isolated scope",w,c,A)),v=v||c),f=c.name,!M&&(c.replace&&(c.templateUrl||c.template)||c.transclude&&!c.$$tlb)){for(var U,B=I+1;U=e[B++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){N=!0;break}M=!0}if(!c.templateUrl&&c.controller&&(y=y||Fe(),xe("'"+f+"' controller",y[f],c,A),y[f]=c),g=c.transclude)if(x=!0,c.$$tlb||(xe("transclusion",S,c,A),S=c),"element"===g)_=!0,m=c.priority,d=A,A=n.$$element=u(ae.$$createComment(f,n[f])),t=A[0],ke(i,se(d),t),d[0].$$parentNode=d[0].parentNode,D=he(N,d,r,m,O&&O.name,{nonTlbTranscludeDirective:S});else{var H=Fe();if(d=u(ct(t)).contents(),L(g)){d=[];var Y=Fe(),W=Fe();for(var K in $(g,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,Y[e]=t,H[t]=null,W[t]=n}),$(A.contents(),function(e){var t=Y[cn(ee(e))];t?(W[t]=!0,H[t]=H[t]||[],H[t].push(e)):d.push(e)}),$(W,function(e,t){if(!e)throw on("reqslot","Required transclusion slot `{0}` was not filled.",t)}),H)H[K]&&(H[K]=he(N,H[K],r))}A.empty(),(D=he(N,d,r,void 0,void 0,{needsNewScope:c.$$isolateScope||c.$$newScope})).$$slots=H}if(c.template)if(T=!0,xe("template",E,c,A),E=c,g=V(c.template)?c.template(A,n):c.template,g=ne(g),c.replace){if(O=c,d=it(g)?[]:dn(Ce(c.templateNamespace,Z(g))),t=d[0],1!==d.length||t.nodeType!==Re)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");ke(i,A,t);var X={$attr:{}},J=fe(t,[],X),Q=e.splice(I+1,e.length-(I+1));(w||v)&&ye(J,w,v),e=e.concat(J).concat(Q),$e(n,X),F=e.length}else A.html(g);if(c.templateUrl)T=!0,xe("template",E,c,A),E=c,c.replace&&(O=c),ie=Ee(e.splice(I,e.length-I),A,n,i,x&&D,a,s,{controllerDirectives:y,newScopeDirective:v!==c&&v,newIsolateScopeDirective:w,templateDirective:E,nonTlbTranscludeDirective:S}),F=e.length;else if(c.compile)try{p=c.compile(A,n,D);var te=c.$$originalDirective||c;V(p)?re(null,le(te,p),P,j):p&&re(le(te,p.pre),le(te,p.post),P,j)}catch(e){h(e,ge(A))}c.terminal&&(ie.terminal=!0,m=Math.max(m,c.priority))}return ie.scope=v&&!0===v.scope,ie.transcludeOnThisElement=x,ie.templateOnThisElement=T,ie.transclude=D,l.hasElementTranscludeDirective=_,ie;function re(e,t,n,r){e&&(n&&(e=pe(e,n,r)),e.require=c.require,e.directiveName=f,(w===c||c.$$isolateScope)&&(e=Ae(e,{isolateScope:!0})),a.push(e)),t&&(n&&(t=pe(t,n,r)),t.require=c.require,t.directiveName=f,(w===c||c.$$isolateScope)&&(t=Ae(t,{isolateScope:!0})),s.push(t))}function ie(e,r,i,o,l){var c,f,d,p,g,m,S,x,T,A;for(var O in t===i?(T=n,x=n.$$element):T=new G(x=u(i),n),g=r,w?p=r.$new(!0):v&&(g=r.$parent),l&&((S=function(e,t,n,r){var i;q(e)||(r=n,n=t,t=e,e=void 0);_&&(i=m);n||(n=_?x.parent():x);if(!r)return l(e,t,i,n,F);var o=l.$$slots[r];if(o)return o(e,t,i,n,F);if(R(o))throw on("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ge(x))}).$$boundTransclude=l,S.isSlotFilled=function(e){return!!l.$$slots[e]}),y&&(m=function(e,t,n,r,i,o,a){var s=Fe();for(var l in r){var u=r[l],c={$scope:u===a||u.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=u.controller;"@"===f&&(f=t[u.name]);var d=C(f,c,!0,u.controllerAs);s[u.name]=d,e.data("$"+u.name+"Controller",d.instance)}return s}(x,T,S,y,p,r,w)),w&&(ae.$$addScopeInfo(x,p,!0,!(E&&(E===w||E===w.$$originalDirective))),ae.$$addScopeClass(x,!0),p.$$isolateBindings=w.$$isolateBindings,(A=Me(r,T,p,p.$$isolateBindings,w)).removeWatches&&p.$on("$destroy",A.removeWatches)),m){var D=y[O],M=m[O],N=D.$$bindings.bindToController;if(b){M.bindingInfo=N?Me(g,T,M.instance,N,D):{};var I=M();I!==M.instance&&(M.instance=I,x.data("$"+D.name+"Controller",I),M.bindingInfo.removeWatches&&M.bindingInfo.removeWatches(),M.bindingInfo=Me(g,T,M.instance,N,D))}else M.instance=M(),x.data("$"+D.name+"Controller",M.instance),M.bindingInfo=Me(g,T,M.instance,N,D)}for($(y,function(e,t){var n=e.require;e.bindToController&&!z(n)&&L(n)&&k(m[t].instance,ve(t,n,x,m))}),$(m,function(e){var t=e.instance;if(V(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){h(e)}if(V(t.$onInit))try{t.$onInit()}catch(e){h(e)}V(t.$doCheck)&&(g.$watch(function(){t.$doCheck()}),t.$doCheck()),V(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),c=0,f=a.length;c<f;c++)De(d=a[c],d.isolateScope?p:r,x,T,d.require&&ve(d.directiveName,d.require,x,m),S);var F=r;for(w&&(w.template||null===w.templateUrl)&&(F=p),e&&e(F,i.childNodes,void 0,l),c=s.length-1;c>=0;c--)De(d=s[c],d.isolateScope?p:r,x,T,d.require&&ve(d.directiveName,d.require,x,m),S);$(m,function(e){var t=e.instance;V(t.$postLink)&&t.$postLink()})}}function ve(e,t,n,r){var i;if(U(t)){var o=t.match(d),a=t.substring(o[0].length),s=o[1]||o[3],l="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var u="$"+a+"Controller";i=s?n.inheritedData(u):n.data(u)}if(!i&&!l)throw on("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(z(t)){i=[];for(var c=0,f=t.length;c<f;c++)i[c]=ve(e,t[c],n,r)}else L(t)&&(i={},$(t,function(t,o){i[o]=ve(e,t,n,r)}));return i||null}function ye(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=D(e[r],{$$isolateScope:t,$$newScope:n})}function be(t,n,o,a,s,l,u){if(n===s)return null;var c=null;if(r.hasOwnProperty(n))for(var f,d=e.get(n+i),p=0,h=d.length;p<h;p++)if(f=d[p],(R(a)||a>f.priority)&&-1!==f.restrict.indexOf(o)){if(l&&(f=D(f,{$$start:l,$$end:u})),!f.$$bindings){var g=f.$$bindings=v(f,f.name);L(g.isolateScope)&&(f.$$isolateBindings=g.isolateScope)}t.push(f),c=f}return c}function we(t){if(r.hasOwnProperty(t))for(var n=e.get(t+i),o=0,a=n.length;o<a;o++)if(n[o].multiElement)return!0;return!1}function $e(e,t){var n=t.$attr,r=e.$attr;$(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),$(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function Ee(e,t,n,r,i,o,a,s){var l,c,f=[],d=t[0],p=e.shift(),h=D(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),g=V(p.templateUrl)?p.templateUrl(t,n):p.templateUrl,v=p.templateNamespace;return t.empty(),m(g).then(function(m){var y,b,w,E;if(m=ne(m),p.replace){if(w=it(m)?[]:dn(Ce(v,Z(m))),y=w[0],1!==w.length||y.nodeType!==Re)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,g);b={$attr:{}},ke(r,t,y);var S=fe(y,[],b);L(p.scope)&&ye(S,!0),e=S.concat(e),$e(n,b)}else y=d,t.html(m);for(e.unshift(h),l=me(e,y,n,i,t,p,o,a,s),$(r,function(e,n){e===y&&(r[n]=t[0])}),c=ue(t[0].childNodes,i);f.length;){var x=f.shift(),C=f.shift(),T=f.shift(),k=f.shift(),_=t[0];if(!x.$$destroyed){if(C!==d){var A=C.className;s.hasElementTranscludeDirective&&p.replace||(_=ct(y)),ke(T,u(C),_),X(u(_),A)}E=l.transcludeOnThisElement?ce(x,l.transclude,k):k,l(c,x,_,r,E)}}f=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(l.transcludeOnThisElement&&(o=ce(t,l.transclude,i)),l(c,t,n,r,o)))}}function Se(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function xe(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw on("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ge(r))}function Ce(e,n){switch(e=a(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Te(e,t,r,i,o){var a=function(e,t){if("srcdoc"===t)return _.HTML;var n=ee(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return _.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t)return _.RESOURCE_URL}(e,i),s=!o,l=f[i]||o,u=n(r,s,a,l);if(u){if("multiple"===i&&"select"===ee(e))throw on("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ge(e));t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=Fe());if(p.test(i))throw on("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=o[i];c!==r&&(u=c&&n(c,!0,a,l),r=c),u&&(o[i]=u(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(u,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function ke(e,n,r){var i,o,a=n[0],s=n.length,l=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===a){e[i++]=r;for(var c=i,f=c+s-1,d=e.length;c<d;c++,f++)f<d?e[c]=e[f]:delete e[c];e.length-=s-1,e.context===a&&(e.context=r);break}l&&l.replaceChild(r,a);var p=t.document.createDocumentFragment();for(i=0;i<s;i++)p.appendChild(n[i]);for(u.hasData(a)&&(u.data(r,u.data(a)),u(a).off("$destroy")),u.cleanData(p.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function Ae(e,t){return k(function(){return e.apply(null,arguments)},e,t)}function De(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){h(e,ge(n))}}function Me(e,t,r,i,a){var s,l=[],u={};function c(t,n,i){!V(r.$onChanges)||n===i||n!=n&&i!=i||(I||(e.$$postDigest(W),I=[]),s||(s={},I.push(f)),s[t]&&(i=s[t].previousValue),s[t]=new ln(i,n))}function f(){r.$onChanges(s),s=void 0}return $(i,function(i,s){var f,d,p,h,g,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||o.call(t,m)||(r[s]=t[m]=void 0),g=t.$observe(m,function(e){if(U(e)||K(e)){var t=r[s];c(s,e,t),r[s]=e}}),t.$$observers[m].$$scope=e,U(f=t[m])?r[s]=n(f)(e):K(f)&&(r[s]=f),u[s]=new ln(an,r[s]),l.push(g);break;case"=":if(!o.call(t,m)){if(v)break;t[m]=void 0}if(v&&!t[m])break;d=S(t[m]),h=d.literal?re:function(e,t){return e===t||e!=e&&t!=t},p=d.assign||function(){throw f=r[s]=d(e),on("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,a.name)},f=r[s]=d(e);var y=function(t){return h(t,r[s])||(h(t,f)?p(e,t=r[s]):r[s]=t),f=t};y.$stateful=!0,g=i.collection?e.$watchCollection(t[m],y):e.$watch(S(t[m],y),null,d.literal),l.push(g);break;case"<":if(!o.call(t,m)){if(v)break;t[m]=void 0}if(v&&!t[m])break;var b=(d=S(t[m])).literal,w=r[s]=d(e);u[s]=new ln(an,r[s]),g=e.$watch(d,function(e,t){if(t===e){if(t===w||b&&re(t,w))return;t=w}c(s,e,t),r[s]=e},b),l.push(g);break;case"&":if((d=t.hasOwnProperty(m)?S(t[m]):M)===M&&v)break;r[s]=function(t){return d(e,t)}}}),{initialChanges:u,removeWatches:l.length&&function(){for(var e=0,t=l.length;e<t;++e)l[e]()}}}}]}function ln(e,t){this.previousValue=e,this.currentValue=t}sn.$inject=["$provide","$$sanitizeUriProvider"],ln.prototype.isFirstChange=function(){return this.previousValue===an};var un=/^((?:x|data)[:\-_])/i;function cn(e){return Je(e.replace(un,""))}function fn(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function dn(e){var t=(e=u(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Le||n.nodeType===Pe&&""===n.nodeValue.trim())&&p.call(e,t,1)}return e}var pn=n("$controller"),hn=/^(\S+)(\s+as\s+([\w$]+))?$/;function gn(){var e={},t=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Me(t,"controller"),L(t)?k(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(r,i){return function(n,a,s,l){var u,c,f,d;if(s=!0===s,l&&U(l)&&(d=l),U(n)){if(!(c=n.match(hn)))throw pn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",n);if(f=c[1],d=d||c[3],!(n=e.hasOwnProperty(f)?e[f]:Ne(a.$scope,f,!0)||(t?Ne(i,f,!0):void 0)))throw pn("ctrlreg","The controller with the name '{0}' is not registered.",f);De(n,f,!0)}if(s){var p=(z(n)?n[n.length-1]:n).prototype;return u=Object.create(p||null),d&&o(a,d,u,f||n.name),k(function(){var e=r.invoke(n,u,a,f);return e!==u&&(L(e)||V(e))&&(u=e,d&&o(a,d,u,f||n.name)),u},{instance:u,identifier:d})}return u=r.instantiate(n,a,f),d&&o(a,d,u,f||n.name),u};function o(e,t,r,i){if(!e||!L(e.$scope))throw n("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=r}}]}function mn(){this.$get=["$window",function(e){return u(e.document)}]}function vn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var yn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof u&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},bn="application/json",wn={"Content-Type":bn+";charset=utf-8"},$n=/^\[|^\{(?!\{)/,En={"[":/]$/,"{":/}$/},Sn=/^\)]\}',?\n/,xn=n("$http"),Cn=function(e){return function(){throw xn("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}};function Tn(e){return L(e)?H(e)?e.toISOString():ce(e):e}function kn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return E(e,function(e,n){null===e||R(e)||(z(e)?$(e,function(e){t.push(we(n)+"="+we(Tn(e)))}):t.push(we(n)+"="+we(Tn(e))))}),t.join("&")}}}function _n(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){if(null===n||R(n))return;z(n)?$(n,function(t,n){e(t,r+"["+(L(t)?n:"")+"]")}):L(n)&&!H(n)?E(n,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):t.push(we(r)+"="+we(Tn(n)))}(e,"",!0),t.join("&")}}}function An(e,t){if(U(e)){var n=e.replace(Sn,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(bn)||(o=(i=n).match($n))&&En[o[0]].test(i))&&(e=fe(n))}}var i,o;return e}function On(e){var t,n=Fe();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return U(e)?$(e.split("\n"),function(e){t=e.indexOf(":"),r(a(Z(e.substr(0,t))),Z(e.substr(t+1)))}):L(e)&&$(e,function(e,t){r(a(t),Z(e))}),n}function Dn(e){var t;return function(n){if(t||(t=On(e)),n){var r=t[a(n)];return void 0===r&&(r=null),r}return t}}function Mn(e,t,n,r){return V(r)?r(e,t,n):($(r,function(r){e=r(e,t,n)}),e)}function Nn(e){return 200<=e&&e<300}function In(){var e=this.defaults={transformResponse:[An],transformRequest:[function(e){return!L(e)||(t=e,"[object File]"===g.call(t))||function(e){return"[object Blob]"===g.call(e)}(e)||function(e){return"[object FormData]"===g.call(e)}(e)?e:ce(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Be(wn),put:Be(wn),patch:Be(wn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return P(e)?(t=!!e,this):t};var r=!0;this.useLegacyPromiseExtensions=function(e){return P(e)?(r=!!e,this):r};var i=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(o,l,u,c,f,d){var p=u("$http");e.paramSerializer=U(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var h=[];function g(i){if(!L(i))throw n("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!U(i.url))throw n("$http")("badreq","Http request configuration url must be a string.  Received: {0}",i.url);var u=k({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},i);u.headers=function(t){var n,r,i,o=e.headers,s=k({},t.headers);o=k({},o.common,o[a(t.method)]);e:for(n in o){for(i in r=a(n),s)if(a(i)===r)continue e;s[n]=o[n]}return function(e,t){var n,r={};return $(e,function(e,i){V(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}(s,Be(t))}(i),u.method=s(u.method),u.paramSerializer=U(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var m=[],v=[],y=f.when(u);return $(h,function(e){(e.request||e.requestError)&&m.unshift(e.request,e.requestError),(e.response||e.responseError)&&v.push(e.response,e.responseError)}),y=b(y=(y=b(y,m)).then(function(n){var r=n.headers,i=Mn(n.data,Dn(r),void 0,n.transformRequest);R(i)&&$(r,function(e,t){"content-type"===a(t)&&delete r[t]});R(n.withCredentials)&&!R(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,a,s=f.defer(),u=s.promise,d=n.headers,h=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(n.url,n.paramSerializer(n.params));g.pendingRequests.push(n),u.then(w,w),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=L(n.cache)?n.cache:L(e.cache)?e.cache:p);i&&(P(a=i.get(h))?G(a)?a.then(b,b):z(a)?y(a[1],a[0],Be(a[2]),a[3]):y(a,200,{},"OK"):i.put(h,u));if(R(a)){var m=fi(n.url)?l()[n.xsrfCookieName||e.xsrfCookieName]:void 0;m&&(d[n.xsrfHeaderName||e.xsrfHeaderName]=m),o(n.method,h,r,function(e,n,r,o){i&&(Nn(e)?i.put(h,[e,n,On(r),o]):i.remove(h));function a(){y(n,e,r,o)}t?c.$applyAsync(a):(a(),c.$$phase||c.$apply())},d,n.timeout,n.withCredentials,n.responseType,v(n.eventHandlers),v(n.uploadEventHandlers))}return u;function v(e){if(e){var n={};return $(e,function(e,r){n[r]=function(n){function r(){e(n)}t?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),n}}function y(e,t,r,i){(Nn(t=t>=-1?t:0)?s.resolve:s.reject)({data:e,status:t,headers:Dn(r),config:n,statusText:i})}function b(e){y(e.data,e.status,Be(e.headers()),e.statusText)}function w(){var e=g.pendingRequests.indexOf(n);-1!==e&&g.pendingRequests.splice(e,1)}}(n,i).then(w,w)}),v),r?(y.success=function(e){return De(e,"fn"),y.then(function(t){e(t.data,t.status,t.headers,u)}),y},y.error=function(e){return De(e,"fn"),y.then(null,function(t){e(t.data,t.status,t.headers,u)}),y}):(y.success=Cn("success"),y.error=Cn("error")),y;function b(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function w(e){var t=k({},e);return t.data=Mn(e.data,e.headers,e.status,u.transformResponse),Nn(e.status)?t:f.reject(t)}}return $(i,function(e){h.unshift(U(e)?d.get(e):d.invoke(e))}),g.pendingRequests=[],function(e){$(arguments,function(e){g[e]=function(t,n){return g(k({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){$(arguments,function(e){g[e]=function(t,n,r){return g(k({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),g.defaults=e,g}]}function Fn(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Rn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(o,s,l,u,c,f,d,p,h,g){if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"===a(o))var m=r.createCallback(s),v=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){qe(o,"load",a),qe(o,"error",a),i.body.removeChild(o),o=null;var s=-1,l="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},We(o,"load",a),We(o,"error",a),i.body.appendChild(o),a}(s,m,function(e,t){var n=200===e&&r.getResponse(m);S(u,e,n,"",t),r.removeCallback(m)});else{var y=t(o,s);y.open(o,s,!0),$(c,function(e,t){P(e)&&y.setRequestHeader(t,e)}),y.onload=function(){var e=y.statusText||"",t="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=t?200:"file"===ci(s).protocol?404:0),S(u,n,t,y.getAllResponseHeaders(),e)};var b=function(){S(u,-1,null,null,"")};if(y.onerror=b,y.onabort=b,y.ontimeout=b,$(h,function(e,t){y.addEventListener(t,e)}),$(g,function(e,t){y.upload.addEventListener(t,e)}),d&&(y.withCredentials=!0),p)try{y.responseType=p}catch(e){if("json"!==p)throw e}y.send(R(l)?null:l)}if(f>0)var w=n(E,f);else G(f)&&f.then(E);function E(){v&&v(),y&&y.abort()}function S(t,r,i,o,a){P(w)&&n.cancel(w),v=y=null,t(r,i,o,a),e.$$completeOutstandingRequest(M)}}}(e,r,e.defer,t,n[0])}]}var Pn=y.$interpolateMinErr=n("$interpolate");function Ln(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=e.length,a=t.length,s=new RegExp(e.replace(/./g,u),"g"),l=new RegExp(t.replace(/./g,u),"g");function u(e){return"\\\\\\"+e}function c(n){return n.replace(s,e).replace(l,t)}function f(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function d(s,l,u,d){if(!s.length||-1===s.indexOf(e)){var p;if(!l)(p=I(c(s))).exp=s,p.expressions=[],p.$$watchDelegate=f;return p}d=!!d;for(var h,g,m,v=0,y=[],b=[],w=s.length,$=[],E=[];v<w;){if(-1===(h=s.indexOf(e,v))||-1===(g=s.indexOf(t,h+o))){v!==w&&$.push(c(s.substring(v)));break}v!==h&&$.push(c(s.substring(v,h))),m=s.substring(h+o,g),y.push(m),b.push(n(m,C)),v=g+a,E.push($.length),$.push("")}if(u&&$.length>1&&Pn.throwNoconcat(s),!l||y.length){var S=function(e){for(var t=0,n=y.length;t<n;t++){if(d&&R(e[t]))return;$[E[t]]=e[t]}return $.join("")},x=function(e){return u?i.getTrusted(u,e):i.valueOf(e)};return k(function(e){var t=0,n=y.length,i=new Array(n);try{for(;t<n;t++)i[t]=b[t](e);return S(i)}catch(e){r(Pn.interr(s,e))}},{exp:s,expressions:y,$$watchDelegate:function(e,t){var n;return e.$watchGroup(b,function(r,i){var o=S(r);V(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}function C(e){try{return e=x(e),d&&!P(e)?e:function(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=ce(e)}return e}(e)}catch(e){r(Pn.interr(s,e))}}}return d.startSymbol=function(){return e},d.endSymbol=function(){return t},d}]}function jn(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){var o={};function a(a,s,l,u){var c=arguments.length>4,f=c?se(arguments,4):[],d=t.setInterval,p=t.clearInterval,h=0,g=P(u)&&!u,m=(g?r:n).defer(),v=m.promise;return l=P(l)?l:0,v.$$intervalId=d(function(){g?i.defer(y):e.$evalAsync(y),m.notify(h++),l>0&&h>=l&&(m.resolve(h),p(v.$$intervalId),delete o[v.$$intervalId]),g||e.$apply()},s),o[v.$$intervalId]=m,v;function y(){c?a.apply(null,f):a(h)}}return a.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},a}]}Pn.throwNoconcat=function(e){throw Pn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",e)},Pn.interr=function(e,t){return Pn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Un=function(){this.$get=["$window",function(e){var t=e.angular.callbacks,n={};return{createCallback:function(e){var r="_"+(t.$$counter++).toString(36),i="angular.callbacks."+r,o=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return n[i]=t[r]=o,i},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}]},Bn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Hn={http:80,https:443,ftp:21},zn=n("$location");function Vn(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=be(t[n]);return t.join("/")}function Yn(e,t){var n=ci(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=A(n.port)||Hn[n.protocol]||null}var Wn=/^\s*[\\/]{2,}/;function qn(e,t){if(Wn.test(e))throw zn("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=ci(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ve(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Kn(e,t){return e.slice(0,t.length)===t}function Gn(e,t){if(Kn(t,e))return t.substr(e.length)}function Xn(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Zn(e){return e.replace(/(#.+)|#$/,"$1")}function Jn(e,t,n){this.$$html5=!0,n=n||"",Yn(e,this),this.$$parse=function(e){var n=Gn(t,e);if(!U(n))throw zn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);qn(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ye(this.$$search),n=this.$$hash?"#"+be(this.$$hash):"";this.$$url=Vn(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(P(o=Gn(e,r))?(a=o,s=n&&P(o=Gn(n,o))?t+(Gn("/",o)||o):e+a):P(o=Gn(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var o,a,s}}function Qn(e,t,n){Yn(e,this),this.$$parse=function(r){var i,o=Gn(e,r)||Gn(t,r);R(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",R(o)&&(e=r,this.replace())):R(i=Gn(n,o))&&(i=o),qn(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;Kn(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=ye(this.$$search),r=this.$$hash?"#"+be(this.$$hash):"";this.$$url=Vn(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Xn(e)===Xn(t)&&(this.$$parse(t),!0)}}function er(e,t,n){this.$$html5=!0,Qn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===Xn(r)?o=r:(a=Gn(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$compose=function(){var t=ye(this.$$search),r=this.$$hash?"#"+be(this.$$hash):"";this.$$url=Vn(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}var tr={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:nr("$$absUrl"),url:function(e){if(R(e))return this.$$url;var t=Bn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:nr("$$protocol"),host:nr("$$host"),port:nr("$$port"),path:rr("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(U(e)||B(e))e=e.toString(),this.$$search=ve(e);else{if(!L(e))throw zn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");$(e=ne(e,{}),function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:R(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:rr("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};function nr(e){return function(){return this[e]}}function rr(e,t){return function(n){return R(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function ir(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return P(t)?(e=t,this):e},this.html5Mode=function(e){return K(e)?(t.enabled=e,this):L(e)?(K(e.enabled)&&(t.enabled=e.enabled),K(e.requireBase)&&(t.requireBase=e.requireBase),(K(e.rewriteLinks)||U(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var s,l,c,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw zn("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(d||"/"),l=i.history?Jn:er}else c=Xn(p),l=Qn;var h=function(e){return e.substr(0,Xn(e).lastIndexOf("/")+1)}(c);(s=new l(c,h,"#"+e)).$$parseLinkUrl(p,p),s.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(e,t,n){var i=s.url(),o=s.$$state;try{r.url(e,t,n),s.$$state=r.state()}catch(e){throw s.url(i),s.$$state=o,e}}o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var l=u(e.target);"a"!==ee(l[0]);)if(l[0]===o[0]||!(l=l.parent())[0])return;if(!U(i)||!R(l.attr(i))){var c=l.prop("href"),f=l.attr("href")||l.attr("xlink:href");L(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=ci(c.animVal).href),g.test(c)||!c||l.attr("target")||e.isDefaultPrevented()||s.$$parseLinkUrl(c,f)&&(e.preventDefault(),s.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Zn(s.absUrl())!==Zn(p)&&r.url(s.absUrl(),!0);var v=!0;return r.onUrlChange(function(e,t){R(Gn(h,e))?a.location.href=e:(n.$evalAsync(function(){var r,i=s.absUrl(),o=s.$$state;e=Zn(e),s.$$parse(e),s.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,s.absUrl()===e&&(r?(s.$$parse(i),s.$$state=o,m(i,!1,o)):(v=!1,y(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var e=Zn(r.url()),t=Zn(s.absUrl()),o=r.state(),a=s.$$replace,l=e!==t||s.$$html5&&i.history&&o!==s.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var t=s.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,s.$$state,o).defaultPrevented;s.absUrl()===t&&(r?(s.$$parse(e),s.$$state=o):(l&&m(t,a,o===s.$$state?null:s.$$state),y(e,o)))})),s.$$replace=!1}),s;function y(e,t){n.$broadcast("$locationChangeSuccess",s.absUrl(),e,s.$$state,t)}}]}function or(){var e=!0,t=this;this.debugEnabled=function(t){return P(t)?(e=t,this):e},this.$get=["$window",function(n){return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:(r=i("debug"),function(){e&&r.apply(t,arguments)})};var r;function i(e){var t=n.console||{},r=t[e]||t.log||M,i=!1;try{i=!!r.apply}catch(e){}return i?function(){var e=[];return $(arguments,function(t){e.push(function(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}(t))}),r.apply(t,e)}:function(e,t){r(e,null==t?"":t)}}}]}$([er,Qn,Jn],function(e){e.prototype=Object.create(tr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Jn||!this.$$html5)throw zn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=R(t)?null:t,this}});var ar=n("$parse"),sr=[].constructor,lr=(!1).constructor,ur=Function.constructor,cr=(0).constructor,fr={}.constructor,dr="".constructor,pr=sr.prototype,hr=lr.prototype,gr=ur.prototype,mr=cr.prototype,vr=fr.prototype,yr=dr.prototype,br=gr.call,wr=gr.apply,$r=gr.bind,Er=vr.valueOf;function Sr(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ar("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function xr(e){return e+""}function Cr(e,t){if(e){if(e.constructor===e)throw ar("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ar("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ar("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ar("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Tr(e,t){if(e){if(e.constructor===e)throw ar("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===br||e===wr||e===$r)throw ar("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function kr(e,t){if(e&&(e===sr||e===lr||e===ur||e===cr||e===fr||e===dr||e===pr||e===hr||e===gr||e===mr||e===vr||e===yr))throw ar("isecaf","Assigning to a constructor or its prototype is disallowed! Expression: {0}",t)}var _r=Fe();$("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){_r[e]=!0});var Ar={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Or=function(e){this.options=e};Or.prototype={constructor:Or,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=_r[t],o=_r[n],a=_r[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=P(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ar("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=a(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=Ar[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Dr=function(e,t){this.lexer=e,this.options=t};function Mr(e,t){return void 0!==e?e:t}function Nr(e,t){return void 0===e?t:void 0===t?e:e+t}function Ir(e,t){var n,r,i;switch(e.type){case Dr.Program:n=!0,$(e.body,function(e){Ir(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Dr.Literal:e.constant=!0,e.toWatch=[];break;case Dr.UnaryExpression:Ir(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Dr.BinaryExpression:Ir(e.left,t),Ir(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Dr.LogicalExpression:Ir(e.left,t),Ir(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Dr.ConditionalExpression:Ir(e.test,t),Ir(e.alternate,t),Ir(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Dr.Identifier:e.constant=!1,e.toWatch=[e];break;case Dr.MemberExpression:Ir(e.object,t),e.computed&&Ir(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Dr.CallExpression:i=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),n=i,r=[],$(e.arguments,function(e){Ir(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case Dr.AssignmentExpression:Ir(e.left,t),Ir(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Dr.ArrayExpression:n=!0,r=[],$(e.elements,function(e){Ir(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case Dr.ObjectExpression:n=!0,r=[],$(e.properties,function(e){Ir(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case Dr.ThisExpression:case Dr.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Fr(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function Rr(e){return e.type===Dr.Identifier||e.type===Dr.MemberExpression}function Pr(e){if(1===e.body.length&&Rr(e.body[0].expression))return{type:Dr.AssignmentExpression,left:e.body[0].expression,right:{type:Dr.NGValueParameter},operator:"="}}function Lr(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Dr.Literal||e.body[0].expression.type===Dr.ArrayExpression||e.body[0].expression.type===Dr.ObjectExpression)}function jr(e){return e.constant}function Ur(e,t){this.astBuilder=e,this.$filter=t}function Br(e,t){this.astBuilder=e,this.$filter=t}Dr.Program="Program",Dr.ExpressionStatement="ExpressionStatement",Dr.AssignmentExpression="AssignmentExpression",Dr.ConditionalExpression="ConditionalExpression",Dr.LogicalExpression="LogicalExpression",Dr.BinaryExpression="BinaryExpression",Dr.UnaryExpression="UnaryExpression",Dr.CallExpression="CallExpression",Dr.MemberExpression="MemberExpression",Dr.Identifier="Identifier",Dr.Literal="Literal",Dr.ArrayExpression="ArrayExpression",Dr.Property="Property",Dr.ObjectExpression="ObjectExpression",Dr.ThisExpression="ThisExpression",Dr.LocalsExpression="LocalsExpression",Dr.NGValueParameter="NGValueParameter",Dr.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Dr.Program,body:e}},expressionStatement:function(){return{type:Dr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Rr(e))throw ar("lval","Trying to assign a value to a non l-value");e={type:Dr.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Dr.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Dr.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Dr.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Dr.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Dr.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Dr.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Dr.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Dr.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=ne(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Dr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:Dr.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Dr.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Dr.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Dr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Dr.Identifier,name:e.text}},constant:function(){return{type:Dr.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Dr.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Dr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Dr.ObjectExpression,properties:t}},throwError:function(e,t){throw ar("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw ar("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ar("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Dr.ThisExpression},$locals:{type:Dr.LocalsExpression}}},Ur.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ir(r,n.$filter);var i,o="";if(this.stage="assign",i=Pr(r)){this.state.computing="assign";var a=this.nextId();this.recurse(i,a),this.return_(a),o="fn.assign="+this.generateFunction("assign","s,v,l")}var s=Fr(r.body);n.stage="inputs",$(s,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(r);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",u=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Sr,Cr,Tr,xr,kr,Mr,Nr,e);return this.state=this.stage=void 0,u.literal=Lr(r),u.constant=jr(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return $(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return $(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,o){var a,s,l,u,c,f=this;if(r=r||M,!o&&P(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case Dr.Program:$(e.body,function(t,n){f.recurse(t.expression,void 0,void 0,function(e){s=e}),n!==e.body.length-1?f.current().body.push(s,";"):f.return_(s)});break;case Dr.Literal:u=this.escape(e.value),this.assign(t,u),r(u);break;case Dr.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){s=e}),u=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,u),r(u);break;case Dr.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){a=e}),this.recurse(e.right,void 0,void 0,function(e){s=e}),u="+"===e.operator?this.plus(a,s):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):"("+a+")"+e.operator+"("+s+")",this.assign(t,u),r(u);break;case Dr.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),r(t);break;case Dr.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),r(t);break;case Dr.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),Sr(e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_("inputs"===f.stage||"s",function(){i&&1!==i&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||zr(e.name))&&f.addEnsureSafeObject(t),r(t);break;case Dr.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,a,void 0,function(){f.if_(f.notNull(a),function(){i&&1!==i&&f.addEnsureSafeAssignContext(a),e.computed?(s=f.nextId(),f.recurse(e.property,s),f.getStringValue(s),f.addEnsureSafeMemberName(s),i&&1!==i&&f.if_(f.not(f.computedMember(a,s)),f.lazyAssign(f.computedMember(a,s),"{}")),u=f.ensureSafeObject(f.computedMember(a,s)),f.assign(t,u),n&&(n.computed=!0,n.name=s)):(Sr(e.property.name),i&&1!==i&&f.if_(f.not(f.nonComputedMember(a,e.property.name)),f.lazyAssign(f.nonComputedMember(a,e.property.name),"{}")),u=f.nonComputedMember(a,e.property.name),(f.state.expensiveChecks||zr(e.property.name))&&(u=f.ensureSafeObject(u)),f.assign(t,u),n&&(n.computed=!1,n.name=e.property.name))},function(){f.assign(t,"undefined")}),r(t)},!!i);break;case Dr.CallExpression:t=t||this.nextId(),e.filter?(s=f.filter(e.callee.name),l=[],$(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),l.push(t)}),u=s+"("+l.join(",")+")",f.assign(t,u),r(t)):(s=f.nextId(),a={},l=[],f.recurse(e.callee,s,a,function(){f.if_(f.notNull(s),function(){f.addEnsureSafeFunction(s),$(e.arguments,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(f.ensureSafeObject(e))})}),a.name?(f.state.expensiveChecks||f.addEnsureSafeObject(a.context),u=f.member(a.context,a.name,a.computed)+"("+l.join(",")+")"):u=s+"("+l.join(",")+")",u=f.ensureSafeObject(u),f.assign(t,u)},function(){f.assign(t,"undefined")}),r(t)}));break;case Dr.AssignmentExpression:s=this.nextId(),a={},this.recurse(e.left,void 0,a,function(){f.if_(f.notNull(a.context),function(){f.recurse(e.right,s),f.addEnsureSafeObject(f.member(a.context,a.name,a.computed)),f.addEnsureSafeAssignContext(a.context),u=f.member(a.context,a.name,a.computed)+e.operator+s,f.assign(t,u),r(t||u)})},1);break;case Dr.ArrayExpression:l=[],$(e.elements,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(e)})}),u="["+l.join(",")+"]",this.assign(t,u),r(u);break;case Dr.ObjectExpression:l=[],c=!1,$(e.properties,function(e){e.computed&&(c=!0)}),c?(t=t||this.nextId(),this.assign(t,"{}"),$(e.properties,function(e){e.computed?(a=f.nextId(),f.recurse(e.key,a)):a=e.key.type===Dr.Identifier?e.key.name:""+e.key.value,s=f.nextId(),f.recurse(e.value,s),f.assign(f.member(t,a,e.computed),s)})):($(e.properties,function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,function(e){l.push(f.escape(t.key.type===Dr.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+l.join(",")+"}",this.assign(t,u)),r(t||u);break;case Dr.ThisExpression:this.assign(t,"s"),r("s");break;case Dr.LocalsExpression:this.assign(t,"l"),r("l");break;case Dr.NGValueParameter:this.assign(t,"v"),r("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(U(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(B(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw ar("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Br.prototype={compile:function(e,t){var n,r,i=this,o=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,Ir(o,i.$filter),(n=Pr(o))&&(r=this.recurse(n));var a,s=Fr(o.body);s&&(a=[],$(s,function(e,t){var n=i.recurse(e);e.input=n,a.push(n),e.watchId=t}));var l=[];$(o.body,function(e){l.push(i.recurse(e.expression))});var u=0===o.body.length?M:1===o.body.length?l[0]:function(e,t){var n;return $(l,function(r){n=r(e,t)}),n};return r&&(u.assign=function(e,t,n){return r(e,n,t)}),a&&(u.inputs=a),u.literal=Lr(o),u.constant=jr(o),u},recurse:function(e,t,n){var r,i,o,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Dr.Literal:return this.value(e.value,t);case Dr.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Dr.BinaryExpression:case Dr.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Dr.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Dr.Identifier:return Sr(e.name,a.expression),a.identifier(e.name,a.expensiveChecks||zr(e.name),t,n,a.expression);case Dr.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(Sr(e.property.name,a.expression),i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n,a.expression):this.nonComputedMember(r,i,a.expensiveChecks,t,n,a.expression);case Dr.CallExpression:return o=[],$(e.arguments,function(e){o.push(a.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,a){for(var s=[],l=0;l<o.length;++l)s.push(o[l](e,n,r,a));var u=i.apply(void 0,s,a);return t?{context:void 0,name:void 0,value:u}:u}:function(e,n,r,s){var l,u=i(e,n,r,s);if(null!=u.value){Cr(u.context,a.expression),Tr(u.value,a.expression);for(var c=[],f=0;f<o.length;++f)c.push(Cr(o[f](e,n,r,s),a.expression));l=Cr(u.value.apply(u.context,c),a.expression)}return t?{value:l}:l};case Dr.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,s){var l=r(e,n,o,s),u=i(e,n,o,s);return Cr(l.value,a.expression),kr(l.context),l.context[l.name]=u,t?{value:u}:u};case Dr.ArrayExpression:return o=[],$(e.elements,function(e){o.push(a.recurse(e))}),function(e,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,r,i));return t?{value:a}:a};case Dr.ObjectExpression:return o=[],$(e.properties,function(e){e.computed?o.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):o.push({key:e.key.type===Dr.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})}),function(e,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,r,i)]=o[s].value(e,n,r,i):a[o[s].key]=o[s].value(e,n,r,i);return t?{value:a}:a};case Dr.ThisExpression:return function(e){return t?{value:e}:e};case Dr.LocalsExpression:return function(e,n){return t?{value:n}:n};case Dr.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=P(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=P(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=Nr(e(r,i,o,a),t(r,i,o,a));return n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),l=t(r,i,o,a),u=(P(s)?s:0)-(P(l)?l:0);return n?{value:u}:u}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var l=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:l}:l}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a,s,l){var u=a&&e in a?a:o;r&&1!==r&&u&&!u[e]&&(u[e]={});var c=u?u[e]:void 0;return t&&Cr(c,i),n?{context:u,name:e,value:c}:c}},computedMember:function(e,t,n,r,i){return function(o,a,s,l){var u,c,f=e(o,a,s,l);return null!=f&&(Sr(u=xr(u=t(o,a,s,l)),i),r&&1!==r&&(kr(f),f&&!f[u]&&(f[u]={})),Cr(c=f[u],i)),n?{context:f,name:u,value:c}:c}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,l,u){var c=e(a,s,l,u);i&&1!==i&&(kr(c),c&&!c[t]&&(c[t]={}));var f=null!=c?c[t]:void 0;return(n||zr(t))&&Cr(f,o),r?{context:c,name:t,value:f}:f}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Hr=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new Dr(e,n),this.astCompiler=n.csp?new Br(this.ast,t):new Ur(this.ast,t)};function zr(e){return"constructor"===e}function Vr(e){return V(e.valueOf)?e.valueOf():Er.call(e)}function Yr(){var e,t,n=Fe(),r=Fe(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){i[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(o){var a=ie().noUnsafeEval,s={csp:a,expensiveChecks:!1,literals:ne(i),isIdentifierStart:V(e)&&e,isIdentifierContinue:V(t)&&t},l={csp:a,expensiveChecks:!0,literals:ne(i),isIdentifierStart:V(e)&&e,isIdentifierContinue:V(t)&&t},u=!1;return c.$$runningExpensiveChecks=function(){return u},c;function c(e,t,i){var a,c,f;switch(i=i||u,typeof e){case"string":f=e=e.trim();var v=i?r:n;if(!(a=v[f])){":"===e.charAt(0)&&":"===e.charAt(1)&&(c=!0,e=e.substring(2));var y=i?l:s,b=new Or(y);(a=new Hr(b,o,y).parse(e)).constant?a.$$watchDelegate=g:c?a.$$watchDelegate=a.literal?h:p:a.inputs&&(a.$$watchDelegate=d),i&&(a=function e(t){if(!t)return t;r.$$watchDelegate=t.$$watchDelegate;r.assign=e(t.assign);r.constant=t.constant;r.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=e(t.inputs[n]);r.inputs=t.inputs;return r;function r(e,n,r,i){var o=u;u=!0;try{return t(e,n,r,i)}finally{u=o}}}(a)),v[f]=a}return m(a,t);case"function":return m(e,t);default:return m(M,t)}}function f(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=Vr(e)))&&(e===t||e!=e&&t!=t)}function d(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var s=f;return a=a[0],e.$watch(function(e){var t=a(e);return f(t,s)||(o=r(e,void 0,void 0,[t]),s=t&&Vr(t)),o},t,n,i)}for(var l=[],u=[],c=0,d=a.length;c<d;c++)l[c]=f,u[c]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var s=a[n](e);(t||(t=!f(s,l[n])))&&(u[n]=s,l[n]=s&&Vr(s))}return t&&(o=r(e,void 0,void 0,u)),o},t,n,i)}function p(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,V(t)&&t.apply(this,arguments),P(e)&&r.$$postDigest(function(){P(o)&&i()})},n)}function h(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,V(t)&&t.call(this,e,n,r),a(e)&&r.$$postDigest(function(){a(o)&&i()})},n);function a(e){var t=!0;return $(e,function(e){P(e)||(t=!1)}),t}}function g(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function m(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==h&&n!==p?function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return P(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==d?i.$$watchDelegate=e.$$watchDelegate:t.$stateful||(i.$$watchDelegate=d,r=!e.inputs,i.inputs=e.inputs?e.inputs:[e]),i}}]}function Wr(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Kr(function(t){e.$evalAsync(t)},t)}]}function qr(){this.$get=["$browser","$exceptionHandler",function(e,t){return Kr(function(t){e.defer(t)},t)}]}function Kr(e,t){var r=n("$q",TypeError);function i(){var e=new l;return e.resolve=a(e,e.resolve),e.reject=a(e,e.reject),e.notify=a(e,e.notify),e}function o(){this.$$state={status:0}}function a(e,t){return function(n){t.call(e,n)}}function s(n){!n.processScheduled&&n.pending&&(n.processScheduled=!0,e(function(){!function(e){var n,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],n=i[o][e.status];try{V(n)?r.resolve(n(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(e){r.reject(e),t(e)}}}(n)}))}function l(){this.promise=new o}function u(e){var t=new l;return t.reject(e),t.promise}function c(e,t,n){var r=null;try{V(n)&&(r=n())}catch(e){return u(e)}return G(r)?r.then(function(){return t(e)},u):t(e)}function f(e,t,n,r){var i=new l;return i.resolve(e),i.promise.then(t,n,r)}k(o.prototype,{then:function(e,t,n){if(R(e)&&R(t)&&R(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&s(this.$$state),r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return c(t,d,e)},function(t){return c(t,u,e)},t)}}),k(l.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r=this,i=!1;try{(L(e)||V(e))&&(n=e&&e.then),V(n)?(this.promise.$$state.status=-1,n.call(e,function(e){if(i)return;i=!0,r.$$resolve(e)},o,a(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(e){o(e),t(e)}function o(e){i||(i=!0,r.$$reject(e))}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(V(e)?e(n):n)}catch(e){t(e)}}})}});var d=f;function p(e){if(!V(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new l;return e(function(e){t.resolve(e)},function(e){t.reject(e)}),t.promise}return p.prototype=o.prototype,p.defer=i,p.reject=u,p.when=f,p.resolve=d,p.all=function(e){var t=new l,n=0,r=z(e)?[]:{};return $(e,function(e,i){n++,f(e).then(function(e){r[i]=e,--n||t.resolve(r)},function(e){t.reject(e)})}),0===n&&t.resolve(r),t.promise},p.race=function(e){var t=i();return $(e,function(e){f(e).then(t.resolve,t.reject)}),t.promise},p}function Gr(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Xr(){var e=10,t=n("$rootScope"),r=null,i=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(n,a,s){function u(e){e.currentScope.$$destroyed=!0}function c(){this.$id=x(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}c.prototype={constructor:c,$new:function(e,t){var n;return t=t||this,e?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=x(),this.$$ChildScope=null}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",u),n},$watch:function(e,t,n,i){var o=a(e);if(o.$$watchDelegate)return o.$$watchDelegate(this,t,n,o,e);var s=this,l=s.$$watchers,u={fn:t,last:E,get:o,exp:i||e,eq:!!n};return r=null,V(t)||(u.fn=M),l||((l=s.$$watchers=[]).$$digestWatchIndex=-1),l.unshift(u),l.$$digestWatchIndex++,y(this,1),function(){var e=te(l,u);e>=0&&(y(s,-1),e<l.$$digestWatchIndex&&l.$$digestWatchIndex--),r=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,a=!1,s=!0;if(!e.length){var l=!0;return o.$evalAsync(function(){l&&t(r,r,o)}),function(){l=!1}}if(1===e.length)return this.$watch(e[0],function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)});function u(){a=!1,s?(s=!1,t(r,r,o)):t(r,n,o)}return $(e,function(e,t){var s=o.$watch(e,function(e,i){r[t]=e,n[t]=i,a||(a=!0,o.$evalAsync(u))});i.push(s)}),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){g.$stateful=!0;var n,r,i,s=this,l=t.length>1,u=0,c=a(e,g),f=[],d={},p=!0,h=0;function g(e){var t,i,a,s;if(!R(n=e)){if(L(n))if(w(n)){r!==f&&(h=(r=f).length=0,u++),t=n.length,h!==t&&(u++,r.length=h=t);for(var l=0;l<t;l++)s=r[l],a=n[l],s!=s&&a!=a||s===a||(u++,r[l]=a)}else{for(i in r!==d&&(r=d={},h=0,u++),t=0,n)o.call(n,i)&&(t++,a=n[i],s=r[i],i in r?s!=s&&a!=a||s===a||(u++,r[i]=a):(h++,r[i]=a,u++));if(h>t)for(i in u++,r)o.call(n,i)||(h--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(c,function(){if(p?(p=!1,t(n,n,s)):t(n,i,s),l)if(L(n))if(w(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)o.call(n,r)&&(i[r]=n[r]);else i=n})},$digest:function(){var o,a,l,u,c,h,y,b,w,$=e,x=[];m("$digest"),s.$$checkUrlChange(),this===f&&null!==i&&(s.defer.cancel(i),S()),r=null;do{c=!1,y=this;for(var C=0;C<d.length;C++){try{(w=d[C]).scope.$eval(w.expression,w.locals)}catch(e){n(e)}r=null}d.length=0;e:do{if(u=y.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(o=u[u.$$digestWatchIndex])if((a=(0,o.get)(y))===(l=o.last)||(o.eq?re(a,l):O(a)&&O(l))){if(o===r){c=!1;break e}}else c=!0,r=o,o.last=o.eq?ne(a,null):a,(0,o.fn)(a,l===E?a:l,y),$<5&&(x[b=4-$]||(x[b]=[]),x[b].push({msg:V(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:l}))}catch(e){n(e)}if(!(h=y.$$watchersCount&&y.$$childHead||y!==this&&y.$$nextSibling))for(;y!==this&&!(h=y.$$nextSibling);)y=y.$parent}while(y=h);if((c||d.length)&&!$--)throw v(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,x)}while(c||d.length);for(v();g<p.length;)try{p[g++]()}catch(e){n(e)}p.length=g=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=M,this.$on=this.$watch=this.$watchGroup=function(){return M},this.$$listeners={},this.$$nextSibling=null,function e(t){9===l&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return a(e)(this,t)},$evalAsync:function(e,t){f.$$phase||d.length||s.defer(function(){d.length&&f.$digest()}),d.push({scope:this,expression:a(e),locals:t})},$$postDigest:function(e){p.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{v()}}catch(e){n(e)}finally{try{f.$digest()}catch(e){throw n(e),e}}},$applyAsync:function(e){var t=this;e&&h.push(function(){t.$eval(e)}),e=a(e),null===i&&(i=s.defer(function(){f.$apply(S)}))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,b(i,1,e))}},$emit:function(e,t){var r,i,o,a=[],s=this,l=!1,u={name:e,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=ae([u],arguments,1);do{for(r=s.$$listeners[e]||a,u.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(e){n(e)}else r.splice(i,1),i--,o--;if(l)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,t){var r=this,i=this,o={name:e,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[e])return o;for(var a,s,l,u=ae([o],arguments,1);r=i;){for(o.currentScope=r,s=0,l=(a=r.$$listeners[e]||[]).length;s<l;s++)if(a[s])try{a[s].apply(null,u)}catch(e){n(e)}else a.splice(s,1),s--,l--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var f=new c,d=f.$$asyncQueue=[],p=f.$$postDigestQueue=[],h=f.$$applyAsyncQueue=[],g=0;return f;function m(e){if(f.$$phase)throw t("inprog","{0} already in progress",f.$$phase);f.$$phase=e}function v(){f.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function E(){}function S(){for(;h.length;)try{h.shift()()}catch(e){n(e)}i=null}}]}function Zr(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return P(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return P(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return""===(i=ci(n).href)||i.match(o)?n:"unsafe:"+i}}}Hr.prototype={constructor:Hr,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Jr=n("$sce"),Qr={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function ei(e){var t=[];return P(e)&&$(e,function(e){t.push(function(e){if("self"===e)return e;if(U(e)){if(e.indexOf("***")>-1)throw Jr("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=J(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(Y(e))return new RegExp("^"+e.source+"$");throw Jr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))}),t}function ti(){this.SCE_CONTEXTS=Qr;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=ei(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=ei(e)),t},this.$get=["$injector",function(n){var r=function(e){throw Jr("unsafe","Attempting to use an unsafe value in a safe context.")};function i(e,t){return"self"===e?fi(t):!!e.exec(t.href)}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}n.has("$sanitize")&&(r=n.get("$sanitize"));var a=o(),s={};return s[Qr.HTML]=o(a),s[Qr.CSS]=o(a),s[Qr.URL]=o(a),s[Qr.JS]=o(a),s[Qr.RESOURCE_URL]=o(s[Qr.URL]),{trustAs:function(e,t){var n=s.hasOwnProperty(e)?s[e]:null;if(!n)throw Jr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||R(t)||""===t)return t;if("string"!=typeof t)throw Jr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(n,o){if(null===o||R(o)||""===o)return o;var a=s.hasOwnProperty(n)?s[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(n===Qr.RESOURCE_URL){if(function(n){var r,o,a=ci(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}(o))return o;throw Jr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",o.toString())}if(n===Qr.HTML)return r(o);throw Jr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof a?e.$$unwrapTrustedValue():e}}}]}function ni(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&l<8)throw Jr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Be(Qr);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=N),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,o=r.getTrusted,s=r.trustAs;return $(Qr,function(e,t){var n=a(t);r[Je("parse_as_"+n)]=function(t){return i(e,t)},r[Je("get_trusted_"+n)]=function(t){return o(e,t)},r[Je("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function ri(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=!(e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,s=A((/android (\d+)/.exec(a((e.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((e.navigator||{}).userAgent),c=t[0]||{},f=/^(Moz|webkit|ms)(?=[A-Z])/,d=c.body&&c.body.style,p=!1,h=!1;if(d){for(var g in d)if(r=f.exec(g)){n=(n=r[0])[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in d&&"webkit"),p=!!("transition"in d||n+"Transition"in d),h=!!("animation"in d||n+"Animation"in d),!s||p&&h||(p=U(d.webkitTransition),h=U(d.webkitAnimation))}return{history:!(!o||s<4||u),hasEvent:function(e){if("input"===e&&l<=11)return!1;if(R(i[e])){var t=c.createElement("div");i[e]="on"+e in t}return i[e]},csp:ie(),vendorPrefix:n,transitions:p,animations:h,android:s}}]}var ii=n("$compile");function oi(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){o.totalPendingRequests++,U(a)&&!R(t.get(a))||(a=i.getTrustedResourceUrl(a));var l=n.defaults&&n.defaults.transformResponse;return z(l)?l=l.filter(function(e){return e!==An}):l===An&&(l=null),n.get(a,k({cache:t,transformResponse:l},e)).finally(function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},function(e){if(!s)throw ii("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return r.reject(e)})}return o.totalPendingRequests=0,o}]}function ai(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=[];return $(e.getElementsByClassName("ng-binding"),function(e){var i=y.element(e).data("$binding");i&&$(i,function(i){n?new RegExp("(^|\\s)"+J(t)+"(\\s|\\||$)").test(i)&&r.push(e):-1!==i.indexOf(t)&&r.push(e)})}),r},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}function si(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function a(a,s,l){V(a)||(l=s,s=a,a=M);var u,c=se(arguments,3),f=P(l)&&!l,d=(f?r:n).defer(),p=d.promise;return u=t.defer(function(){try{d.resolve(a.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete o[p.$$timeoutId]}f||e.$apply()},s),p.$$timeoutId=u,o[u]=d,p}return a.cancel=function(e){return!!(e&&e.$$timeoutId in o)&&(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},a}]}var li=t.document.createElement("a"),ui=ci(t.location.href);function ci(e){var t=e;return l&&(li.setAttribute("href",t),t=li.href),li.setAttribute("href",t),{href:li.href,protocol:li.protocol?li.protocol.replace(/:$/,""):"",host:li.host,search:li.search?li.search.replace(/^\?/,""):"",hash:li.hash?li.hash.replace(/^#/,""):"",hostname:li.hostname,port:li.port,pathname:"/"===li.pathname.charAt(0)?li.pathname:"/"+li.pathname}}function fi(e){var t=U(e)?ci(e):e;return t.protocol===ui.protocol&&t.host===ui.host}function di(){this.$get=I(t)}function pi(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,o,a,s,l,u=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(u!==r)for(e=(r=u).split("; "),n={},a=0;a<e.length;a++)(s=(o=e[a]).indexOf("="))>0&&(l=i(o.substring(0,s)),R(n[l])&&(n[l]=i(o.substring(s+1))));return n}}function hi(){this.$get=pi}function gi(e){var t="Filter";function n(r,i){if(L(r)){var o={};return $(r,function(e,t){o[t]=n(t,e)}),o}return e.factory(r+t,i)}this.register=n,this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}],n("currency",Ei),n("date",Ii),n("filter",mi),n("json",Fi),n("limitTo",Li),n("lowercase",Ri),n("number",Si),n("orderBy",Ui),n("uppercase",Pi)}function mi(){return function(e,t,r,i){if(!w(e)){if(null==e)return e;throw n("filter")("notarray","Expected array but received: {0}",e)}var o,s;switch(i=i||"$",yi(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=function(e,t,n,r){var i=L(e)&&n in e;!0===t?t=re:V(t)||(t=function(e,t){return!R(e)&&(null===e||null===t?e===t:!(L(t)||L(e)&&!F(e))&&(e=a(""+e),t=a(""+t),-1!==e.indexOf(t)))});return function(o){return i&&!L(o)?vi(o,e[n],t,n,!1):vi(o,e,t,n,r)}}(t,r,i,s);break;default:return e}return Array.prototype.filter.call(e,o)}}function vi(e,t,n,r,i,o){var a=yi(e),s=yi(t);if("string"===s&&"!"===t.charAt(0))return!vi(e,t.substring(1),n,r,i);if(z(e))return e.some(function(e){return vi(e,t,n,r,i)});switch(a){case"object":var l;if(i){for(l in e)if("$"!==l.charAt(0)&&vi(e[l],t,n,r,!0))return!0;return!o&&vi(e,t,n,r,!1)}if("object"===s){for(l in t){var u=t[l];if(!V(u)&&!R(u)){var c=l===r;if(!vi(c?e:e[l],u,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function yi(e){return null===e?"null":typeof e}pi.$inject=["$document"],gi.$inject=["$provide"];var bi=22,wi=".",$i="0";function Ei(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return R(n)&&(n=t.CURRENCY_SYM),R(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:xi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Si(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:xi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function xi(e,t,n,r,i){if(!U(e)&&!B(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,l=Math.abs(e)+"",u="";if(a)u="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=R(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var l=a;l<i.length;l++)i[l]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var u=1;u<a;u++)i[u]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)})(o=function(e){var t,n,r,i,o,a=0;for((n=e.indexOf(wi))>-1&&(e=e.replace(wi,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===$i;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===$i;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>bi&&(t=t.splice(0,bi-1),a=n-1,n=1),{d:t,e:a,i:n}}(l),i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,d=o.e,p=[];for(s=c.reduce(function(e,t){return e&&!t},!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),u=h.join(n),p.length&&(u+=r+p.join("")),d&&(u+="e+"+d)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function Ci(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=$i+e;return n&&(e=e.substr(e.length-t)),i+e}function Ti(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Ci(a,t,r,i)}}function ki(e,t,n){return function(r,i){var o=r["get"+e]();return i[s((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function _i(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ai(e){return function(t){var n,r=_i(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return Ci(1+Math.round(i/6048e5),e)}}function Oi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}Ei.$inject=["$locale"],Si.$inject=["$locale"];var Di={yyyy:Ti("FullYear",4,0,!1,!0),yy:Ti("FullYear",2,0,!0,!0),y:Ti("FullYear",1,0,!1,!0),MMMM:ki("Month"),MMM:ki("Month",!0),MM:Ti("Month",2,1),M:Ti("Month",1,1),LLLL:ki("Month",!1,!0),dd:Ti("Date",2),d:Ti("Date",1),HH:Ti("Hours",2),H:Ti("Hours",1),hh:Ti("Hours",2,-12),h:Ti("Hours",1,-12),mm:Ti("Minutes",2),m:Ti("Minutes",1),ss:Ti("Seconds",2),s:Ti("Seconds",1),sss:Ti("Milliseconds",3),EEEE:ki("Day"),EEE:ki("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Ci(Math[r>0?"floor":"ceil"](r/60),2)+Ci(Math.abs(r%60),2)},ww:Ai(2),w:Ai(1),G:Oi,GG:Oi,GGG:Oi,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Mi=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ni=/^-?\d+$/;function Ii(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,U(n)&&(n=Ni.test(n)?A(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=A(n[9]+n[10]),o=A(n[9]+n[11])),a.call(r,A(n[1]),A(n[2])-1,A(n[3]));var l=A(n[4]||0)-i,u=A(n[5]||0)-o,c=A(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,l,u,c,f),r}return e}(n)),B(n)&&(n=new Date(n)),!H(n)||!isFinite(n.getTime()))return n;for(;r;)(a=Mi.exec(r))?r=(l=ae(l,a,1)).pop():(l.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=pe(i,u),n=he(n,i,!0)),$(l,function(t){o=Di[t],s+=o?o(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Fi(){return function(e,t){return R(t)&&(t=2),ce(e,t)}}Ii.$inject=["$locale"];var Ri=I(a),Pi=I(s);function Li(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):A(t),O(t)?e:(B(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:A(n))<0?Math.max(0,e.length+n):n,t>=0?ji(e,n,n+t):0===n?ji(e,t,e.length):ji(e,Math.max(0,n+t),n)):e)}}function ji(e,t,n){return U(e)?e.slice(t,n):d.call(e,t,n)}function Ui(e){return function(i,o,a,s){if(null==i)return i;if(!w(i))throw n("orderBy")("notarray","Expected array but received: {0}",i);z(o)||(o=[o]),0===o.length&&(o=["+"]);var l=o.map(function(t){var n=1,r=N;if(V(t))r=t;else if(U(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}}),u=a?-1:1,c=V(s)?s:r,f=Array.prototype.map.call(i,function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:l.map(function(r){return function(e,n){var r=typeof e;null===e?(r="string",e="null"):"object"===r&&(e=function(e){if(V(e.valueOf)&&t(e=e.valueOf()))return e;if(F(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)})}});return f.sort(function(e,t){for(var n=0,r=l.length;n<r;n++){var i=c(e.predicateValues[n],t.predicateValues[n]);if(i)return i*l[n].descending*u}return c(e.tieBreaker,t.tieBreaker)*u}),i=f.map(function(e){return e.value})};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function r(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(L(o)&&(o=e.index),L(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}}function Bi(e){return V(e)&&(e={link:e}),e.restrict=e.restrict||"AC",I(e)}Ui.$inject=["$parse"];var Hi=I({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===g.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),zi={};$(Ct,function(e,t){if("multiple"!==e){var n=cn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),zi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}),$(kt,function(e,t){zi[t]=function(){return{priority:100,link:function(e,n,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){var o=i.ngPattern.match(r);if(o)return void i.$set("ngPattern",new RegExp(o[1],o[2]))}e.$watch(i[t],function(e){i.$set(t,e)})}}}}),$(["src","srcset","href"],function(e){var t=cn("ng-"+e);zi[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===g.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){t?(i.$set(a,t),l&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)})}}}});var Vi={$addControl:M,$$renameControl:function(e,t){e.$name=t},$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M,$setSubmitted:M},Yi="ng-submitted";function Wi(e,t,n,r,i){var o=this,a=[];o.$error={},o.$$success={},o.$pending=void 0,o.$name=i(t.name||t.ngForm||"")(n),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,o.$$parentForm=Vi,o.$rollbackViewValue=function(){$(a,function(e){e.$rollbackViewValue()})},o.$commitViewValue=function(){$(a,function(e){e.$commitViewValue()})},o.$addControl=function(e){Me(e.$name,"input"),a.push(e),e.$name&&(o[e.$name]=e),e.$$parentForm=o},o.$$renameControl=function(e,t){var n=e.$name;o[n]===e&&delete o[n],o[t]=e,e.$name=t},o.$removeControl=function(e){e.$name&&o[e.$name]===e&&delete o[e.$name],$(o.$pending,function(t,n){o.$setValidity(n,null,e)}),$(o.$error,function(t,n){o.$setValidity(n,null,e)}),$(o.$$success,function(t,n){o.$setValidity(n,null,e)}),te(a,e),e.$$parentForm=Vi},Go({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(te(r,n),0===r.length&&delete e[t])},$animate:r}),o.$setDirty=function(){r.removeClass(e,Bo),r.addClass(e,Ho),o.$dirty=!0,o.$pristine=!1,o.$$parentForm.$setDirty()},o.$setPristine=function(){r.setClass(e,Bo,Ho+" "+Yi),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,$(a,function(e){e.$setPristine()})},o.$setUntouched=function(){$(a,function(e){e.$setUntouched()})},o.$setSubmitted=function(){r.addClass(e,Yi),o.$submitted=!0,o.$$parentForm.$setSubmitted()}}Wi.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var qi=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Wi,compile:function(n,i){n.addClass(Bo).addClass(jo);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var l=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};We(n[0],"submit",l),n.on("$destroy",function(){t(function(){qe(n[0],"submit",l)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var u=o?r(s.$name):M;o&&(u(e,s),i.$observe(o,function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),u(e,void 0),k(s,Vi)})}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||M}}]},Ki=qi(),Gi=qi(!0),Xi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Zi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ji=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,Qi=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,eo=/^(\d{4,})-(\d{2})-(\d{2})$/,to=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,no=/^(\d{4,})-W(\d\d)$/,ro=/^(\d{4,})-(\d\d)$/,io=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,oo="keydown wheel mousedown",ao=Fe();$("date,datetime-local,month,time,week".split(","),function(e){ao[e]=!0});var so={text:function(e,t,n,r,i,o){uo(e,t,n,r,i,o),lo(r)},date:fo("date",eo,co(eo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fo("datetimelocal",to,co(to,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fo("time",io,co(io,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fo("week",no,function(e,t){if(H(e))return e;if(U(e)){no.lastIndex=0;var n=no.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,l=0,u=_i(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(r,0,u.getDate()+c,o,a,s,l)}}return NaN},"yyyy-Www"),month:fo("month",ro,co(ro,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o){var a,s;po(e,t,n,r),uo(e,t,n,r,i,o),ho(r),(P(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||R(a)||e>=a},n.$observe("min",function(e){a=go(e),r.$validate()}));(P(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||R(s)||e<=s},n.$observe("max",function(e){s=go(e),r.$validate()}))},url:function(e,t,n,r,i,o){uo(e,t,n,r,i,o),lo(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Zi.test(n)}},email:function(e,t,n,r,i,o){uo(e,t,n,r,i,o),lo(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Ji.test(n)}},radio:function(e,t,n,r){R(n.name)&&t.attr("name",x());t.on("click",function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){po(e,t,n,r),ho(r),uo(e,t,n,r,i,o);var a=r.$$hasNativeValidators&&"range"===t[0].type,s=a?0:void 0,l=a?100:void 0,u=a?1:void 0,c=t[0].validity,f=P(n.min),d=P(n.max),p=P(n.step),h=r.$render;r.$render=a&&P(c.rangeUnderflow)&&P(c.rangeOverflow)?function(){h(),r.$setViewValue(t.val())}:h,f&&(r.$validators.min=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||R(s)||t>=s},g("min",function(e){if(s=go(e),O(r.$modelValue))return;if(a){var n=t.val();s>n&&(n=s,t.val(n)),r.$setViewValue(n)}else r.$validate()}));d&&(r.$validators.max=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||R(l)||t<=l},g("max",function(e){if(l=go(e),O(r.$modelValue))return;if(a){var n=t.val();l<n&&(t.val(l),n=l<s?s:l),r.$setViewValue(n)}else r.$validate()}));p&&(r.$validators.step=a?function(){return!c.stepMismatch}:function(e,t){return r.$isEmpty(t)||R(u)||function(e,t,n){var r=Number(e);if(!mo(r)||!mo(t)||!mo(n)){var i=Math.max(vo(r),vo(t),vo(n)),o=Math.pow(10,i);r*=o,t*=o,n*=o}return(r-t)%n==0}(t,s||0,u)},g("step",function(e){if(u=go(e),O(r.$modelValue))return;a&&r.$viewValue!==t.val()?r.$setViewValue(t.val()):r.$validate()}));function g(e,r){t.attr(e,n[e]),n.$observe(e,r)}},checkbox:function(e,t,n,r,i,o,a,s){var l=yo(s,e,"ngTrueValue",n.ngTrueValue,!0),u=yo(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("click",function(e){r.$setViewValue(t[0].checked,e&&e.type)}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return re(e,l)}),r.$parsers.push(function(e){return e?l:u})},hidden:M,button:M,submit:M,reset:M,file:M};function lo(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function uo(e,t,n,r,o,s){var l,u=a(t[0].type);if(!o.android){var c=!1;t.on("compositionstart",function(){c=!0}),t.on("compositionend",function(){c=!1,f()})}var f=function(e){if(l&&(s.defer.cancel(l),l=null),!c){var i=t.val(),o=e&&e.type;"password"===u||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(o.hasEvent("input"))t.on("input",f);else{var d=function(e,t,n){l||(l=s.defer(function(){l=null,t&&t.value===n||f(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||d(e,this,this.value)}),o.hasEvent("paste")&&t.on("paste cut",d)}t.on("change",f),ao[u]&&r.$$hasNativeValidators&&u===n.type&&t.on(oo,function(e){if(!l){var t=this[i],n=t.badInput,r=t.typeMismatch;l=s.defer(function(){l=null,t.badInput===n&&t.typeMismatch===r||f(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function co(e,t){return function(n,r){var i,o;if(H(n))return n;if(U(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Xi.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},$(i,function(e,n){n<t.length&&(o[t[n]]=+e)}),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function fo(e,t,n,r){return function(i,o,a,s,l,u,c){po(i,o,a,s),uo(0,o,a,s,l,u);var f,d,p,h=s&&s.$options&&s.$options.timezone;(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,f);return h&&(r=he(r,h)),r}}),s.$formatters.push(function(e){if(e&&!H(e))throw Vo("datefmt","Expected `{0}` to be a date",e);return g(e)?((f=e)&&h&&(f=he(f,h,!0)),c("date")(e,r,h)):(f=null,"")}),P(a.min)||a.ngMin)&&(s.$validators.min=function(e){return!g(e)||R(d)||n(e)>=d},a.$observe("min",function(e){d=m(e),s.$validate()}));(P(a.max)||a.ngMax)&&(s.$validators.max=function(e){return!g(e)||R(p)||n(e)<=p},a.$observe("max",function(e){p=m(e),s.$validate()}));function g(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function m(e){return P(e)&&!H(e)?n(e)||void 0:e}}}function po(e,t,n,r){var o=t[0];(r.$$hasNativeValidators=L(o.validity))&&r.$parsers.push(function(e){var n=t.prop(i)||{};return n.badInput||n.typeMismatch?void 0:e})}function ho(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:Qi.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!B(t))throw Vo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function go(e){return P(e)&&!B(e)&&(e=parseFloat(e)),O(e)?void 0:e}function mo(e){return(0|e)===e}function vo(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function yo(e,t,n,r,i){var o;if(P(r)){if(!(o=e(r)).constant)throw Vo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var bo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,l){if(l[0]){var u=a(s.type);"range"!==u||s.hasOwnProperty("ngInputRange")||(u="text"),(so[u]||so.text)(i,o,s,l[0],t,e,n,r)}}}}}],wo=/^(true|false|\d+)$/,$o=function(){return{restrict:"A",priority:100,compile:function(e,t){return wo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Eo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=R(e)?"":e})}}}}],So=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=R(e)?"":e})}}}}],xo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],Co=I({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}});function To(e,t){return e="ngClass"+e,["$animate",function(n){return{restrict:"AC",link:function(o,a,s){var l;function u(e){var t=c(e,1);s.$addClass(t)}function c(e,t){var n=a.data("$classCounts")||Fe(),r=[];return $(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),a.data("$classCounts",n),r.join(" ")}function f(e){if(!0===t||(1&o.$index)===t){var s=i(e||[]);if(l){if(!re(e,l)){!function(e,t){var i=r(t,e),o=r(e,t);i=c(i,1),o=c(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}(i(l),s)}}else u(s)}l=z(e)?e.map(function(e){return Be(e)}):Be(e)}s.$observe("class",function(t){f(o.$eval(s[e]))}),"ngClass"!==e&&o.$watch("$index",function(e,n){var r=1&e;if(r!==(1&n)){var o=i(l);r===t?u(o):function(e){var t=c(e,-1);s.$removeClass(t)}(o)}}),o.$watch(s[e],f,!0)}};function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function i(e){var t=[];return z(e)?($(e,function(e){t=t.concat(i(e))}),t):U(e)?e.split(" "):L(e)?($(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}}]}var ko=To("",!0),_o=To("Odd",0),Ao=To("Even",1),Oo=Bi({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Do=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Mo={},No={blur:!0,focus:!0};$("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=cn("ng-"+e);Mo[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};No[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Io=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,l,u;n.$watch(i.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=Ie(s.clone),e.leave(u).done(function(e){!1!==e&&(u=null)}),s=null))})}}}],Fo=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:y.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,l,u,c){var f,d,p,h=0,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done(function(e){!1!==e&&(d=null)}),d=p,p=null)};r.$watch(o,function(o){var l=function(e){!1===e||!P(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===h){var t=r.$new();u.template=e;var s=c(t,function(e){g(),n.enter(e,null,i).done(l)});p=s,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===h&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),u.template=null)})}}}}],Ro=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(g.call(r[0]).match(/SVG/))return r.empty(),void e(at(o.template,t.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],Po=Bi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Lo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=t.attr(n.$attr.ngList)||", ",o="false"!==n.ngTrim,a=o?Z(i):i;r.$parsers.push(function(e){if(!R(e)){var t=[];return e&&$(e.split(a),function(e){e&&t.push(o?Z(e):e)}),t}}),r.$formatters.push(function(e){if(z(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},jo="ng-valid",Uo="ng-invalid",Bo="ng-pristine",Ho="ng-dirty",zo="ng-pending",Vo=n("ngModel"),Yo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,r,i,o,a,s,l,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=Vi;var c,f=i(n.ngModel),d=f.assign,p=f,h=d,g=null,m=this;this.$$setOptions=function(e){if(m.$options=e,e&&e.getterSetter){var t=i(n.ngModel+"()"),o=i(n.ngModel+"($$$p)");p=function(e){var n=f(e);return V(n)&&(n=t(e)),n},h=function(e,t){V(f(e))?o(e,{$$$p:t}):d(e,t)}}else if(!f.assign)throw Vo("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,ge(r))},this.$render=M,this.$isEmpty=function(e){return R(e)||""===e||null===e||e!=e},this.$$updateEmptyClasses=function(e){m.$isEmpty(e)?(o.removeClass(r,"ng-not-empty"),o.addClass(r,"ng-empty")):(o.removeClass(r,"ng-empty"),o.addClass(r,"ng-not-empty"))};var v=0;Go({ctrl:this,$element:r,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:o}),this.$setPristine=function(){m.$dirty=!1,m.$pristine=!0,o.removeClass(r,Ho),o.addClass(r,Bo)},this.$setDirty=function(){m.$dirty=!0,m.$pristine=!1,o.removeClass(r,Bo),o.addClass(r,Ho),m.$$parentForm.$setDirty()},this.$setUntouched=function(){m.$touched=!1,m.$untouched=!0,o.setClass(r,"ng-untouched","ng-touched")},this.$setTouched=function(){m.$touched=!0,m.$untouched=!1,o.setClass(r,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){a.cancel(g),m.$viewValue=m.$$lastCommittedViewValue,m.$render()},this.$validate=function(){if(!O(m.$modelValue)){var e=m.$$lastCommittedViewValue,t=m.$$rawModelValue,n=m.$valid,r=m.$modelValue,i=m.$options&&m.$options.allowInvalid;m.$$runValidators(t,e,function(e){i||n===e||(m.$modelValue=e?t:void 0,m.$modelValue!==r&&m.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){var r,i,o=++v;(function(){var e=m.$$parserName||"parse";if(!R(c))return c||($(m.$validators,function(e,t){a(t,null)}),$(m.$asyncValidators,function(e,t){a(t,null)})),a(e,c),c;a(e,null);return!0})()?!function(){var n=!0;if($(m.$validators,function(r,i){var o=r(e,t);n=n&&o,a(i,o)}),!n)return $(m.$asyncValidators,function(e,t){a(t,null)}),!1;return!0}()?s(!1):(r=[],i=!0,$(m.$asyncValidators,function(n,o){var s=n(e,t);if(!G(s))throw Vo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);a(o,void 0),r.push(s.then(function(){a(o,!0)},function(){i=!1,a(o,!1)}))}),r.length?l.all(r).then(function(){s(i)},M):s(!0)):s(!1);function a(e,t){o===v&&m.$setValidity(e,t)}function s(e){o===v&&n(e)}},this.$commitViewValue=function(){var e=m.$viewValue;a.cancel(g),(m.$$lastCommittedViewValue!==e||""===e&&m.$$hasNativeValidators)&&(m.$$updateEmptyClasses(e),m.$$lastCommittedViewValue=e,m.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var t=m.$$lastCommittedViewValue;if(c=!R(t)||void 0)for(var n=0;n<m.$parsers.length;n++)if(R(t=m.$parsers[n](t))){c=!1;break}O(m.$modelValue)&&(m.$modelValue=p(e));var r=m.$modelValue,i=m.$options&&m.$options.allowInvalid;function o(){m.$modelValue!==r&&m.$$writeModelToScope()}m.$$rawModelValue=t,i&&(m.$modelValue=t,o()),m.$$runValidators(t,m.$$lastCommittedViewValue,function(e){i||(m.$modelValue=e?t:void 0,o())})},this.$$writeModelToScope=function(){h(e,m.$modelValue),$(m.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})},this.$setViewValue=function(e,t){m.$viewValue=e,m.$options&&!m.$options.updateOnDefault||m.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=m.$options;i&&P(i.debounce)&&(B(n=i.debounce)?r=n:B(n[t])?r=n[t]:B(n.default)&&(r=n.default)),a.cancel(g),r?g=a(function(){m.$commitViewValue()},r):s.$$phase?m.$commitViewValue():e.$apply(function(){m.$commitViewValue()})},e.$watch(function(){var t=p(e);if(t!==m.$modelValue&&(m.$modelValue==m.$modelValue||t==t)){m.$modelValue=m.$$rawModelValue=t,c=void 0;for(var n=m.$formatters,r=n.length,i=t;r--;)i=n[r](i);m.$viewValue!==i&&(m.$$updateEmptyClasses(i),m.$viewValue=m.$$lastCommittedViewValue=i,m.$render(),m.$$runValidators(m.$modelValue,m.$viewValue,M))}return t})}],Wo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Yo,priority:1,compile:function(t){return t.addClass(Bo).addClass("ng-untouched").addClass(jo),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],qo=/(\s+|^)default(\s+|$)/,Ko=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=ne(e.$eval(t.ngModelOptions)),P(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Z(this.$options.updateOn.replace(qo,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}};function Go(e){var t=e.ctrl,n=e.$element,r={},i=e.set,o=e.unset,a=e.$animate;function s(e,t){t&&!r[e]?(a.addClass(n,e),r[e]=!0):!t&&r[e]&&(a.removeClass(n,e),r[e]=!1)}function l(e,t){e=e?"-"+_e(e,"-"):"",s(jo+e,!0===t),s(Uo+e,!1===t)}r[Uo]=!(r[jo]=n.hasClass(jo)),t.$setValidity=function(e,n,r){R(n)?function(e,n,r){t[e]||(t[e]={});i(t[e],n,r)}("$pending",e,r):function(e,n,r){t[e]&&o(t[e],n,r);Xo(t[e])&&(t[e]=void 0)}("$pending",e,r);K(n)?n?(o(t.$error,e,r),i(t.$$success,e,r)):(i(t.$error,e,r),o(t.$$success,e,r)):(o(t.$error,e,r),o(t.$$success,e,r));t.$pending?(s(zo,!0),t.$valid=t.$invalid=void 0,l("",null)):(s(zo,!1),t.$valid=Xo(t.$error),t.$invalid=!t.$valid,l("",t.$valid));var a;a=t.$pending&&t.$pending[e]?void 0:!t.$error[e]&&(!!t.$$success[e]||null);l(e,a),t.$$parentForm.$setValidity(e,a,t)}}function Xo(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Zo=Bi({terminal:!0,priority:1e3}),Jo=n("ngOptions"),Qo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ea=["$compile","$document","$parse",function(e,n,r){var i=t.document.createElement("option"),o=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=M},post:function(t,a,s,l){for(var c,f=l[0],d=l[1],p=s.multiple,h=0,g=a.children(),m=g.length;h<m;h++)if(""===g[h].value){c=g.eq(h);break}var v,y=!!c,b=!1,E=u(i.cloneNode(!1));E.val("?");var S=function(e,t,n){var i=e.match(Qo);if(!i)throw Jo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ge(t));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],l=i[9],u=r(i[2]?i[1]:o),c=s&&r(s)||u,f=l&&r(l),d=l?function(e,t){return f(n,t)}:function(e){return Mt(e)},p=function(e,t){return d(e,b(e,t))},h=r(i[2]||i[1]),g=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),y={},b=a?function(e,t){return y[a]=t,y[o]=e,y}:function(e){return y[o]=e,y};function $(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function E(e){var t;if(!a&&w(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:l,getTrackByValue:p,getWatchables:r(v,function(e){for(var t=[],r=E(e=e||[]),o=r.length,a=0;a<o;a++){var s=e===r?a:r[a],l=e[s],u=b(l,s),c=d(l,u);if(t.push(c),i[2]||i[1]){var f=h(n,u);t.push(f)}if(i[4]){var p=m(n,u);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},r=v(n)||[],i=E(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],u=r[s],f=b(u,s),y=c(n,f),w=d(y,f),S=new $(w,y,h(n,f),g(n,f),m(n,f));e.push(S),t[w]=S}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return l?ne(e.viewValue):e.viewValue}}}}}(s.ngOptions,a,t),x=n[0].createDocumentFragment(),C=function(){y?b&&c.removeAttr("selected"):c.remove()},T=function(){E.remove()};function k(e,t){var n=i.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}(e,n)}function _(){var e=v&&f.readValue();if(v)for(var t=v.items.length-1;t>=0;t--){var n=v.items[t];P(n.group)?St(n.element.parentNode):St(n.element)}v=S.getOptions();var r={};if(y&&a.prepend(c),v.items.forEach(function(e){var t;P(e.group)?((t=r[e.group])||(t=o.cloneNode(!1),x.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),k(e,t)):k(e,x)}),a[0].appendChild(x),d.$render(),!d.$isEmpty(e)){var i=f.readValue();(S.trackBy||p?re(e,i):e===i)||(d.$setViewValue(i),d.$render())}}p?(d.$isEmpty=function(e){return!e||0===e.length},f.writeValue=function(e){v.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=v.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},f.readValue=function(){var e=[];return $(a.val()||[],function(t){var n=v.selectValueMap[t];n&&!n.disabled&&e.push(v.getViewValueFromOption(n))}),e},S.trackBy&&t.$watchCollection(function(){if(z(d.$viewValue))return d.$viewValue.map(function(e){return S.getTrackByValue(e)})},function(){d.$render()})):(f.writeValue=function(e){var t=v.selectValueMap[a.val()],n=v.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(T(),C(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):null===e||y?(T(),y||a.prepend(c),a.val(""),b&&(c.prop("selected",!0),c.attr("selected",!0))):(C(),a.prepend(E),a.val("?"),E.prop("selected",!0),E.attr("selected",!0))},f.readValue=function(){var e=v.selectValueMap[a.val()];return e&&!e.disabled?(C(),T(),v.getViewValueFromOption(e)):null},S.trackBy&&t.$watch(function(){return S.getTrackByValue(d.$viewValue)},function(){d.$render()})),y?(c.remove(),e(c)(t),c[0].nodeType===Le?(b=!1,f.registerOption=function(e,t){""===t.val()&&(b=!0,(c=t).removeClass("ng-scope"),d.$render(),t.on("$destroy",function(){c=void 0,b=!1}))}):(c.removeClass("ng-scope"),b=!0)):c=u(i.cloneNode(!1)),a.empty(),_(),t.$watchCollection(S.getWatchables,_)}}}}],ta=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,s,l){var u,c=l.count,f=l.$attr.when&&s.attr(l.$attr.when),d=l.offset||0,p=o.$eval(f)||{},h={},g=t.startSymbol(),m=t.endSymbol(),v=g+c+"-"+d+m,b=y.noop;function w(e){s.text(e||"")}$(l,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+a(n[2]);p[r]=s.attr(l.$attr[t])}}),$(p,function(e,n){h[n]=t(e.replace(r,v))}),o.$watch(c,function(t){var r=parseFloat(t),i=O(r);if(i||r in p||(r=e.pluralCat(r-d)),!(r===u||i&&O(u))){b();var a=h[r];R(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+f),b=M,w()):b=o.$watch(a,w),u=r}})}}}],na=["$parse","$animate","$compile",function(e,t,r){var i=n("ngRepeat"),a=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},s=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(n,u){var c=u.ngRepeat,f=r.$$createComment("end ngRepeat",c),d=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw i("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);var p=d[1],h=d[2],g=d[3],m=d[4];if(!(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw i("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);var v,y,b,E,S=d[3]||d[1],x=d[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw i("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var C={$id:Mt};return m?v=e(m):(b=function(e,t){return Mt(t)},E=function(e){return e}),function(e,n,r,u,d){v&&(y=function(t,n,r){return x&&(C[x]=t),C[S]=n,C.$index=r,v(e,C)});var p=Fe();e.$watchCollection(h,function(r){var u,h,m,v,C,T,k,_,A,O,D,M,N=n[0],I=Fe();if(g&&(e[g]=r),w(r))A=r,_=y||b;else for(var F in _=y||E,A=[],r)o.call(r,F)&&"$"!==F.charAt(0)&&A.push(F);for(v=A.length,D=new Array(v),u=0;u<v;u++)if(C=r===A?u:A[u],T=r[C],k=_(C,T,u),p[k])O=p[k],delete p[k],I[k]=O,D[u]=O;else{if(I[k])throw $(D,function(e){e&&e.scope&&(p[e.id]=e)}),i("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",c,k,T);D[u]={id:k,scope:void 0,clone:void 0},I[k]=!0}for(var R in p){if(M=Ie((O=p[R]).clone),t.leave(M),M[0].parentNode)for(u=0,h=M.length;u<h;u++)M[u].$$NG_REMOVED=!0;O.scope.$destroy()}for(u=0;u<v;u++)if(C=r===A?u:A[u],T=r[C],(O=D[u]).scope){m=N;do{m=m.nextSibling}while(m&&m.$$NG_REMOVED);s(O)!==m&&t.move(Ie(O.clone),null,N),N=l(O),a(O.scope,u,S,T,x,C,v)}else d(function(e,n){O.scope=n;var r=f.cloneNode(!1);e[e.length++]=r,t.enter(e,null,N),N=r,O.clone=e,I[O.id]=O,a(O.scope,u,S,T,x,C,v)});p=I})}}}}],ra=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ia=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],oa=Bi(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&$(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),aa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],l=[],u=[],c=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,function(n){for(var r,i;u.length;)e.cancel(u.pop());for(r=0,i=c.length;r<i;++r){var a=Ie(l[r].clone);c[r].$destroy(),(u[r]=e.leave(a)).done(f(u,r))}l.length=0,c.length=0,(s=o.cases["!"+n]||o.cases["?"])&&$(s,function(n){n.transclude(function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],sa=Bi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){$(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),la=Bi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),ua=n("ngTransclude"),ca=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){if(!o)throw ua("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ge(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(e,function(e){t.append(e)})}o(function(e,n){e.length?t.append(e):(s(),n.$destroy())},null,a),a&&!o.isSlotFilled(a)&&s()}}}}],fa=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],da={$setViewValue:M,$render:M};var pa=["$element","$scope",function(e,n){var r=this,i=new Nt;r.ngModelCtrl=da,r.unknownOption=u(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Mt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=M}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(e,t){if(t[0].nodeType!==Le){Me(e,'"option value"'),""===e&&(r.emptyOption=t);var n,o=i.get(e)||0;i.put(e,o+1),r.ngModelCtrl.$render(),(n=t)[0].hasAttribute("selected")&&(n[0].selected=!0)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){var a;i?n.$observe("value",function(e){P(a)&&r.removeOption(a),a=e,r.addOption(e,t)}):o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],ha=function(){return{restrict:"E",require:["select","?ngModel"],controller:pa,priority:1,link:{pre:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];if(o.ngModelCtrl=i,t.on("change",function(){e.$apply(function(){i.$setViewValue(o.readValue())})}),n.multiple){o.readValue=function(){var e=[];return $(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},o.writeValue=function(e){var n=new Nt(e);$(t.find("option"),function(e){e.selected=P(n.get(e.value))})};var a,s=NaN;e.$watch(function(){s!==i.$viewValue||re(a,i.$viewValue)||(a=Be(i.$viewValue),i.$render()),s=i.$viewValue}),i.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},ga=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return P(n.ngValue)?r=!0:P(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text()),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],ma=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},va=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(U(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw n("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,ge(t));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||R(o)||o.test(t)}}}}},ya=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=A(e);i=O(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},ba=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=A(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};t.angular.bootstrap?t.console:(!function(){var n;if(!Ae){var r=oe();(c=R(r)?e:r?t[r]:void 0)&&c.fn.on?(u=c,k(c.fn,{scope:xt.scope,isolateScope:xt.isolateScope,controller:xt.controller,injector:xt.injector,inheritedData:xt.inheritedData}),n=c.cleanData,c.cleanData=function(e){for(var t,r,i=0;null!=(r=e[i]);i++)(t=c._data(r,"events"))&&t.$destroy&&c(r).triggerHandler("$destroy");n(e)}):u=ut,y.element=u,Ae=!0}}(),function(e){k(e,{bootstrap:xe,copy:ne,extend:k,merge:_,equals:re,element:u,forEach:$,injector:zt,noop:M,bind:le,toJson:ce,fromJson:fe,identity:N,isUndefined:R,isDefined:P,isString:U,isFunction:V,isObject:L,isNumber:B,isElement:Q,isArray:z,version:ze,isDate:H,lowercase:a,uppercase:s,callbacks:{$$counter:0},getTestability:Te,$$minErr:n,$$csp:ie,reloadWithDebugInfo:Ce}),(f=function(e){var t=n("$injector"),r=n("ng");function i(e,t,n){return e[t]||(e[t]=n())}var o=i(e,"angular",Object);return o.$$minErr=o.$$minErr||n,i(o,"module",function(){var e={};return function(n,o,a){return function(e,t){if("hasOwnProperty"===e)throw r("badname","hasOwnProperty is not a valid {0} name",t)}(n,"module"),o&&e.hasOwnProperty(n)&&(e[n]=null),i(e,n,function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",n);var e=[],r=[],i=[],s=u("$injector","invoke","push",r),l={_invokeQueue:e,_configBlocks:r,_runBlocks:i,requires:o,name:n,provider:c("$provide","provider"),factory:c("$provide","factory"),service:c("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:c("$provide","decorator"),animation:c("$animateProvider","register"),filter:c("$filterProvider","register"),controller:c("$controllerProvider","register"),directive:c("$compileProvider","directive"),component:c("$compileProvider","component"),config:s,run:function(e){return i.push(e),this}};return a&&s(a),l;function u(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),l}}function c(t,r){return function(i,o){return o&&V(o)&&(o.$$moduleName=n),e.push([t,r,arguments]),l}}})}})}(t))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Zr}),e.provider("$compile",sn).directive({a:Hi,input:bo,textarea:bo,form:Ki,script:fa,select:ha,option:ga,ngBind:Eo,ngBindHtml:xo,ngBindTemplate:So,ngClass:ko,ngClassEven:Ao,ngClassOdd:_o,ngCloak:Oo,ngController:Do,ngForm:Gi,ngHide:ia,ngIf:Io,ngInclude:Fo,ngInit:Po,ngNonBindable:Zo,ngPluralize:ta,ngRepeat:na,ngShow:ra,ngStyle:oa,ngSwitch:aa,ngSwitchWhen:sa,ngSwitchDefault:la,ngOptions:ea,ngTransclude:ca,ngModel:Wo,ngList:Lo,ngChange:Co,pattern:va,ngPattern:va,required:ma,ngRequired:ma,minlength:ba,ngMinlength:ba,maxlength:ya,ngMaxlength:ya,ngValue:$o,ngModelOptions:Ko}).directive({ngInclude:Ro}).directive(zi).directive(Mo),e.provider({$anchorScroll:Vt,$animate:Zt,$animateCss:en,$$animateJs:Gt,$$animateQueue:Xt,$$AnimateRunner:Qt,$$animateAsyncRun:Jt,$browser:tn,$cacheFactory:nn,$controller:gn,$document:mn,$exceptionHandler:vn,$filter:gi,$$forceReflow:yn,$interpolate:Ln,$interval:jn,$http:In,$httpParamSerializer:kn,$httpParamSerializerJQLike:_n,$httpBackend:Rn,$xhrFactory:Fn,$jsonpCallbacks:Un,$location:ir,$log:or,$parse:Yr,$rootScope:Xr,$q:Wr,$$q:qr,$sce:ni,$sceDelegate:ti,$sniffer:ri,$templateCache:rn,$templateRequest:oi,$$testability:ai,$timeout:si,$window:di,$$rAF:Gr,$$jqLite:Dt,$$HashMap:It,$$cookieReader:hi})}])}(y),y.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,r){var i=0|e,o=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,r);return 1==i&&0==o.v?t:n}})}]),u(t.document).ready(function(){Se(t.document,xe)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')}).call(this,n("EVdn"))},IlFx:function(e,t,n){var r=n("XKFU"),i=n("y3w9"),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},Io7t:function(e,t,n){var r,i,o;i=[n("EVdn"),n("wd/R")],void 0===(o="function"==typeof(r=function(e,t){var n=e.fullCalendar={version:"2.4.0"},r=n.views={};e.fn.fullCalendar=function(t){var n=Array.prototype.slice.call(arguments,1),r=this;return this.each(function(i,o){var a,s=e(o),l=s.data("fullCalendar");"string"==typeof t?l&&e.isFunction(l[t])&&(a=l[t].apply(l,n),i||(r=a),"destroy"===t&&s.removeData("fullCalendar")):l||(l=new Le(s,t),s.data("fullCalendar",l),l.render())}),r};var i=["header","buttonText","buttonIcons","themeButtonIcons"];function o(e){return L(e,i)}function a(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function s(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function l(){e("body").addClass("fc-not-allowed")}function u(){e("body").removeClass("fc-not-allowed")}function c(t,n,r){var i=Math.floor(n/t.length),o=Math.floor(n-i*(t.length-1)),a=[],s=[],l=[],u=0;f(t),t.each(function(n,r){var c=n===t.length-1?o:i,f=e(r).outerHeight(!0);f<c?(a.push(r),s.push(f),l.push(e(r).height())):u+=f}),r&&(n-=u,i=Math.floor(n/a.length),o=Math.floor(n-i*(a.length-1))),e(a).each(function(t,n){var r=t===a.length-1?o:i,u=s[t],c=l[t],f=r-(u-c);u<r&&e(n).height(f)})}function f(e){e.height("")}function d(t){var n=0;return t.find("> *").each(function(t,r){var i=e(r).outerWidth();i>n&&(n=i)}),n++,t.width(n),n}function p(e,t){return e.height(t).addClass("fc-scroller"),e[0].scrollHeight-1>e[0].clientHeight||(h(e),!1)}function h(e){e.height("").removeClass("fc-scroller")}function g(t){var n=t.css("position"),r=t.parents().filter(function(){var t=e(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&r.length?r:e(t[0].ownerDocument||document)}function m(e){var t=e.offset();return{left:t.left,right:t.left+e.outerWidth(),top:t.top,bottom:t.top+e.outerHeight()}}function v(e){var t=e.offset(),n=y(e),r=t.left+w(e,"border-left-width")+n.left,i=t.top+w(e,"border-top-width")+n.top;return{left:r,right:r+e[0].clientWidth,top:i,bottom:i+e[0].clientHeight}}function y(t){var n=t.innerWidth()-t[0].clientWidth,r={left:0,right:0,top:0,bottom:t.innerHeight()-t[0].clientHeight};return function(){var t,n;return null===b&&(t=e("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=t.children().offset().left>t.offset().left,t.remove(),b=n),b}()&&"rtl"==t.css("direction")?r.left=n:r.right=n,r}n.intersectionToSeg=k,n.applyAll=H,n.debounce=Z,n.isInt=G,n.htmlEscape=V,n.cssToStr=W,n.proxy=X,n.capitaliseFirstLetter=q,n.getClientRect=v,n.getContentRect=function(e){var t=e.offset(),n=t.left+w(e,"border-left-width")+w(e,"padding-left"),r=t.top+w(e,"border-top-width")+w(e,"padding-top");return{left:n,right:n+e.width(),top:r,bottom:r+e.height()}},n.getScrollbarWidths=y;var b=null;function w(e,t){return parseFloat(e.css(t))||0}function $(e){return 1==e.which&&!e.ctrlKey}function E(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function S(t){var n,r,i=[],o=[];for("string"==typeof t?o=t.split(/\s*,\s*/):"function"==typeof t?o=[t]:e.isArray(t)&&(o=t),n=0;n<o.length;n++)"string"==typeof(r=o[n])?i.push("-"==r.charAt(0)?{field:r.substring(1),order:-1}:{field:r,order:1}):"function"==typeof r&&i.push({func:r});return i}function x(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=C(e,t,n[r]))return i;return 0}function C(e,t,n){return n.func?n.func(e,t):T(e[n.field],t[n.field])*(n.order||1)}function T(t,n){return t||n?null==n?-1:null==t?1:"string"===e.type(t)||"string"===e.type(n)?String(t).localeCompare(String(n)):t-n:0}function k(e,t){var n,r,i,o,a=e.start,s=e.end,l=t.start,u=t.end;if(s>l&&a<u)return a>=l?(n=a.clone(),i=!0):(n=l.clone(),i=!1),s<=u?(r=s.clone(),o=!0):(r=u.clone(),o=!1),{start:n,end:r,isStart:i,isEnd:o}}n.intersectRects=E,n.parseFieldSpecs=S,n.compareByFieldSpecs=x,n.compareByFieldSpec=C,n.flexibleCompare=T,n.computeIntervalUnit=M,n.divideRangeByDuration=function(e,t,n){var r;return F(n)?(t-e)/n:(r=n.asMonths(),Math.abs(r)>=1&&G(r)?t.diff(e,"months",!0)/r:t.diff(e,"days",!0)/n.asDays())},n.divideDurationByDuration=I,n.multiplyDuration=function(e,n){var r;return F(e)?t.duration(e*n):(r=e.asMonths(),Math.abs(r)>=1&&G(r)?t.duration({months:r*n}):t.duration({days:e.asDays()*n}))},n.durationHasTime=F;var _=["sun","mon","tue","wed","thu","fri","sat"],A=["year","month","week","day","hour","minute","second","millisecond"];function O(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:e.time()-n.time()})}function D(e,n,r){return t.duration(Math.round(e.diff(n,r,!0)),r)}function M(e,t){var n,r,i;for(n=0;n<A.length&&(r=A[n],!((i=N(r,e,t))>=1&&G(i)));n++);return r}function N(e,n,r){return null!=r?r.diff(n,e,!0):t.isDuration(n)?n.as(e):n.end.diff(n.start,e,!0)}function I(e,t){var n,r;return F(e)||F(t)?e/t:(n=e.asMonths(),r=t.asMonths(),Math.abs(n)>=1&&G(n)&&Math.abs(r)>=1&&G(r)?n/r:e.asDays()/t.asDays())}function F(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function R(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}n.log=function(){var e=window.console;if(e&&e.log)return e.log.apply(e,arguments)},n.warn=function(){var e=window.console;return e&&e.warn?e.warn.apply(e,arguments):n.log.apply(n,arguments)};var P={}.hasOwnProperty;function L(e,t){var n,r,i,o,a,s,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(a=e[o][r]))i.unshift(a);else if(void 0!==a){l[r]=a;break}i.length&&(l[r]=L(i))}for(n=e.length-1;n>=0;n--)for(r in s=e[n])r in l||(l[r]=s[r]);return l}function j(e){var t=function(){};return t.prototype=e,new t}function U(e,t){for(var n in e)B(e,n)&&(t[n]=e[n])}function B(e,t){return P.call(e,t)}function H(t,n,r){if(e.isFunction(t)&&(t=[t]),t){var i,o;for(i=0;i<t.length;i++)o=t[i].apply(n,r)||o;return o}}function z(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}function V(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Y(e){return e.replace(/&.*?;/g,"")}function W(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function K(e,t){return e-t}function G(e){return e%1==0}function X(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function Z(e,t){var n,r,i,o,a=function(){var s=+new Date-o;s<t&&s>0?n=setTimeout(a,t-s):(n=null,e.apply(i,r),n||(i=r=null))};return function(){i=this,r=arguments,o=+new Date,n||(n=setTimeout(a,t))}}var J,Q,ee,te=/^\s*\d{4}-\d\d$/,ne=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,re=t.fn,ie=e.extend({},re);function oe(n,r,i){var o,a,s,l,u=n[0],c=1==n.length&&"string"==typeof u;return t.isMoment(u)?(l=t.apply(null,n),se(u,l)):function(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}(u)||void 0===u?l=t.apply(null,n):(o=!1,a=!1,c?te.test(u)?(n=[u+="-01"],o=!0,a=!0):(s=ne.exec(u))&&(o=!s[5],a=!0):e.isArray(u)&&(a=!0),l=r||o?t.utc.apply(t,n):t.apply(null,n),o?(l._ambigTime=!0,l._ambigZone=!0):i&&(a?l._ambigZone=!0:c&&(l.utcOffset?l.utcOffset(u):l.zone(u)))),l._fullCalendar=!0,l}function ae(e,r){var i,o,a=!1,s=!1,l=e.length,u=[];for(i=0;i<l;i++)o=e[i],t.isMoment(o)||(o=n.moment.parseZone(o)),a=a||o._ambigTime,s=s||o._ambigZone,u.push(o);for(i=0;i<l;i++)o=u[i],r||!a||o._ambigTime?s&&!o._ambigZone&&(u[i]=o.clone().stripZone()):u[i]=o.clone().stripTime();return u}function se(e,t){e._ambigTime?t._ambigTime=!0:t._ambigTime&&(t._ambigTime=!1),e._ambigZone?t._ambigZone=!0:t._ambigZone&&(t._ambigZone=!1)}function le(e,t){e.year(t[0]||0).month(t[1]||0).date(t[2]||0).hours(t[3]||0).minutes(t[4]||0).seconds(t[5]||0).milliseconds(t[6]||0)}function ue(e,t){return ie.format.call(e,t)}function ce(e,t){var n,r="";for(n=0;n<t.length;n++)r+=de(e,t[n]);return r}n.moment=function(){return oe(arguments)},n.moment.utc=function(){var e=oe(arguments,!0);return e.hasTime()&&e.utc(),e},n.moment.parseZone=function(){return oe(arguments,!0,!0)},re.clone=function(){var e=ie.clone.apply(this,arguments);return se(this,e),this._fullCalendar&&(e._fullCalendar=!0),e},re.week=re.weeks=function(e){var t=(this._locale||this._lang)._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?ie.isoWeek.apply(this,arguments):ie.week.apply(this,arguments)},re.time=function(e){if(!this._fullCalendar)return ie.time.apply(this,arguments);if(null==e)return t.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,t.isDuration(e)||t.isMoment(e)||(e=t.duration(e));var n=0;return t.isDuration(e)&&(n=24*Math.floor(e.asDays())),this.hours(n+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},re.stripTime=function(){var e;return this._ambigTime||(e=this.toArray(),this.utc(),Q(this,e.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},re.hasTime=function(){return!this._ambigTime},re.stripZone=function(){var e,t;return this._ambigZone||(e=this.toArray(),t=this._ambigTime,this.utc(),Q(this,e),this._ambigTime=t||!1,this._ambigZone=!0),this},re.hasZone=function(){return!this._ambigZone},re.local=function(){var e=this.toArray(),t=this._ambigZone;return ie.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,t&&ee(this,e),this},re.utc=function(){return ie.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},e.each(["zone","utcOffset"],function(e,t){ie[t]&&(re[t]=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),ie[t].apply(this,arguments)})}),re.format=function(){return this._fullCalendar&&arguments[0]?(e=this,t=arguments[0],ce(e,ve(t))):this._ambigTime?ue(this,"YYYY-MM-DD"):this._ambigZone?ue(this,"YYYY-MM-DD[T]HH:mm:ss"):ie.format.apply(this,arguments);var e,t},re.toISOString=function(){return this._ambigTime?ue(this,"YYYY-MM-DD"):this._ambigZone?ue(this,"YYYY-MM-DD[T]HH:mm:ss"):ie.toISOString.apply(this,arguments)},re.isWithin=function(e,t){var n=ae([this,e,t]);return n[0]>=n[1]&&n[0]<n[2]},re.isSame=function(e,t){var r;return this._fullCalendar?t?(r=ae([this,e],!0),ie.isSame.call(r[0],r[1],t)):(e=n.moment.parseZone(e),ie.isSame.call(this,e)&&Boolean(this._ambigTime)===Boolean(e._ambigTime)&&Boolean(this._ambigZone)===Boolean(e._ambigZone)):ie.isSame.apply(this,arguments)},e.each(["isBefore","isAfter"],function(e,t){re[t]=function(e,n){var r;return this._fullCalendar?(r=ae([this,e]),ie[t].call(r[0],r[1],n)):ie[t].apply(this,arguments)}}),J="_d"in t()&&"updateOffset"in t,Q=J?function(e,n){e._d.setTime(Date.UTC.apply(Date,n)),t.updateOffset(e,!1)}:le,ee=J?function(e,n){e._d.setTime(+new Date(n[0]||0,n[1]||0,n[2]||0,n[3]||0,n[4]||0,n[5]||0,n[6]||0)),t.updateOffset(e,!1)}:le;var fe={t:function(e){return ue(e,"a").charAt(0)},T:function(e){return ue(e,"A").charAt(0)}};function de(e,t){var n,r;return"string"==typeof t?t:(n=t.token)?fe[n]?fe[n](e):ue(e,n):t.maybe&&(r=ce(e,t.maybe)).match(/[1-9]/)?r:""}function pe(e,t,r,i,o){var a;return e=n.moment.parseZone(e),t=n.moment.parseZone(t),a=(e.localeData||e.lang).call(e),r=a.longDateFormat(r)||r,i=i||" - ",function(e,t,n,r,i){var o,a,s,l,u="",c="",f="",d="",p="";for(a=0;a<n.length&&!1!==(o=ge(e,t,n[a]));a++)u+=o;for(s=n.length-1;s>a&&!1!==(o=ge(e,t,n[s]));s--)c=o+c;for(l=a;l<=s;l++)f+=de(e,n[l]),d+=de(t,n[l]);return(f||d)&&(p=i?d+r+f:f+r+d),u+p+c}(e,t,ve(r),i,o)}n.formatRange=pe;var he={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"};function ge(e,t,n){var r,i;return"string"==typeof n?n:!!((r=n.token)&&(i=he[r.charAt(0)])&&e.isSame(t,i))&&ue(e,r)}var me={};function ve(e){return e in me?me[e]:me[e]=function e(t){for(var n,r=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;n=i.exec(t);)n[1]?r.push(n[1]):n[2]?r.push({maybe:e(n[2])}):n[3]?r.push({token:n[3]}):n[5]&&r.push(n[5]);return r}(e)}function ye(){}n.Class=ye,ye.extend=function(e){var t,n=this;return B(e=e||{},"constructor")&&(t=e.constructor),"function"!=typeof t&&(t=e.constructor=function(){n.apply(this,arguments)}),t.prototype=j(n.prototype),U(e,t.prototype),function(e,t){var n,r,i=["constructor","toString","valueOf"];for(n=0;n<i.length;n++)e[r=i[n]]!==Object.prototype[r]&&(t[r]=e[r])}(e,t.prototype),U(n,t),t},ye.mixin=function(e){U(e.prototype||e,this.prototype)};var be=n.Emitter=ye.extend({callbackHash:null,on:function(e,t){return this.getCallbacks(e).add(t),this},off:function(e,t){return this.getCallbacks(e).remove(t),this},trigger:function(e){var t=Array.prototype.slice.call(arguments,1);return this.triggerWith(e,this,t),this},triggerWith:function(e,t,n){var r=this.getCallbacks(e);return r.fireWith(t,n),this},getCallbacks:function(t){var n;return this.callbackHash||(this.callbackHash={}),(n=this.callbackHash[t])||(n=this.callbackHash[t]=e.Callbacks()),n}}),we=ye.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(e){this.options=e||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var t=this,n=this.options;this.el=e('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),n.autoHide&&e(document).on("mousedown",this.documentMousedownProxy=X(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!e(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),e(document).off("mousedown",this.documentMousedownProxy)},position:function(){var t,n,r,i,o,a=this.options,s=this.el.offsetParent().offset(),l=this.el.outerWidth(),u=this.el.outerHeight(),c=e(window),f=g(this.el);i=a.top||0,o=void 0!==a.left?a.left:void 0!==a.right?a.right-l:0,f.is(window)||f.is(document)?(f=c,t=0,n=0):(r=f.offset(),t=r.top,n=r.left),t+=c.scrollTop(),n+=c.scrollLeft(),!1!==a.viewportConstrain&&(i=Math.min(i,t+f.outerHeight()-u-this.margin),i=Math.max(i,t+this.margin),o=Math.min(o,n+f.outerWidth()-l-this.margin),o=Math.max(o,n+this.margin)),this.el.css({top:i-s.top,left:o-s.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),$e=ye.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,bounds:null,constructor:function(e){this.grid=e},build:function(){this.grid.build(),this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.grid.clear(),this.rowCoords=null,this.colCoords=null},getCell:function(t,n){var r,i,o,a=this.rowCoords,s=a.length,l=this.colCoords,u=l.length,c=null,f=null;if(this.inBounds(t,n)){for(r=0;r<s;r++)if(i=a[r],n>=i.top&&n<i.bottom){c=r;break}for(r=0;r<u;r++)if(i=l[r],t>=i.left&&t<i.right){f=r;break}if(null!==c&&null!==f)return(o=this.grid.getCell(c,f)).grid=this.grid,e.extend(o,a[c],l[f]),o}return null},computeBounds:function(){this.bounds=this.containerEl?v(this.containerEl):null},inBounds:function(e,t){var n=this.bounds;return!n||e>=n.left&&e<n.right&&t>=n.top&&t<n.bottom}}),Ee=ye.extend({coordMaps:null,constructor:function(e){this.coordMaps=e},build:function(){var e,t=this.coordMaps;for(e=0;e<t.length;e++)t[e].build()},getCell:function(e,t){var n,r=this.coordMaps,i=null;for(n=0;n<r.length&&!i;n++)i=r[n].getCell(e,t);return i},clear:function(){var e,t=this.coordMaps;for(e=0;e<t.length;e++)t[e].clear()}}),Se=n.DragListener=ye.extend({options:null,isListening:!1,isDragging:!1,originX:null,originY:null,mousemoveProxy:null,mouseupProxy:null,subjectEl:null,subjectHref:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(e){e=e||{},this.options=e,this.subjectEl=e.subjectEl},mousedown:function(e){$(e)&&(e.preventDefault(),this.startListening(e),this.options.distance||this.startDrag(e))},startListening:function(t){var n;this.isListening||(t&&this.options.scroll&&((n=g(e(t.target))).is(window)||n.is(document)||(this.scrollEl=n,this.scrollHandlerProxy=Z(X(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),e(document).on("mousemove",this.mousemoveProxy=X(this,"mousemove")).on("mouseup",this.mouseupProxy=X(this,"mouseup")).on("selectstart",this.preventDefault),t?(this.originX=t.pageX,this.originY=t.pageY):(this.originX=0,this.originY=0),this.isListening=!0,this.listenStart(t))},listenStart:function(e){this.trigger("listenStart",e)},mousemove:function(e){var t,n=e.pageX-this.originX,r=e.pageY-this.originY;this.isDragging||(t=this.options.distance||1,n*n+r*r>=t*t&&this.startDrag(e)),this.isDragging&&this.drag(n,r,e)},startDrag:function(e){this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.dragStart(e))},dragStart:function(e){var t=this.subjectEl;this.trigger("dragStart",e),(this.subjectHref=t?t.attr("href"):null)&&t.removeAttr("href")},drag:function(e,t,n){this.trigger("drag",e,t,n),this.updateScroll(n)},mouseup:function(e){this.stopListening(e)},stopDrag:function(e){this.isDragging&&(this.stopScrolling(),this.dragStop(e),this.isDragging=!1)},dragStop:function(e){var t=this;this.trigger("dragStop",e),setTimeout(function(){t.subjectHref&&t.subjectEl.attr("href",t.subjectHref)},0)},stopListening:function(t){this.stopDrag(t),this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),e(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.listenStop(t))},listenStop:function(e){this.trigger("listenStop",e)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(e){e.preventDefault()},computeScrollBounds:function(){var e=this.scrollEl;this.scrollBounds=e?m(e):null},updateScroll:function(e){var t,n,r,i,o=this.scrollSensitivity,a=this.scrollBounds,s=0,l=0;a&&(t=(o-(e.pageY-a.top))/o,n=(o-(a.bottom-e.pageY))/o,r=(o-(e.pageX-a.left))/o,i=(o-(a.right-e.pageX))/o,t>=0&&t<=1?s=t*this.scrollSpeed*-1:n>=0&&n<=1&&(s=n*this.scrollSpeed),r>=0&&r<=1?l=r*this.scrollSpeed*-1:i>=0&&i<=1&&(l=i*this.scrollSpeed)),this.setScrollVel(s,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(X(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),xe=Se.extend({coordMap:null,origCell:null,cell:null,coordAdjust:null,constructor:function(e,t){Se.prototype.constructor.call(this,t),this.coordMap=e},listenStart:function(e){var t,n,r,i,o,a,s=this.subjectEl;Se.prototype.listenStart.apply(this,arguments),this.computeCoords(),e?(n={left:e.pageX,top:e.pageY},r=n,s&&(t=m(s),r=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}(r,t)),this.origCell=this.getCell(r.left,r.top),s&&this.options.subjectCenter&&(this.origCell&&(t=E(this.origCell,t)||t),r={left:((a=t).left+a.right)/2,top:(a.top+a.bottom)/2}),this.coordAdjust=(o=n,{left:(i=r).left-o.left,top:i.top-o.top})):(this.origCell=null,this.coordAdjust=null)},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},dragStart:function(e){var t;Se.prototype.dragStart.apply(this,arguments),(t=this.getCell(e.pageX,e.pageY))&&this.cellOver(t)},drag:function(e,t,n){var r;Se.prototype.drag.apply(this,arguments),Ce(r=this.getCell(n.pageX,n.pageY),this.cell)||(this.cell&&this.cellOut(),r&&this.cellOver(r))},dragStop:function(){this.cellDone(),Se.prototype.dragStop.apply(this,arguments)},cellOver:function(e){this.cell=e,this.trigger("cellOver",e,Ce(e,this.origCell),this.origCell)},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cellDone(),this.cell=null)},cellDone:function(){this.cell&&this.trigger("cellDone",this.cell)},listenStop:function(){Se.prototype.listenStop.apply(this,arguments),this.origCell=this.cell=null,this.coordMap.clear()},scrollStop:function(){Se.prototype.scrollStop.apply(this,arguments),this.computeCoords()},getCell:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.coordMap.getCell(e,t)}});function Ce(e,t){return!e&&!t||!(!e||!t)&&e.grid===t.grid&&e.row===t.row&&e.col===t.col}var Te=ye.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,n){this.options=n=n||{},this.sourceEl=t,this.parentEl=n.parentEl?e(n.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),e(document).on("mousemove",this.mousemoveProxy=X(this,"mousemove")))},stop:function(t,n){var r=this,i=this.options.revertDuration;function o(){this.isAnimating=!1,r.removeElement(),this.top0=this.left0=null,n&&n()}this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,e(document).off("mousemove",this.mousemoveProxy),t&&i&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:i,complete:o})):o())},getEl:function(){var e=this.el;return e||(this.sourceEl.width(),e=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(this.sourceEl.width(),e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(e){this.topDelta=e.pageY-this.mouseY0,this.leftDelta=e.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),ke=ye.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL")},rowHtml:function(e,t){var n,r,i=this.getHtmlRenderer("cell",e),o="";for(t=t||0,n=0;n<this.colCnt;n++)r=this.getCell(t,n),o+=i(r);return"<tr>"+(o=this.bookendCells(o,e,t))+"</tr>"},bookendCells:function(e,t,n){var r=this.getHtmlRenderer("intro",t)(n||0),i=this.getHtmlRenderer("outro",t)(n||0),o=this.isRTL?i:r,a=this.isRTL?r:i;return"string"==typeof e?o+e+a:e.prepend(o).append(a)},getHtmlRenderer:function(e,t){var n,r,i,o,a=this.view;return n=e+"Html",t&&(r=t+q(e)+"Html"),r&&(o=a[r])?i=a:r&&(o=this[r])?i=this:(o=a[n])?i=a:(o=this[n])&&(i=this),"function"==typeof o?function(){return o.apply(i,arguments)||""}:function(){return o||""}}}),_e=n.Grid=ke.extend({start:null,end:null,rowCnt:0,colCnt:0,el:null,coordMap:null,elsByFill:null,externalDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,cellDuration:null,largeUnit:null,constructor:function(){ke.apply(this,arguments),this.coordMap=new $e(this),this.elsByFill={},this.externalDragStartProxy=X(this,"externalDragStart")},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,n=this.view;this.colHeadFormat=n.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),null==(e=n.opt("displayEventTime"))&&(e=this.computeDisplayEventTime()),null==(t=n.opt("displayEventEnd"))&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},build:function(){},clear:function(){},rangeToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?D(e,t,this.largeUnit):O(e,t)},getCell:function(t,n){var r;return null==n&&("number"==typeof t?(n=t%this.colCnt,t=Math.floor(t/this.colCnt)):(n=t.col,t=t.row)),r={row:t,col:n},e.extend(r,this.getRowData(t),this.getColData(n)),e.extend(r,this.computeCellRange(r)),r},computeCellRange:function(e){var t=this.computeCellDate(e);return{start:t,end:t.clone().add(this.cellDuration)}},computeCellDate:function(e){},getRowData:function(e){return{}},getColData:function(e){return{}},getRowEl:function(e){},getColEl:function(e){},getCellDayEl:function(e){return this.getColEl(e.col)||this.getRowEl(e.row)},computeRowCoords:function(){var e,t,n,r=[];for(e=0;e<this.rowCnt;e++)t=this.getRowEl(e),n=t.offset().top,r.push({top:n,bottom:n+t.outerHeight()});return r},computeColCoords:function(){var e,t,n,r=[];for(e=0;e<this.colCnt;e++)t=this.getColEl(e),n=t.offset().left,r.push({left:n,right:n+t.outerWidth()});return r},setElement:function(t){var n=this;this.el=t,t.on("mousedown",function(t){e(t.target).is(".fc-event-container *, .fc-more")||e(t.target).closest(".fc-popover").length||n.dayMousedown(t)}),this.bindSegHandlers(),this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){e(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){e(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(e){var t,n,r=this,i=this.view,o=i.opt("selectable"),a=new xe(this.coordMap,{scroll:i.opt("dragScroll"),dragStart:function(){i.unselect()},cellOver:function(e,i,a){a&&(t=i?e:null,o&&((n=r.computeSelection(a,e))?r.renderSelection(n):l()))},cellOut:function(e){t=null,n=null,r.unrenderSelection(),u()},listenStop:function(e){t&&i.triggerDayClick(t,r.getCellDayEl(t),e),n&&i.reportSelection(n,e),u()}});a.mousedown(e)},renderRangeHelper:function(e,t){var n=this.fabricateHelperEvent(e,t);this.renderHelper(n,t)},fabricateHelperEvent:function(e,t){var n=t?j(t.event):{};return n.start=e.start.clone(),n.end=e.end?e.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventRange(n),n.className=(n.className||[]).concat("fc-helper"),t||(n.editable=!1),n},renderHelper:function(e,t){},unrenderHelper:function(){},renderSelection:function(e){this.renderHighlight(this.selectionRangeToSegs(e))},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(e,t){var n,r=[e.start,e.end,t.start,t.end];return r.sort(K),n={start:r[0].clone(),end:r[3].clone()},this.view.calendar.isSelectionRangeAllowed(n)?n:null},selectionRangeToSegs:function(e){return this.rangeToSegs(e)},renderHighlight:function(e){this.renderFill("highlight",e)},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(e,t){},unrenderFill:function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},renderFillSegEls:function(t,n){var r,i=this,o=this[t+"SegEl"],a="",s=[];if(n.length){for(r=0;r<n.length;r++)a+=this.fillSegHtml(t,n[r]);e(a).each(function(t,r){var a=n[t],l=e(r);o&&(l=o.call(i,a,l)),l&&(l=e(l)).is(i.fillSegTag)&&(a.el=l,s.push(a))})}return s},fillSegTag:"div",fillSegHtml:function(e,t){var n=this[e+"SegClasses"],r=this[e+"SegCss"],i=n?n.call(this,t):[],o=W(r?r.call(this,t):{});return"<"+this.fillSegTag+(i.length?' class="'+i.join(" ")+'"':"")+(o?' style="'+o+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(e){var t=this.view,n=e.start;return'<th class="fc-day-header '+t.widgetHeaderClass+" fc-"+_[n.day()]+'">'+V(n.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(e){var t=this.view,n=e.start,r=this.getDayClasses(n);return r.unshift("fc-day",t.widgetContentClass),'<td class="'+r.join(" ")+'" data-date="'+n.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(e){var t=this.view,n=t.calendar.getNow().stripTime(),r=["fc-"+_[e.day()]];return 1==t.intervalDuration.as("months")&&e.month()!=t.intervalStart.month()&&r.push("fc-other-month"),e.isSame(n,"day")?r.push("fc-today",t.highlightStateClass):e<n?r.push("fc-past"):r.push("fc-future"),r}});function Ae(e){return z((e.source||{}).rendering,e.rendering)}function Oe(e,t){return e.eventStartMS-t.eventStartMS}_e.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(e){var t,n,r,i,o=this.eventsToSegs(e),a=[],s=[];for(t=0;t<o.length;t++)n=o[t],r=n.event,"background"===(i=Ae(r))||"inverse-background"===i?a.push(n):s.push(n);a=this.renderBgSegs(a)||a,s=this.renderFgSegs(s)||s,this.segs=a.concat(s)},unrenderEvents:function(){this.triggerSegMouseout(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(e){},unrenderFgSegs:function(){},renderFgSegEls:function(t,n){var r,i=this.view,o="",a=[];if(t.length){for(r=0;r<t.length;r++)o+=this.fgSegHtml(t[r],n);e(o).each(function(n,r){var o=t[n],s=i.resolveEventEl(o.event,e(r));s&&(s.data("fc-seg",o),o.el=s,a.push(o))})}return a},fgSegHtml:function(e,t){},renderBgSegs:function(e){return this.renderFill("bgEvent",e)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(e,t){return this.view.resolveEventEl(e.event,t)},bgEventSegClasses:function(e){var t=e.event,n=t.source||{};return["fc-bgevent"].concat(t.className,n.className||[])},bgEventSegCss:function(e){var t=this.view,n=e.event,r=n.source||{};return{"background-color":n.backgroundColor||n.color||r.backgroundColor||r.color||t.opt("eventBackgroundColor")||t.opt("eventColor")}},businessHoursSegClasses:function(e){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var t=this,n=this.view;e.each({mouseenter:function(e,n){t.triggerSegMouseover(e,n)},mouseleave:function(e,n){t.triggerSegMouseout(e,n)},click:function(e,t){return n.trigger("eventClick",this,e.event,t)},mousedown:function(r,i){e(i.target).is(".fc-resizer")&&n.isEventResizable(r.event)?t.segResizeMousedown(r,i,e(i.target).is(".fc-start-resizer")):n.isEventDraggable(r.event)&&t.segDragMousedown(r,i)}},function(n,r){t.el.on(n,".fc-event-container > *",function(n){var i=e(this).data("fc-seg");if(i&&!t.isDraggingSeg&&!t.isResizingSeg)return r.call(this,i,n)})})},triggerSegMouseover:function(e,t){this.mousedOverSeg||(this.mousedOverSeg=e,this.view.trigger("eventMouseover",e.el[0],e.event,t))},triggerSegMouseout:function(e,t){t=t||{},this.mousedOverSeg&&(e=e||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",e.el[0],e.event,t))},segDragMousedown:function(e,t){var n,r=this,i=this.view,o=i.calendar,a=e.el,s=e.event,c=new Te(e.el,{parentEl:i.el,opacity:i.opt("dragOpacity"),revertDuration:i.opt("dragRevertDuration"),zIndex:2}),f=new xe(i.coordMap,{distance:5,scroll:i.opt("dragScroll"),subjectEl:a,subjectCenter:!0,listenStart:function(e){c.hide(),c.start(e)},dragStart:function(t){r.triggerSegMouseout(e,t),r.segDragStart(e,t),i.hideEvent(s)},cellOver:function(t,a,u){e.cell&&(u=e.cell),(n=r.computeEventDrop(u,t,s))&&!o.isEventRangeAllowed(n,s)&&(l(),n=null),n&&i.renderDrag(n,e)?c.hide():c.show(),a&&(n=null)},cellOut:function(){i.unrenderDrag(),c.show(),n=null},cellDone:function(){u()},dragStop:function(t){c.stop(!n,function(){i.unrenderDrag(),i.showEvent(s),r.segDragStop(e,t),n&&i.reportEventDrop(s,n,this.largeUnit,a,t)})},listenStop:function(){c.stop()}});f.mousedown(t)},segDragStart:function(e,t){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",e.el[0],e.event,t,{})},segDragStop:function(e,t){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",e.el[0],e.event,t,{})},computeEventDrop:function(e,t,n){var r,i,o=this.view.calendar,a=e.start,s=t.start;return a.hasTime()===s.hasTime()?(r=this.diffDates(s,a),n.allDay&&F(r)?(i={start:n.start.clone(),end:o.getEventEnd(n),allDay:!1},o.normalizeEventRangeTimes(i)):i={start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay},i.start.add(r),i.end&&i.end.add(r)):i={start:s.clone(),end:null,allDay:!s.hasTime()},i},applyDragOpacity:function(e){var t=this.view.opt("dragOpacity");null!=t&&e.each(function(e,n){n.style.opacity=t})},externalDragStart:function(t,n){var r,i,o=this.view;o.opt("droppable")&&(r=e((n?n.item:null)||t.target),i=o.opt("dropAccept"),(e.isFunction(i)?i.call(r[0],r):r.is(i))&&(this.isDraggingExternal||this.listenToExternalDrag(r,t,n)))},listenToExternalDrag:function(r,i,o){var a,s=this,c=function(r){var i,o,a,s,l=n.dataAttrPrefix;return l&&(l+="-"),(i=r.data(l+"event")||null)&&(i="object"==typeof i?e.extend({},i):{},null==(o=i.start)&&(o=i.time),a=i.duration,s=i.stick,delete i.start,delete i.time,delete i.duration,delete i.stick),null==o&&(o=r.data(l+"start")),null==o&&(o=r.data(l+"time")),null==a&&(a=r.data(l+"duration")),null==s&&(s=r.data(l+"stick")),o=null!=o?t.duration(o):null,a=null!=a?t.duration(a):null,s=Boolean(s),{eventProps:i,startTime:o,duration:a,stick:s}}(r);new xe(this.coordMap,{listenStart:function(){s.isDraggingExternal=!0},cellOver:function(e){(a=s.computeExternalDrop(e,c))?s.renderDrag(a):l()},cellOut:function(){a=null,s.unrenderDrag(),u()},dragStop:function(){s.unrenderDrag(),u(),a&&s.view.reportExternalDrop(c,a,r,i,o)},listenStop:function(){s.isDraggingExternal=!1}}).startDrag(i)},computeExternalDrop:function(e,t){var n={start:e.start.clone(),end:null};return t.startTime&&!n.start.hasTime()&&n.start.time(t.startTime),t.duration&&(n.end=n.start.clone().add(t.duration)),this.view.calendar.isExternalDropRangeAllowed(n,t.eventProps)?n:null},renderDrag:function(e,t){},unrenderDrag:function(){},segResizeMousedown:function(e,t,n){var r,i=this,o=this.view,a=o.calendar,s=e.el,c=e.event,f=a.getEventEnd(c);new xe(this.coordMap,{distance:5,scroll:o.opt("dragScroll"),subjectEl:s,dragStart:function(t){i.triggerSegMouseout(e,t),i.segResizeStart(e,t)},cellOver:function(t,s,u){(r=n?i.computeEventStartResize(u,t,c):i.computeEventEndResize(u,t,c))&&(a.isEventRangeAllowed(r,c)?r.start.isSame(c.start)&&r.end.isSame(f)&&(r=null):(l(),r=null)),r&&(o.hideEvent(c),i.renderEventResize(r,e))},cellOut:function(){r=null},cellDone:function(){i.unrenderEventResize(),o.showEvent(c),u()},dragStop:function(t){i.segResizeStop(e,t),r&&o.reportEventResize(c,r,this.largeUnit,s,t)}}).mousedown(t)},segResizeStart:function(e,t){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",e.el[0],e.event,t,{})},segResizeStop:function(e,t){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",e.el[0],e.event,t,{})},computeEventStartResize:function(e,t,n){return this.computeEventResize("start",e,t,n)},computeEventEndResize:function(e,t,n){return this.computeEventResize("end",e,t,n)},computeEventResize:function(e,t,n,r){var i,o,a=this.view.calendar,s=this.diffDates(n[e],t[e]);return(i={start:r.start.clone(),end:a.getEventEnd(r),allDay:r.allDay}).allDay&&F(s)&&(i.allDay=!1,a.normalizeEventRangeTimes(i)),i[e].add(s),i.start.isBefore(i.end)||(o=r.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration,this.cellDuration&&this.cellDuration<o&&(o=this.cellDuration),"start"==e?i.start=i.end.clone().subtract(o):i.end=i.start.clone().add(o)),i},renderEventResize:function(e,t){},unrenderEventResize:function(){},getEventTimeText:function(e,t,n){return null==t&&(t=this.eventTimeFormat),null==n&&(n=this.displayEventEnd),this.displayEventTime&&e.start.hasTime()?n&&e.end?this.view.formatRange(e,t):e.start.format(t):""},getSegClasses:function(e,t,n){var r=e.event,i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(r.className,r.source?r.source.className:[]);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),i},getEventSkinCss:function(e){var t=this.view,n=e.source||{},r=e.color,i=n.color,o=t.opt("eventColor");return{"background-color":e.backgroundColor||r||n.backgroundColor||i||t.opt("eventBackgroundColor")||o,"border-color":e.borderColor||r||n.borderColor||i||t.opt("eventBorderColor")||o,color:e.textColor||n.textColor||t.opt("eventTextColor")}},eventsToSegs:function(e,t){var n,r=this.eventsToRanges(e),i=[];for(n=0;n<r.length;n++)i.push.apply(i,this.eventRangeToSegs(r[n],t));return i},eventsToRanges:function(t){var n=this,r=function(e){var t,n,r={};for(t=0;t<e.length;t++)n=e[t],(r[n._id]||(r[n._id]=[])).push(n);return r}(t),i=[];return e.each(r,function(e,t){t.length&&i.push.apply(i,"inverse-background"===Ae(t[0])?n.eventsToInverseRanges(t):n.eventsToNormalRanges(t))}),i},eventsToNormalRanges:function(e){var t,n,r,i,o=this.view.calendar,a=[];for(t=0;t<e.length;t++)n=e[t],r=n.start.clone().stripZone(),i=o.getEventEnd(n).stripZone(),a.push({event:n,start:r,end:i,eventStartMS:+r,eventDurationMS:i-r});return a},eventsToInverseRanges:function(e){var t,n,r=this.view,i=r.start.clone().stripZone(),o=r.end.clone().stripZone(),a=this.eventsToNormalRanges(e),s=[],l=e[0],u=i;for(a.sort(Oe),t=0;t<a.length;t++)(n=a[t]).start>u&&s.push({event:l,start:u,end:n.start}),u=n.end;return u<o&&s.push({event:l,start:u,end:o}),s},eventRangeToSegs:function(e,t){var n,r,i;for(e=this.view.calendar.ensureVisibleEventRange(e),n=t?t(e):this.rangeToSegs(e),r=0;r<n.length;r++)(i=n[r]).event=e.event,i.eventStartMS=e.eventStartMS,i.eventDurationMS=e.eventDurationMS;return n},sortSegs:function(e){e.sort(X(this,"compareSegs"))},compareSegs:function(e,t){return e.eventStartMS-t.eventStartMS||t.eventDurationMS-e.eventDurationMS||t.event.allDay-e.event.allDay||x(e.event,t.event,this.view.eventOrderSpecs)}}),n.dataAttrPrefix="";var De=_e.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,constructor:function(){_e.apply(this,arguments),this.cellDuration=t.duration(1,"day")},renderDates:function(e){var t,n,r,i=this.view,o=this.rowCnt,a=this.colCnt,s=o*a,l="";for(t=0;t<o;t++)l+=this.dayRowHtml(t,e);for(this.el.html(l),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),n=0;n<s;n++)r=this.getCell(n),i.trigger("dayRender",null,r.start,this.dayEls.eq(n))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var e=this.view.calendar.getBusinessHoursEvents(!0),t=this.eventsToSegs(e);this.renderFill("businessHours",t,"bgevent")},dayRowHtml:function(e,t){var n=this.view,r=["fc-row","fc-week",n.widgetContentClass];return t&&r.push("fc-rigid"),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",e)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",e)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(e){return this.bgCellHtml(e)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){var e,t,n,r;if(this.updateCellDates(),e=this.cellDates,this.breakOnWeeks){for(t=e[0].day(),r=1;r<e.length&&e[r].day()!=t;r++);n=Math.ceil(e.length/r)}else n=1,r=e.length;this.rowCnt=n,this.colCnt=r},updateCellDates:function(){for(var e=this.view,t=this.start.clone(),n=[],r=-1,i=[];t.isBefore(this.end);)e.isHiddenDay(t)?i.push(r+.5):(r++,i.push(r),n.push(t.clone())),t.add(1,"days");this.cellDates=n,this.dayToCellOffsets=i},computeCellDate:function(e){var t=this.colCnt,n=e.row*t+(this.isRTL?t-e.col-1:e.col);return this.cellDates[n].clone()},getRowEl:function(e){return this.rowEls.eq(e)},getColEl:function(e){return this.dayEls.eq(e)},getCellDayEl:function(e){return this.dayEls.eq(e.row*this.colCnt+e.col)},computeRowCoords:function(){var e=_e.prototype.computeRowCoords.call(this);return e[e.length-1].bottom+=this.bottomCoordPadding,e},rangeToSegs:function(e){var t,n,r,i,o,a,s,l,u,c,f=this.isRTL,d=this.rowCnt,p=this.colCnt,h=[];for(e=this.view.computeDayRange(e),t=this.dateToCellOffset(e.start),n=this.dateToCellOffset(e.end.subtract(1,"days")),r=0;r<d;r++)o=(i=r*p)+p-1,l=Math.max(i,t),u=Math.min(o,n),l=Math.ceil(l),u=Math.floor(u),l<=u&&(a=l===t,s=u===n,l-=i,u-=i,c={row:r,isStart:a,isEnd:s},f?(c.leftCol=p-u-1,c.rightCol=p-l-1):(c.leftCol=l,c.rightCol=u),h.push(c));return h},dateToCellOffset:function(e){var t=this.dayToCellOffsets,n=e.diff(this.start,"days");return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},renderDrag:function(e,t){if(this.renderHighlight(this.eventRangeToSegs(e)),t&&!t.el.closest(this.el).length)return this.renderRangeHelper(e,t),this.applyDragOpacity(this.helperEls),!0},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(e,t){this.renderHighlight(this.eventRangeToSegs(e)),this.renderRangeHelper(e,t)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(t,n){var r,i=[],o=this.eventsToSegs([t]);o=this.renderFgSegEls(o),r=this.renderSegRows(o),this.rowEls.each(function(t,o){var a,s=e(o),l=e('<div class="fc-helper-skeleton"><table/></div>');a=n&&n.row===t?n.el.position().top:s.find(".fc-content-skeleton tbody").position().top,l.css("top",a).find("table").append(r[t].tbodyEl),s.append(l),i.push(l[0])}),this.helperEls=e(i)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,n,r){var i,o,a,s=[];for(n=this.renderFillSegEls(t,n),i=0;i<n.length;i++)o=n[i],a=this.renderFillRow(t,o,r),this.rowEls.eq(o.row).append(a),s.push(a[0]);return this.elsByFill[t]=e(s),n},renderFillRow:function(t,n,r){var i,o,a=this.colCnt,s=n.leftCol,l=n.rightCol+1;return r=r||t.toLowerCase(),i=e('<div class="fc-'+r+'-skeleton"><table><tr/></table></div>'),o=i.find("tr"),s>0&&o.append('<td colspan="'+s+'"/>'),o.append(n.el.attr("colspan",l-s)),l<a&&o.append('<td colspan="'+(a-l)+'"/>'),this.bookendCells(o,t),i}});function Me(e,t){var n,r;for(n=0;n<t.length;n++)if((r=t[n]).leftCol<=e.rightCol&&r.rightCol>=e.leftCol)return!0;return!1}function Ne(e,t){return e.leftCol-t.leftCol}De.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),_e.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return _e.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var n=e.grep(t,function(e){return e.event.allDay});return _e.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,r){e(r).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},fgSegHtml:function(e,t){var n,r,i=this.view,o=e.event,a=i.isEventDraggable(o),s=!t&&o.allDay&&e.isStart&&i.isEventResizableFromStart(o),l=!t&&o.allDay&&e.isEnd&&i.isEventResizableFromEnd(o),u=this.getSegClasses(e,a,s||l),c=W(this.getEventSkinCss(o)),f="";return u.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getEventTimeText(o))&&(f='<span class="fc-time">'+V(n)+"</span>"),r='<span class="fc-title">'+(V(o.title||"")||"&nbsp;")+"</span>",'<a class="'+u.join(" ")+'"'+(o.url?' href="'+V(o.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(this.isRTL?r+" "+f:f+" "+r)+"</div>"+(s?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(t,n){var r,i,o,a,s,l,u,c=this.colCnt,f=this.buildSegLevels(n),d=Math.max(1,f.length),p=e("<tbody/>"),h=[],g=[],m=[];function v(t){for(;o<t;)(u=(m[r-1]||[])[o])?u.attr("rowspan",parseInt(u.attr("rowspan")||1,10)+1):(u=e("<td/>"),a.append(u)),g[r][o]=u,m[r][o]=u,o++}for(r=0;r<d;r++){if(i=f[r],o=0,a=e("<tr/>"),h.push([]),g.push([]),m.push([]),i)for(s=0;s<i.length;s++){for(v((l=i[s]).leftCol),u=e('<td class="fc-event-container"/>').append(l.el),l.leftCol!=l.rightCol?u.attr("colspan",l.rightCol-l.leftCol+1):m[r][o]=u;o<=l.rightCol;)g[r][o]=u,h[r][o]=l,o++;a.append(u)}v(c),this.bookendCells(a,"eventSkeleton"),p.append(a)}return{row:t,tbodyEl:p,cellMatrix:g,segMatrix:h,segLevels:f,segs:n}},buildSegLevels:function(e){var t,n,r,i=[];for(this.sortSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<i.length&&Me(n,i[r]);r++);n.level=r,(i[r]||(i[r]=[])).push(n)}for(r=0;r<i.length;r++)i[r].sort(Ne);return i},groupSegRows:function(e){var t,n=[];for(t=0;t<this.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n}}),De.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(e){var t,n,r=this.rowStructs||[];for(t=0;t<r.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},computeRowLevelLimit:function(t){var n,r,i,o=this.rowEls.eq(t),a=o.height(),s=this.rowStructs[t].tbodyEl.children();function l(t,n){i=Math.max(i,e(n).outerHeight())}for(n=0;n<s.length;n++)if(r=s.eq(n).removeClass("fc-limited"),i=0,r.find("> td > :first-child").each(l),r.position().top+i>a)return n;return!1},limitRow:function(t,n){var r,i,o,a,s,l,u,c,f,d,p,h,g,m,v,y,b=this,w=this.rowStructs[t],$=[],E=0;function S(i){for(;E<i;)r=b.getCell(t,E),(u=b.getCellSegs(r,n)).length&&(d=o[n-1][E],y=b.renderMoreLink(r,u),v=e("<div/>").append(y),d.append(v),$.push(v[0])),E++}if(n&&n<w.segLevels.length){for(i=w.segLevels[n-1],o=w.cellMatrix,a=w.tbodyEl.children().slice(n).addClass("fc-limited").get(),s=0;s<i.length;s++){for(S((l=i[s]).leftCol),f=[],c=0;E<=l.rightCol;)r=this.getCell(t,E),u=this.getCellSegs(r,n),f.push(u),c+=u.length,E++;if(c){for(d=o[n-1][l.leftCol],p=d.attr("rowspan")||1,h=[],g=0;g<f.length;g++)m=e('<td class="fc-more-cell"/>').attr("rowspan",p),u=f[g],r=this.getCell(t,l.leftCol+g),y=this.renderMoreLink(r,[l].concat(u)),v=e("<div/>").append(y),m.append(v),h.push(m[0]),$.push(m[0]);d.addClass("fc-limited").after(e(h)),a.push(d[0])}}S(this.colCnt),w.moreEls=e($),w.limitedEls=e(a)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,n){var r=this,i=this.view;return e('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(o){var a=i.opt("eventLimitClick"),s=t.start,l=e(this),u=r.getCellDayEl(t),c=r.getCellSegs(t),f=r.resliceDaySegs(c,s),d=r.resliceDaySegs(n,s);"function"==typeof a&&(a=i.trigger("eventLimitClick",null,{date:s,dayEl:u,moreEl:l,segs:f,hiddenSegs:d},o)),"popover"===a?r.showSegPopover(t,l,f):"string"==typeof a&&i.calendar.zoomTo(s,a)})},showSegPopover:function(e,t,n){var r,i,o=this,a=this.view,s=t.parent();r=1==this.rowCnt?a.el:this.rowEls.eq(e.row),i={className:"fc-more-popover",content:this.renderSegPopoverContent(e,n),parentEl:this.el,top:r.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}},this.isRTL?i.right=s.offset().left+s.outerWidth()+1:i.left=s.offset().left-1,this.segPopover=new we(i),this.segPopover.show()},renderSegPopoverContent:function(t,n){var r,i=this.view,o=i.opt("theme"),a=t.start.format(i.opt("dayPopoverFormat")),s=e('<div class="fc-header '+i.widgetHeaderClass+'"><span class="fc-close '+(o?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+V(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+i.widgetContentClass+'"><div class="fc-event-container"></div></div>'),l=s.find(".fc-event-container");for(n=this.renderFgSegEls(n,!0),this.popoverSegs=n,r=0;r<n.length;r++)n[r].cell=t,l.append(n[r].el);return s},resliceDaySegs:function(t,n){var r=e.map(t,function(e){return e.event}),i=n.clone().stripTime(),o=i.clone().add(1,"days"),a={start:i,end:o};return t=this.eventsToSegs(r,function(e){var t=k(e,a);return t?[t]:[]}),this.sortSegs(t),t},getMoreLinkText:function(e){var t=this.view.opt("eventLimitText");return"function"==typeof t?t(e):"+"+e+" "+t},getCellSegs:function(e,t){for(var n,r=this.rowStructs[e.row].segMatrix,i=t||0,o=[];i<r.length;)(n=r[i][e.col])&&o.push(n),i++;return o}});var Ie=_e.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,colDates:null,labelFormat:null,labelInterval:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){_e.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr")},renderBusinessHours:function(){var e=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(e),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(e){return this.bgCellHtml(e)},slatRowHtml:function(){for(var e,n,r,i=this.view,o=this.isRTL,a="",s=t.duration(+this.minTime);s<this.maxTime;)e=this.start.clone().time(s),n=G(I(s,this.labelInterval)),r='<td class="fc-axis fc-time '+i.widgetContentClass+'" '+i.axisStyleAttr()+">"+(n?"<span>"+V(e.format(this.labelFormat))+"</span>":"")+"</td>",a+="<tr "+(n?"":'class="fc-minor"')+">"+(o?"":r)+'<td class="'+i.widgetContentClass+'"/>'+(o?r:"")+"</tr>",s.add(this.slotDuration);return a},processOptions:function(){var n,r=this.view,i=r.opt("slotDuration"),o=r.opt("snapDuration");i=t.duration(i),o=o?t.duration(o):i,this.slotDuration=i,this.snapDuration=o,this.cellDuration=o,this.minTime=t.duration(r.opt("minTime")),this.maxTime=t.duration(r.opt("maxTime")),n=r.opt("slotLabelFormat"),e.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||r.opt("axisFormat")||r.opt("smallTimeFormat"),n=r.opt("slotLabelInterval"),this.labelInterval=n?t.duration(n):this.computeLabelInterval(i)},computeLabelInterval:function(e){var n,r,i;for(n=Je.length-1;n>=0;n--)if(r=t.duration(Je[n]),G(i=I(r,e))&&i>1)return r;return t.duration(e)},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},rangeUpdated:function(){var e,t=this.view,n=[];for(e=this.start.clone();e.isBefore(this.end);)n.push(e.clone()),e.add(1,"day"),e=t.skipHiddenDays(e);this.isRTL&&n.reverse(),this.colDates=n,this.colCnt=n.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellDate:function(e){var t=this.colDates[e.col],n=this.computeSnapTime(e.row);return(t=this.view.calendar.rezoneDate(t)).time(n),t},getColEl:function(e){return this.dayEls.eq(e)},computeSnapTime:function(e){return t.duration(this.minTime+this.snapDuration*e)},rangeToSegs:function(e){var t,n,r,i,o=this.colCnt,a=[];for(e={start:e.start.clone().stripZone(),end:e.end.clone().stripZone()},n=0;n<o;n++)r=this.colDates[n],i={start:r.clone().time(this.minTime),end:r.clone().time(this.maxTime)},(t=k(e,i))&&(t.col=n,a.push(t));return a},updateSize:function(e){this.computeSlatTops(),e&&this.updateSegVerticals()},computeRowCoords:function(){var e,t,n=this.el.offset().top,r=[];for(e=0;e<this.rowCnt;e++)t={top:n+this.computeTimeTop(this.computeSnapTime(e))},e>0&&(r[e-1].bottom=t.top),r.push(t);return t.bottom=t.top+this.computeTimeTop(this.computeSnapTime(e)),r},computeDateTop:function(e,n){return this.computeTimeTop(t.duration(e.clone().stripZone()-n.clone().stripTime()))},computeTimeTop:function(e){var t,n,r,i,o=(e-this.minTime)/this.slotDuration;return o=Math.max(0,o),o=Math.min(this.slatEls.length,o),t=Math.floor(o),n=o-t,r=this.slatTops[t],n?(i=this.slatTops[t+1],r+(i-r)*n):r},computeSlatTops:function(){var t,n=[];this.slatEls.each(function(r,i){t=e(i).position().top,n.push(t)}),n.push(t+this.slatEls.last().outerHeight()),this.slatTops=n},renderDrag:function(e,t){if(t)return this.renderRangeHelper(e,t),this.applyDragOpacity(this.helperEl),!0;this.renderHighlight(this.eventRangeToSegs(e))},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(e,t){this.renderRangeHelper(e,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(t,n){var r,i,o,a,s=this.eventsToSegs([t]);for(s=this.renderFgSegEls(s),r=this.renderSegTable(s),i=0;i<s.length;i++)o=s[i],n&&n.col===o.col&&(a=n.el,o.el.css({left:a.css("left"),right:a.css("right"),"margin-left":a.css("margin-left"),"margin-right":a.css("margin-right")}));this.helperEl=e('<div class="fc-helper-skeleton"/>').append(r).appendTo(this.el)},unrenderHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderRangeHelper(e):this.renderHighlight(this.selectionRangeToSegs(e))},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderFill:function(t,n,r){var i,o,a,s,l,u,c,f,d,p;if(n.length){for(n=this.renderFillSegEls(t,n),i=this.groupSegCols(n),r=r||t.toLowerCase(),o=e('<div class="fc-'+r+'-skeleton"><table><tr/></table></div>'),a=o.find("tr"),s=0;s<i.length;s++)if(l=i[s],u=e("<td/>").appendTo(a),l.length)for(c=e('<div class="fc-'+r+'-container"/>').appendTo(u),f=this.colDates[s],d=0;d<l.length;d++)p=l[d],c.append(p.el.css({top:this.computeDateTop(p.start,f),bottom:-this.computeDateTop(p.end,f)}));this.bookendCells(a,t),this.el.append(o),this.elsByFill[t]=o}return n}});function Fe(e){var t,n,r=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<r.length;t++)Fe(n=r[t]),i=Math.max(i,1+n.forwardPressure);e.forwardPressure=i}}function Re(e,t,n){n=n||[];for(var r=0;r<t.length;r++)i=e,o=t[r],i.bottom>o.top&&i.top<o.bottom&&n.push(t[r]);var i,o;return n}Ie.mixin({eventSkeletonEl:null,renderFgSegs:function(t){return t=this.renderFgSegEls(t),this.el.append(this.eventSkeletonEl=e('<div class="fc-content-skeleton"/>').append(this.renderSegTable(t))),t},unrenderFgSegs:function(e){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(t){var n,r,i,o,a,s,l=e("<table><tr/></table>"),u=l.find("tr");for(n=this.groupSegCols(t),this.computeSegVerticals(t),o=0;o<n.length;o++){for(a=n[o],this.placeSlotSegs(a),s=e('<div class="fc-event-container"/>'),r=0;r<a.length;r++)(i=a[r]).el.css(this.generateSegPositionCss(i)),i.bottom-i.top<30&&i.el.addClass("fc-short"),s.append(i.el);u.append(e("<td/>").append(s))}return this.bookendCells(u,"eventSkeleton"),l},placeSlotSegs:function(e){var t,n,r;if(this.sortSegs(e),function(e){var t,n,r,i,o;for(t=0;t<e.length;t++)for(n=e[t],r=0;r<n.length;r++)for((i=n[r]).forwardSegs=[],o=t+1;o<e.length;o++)Re(i,e[o],i.forwardSegs)}(t=function(e){var t,n,r,i=[];for(t=0;t<e.length;t++){for(n=e[t],r=0;r<i.length&&Re(n,i[r]).length;r++);n.level=r,(i[r]||(i[r]=[])).push(n)}return i}(e)),n=t[0]){for(r=0;r<n.length;r++)Fe(n[r]);for(r=0;r<n.length;r++)this.computeSlotSegCoords(n[r],0,0)}},computeSlotSegCoords:function(e,t,n){var r,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSlotSegs(i),this.computeSlotSegCoords(i[0],t+1,n),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),r=0;r<i.length;r++)this.computeSlotSegCoords(i[r],0,e.forwardCoord)},updateSegVerticals:function(){var e,t=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(t),e=0;e<t.length;e++)t[e].el.css(this.generateSegVerticalCss(t[e]))},computeSegVerticals:function(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).top=this.computeDateTop(n.start,n.start),n.bottom=this.computeDateTop(n.end,n.start)},fgSegHtml:function(e,t){var n,r,i,o=this.view,a=e.event,s=o.isEventDraggable(a),l=!t&&e.isStart&&o.isEventResizableFromStart(a),u=!t&&e.isEnd&&o.isEventResizableFromEnd(a),c=this.getSegClasses(e,s,l||u),f=W(this.getEventSkinCss(a));return c.unshift("fc-time-grid-event","fc-v-event"),o.isMultiDayEvent(a)?(e.isStart||e.isEnd)&&(n=this.getEventTimeText(e),r=this.getEventTimeText(e,"LT"),i=this.getEventTimeText(e,null,!1)):(n=this.getEventTimeText(a),r=this.getEventTimeText(a,"LT"),i=this.getEventTimeText(a,null,!1)),'<a class="'+c.join(" ")+'"'+(a.url?' href="'+V(a.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+V(i)+'" data-full="'+V(r)+'"><span>'+V(n)+"</span></div>":"")+(a.title?'<div class="fc-title">'+V(a.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(u?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},generateSegPositionCss:function(e){var t,n,r=this.view.opt("slotEventOverlap"),i=e.backwardCoord,o=e.forwardCoord,a=this.generateSegVerticalCss(e);return r&&(o=Math.min(1,i+2*(o-i))),this.isRTL?(t=1-o,n=i):(t=i,n=1-o),a.zIndex=e.level+1,a.left=100*t+"%",a.right=100*n+"%",r&&e.forwardPressure&&(a[this.isRTL?"marginLeft":"marginRight"]=20),a},generateSegVerticalCss:function(e){return{top:e.top,bottom:-e.bottom}},groupSegCols:function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},sortForwardSlotSegs:function(e){e.sort(X(this,"compareForwardSlotSegs"))},compareForwardSlotSegs:function(e,t){return t.forwardPressure-e.forwardPressure||(e.backwardCoord||0)-(t.backwardCoord||0)||this.compareSegs(e,t)}});var Pe=n.View=ye.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,displaying:null,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,eventOrderSpecs:null,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(e,n,r,i){this.calendar=e,this.type=this.name=n,this.options=r,this.intervalDuration=i||t.duration(1,"day"),this.nextDayThreshold=t.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.eventOrderSpecs=S(this.opt("eventOrder")),this.documentMousedownProxy=X(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(e){return this.options[e]},trigger:function(e,t){var n=this.calendar;return n.trigger.apply(n,[e,t||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(e){this.setRange(this.computeRange(e))},setRange:function(t){e.extend(this,t),this.updateTitle()},computeRange:function(e){var t,n,r=M(this.intervalDuration),i=e.clone().startOf(r),o=i.clone().add(this.intervalDuration);return/year|month|week|day/.test(r)?(i.stripTime(),o.stripTime()):(i.hasTime()||(i=this.calendar.rezoneDate(i)),o.hasTime()||(o=this.calendar.rezoneDate(o))),t=i.clone(),t=this.skipHiddenDays(t),n=o.clone(),n=this.skipHiddenDays(n,-1,!0),{intervalUnit:r,intervalStart:i,intervalEnd:o,start:t,end:n}},computePrevDate:function(e){return this.massageCurrentDate(e.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(e){return this.massageCurrentDate(e.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(e,t){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(e)&&(e=this.skipHiddenDays(e,t)).startOf("day"),e},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(e,t,n){var r=e.end;return r.hasTime()||(r=r.clone().subtract(1)),pe(e.start,r,t,n,this.opt("isRTL"))},setElement:function(e){this.el=e,this.bindGlobalHandlers()},removeElement:function(){this.clear(),this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1),this.unbindGlobalHandlers(),this.el.remove()},display:function(t){var n=this,r=null;return this.displaying&&(r=this.queryScroll()),this.clear().then(function(){return n.displaying=e.when(n.displayView(t)).then(function(){n.forceScroll(n.computeInitialScroll(r)),n.triggerRender()})})},clear:function(){var t=this,n=this.displaying;return n?n.then(function(){return t.displaying=null,t.clearEvents(),t.clearView()}):e.when()},displayView:function(e){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0),this.setDate(e),this.render&&this.render(),this.renderDates(),this.updateSize(),this.renderBusinessHours()},clearView:function(){this.unselect(),this.triggerUnrender(),this.unrenderBusinessHours(),this.unrenderDates(),this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},renderBusinessHours:function(){},unrenderBusinessHours:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){e(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){e(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},updateSize:function(e){var t;e&&(t=this.queryScroll()),this.updateHeight(e),this.updateWidth(e),e&&this.setScroll(t)},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},computeScrollerHeight:function(e){var t,n,r=this.scrollerEl;return(t=this.el.add(r)).css({position:"relative",left:-1}),n=this.el.outerHeight()-r.height(),t.css({position:"",left:""}),e-n},computeInitialScroll:function(e){return 0},queryScroll:function(){if(this.scrollerEl)return this.scrollerEl.scrollTop()},setScroll:function(e){if(this.scrollerEl)return this.scrollerEl.scrollTop(e)},forceScroll:function(e){var t=this;this.setScroll(e),setTimeout(function(){t.setScroll(e)},0)},displayEvents:function(e){var t=this.queryScroll();this.clearEvents(),this.renderEvents(e),this.isEventsRendered=!0,this.setScroll(t),this.triggerEventRender()},clearEvents:function(){this.isEventsRendered&&(this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.isEventsRendered=!1)},renderEvents:function(e){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(e){this.trigger("eventAfterRender",e.event,e.event,e.el)}),this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach(function(e){this.trigger("eventDestroy",e.event,e.event,e.el)})},resolveEventEl:function(t,n){var r=this.trigger("eventRender",t,t,n);return!1===r?n=null:r&&!0!==r&&(n=e(r)),n},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var n,r=this.getEventSegs();for(n=0;n<r.length;n++)t&&r[n].event._id!==t._id||r[n].el&&e.call(this,r[n])},getEventSegs:function(){return[]},isEventDraggable:function(e){var t=e.source||{};return z(e.startEditable,t.startEditable,this.opt("eventStartEditable"),e.editable,t.editable,this.opt("editable"))},reportEventDrop:function(e,t,n,r,i){var o=this.calendar,a=o.mutateEvent(e,t,n);this.triggerEventDrop(e,a.dateDelta,function(){a.undo(),o.reportEventChange()},r,i),o.reportEventChange()},triggerEventDrop:function(e,t,n,r,i){this.trigger("eventDrop",r[0],e,t,n,i,{})},reportExternalDrop:function(t,n,r,i,o){var a,s,l=t.eventProps;l&&(a=e.extend({},l,n),s=this.calendar.renderEvent(a,t.stick)[0]),this.triggerExternalDrop(s,n,r,i,o)},triggerExternalDrop:function(e,t,n,r,i){this.trigger("drop",n[0],t.start,r,i),e&&this.trigger("eventReceive",null,e)},renderDrag:function(e,t){},unrenderDrag:function(){},isEventResizableFromStart:function(e){return this.opt("eventResizableFromStart")&&this.isEventResizable(e)},isEventResizableFromEnd:function(e){return this.isEventResizable(e)},isEventResizable:function(e){var t=e.source||{};return z(e.durationEditable,t.durationEditable,this.opt("eventDurationEditable"),e.editable,t.editable,this.opt("editable"))},reportEventResize:function(e,t,n,r,i){var o=this.calendar,a=o.mutateEvent(e,t,n);this.triggerEventResize(e,a.durationDelta,function(){a.undo(),o.reportEventChange()},r,i),o.reportEventChange()},triggerEventResize:function(e,t,n,r,i){this.trigger("eventResize",r[0],e,t,n,i,{})},select:function(e,t){this.unselect(t),this.renderSelection(e),this.reportSelection(e,t)},renderSelection:function(e){},reportSelection:function(e,t){this.isSelected=!0,this.triggerSelect(e,t)},triggerSelect:function(e,t){this.trigger("select",null,e.start,e.end,t)},unselect:function(e){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.trigger("unselect",null,e))},unrenderSelection:function(){},documentMousedown:function(t){var n;this.isSelected&&this.opt("unselectAuto")&&$(t)&&((n=this.opt("unselectCancel"))&&e(t.target).closest(n).length||this.unselect(t))},triggerDayClick:function(e,t,n){this.trigger("dayClick",t,e.start,n)},initHiddenDays:function(){var t,n=this.opt("hiddenDays")||[],r=[],i=0;for(!1===this.opt("weekends")&&n.push(0,6),t=0;t<7;t++)(r[t]=-1!==e.inArray(t,n))||i++;if(!i)throw"invalid hiddenDays";this.isHiddenDayHash=r},isHiddenDay:function(e){return t.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},skipHiddenDays:function(e,t,n){var r=e.clone();for(t=t||1;this.isHiddenDayHash[(r.day()+(n?t:0)+7)%7];)r.add(t,"days");return r},computeDayRange:function(e){var t,n=e.start.clone().stripTime(),r=e.end,i=null;return r&&(i=r.clone().stripTime(),(t=+r.time())&&t>=this.nextDayThreshold&&i.add(1,"days")),(!r||i<=n)&&(i=n.clone().add(1,"days")),{start:n,end:i}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1}}),Le=n.Calendar=ye.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:function(r,i){var o=this;o.initOptions(i||{});var a=this.options;o.render=function(){d?S()&&(T(),x()):(a.theme,r.addClass("fc"),a.isRTL?r.addClass("fc-rtl"):r.addClass("fc-ltr"),a.theme?r.addClass("ui-widget"):r.addClass("fc-unthemed"),d=e("<div class='fc-view-container'/>").prependTo(r),c=o.header=new function(t,n){var r=this;r.render=function(){var t=n.header;if(i=n.theme?"ui":"fc",t)return o=e("<div class='fc-toolbar'/>").append(s("left")).append(s("right")).append(s("center")).append('<div class="fc-clear"/>')},r.removeElement=function(){o.remove(),o=e()},r.updateTitle=function(e){o.find("h2").text(e)},r.activateButton=function(e){o.find(".fc-"+e+"-button").addClass(i+"-state-active")},r.deactivateButton=function(e){o.find(".fc-"+e+"-button").removeClass(i+"-state-active")},r.disableButton=function(e){o.find(".fc-"+e+"-button").attr("disabled","disabled").addClass(i+"-state-disabled")},r.enableButton=function(e){o.find(".fc-"+e+"-button").removeAttr("disabled").removeClass(i+"-state-disabled")},r.getViewsWithButtons=function(){return a};var i,o=e(),a=[];function s(r){var o=e('<div class="fc-'+r+'"/>'),s=n.header[r];return s&&e.each(s.split(" "),function(r){var s,l=e(),u=!0;e.each(this.split(","),function(r,o){var s,c,f,d,p,h,g,m,v;"title"==o?(l=l.add(e("<h2>&nbsp;</h2>")),u=!1):((s=(t.options.customButtons||{})[o])?(f=function(e){s.click&&s.click.call(v[0],e)},d="",p=s.text):(c=t.getViewSpec(o))?(f=function(){t.changeView(o)},a.push(o),d=c.buttonTextOverride,p=c.buttonTextDefault):t[o]&&(f=function(){t[o]()},d=(t.overrides.buttonText||{})[o],p=n.buttonText[o]),f&&(h=s?s.themeIcon:n.themeButtonIcons[o],g=s?s.icon:n.buttonIcons[o],m=d?V(d):h&&n.theme?"<span class='ui-icon ui-icon-"+h+"'></span>":g&&!n.theme?"<span class='fc-icon fc-icon-"+g+"'></span>":V(p),v=e('<button type="button" class="'+["fc-"+o+"-button",i+"-button",i+"-state-default"].join(" ")+'">'+m+"</button>").click(function(e){v.hasClass(i+"-state-disabled")||(f(e),(v.hasClass(i+"-state-active")||v.hasClass(i+"-state-disabled"))&&v.removeClass(i+"-state-hover"))}).mousedown(function(){v.not("."+i+"-state-active").not("."+i+"-state-disabled").addClass(i+"-state-down")}).mouseup(function(){v.removeClass(i+"-state-down")}).hover(function(){v.not("."+i+"-state-active").not("."+i+"-state-disabled").addClass(i+"-state-hover")},function(){v.removeClass(i+"-state-hover").removeClass(i+"-state-down")}),l=l.add(v)))}),u&&l.first().addClass(i+"-corner-left").end().last().addClass(i+"-corner-right").end(),l.length>1?(s=e("<div/>"),u&&s.addClass("fc-button-group"),s.append(l),o.append(s)):o.append(l)}),o}}(o,a),(f=c.render())&&r.prepend(f),x(a.defaultView),a.handleWindowResize&&(g=Z(_,a.windowResizeDelay),e(window).resize(g)))},o.destroy=function(){p&&p.removeElement(),c.removeElement(),d.remove(),r.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),g&&e(window).unbind("resize",g)},o.refetchEvents=function(){N(),p.clearEvents(),I(),M()},o.reportEvents=function(e){E=e,A()},o.reportEventChange=function(){A()},o.rerenderEvents=A,o.changeView=x,o.select=function(e,t){p.select(o.buildSelectRange.apply(o,arguments))},o.unselect=function(){p&&p.unselect()},o.prev=function(){m=p.computePrevDate(m),x()},o.next=function(){m=p.computeNextDate(m),x()},o.prevYear=function(){m.add(-1,"years"),x()},o.nextYear=function(){m.add(1,"years"),x()},o.today=function(){m=o.getNow(),x()},o.gotoDate=function(e){m=o.moment(e),x()},o.incrementDate=function(e){m.add(t.duration(e)),x()},o.zoomTo=function(e,t){var n;t=t||"day",n=o.getViewSpec(t)||o.getUnitViewSpec(t),m=e,x(n?n.type:null)},o.getDate=function(){return m.clone()},o.getCalendar=function(){return o},o.getView=function(){return p},o.option=function(e,t){if(void 0===t)return a[e];"height"!=e&&"contentHeight"!=e&&"aspectRatio"!=e||(a[e]=t,C(!0))},o.trigger=function(e,t){var n=Array.prototype.slice.call(arguments,2);if(t=t||b,this.triggerWith(e,t,n),a[e])return a[e].apply(t,n)};var s,l=j(Ve(a.lang));if(a.monthNames&&(l._months=a.monthNames),a.monthNamesShort&&(l._monthsShort=a.monthNamesShort),a.dayNames&&(l._weekdays=a.dayNames),a.dayNamesShort&&(l._weekdaysShort=a.dayNamesShort),null!=a.firstDay){var u=j(l._week);u.dow=a.firstDay,l._week=u}l._fullCalendar_weekCalc="function"==typeof(s=a.weekNumberCalculation)?s:"local"===s?s:"iso"===s||"ISO"===s?"ISO":void 0,o.defaultAllDayEventDuration=t.duration(a.defaultAllDayEventDuration),o.defaultTimedEventDuration=t.duration(a.defaultTimedEventDuration),o.moment=function(){var e;return"local"===a.timezone?(e=n.moment.apply(null,arguments)).hasTime()&&e.local():e="UTC"===a.timezone?n.moment.utc.apply(null,arguments):n.moment.parseZone.apply(null,arguments),"_locale"in e?e._locale=l:e._lang=l,e},o.getIsAmbigTimezone=function(){return"local"!==a.timezone&&"UTC"!==a.timezone},o.rezoneDate=function(e){return o.moment(e.toArray())},o.getNow=function(){var e=a.now;return"function"==typeof e&&(e=e()),o.moment(e)},o.getEventEnd=function(e){return e.end?e.end.clone():o.getDefaultEventEnd(e.allDay,e.start)},o.getDefaultEventEnd=function(e,t){var n=t.clone();return e?n.stripTime().add(o.defaultAllDayEventDuration):n.add(o.defaultTimedEventDuration),o.getIsAmbigTimezone()&&n.stripZone(),n},o.humanizeDuration=function(e){return(e.locale||e.lang).call(e,a.lang).humanize()},function(r){var i=this;i.isFetchNeeded=function(e,t){return!o||e.clone().stripZone()<o.clone().stripZone()||t.clone().stripZone()>a.clone().stripZone()},i.fetchEvents=function(e,t){o=e,a=t,d=[];var n=++c,r=u.length;f=r;for(var i=0;i<r;i++)p(u[i],n)},i.addEventSource=function(e){var t=h(e);t&&(u.push(t),f++,p(t,c))},i.removeEventSource=function(t){u=e.grep(u,function(e){return!g(e,t)}),d=e.grep(d,function(e){return!g(e.source,t)}),s(d)},i.updateEvent=function(t){t.start=i.moment(t.start),t.end?t.end=i.moment(t.end):t.end=null,C(t,function(t){var n={};return e.each(t,function(t,r){v(t)&&void 0!==r&&function(t){return/undefined|null|boolean|number|string/.test(e.type(t))}(r)&&(n[t]=r)}),n}(t)),s(d)},i.renderEvent=function(e,t){var n,r,i,o=b(e);if(o){for(n=x(o),r=0;r<n.length;r++)(i=n[r]).source||(t&&(l.events.push(i),i.source=l),d.push(i));return s(d),n}return[]},i.removeEvents=function(t){var n,r;for(null==t?t=function(){return!0}:e.isFunction(t)||(n=t+"",t=function(e){return e._id==n}),d=e.grep(d,t,!0),r=0;r<u.length;r++)e.isArray(u[r].events)&&(u[r].events=e.grep(u[r].events,t,!0));s(d)},i.clientEvents=y,i.mutateEvent=C,i.normalizeEventRange=$,i.normalizeEventRangeTimes=E,i.ensureVisibleEventRange=S;var o,a,s=i.reportEvents,l={events:[]},u=[l],c=0,f=0,d=[];function p(t,l){!function t(s,l){var u,c,f=n.sourceFetchers;for(u=0;u<f.length;u++){if(!0===(c=f[u].call(i,s,o.clone(),a.clone(),r.timezone,l)))return;if("object"==typeof c)return void t(c,l)}var d=s.events;if(d)e.isFunction(d)?(i.pushLoading(),d.call(i,o.clone(),a.clone(),r.timezone,function(e){l(e),i.popLoading()})):e.isArray(d)?l(d):l();else{var p=s.url;if(p){var h,g=s.success,m=s.error,v=s.complete;h=e.isFunction(s.data)?s.data():s.data;var y=e.extend({},h||{}),b=z(s.startParam,r.startParam),w=z(s.endParam,r.endParam),$=z(s.timezoneParam,r.timezoneParam);b&&(y[b]=o.format()),w&&(y[w]=a.format()),r.timezone&&"local"!=r.timezone&&(y[$]=r.timezone),i.pushLoading(),e.ajax(e.extend({},Ye,s,{data:y,success:function(t){t=t||[];var n=H(g,this,arguments);e.isArray(n)&&(t=n),l(t)},error:function(){H(m,this,arguments),l()},complete:function(){H(v,this,arguments),i.popLoading()}}))}else l()}}(t,function(n){var r,i,o,a=e.isArray(t.events);if(l==c){if(n)for(r=0;r<n.length;r++)i=n[r],(o=a?i:b(i,t))&&d.push.apply(d,x(o));--f||s(d)}})}function h(t){var r,o,a=n.sourceNormalizers;if(e.isFunction(t)||e.isArray(t)?r={events:t}:"string"==typeof t?r={url:t}:"object"==typeof t&&(r=e.extend({},t)),r){for(r.className?"string"==typeof r.className&&(r.className=r.className.split(/\s+/)):r.className=[],e.isArray(r.events)&&(r.origArray=r.events,r.events=e.map(r.events,function(e){return b(e,r)})),o=0;o<a.length;o++)a[o].call(i,r);return r}}function g(e,t){return e&&t&&m(e)==m(t)}function m(e){return("object"==typeof e?e.origArray||e.googleCalendarId||e.url||e.events:null)||e}function v(e){return!/^_|^(id|allDay|start|end)$/.test(e)}function y(t){return e.isFunction(t)?e.grep(d,t):null!=t?(t+="",e.grep(d,function(e){return e._id==t})):d}function b(n,o){var a,s,l,u={};if(r.eventDataTransform&&(n=r.eventDataTransform(n)),o&&o.eventDataTransform&&(n=o.eventDataTransform(n)),e.extend(u,n),o&&(u.source=o),u._id=n._id||(void 0===n.id?"_fc"+We++:n.id+""),n.className?"string"==typeof n.className?u.className=n.className.split(/\s+/):u.className=n.className:u.className=[],a=n.start||n.date,s=n.end,R(a)&&(a=t.duration(a)),R(s)&&(s=t.duration(s)),n.dow||t.isDuration(a)||t.isDuration(s))u.start=a?t.duration(a):null,u.end=s?t.duration(s):null,u._recurring=!0;else{if(a&&!(a=i.moment(a)).isValid())return!1;s&&((s=i.moment(s)).isValid()||(s=null)),void 0===(l=n.allDay)&&(l=z(o?o.allDayDefault:void 0,r.allDayDefault)),w(a,s,l,u)}return u}function w(e,t,n,r){r.start=e,r.end=t,r.allDay=n,$(r),qe(r)}function $(e){E(e),e.end&&!e.end.isAfter(e.start)&&(e.end=null),e.end||(r.forceEventDuration?e.end=i.getDefaultEventEnd(e.allDay,e.start):e.end=null)}function E(e){null==e.allDay&&(e.allDay=!(e.start.hasTime()||e.end&&e.end.hasTime())),e.allDay?(e.start.stripTime(),e.end&&e.end.stripTime()):(e.start.hasTime()||(e.start=i.rezoneDate(e.start)),e.end&&!e.end.hasTime()&&(e.end=i.rezoneDate(e.end)))}function S(t){var n;return t.end||(null==(n=t.allDay)&&(n=!t.start.hasTime()),(t=e.extend({},t)).end=i.getDefaultEventEnd(n,t.start)),t}function x(t,n,r){var i,s,l,u,c,f,d,p,h,g=[];if(n=n||o,r=r||a,t)if(t._recurring){if(s=t.dow)for(i={},l=0;l<s.length;l++)i[s[l]]=!0;for(u=n.clone().stripTime();u.isBefore(r);)i&&!i[u.day()]||(c=t.start,f=t.end,d=u.clone(),p=null,c&&(d=d.time(c)),f&&(p=u.clone().time(f)),h=e.extend({},t),w(d,p,!c&&!f,h),g.push(h)),u.add(1,"days")}else g.push(t);return g}function C(n,r,o){var a,s,l,u,c,f,d={};function p(e,n){return o?D(e,n,o):r.allDay?(i=e,a=n,t.duration({days:i.clone().stripTime().diff(a.clone().stripTime(),"days")})):O(e,n);var i,a}return(r=r||{}).start||(r.start=n.start.clone()),void 0===r.end&&(r.end=n.end?n.end.clone():null),null==r.allDay&&(r.allDay=n.allDay),$(r),$(a={start:n._start.clone(),end:n._end?n._end.clone():i.getDefaultEventEnd(n._allDay,n._start),allDay:r.allDay}),s=null!==n._end&&null===r.end,l=p(r.start,a.start),r.end?(u=p(r.end,a.end),c=u.subtract(l)):c=null,e.each(r,function(e,t){v(e)&&void 0!==t&&(d[e]=t)}),f=function(t,n,r,o,a,s){var l=i.getIsAmbigTimezone(),u=[];return o&&!o.valueOf()&&(o=null),a&&!a.valueOf()&&(a=null),e.each(t,function(t,c){var f,d;f={start:c.start.clone(),end:c.end?c.end.clone():null,allDay:c.allDay},e.each(s,function(e){f[e]=c[e]}),$(d={start:c._start,end:c._end,allDay:r}),n?d.end=null:a&&!d.end&&(d.end=i.getDefaultEventEnd(d.allDay,d.start)),o&&(d.start.add(o),d.end&&d.end.add(o)),a&&d.end.add(a),l&&!d.allDay&&(o||a)&&(d.start.stripZone(),d.end&&d.end.stripZone()),e.extend(c,s,d),qe(c),u.push(function(){e.extend(c,f),qe(c)})}),function(){for(var e=0;e<u.length;e++)u[e]()}}(y(n._id),s,r.allDay,l,c,d),{dateDelta:l,durationDelta:c,undo:f}}function T(t){var n,o=r.businessHours,a=i.getView();return o&&(n=e.extend({},{className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},"object"==typeof o?o:{})),n?(t&&(n.start=null,n.end=null),x(b(n),a.start,a.end)):[]}function k(e,t){var n=t.source||{},i=z(t.constraint,n.constraint,r.eventConstraint),o=z(t.overlap,n.overlap,r.eventOverlap);return A(e=S(e),i,o,t)}function _(e){return A(e,r.selectConstraint,r.selectOverlap)}function A(t,n,r,o){var a,s,l,u,c,f,d;if((t=e.extend({},t)).start=t.start.clone().stripZone(),t.end=t.end.clone().stripZone(),null!=n){for(a="businessHours"===(d=n)?T():"object"==typeof d?x(b(d)):y(d),s=!1,u=0;u<a.length;u++)if(M(a[u],t)){s=!0;break}if(!s)return!1}for(l=i.getPeerEvents(o,t),u=0;u<l.length;u++)if(N(c=l[u],t)){if(!1===r)return!1;if("function"==typeof r&&!r(c,o))return!1;if(o){if(!1===(f=z(c.overlap,(c.source||{}).overlap)))return!1;if("function"==typeof f&&!f(o,c))return!1}}return!0}function M(e,t){var n=e.start.clone().stripZone(),r=i.getEventEnd(e).stripZone();return t.start>=n&&t.end<=r}function N(e,t){var n=e.start.clone().stripZone(),r=i.getEventEnd(e).stripZone();return t.start<r&&t.end>n}e.each((r.events?[r.events]:[]).concat(r.eventSources||[]),function(e,t){var n=h(t);n&&u.push(n)}),i.getBusinessHoursEvents=T,i.isEventRangeAllowed=k,i.isSelectionRangeAllowed=_,i.isExternalDropRangeAllowed=function(t,n){var r,i;return n&&(r=e.extend({},n,t),i=x(b(r))[0]),i?k(t,i):_(t=S(t))},i.getEventCache=function(){return d}}.call(o,a);var c,f,d,p,h,g,m,v=o.isFetchNeeded,y=o.fetchEvents,b=r[0],w={},$=0,E=[];function S(){return r.is(":visible")}function x(t){$++,p&&t&&p.type!==t&&(c.deactivateButton(p.type),N(),p.removeElement(),p=o.view=null),!p&&t&&((p=o.view=w[t]||(w[t]=o.instantiateView(t))).setElement(e("<div class='fc-view fc-"+t+"-view' />").appendTo(d)),c.activateButton(t)),p&&(m=p.massageCurrentDate(m),p.displaying&&m.isWithin(p.intervalStart,p.intervalEnd)||S()&&(N(),p.display(m),I(),c.updateTitle(p.title),o.getNow().isWithin(p.intervalStart,p.intervalEnd)?c.disableButton("today"):c.enableButton("today"),!a.lazyFetching||v(p.start,p.end)?M():A())),I(),$--}function C(e){if(S())return e&&k(),$++,p.updateSize(!0),$--,!0}function T(){S()&&k()}function k(){h="number"==typeof a.contentHeight?a.contentHeight:"number"==typeof a.height?a.height-(f?f.outerHeight(!0):0):Math.round(d.width()/Math.max(a.aspectRatio,.5))}function _(e){!$&&e.target===window&&p.start&&C(!0)&&p.trigger("windowResize",b)}function A(){S()&&(N(),p.displayEvents(E),I())}function M(){y(p.start,p.end)}function N(){d.css({width:"100%",height:d.height(),overflow:"hidden"})}function I(){d.css({width:"",height:"",overflow:""})}m=null!=a.defaultDate?o.moment(a.defaultDate):o.getNow(),o.getSuggestedViewHeight=function(){return void 0===h&&T(),h},o.isHeightAuto=function(){return"auto"===a.contentHeight||"auto"===a.height},o.initialize()},initialize:function(){},initOptions:function(t){var n,r,a,s;t=function(t){var n,r={views:t.views||{}};return e.each(t,function(t,o){"views"!=t&&(e.isPlainObject(o)&&!/(time|duration|interval)$/i.test(t)&&-1==e.inArray(t,i)?(n=null,e.each(o,function(e,i){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(e)?(r.views[e]||(r.views[e]={}),r.views[e][t]=i):(n||(n={}),n[e]=i)}),n&&(r[t]=n)):r[t]=o)}),r}(t),n=t.lang,(r=je[n])||(n=Le.defaults.lang,r=je[n]||{}),a=z(t.isRTL,r.isRTL,Le.defaults.isRTL),s=a?Le.rtlDefaults:{},this.dirDefaults=s,this.langDefaults=r,this.overrides=t,this.options=o([Le.defaults,s,r,t]),ze(this.options),this.viewSpecCache={}},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(t){var r,i,o;if(-1!=e.inArray(t,A))for(r=this.header.getViewsWithButtons(),e.each(n.views,function(e){r.push(e)}),i=0;i<r.length;i++)if((o=this.getViewSpec(r[i]))&&o.singleUnit==t)return o},buildViewSpec:function(e){for(var n,i,a,s,l=this.overrides.views||{},u=[],c=[],f=[],d=e;d;)n=r[d],i=l[d],d=null,"function"==typeof n&&(n={class:n}),n&&(u.unshift(n),c.unshift(n.defaults||{}),a=a||n.duration,d=d||n.type),i&&(f.unshift(i),a=a||i.duration,d=d||i.type);return(n=L(u)).type=e,!!n.class&&(a&&(a=t.duration(a)).valueOf()&&(n.duration=a,s=M(a),1===a.as(s)&&(n.singleUnit=s,f.unshift(l[s]||{}))),n.defaults=o(c),n.overrides=o(f),this.buildViewSpecOptions(n),this.buildViewSpecButtonText(n,e),n)},buildViewSpecOptions:function(e){e.options=o([Le.defaults,e.defaults,this.dirDefaults,this.langDefaults,this.overrides,e.overrides]),ze(e.options)},buildViewSpecButtonText:function(e,t){function n(n){var r=n.buttonText||{};return r[t]||(e.singleUnit?r[e.singleUnit]:null)}e.buttonTextOverride=n(this.overrides)||e.overrides.buttonText,e.buttonTextDefault=n(this.langDefaults)||n(this.dirDefaults)||e.defaults.buttonText||n(Le.defaults)||(e.duration?this.humanizeDuration(e.duration):null)||t},instantiateView:function(e){var t=this.getViewSpec(e);return new t.class(this,e,t.options,t.duration)},isValidViewType:function(e){return Boolean(this.getViewSpec(e))},pushLoading:function(){this.loadingLevel++||this.trigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.trigger("loading",null,!1,this.view)},buildSelectRange:function(e,t){return e=this.moment(e),t=t?this.moment(t):e.hasTime()?e.clone().add(this.defaultTimedEventDuration):e.clone().add(this.defaultAllDayEventDuration),{start:e,end:t}}});Le.mixin(be),Le.defaults={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Le.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},Le.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var je=n.langs={};n.datepickerLang=function(t,n,r){var i=je[t]||(je[t]={});i.isRTL=r.isRTL,i.weekNumberTitle=r.weekHeader,e.each(Ue,function(e,t){i[e]=t(r)}),e.datepicker&&(e.datepicker.regional[n]=e.datepicker.regional[t]=r,e.datepicker.regional.en=e.datepicker.regional[""],e.datepicker.setDefaults(r))},n.lang=function(t,n){var r,i;r=je[t]||(je[t]={}),n&&(r=je[t]=o([r,n])),i=Ve(t),e.each(Be,function(e,t){null==r[e]&&(r[e]=t(i,r))}),Le.defaults.lang=t};var Ue={buttonText:function(e){return{prev:Y(e.prevText),next:Y(e.nextText),today:Y(e.currentText)}},monthYearFormat:function(e){return e.showMonthAfterYear?"YYYY["+e.yearSuffix+"] MMMM":"MMMM YYYY["+e.yearSuffix+"]"}},Be={dayOfMonthFormat:function(e,t){var n=e.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(e){return e.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},He={smallDayDateFormat:function(e){return e.isRTL?"D dd":"dd D"},weekFormat:function(e){return e.isRTL?"w[ "+e.weekNumberTitle+"]":"["+e.weekNumberTitle+" ]w"},smallWeekFormat:function(e){return e.isRTL?"w["+e.weekNumberTitle+"]":"["+e.weekNumberTitle+"]w"}};function ze(t){e.each(He,function(e,n){null==t[e]&&(t[e]=n(t))})}function Ve(e){var n=t.localeData||t.langData;return n.call(t,e)||n.call(t,"en")}n.lang("en",Le.englishDefaults),n.sourceNormalizers=[],n.sourceFetchers=[];var Ye={dataType:"json",cache:!1},We=1;function qe(e){e._allDay=e.allDay,e._start=e.start.clone(),e._end=e.end?e.end.clone():null}Le.prototype.getPeerEvents=function(e,t){var n,r,i=this.getEventCache(),o=[];for(n=0;n<i.length;n++)r=i[n],e&&e._id===r._id||o.push(r);return o};var Ke=Pe.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new De(this),this.coordMap=this.dayGrid.coordMap},setRange:function(e){Pe.prototype.setRange.call(this,e),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(e)},computeRange:function(e){var t=Pe.prototype.computeRange.call(this,e);return/year|month/.test(t.intervalUnit)&&(t.start.startOf("week"),t.start=this.skipHiddenDays(t.start),t.end.weekday()&&(t.end.add(1,"week").startOf("week"),t.end=this.skipHiddenDays(t.end,-1,!0))),t},renderDates:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(this.hasRigidRows())},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){if(this.weekNumbersVisible)return'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+V(this.opt("weekNumberTitle"))+"</span></th>"},numberIntroHtml:function(e){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(e,0).start.format("w")+"</span></td>"},dayIntroHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>"},introHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>"},numberCellHtml:function(e){var t,n=e.start;return this.dayNumbersVisible?((t=this.dayGrid.getDayClasses(n)).unshift("fc-day-number"),'<td class="'+t.join(" ")+'" data-date="'+n.format()+'">'+n.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=d(this.el.find(".fc-week-number")))},setHeight:function(e,t){var n,r=this.opt("eventLimit");h(this.scrollerEl),s(this.headRowEl),this.dayGrid.removeSegPopover(),r&&"number"==typeof r&&this.dayGrid.limitRows(r),n=this.computeScrollerHeight(e),this.setGridHeight(n,t),r&&"number"!=typeof r&&this.dayGrid.limitRows(r),!t&&p(this.scrollerEl,n)&&(a(this.headRowEl,y(this.scrollerEl)),n=this.computeScrollerHeight(e),this.scrollerEl.height(n))},setGridHeight:function(e,t){t?f(this.dayGrid.rowEls):c(this.dayGrid.rowEls,e,!0)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),Ge=Ke.extend({computeRange:function(e){var t,n=Ke.prototype.computeRange.call(this,e);return this.isFixedWeeks()&&(t=Math.ceil(n.end.diff(n.start,"weeks",!0)),n.end.add(6-t,"weeks")),n},setGridHeight:function(e,t){(t=t||"variable"===this.opt("weekMode"))&&(e*=this.rowCnt/6),c(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){var e=this.opt("weekMode");return e?"fixed"===e:this.opt("fixedWeekCount")}});r.basic={class:Ke},r.basicDay={type:"basic",duration:{days:1}},r.basicWeek={type:"basic",duration:{weeks:1}},r.month={class:Ge,duration:{months:1},defaults:{fixedWeekCount:!0}};var Xe=Pe.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new Ie(this),this.opt("allDaySlot")?(this.dayGrid=new De(this),this.coordMap=new Ee([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(e){Pe.prototype.setRange.call(this,e),this.timeGrid.setRange(e),this.dayGrid&&this.dayGrid.setRange(e)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=e('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var e,t;return this.opt("weekNumbers")?(e=this.timeGrid.getCell(0).start,t=e.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+V(t)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||V(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(e){this.timeGrid.updateSize(e),Pe.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=d(this.el.find(".fc-axis"))},setHeight:function(e,t){var n,r;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),h(this.scrollerEl),s(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),(n=this.opt("eventLimit"))&&"number"!=typeof n&&(n=Ze),n&&this.dayGrid.limitRows(n)),t||(r=this.computeScrollerHeight(e),p(this.scrollerEl,r)?(a(this.noScrollRowEls,y(this.scrollerEl)),r=this.computeScrollerHeight(e),this.scrollerEl.height(r)):(this.scrollerEl.height(r).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var e=t.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(e);return(n=Math.ceil(n))&&n++,n},renderEvents:function(e){var t,n=[],r=[];for(t=0;t<e.length;t++)e[t].allDay?n.push(e[t]):r.push(e[t]);this.timeGrid.renderEvents(r),this.dayGrid&&this.dayGrid.renderEvents(n),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents(),this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return e.start.hasTime()?this.timeGrid.renderDrag(e,t):this.dayGrid?this.dayGrid.renderDrag(e,t):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(e){e.start.hasTime()||e.end.hasTime()?this.timeGrid.renderSelection(e):this.dayGrid&&this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),Ze=5,Je=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];return r.agenda={class:Xe,defaults:{allDaySlot:!0,allDayText:"all-day",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},r.agendaDay={type:"agenda",duration:{days:1}},r.agendaWeek={type:"agenda",duration:{weeks:1}},n})?r.apply(t,i):r)||(e.exports=o)},Iw71:function(e,t,n){var r=n("0/R4"),i=n("dyZX").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},IzUq:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"J+6e":function(e,t,n){var r=n("I8a+"),i=n("K0xU")("iterator"),o=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},Jcmo:function(e,t,n){var r=n("XKFU"),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},JduL:function(e,t,n){n("Xtr8")("getOwnPropertyNames",function(){return n("e7yV").f})},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),i=n("ylqs"),o=n("dyZX").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},K5H5:function(e,t){angular.module("infinite-scroll",[]).value("THROTTLE_MILLISECONDS",null).directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(e,t,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(i,o,a){var s,l,u,c,f,d,p,h,g,m,v,y,b,w,$,E,S,x,C;return C=angular.element(t),w=null,$=null,u=null,c=null,v=!0,x=!1,S=null,l=!1,m=function(e){return e=e[0]||e,isNaN(e.offsetHeight)?e.document.documentElement.clientHeight:e.offsetHeight},y=function(e){if(e[0].getBoundingClientRect&&!e.css("none"))return e[0].getBoundingClientRect().top+b(e)},b=function(e){return e=e[0]||e,isNaN(window.pageYOffset)?e.document.documentElement.scrollTop:e.ownerDocument.defaultView.pageYOffset},g=function(){var t,r,a;return c===C?(t=m(c)+b(c[0].document.documentElement),a=y(o)+m(o)):(t=m(c),r=0,void 0!==y(c)&&(r=y(c)),a=y(o)-r+m(o)),x&&(a=m((o[0].ownerDocument||o[0].document).documentElement)),a-t<=m(c)*w+1?(u=!0,$?i.$$phase||e.$$phase?i.infiniteScroll():i.$apply(i.infiniteScroll):void 0):(l&&n.cancel(l),u=!1)},E=function(e,t){var r,i,o;return o=null,i=0,r=function(){return i=(new Date).getTime(),n.cancel(o),o=null,e.call()},function(){var a,s;return a=(new Date).getTime(),(s=t-(a-i))<=0?(n.cancel(o),o=null,i=a,e.call()):o?void 0:o=n(r,s,1)}},null!=r&&(g=E(g,r)),i.$on("$destroy",function(){if(c.unbind("scroll",g),null!=S&&(S(),S=null),l)return n.cancel(l)}),p=function(e){return w=parseFloat(e)||0},i.$watch("infiniteScrollDistance",p),p(i.infiniteScrollDistance),d=function(e){if(($=!e)&&u)return u=!1,g()},i.$watch("infiniteScrollDisabled",d),d(i.infiniteScrollDisabled),h=function(e){return x=e},i.$watch("infiniteScrollUseDocumentBottom",h),h(i.infiniteScrollUseDocumentBottom),(s=function(e){if(null!=c&&c.unbind("scroll",g),c=e,null!=e)return c.bind("scroll",g)})(C),i.infiniteScrollListenForEvent&&(S=e.$on(i.infiniteScrollListenForEvent,g)),f=function(e){if(null!=e&&0!==e.length){if(e.nodeType&&1===e.nodeType?e=angular.element(e):"function"==typeof e.append?e=angular.element(e[e.length-1]):"string"==typeof e&&(e=angular.element(document.querySelector(e))),null!=e)return s(e);throw new Error("invalid infinite-scroll-container attribute.")}},i.$watch("infiniteScrollContainer",f),f(i.infiniteScrollContainer||[]),null!=a.infiniteScrollParent&&s(angular.element(o.parent())),null!=a.infiniteScrollImmediateCheck&&(v=i.$eval(a.infiniteScrollImmediateCheck)),l=n(function(){return v&&g(),n.cancel(l)})}}}]),void 0!==e&&void 0!==t&&e.exports===t&&(e.exports="infinite-scroll")},KHwQ:function(e,t,n){n("IbG+"),e.exports=angular},KKXr:function(e,t,n){"use strict";var r=n("quPj"),i=n("y3w9"),o=n("69bn"),a=n("A5AN"),s=n("ne8i"),l=n("Xxuz"),u=n("Ugos"),c=n("eeVq"),f=Math.min,d=[].push,p=!c(function(){RegExp(4294967295,"y")});n("IU+Z")("split",2,function(e,t,n,c){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,c+"g");(o=u.call(h,i))&&!((a=h.lastIndex)>f&&(l.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&d.apply(l,o.slice(1)),s=o[0].length,f=a,l.length>=p));)h.lastIndex===o.index&&h.lastIndex++;return f===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(f)),l.length>p?l.slice(0,p):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):h.call(String(i),n,r)},function(e,t){var r=c(h,e,this,t,h!==n);if(r.done)return r.value;var u=i(e),d=String(this),g=o(u,RegExp),m=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(p?"y":"g"),y=new g(p?u:"^(?:"+u.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var w=0,$=0,E=[];$<d.length;){y.lastIndex=p?$:0;var S,x=l(y,p?d:d.slice($));if(null===x||(S=f(s(y.lastIndex+(p?0:$)),d.length))===w)$=a(d,$,m);else{if(E.push(d.slice(w,$)),E.length===b)return E;for(var C=1;C<=x.length-1;C++)if(E.push(x[C]),E.length===b)return E;$=w=S}}return E.push(d.slice(w)),E}]})},KroJ:function(e,t,n){var r=n("dyZX"),i=n("Mukb"),o=n("aagx"),a=n("ylqs")("src"),s=n("+lvF"),l=(""+s).split("toString");n("g3g5").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),i=n("FJW5"),o=n("4R4u"),a=n("YTvA")("IE_PROTO"),s=function(){},l=function(){var e,t=n("Iw71")("iframe"),r=o.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},L9s1:function(e,t,n){"use strict";var r=n("XKFU"),i=n("0sh+");r(r.P+r.F*n("UUeW")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},LI2k:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),e.extend(e.FE.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5}),e.FE.PLUGINS.image=function(t){var n,r,i,o,a,s,l="https://i.froala.com/upload",u=!1,c=1,f=2,d=3,p=4,h=5,g=6,m=8,v={};function y(){var e=t.popups.get("image.insert").find(".fr-image-by-url-layer input");e.val(""),n&&e.val(n.attr("src")),e.trigger("change")}function b(){var e=t.popups.get("image.edit");if(e||(e=O()),e){var n=ve();ye()&&(n=n.find(".fr-img-wrap")),t.popups.setContainer("image.edit",t.$sc),t.popups.refresh("image.edit");var r=n.offset().left+n.outerWidth()/2,i=n.offset().top+n.outerHeight();t.popups.show("image.edit",r,i,n.outerHeight())}}function w(){M()}function $(){for(var n,r,i="IMG"==t.el.tagName?[t.el]:t.el.querySelectorAll("img"),o=0;o<i.length;o++){var a=e(i[o]);!t.opts.htmlUntouched&&t.opts.useClasses?((t.opts.imageDefaultAlign||t.opts.imageDefaultDisplay)&&(0<(r=a).parents(".fr-img-caption").length&&(r=r.parents(".fr-img-caption:first")),r.hasClass("fr-dii")||r.hasClass("fr-dib")||(r.addClass("fr-fi"+de(r)[0]),r.addClass("fr-di"+pe(r)[0]),r.css("margin",""),r.css("float",""),r.css("display",""),r.css("z-index",""),r.css("position",""),r.css("overflow",""),r.css("vertical-align",""))),t.opts.imageTextNear||(0<a.parents(".fr-img-caption").length?a.parents(".fr-img-caption:first").removeClass("fr-dii").addClass("fr-dib"):a.removeClass("fr-dii").addClass("fr-dib"))):t.opts.htmlUntouched||t.opts.useClasses||(t.opts.imageDefaultAlign||t.opts.imageDefaultDisplay)&&(0<(n=a).parents(".fr-img-caption").length&&(n=n.parents(".fr-img-caption:first")),fe(n,n.hasClass("fr-dib")?"block":n.hasClass("fr-dii")?"inline":null,n.hasClass("fr-fil")?"left":n.hasClass("fr-fir")?"right":de(n)),n.removeClass("fr-dib fr-dii fr-fir fr-fil")),t.opts.iframe&&a.on("load",t.size.syncIframe)}}function E(n){void 0===n&&(n=!0);var r,i=Array.prototype.slice.call(t.el.querySelectorAll("img")),o=[];for(r=0;r<i.length;r++)if(o.push(i[r].getAttribute("src")),e(i[r]).toggleClass("fr-draggable",t.opts.imageMove),""===i[r].getAttribute("class")&&i[r].removeAttribute("class"),""===i[r].getAttribute("style")&&i[r].removeAttribute("style"),i[r].parentNode&&i[r].parentNode.parentNode&&t.node.hasClass(i[r].parentNode.parentNode,"fr-img-caption")){var s=i[r].parentNode.parentNode;t.browser.mozilla||s.setAttribute("contenteditable",!1),s.setAttribute("draggable",!1),s.classList.add("fr-draggable");var l=i[r].nextSibling;l&&l.setAttribute("contenteditable",!0)}if(a)for(r=0;r<a.length;r++)o.indexOf(a[r].getAttribute("src"))<0&&t.events.trigger("image.removed",[e(a[r])]);if(a&&n){var u=[];for(r=0;r<a.length;r++)u.push(a[r].getAttribute("src"));for(r=0;r<i.length;r++)u.indexOf(i[r].getAttribute("src"))<0&&t.events.trigger("image.loaded",[e(i[r])])}a=i}function S(){if(r||function(){var i;if(t.shared.$image_resizer?(r=t.shared.$image_resizer,o=t.shared.$img_overlay,t.events.on("destroy",function(){r.removeClass("fr-active").appendTo(e("body:first"))},!0)):(t.shared.$image_resizer=e('<div class="fr-image-resizer"></div>'),r=t.shared.$image_resizer,t.events.$on(r,"mousedown",function(e){e.stopPropagation()},!0),t.opts.imageResize&&(r.append(x("nw")+x("ne")+x("sw")+x("se")),t.shared.$img_overlay=e('<div class="fr-image-overlay"></div>'),o=t.shared.$img_overlay,i=r.get(0).ownerDocument,e(i).find("body:first").append(o))),t.events.on("shared.destroy",function(){r.html("").removeData().remove(),r=null,t.opts.imageResize&&(o.remove(),o=null)},!0),t.helpers.isMobile()||t.events.$on(e(t.o_win),"resize",function(){n&&!n.hasClass("fr-uploading")?se(!0):n&&(S(),he(),D(!1))}),t.opts.imageResize){i=r.get(0).ownerDocument,t.events.$on(r,t._mousedown,".fr-handler",T),t.events.$on(e(i),t._mousemove,k),t.events.$on(e(i.defaultView||i.parentWindow),t._mouseup,_),t.events.$on(o,"mouseleave",_);var a=1,s=null,l=0;t.events.on("keydown",function(r){if(n){var i=-1!=navigator.userAgent.indexOf("Mac OS X")?r.metaKey:r.ctrlKey,o=r.which;(o!==s||200<r.timeStamp-l)&&(a=1),(o==e.FE.KEYCODE.EQUALS||t.browser.mozilla&&o==e.FE.KEYCODE.FF_EQUALS)&&i&&!r.altKey?a=Z.call(this,r,1,1,a):(o==e.FE.KEYCODE.HYPHEN||t.browser.mozilla&&o==e.FE.KEYCODE.FF_HYPHEN)&&i&&!r.altKey?a=Z.call(this,r,2,-1,a):t.keys.ctrlKey(r)||o!=e.FE.KEYCODE.ENTER||(n.before("<br>"),I(n)),s=o,l=r.timeStamp}},!0),t.events.on("keyup",function(){a=1})}}(),!n)return!1;var i=t.$wp||t.$sc;i.append(r),r.data("instance",t);var a=i.scrollTop()-("static"!=i.css("position")?i.offset().top:0),s=i.scrollLeft()-("static"!=i.css("position")?i.offset().left:0);s-=t.helpers.getPX(i.css("border-left-width")),a-=t.helpers.getPX(i.css("border-top-width")),t.$el.is("img")&&t.$sc.is("body")&&(s=a=0);var l=ve();ye()&&(l=l.find(".fr-img-wrap")),r.css("top",(t.opts.iframe?l.offset().top:l.offset().top+a)-1).css("left",(t.opts.iframe?l.offset().left:l.offset().left+s)-1).css("width",l.get(0).getBoundingClientRect().width).css("height",l.get(0).getBoundingClientRect().height).addClass("fr-active")}function x(e){return'<div class="fr-handler fr-h'+e+'"></div>'}function C(e){ye()?n.parents(".fr-img-caption").css("width",e):n.css("width",e)}function T(a){if(!t.core.sameInstance(r))return!0;if(a.preventDefault(),a.stopPropagation(),t.$el.find("img.fr-error").left)return!1;t.undo.canDo()||t.undo.saveStep();var s=a.pageX||a.originalEvent.touches[0].pageX;if("mousedown"==a.type){var l=t.$oel.get(0).ownerDocument,u=l.defaultView||l.parentWindow,c=!1;try{c=u.location!=u.parent.location&&!(u.$&&u.$.FE)}catch(e){}c&&u.frameElement&&(s+=t.helpers.getPX(e(u.frameElement).offset().left)+u.frameElement.clientLeft)}(i=e(this)).data("start-x",s),i.data("start-width",n.width()),i.data("start-height",n.height());var f=n.width();if(t.opts.imageResizeWithPercent){var d=n.parentsUntil(t.$el,t.html.blockTagsQuery()).get(0)||t.el;f=(f/e(d).outerWidth()*100).toFixed(2)+"%"}C(f),o.show(),t.popups.hideAll(),ce()}function k(o){if(!t.core.sameInstance(r))return!0;var a;if(i&&n){if(o.preventDefault(),t.$el.find("img.fr-error").left)return!1;var s=o.pageX||(o.originalEvent.touches?o.originalEvent.touches[0].pageX:null);if(!s)return!1;var l=s-i.data("start-x"),u=i.data("start-width");if((i.hasClass("fr-hnw")||i.hasClass("fr-hsw"))&&(l=0-l),t.opts.imageResizeWithPercent){var c=n.parentsUntil(t.$el,t.html.blockTagsQuery()).get(0)||t.el;u=((u+l)/e(c).outerWidth()*100).toFixed(2),t.opts.imageRoundPercent&&(u=Math.round(u)),C(u+"%"),(a=ye()?(t.helpers.getPX(n.parents(".fr-img-caption").css("width"))/e(c).outerWidth()*100).toFixed(2):(t.helpers.getPX(n.css("width"))/e(c).outerWidth()*100).toFixed(2))===u||t.opts.imageRoundPercent||C(a+"%"),n.css("height","").removeAttr("height")}else u+l>=t.opts.imageMinWidth&&(C(u+l),a=ye()?t.helpers.getPX(n.parents(".fr-img-caption").css("width")):t.helpers.getPX(n.css("width"))),a!==u+l&&C(a),((n.attr("style")||"").match(/(^height:)|(; *height:)/)||n.attr("height"))&&(n.css("height",i.data("start-height")*n.width()/i.data("start-width")),n.removeAttr("height"));S(),t.events.trigger("image.resize",[me()])}}function _(e){if(!t.core.sameInstance(r))return!0;if(i&&n){if(e&&e.stopPropagation(),t.$el.find("img.fr-error").left)return!1;i=null,o.hide(),S(),b(),t.undo.saveStep(),t.events.trigger("image.resizeEnd",[me()])}}function A(e,r,i){t.edit.on(),n&&n.addClass("fr-error"),function(e){D();var n=t.popups.get("image.insert").find(".fr-image-progress-bar-layer");n.addClass("fr-error");var r=n.find("h3");r.text(e),t.events.disableBlur(),r.focus()}(t.language.translate("Something went wrong. Please try again.")),!n&&i&&J(i),t.events.trigger("image.error",[{code:e,message:v[e]},r,i])}function O(e){if(e)return t.$wp&&t.events.$on(t.$wp,"scroll",function(){n&&t.popups.isVisible("image.edit")&&(t.events.disableBlur(),I(n))}),!0;var r="";if(0<t.opts.imageEditButtons.length){r+='<div class="fr-buttons">',r+=t.button.buildList(t.opts.imageEditButtons);var i={buttons:r+="</div>"};return t.popups.create("image.edit",i)}return!1}function D(e){var r=t.popups.get("image.insert");if(r||(r=V()),r.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),r.find(".fr-image-progress-bar-layer").addClass("fr-active"),r.find(".fr-buttons").hide(),n){var i=ve();t.popups.setContainer("image.insert",t.$sc);var o=i.offset().left+i.width()/2,a=i.offset().top+i.height();t.popups.show("image.insert",o,a,i.outerHeight())}void 0===e&&N(t.language.translate("Uploading"),0)}function M(e){var r=t.popups.get("image.insert");if(r&&(r.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),r.find(".fr-image-progress-bar-layer").removeClass("fr-active"),r.find(".fr-buttons").show(),e||t.$el.find("img.fr-error").length)){if(t.events.focus(),t.$el.find("img.fr-error").length&&(t.$el.find("img.fr-error").remove(),t.undo.saveStep(),t.undo.run(),t.undo.dropRedo()),!t.$wp&&n){var i=n;se(!0),t.selection.setAfter(i.get(0)),t.selection.restore()}t.popups.hide("image.insert")}}function N(e,n){var r=t.popups.get("image.insert");if(r){var i=r.find(".fr-image-progress-bar-layer");i.find("h3").text(e+(n?" "+n+"%":"")),i.removeClass("fr-error"),n?(i.find("div").removeClass("fr-indeterminate"),i.find("div > span").css("width",n+"%")):i.find("div").addClass("fr-indeterminate")}}function I(e){ae.call(e.get(0))}function F(){var n=e(this);t.popups.hide("image.insert"),n.removeClass("fr-uploading"),n.next().is("br")&&n.next().remove(),I(n),t.events.trigger("image.loaded",[n])}function R(e,n,r,i,o){t.edit.off(),N(t.language.translate("Loading image")),n&&(e=t.helpers.sanitizeURL(e));var a=new Image;a.onload=function(){var n,a;if(i){t.undo.canDo()||i.hasClass("fr-uploading")||t.undo.saveStep();var s=i.data("fr-old-src");i.data("fr-image-pasted")&&(s=null),t.$wp?((n=i.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),s&&i.attr("src",s),i.replaceWith(n)):n=i;for(var l=n.get(0).attributes,u=0;u<l.length;u++){var c=l[u];0===c.nodeName.indexOf("data-")&&n.removeAttr(c.nodeName)}if(void 0!==r)for(a in r)r.hasOwnProperty(a)&&"link"!=a&&n.attr("data-"+a,r[a]);n.on("load",F),n.attr("src",e),t.edit.on(),E(!1),t.undo.saveStep(),t.events.disableBlur(),t.$el.blur(),t.events.trigger(s?"image.replaced":"image.inserted",[n,o])}else n=j(e,r,F),E(!1),t.undo.saveStep(),t.events.disableBlur(),t.$el.blur(),t.events.trigger("image.inserted",[n,o])},a.onerror=function(){A(c)},D(t.language.translate("Loading image")),a.src=e}function P(){A(p,this.response||this.responseText||this.responseXML)}function L(e){if(e.lengthComputable){var n=e.loaded/e.total*100|0;N(t.language.translate("Uploading"),n)}}function j(n,r,i){var o,a="";if(r&&void 0!==r)for(o in r)r.hasOwnProperty(o)&&"link"!=o&&(a+=" data-"+o+'="'+r[o]+'"');var s=t.opts.imageDefaultWidth;s&&"auto"!=s&&(s+=t.opts.imageResizeWithPercent?"%":"px");var l=e('<img src="'+n+'"'+a+(s?' style="width: '+s+';"':"")+">");fe(l,t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign),l.on("load",i),l.on("error",function(){e(this).addClass("fr-error"),A(m)}),t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.opts.imageSplitHTML?t.markers.split():t.markers.insert(),t.html.wrap();var u=t.$el.find(".fr-marker");return u.length?(u.parent().is("hr")&&u.parent().after(u),t.node.isLastSibling(u)&&u.parent().hasClass("fr-deletable")&&u.insertAfter(u.parent()),u.replaceWith(l)):t.$el.append(l),t.selection.clear(),l}function U(){t.edit.on(),M(!0)}function B(r,i){if(void 0!==r&&0<r.length){if(!1===t.events.trigger("image.beforeUpload",[r,i]))return!1;var o,a=r[0];if(null===t.opts.imageUploadURL||t.opts.imageUploadURL==l)return c=a,v=i||n,(y=new FileReader).addEventListener("load",function(){var e=y.result;if(y.result.indexOf("svg+xml")<0){for(var n=atob(y.result.split(",")[1]),r=[],i=0;i<n.length;i++)r.push(n.charCodeAt(i));e=window.URL.createObjectURL(new Blob([new Uint8Array(r)],{type:c.type})),t.image.insert(e,!1,null,v)}},!1),D(),y.readAsDataURL(c),!1;if(a.name||(a.name=(new Date).getTime()+"."+(a.type||"image/jpeg").replace(/image\//g,"")),a.size>t.opts.imageMaxSize)return A(h),!1;if(t.opts.imageAllowedTypes.indexOf(a.type.replace(/image\//g,""))<0)return A(g),!1;if(t.drag_support.formdata&&(o=t.drag_support.formdata?new FormData:null),o){var s;if(!1!==t.opts.imageUploadToS3)for(s in o.append("key",t.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(a.name||"untitled")),o.append("success_action_status","201"),o.append("X-Requested-With","xhr"),o.append("Content-Type",a.type),t.opts.imageUploadToS3.params)t.opts.imageUploadToS3.params.hasOwnProperty(s)&&o.append(s,t.opts.imageUploadToS3.params[s]);for(s in t.opts.imageUploadParams)t.opts.imageUploadParams.hasOwnProperty(s)&&o.append(s,t.opts.imageUploadParams[s]);o.append(t.opts.imageUploadParam,a,a.name);var u=t.opts.imageUploadURL;t.opts.imageUploadToS3&&(u=t.opts.imageUploadToS3.uploadURL?t.opts.imageUploadToS3.uploadURL:"https://"+t.opts.imageUploadToS3.region+".amazonaws.com/"+t.opts.imageUploadToS3.bucket),function(n,r,i,o){function a(){var i=e(this);i.off("load"),i.addClass("fr-uploading"),i.next().is("br")&&i.next().remove(),t.placeholder.refresh(),I(i),S(),D(),t.edit.off(),n.onload=function(){(function(n){N(t.language.translate("Loading image"));var r=this.status,i=this.response,o=this.responseXML,a=this.responseText;try{if(t.opts.imageUploadToS3)if(201==r){var s=function(n){try{var r=e(n).find("Location").text(),i=e(n).find("Key").text();return!1===t.events.trigger("image.uploadedToS3",[r,i,n],!0)?(t.edit.on(),!1):r}catch(e){return A(p,n),!1}}(o);s&&R(s,!1,[],n,i||o)}else A(p,i||o,n);else if(200<=r&&r<300){var l=function(e){try{if(!1===t.events.trigger("image.uploaded",[e],!0))return t.edit.on(),!1;var n=JSON.parse(e);return n.link?n:(A(f,e),!1)}catch(t){return A(p,e),!1}}(a);l&&R(l.link,!1,l,n,i||a)}else A(d,i||a,n)}catch(e){A(p,i||a,n)}}).call(n,i)},n.onerror=P,n.upload.onprogress=L,n.onabort=U,i.off("abortUpload").on("abortUpload",function(){4!=n.readyState&&n.abort()}),n.send(r)}var s=new FileReader;s.addEventListener("load",function(){var e=s.result;if(s.result.indexOf("svg+xml")<0){for(var n=atob(s.result.split(",")[1]),r=[],i=0;i<n.length;i++)r.push(n.charCodeAt(i));e=window.URL.createObjectURL(new Blob([new Uint8Array(r)],{type:"image/jpeg"}))}o?(o.on("load",a),o.one("error",function(){o.off("load"),o.attr("src",o.data("fr-old-src")),A(m)}),t.edit.on(),t.undo.saveStep(),o.data("fr-old-src",o.attr("src")),o.attr("src",e)):j(e,null,a)},!1),s.readAsDataURL(i)}(t.core.getXHR(u,t.opts.imageUploadMethod),o,a,i||n)}}var c,v,y}function H(e){if(e.is("img")&&0<e.parents(".fr-img-caption").length)return e.parents(".fr-img-caption")}function z(n){var r=n.originalEvent.dataTransfer;if(r&&r.files&&r.files.length){var i=r.files[0];if(i&&i.type&&-1!==i.type.indexOf("image")&&0<=t.opts.imageAllowedTypes.indexOf(i.type.replace(/image\//g,""))){if(!t.opts.imageUpload)return n.preventDefault(),n.stopPropagation(),!1;t.markers.remove(),t.markers.insertAtPoint(n.originalEvent),t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),0===t.$el.find(".fr-marker").length&&t.selection.setAtEnd(t.el),t.popups.hideAll();var o=t.popups.get("image.insert");o||(o=V()),t.popups.setContainer("image.insert",t.$sc);var a=n.originalEvent.pageX,s=n.originalEvent.pageY;return t.opts.iframe&&(s+=t.$iframe.offset().top,a+=t.$iframe.offset().left),t.popups.show("image.insert",a,s),D(),0<=t.opts.imageAllowedTypes.indexOf(i.type.replace(/image\//g,""))?(se(!0),B(r.files)):A(g),n.preventDefault(),n.stopPropagation(),!1}}}function V(r){if(r)return t.popups.onRefresh("image.insert",y),t.popups.onHide("image.insert",w),!0;var i,o="";t.opts.imageUpload||t.opts.imageInsertButtons.splice(t.opts.imageInsertButtons.indexOf("imageUpload"),1),1<t.opts.imageInsertButtons.length&&(o='<div class="fr-buttons">'+t.button.buildList(t.opts.imageInsertButtons)+"</div>");var a=t.opts.imageInsertButtons.indexOf("imageUpload"),s=t.opts.imageInsertButtons.indexOf("imageByURL"),l="";0<=a&&(i=" fr-active",0<=s&&s<a&&(i=""),l='<div class="fr-image-upload-layer'+i+' fr-layer" id="fr-image-upload-layer-'+t.id+'"><strong>'+t.language.translate("Drop image")+"</strong><br>("+t.language.translate("or click")+')<div class="fr-form"><input type="file" accept="image/'+t.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-'+t.id+'" role="button"></div></div>');var u="";0<=s&&(i=" fr-active",0<=a&&a<s&&(i=""),u='<div class="fr-image-by-url-layer'+i+' fr-layer" id="fr-image-by-url-layer-'+t.id+'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-'+t.id+'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">'+t.language.translate("Insert")+"</button></div></div>");var c,f={buttons:o,upload_layer:l,by_url_layer:u,progress_bar:'<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>'},d=t.popups.create("image.insert",f);return t.$wp&&t.events.$on(t.$wp,"scroll",function(){n&&t.popups.isVisible("image.insert")&&he()}),c=d,t.events.$on(c,"dragover dragenter",".fr-image-upload-layer",function(){return e(this).addClass("fr-drop"),!1},!0),t.events.$on(c,"dragleave dragend",".fr-image-upload-layer",function(){return e(this).removeClass("fr-drop"),!1},!0),t.events.$on(c,"drop",".fr-image-upload-layer",function(n){n.preventDefault(),n.stopPropagation(),e(this).removeClass("fr-drop");var r=n.originalEvent.dataTransfer;if(r&&r.files){var i=c.data("instance")||t;i.events.disableBlur(),i.image.upload(r.files),i.events.enableBlur()}},!0),t.helpers.isIOS()&&t.events.$on(c,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){e(this).trigger("click")},!0),t.events.$on(c,"change",'.fr-image-upload-layer input[type="file"]',function(){if(this.files){var r=c.data("instance")||t;r.events.disableBlur(),c.find("input:focus").blur(),r.events.enableBlur(),r.image.upload(this.files,n)}e(this).val("")},!0),d}function Y(){n&&t.popups.get("image.alt").find("input").val(n.attr("alt")||"").trigger("change")}function W(){var e=t.popups.get("image.alt");e||(e=q()),M(),t.popups.refresh("image.alt"),t.popups.setContainer("image.alt",t.$sc);var n=ve();ye()&&(n=n.find(".fr-img-wrap"));var r=n.offset().left+n.outerWidth()/2,i=n.offset().top+n.outerHeight();t.popups.show("image.alt",r,i,n.outerHeight())}function q(e){if(e)return t.popups.onRefresh("image.alt",Y),!0;var r={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.imageAltButtons)+"</div>",alt_layer:'<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'+t.id+'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("Alternative Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">'+t.language.translate("Update")+"</button></div></div>"},i=t.popups.create("image.alt",r);return t.$wp&&t.events.$on(t.$wp,"scroll.image-alt",function(){n&&t.popups.isVisible("image.alt")&&W()}),i}function K(){if(n){var e=t.popups.get("image.size");e.find('input[name="width"]').val(n.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(n.get(0).style.height).trigger("change")}}function G(){var e=t.popups.get("image.size");e||(e=X()),M(),t.popups.refresh("image.size"),t.popups.setContainer("image.size",t.$sc);var n=ve();ye()&&(n=n.find(".fr-img-wrap"));var r=n.offset().left+n.outerWidth()/2,i=n.offset().top+n.outerHeight();t.popups.show("image.size",r,i,n.outerHeight())}function X(e){if(e)return t.popups.onRefresh("image.size",K),!0;var r={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.imageSizeButtons)+"</div>",size_layer:'<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'+t.id+'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-'+t.id+'" type="text" name="width" placeholder="'+t.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height'+t.id+'" type="text" name="height" placeholder="'+t.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">'+t.language.translate("Update")+"</button></div></div>"},i=t.popups.create("image.size",r);return t.$wp&&t.events.$on(t.$wp,"scroll.image-size",function(){n&&t.popups.isVisible("image.size")&&G()}),i}function Z(e,t,n,r){return e.pageX=t,T.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),k.call(this,e),_.call(this,e),++r}function J(n){(n=n||ve())&&!1!==t.events.trigger("image.beforeRemove",[n])&&(t.popups.hideAll(),ge(),se(!0),t.undo.canDo()||t.undo.saveStep(),n.get(0)==t.el?n.removeAttr("src"):(n.get(0).parentNode&&"A"==n.get(0).parentNode.tagName?(t.selection.setBefore(n.get(0).parentNode)||t.selection.setAfter(n.get(0).parentNode)||n.parent().after(e.FE.MARKERS),e(n.get(0).parentNode).remove()):(t.selection.setBefore(n.get(0))||t.selection.setAfter(n.get(0))||n.after(e.FE.MARKERS),n.remove()),t.html.fillEmptyBlocks(),t.selection.restore()),t.undo.saveStep())}function Q(r){var i=r.which;if(n&&(i==e.FE.KEYCODE.BACKSPACE||i==e.FE.KEYCODE.DELETE))return r.preventDefault(),r.stopPropagation(),J(),!1;if(n&&i==e.FE.KEYCODE.ESC){var o=n;return se(!0),t.selection.setAfter(o.get(0)),t.selection.restore(),r.preventDefault(),!1}if(n&&(i==e.FE.KEYCODE.ARROW_LEFT||i==e.FE.KEYCODE.ARROW_RIGHT)){var a=n.get(0);return se(!0),i==e.FE.KEYCODE.ARROW_LEFT?t.selection.setBefore(a):t.selection.setAfter(a),t.selection.restore(),r.preventDefault(),!1}return n&&i!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(r)?(r.preventDefault(),r.stopPropagation(),!1):void 0}function ee(e){if(e&&"IMG"==e.tagName){if(t.node.hasClass(e,"fr-uploading")||t.node.hasClass(e,"fr-error")?e.parentNode.removeChild(e):t.node.hasClass(e,"fr-draggable")&&e.classList.remove("fr-draggable"),e.parentNode&&e.parentNode.parentNode&&t.node.hasClass(e.parentNode.parentNode,"fr-img-caption")){var n=e.parentNode.parentNode;n.removeAttribute("contenteditable"),n.removeAttribute("draggable"),n.classList.remove("fr-draggable");var r=e.nextSibling;r&&r.removeAttribute("contenteditable")}}else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var i=e.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),o=0;o<i.length;o++)ee(i[o])}function te(r){if(!1===t.events.trigger("image.beforePasteUpload",[r]))return!1;n=e(r),S(),b(),he(),D(),n.one("load",function(){S(),D()});for(var i=atob(e(r).attr("src").split(",")[1]),o=[],a=0;a<i.length;a++)o.push(i.charCodeAt(a));B([new Blob([new Uint8Array(o)],{type:e(r).attr("src").split(",")[0].replace(/data\:/g,"").replace(/;base64/g,"")})],n)}function ne(){t.opts.imagePaste?t.$el.find("img[data-fr-image-pasted]").each(function(n,r){if(t.opts.imagePasteProcess){var i=t.opts.imageDefaultWidth;i&&"auto"!=i&&(i+=t.opts.imageResizeWithPercent?"%":"px"),e(r).css("width",i).removeClass("fr-dii fr-dib fr-fir fr-fil"),fe(e(r),t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign)}if(0===r.src.indexOf("data:"))te(r);else if(0===r.src.indexOf("blob:")||0===r.src.indexOf("http")&&t.opts.imageUploadRemoteUrls&&t.opts.imageCORSProxy){var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){var e=t.o_doc.createElement("CANVAS"),n=e.getContext("2d");e.height=this.naturalHeight,e.width=this.naturalWidth,n.drawImage(this,0,0),r.src=e.toDataURL("image/png"),te(r)},o.src=(0===r.src.indexOf("blob:")?"":t.opts.imageCORSProxy+"/")+r.src}else 0!==r.src.indexOf("http")||0===r.src.indexOf("https://mail.google.com/mail")?(t.selection.save(),e(r).remove(),t.selection.restore()):e(r).removeAttr("data-fr-image-pasted")}):t.$el.find("img[data-fr-image-pasted]").remove()}function re(e){var n=e.target.result,r=t.opts.imageDefaultWidth;r&&"auto"!=r&&(r+=t.opts.imageResizeWithPercent?"%":"px"),t.undo.saveStep(),t.html.insert('<img data-fr-image-pasted="true" src="'+n+'"'+(r?' style="width: '+r+';"':"")+">");var i=t.$el.find('img[data-fr-image-pasted="true"]');i&&fe(i,t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign),t.events.trigger("paste.after")}function ie(e){if(e&&e.clipboardData&&e.clipboardData.items){var t=null;if(e.clipboardData.getData("text/rtf"))t=e.clipboardData.items[0].getAsFile();else for(var n=0;n<e.clipboardData.items.length&&!(t=e.clipboardData.items[n].getAsFile());n++);if(t)return r=t,(i=new FileReader).onload=re,i.readAsDataURL(r),!1}var r,i}function oe(e){return e=e.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function ae(r){if("false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(r&&"touchend"==r.type&&s)return!0;if(r&&t.edit.isDisabled())return r.stopPropagation(),r.preventDefault(),!1;for(var i=0;i<e.FE.INSTANCES.length;i++)e.FE.INSTANCES[i]!=t&&e.FE.INSTANCES[i].events.trigger("image.hideResizer");t.toolbar.disable(),r&&(r.stopPropagation(),r.preventDefault()),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur()),t.opts.iframe&&t.size.syncIframe(),n=e(this),ge(),S(),b(),t.browser.msie||t.selection.clear(),t.helpers.isIOS()&&(t.events.disableBlur(),t.$el.blur()),t.button.bulkRefresh(),t.events.trigger("video.hideResizer")}function se(e){n&&(le||!0===e)&&(t.toolbar.enable(),r.removeClass("fr-active"),t.popups.hide("image.edit"),n=null,ce(),i=null,o&&o.hide())}v[c]="Image cannot be loaded from the passed link.",v[f]="No link in upload response.",v[d]="Error during file upload.",v[p]="Parsing response failed.",v[h]="File is too large.",v[g]="Image file type is invalid.",v[7]="Files can be uploaded only to same domain in IE 8 and IE 9.";var le=!(v[m]="Image file is corrupted.");function ue(){le=!0}function ce(){le=!1}function fe(e,n,r){!t.opts.htmlUntouched&&t.opts.useClasses?(e.removeClass("fr-fil fr-fir fr-dib fr-dii"),r&&e.addClass("fr-fi"+r[0]),n&&e.addClass("fr-di"+n[0])):"inline"==n?(e.css({display:"inline-block",verticalAlign:"bottom",margin:t.opts.imageDefaultMargin}),"center"==r?e.css({float:"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - "+2*t.opts.imageDefaultMargin+"px)",textAlign:"center"}):"left"==r?e.css({float:"left",marginLeft:0,maxWidth:"calc(100% - "+t.opts.imageDefaultMargin+"px)",textAlign:"left"}):e.css({float:"right",marginRight:0,maxWidth:"calc(100% - "+t.opts.imageDefaultMargin+"px)",textAlign:"right"})):"block"==n&&(e.css({display:"block",float:"none",verticalAlign:"top",margin:t.opts.imageDefaultMargin+"px auto",textAlign:"center"}),"left"==r?e.css({marginLeft:0,textAlign:"left"}):"right"==r&&e.css({marginRight:0,textAlign:"right"}))}function de(e){if(void 0===e&&(e=ve()),e){if(e.hasClass("fr-fil"))return"left";if(e.hasClass("fr-fir"))return"right";if(e.hasClass("fr-dib")||e.hasClass("fr-dii"))return"center";var t=e.css("float");if(e.css("float","none"),"block"==e.css("display")){if(e.css("float",""),e.css("float")!=t&&e.css("float",t),0===parseInt(e.css("margin-left"),10))return"left";if(0===parseInt(e.css("margin-right"),10))return"right"}else{if(e.css("float",""),e.css("float")!=t&&e.css("float",t),"left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function pe(e){void 0===e&&(e=ve());var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function he(){var e=t.popups.get("image.insert");e||(e=V()),t.popups.isVisible("image.insert")||(M(),t.popups.refresh("image.insert"),t.popups.setContainer("image.insert",t.$sc));var n=ve();ye()&&(n=n.find(".fr-img-wrap"));var r=n.offset().left+n.outerWidth()/2,i=n.offset().top+n.outerHeight();t.popups.show("image.insert",r,i,n.outerHeight(!0))}function ge(){if(n){t.events.disableBlur(),t.selection.clear();var e=t.doc.createRange();e.selectNode(n.get(0)),t.browser.msie&&e.collapse(!0),t.selection.get().addRange(e),t.events.enableBlur()}}function me(){return n}function ve(){return ye()?n.parents(".fr-img-caption:first"):n}function ye(){return!!n&&0<n.parents(".fr-img-caption").length}return{_init:function(){var r;t.events.$on(t.$el,t._mousedown,"IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(n){if("false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;t.helpers.isMobile()||t.selection.clear(),u=!0,t.popups.areVisible()&&t.events.disableBlur(),t.browser.msie&&(t.events.disableBlur(),t.$el.attr("contenteditable",!1)),t.draggable||"touchstart"==n.type||n.preventDefault(),n.stopPropagation()}),t.events.$on(t.$el,t._mouseup,"IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(n){if("false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;u&&(u=!1,n.stopPropagation(),t.browser.msie&&(t.$el.attr("contenteditable",!0),t.events.enableBlur()))}),t.events.on("keyup",function(n){if(n.shiftKey&&""===t.selection.text().replace(/\n/g,"")&&t.keys.isArrow(n.which)){var r=t.selection.element(),i=t.selection.endElement();r&&"IMG"==r.tagName?I(e(r)):i&&"IMG"==i.tagName&&I(e(i))}},!0),t.events.on("drop",z),t.events.on("element.beforeDrop",H),t.events.on("mousedown window.mousedown",ue),t.events.on("window.touchmove",ce),t.events.on("mouseup window.mouseup",function(){if(n)return se(),!1;ce()}),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&se()}),t.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){se(!(u=!1))}),t.events.on("modals.hide",function(){n&&(ge(),t.selection.clear())}),"IMG"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.$on(t.$el,t.helpers.isMobile()&&!t.helpers.isWindowsPhone()?"touchend":"click","IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',ae),t.helpers.isMobile()&&(t.events.$on(t.$el,"touchstart","IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(){s=!1}),t.events.$on(t.$el,"touchmove",function(){s=!0})),t.$wp?(t.events.on("window.keydown keydown",Q,!0),t.events.on("keyup",function(t){if(n&&t.which==e.FE.KEYCODE.ENTER)return!1},!0)):t.events.$on(t.$win,"keydown",Q),t.events.on("toolbar.esc",function(){if(n){if(t.$wp)t.events.disableBlur(),t.events.focus();else{var e=n;se(!0),t.selection.setAfter(e.get(0)),t.selection.restore()}return!1}},!0),t.events.on("toolbar.focusEditor",function(){if(n)return!1},!0),t.events.on("window.cut window.copy",function(r){if(n&&t.popups.isVisible("image.edit")&&!t.popups.get("image.edit").find(":focus").length){var i=ve();ye()?(i.before(e.FE.START_MARKER),i.after(e.FE.END_MARKER),t.selection.restore(),t.paste.saveCopiedText(i.get(0).outerHTML,i.text())):(ge(),t.paste.saveCopiedText(n.get(0).outerHTML,n.attr("alt"))),"copy"==r.type?setTimeout(function(){I(n)}):(se(!0),t.undo.saveStep(),setTimeout(function(){t.undo.saveStep()},0))}},!0),t.browser.msie&&t.events.on("keydown",function(r){if(!t.selection.isCollapsed()||!n)return!0;var i=r.which;i==e.FE.KEYCODE.C&&t.keys.ctrlKey(r)?t.events.trigger("window.copy"):i==e.FE.KEYCODE.X&&t.keys.ctrlKey(r)&&t.events.trigger("window.cut")}),t.events.$on(e(t.o_win),"keydown",function(t){var r=t.which;if(n&&r==e.FE.KEYCODE.BACKSPACE)return t.preventDefault(),!1}),t.events.$on(t.$win,"keydown",function(t){var r=t.which;n&&n.hasClass("fr-uploading")&&r==e.FE.KEYCODE.ESC&&n.trigger("abortUpload")}),t.events.on("destroy",function(){n&&n.hasClass("fr-uploading")&&n.trigger("abortUpload")}),t.events.on("paste.before",ie),t.events.on("paste.beforeCleanup",oe),t.events.on("paste.after",ne),t.events.on("html.set",$),t.events.on("html.inserted",$),$(),t.events.on("destroy",function(){a=[]}),t.events.on("html.processGet",ee),t.opts.imageOutputSize&&t.events.on("html.beforeGet",function(){r=t.el.querySelectorAll("img");for(var n=0;n<r.length;n++){var i=r[n].style.width||e(r[n]).width(),o=r[n].style.height||e(r[n]).height();i&&r[n].setAttribute("width",(""+i).replace(/px/,"")),o&&r[n].setAttribute("height",(""+o).replace(/px/,""))}}),t.opts.iframe&&t.events.on("image.loaded",t.size.syncIframe),t.$wp&&(E(),t.events.on("contentChanged",E)),t.events.$on(e(t.o_win),"orientationchange.image",function(){setTimeout(function(){n&&I(n)},100)}),O(!0),V(!0),X(!0),q(!0),t.events.on("node.remove",function(e){if("IMG"==e.get(0).tagName)return J(e),!1})},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertImage"]'),n=t.popups.get("image.insert");if(n||(n=V()),M(),!n.hasClass("fr-active"))if(t.popups.refresh("image.insert"),t.popups.setContainer("image.insert",t.$tb),e.is(":visible")){var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("image.insert",r,i,e.outerHeight())}else t.position.forSelection(n),t.popups.show("image.insert")},showLayer:function(e){var r,i,o=t.popups.get("image.insert");if(n||t.opts.toolbarInline){if(n){var a=ve();ye()&&(a=a.find(".fr-img-wrap")),i=a.offset().top+a.outerHeight(),r=a.offset().left+a.outerWidth()/2}}else{var s=t.$tb.find('.fr-command[data-cmd="insertImage"]');r=s.offset().left+s.outerWidth()/2,i=s.offset().top+(t.opts.toolbarBottom?10:s.outerHeight()-10)}!n&&t.opts.toolbarInline&&(i=o.offset().top-t.helpers.getPX(o.css("margin-top")),o.hasClass("fr-above")&&(i+=o.outerHeight())),o.find(".fr-layer").removeClass("fr-active"),o.find(".fr-"+e+"-layer").addClass("fr-active"),t.popups.show("image.insert",r,i,n?n.outerHeight():0),t.accessibility.focusPopup(o)},refreshUploadButton:function(e){t.popups.get("image.insert").find(".fr-image-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(e){t.popups.get("image.insert").find(".fr-image-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:B,insertByURL:function(){var e=t.popups.get("image.insert").find(".fr-image-by-url-layer input");if(0<e.val().length){D(),N(t.language.translate("Loading image"));var r=e.val();if(t.opts.imageUploadRemoteUrls&&t.opts.imageCORSProxy&&t.opts.imageUpload){var i=new XMLHttpRequest;i.onload=function(){200==this.status?B([new Blob([this.response],{type:this.response.type||"image/png"})],n):A(c)},i.onerror=function(){R(r,!0,[],n)},i.open("GET",t.opts.imageCORSProxy+"/"+r,!0),i.responseType="blob",i.send()}else R(r,!0,[],n);e.val(""),e.blur()}},align:function(e){var n=ve();n.removeClass("fr-fir fr-fil"),!t.opts.htmlUntouched&&t.opts.useClasses?"left"==e?n.addClass("fr-fil"):"right"==e&&n.addClass("fr-fir"):fe(n,pe(),e),ge(),S(),b(),t.selection.clear()},refreshAlign:function(e){n&&e.find("> *:first").replaceWith(t.icon.create("image-align-"+de()))},refreshAlignOnShow:function(e,t){n&&t.find('.fr-command[data-param1="'+de()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){var n=ve();n.removeClass("fr-dii fr-dib"),!t.opts.htmlUntouched&&t.opts.useClasses?"inline"==e?n.addClass("fr-dii"):"block"==e&&n.addClass("fr-dib"):fe(n,e,de()),ge(),S(),b(),t.selection.clear()},refreshDisplayOnShow:function(e,t){n&&t.find('.fr-command[data-param1="'+pe()+'"]').addClass("fr-active").attr("aria-selected",!0)},replace:he,back:function(){n?(t.events.disableBlur(),e(".fr-popup input:focus").blur(),I(n)):(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),t.popups.hide("image.insert"),t.toolbar.showInline())},get:me,getEl:ve,insert:R,showProgressBar:D,remove:J,hideProgressBar:M,applyStyle:function(e,r,i){if(void 0===r&&(r=t.opts.imageStyles),void 0===i&&(i=t.opts.imageMultipleStyles),!n)return!1;var o=ve();if(!i){var a=Object.keys(r);a.splice(a.indexOf(e),1),o.removeClass(a.join(" "))}"object"==typeof r[e]?(o.removeAttr("style"),o.css(r[e].style)):o.toggleClass(e),I(n)},showAltPopup:W,showSizePopup:G,setAlt:function(e){if(n){var r=t.popups.get("image.alt");n.attr("alt",e||r.find("input").val()||""),r.find("input:focus").blur(),I(n)}},setSize:function(e,r){if(n){var i=t.popups.get("image.size");e=e||i.find('input[name="width"]').val()||"",r=r||i.find('input[name="height"]').val()||"";var o=/^[\d]+((px)|%)*$/g;n.removeAttr("width").removeAttr("height"),e.match(o)?n.css("width",e):n.css("width",""),r.match(o)?n.css("height",r):n.css("height",""),ye()&&(n.parent().removeAttr("width").removeAttr("height"),e.match(o)?n.parent().css("width",e):n.parent().css("width",""),r.match(o)?n.parent().css("height",r):n.parent().css("height","")),i.find("input:focus").blur(),I(n)}},toggleCaption:function(){var r;n&&!ye()?((r=n).parent().is("a")&&(r=n.parent()),r.wrap("<span "+(t.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+n.attr("class")+'" style="'+(n.attr("style")?n.attr("style")+" ":"")+"width: "+n.width()+'px;" draggable="false"></span>'),r.wrap('<span class="fr-img-wrap"></span>'),r.after('<span class="fr-inner" contenteditable="true">'+e.FE.START_MARKER+"Image caption"+e.FE.END_MARKER+"</span>"),n.removeAttr("class").removeAttr("style").removeAttr("width"),se(!0),t.selection.restore()):(r=ve(),n.insertAfter(r),n.attr("class",r.attr("class").replace("fr-img-caption","")).attr("style",r.attr("style")),r.remove(),I(n))},hasCaption:ye,exitEdit:se,edit:I}},e.FE.DefineIcon("insertImage",{NAME:"image"}),e.FE.RegisterShortcut(e.FE.KEYCODE.P,"insertImage",null,"P"),e.FE.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),e.FE.DefineIcon("imageUpload",{NAME:"upload"}),e.FE.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(e){this.image.refreshUploadButton(e)}}),e.FE.DefineIcon("imageByURL",{NAME:"link"}),e.FE.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(e){this.image.refreshByURLButton(e)}}),e.FE.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(e){this.image.get()?e.text(this.language.translate("Replace")):e.text(this.language.translate("Insert"))}}),e.FE.DefineIcon("imageDisplay",{NAME:"star"}),e.FE.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.image.display(t)},refresh:function(e){this.opts.imageTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.image.refreshDisplayOnShow(e,t)}}),e.FE.DefineIcon("image-align",{NAME:"align-left"}),e.FE.DefineIcon("image-align-left",{NAME:"align-left"}),e.FE.DefineIcon("image-align-right",{NAME:"align-right"}),e.FE.DefineIcon("image-align-center",{NAME:"align-justify"}),e.FE.DefineIcon("imageAlign",{NAME:"align-justify"}),e.FE.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.imageAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.icon.create("image-align-"+r)+'<span class="fr-sr-only">'+this.language.translate(n[r])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.image.align(t)},refresh:function(e){this.image.refreshAlign(e)},refreshOnShow:function(e,t){this.image.refreshAlignOnShow(e,t)}}),e.FE.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),e.FE.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),e.FE.DefineIcon("imageRemove",{NAME:"trash"}),e.FE.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),e.FE.DefineIcon("imageBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(e){this.image.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),e.FE.DefineIcon("imageStyle",{NAME:"magic"}),e.FE.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.imageStyles;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&(r=r.title),e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'+n+'">'+this.language.translate(r)+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.image.applyStyle(t)},refreshOnShow:function(t,n){var r=this.image.getEl();r&&n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}),e.FE.DefineIcon("imageAlt",{NAME:"info"}),e.FE.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),e.FE.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),e.FE.DefineIcon("imageSize",{NAME:"arrows-alt"}),e.FE.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),e.FE.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),e.FE.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt"}),e.FE.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(e){this.image.get()&&e.toggleClass("fr-active",this.image.hasCaption())}})})?r.apply(t,i):r)||(e.exports=o)},LQAc:function(e,t){e.exports=!1},LTTk:function(e,t,n){var r=n("XKFU"),i=n("OP3Y"),o=n("y3w9");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},LVwc:function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},LZWt:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},Lgjv:function(e,t,n){var r=n("ne8i"),i=n("l0Rn"),o=n("vhPU");e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(c<=l||""==u)return s;var f=c-l,d=i.call(u,Math.ceil(f/u.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},Ljet:function(e,t,n){var r=n("XKFU");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},LvDl:function(e,t,n){(function(e,r){var i;(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,h=2,g=4,m=1,v=2,y=1,b=2,w=4,$=8,E=16,S=32,x=64,C=128,T=256,k=512,_=30,A="...",O=800,D=16,M=1,N=2,I=1/0,F=9007199254740991,R=1.7976931348623157e308,P=NaN,L=4294967295,j=L-1,U=L>>>1,B=[["ary",C],["bind",y],["bindKey",b],["curry",$],["curryRight",E],["flip",k],["partial",S],["partialRight",x],["rearg",T]],H="[object Arguments]",z="[object Array]",V="[object AsyncFunction]",Y="[object Boolean]",W="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",ae="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,$e=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ce=RegExp(Se.source),Te=RegExp(xe.source),ke=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),Fe=/^\s+/,Re=/\s/,Pe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Qe+"]",it="\\d+",ot="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lt="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+at+"|"+st+")",ht="(?:"+dt+"|"+st+")",gt="(?:"+rt+"|"+lt+")"+"?",mt="[\\ufe0e\\ufe0f]?"+gt+("(?:\\u200d(?:"+[ut,ct,ft].join("|")+")[\\ufe0e\\ufe0f]?"+gt+")*"),vt="(?:"+[ot,ct,ft].join("|")+")"+mt,yt="(?:"+[ut+rt+"?",rt,ct,ft,tt].join("|")+")",bt=RegExp("['’]","g"),wt=RegExp(rt,"g"),$t=RegExp(lt+"(?="+lt+")|"+yt+mt,"g"),Et=RegExp([dt+"?"+at+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,dt,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,dt+pt,"$"].join("|")+")",dt+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,vt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ct=["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"],Tt=-1,kt={};kt[fe]=kt[de]=kt[pe]=kt[he]=kt[ge]=kt[me]=kt[ve]=kt[ye]=kt[be]=!0,kt[H]=kt[z]=kt[ue]=kt[Y]=kt[ce]=kt[W]=kt[K]=kt[G]=kt[Z]=kt[J]=kt[ee]=kt[ne]=kt[re]=kt[ie]=kt[se]=!1;var _t={};_t[H]=_t[z]=_t[ue]=_t[ce]=_t[Y]=_t[W]=_t[fe]=_t[de]=_t[pe]=_t[he]=_t[ge]=_t[Z]=_t[J]=_t[ee]=_t[ne]=_t[re]=_t[ie]=_t[oe]=_t[me]=_t[ve]=_t[ye]=_t[be]=!0,_t[K]=_t[G]=_t[se]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ot=parseFloat,Dt=parseInt,Mt="object"==typeof e&&e&&e.Object===Object&&e,Nt="object"==typeof self&&self&&self.Object===Object&&self,It=Mt||Nt||Function("return this")(),Ft="object"==typeof t&&t&&!t.nodeType&&t,Rt=Ft&&"object"==typeof r&&r&&!r.nodeType&&r,Pt=Rt&&Rt.exports===Ft,Lt=Pt&&Mt.process,jt=function(){try{var e=Rt&&Rt.require&&Rt.require("util").types;return e||Lt&&Lt.binding&&Lt.binding("util")}catch(e){}}(),Ut=jt&&jt.isArrayBuffer,Bt=jt&&jt.isDate,Ht=jt&&jt.isMap,zt=jt&&jt.isRegExp,Vt=jt&&jt.isSet,Yt=jt&&jt.isTypedArray;function Wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function qt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Gt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Zt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Jt(e,t){return!!(null==e?0:e.length)&&un(e,t,0)>-1}function Qt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function en(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function tn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function nn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function rn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function on(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var an=pn("length");function sn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function ln(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function un(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):ln(e,fn,n)}function cn(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function fn(e){return e!=e}function dn(e,t){var n=null==e?0:e.length;return n?mn(e,t)/n:P}function pn(e){return function(t){return null==t?o:t[e]}}function hn(e){return function(t){return null==e?o:e[t]}}function gn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function mn(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function vn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function yn(e){return e?e.slice(0,Fn(e)+1).replace(Fe,""):e}function bn(e){return function(t){return e(t)}}function wn(e,t){return en(t,function(t){return e[t]})}function $n(e,t){return e.has(t)}function En(e,t){for(var n=-1,r=e.length;++n<r&&un(t,e[n],0)>-1;);return n}function Sn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var xn=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Cn=hn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Tn(e){return"\\"+At[e]}function kn(e){return St.test(e)}function _n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function On(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==d||(e[n]=d,o[i++]=n)}return o}function Dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Nn(e){return kn(e)?function(e){var t=$t.lastIndex=0;for(;$t.test(e);)++t;return t}(e):an(e)}function In(e){return kn(e)?function(e){return e.match($t)||[]}(e):function(e){return e.split("")}(e)}function Fn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Rn=hn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Pn=function e(t){var n,r=(t=null==t?It:Pn.defaults(It.Object(),t,Pn.pick(It,Ct))).Array,i=t.Date,Re=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=r.prototype,at=Qe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ft=0,dt=(n=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,ht=ut.call(tt),gt=It._,mt=nt("^"+ut.call(ct).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Pt?t.Buffer:o,yt=t.Symbol,$t=t.Uint8Array,St=vt?vt.allocUnsafe:o,At=An(tt.getPrototypeOf,tt),Mt=tt.create,Nt=st.propertyIsEnumerable,Ft=ot.splice,Rt=yt?yt.isConcatSpreadable:o,Lt=yt?yt.iterator:o,jt=yt?yt.toStringTag:o,an=function(){try{var e=Bo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),hn=t.clearTimeout!==It.clearTimeout&&t.clearTimeout,Ln=i&&i.now!==It.Date.now&&i.now,jn=t.setTimeout!==It.setTimeout&&t.setTimeout,Un=et.ceil,Bn=et.floor,Hn=tt.getOwnPropertySymbols,zn=vt?vt.isBuffer:o,Vn=t.isFinite,Yn=ot.join,Wn=An(tt.keys,tt),qn=et.max,Kn=et.min,Gn=i.now,Xn=t.parseInt,Zn=et.random,Jn=ot.reverse,Qn=Bo(t,"DataView"),er=Bo(t,"Map"),tr=Bo(t,"Promise"),nr=Bo(t,"Set"),rr=Bo(t,"WeakMap"),ir=Bo(tt,"create"),or=rr&&new rr,ar={},sr=pa(Qn),lr=pa(er),ur=pa(tr),cr=pa(nr),fr=pa(rr),dr=yt?yt.prototype:o,pr=dr?dr.valueOf:o,hr=dr?dr.toString:o;function gr(e){if(Os(e)&&!bs(e)&&!(e instanceof br)){if(e instanceof yr)return e;if(ct.call(e,"__wrapped__"))return ha(e)}return new yr(e)}var mr=function(){function e(){}return function(t){if(!As(t))return{};if(Mt)return Mt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Sr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Er;++t<n;)this.add(e[t])}function xr(e){var t=this.__data__=new $r(e);this.size=t.size}function Cr(e,t){var n=bs(e),r=!n&&ys(e),i=!n&&!r&&Ss(e),o=!n&&!r&&!i&&Ls(e),a=n||r||i||o,s=a?vn(e.length,rt):[],l=s.length;for(var u in e)!t&&!ct.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ko(u,l))||s.push(u);return s}function Tr(e){var t=e.length;return t?e[Si(0,t-1)]:o}function kr(e,t){return ca(io(e),Rr(t,0,e.length))}function _r(e){return ca(io(e))}function Ar(e,t,n){(n===o||gs(e[t],n))&&(n!==o||t in e)||Ir(e,t,n)}function Or(e,t,n){var r=e[t];ct.call(e,t)&&gs(r,n)&&(n!==o||t in e)||Ir(e,t,n)}function Dr(e,t){for(var n=e.length;n--;)if(gs(e[n][0],t))return n;return-1}function Mr(e,t,n,r){return Br(e,function(e,i,o){t(r,e,n(e),o)}),r}function Nr(e,t){return e&&oo(t,al(t),e)}function Ir(e,t,n){"__proto__"==t&&an?an(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Fr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:tl(e,t[n]);return a}function Rr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function Pr(e,t,n,r,i,a){var s,l=t&p,u=t&h,c=t&g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!As(e))return e;var f=bs(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return io(e,s)}else{var d=Vo(e),m=d==G||d==X;if(Ss(e))return Ji(e,l);if(d==ee||d==H||m&&!i){if(s=u||m?{}:Wo(e),!l)return u?function(e,t){return oo(e,zo(e),t)}(e,function(e,t){return e&&oo(t,sl(t),e)}(s,e)):function(e,t){return oo(e,Ho(e),t)}(e,Nr(s,e))}else{if(!_t[d])return i?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case ue:return Qi(e);case Y:case W:return new a(+e);case ce:return function(e,t){var n=t?Qi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case fe:case de:case pe:case he:case ge:case me:case ve:case ye:case be:return eo(e,n);case Z:return new a;case J:case ie:return new a(e);case ne:return(o=new(i=e).constructor(i.source,Ve.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case oe:return r=e,pr?tt(pr.call(r)):{}}}(e,d,l)}}a||(a=new xr);var v=a.get(e);if(v)return v;a.set(e,s),Fs(e)?e.forEach(function(r){s.add(Pr(r,t,n,r,e,a))}):Ds(e)&&e.forEach(function(r,i){s.set(i,Pr(r,t,n,i,e,a))});var y=f?o:(c?u?Io:No:u?sl:al)(e);return Kt(y||e,function(r,i){y&&(r=e[i=r]),Or(s,i,Pr(r,t,n,i,e,a))}),s}function Lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function jr(e,t,n){if("function"!=typeof e)throw new it(l);return aa(function(){e.apply(o,n)},t)}function Ur(e,t,n,r){var i=-1,o=Jt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=en(t,bn(n))),r?(o=Qt,s=!1):t.length>=a&&(o=$n,s=!1,t=new Sr(t));e:for(;++i<l;){var f=e[i],d=null==n?f:n(f);if(f=r||0!==f?f:0,s&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;u.push(f)}else o(t,d,r)||u.push(f)}return u}gr.templateSettings={escape:ke,evaluate:_e,interpolate:Ae,variable:"",imports:{_:gr}},gr.prototype=vr.prototype,gr.prototype.constructor=gr,yr.prototype=mr(vr.prototype),yr.prototype.constructor=yr,br.prototype=mr(vr.prototype),br.prototype.constructor=br,wr.prototype.clear=function(){this.__data__=ir?ir(null):{},this.size=0},wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},wr.prototype.get=function(e){var t=this.__data__;if(ir){var n=t[e];return n===c?o:n}return ct.call(t,e)?t[e]:o},wr.prototype.has=function(e){var t=this.__data__;return ir?t[e]!==o:ct.call(t,e)},wr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ir&&t===o?c:t,this},$r.prototype.clear=function(){this.__data__=[],this.size=0},$r.prototype.delete=function(e){var t=this.__data__,n=Dr(t,e);return!(n<0||(n==t.length-1?t.pop():Ft.call(t,n,1),--this.size,0))},$r.prototype.get=function(e){var t=this.__data__,n=Dr(t,e);return n<0?o:t[n][1]},$r.prototype.has=function(e){return Dr(this.__data__,e)>-1},$r.prototype.set=function(e,t){var n=this.__data__,r=Dr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(er||$r),string:new wr}},Er.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},Er.prototype.get=function(e){return jo(this,e).get(e)},Er.prototype.has=function(e){return jo(this,e).has(e)},Er.prototype.set=function(e,t){var n=jo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Sr.prototype.add=Sr.prototype.push=function(e){return this.__data__.set(e,c),this},Sr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.clear=function(){this.__data__=new $r,this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xr.prototype.get=function(e){return this.__data__.get(e)},xr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $r){var r=n.__data__;if(!er||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(e,t),this.size=n.size,this};var Br=lo(Gr),Hr=lo(Xr,!0);function zr(e,t){var n=!0;return Br(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!Ps(s):n(s,l)))var l=s,u=a}return u}function Yr(e,t){var n=[];return Br(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Wr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=qo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Wr(s,t-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var qr=uo(),Kr=uo(!0);function Gr(e,t){return e&&qr(e,t,al)}function Xr(e,t){return e&&Kr(e,t,al)}function Zr(e,t){return Zt(t,function(t){return Ts(e[t])})}function Jr(e,t){for(var n=0,r=(t=Ki(t,e)).length;null!=e&&n<r;)e=e[da(t[n++])];return n&&n==r?e:o}function Qr(e,t,n){var r=t(e);return bs(e)?r:tn(r,n(e))}function ei(e){return null==e?e===o?ae:Q:jt&&jt in tt(e)?function(e){var t=ct.call(e,jt),n=e[jt];try{e[jt]=o;var r=!0}catch(e){}var i=pt.call(e);return r&&(t?e[jt]=n:delete e[jt]),i}(e):function(e){return pt.call(e)}(e)}function ti(e,t){return e>t}function ni(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ii(e,t,n){for(var i=n?Qt:Jt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=en(d,bn(t))),c=Kn(d.length,c),u[l]=!n&&(t||a>=120&&d.length>=120)?new Sr(l&&d):o}d=e[0];var p=-1,h=u[0];e:for(;++p<a&&f.length<c;){var g=d[p],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?$n(h,m):i(f,m,n))){for(l=s;--l;){var v=u[l];if(!(v?$n(v,m):i(e[l],m,n)))continue e}h&&h.push(m),f.push(g)}}return f}function oi(e,t,n){var r=null==(e=ra(e,t=Ki(t,e)))?e:e[da(Ca(t))];return null==r?o:Wt(r,e,n)}function ai(e){return Os(e)&&ei(e)==H}function si(e,t,n,r,i){return e===t||(null==e||null==t||!Os(e)&&!Os(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=bs(e),l=bs(t),u=s?z:Vo(e),c=l?z:Vo(t),f=(u=u==H?ee:u)==ee,d=(c=c==H?ee:c)==ee,p=u==c;if(p&&Ss(e)){if(!Ss(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new xr),s||Ls(e)?Do(e,t,n,r,i,a):function(e,t,n,r,i,o,a){switch(n){case ce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new $t(e),new $t(t)));case Y:case W:case J:return gs(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Z:var s=_n;case re:var l=r&m;if(s||(s=Dn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=v,a.set(e,t);var c=Do(s(e),s(t),r,i,o,a);return a.delete(e),c;case oe:if(pr)return pr.call(e)==pr.call(t)}return!1}(e,t,u,n,r,i,a);if(!(n&m)){var h=f&&ct.call(e,"__wrapped__"),g=d&&ct.call(t,"__wrapped__");if(h||g){var y=h?e.value():e,b=g?t.value():t;return a||(a=new xr),i(y,b,n,r,a)}}return!!p&&(a||(a=new xr),function(e,t,n,r,i,a){var s=n&m,l=No(e),u=l.length,c=No(t).length;if(u!=c&&!s)return!1;for(var f=u;f--;){var d=l[f];if(!(s?d in t:ct.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=s;++f<u;){d=l[f];var y=e[d],b=t[d];if(r)var w=s?r(b,y,d,t,e,a):r(y,b,d,e,t,a);if(!(w===o?y===b||i(y,b,n,r,a):w)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var $=e.constructor,E=t.constructor;$!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof $&&$ instanceof $&&"function"==typeof E&&E instanceof E)&&(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a))}(e,t,n,r,si,i))}function li(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=tt(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],c=e[u],f=l[1];if(s&&l[2]){if(c===o&&!(u in e))return!1}else{var d=new xr;if(r)var p=r(c,f,u,e,t,d);if(!(p===o?si(f,c,m|v,r,d):p))return!1}}return!0}function ui(e){return!(!As(e)||dt&&dt in e)&&(Ts(e)?mt:qe).test(pa(e))}function ci(e){return"function"==typeof e?e:null==e?Ml:"object"==typeof e?bs(e)?mi(e[0],e[1]):gi(e):Bl(e)}function fi(e){if(!Qo(e))return Wn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function di(e){if(!As(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Qo(e),n=[];for(var r in e)("constructor"!=r||!t&&ct.call(e,r))&&n.push(r);return n}function pi(e,t){return e<t}function hi(e,t){var n=-1,i=$s(e)?r(e.length):[];return Br(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function gi(e){var t=Uo(e);return 1==t.length&&t[0][2]?ta(t[0][0],t[0][1]):function(n){return n===e||li(n,e,t)}}function mi(e,t){return Xo(e)&&ea(t)?ta(da(e),t):function(n){var r=tl(n,e);return r===o&&r===t?nl(n,e):si(t,r,m|v)}}function vi(e,t,n,r,i){e!==t&&qr(t,function(a,s){if(i||(i=new xr),As(a))!function(e,t,n,r,i,a,s){var l=ia(e,n),u=ia(t,n),c=s.get(u);if(c)Ar(e,n,c);else{var f=a?a(l,u,n+"",e,t,s):o,d=f===o;if(d){var p=bs(u),h=!p&&Ss(u),g=!p&&!h&&Ls(u);f=u,p||h||g?bs(l)?f=l:Es(l)?f=io(l):h?(d=!1,f=Ji(u,!0)):g?(d=!1,f=eo(u,!0)):f=[]:Ns(u)||ys(u)?(f=l,ys(l)?f=Ws(l):As(l)&&!Ts(l)||(f=Wo(u))):d=!1}d&&(s.set(u,f),i(f,u,r,a,s),s.delete(u)),Ar(e,n,f)}}(e,t,s,n,vi,r,i);else{var l=r?r(ia(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Ar(e,s,l)}},sl)}function yi(e,t){var n=e.length;if(n)return Ko(t+=t<0?n:0,n)?e[t]:o}function bi(e,t,n){var r=-1;return t=en(t=t.length?en(t,function(e){return bs(e)?function(t){return Jr(t,1===e.length?e[0]:e)}:e}):[Ml],bn(Lo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(hi(e,function(e,n,i){return{criteria:en(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=to(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function wi(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Jr(e,a);n(s,a)&&_i(o,Ki(a,e),s)}return o}function $i(e,t,n,r){var i=r?cn:un,o=-1,a=t.length,s=e;for(e===t&&(t=io(t)),n&&(s=en(e,bn(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ft.call(s,l,1),Ft.call(e,l,1);return e}function Ei(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ko(i)?Ft.call(e,i,1):Ui(e,i)}}return e}function Si(e,t){return e+Bn(Zn()*(t-e+1))}function xi(e,t){var n="";if(!e||t<1||t>F)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function Ci(e,t){return sa(na(e,t,Ml),e+"")}function Ti(e){return Tr(gl(e))}function ki(e,t){var n=gl(e);return ca(n,Rr(t,0,n.length))}function _i(e,t,n,r){if(!As(e))return e;for(var i=-1,a=(t=Ki(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=da(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var f=l[u];(c=r?r(f,u,l):o)===o&&(c=As(f)?f:Ko(t[i+1])?[]:{})}Or(l,u,c),l=l[u]}return e}var Ai=or?function(e,t){return or.set(e,t),e}:Ml,Oi=an?function(e,t){return an(e,"toString",{configurable:!0,enumerable:!1,value:Al(t),writable:!0})}:Ml;function Di(e){return ca(gl(e))}function Mi(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Ni(e,t){var n;return Br(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function Ii(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=U){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ps(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Fi(e,t,Ml,n)}function Fi(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=Ps(t),c=t===o;i<a;){var f=Bn((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,g=d==d,m=Ps(d);if(s)var v=r||g;else v=c?g&&(r||p):l?g&&p&&(r||!h):u?g&&p&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=f+1:a=f}return Kn(a,j)}function Ri(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!gs(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Pi(e){return"number"==typeof e?e:Ps(e)?P:+e}function Li(e){if("string"==typeof e)return e;if(bs(e))return en(e,Li)+"";if(Ps(e))return hr?hr.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function ji(e,t,n){var r=-1,i=Jt,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=Qt;else if(o>=a){var c=t?null:Co(e);if(c)return Dn(c);s=!1,i=$n,u=new Sr}else u=t?[]:l;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,s&&d==d){for(var p=u.length;p--;)if(u[p]===d)continue e;t&&u.push(d),l.push(f)}else i(u,d,n)||(u!==l&&u.push(d),l.push(f))}return l}function Ui(e,t){return null==(e=ra(e,t=Ki(t,e)))||delete e[da(Ca(t))]}function Bi(e,t,n,r){return _i(e,t,n(Jr(e,t)),r)}function Hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Mi(e,r?0:o,r?o+1:i):Mi(e,r?o+1:0,r?i:o)}function zi(e,t){var n=e;return n instanceof br&&(n=n.value()),nn(t,function(e,t){return t.func.apply(t.thisArg,tn([e],t.args))},n)}function Vi(e,t,n){var i=e.length;if(i<2)return i?ji(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=Ur(a[o]||s,e[l],t,n));return ji(Wr(a,1),t,n)}function Yi(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function Wi(e){return Es(e)?e:[]}function qi(e){return"function"==typeof e?e:Ml}function Ki(e,t){return bs(e)?e:Xo(e,t)?[e]:fa(qs(e))}var Gi=Ci;function Xi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Mi(e,t,n)}var Zi=hn||function(e){return It.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Qi(e){var t=new e.constructor(e.byteLength);return new $t(t).set(new $t(e)),t}function eo(e,t){var n=t?Qi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function to(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=Ps(e),s=t!==o,l=null===t,u=t==t,c=Ps(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function no(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=qn(a-s,0),f=r(u+c),d=!i;++l<u;)f[l]=t[l];for(;++o<s;)(d||o<a)&&(f[n[o]]=e[o]);for(;c--;)f[l++]=e[o++];return f}function ro(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,f=qn(a-l,0),d=r(f+c),p=!i;++o<f;)d[o]=e[o];for(var h=o;++u<c;)d[h+u]=t[u];for(;++s<l;)(p||o<a)&&(d[h+n[s]]=e[o++]);return d}function io(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function oo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),i?Ir(n,l,u):Or(n,l,u)}return n}function ao(e,t){return function(n,r){var i=bs(n)?qt:Mr,o=t?t():{};return i(n,e,Lo(r,2),o)}}function so(e){return Ci(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Go(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function lo(e,t){return function(n,r){if(null==n)return n;if(!$s(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=tt(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function uo(e){return function(t,n,r){for(var i=-1,o=tt(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function co(e){return function(t){var n=kn(t=qs(t))?In(t):o,r=n?n[0]:t.charAt(0),i=n?Xi(n,1).join(""):t.slice(1);return r[e]()+i}}function fo(e){return function(t){return nn(Tl(yl(t).replace(bt,"")),e,"")}}function po(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=mr(e.prototype),r=e.apply(n,t);return As(r)?r:n}}function ho(e){return function(t,n,r){var i=tt(t);if(!$s(t)){var a=Lo(n,3);t=al(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function go(e){return Mo(function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new it(l);if(i&&!s&&"wrapper"==Ro(a))var s=new yr([],!0)}for(r=s?r:n;++r<n;){var u=Ro(a=t[r]),c="wrapper"==u?Fo(a):o;s=c&&Zo(c[0])&&c[1]==(C|$|S|T)&&!c[4].length&&1==c[9]?s[Ro(c[0])].apply(s,c[3]):1==a.length&&Zo(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&bs(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function mo(e,t,n,i,a,s,l,u,c,f){var d=t&C,p=t&y,h=t&b,g=t&($|E),m=t&k,v=h?o:po(e);return function y(){for(var b=arguments.length,w=r(b),$=b;$--;)w[$]=arguments[$];if(g)var E=Po(y),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,E);if(i&&(w=no(w,i,a,g)),s&&(w=ro(w,s,l,g)),b-=S,g&&b<f){var x=On(w,E);return So(e,t,mo,y.placeholder,n,w,x,u,c,f-b)}var C=p?n:this,T=h?C[e]:e;return b=w.length,u?w=function(e,t){for(var n=e.length,r=Kn(t.length,n),i=io(e);r--;){var a=t[r];e[r]=Ko(a,n)?i[a]:o}return e}(w,u):m&&b>1&&w.reverse(),d&&c<b&&(w.length=c),this&&this!==It&&this instanceof y&&(T=v||po(T)),T.apply(C,w)}}function vo(e,t){return function(n,r){return function(e,t,n,r){return Gr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function yo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Li(n),r=Li(r)):(n=Pi(n),r=Pi(r)),i=e(n,r)}return i}}function bo(e){return Mo(function(t){return t=en(t,bn(Lo())),Ci(function(n){var r=this;return e(t,function(e){return Wt(e,r,n)})})})}function wo(e,t){var n=(t=t===o?" ":Li(t)).length;if(n<2)return n?xi(t,e):t;var r=xi(t,Un(e/Nn(t)));return kn(t)?Xi(In(r),0,e).join(""):r.slice(0,e)}function $o(e){return function(t,n,i){return i&&"number"!=typeof i&&Go(t,n,i)&&(n=i=o),t=Hs(t),n===o?(n=t,t=0):n=Hs(n),function(e,t,n,i){for(var o=-1,a=qn(Un((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:Hs(i),e)}}function Eo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ys(t),n=Ys(n)),e(t,n)}}function So(e,t,n,r,i,a,s,l,u,c){var f=t&$;t|=f?S:x,(t&=~(f?x:S))&w||(t&=~(y|b));var d=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,l,u,c],p=n.apply(o,d);return Zo(e)&&oa(p,d),p.placeholder=r,la(p,e,t)}function xo(e){var t=et[e];return function(e,n){if(e=Ys(e),(n=null==n?0:Kn(zs(n),292))&&Vn(e)){var r=(qs(e)+"e").split("e");return+((r=(qs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Co=nr&&1/Dn(new nr([,-0]))[1]==I?function(e){return new nr(e)}:Pl;function To(e){return function(t){var n=Vo(t);return n==Z?_n(t):n==re?Mn(t):function(e,t){return en(t,function(t){return[t,e[t]]})}(t,e(t))}}function ko(e,t,n,i,a,s,u,c){var f=t&b;if(!f&&"function"!=typeof e)throw new it(l);var p=i?i.length:0;if(p||(t&=~(S|x),i=a=o),u=u===o?u:qn(zs(u),0),c=c===o?c:zs(c),p-=a?a.length:0,t&x){var h=i,g=a;i=a=o}var m=f?o:Fo(e),v=[e,t,n,i,a,h,g,s,u,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|b|C),a=r==C&&n==$||r==C&&n==T&&e[7].length<=t[8]||r==(C|T)&&t[7].length<=t[8]&&n==$;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:w);var s=t[3];if(s){var l=e[3];e[3]=l?no(l,s,t[4]):s,e[4]=l?On(e[3],d):t[4]}(s=t[5])&&(l=e[5],e[5]=l?ro(l,s,t[6]):s,e[6]=l?On(e[5],d):t[6]),(s=t[7])&&(e[7]=s),r&C&&(e[8]=null==e[8]?t[8]:Kn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],a=v[4],!(c=v[9]=v[9]===o?f?0:e.length:qn(v[9]-p,0))&&t&($|E)&&(t&=~($|E)),t&&t!=y)k=t==$||t==E?function(e,t,n){var i=po(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=Po(a);u--;)l[u]=arguments[u];var f=s<3&&l[0]!==c&&l[s-1]!==c?[]:On(l,c);return(s-=f.length)<n?So(e,t,mo,a.placeholder,o,l,f,o,o,n-s):Wt(this&&this!==It&&this instanceof a?i:e,this,l)}}(e,t,c):t!=S&&t!=(y|S)||a.length?mo.apply(o,v):function(e,t,n,i){var o=t&y,a=po(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,f=r(c+l),d=this&&this!==It&&this instanceof t?a:e;++u<c;)f[u]=i[u];for(;l--;)f[u++]=arguments[++s];return Wt(d,o?n:this,f)}}(e,t,n,i);else var k=function(e,t,n){var r=t&y,i=po(e);return function t(){return(this&&this!==It&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return la((m?Ai:oa)(k,v),e,t)}function _o(e,t,n,r){return e===o||gs(e,st[n])&&!ct.call(r,n)?t:e}function Ao(e,t,n,r,i,a){return As(e)&&As(t)&&(a.set(t,e),vi(e,t,o,Ao,a),a.delete(t)),e}function Oo(e){return Ns(e)?o:e}function Do(e,t,n,r,i,a){var s=n&m,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=n&v?new Sr:o;for(a.set(e,t),a.set(t,e);++d<l;){var g=e[d],y=t[d];if(r)var b=s?r(y,g,d,t,e,a):r(g,y,d,e,t,a);if(b!==o){if(b)continue;p=!1;break}if(h){if(!on(t,function(e,t){if(!$n(h,t)&&(g===e||i(g,e,n,r,a)))return h.push(t)})){p=!1;break}}else if(g!==y&&!i(g,y,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Mo(e){return sa(na(e,o,wa),e+"")}function No(e){return Qr(e,al,Ho)}function Io(e){return Qr(e,sl,zo)}var Fo=or?function(e){return or.get(e)}:Pl;function Ro(e){for(var t=e.name+"",n=ar[t],r=ct.call(ar,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Po(e){return(ct.call(gr,"placeholder")?gr:e).placeholder}function Lo(){var e=gr.iteratee||Nl;return e=e===Nl?ci:e,arguments.length?e(arguments[0],arguments[1]):e}function jo(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Uo(e){for(var t=al(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ea(i)]}return t}function Bo(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return ui(n)?n:o}var Ho=Hn?function(e){return null==e?[]:(e=tt(e),Zt(Hn(e),function(t){return Nt.call(e,t)}))}:Vl,zo=Hn?function(e){for(var t=[];e;)tn(t,Ho(e)),e=At(e);return t}:Vl,Vo=ei;function Yo(e,t,n){for(var r=-1,i=(t=Ki(t,e)).length,o=!1;++r<i;){var a=da(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_s(i)&&Ko(a,i)&&(bs(e)||ys(e))}function Wo(e){return"function"!=typeof e.constructor||Qo(e)?{}:mr(At(e))}function qo(e){return bs(e)||ys(e)||!!(Rt&&e&&e[Rt])}function Ko(e,t){var n=typeof e;return!!(t=null==t?F:t)&&("number"==n||"symbol"!=n&&Ge.test(e))&&e>-1&&e%1==0&&e<t}function Go(e,t,n){if(!As(n))return!1;var r=typeof t;return!!("number"==r?$s(n)&&Ko(t,n.length):"string"==r&&t in n)&&gs(n[t],e)}function Xo(e,t){if(bs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ps(e))||De.test(e)||!Oe.test(e)||null!=t&&e in tt(t)}function Zo(e){var t=Ro(e),n=gr[t];if("function"!=typeof n||!(t in br.prototype))return!1;if(e===n)return!0;var r=Fo(n);return!!r&&e===r[0]}(Qn&&Vo(new Qn(new ArrayBuffer(1)))!=ce||er&&Vo(new er)!=Z||tr&&"[object Promise]"!=Vo(tr.resolve())||nr&&Vo(new nr)!=re||rr&&Vo(new rr)!=se)&&(Vo=function(e){var t=ei(e),n=t==ee?e.constructor:o,r=n?pa(n):"";if(r)switch(r){case sr:return ce;case lr:return Z;case ur:return"[object Promise]";case cr:return re;case fr:return se}return t});var Jo=lt?Ts:Yl;function Qo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function ea(e){return e==e&&!As(e)}function ta(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in tt(n))}}function na(e,t,n){return t=qn(t===o?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=qn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),Wt(e,this,l)}}function ra(e,t){return t.length<2?e:Jr(e,Mi(t,0,-1))}function ia(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var oa=ua(Ai),aa=jn||function(e,t){return It.setTimeout(e,t)},sa=ua(Oi);function la(e,t,n){var r=t+"";return sa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Kt(B,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Le);return t?t[1].split(je):[]}(r),n)))}function ua(e){var t=0,n=0;return function(){var r=Gn(),i=D-(r-n);if(n=r,i>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ca(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Si(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var fa=function(e){var t=us(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Me,function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)}),t});function da(e){if("string"==typeof e||Ps(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function pa(e){if(null!=e){try{return ut.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ha(e){if(e instanceof br)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ga=Ci(function(e,t){return Es(e)?Ur(e,Wr(t,1,Es,!0)):[]}),ma=Ci(function(e,t){var n=Ca(t);return Es(n)&&(n=o),Es(e)?Ur(e,Wr(t,1,Es,!0),Lo(n,2)):[]}),va=Ci(function(e,t){var n=Ca(t);return Es(n)&&(n=o),Es(e)?Ur(e,Wr(t,1,Es,!0),o,n):[]});function ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:zs(n);return i<0&&(i=qn(r+i,0)),ln(e,Lo(t,3),i)}function ba(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=zs(n),i=n<0?qn(r+i,0):Kn(i,r-1)),ln(e,Lo(t,3),i,!0)}function wa(e){return null!=e&&e.length?Wr(e,1):[]}function $a(e){return e&&e.length?e[0]:o}var Ea=Ci(function(e){var t=en(e,Wi);return t.length&&t[0]===e[0]?ii(t):[]}),Sa=Ci(function(e){var t=Ca(e),n=en(e,Wi);return t===Ca(n)?t=o:n.pop(),n.length&&n[0]===e[0]?ii(n,Lo(t,2)):[]}),xa=Ci(function(e){var t=Ca(e),n=en(e,Wi);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?ii(n,o,t):[]});function Ca(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ta=Ci(ka);function ka(e,t){return e&&e.length&&t&&t.length?$i(e,t):e}var _a=Mo(function(e,t){var n=null==e?0:e.length,r=Fr(e,t);return Ei(e,en(t,function(e){return Ko(e,n)?+e:e}).sort(to)),r});function Aa(e){return null==e?e:Jn.call(e)}var Oa=Ci(function(e){return ji(Wr(e,1,Es,!0))}),Da=Ci(function(e){var t=Ca(e);return Es(t)&&(t=o),ji(Wr(e,1,Es,!0),Lo(t,2))}),Ma=Ci(function(e){var t=Ca(e);return t="function"==typeof t?t:o,ji(Wr(e,1,Es,!0),o,t)});function Na(e){if(!e||!e.length)return[];var t=0;return e=Zt(e,function(e){if(Es(e))return t=qn(e.length,t),!0}),vn(t,function(t){return en(e,pn(t))})}function Ia(e,t){if(!e||!e.length)return[];var n=Na(e);return null==t?n:en(n,function(e){return Wt(t,o,e)})}var Fa=Ci(function(e,t){return Es(e)?Ur(e,t):[]}),Ra=Ci(function(e){return Vi(Zt(e,Es))}),Pa=Ci(function(e){var t=Ca(e);return Es(t)&&(t=o),Vi(Zt(e,Es),Lo(t,2))}),La=Ci(function(e){var t=Ca(e);return t="function"==typeof t?t:o,Vi(Zt(e,Es),o,t)}),ja=Ci(Na);var Ua=Ci(function(e){var t=e.length,n=t>1?e[t-1]:o;return Ia(e,n="function"==typeof n?(e.pop(),n):o)});function Ba(e){var t=gr(e);return t.__chain__=!0,t}function Ha(e,t){return t(e)}var za=Mo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Fr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Ko(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ha,args:[i],thisArg:o}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Va=ao(function(e,t,n){ct.call(e,n)?++e[n]:Ir(e,n,1)});var Ya=ho(ya),Wa=ho(ba);function qa(e,t){return(bs(e)?Kt:Br)(e,Lo(t,3))}function Ka(e,t){return(bs(e)?Gt:Hr)(e,Lo(t,3))}var Ga=ao(function(e,t,n){ct.call(e,n)?e[n].push(t):Ir(e,n,[t])});var Xa=Ci(function(e,t,n){var i=-1,o="function"==typeof t,a=$s(e)?r(e.length):[];return Br(e,function(e){a[++i]=o?Wt(t,e,n):oi(e,t,n)}),a}),Za=ao(function(e,t,n){Ir(e,n,t)});function Ja(e,t){return(bs(e)?en:hi)(e,Lo(t,3))}var Qa=ao(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var es=Ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Go(e,t[0],t[1])?t=[]:n>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),bi(e,Wr(t,1),[])}),ts=Ln||function(){return It.Date.now()};function ns(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ko(e,C,o,o,o,o,t)}function rs(e,t){var n;if("function"!=typeof t)throw new it(l);return e=zs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var is=Ci(function(e,t,n){var r=y;if(n.length){var i=On(n,Po(is));r|=S}return ko(e,r,t,n,i)}),os=Ci(function(e,t,n){var r=y|b;if(n.length){var i=On(n,Po(os));r|=S}return ko(t,r,e,n,i)});function as(e,t,n){var r,i,a,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new it(l);function g(t){var n=r,a=i;return r=i=o,f=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=a}function v(){var e=ts();if(m(e))return y(e);u=aa(v,function(e){var n=t-(e-c);return p?Kn(n,a-(e-f)):n}(e))}function y(e){return u=o,h&&r?g(e):(r=i=o,s)}function b(){var e=ts(),n=m(e);if(r=arguments,i=this,c=e,n){if(u===o)return function(e){return f=e,u=aa(v,t),d?g(e):s}(c);if(p)return Zi(u),u=aa(v,t),g(c)}return u===o&&(u=aa(v,t)),s}return t=Ys(t)||0,As(n)&&(d=!!n.leading,a=(p="maxWait"in n)?qn(Ys(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==o&&Zi(u),f=0,r=c=i=u=o},b.flush=function(){return u===o?s:y(ts())},b}var ss=Ci(function(e,t){return jr(e,1,t)}),ls=Ci(function(e,t,n){return jr(e,Ys(t)||0,n)});function us(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(us.Cache||Er),n}function cs(e){if("function"!=typeof e)throw new it(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}us.Cache=Er;var fs=Gi(function(e,t){var n=(t=1==t.length&&bs(t[0])?en(t[0],bn(Lo())):en(Wr(t,1),bn(Lo()))).length;return Ci(function(r){for(var i=-1,o=Kn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Wt(e,this,r)})}),ds=Ci(function(e,t){var n=On(t,Po(ds));return ko(e,S,o,t,n)}),ps=Ci(function(e,t){var n=On(t,Po(ps));return ko(e,x,o,t,n)}),hs=Mo(function(e,t){return ko(e,T,o,o,o,t)});function gs(e,t){return e===t||e!=e&&t!=t}var ms=Eo(ti),vs=Eo(function(e,t){return e>=t}),ys=ai(function(){return arguments}())?ai:function(e){return Os(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},bs=r.isArray,ws=Ut?bn(Ut):function(e){return Os(e)&&ei(e)==ue};function $s(e){return null!=e&&_s(e.length)&&!Ts(e)}function Es(e){return Os(e)&&$s(e)}var Ss=zn||Yl,xs=Bt?bn(Bt):function(e){return Os(e)&&ei(e)==W};function Cs(e){if(!Os(e))return!1;var t=ei(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Ns(e)}function Ts(e){if(!As(e))return!1;var t=ei(e);return t==G||t==X||t==V||t==te}function ks(e){return"number"==typeof e&&e==zs(e)}function _s(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=F}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Os(e){return null!=e&&"object"==typeof e}var Ds=Ht?bn(Ht):function(e){return Os(e)&&Vo(e)==Z};function Ms(e){return"number"==typeof e||Os(e)&&ei(e)==J}function Ns(e){if(!Os(e)||ei(e)!=ee)return!1;var t=At(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ht}var Is=zt?bn(zt):function(e){return Os(e)&&ei(e)==ne};var Fs=Vt?bn(Vt):function(e){return Os(e)&&Vo(e)==re};function Rs(e){return"string"==typeof e||!bs(e)&&Os(e)&&ei(e)==ie}function Ps(e){return"symbol"==typeof e||Os(e)&&ei(e)==oe}var Ls=Yt?bn(Yt):function(e){return Os(e)&&_s(e.length)&&!!kt[ei(e)]};var js=Eo(pi),Us=Eo(function(e,t){return e<=t});function Bs(e){if(!e)return[];if($s(e))return Rs(e)?In(e):io(e);if(Lt&&e[Lt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Lt]());var t=Vo(e);return(t==Z?_n:t==re?Dn:gl)(e)}function Hs(e){return e?(e=Ys(e))===I||e===-I?(e<0?-1:1)*R:e==e?e:0:0===e?e:0}function zs(e){var t=Hs(e),n=t%1;return t==t?n?t-n:t:0}function Vs(e){return e?Rr(zs(e),0,L):0}function Ys(e){if("number"==typeof e)return e;if(Ps(e))return P;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=We.test(e);return n||Ke.test(e)?Dt(e.slice(2),n?2:8):Ye.test(e)?P:+e}function Ws(e){return oo(e,sl(e))}function qs(e){return null==e?"":Li(e)}var Ks=so(function(e,t){if(Qo(t)||$s(t))oo(t,al(t),e);else for(var n in t)ct.call(t,n)&&Or(e,n,t[n])}),Gs=so(function(e,t){oo(t,sl(t),e)}),Xs=so(function(e,t,n,r){oo(t,sl(t),e,r)}),Zs=so(function(e,t,n,r){oo(t,al(t),e,r)}),Js=Mo(Fr);var Qs=Ci(function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Go(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=sl(a),l=-1,u=s.length;++l<u;){var c=s[l],f=e[c];(f===o||gs(f,st[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e}),el=Ci(function(e){return e.push(o,Ao),Wt(ul,o,e)});function tl(e,t,n){var r=null==e?o:Jr(e,t);return r===o?n:r}function nl(e,t){return null!=e&&Yo(e,t,ri)}var rl=vo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n},Al(Ml)),il=vo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ct.call(e,t)?e[t].push(n):e[t]=[n]},Lo),ol=Ci(oi);function al(e){return $s(e)?Cr(e):fi(e)}function sl(e){return $s(e)?Cr(e,!0):di(e)}var ll=so(function(e,t,n){vi(e,t,n)}),ul=so(function(e,t,n,r){vi(e,t,n,r)}),cl=Mo(function(e,t){var n={};if(null==e)return n;var r=!1;t=en(t,function(t){return t=Ki(t,e),r||(r=t.length>1),t}),oo(e,Io(e),n),r&&(n=Pr(n,p|h|g,Oo));for(var i=t.length;i--;)Ui(n,t[i]);return n});var fl=Mo(function(e,t){return null==e?{}:function(e,t){return wi(e,t,function(t,n){return nl(e,n)})}(e,t)});function dl(e,t){if(null==e)return{};var n=en(Io(e),function(e){return[e]});return t=Lo(t),wi(e,n,function(e,n){return t(e,n[0])})}var pl=To(al),hl=To(sl);function gl(e){return null==e?[]:wn(e,al(e))}var ml=fo(function(e,t,n){return t=t.toLowerCase(),e+(n?vl(t):t)});function vl(e){return Cl(qs(e).toLowerCase())}function yl(e){return(e=qs(e))&&e.replace(Xe,xn).replace(wt,"")}var bl=fo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wl=fo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),$l=co("toLowerCase");var El=fo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Sl=fo(function(e,t,n){return e+(n?" ":"")+Cl(t)});var xl=fo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Cl=co("toUpperCase");function Tl(e,t,n){return e=qs(e),(t=n?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(Et)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var kl=Ci(function(e,t){try{return Wt(e,o,t)}catch(e){return Cs(e)?e:new Re(e)}}),_l=Mo(function(e,t){return Kt(t,function(t){t=da(t),Ir(e,t,is(e[t],e))}),e});function Al(e){return function(){return e}}var Ol=go(),Dl=go(!0);function Ml(e){return e}function Nl(e){return ci("function"==typeof e?e:Pr(e,p))}var Il=Ci(function(e,t){return function(n){return oi(n,e,t)}}),Fl=Ci(function(e,t){return function(n){return oi(e,n,t)}});function Rl(e,t,n){var r=al(t),i=Zr(t,r);null!=n||As(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Zr(t,al(t)));var o=!(As(n)&&"chain"in n&&!n.chain),a=Ts(e);return Kt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})}),e}function Pl(){}var Ll=bo(en),jl=bo(Xt),Ul=bo(on);function Bl(e){return Xo(e)?pn(da(e)):function(e){return function(t){return Jr(t,e)}}(e)}var Hl=$o(),zl=$o(!0);function Vl(){return[]}function Yl(){return!1}var Wl=yo(function(e,t){return e+t},0),ql=xo("ceil"),Kl=yo(function(e,t){return e/t},1),Gl=xo("floor");var Xl,Zl=yo(function(e,t){return e*t},1),Jl=xo("round"),Ql=yo(function(e,t){return e-t},0);return gr.after=function(e,t){if("function"!=typeof t)throw new it(l);return e=zs(e),function(){if(--e<1)return t.apply(this,arguments)}},gr.ary=ns,gr.assign=Ks,gr.assignIn=Gs,gr.assignInWith=Xs,gr.assignWith=Zs,gr.at=Js,gr.before=rs,gr.bind=is,gr.bindAll=_l,gr.bindKey=os,gr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bs(e)?e:[e]},gr.chain=Ba,gr.chunk=function(e,t,n){t=(n?Go(e,t,n):t===o)?1:qn(zs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(Un(i/t));a<i;)l[s++]=Mi(e,a,a+=t);return l},gr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},gr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return tn(bs(n)?io(n):[n],Wr(t,1))},gr.cond=function(e){var t=null==e?0:e.length,n=Lo();return e=t?en(e,function(e){if("function"!=typeof e[1])throw new it(l);return[n(e[0]),e[1]]}):[],Ci(function(n){for(var r=-1;++r<t;){var i=e[r];if(Wt(i[0],this,n))return Wt(i[1],this,n)}})},gr.conforms=function(e){return function(e){var t=al(e);return function(n){return Lr(n,e,t)}}(Pr(e,p))},gr.constant=Al,gr.countBy=Va,gr.create=function(e,t){var n=mr(e);return null==t?n:Nr(n,t)},gr.curry=function e(t,n,r){var i=ko(t,$,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},gr.curryRight=function e(t,n,r){var i=ko(t,E,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},gr.debounce=as,gr.defaults=Qs,gr.defaultsDeep=el,gr.defer=ss,gr.delay=ls,gr.difference=ga,gr.differenceBy=ma,gr.differenceWith=va,gr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Mi(e,(t=n||t===o?1:zs(t))<0?0:t,r):[]},gr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Mi(e,0,(t=r-(t=n||t===o?1:zs(t)))<0?0:t):[]},gr.dropRightWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3),!0,!0):[]},gr.dropWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3),!0):[]},gr.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Go(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=zs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:zs(r))<0&&(r+=i),r=n>r?0:Vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},gr.filter=function(e,t){return(bs(e)?Zt:Yr)(e,Lo(t,3))},gr.flatMap=function(e,t){return Wr(Ja(e,t),1)},gr.flatMapDeep=function(e,t){return Wr(Ja(e,t),I)},gr.flatMapDepth=function(e,t,n){return n=n===o?1:zs(n),Wr(Ja(e,t),n)},gr.flatten=wa,gr.flattenDeep=function(e){return null!=e&&e.length?Wr(e,I):[]},gr.flattenDepth=function(e,t){return null!=e&&e.length?Wr(e,t=t===o?1:zs(t)):[]},gr.flip=function(e){return ko(e,k)},gr.flow=Ol,gr.flowRight=Dl,gr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},gr.functions=function(e){return null==e?[]:Zr(e,al(e))},gr.functionsIn=function(e){return null==e?[]:Zr(e,sl(e))},gr.groupBy=Ga,gr.initial=function(e){return null!=e&&e.length?Mi(e,0,-1):[]},gr.intersection=Ea,gr.intersectionBy=Sa,gr.intersectionWith=xa,gr.invert=rl,gr.invertBy=il,gr.invokeMap=Xa,gr.iteratee=Nl,gr.keyBy=Za,gr.keys=al,gr.keysIn=sl,gr.map=Ja,gr.mapKeys=function(e,t){var n={};return t=Lo(t,3),Gr(e,function(e,r,i){Ir(n,t(e,r,i),e)}),n},gr.mapValues=function(e,t){var n={};return t=Lo(t,3),Gr(e,function(e,r,i){Ir(n,r,t(e,r,i))}),n},gr.matches=function(e){return gi(Pr(e,p))},gr.matchesProperty=function(e,t){return mi(e,Pr(t,p))},gr.memoize=us,gr.merge=ll,gr.mergeWith=ul,gr.method=Il,gr.methodOf=Fl,gr.mixin=Rl,gr.negate=cs,gr.nthArg=function(e){return e=zs(e),Ci(function(t){return yi(t,e)})},gr.omit=cl,gr.omitBy=function(e,t){return dl(e,cs(Lo(t)))},gr.once=function(e){return rs(2,e)},gr.orderBy=function(e,t,n,r){return null==e?[]:(bs(t)||(t=null==t?[]:[t]),bs(n=r?o:n)||(n=null==n?[]:[n]),bi(e,t,n))},gr.over=Ll,gr.overArgs=fs,gr.overEvery=jl,gr.overSome=Ul,gr.partial=ds,gr.partialRight=ps,gr.partition=Qa,gr.pick=fl,gr.pickBy=dl,gr.property=Bl,gr.propertyOf=function(e){return function(t){return null==e?o:Jr(e,t)}},gr.pull=Ta,gr.pullAll=ka,gr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,Lo(n,2)):e},gr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,o,n):e},gr.pullAt=_a,gr.range=Hl,gr.rangeRight=zl,gr.rearg=hs,gr.reject=function(e,t){return(bs(e)?Zt:Yr)(e,cs(Lo(t,3)))},gr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Ei(e,i),n},gr.rest=function(e,t){if("function"!=typeof e)throw new it(l);return Ci(e,t=t===o?t:zs(t))},gr.reverse=Aa,gr.sampleSize=function(e,t,n){return t=(n?Go(e,t,n):t===o)?1:zs(t),(bs(e)?kr:ki)(e,t)},gr.set=function(e,t,n){return null==e?e:_i(e,t,n)},gr.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:_i(e,t,n,r)},gr.shuffle=function(e){return(bs(e)?_r:Di)(e)},gr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Go(e,t,n)?(t=0,n=r):(t=null==t?0:zs(t),n=n===o?r:zs(n)),Mi(e,t,n)):[]},gr.sortBy=es,gr.sortedUniq=function(e){return e&&e.length?Ri(e):[]},gr.sortedUniqBy=function(e,t){return e&&e.length?Ri(e,Lo(t,2)):[]},gr.split=function(e,t,n){return n&&"number"!=typeof n&&Go(e,t,n)&&(t=n=o),(n=n===o?L:n>>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Is(t))&&!(t=Li(t))&&kn(e)?Xi(In(e),0,n):e.split(t,n):[]},gr.spread=function(e,t){if("function"!=typeof e)throw new it(l);return t=null==t?0:qn(zs(t),0),Ci(function(n){var r=n[t],i=Xi(n,0,t);return r&&tn(i,r),Wt(e,this,i)})},gr.tail=function(e){var t=null==e?0:e.length;return t?Mi(e,1,t):[]},gr.take=function(e,t,n){return e&&e.length?Mi(e,0,(t=n||t===o?1:zs(t))<0?0:t):[]},gr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Mi(e,(t=r-(t=n||t===o?1:zs(t)))<0?0:t,r):[]},gr.takeRightWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3),!1,!0):[]},gr.takeWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3)):[]},gr.tap=function(e,t){return t(e),e},gr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(l);return As(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),as(e,t,{leading:r,maxWait:t,trailing:i})},gr.thru=Ha,gr.toArray=Bs,gr.toPairs=pl,gr.toPairsIn=hl,gr.toPath=function(e){return bs(e)?en(e,da):Ps(e)?[e]:io(fa(qs(e)))},gr.toPlainObject=Ws,gr.transform=function(e,t,n){var r=bs(e),i=r||Ss(e)||Ls(e);if(t=Lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:As(e)&&Ts(o)?mr(At(e)):{}}return(i?Kt:Gr)(e,function(e,r,i){return t(n,e,r,i)}),n},gr.unary=function(e){return ns(e,1)},gr.union=Oa,gr.unionBy=Da,gr.unionWith=Ma,gr.uniq=function(e){return e&&e.length?ji(e):[]},gr.uniqBy=function(e,t){return e&&e.length?ji(e,Lo(t,2)):[]},gr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ji(e,o,t):[]},gr.unset=function(e,t){return null==e||Ui(e,t)},gr.unzip=Na,gr.unzipWith=Ia,gr.update=function(e,t,n){return null==e?e:Bi(e,t,qi(n))},gr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Bi(e,t,qi(n),r)},gr.values=gl,gr.valuesIn=function(e){return null==e?[]:wn(e,sl(e))},gr.without=Fa,gr.words=Tl,gr.wrap=function(e,t){return ds(qi(t),e)},gr.xor=Ra,gr.xorBy=Pa,gr.xorWith=La,gr.zip=ja,gr.zipObject=function(e,t){return Yi(e||[],t||[],Or)},gr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],_i)},gr.zipWith=Ua,gr.entries=pl,gr.entriesIn=hl,gr.extend=Gs,gr.extendWith=Xs,Rl(gr,gr),gr.add=Wl,gr.attempt=kl,gr.camelCase=ml,gr.capitalize=vl,gr.ceil=ql,gr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Ys(n))==n?n:0),t!==o&&(t=(t=Ys(t))==t?t:0),Rr(Ys(e),t,n)},gr.clone=function(e){return Pr(e,g)},gr.cloneDeep=function(e){return Pr(e,p|g)},gr.cloneDeepWith=function(e,t){return Pr(e,p|g,t="function"==typeof t?t:o)},gr.cloneWith=function(e,t){return Pr(e,g,t="function"==typeof t?t:o)},gr.conformsTo=function(e,t){return null==t||Lr(e,t,al(t))},gr.deburr=yl,gr.defaultTo=function(e,t){return null==e||e!=e?t:e},gr.divide=Kl,gr.endsWith=function(e,t,n){e=qs(e),t=Li(t);var r=e.length,i=n=n===o?r:Rr(zs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},gr.eq=gs,gr.escape=function(e){return(e=qs(e))&&Te.test(e)?e.replace(xe,Cn):e},gr.escapeRegExp=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Ne,"\\$&"):e},gr.every=function(e,t,n){var r=bs(e)?Xt:zr;return n&&Go(e,t,n)&&(t=o),r(e,Lo(t,3))},gr.find=Ya,gr.findIndex=ya,gr.findKey=function(e,t){return sn(e,Lo(t,3),Gr)},gr.findLast=Wa,gr.findLastIndex=ba,gr.findLastKey=function(e,t){return sn(e,Lo(t,3),Xr)},gr.floor=Gl,gr.forEach=qa,gr.forEachRight=Ka,gr.forIn=function(e,t){return null==e?e:qr(e,Lo(t,3),sl)},gr.forInRight=function(e,t){return null==e?e:Kr(e,Lo(t,3),sl)},gr.forOwn=function(e,t){return e&&Gr(e,Lo(t,3))},gr.forOwnRight=function(e,t){return e&&Xr(e,Lo(t,3))},gr.get=tl,gr.gt=ms,gr.gte=vs,gr.has=function(e,t){return null!=e&&Yo(e,t,ni)},gr.hasIn=nl,gr.head=$a,gr.identity=Ml,gr.includes=function(e,t,n,r){e=$s(e)?e:gl(e),n=n&&!r?zs(n):0;var i=e.length;return n<0&&(n=qn(i+n,0)),Rs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&un(e,t,n)>-1},gr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:zs(n);return i<0&&(i=qn(r+i,0)),un(e,t,i)},gr.inRange=function(e,t,n){return t=Hs(t),n===o?(n=t,t=0):n=Hs(n),function(e,t,n){return e>=Kn(t,n)&&e<qn(t,n)}(e=Ys(e),t,n)},gr.invoke=ol,gr.isArguments=ys,gr.isArray=bs,gr.isArrayBuffer=ws,gr.isArrayLike=$s,gr.isArrayLikeObject=Es,gr.isBoolean=function(e){return!0===e||!1===e||Os(e)&&ei(e)==Y},gr.isBuffer=Ss,gr.isDate=xs,gr.isElement=function(e){return Os(e)&&1===e.nodeType&&!Ns(e)},gr.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(bs(e)||"string"==typeof e||"function"==typeof e.splice||Ss(e)||Ls(e)||ys(e)))return!e.length;var t=Vo(e);if(t==Z||t==re)return!e.size;if(Qo(e))return!fi(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},gr.isEqual=function(e,t){return si(e,t)},gr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?si(e,t,o,n):!!r},gr.isError=Cs,gr.isFinite=function(e){return"number"==typeof e&&Vn(e)},gr.isFunction=Ts,gr.isInteger=ks,gr.isLength=_s,gr.isMap=Ds,gr.isMatch=function(e,t){return e===t||li(e,t,Uo(t))},gr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,li(e,t,Uo(t),n)},gr.isNaN=function(e){return Ms(e)&&e!=+e},gr.isNative=function(e){if(Jo(e))throw new Re(s);return ui(e)},gr.isNil=function(e){return null==e},gr.isNull=function(e){return null===e},gr.isNumber=Ms,gr.isObject=As,gr.isObjectLike=Os,gr.isPlainObject=Ns,gr.isRegExp=Is,gr.isSafeInteger=function(e){return ks(e)&&e>=-F&&e<=F},gr.isSet=Fs,gr.isString=Rs,gr.isSymbol=Ps,gr.isTypedArray=Ls,gr.isUndefined=function(e){return e===o},gr.isWeakMap=function(e){return Os(e)&&Vo(e)==se},gr.isWeakSet=function(e){return Os(e)&&ei(e)==le},gr.join=function(e,t){return null==e?"":Yn.call(e,t)},gr.kebabCase=bl,gr.last=Ca,gr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=zs(n))<0?qn(r+i,0):Kn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):ln(e,fn,i,!0)},gr.lowerCase=wl,gr.lowerFirst=$l,gr.lt=js,gr.lte=Us,gr.max=function(e){return e&&e.length?Vr(e,Ml,ti):o},gr.maxBy=function(e,t){return e&&e.length?Vr(e,Lo(t,2),ti):o},gr.mean=function(e){return dn(e,Ml)},gr.meanBy=function(e,t){return dn(e,Lo(t,2))},gr.min=function(e){return e&&e.length?Vr(e,Ml,pi):o},gr.minBy=function(e,t){return e&&e.length?Vr(e,Lo(t,2),pi):o},gr.stubArray=Vl,gr.stubFalse=Yl,gr.stubObject=function(){return{}},gr.stubString=function(){return""},gr.stubTrue=function(){return!0},gr.multiply=Zl,gr.nth=function(e,t){return e&&e.length?yi(e,zs(t)):o},gr.noConflict=function(){return It._===this&&(It._=gt),this},gr.noop=Pl,gr.now=ts,gr.pad=function(e,t,n){e=qs(e);var r=(t=zs(t))?Nn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wo(Bn(i),n)+e+wo(Un(i),n)},gr.padEnd=function(e,t,n){e=qs(e);var r=(t=zs(t))?Nn(e):0;return t&&r<t?e+wo(t-r,n):e},gr.padStart=function(e,t,n){e=qs(e);var r=(t=zs(t))?Nn(e):0;return t&&r<t?wo(t-r,n)+e:e},gr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Xn(qs(e).replace(Fe,""),t||0)},gr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Go(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Hs(e),t===o?(t=e,e=0):t=Hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Zn();return Kn(e+i*(t-e+Ot("1e-"+((i+"").length-1))),t)}return Si(e,t)},gr.reduce=function(e,t,n){var r=bs(e)?nn:gn,i=arguments.length<3;return r(e,Lo(t,4),n,i,Br)},gr.reduceRight=function(e,t,n){var r=bs(e)?rn:gn,i=arguments.length<3;return r(e,Lo(t,4),n,i,Hr)},gr.repeat=function(e,t,n){return t=(n?Go(e,t,n):t===o)?1:zs(t),xi(qs(e),t)},gr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},gr.result=function(e,t,n){var r=-1,i=(t=Ki(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[da(t[r])];a===o&&(r=i,a=n),e=Ts(a)?a.call(e):a}return e},gr.round=Jl,gr.runInContext=e,gr.sample=function(e){return(bs(e)?Tr:Ti)(e)},gr.size=function(e){if(null==e)return 0;if($s(e))return Rs(e)?Nn(e):e.length;var t=Vo(e);return t==Z||t==re?e.size:fi(e).length},gr.snakeCase=El,gr.some=function(e,t,n){var r=bs(e)?on:Ni;return n&&Go(e,t,n)&&(t=o),r(e,Lo(t,3))},gr.sortedIndex=function(e,t){return Ii(e,t)},gr.sortedIndexBy=function(e,t,n){return Fi(e,t,Lo(n,2))},gr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ii(e,t);if(r<n&&gs(e[r],t))return r}return-1},gr.sortedLastIndex=function(e,t){return Ii(e,t,!0)},gr.sortedLastIndexBy=function(e,t,n){return Fi(e,t,Lo(n,2),!0)},gr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ii(e,t,!0)-1;if(gs(e[n],t))return n}return-1},gr.startCase=Sl,gr.startsWith=function(e,t,n){return e=qs(e),n=null==n?0:Rr(zs(n),0,e.length),t=Li(t),e.slice(n,n+t.length)==t},gr.subtract=Ql,gr.sum=function(e){return e&&e.length?mn(e,Ml):0},gr.sumBy=function(e,t){return e&&e.length?mn(e,Lo(t,2)):0},gr.template=function(e,t,n){var r=gr.templateSettings;n&&Go(e,t,n)&&(t=o),e=qs(e),t=Xs({},t,r,_o);var i,a,s=Xs({},t.imports,r.imports,_o),l=al(s),c=wn(s,l),f=0,d=t.interpolate||Ze,p="__p += '",h=nt((t.escape||Ze).source+"|"+d.source+"|"+(d===Ae?ze:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),g="//# sourceURL="+(ct.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tt+"]")+"\n";e.replace(h,function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(f,l).replace(Je,Tn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=l+t.length,t}),p+="';\n";var m=ct.call(t,"variable")&&t.variable;if(m){if(Be.test(m))throw new Re(u)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(we,""):p).replace($e,"$1").replace(Ee,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=kl(function(){return Qe(l,g+"return "+p).apply(o,c)});if(v.source=p,Cs(v))throw v;return v},gr.times=function(e,t){if((e=zs(e))<1||e>F)return[];var n=L,r=Kn(e,L);t=Lo(t),e-=L;for(var i=vn(r,t);++n<e;)t(n);return i},gr.toFinite=Hs,gr.toInteger=zs,gr.toLength=Vs,gr.toLower=function(e){return qs(e).toLowerCase()},gr.toNumber=Ys,gr.toSafeInteger=function(e){return e?Rr(zs(e),-F,F):0===e?e:0},gr.toString=qs,gr.toUpper=function(e){return qs(e).toUpperCase()},gr.trim=function(e,t,n){if((e=qs(e))&&(n||t===o))return yn(e);if(!e||!(t=Li(t)))return e;var r=In(e),i=In(t);return Xi(r,En(r,i),Sn(r,i)+1).join("")},gr.trimEnd=function(e,t,n){if((e=qs(e))&&(n||t===o))return e.slice(0,Fn(e)+1);if(!e||!(t=Li(t)))return e;var r=In(e);return Xi(r,0,Sn(r,In(t))+1).join("")},gr.trimStart=function(e,t,n){if((e=qs(e))&&(n||t===o))return e.replace(Fe,"");if(!e||!(t=Li(t)))return e;var r=In(e);return Xi(r,En(r,In(t))).join("")},gr.truncate=function(e,t){var n=_,r=A;if(As(t)){var i="separator"in t?t.separator:i;n="length"in t?zs(t.length):n,r="omission"in t?Li(t.omission):r}var a=(e=qs(e)).length;if(kn(e)){var s=In(e);a=s.length}if(n>=a)return e;var l=n-Nn(r);if(l<1)return r;var u=s?Xi(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),Is(i)){if(e.slice(l).search(i)){var c,f=u;for(i.global||(i=nt(i.source,qs(Ve.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===o?l:d)}}else if(e.indexOf(Li(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},gr.unescape=function(e){return(e=qs(e))&&Ce.test(e)?e.replace(Se,Rn):e},gr.uniqueId=function(e){var t=++ft;return qs(e)+t},gr.upperCase=xl,gr.upperFirst=Cl,gr.each=qa,gr.eachRight=Ka,gr.first=$a,Rl(gr,(Xl={},Gr(gr,function(e,t){ct.call(gr.prototype,t)||(Xl[t]=e)}),Xl),{chain:!1}),gr.VERSION="4.17.21",Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){gr[e].placeholder=gr}),Kt(["drop","take"],function(e,t){br.prototype[e]=function(n){n=n===o?1:qn(zs(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(n,r.__takeCount__):r.__views__.push({size:Kn(n,L),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Kt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==M||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Kt(["head","last"],function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}}),Kt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(Ml)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Ci(function(e,t){return"function"==typeof e?new br(this):this.map(function(n){return oi(n,e,t)})}),br.prototype.reject=function(e){return this.filter(cs(Lo(e)))},br.prototype.slice=function(e,t){e=zs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=zs(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(L)},Gr(br.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=gr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(gr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof br,u=s[0],c=l||bs(t),f=function(e){var t=i.apply(gr,tn([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=l&&!p;if(!a&&c){t=g?t:new br(this);var m=e.apply(t,s);return m.__actions__.push({func:Ha,args:[f],thisArg:o}),new yr(m,d)}return h&&g?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);gr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(bs(i)?i:[],e)}return this[n](function(n){return t.apply(bs(n)?n:[],e)})}}),Gr(br.prototype,function(e,t){var n=gr[t];if(n){var r=n.name+"";ct.call(ar,r)||(ar[r]=[]),ar[r].push({name:t,func:n})}}),ar[mo(o,b).name]=[{name:"wrapper",func:o}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Kn(t,e+a);break;case"takeRight":e=qn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=Kn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return zi(e,this.__actions__);var h=[];e:for(;l--&&d<p;){for(var g=-1,m=e[u+=t];++g<f;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(b==N)m=w;else if(!w){if(b==M)continue e;break e}}h[d++]=m}return h},gr.prototype.at=za,gr.prototype.chain=function(){return Ba(this)},gr.prototype.commit=function(){return new yr(this.value(),this.__chain__)},gr.prototype.next=function(){this.__values__===o&&(this.__values__=Bs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},gr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=ha(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},gr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:Ha,args:[Aa],thisArg:o}),new yr(t,this.__chain__)}return this.thru(Aa)},gr.prototype.toJSON=gr.prototype.valueOf=gr.prototype.value=function(){return zi(this.__wrapped__,this.__actions__)},gr.prototype.first=gr.prototype.head,Lt&&(gr.prototype[Lt]=function(){return this}),gr}();It._=Pn,(i=function(){return Pn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n("yLpj"),n("YuTi")(e))},M6Qj:function(e,t,n){var r=n("hPIQ"),i=n("K0xU")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},MfQN:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},MtdB:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},Mukb:function(e,t,n){var r=n("hswa"),i=n("RjD/");e.exports=n("nh4g")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},N8g3:function(e,t,n){t.f=n("K0xU")},NO8f:function(e,t,n){n("7DDg")("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},NeU8:function(e,t,n){var r;void 0===(r=function(){return function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(e,t,n,r){"use strict";var i,o,a,s,l,u,c,f,d,p,h,g,m,v,y,b,w={},$=[],E=e,S=[],x="translate-cloak",C=!1,T=!1,k=".",_=!1,A=!1,O=0,D=!0,M="default",N={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n[0].toLowerCase()}},I=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((n=i.languages[e])&&n.length)return n;for(e=0;e<o.length;e++)if((n=i[o[e]])&&n.length)return n;return null};I.displayName="angular-translate/service: getFirstBrowserLanguage";var F=function(){var e=I()||"";return N[M]&&(e=N[M](e)),e};F.displayName="angular-translate/service: getLocale";var R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},L=function(e){return angular.isString(e)?e.toLowerCase():e},j=function(e){if(e){for(var t,n=[],r=L(e),i=0,a=$.length;i<a;i++)n.push(L($[i]));if((i=R(n,r))>-1)return $[i];if(o)for(var s in o)if(o.hasOwnProperty(s)){var l=!1,u=Object.prototype.hasOwnProperty.call(o,s)&&L(s)===L(e);if("*"===s.slice(-1)&&(l=L(s.slice(0,-1))===L(e.slice(0,s.length-1))),(u||l)&&(t=o[s],R(n,L(t))>-1))return t}var c=e.split("_");return c.length>1&&R(n,L(c[0]))>-1?c[0]:void 0}},U=function(e,t){if(!e&&!t)return w;if(e&&!t){if(angular.isString(e))return w[e]}else angular.isObject(w[e])||(w[e]={}),angular.extend(w[e],B(t));return this};this.translations=U,this.cloakClassName=function(e){return e?(x=e,this):x},this.nestedObjectDelimeter=function(e){return e?(k=e,this):k};var B=function(e,t,n,r){var i,o,a,s;for(i in t||(t=[]),n||(n={}),e)Object.prototype.hasOwnProperty.call(e,i)&&(s=e[i],angular.isObject(s)?B(s,t.concat(i),n,i):(o=t.length?""+t.join(k)+k+i:i,t.length&&i===r&&(a=""+t.join(k),n[a]="@:"+o),n[o]=s));return n};B.displayName="flatObject",this.addInterpolation=function(e){return S.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return p=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(H(e),this):i};var H=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return z(e),this};var z=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(i)&&R(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(e){if(e){if(!w[e]&&!h)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return l=e,this}return l},this.resolveClientLocale=function(){return F()};var V=function(e){return e?(E=e,this):f?f+E:E};this.storageKey=V,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return h=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(f=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return d=e,this},this.usePostCompiling=function(e){return C=!!e,this},this.forceAsyncReload=function(e){return T=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},M=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():F();return i=$.length&&j(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?($=e,t&&(o=t),this):$},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?O:(O=e,this)},this.statefulFilter=function(e){return void 0===e?D:(D=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return A=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var o,f,M,N=t.get(p||"$translateDefaultInterpolation"),I=!1,L={},Y={},W=function(e,t,n,s,u,d){!l&&i&&(l=i);var p=u&&u!==l?j(u)||u:l;if(u&&oe(u),angular.isArray(e))return function(e){for(var i={},o=[],a=function(e){var o=r.defer(),a=function(t){i[e]=t,o.resolve([e,t])};return W(e,t,n,s,u,d).then(a,a),o.promise},l=0,c=e.length;l<c;l++)o.push(a(e[l]));return r.all(o).then(function(){return i})}(e);var h=r.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=P.apply(e);var g=function(){var e=Y[p]||Y[i];if(f=0,c&&!e){var t=o.get(E);if(e=Y[t],a&&a.length){var n=R(a,t);f=0===n?1:0,R(a,i)<0&&a.push(i)}}return e}();if(g){var m=function(){u||(p=l),ne(e,t,n,s,p,d).then(h.resolve,h.reject)};m.displayName="promiseResolved",g.finally(m).catch(angular.noop)}else ne(e,t,n,s,p,d).then(h.resolve,h.reject);return h.promise},q=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},K=function(e){l=e,c&&o.put(W.storageKey(),l),n.$emit("$translateChangeSuccess",{language:e}),N.setLocale(l);var t=function(e,t){L[t].setLocale(l)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(L,t),n.$emit("$translateChangeEnd",{language:e})},G=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),I=!0;var o=y;"string"==typeof o&&(o=t.get(o));var a=angular.extend({},g,{key:e,$http:angular.extend({},{cache:o},g.$http)}),s=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(r,B(e))}):angular.extend(r,B(t)),I=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var l=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return l.displayName="onLoaderError",t.get(h)(a).then(s,l),i.promise};if(c&&(!(o=t.get(c)).get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(S.length){var X=function(e){var n=t.get(e);n.setLocale(i||l),L[n.getInterpolationIdentifier()]=n};X.displayName="interpolationFactoryAdder",angular.forEach(S,X)}var Z=function(e,t,n,i,o){var a=r.defer(),s=function(r){if(Object.prototype.hasOwnProperty.call(r,t)&&null!==r[t]){i.setLocale(e);var s=r[t];if("@:"===s.substr(0,2))Z(e,s.substr(2),n,i,o).then(a.resolve,a.reject);else{var u=i.interpolate(r[t],n,"service",o,t);u=ie(t,r[t],u,n,e),a.resolve(u)}i.setLocale(l)}else a.reject()};return s.displayName="fallbackTranslationResolver",function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call(w,e))t.resolve(w[e]);else if(Y[e]){var n=function(e){U(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",Y[e].then(n,t.reject)}else t.reject();return t.promise}(e).then(s,a.reject),a.promise},J=function(e,t,n,r,i){var o,a=w[e];if(a&&Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){if(r.setLocale(e),o=r.interpolate(a[t],n,"filter",i,t),o=ie(t,a[t],o,n,e,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){var s=o.$$unwrapTrustedValue();if("@:"===s.substr(0,2))return J(e,s.substr(2),n,r,i)}else if("@:"===o.substr(0,2))return J(e,o.substr(2),n,r,i);r.setLocale(l)}return o},Q=function(e,n,r,i){return d?t.get(d)(e,l,n,r,i):e},ee=function(e,t,n,i,o,s){var l=r.defer();if(e<a.length){var u=a[e];Z(u,t,n,i,s).then(function(e){l.resolve(e)},function(){return ee(e+1,t,n,i,o,s).then(l.resolve,l.reject)})}else if(o)l.resolve(o);else{var c=Q(t,n,o);d&&c?l.resolve(c):l.reject(q(t))}return l.promise},te=function(e,t,n,r,i){var o;if(e<a.length){var s=a[e];(o=J(s,t,n,r,i))||""===o||(o=te(e+1,t,n,r))}return o},ne=function(e,t,n,i,o,s){var l=r.defer(),u=o?w[o]:w,c=n?L[n]:N;if(u&&Object.prototype.hasOwnProperty.call(u,e)&&null!==u[e]){var p=u[e];if("@:"===p.substr(0,2))W(p.substr(2),t,n,i,o,s).then(l.resolve,l.reject);else{var h=c.interpolate(p,t,"service",s,e);h=ie(e,p,h,t,o),l.resolve(h)}}else{var g;d&&!I&&(g=Q(e,t,i)),o&&a&&a.length?function(e,t,n,r,i){return ee(M>0?M:f,e,t,n,r,i)}(e,t,c,i,s).then(function(e){l.resolve(e)},function(e){l.reject(q(e))}):d&&!I&&g?i?l.resolve(i):l.resolve(g):i?l.resolve(i):l.reject(q(e))}return l.promise},re=function(e,t,n,r,i){var o,s=r?w[r]:w,l=N;if(L&&Object.prototype.hasOwnProperty.call(L,n)&&(l=L[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var u=s[e];"@:"===u.substr(0,2)?o=re(u.substr(2),t,n,r,i):(o=l.interpolate(u,t,"filter",i,e),o=ie(e,u,o,t,r,i))}else{var c;d&&!I&&(c=Q(e,t,i)),r&&a&&a.length?(f=0,o=function(e,t,n,r){return te(M>0?M:f,e,t,n,r)}(e,t,l,i)):o=d&&!I&&c?c:q(e)}return o},ie=function(e,n,r,i,o,a){var s=b;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,r,i,o,a):r},oe=function(e){w[e]||!h||Y[e]||(Y[e]=G(e).then(function(e){return U(e.key,e.table),e}))};W.preferredLanguage=function(e){return e&&H(e),i},W.cloakClassName=function(){return x},W.nestedObjectDelimeter=function(){return k},W.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(z(e),h&&a&&a.length)for(var t=0,n=a.length;t<n;t++)Y[a[t]]||(Y[a[t]]=G(a[t]));W.use(W.use())}return s?a[0]:a},W.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=R(a,e);t>-1&&(M=t)}else M=0},W.proposedLanguage=function(){return u},W.storage=function(){return o},W.negotiateLocale=j,W.use=function(e){if(!e)return l;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=j(e);return $.length>0&&!i?r.reject(e):(i&&(e=i),u=e,!T&&w[e]||!h||Y[e]?Y[e]?Y[e].then(function(e){return u===e.key&&K(e.key),t.resolve(e.key),e},function(e){return!l&&a&&a.length>0&&a[0]!==e?W.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),K(e)):(Y[e]=G(e).then(function(n){return U(n.key,n.table),t.resolve(n.key),u===e&&K(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)}),Y[e].finally(function(){!function(e){u===e&&(u=void 0),Y[e]=void 0}(e)}).catch(angular.noop)),t.promise)},W.resolveClientLocale=function(){return F()},W.storageKey=function(){return V()},W.isPostCompilingEnabled=function(){return C},W.isForceAsyncReloadEnabled=function(){return T},W.isKeepContent=function(){return A},W.refresh=function(e){if(!h)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=r.defer(),i={};function o(e){var t=G(e);return Y[e]=t,t.then(function(t){w[e]={},U(e,t.table),i[e]=!0},angular.noop),t}if(t.promise.then(function(){for(var e in w)w.hasOwnProperty(e)&&(e in i||delete w[e]);l&&K(l)},angular.noop).finally(function(){n.$emit("$translateRefreshEnd",{language:e})}),e)w[e]?o(e).then(t.resolve,t.reject):t.reject();else{var s=a&&a.slice()||[];l&&-1===s.indexOf(l)&&s.push(l),r.all(s.map(o)).then(t.resolve,t.reject)}return t.promise},W.instant=function(e,t,n,r,o){var s=r&&r!==l?j(r)||r:l;if(null===e||angular.isUndefined(e))return e;if(r&&oe(r),angular.isArray(e)){for(var u={},c=0,f=e.length;c<f;c++)u[e[c]]=W.instant(e[c],t,n,r,o);return u}if(angular.isString(e)&&e.length<1)return e;e&&(e=P.apply(e));var p,h,g=[];i&&g.push(i),s&&g.push(s),a&&a.length&&(g=g.concat(a));for(var y=0,b=g.length;y<b;y++){var $=g[y];if(w[$]&&void 0!==w[$][e]&&(p=re(e,t,n,s,o)),void 0!==p)break}return p||""===p||(m||v?p=q(e):(p=N.interpolate(e,t,"filter",o),d&&!I&&(h=Q(e,t,o)),d&&!I&&h&&(p=h))),p},W.versionInfo=function(){return"2.18.4"},W.loaderCache=function(){return y},W.directivePriority=function(){return O},W.statefulFilter=function(){return D},W.isReady=function(){return _};var ae=r.defer();ae.promise.then(function(){_=!0}),W.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),_?t.resolve():ae.promise.then(t.resolve),t.promise},W.getAvailableLanguageKeys=function(){return $.length>0?$:null},W.getTranslationTable=function(e){return(e=e||W.use())&&w[e]?angular.copy(w[e]):null};var se=n.$on("$translateReady",function(){ae.resolve(),se(),se=null}),le=n.$on("$translateChangeEnd",function(){ae.resolve(),le(),le=null});if(h){if(angular.equals(w,{})&&W.use()&&W.use(W.use()),a&&a.length)for(var ue=function(e){return U(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},ce=0,fe=a.length;ce<fe;ce++){var de=a[ce];!T&&w[de]||(Y[de]=G(de).then(ue))}}else n.$emit("$translateReady",{language:W.use()});return W}]}function n(e,t){"use strict";var n={setLocale:function(e){},getInterpolationIdentifier:function(){return"default"},useSanitizeValueStrategy:function(e){return t.useStrategy(e),this},interpolate:function(n,r,i,o,a){var s;return r=r||{},r=t.sanitize(r,"params",o,i),angular.isNumber(n)?s=""+n:angular.isString(n)?(s=e(n)(r),s=t.sanitize(s,"text",o,i)):s="",s}};return n}function r(e,t,n,r,i){"use strict";var o=function(e){return angular.isString(e)?e.toLowerCase():e};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(a,s){var l=s.translateValues?s.translateValues:void 0,u=s.translateInterpolation?s.translateInterpolation:void 0,c=s.translateSanitizeStrategy?s.translateSanitizeStrategy:void 0,f=a[0].outerHTML.match(/translate-value-+/i),d="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",p="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(a,h,g){a.interpolateParams={},a.preText="",a.postText="",a.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(a);var m={},v=function(e){if(angular.isFunction(v._unwatchOld)&&(v._unwatchOld(),v._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=function(){return this.toString().replace(/^\s+|\s+$/g,"")}.apply(h.text()).replace(/\n/g," "),r=n.match(d);if(angular.isArray(r)){a.preText=r[1],a.postText=r[3],m.translate=t(r[2])(a.$parent);var i=n.match(p);angular.isArray(i)&&i[2]&&i[2].length&&(v._unwatchOld=a.$watch(i[2],function(e){m.translate=e,S()}))}else m.translate=n||void 0}else m.translate=e;S()},y=function(e){g.$observe(e,function(t){m[e]=t,S()})};!function(e,t,n){if(t.translateValues&&angular.extend(e,r(t.translateValues)(a.$parent)),f)for(var i in n)if(Object.prototype.hasOwnProperty.call(t,i)&&"translateValue"===i.substr(0,14)&&"translateValues"!==i){var s=o(i.substr(14,1))+i.substr(15);e[s]=n[i]}}(a.interpolateParams,g,s);var b=!0;for(var w in g.$observe("translate",function(e){void 0===e?v(""):""===e&&b||(m.translate=e,S()),b=!1}),g)g.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&w.length>13&&y(w);if(g.$observe("translateDefault",function(e){a.defaultText=e,S()}),c&&g.$observe("translateSanitizeStrategy",function(e){a.sanitizeStrategy=r(e)(a.$parent),S()}),l&&g.$observe("translateValues",function(e){e&&a.$parent.$watch(function(){angular.extend(a.interpolateParams,r(e)(a.$parent))})}),f){var $=function(e){g.$observe(e,function(t){var n=o(e.substr(14,1))+e.substr(15);a.interpolateParams[n]=t})};for(var E in g)Object.prototype.hasOwnProperty.call(g,E)&&"translateValue"===E.substr(0,14)&&"translateValues"!==E&&$(E)}var S=function(){for(var e in m)m.hasOwnProperty(e)&&void 0!==m[e]&&x(e,m[e],a,a.interpolateParams,a.defaultText,a.translateNamespace)},x=function(t,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,i,u,o,r.translateLanguage,r.sanitizeStrategy).then(function(e){C(e,r,!0,t)},function(e){C(e,r,!1,t)})):C(n,r,!1,t)},C=function(t,r,i,o){if(i||void 0!==r.defaultText&&(t=r.defaultText),"translate"===o){(i||!i&&!e.isKeepContent()&&void 0===g.translateKeepContent)&&h.empty().append(r.preText+t+r.postText);var a=e.isPostCompilingEnabled(),l=void 0!==s.translateCompile,u=l&&"false"!==s.translateCompile;(a&&!l||u)&&n(h.contents())(r)}else{var c=g.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),h.attr(c,t)}};(l||f||g.translateDefault)&&a.$watch("interpolateParams",S,!0),a.$on("translateLanguageChanged",S);var T=i.$on("$translateChangeSuccess",S);h.text().length?g.translate?v(g.translate):v(""):g.translate&&v(g.translate),S(),a.$on("$destroy",T)}}}}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,i){var a,s,l,u={},c=function(){angular.forEach(a,function(t,o){t&&(u[o]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,s,i.translateInterpolation,void 0,n.translateLanguage,l).then(function(e){r.attr(o,e)},function(e){r.attr(o,e)}))}),angular.forEach(u,function(e,t){a[t]||(r.removeAttr(t),delete u[t])})};o(n,i.translateAttr,function(e){a=e},c),o(n,i.translateValues,function(e){s=e},c),o(n,i.translateSanitizeStrategy,function(e){l=e},c),i.translateValues&&n.$watch(i.translateValues,c,!0),n.$on("translateLanguageChanged",c);var f=t.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",f)}}}function o(e,t,n,r){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,function(e){n(e),r()},!0),n(e.$eval(t)))}function a(e,t){"use strict";return{compile:function(n){var r=function(t){t.addClass(e.cloakClassName())};return r(n),function(n,i,o){var a=function(t){t.removeClass(e.cloakClassName())}.bind(this,i),s=r.bind(this,i);o.translateCloak&&o.translateCloak.length?(o.$observe("translateCloak",function(t){e(t).then(a,s)}),t.$on("$translateChangeSuccess",function(){e(o.translateCloak).then(a,s)})):e.onReady(a)}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function u(e,t){"use strict";var n=function(n,r,i,o){if(!angular.isObject(r)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};r=e(r)(a)}return t.instant(n,r,i,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],a.$inject=["$translate","$rootScope"],u.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",function(){"use strict";var e,t,n,r=null,i=!1,o=!1;(n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=a(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=u(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=u(e,a)),e},sce:function(e,t,n){return"text"===t?e=l(e):"params"===t&&"filter"!==n&&(e=u(e,a)),e},sceParameters:function(e,t){return"params"===t&&(e=u(e,l)),e}}).escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return i=!0,r=e,this},this.$get=["$injector","$log",function(a,s){var l,u={};return a.has("$sanitize")&&(e=a.get("$sanitize")),a.has("$sce")&&(t=a.get("$sce")),{useStrategy:(l=this,function(e){l.useStrategy(e)}),sanitize:function(e,t,l,c){if(r||i||o||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),o=!0),l||null===l||(l=r),!l)return e;c||(c="service");var f=angular.isArray(l)?l:[l];return function(e,t,r,i){return angular.forEach(i,function(i){if(angular.isFunction(i))e=i(e,t,r);else if(angular.isFunction(n[i]))e=n[i](e,t,r);else{if(!angular.isString(n[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!u[n[i]])try{u[n[i]]=a.get(n[i])}catch(e){throw u[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=u[n[i]](e,t,r)}}),e}(e,t,c,f)}}}];var a=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},l=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},u=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,i){angular.isFunction(e)||(r[i]=u(e,t,n))}),n.splice(-1,1),r}return angular.isNumber(e)?e:!0===e||!1===e?e:angular.isUndefined(e)||null===e?e:t(e)}}),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",l),l.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",u),u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},Nr18:function(e,t,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),o=n("ne8i");e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},Ny4R:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.FE.LANGUAGE.it={translation:{"Type something":"Digita qualcosa",Bold:"Grassetto",Italic:"Corsivo",Underline:"Sottolineato",Strikethrough:"Barrato",Insert:"Inserisci",Delete:"Cancella",Cancel:"Cancella",OK:"OK",Back:"Indietro",Remove:"Rimuovi",More:"Di più",Update:"Aggiorna",Style:"Stile","Font Family":"Carattere","Font Size":"Dimensione Carattere",Colors:"Colori",Background:"Sfondo",Text:"Testo","HEX Color":"Colore Esadecimale","Paragraph Format":"Formattazione",Normal:"Normale",Code:"Codice","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Paragraph Style":"Stile Paragrafo","Inline Style":"Stile in Linea",Align:"Allinea","Align Left":"Allinea a Sinistra","Align Center":"Allinea al Cento","Align Right":"Allinea a Destra","Align Justify":"Giustifica",None:"Nessuno","Ordered List":"Elenchi Numerati","Unordered List":"Elenchi Puntati","Decrease Indent":"Riduci Rientro","Increase Indent":"Aumenta Rientro","Insert Link":"Inserisci Link","Open in new tab":"Apri in nuova scheda","Open Link":"Apri Link","Edit Link":"Modifica Link",Unlink:"Rimuovi Link","Choose Link":"Scegli Link","Insert Image":"Inserisci Immagine","Upload Image":"Carica Immagine","By URL":"Inserisci URL",Browse:"Sfoglia","Drop image":"Rilascia immagine","or click":"oppure clicca qui","Manage Images":"Gestione Immagini",Loading:"Caricamento",Deleting:"Eliminazione",Tags:"Etichetta","Are you sure? Image will be deleted.":"Sei sicuro? L'immagine verrà cancellata.",Replace:"Sostituisci",Uploading:"Caricamento","Loading image":"Caricamento immagine",Display:"Visualizzazione",Inline:"In Linea","Break Text":"Separa dal Testo","Alternative Text":"Testo Alternativo","Change Size":"Cambia Dimensioni",Width:"Larghezza",Height:"Altezza","Something went wrong. Please try again.":"Qualcosa non ha funzionato. Riprova, per favore.","Image Caption":"Didascalia","Advanced Edit":"Avanzato","Insert Video":"Inserisci Video","Embedded Code":"Codice Incorporato","Paste in a video URL":"Incolla l'URL del video","Drop video":"Rilascia video","Your browser does not support HTML5 video.":"Il tuo browser non supporta i video html5.","Upload Video":"Carica Video","Insert Table":"Inserisci Tabella","Table Header":"Intestazione Tabella","Remove Table":"Rimuovi Tabella","Table Style":"Stile Tabella","Horizontal Align":"Allineamento Orizzontale",Row:"Riga","Insert row above":"Inserisci una riga prima","Insert row below":"Inserisci una riga dopo","Delete row":"Cancella riga",Column:"Colonna","Insert column before":"Inserisci una colonna prima","Insert column after":"Inserisci una colonna dopo","Delete column":"Cancella colonna",Cell:"Cella","Merge cells":"Unisci celle","Horizontal split":"Dividi in orizzontale","Vertical split":"Dividi in verticale","Cell Background":"Sfondo Cella","Vertical Align":"Allineamento Verticale",Top:"Alto",Middle:"Centro",Bottom:"Basso","Align Top":"Allinea in Alto","Align Middle":"Allinea al Centro","Align Bottom":"Allinea in Basso","Cell Style":"Stile Cella","Upload File":"Carica File","Drop file":"Rilascia file",Emoticons:"Emoticon","Grinning face":"Sorridente","Grinning face with smiling eyes":"Sorridente con gli occhi sorridenti","Face with tears of joy":"Con lacrime di gioia","Smiling face with open mouth":"Sorridente con la bocca aperta","Smiling face with open mouth and smiling eyes":"Sorridente con la bocca aperta e gli occhi sorridenti","Smiling face with open mouth and cold sweat":"Sorridente con la bocca aperta e sudore freddo","Smiling face with open mouth and tightly-closed eyes":"Sorridente con la bocca aperta e gli occhi stretti","Smiling face with halo":"Sorridente con aureola","Smiling face with horns":"Diavolo sorridente","Winking face":"Ammiccante","Smiling face with smiling eyes":"Sorridente imbarazzato","Face savoring delicious food":"Goloso","Relieved face":"Rassicurato","Smiling face with heart-shaped eyes":"Sorridente con gli occhi a forma di cuore","Smiling face with sunglasses":"Sorridente con gli occhiali da sole","Smirking face":"Compiaciuto","Neutral face":"Neutro","Expressionless face":"Inespressivo","Unamused face":"Annoiato","Face with cold sweat":"Sudare freddo","Pensive face":"Pensieroso","Confused face":"Perplesso","Confounded face":"Confuso","Kissing face":"Bacio","Face throwing a kiss":"Manda un bacio","Kissing face with smiling eyes":"Bacio con gli occhi sorridenti","Kissing face with closed eyes":"Bacio con gli occhi chiusi","Face with stuck out tongue":"Linguaccia","Face with stuck out tongue and winking eye":"Linguaccia ammiccante","Face with stuck out tongue and tightly-closed eyes":"Linguaccia con occhi stretti","Disappointed face":"Deluso","Worried face":"Preoccupato","Angry face":"Arrabbiato","Pouting face":"Imbronciato","Crying face":"Pianto","Persevering face":"Perseverante","Face with look of triumph":"Trionfante","Disappointed but relieved face":"Deluso ma rassicurato","Frowning face with open mouth":"Accigliato con la bocca aperta","Anguished face":"Angosciato","Fearful face":"Pauroso","Weary face":"Stanco","Sleepy face":"Assonnato","Tired face":"Snervato","Grimacing face":"Smorfia","Loudly crying face":"Pianto a gran voce","Face with open mouth":"Bocca aperta","Hushed face":"Silenzioso","Face with open mouth and cold sweat":"Bocca aperta e sudore freddo","Face screaming in fear":"Urlante dalla paura","Astonished face":"Stupito","Flushed face":"Arrossito","Sleeping face":"Addormentato","Dizzy face":"Stordito","Face without mouth":"Senza parole","Face with medical mask":"Malattia infettiva",Break:"Separatore",Subscript:"Pedice",Superscript:"Apice",Fullscreen:"Schermo intero","Insert Horizontal Line":"Inserisci Divisore Orizzontale","Clear Formatting":"Cancella Formattazione",Undo:"Annulla",Redo:"Ripeti","Select All":"Seleziona Tutto","Code View":"Visualizza Codice",Quote:"Citazione",Increase:"Aumenta",Decrease:"Diminuisci","Quick Insert":"Inserimento Rapido","Special Characters":"Caratteri Speciali",Latin:"Latino",Greek:"Greco",Cyrillic:"Cirillico",Punctuation:"Punteggiatura",Currency:"Valuta",Arrows:"Frecce",Math:"Matematica",Misc:"Misc",Print:"Stampa","Spell Checker":"Correttore Ortografico",Help:"Aiuto",Shortcuts:"Scorciatoie","Inline Editor":"Editor in Linea","Show the editor":"Mostra Editor","Common actions":"Azioni comuni",Copy:"Copia",Cut:"Taglia",Paste:"Incolla","Basic Formatting":"Formattazione di base","Increase quote level":"Aumenta il livello di citazione","Decrease quote level":"Diminuisci il livello di citazione","Image / Video":"Immagine / Video","Resize larger":"Più grande","Resize smaller":"Più piccolo",Table:"Tabella","Select table cell":"Seleziona la cella della tabella","Extend selection one cell":"Estendi la selezione di una cella","Extend selection one row":"Estendi la selezione una riga",Navigation:"Navigazione","Focus popup / toolbar":"Metti a fuoco la barra degli strumenti","Return focus to previous position":"Rimetti il fuoco sulla posizione precedente","Embed URL":"Incorpora URL","Paste in a URL to embed":"Incolla un URL da incorporare","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento di Microsoft Word. Vuoi mantenere la formattazione di Word o pulirlo?",Keep:"Mantieni",Clean:"Pulisci","Word Paste Detected":"È stato rilevato un incolla da Word"},direction:"ltr"}})?r.apply(t,i):r)||(e.exports=o)},O2yx:function(e,t){!function(e,t,n,r){"use strict";n.module("ngFitText",[]).value("fitTextDefaultConfig",{debounce:!1,delay:250,loadDelay:10,compressor:1,min:0,max:Number.POSITIVE_INFINITY}).directive("fittext",["$timeout","fitTextDefaultConfig","fitTextConfig",function(t,r,i){return{restrict:"A",scope:!0,link:function(o,a,s){function l(){d.offsetHeight*d.offsetWidth!=0&&(p.fontSize=S+"px",p.lineHeight="1",p.display="inline-block",p.fontSize=function(){var e=S*g/d.offsetWidth/g;return Math.max(Math.min((f[0].offsetWidth-(parseFloat(getComputedStyle(f[0]).paddingLeft)+parseFloat(getComputedStyle(f[0]).paddingRight))-6)*e*v,parseFloat($)),parseFloat(w))}()+"px",p.lineHeight=e.getComputedStyle(a[0],null)["line-height"],p.display=E)}function u(){c&&t.cancel(c),c=t(function(){c=null,l()},20)}n.extend(r,i.config);var c,f=a.parent(),d=a[0],p=d.style,h=e.getComputedStyle(a[0],null),g=a.children().length||1,m=s.fittextLoadDelay||r.loadDelay,v=isNaN(parseInt(s.fittext))?r.compressor:s.fittext,y=s.fittextMin||r.min,b=s.fittextMax||r.max,w="inherit"===y?h["font-size"]:y,$="inherit"===b?h["font-size"]:b,E=(h["line-height"],h.display),S=10;t(function(){u()},m),o.$watch(function(){return[o.$eval(s.ngBindHtml),f[0].offsetWidth,a[0].offsetWidth].join("_")},function(){u()}),r.debounce?n.element(e).bind("resize",r.debounce(function(){o.$apply(u)},r.delay)):n.element(e).bind("resize",function(){o.$apply(u)})}}}]).provider("fitTextConfig",function(){var e=this;return this.config={},this.$get=function(){var t={};return t.config=e.config,t},this})}(window,document,angular)},OEbY:function(e,t,n){n("nh4g")&&"g"!=/./g.flags&&n("hswa").f(RegExp.prototype,"flags",{configurable:!0,get:n("C/va")})},OG14:function(e,t,n){"use strict";var r=n("y3w9"),i=n("g6HL"),o=n("Xxuz");n("IU+Z")("search",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=o(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]})},OIYi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n("wd/R"))},OP3Y:function(e,t,n){var r=n("aagx"),i=n("S/j/"),o=n("YTvA")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n("wd/R"))},OnI7:function(e,t,n){var r=n("dyZX"),i=n("g3g5"),o=n("LQAc"),a=n("N8g3"),s=n("hswa").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},PItk:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]}),e.FE.PLUGINS.colors=function(t){function n(){t.popups.hide("colors.picker")}function r(e){for(var n="text"==e?t.opts.colorsText:t.opts.colorsBackground,r='<div class="fr-color-set fr-'+e+"-color"+(t.opts.colorsDefaultTab==e||"text"!=t.opts.colorsDefaultTab&&"background"!=t.opts.colorsDefaultTab&&"text"==e?" fr-selected-set":"")+'">',i=0;i<n.length;i++)0!==i&&i%t.opts.colorsStep==0&&(r+="<br>"),"REMOVE"!=n[i]?r+='<span class="fr-command fr-select-color" style="background: '+n[i]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+e+'Color" data-param1="'+n[i]+'"><span class="fr-sr-only">'+t.language.translate("Color")+" "+n[i]+"&nbsp;&nbsp;&nbsp;</span></span>":r+='<span class="fr-command fr-select-color" data-cmd="'+e+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+t.language.translate("Clear Formatting")+'">'+t.icon.create("remove")+'<span class="fr-sr-only">'+t.language.translate("Clear Formatting")+"</span></span>";return r+"</div>"}function i(n){var r,i=t.popups.get("colors.picker"),o=e(t.selection.element());r="background"==n?"background-color":"color";var a=i.find(".fr-"+n+"-color .fr-select-color");for(a.find(".fr-selected-color").remove(),a.removeClass("fr-active-item"),a.not('[data-param1="REMOVE"]').attr("aria-selected",!1);o.get(0)!=t.el;){if("transparent"!=o.css(r)&&"rgba(0, 0, 0, 0)"!=o.css(r)){var s=i.find(".fr-"+n+'-color .fr-select-color[data-param1="'+t.helpers.RGBToHex(o.css(r))+'"]');s.append('<span class="fr-selected-color" aria-hidden="true"></span>'),s.addClass("fr-active-item").attr("aria-selected",!0);break}o=o.parent()}var l=i.find(".fr-color-hex-layer input");l.length&&l.val(t.helpers.RGBToHex(o.css(r))).trigger("change")}function o(e){"REMOVE"!=e?t.format.applyStyle("background-color",t.helpers.HEXtoRGB(e)):t.format.removeStyle("background-color"),n()}function a(e){"REMOVE"!=e?t.format.applyStyle("color",t.helpers.HEXtoRGB(e)):t.format.removeStyle("color"),n()}return{showColorsPopup:function(){var n=t.$tb.find('.fr-command[data-cmd="color"]'),o=t.popups.get("colors.picker");if(o||(o=function(){var n,i='<div class="fr-buttons fr-colors-buttons">';t.opts.toolbarInline&&0<t.opts.colorsButtons.length&&(i+=t.button.buildList(t.opts.colorsButtons)),i+=(n='<div class="fr-colors-tabs fr-group">',n+='<span class="fr-colors-tab '+("background"==t.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"!=t.opts.colorsDefaultTab)+'" data-param1="text" data-cmd="colorChangeSet" title="'+t.language.translate("Text")+'">'+t.language.translate("Text")+"</span>",(n+='<span class="fr-colors-tab '+("background"==t.opts.colorsDefaultTab?"fr-selected-tab ":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==t.opts.colorsDefaultTab)+'" data-param1="background" data-cmd="colorChangeSet" title="'+t.language.translate("Background")+'">'+t.language.translate("Background")+"</span>")+"</div></div>");var o="";t.opts.colorsHEXInput&&(o='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+t.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+t.language.translate("OK")+"</button></div></div>");var a,s={buttons:i,text_colors:r("text"),background_colors:r("background"),custom_color:o},l=t.popups.create("colors.picker",s);return a=l,t.events.on("popup.tab",function(n){var r=e(n.currentTarget);if(!t.popups.isVisible("colors.picker")||!r.is("span"))return!0;var i=n.which,o=!0;if(e.FE.KEYCODE.TAB==i){var s=a.find(".fr-buttons");o=!t.accessibility.focusToolbar(s,!!n.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==i||e.FE.KEYCODE.ARROW_DOWN==i||e.FE.KEYCODE.ARROW_LEFT==i||e.FE.KEYCODE.ARROW_RIGHT==i){if(r.is("span.fr-select-color")){var l=r.parent().find("span.fr-select-color"),u=l.index(r),c=t.opts.colorsStep,f=Math.floor(l.length/c),d=u%c,p=Math.floor(u/c),h=p*c+d,g=f*c;e.FE.KEYCODE.ARROW_UP==i?h=((h-c)%g+g)%g:e.FE.KEYCODE.ARROW_DOWN==i?h=(h+c)%g:e.FE.KEYCODE.ARROW_LEFT==i?h=((h-1)%g+g)%g:e.FE.KEYCODE.ARROW_RIGHT==i&&(h=(h+1)%g);var m=e(l.get(h));t.events.disableBlur(),m.focus(),o=!1}}else e.FE.KEYCODE.ENTER==i&&(t.button.exec(r),o=!1);return!1===o&&(n.preventDefault(),n.stopPropagation()),o},!0),l}()),!o.hasClass("fr-active"))if(t.popups.setContainer("colors.picker",t.$tb),i(o.find(".fr-selected-tab").attr("data-param1")),n.is(":visible")){var a=n.offset().left+n.outerWidth()/2,s=n.offset().top+(t.opts.toolbarBottom?10:n.outerHeight()-10);t.popups.show("colors.picker",a,s,n.outerHeight())}else t.position.forSelection(o),t.popups.show("colors.picker")},hideColorsPopup:n,changeSet:function(e,n){e.hasClass("fr-selected-tab")||(e.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),e.addClass("fr-selected-tab").attr("aria-pressed",!0),e.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),e.parents(".fr-popup").find(".fr-color-set.fr-"+n+"-color").addClass("fr-selected-set"),i(n)),t.accessibility.focusPopup(e.parents(".fr-popup"))},background:o,customColor:function(){var e=t.popups.get("colors.picker"),n=e.find(".fr-color-hex-layer input");if(n.length){var r=n.val();"background"==e.find(".fr-selected-tab").attr("data-param1")?o(r):a(r)}},text:a,back:function(){t.popups.hide("colors.picker"),t.toolbar.showInline()}}},e.FE.DefineIcon("colors",{NAME:"tint"}),e.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),e.FE.RegisterCommand("textColor",{undo:!0,callback:function(e,t){this.colors.text(t)}}),e.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(e,t){this.colors.background(t)}}),e.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(e,t){var n=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+e+'"][data-param1="'+t+'"]');this.colors.changeSet(n,t)}}),e.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),e.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),e.FE.DefineIcon("remove",{NAME:"eraser"})})?r.apply(t,i):r)||(e.exports=o)},PcHE:function(e,t){!function(e){"use strict";var t=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};function n(e,n,r,i,o,a,s){"ngInject";function l(e,t,n,r){var o={},s=function(t){return a.safeToString(t[e.displayProperty])},l=function(t,n){t[e.displayProperty]=n};return o.items=[],o.addText=function(e){var t={};return l(t,e),o.add(t)},o.add=function(r){var u=s(r);return e.replaceSpacesWithDashes&&(u=a.replaceSpacesWithDashes(u)),l(r,u),function(t){var r=s(t),l=r&&r.length>=e.minLength&&r.length<=e.maxLength&&e.allowedTagsPattern.test(r)&&!a.findInObjectArray(o.items,t,e.keyProperty||e.displayProperty);return i.when(l&&n({$tag:t})).then(a.promisifyValue)}(r).then(function(){o.items.push(r),t.trigger("tag-added",{$tag:r})}).catch(function(){u&&t.trigger("invalid-tag",{$tag:r})})},o.remove=function(e){var n=o.items[e];return function(e){return i.when(r({$tag:e})).then(a.promisifyValue)}(n).then(function(){return o.items.splice(e,1),o.clearSelection(),t.trigger("tag-removed",{$tag:n}),n})},o.select=function(e){e<0?e=o.items.length-1:e>=o.items.length&&(e=0),o.index=e,o.selected=o.items[e]},o.selectPrior=function(){o.select(--o.index)},o.selectNext=function(){o.select(++o.index)},o.removeSelected=function(){return o.remove(o.index)},o.clearSelection=function(){o.selected=null,o.index=-1},o.getItems=function(){return e.useStrings?o.items.map(s):o.items},o.clearSelection(),o}function u(e){return-1!==s.SUPPORTED_INPUT_TYPES.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=a.simplePubSub(),e.options=o.load("tagsInput",t,n,e.events,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",u],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,s.MAX_SAFE_INTEGER],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,s.MAX_SAFE_INTEGER],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),e.tagList=new l(e.options,e.events,a.handleUndefinedResult(e.onTagAdding,!0),a.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){return{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,n){return e.events.on(t,n,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(i,o,l,u){var c=[s.KEYS.enter,s.KEYS.comma,s.KEYS.space,s.KEYS.backspace,s.KEYS.delete,s.KEYS.left,s.KEYS.right],f=i.tagList,d=i.events,p=i.options,h=o.find("input"),g=["minTags","maxTags","allowLeftoverText"],m=function(){u.$setValidity("maxTags",f.items.length<=p.maxTags),u.$setValidity("minTags",f.items.length>=p.minTags),u.$setValidity("leftoverText",!(!i.hasFocus&&!p.allowLeftoverText)||!i.newTag.text())},v=function(){e(function(){h[0].focus()})};u.$isEmpty=function(e){return!e||!e.length},i.newTag={text:function(e){if(!angular.isDefined(e))return i.text||"";i.text=e,d.trigger("input-change",e)},invalid:null},i.track=function(e){return e[p.keyProperty||p.displayProperty]},i.getTagClass=function(e,t){var n=e===f.selected;return[i.tagClass({$tag:e,$index:t,$selected:n}),{selected:n}]},i.$watch("tags",function(e){if(e){if(f.items=a.makeObjectArray(e,p.displayProperty),p.useStrings)return;i.tags=f.items}else f.items=[]}),i.$watch("tags.length",function(){m(),u.$validate()}),l.$observe("disabled",function(e){i.disabled=e}),i.eventHandlers={input:{keydown:function(e){d.trigger("input-keydown",e)},focus:function(){i.hasFocus||(i.hasFocus=!0,d.trigger("input-focus"))},blur:function(){e(function(){var e=n.prop("activeElement"),t=e===h[0],r=o[0].contains(e);!t&&r||(i.hasFocus=!1,d.trigger("input-blur"))})},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):r.clipboardData.getData("Text")},d.trigger("input-paste",e)}},host:{click:function(){i.disabled||v()}},tag:{click:function(e){d.trigger("tag-clicked",{$tag:e})}}},d.on("tag-added",i.onTagAdded).on("invalid-tag",i.onInvalidTag).on("tag-removed",i.onTagRemoved).on("tag-clicked",i.onTagClicked).on("tag-added",function(){i.newTag.text("")}).on("tag-added tag-removed",function(){i.tags=f.getItems(),u.$setDirty(),v()}).on("invalid-tag",function(){i.newTag.invalid=!0}).on("option-change",function(e){-1!==g.indexOf(e.name)&&m()}).on("input-change",function(){f.clearSelection(),i.newTag.invalid=null}).on("input-focus",function(){o.triggerHandler("focus"),u.$setValidity("leftoverText",!0)}).on("input-blur",function(){p.addOnBlur&&!p.addFromAutocompleteOnly&&f.addText(i.newTag.text()),o.triggerHandler("blur"),m()}).on("input-keydown",function(e){var n,r=e.keyCode;if(!a.isModifierOn(e)&&-1!==c.indexOf(r)){var o=(t(n={},s.KEYS.enter,p.addOnEnter),t(n,s.KEYS.comma,p.addOnComma),t(n,s.KEYS.space,p.addOnSpace),n),l=!p.addFromAutocompleteOnly&&o[r],u=(r===s.KEYS.backspace||r===s.KEYS.delete)&&f.selected,d=r===s.KEYS.backspace&&0===i.newTag.text().length&&p.enableEditingLastTag,h=(r===s.KEYS.backspace||r===s.KEYS.left||r===s.KEYS.right)&&0===i.newTag.text().length&&!p.enableEditingLastTag;l?f.addText(i.newTag.text()):d?(f.selectPrior(),f.removeSelected().then(function(e){e&&i.newTag.text(e[p.displayProperty])})):u?f.removeSelected():h&&(r===s.KEYS.left||r===s.KEYS.backspace?f.selectPrior():r===s.KEYS.right&&f.selectNext()),(l||h||u||d)&&e.preventDefault()}}).on("input-paste",function(e){if(p.addOnPaste){var t=e.getTextData().split(p.pasteSplitPattern);t.length>1&&(t.forEach(function(e){f.addText(e)}),e.preventDefault())}})}}}function r(e){"ngInject";return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,n,r,i){var o=i.registerTagItem(),a=o.getOptions();t.$$template=a.template,t.$$removeTagSymbol=a.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[a.displayProperty])},t.$removeTag=function(){o.removeTag(t.$index)},t.$watch("$parent.$index",function(e){t.$index=e})}}}function i(e,t,n,r,i,o,a){"ngInject";function s(e,t,n){var i={},a=null,s=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty};return i.reset=function(){a=null,i.items=[],i.visible=!1,i.index=-1,i.selected=null,i.query=null},i.show=function(){t.selectFirstMatch?i.select(0):i.selected=null,i.visible=!0},i.load=o.debounce(function(n,l){i.query=n;var u=r.when(e({$query:n}));a=u,u.then(function(e){var n;u===a&&(e=o.makeObjectArray(e.data||e,s()),n=l,e=e.filter(function(e){return!o.findInObjectArray(n,e,s(),function(e,n){return t.tagsInput.replaceSpacesWithDashes&&(e=o.replaceSpacesWithDashes(e),n=o.replaceSpacesWithDashes(n)),o.defaultComparer(e,n)})}),i.items=e.slice(0,t.maxResultsToShow),i.items.length>0?i.show():i.reset())})},t.debounceDelay),i.selectNext=function(){i.select(++i.index)},i.selectPrior=function(){i.select(--i.index)},i.select=function(e){e<0?e=i.items.length-1:e>=i.items.length&&(e=0),i.index=e,i.selected=i.items[e],n.trigger("suggestion-selected",e)},i.reset(),i}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=o.simplePubSub(),e.options=i.load("autoComplete",t,n,e.events,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new s(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(e,t,n,r){var i=[a.KEYS.enter,a.KEYS.tab,a.KEYS.escape,a.KEYS.up,a.KEYS.down],s=e.suggestionList,l=r.registerAutocomplete(),u=e.options,c=e.events;u.tagsInput=l.getOptions();var f=function(e){return e&&e.length>=u.minLength||!e&&u.loadOnEmpty};e.templateScope=l.getTemplateScope(),e.addSuggestionByIndex=function(t){s.select(t),e.addSuggestion()},e.addSuggestion=function(){var e=!1;return s.selected&&(l.addTag(angular.copy(s.selected)),s.reset(),e=!0),e},e.track=function(e){return e[u.tagsInput.keyProperty||u.tagsInput.displayProperty]},e.getSuggestionClass=function(t,n){var r=t===s.selected;return[e.matchClass({$match:t,$index:n,$selected:r}),{selected:r}]},l.on("tag-added tag-removed invalid-tag input-blur",function(){s.reset()}).on("input-change",function(e){f(e)?s.load(e,l.getTags()):s.reset()}).on("input-focus",function(){var e=l.getCurrentTagText();u.loadOnFocus&&f(e)&&s.load(e,l.getTags())}).on("input-keydown",function(t){var n=t.keyCode,r=!1;if(!o.isModifierOn(t)&&-1!==i.indexOf(n))return s.visible?n===a.KEYS.down?(s.selectNext(),r=!0):n===a.KEYS.up?(s.selectPrior(),r=!0):n===a.KEYS.escape?(s.reset(),r=!0):n!==a.KEYS.enter&&n!==a.KEYS.tab||(r=e.addSuggestion()):n===a.KEYS.down&&e.options.loadOnDownArrow&&(s.load(l.getCurrentTagText(),l.getTags()),r=!0),r?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),c.on("suggestion-selected",function(e){!function(e,t){var n=e.find("li").eq(t),r=n.parent(),i=n.prop("offsetTop"),o=n.prop("offsetHeight"),a=r.prop("clientHeight"),s=r.prop("scrollTop");i<s?r.prop("scrollTop",i):i+o>a+s&&r.prop("scrollTop",i+o-a)}(t,e)})}}}function o(e,t){"ngInject";return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(n,r,i,o){var a=o.registerAutocompleteMatch(),s=a.getOptions();n.$$template=s.template,n.$index=n.$parent.$index,n.$highlight=function(n){return s.highlightMatchedText&&(n=t.safeHighlight(n,a.getQuery())),e.trustAsHtml(n)},n.$getDisplayText=function(){return t.safeToString(n.data[s.displayProperty||s.tagsInput.displayProperty])}}}}function a(e){"ngInject";return{restrict:"A",require:"ngModel",link:function(t,n,r,i){var o=e.getTextAutosizeThreshold(),a=angular.element('<span class="input"></span>');a.css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),n.parent().append(a);var s=function(e){var t=e,i=void 0;return angular.isString(t)&&0===t.length&&(t=r.placeholder),t&&(a.text(t),a.css("display",""),i=a.prop("offsetWidth"),a.css("display","none")),n.css("width",i?i+o+"px":""),e};i.$parsers.unshift(s),i.$formatters.unshift(s),r.$observe("placeholder",function(e){i.$modelValue||s(e)})}}}function s(e,n){"ngInject";var r={debounce:function(t,n){var r=void 0;return function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];e.cancel(r),r=e(function(){t.apply(null,o)},n)}},makeObjectArray:function(e,n){return!angular.isArray(e)||0===e.length||angular.isObject(e[0])?e:e.map(function(e){return t({},n,e)})},findInObjectArray:function(e,t,n,i){var o=null;return i=i||r.defaultComparer,e.some(function(e){if(i(e[n],t[n]))return o=e,!0}),o},defaultComparer:function(e,t){return r.safeToString(e).toLowerCase()===r.safeToString(t).toLowerCase()},safeHighlight:function(e,t){if(e=r.encodeHTML(e),!(t=r.encodeHTML(t)))return e;var n=new RegExp("&[^;]+;|"+function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi");return e.replace(n,function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e})},safeToString:function(e){return angular.isUndefined(e)||null===e?"":e.toString().trim()},encodeHTML:function(e){return r.safeToString(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},handleUndefinedResult:function(e,t){return function(){var n=e.apply(null,arguments);return angular.isUndefined(n)?t:n}},replaceSpacesWithDashes:function(e){return r.safeToString(e).replace(/\s/g,"-")},isModifierOn:function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},promisifyValue:function(e){return e=!!angular.isUndefined(e)||e,n[e?"when":"reject"]()},simplePubSub:function(){var e={};return{on:function(t,n,r){return t.split(" ").forEach(function(t){e[t]||(e[t]=[]),(r?[].unshift:[].push).call(e[t],n)}),this},trigger:function(t,n){return(e[t]||[]).every(function(e){return r.handleUndefinedResult(e,!0)(n)}),this}}}};return r}function l(e){e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by $index" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>')}n.$inject=["$timeout","$document","$window","$q","tagsInputConfig","tiUtil","tiConstants"],r.$inject=["tiUtil"],i.$inject=["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil","tiConstants"],o.$inject=["$sce","tiUtil"],a.$inject=["tagsInputConfig"],s.$inject=["$timeout","$q"],l.$inject=["$templateCache"],e.module("ngTagsInput",[]).directive("tagsInput",n).directive("tiTagItem",r).directive("autoComplete",i).directive("tiAutocompleteMatch",o).directive("tiAutosize",a).directive("tiBindAttrs",function(){return function(e,t,n){e.$watch(n.tiBindAttrs,function(e){angular.forEach(e,function(e,t){n.$set(t,e)})},!0)}}).directive("tiTranscludeAppend",function(){return function(e,t,n,r,i){i(function(e){t.append(e)})}}).factory("tiUtil",s).constant("tiConstants",{KEYS:{backspace:8,tab:9,enter:13,escape:27,space:32,up:38,down:40,left:37,right:39,delete:46,comma:188},MAX_SAFE_INTEGER:9007199254740991,SUPPORTED_INPUT_TYPES:["text","email","url"]}).provider("tagsInputConfig",function(){"ngInject";var e=this,n={},r={},i=3;this.setDefaults=function(t,r){return n[t]=r,e},this.setActiveInterpolation=function(t,n){return r[t]=n,e},this.setTextAutosizeThreshold=function(t){return i=t,e},this.$get=["$interpolate",function(e){var o,a=(t(o={},String,function(e){return e.toString()}),t(o,Number,function(e){return parseInt(e,10)}),t(o,Boolean,function(e){return"true"===e.toLowerCase()}),t(o,RegExp,function(e){return new RegExp(e)}),o);return{load:function(t,i,o,s,l){var u=function(){return!0},c={};return angular.forEach(l,function(l,f){var d=l[0],p=l[1],h=l[2]||u,g=a[d],m=function(e){var r;c[f]=e&&h(e)?g(e):(r=n[t]&&n[t][f],angular.isDefined(r)?r:p)};r[t]&&r[t][f]?o.$observe(f,function(e){m(e),s.trigger("option-change",{name:f,newValue:e})}):m(o[f]&&e(o[f])(i.scope()))}),c},getTextAutosizeThreshold:function(){return i}}}]}).run(l)}(angular)},Po9p:function(e,t){},QaDb:function(e,t,n){"use strict";var r=n("Kuth"),i=n("RjD/"),o=n("fyDq"),a={};n("Mukb")(a,n("K0xU")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},R5XZ:function(e,t,n){var r=n("dyZX"),i=n("XKFU"),o=n("ol8x"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},RW0V:function(e,t,n){var r=n("S/j/"),i=n("DVgA");n("Xtr8")("keys",function(){return function(e){return i(r(e))}})},RYi7:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"RjD/":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"S/j/":function(e,t,n){var r=n("vhPU");e.exports=function(e){return Object(r(e))}},SRfc:function(e,t,n){"use strict";var r=n("y3w9"),i=n("ne8i"),o=n("A5AN"),a=n("Xxuz");n("IU+Z")("match",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(l,u));){var h=String(f[0]);d[p]=h,""===h&&(l.lastIndex=o(u,i(l.lastIndex),c)),p++}return 0===p?null:d}]})},SYky:function(e,t,n){(function(e){if(void 0===e)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var n=e.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1==n[0]&&9==n[1]&&n[2]<1||n[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,r=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(r).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(e),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var o=e("#"===i?[]:i);function a(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(e),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each(function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)})}t.VERSION="3.3.7",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy(function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(e),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each(function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),a="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):a?i[a]():o.interval&&i.pause().cycle()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var r=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(r)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),a=this.interval,s="next"==n?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r,i=e(this),o=e(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=e.extend({},o.data(),i.data()),s=i.attr("data-slide-to");s&&(a.interval=!1),n.call(o,a),s&&o.data("bs.carousel").to(s),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);n.call(t,t.data())})})}(e),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(r)}function r(n){return this.each(function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)})}(e),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&e(n);return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each(function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}r.VERSION="3.3.7",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),a=r.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),a=o.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(e),function(e){"use strict";var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(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,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,r){return this.each(function(){var i=e(this),o=i.data("bs.modal"),a=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n);o||i.data("bs.modal",o=new t(this,a)),"string"==typeof n?o[n](r):a.show&&o.show(r)})}t.VERSION="3.3.7",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var r=this,i=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(i),this.isShown||i.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"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:n});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(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"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&i;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var r=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=e(this),i=r.attr("href"),o=e(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),n.call(o,a,this)})}(e),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.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}},t.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(e.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 i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,r){n[e]!=r&&(t[e]=r)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),f=o[0].offsetWidth,d=o[0].offsetHeight;if(u){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+d>h.bottom?"top":"top"==s&&c.top-d<h.top?"bottom":"right"==s&&c.right+f>h.width?"left":"left"==s&&c.left-f<h.left?"right":s,o.removeClass(p).addClass(s)}var g=this.getCalculatedOffset(s,c,f,d);this.applyPlacement(g,s);var m=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(t.TRANSITION_DURATION):m()}},t.prototype.applyPlacement=function(t,n){var r=this.tip(),i=r[0].offsetWidth,o=r[0].offsetHeight,a=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(r[0],e.extend({using:function(e){r.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),r.addClass("in");var l=r[0].offsetWidth,u=r[0].offsetHeight;"top"==n&&u!=o&&(t.top=t.top+o-u);var c=this.getViewportAdjustedDelta(n,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var f=/top|bottom/.test(n),d=f?2*c.left-i+l:2*c.top-o+u,p=f?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(d,r[0][p],f)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(n){var r=this,i=e(this.$tip),o=e.Event("hide.bs."+this.type);function a(){"in"!=r.hoverState&&i.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],r="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=r?{top:0,left:0}:o?null:t.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=r?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,s,l,a)},t.prototype.getCalculatedOffset=function(e,t,n,r){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-r,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,l=t.top+o-a.scroll+r;s<a.top?i.top=a.top-s:l>a.top+a.height&&(i.top=a.top+a.height-l)}else{var u=t.left-o,c=t.left+o+n;u<a.left?i.left=a.left-u:c>a.right&&(i.left=a.left+a.width-c)}return i},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("bs.tooltip"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.tooltip",i=new t(this,o)),"string"==typeof n&&i[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(e),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.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>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(e),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=r)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t<i[0])return this.activeTarget=null,this.clear();for(e=i.length;e--;)a!=o[e]&&t>=i[e]&&(void 0===i[e+1]||t<i[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',r=e(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=r,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(e),function(e){"use strict";var t=function(t){this.element=e(t)};function n(n){return this.each(function(){var r=e(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new t(this)),"string"==typeof n&&i[n]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.data("target");if(r||(r=(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),t.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=e(r);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},t.prototype.activate=function(n,r,i){var o=r.find("> .active"),a=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(e),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()})}t.VERSION="3.3.7",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i<n&&"top";if("bottom"==this.affixed)return null!=n?!(i+this.unpin<=o.top)&&"bottom":!(i+a<=e-r)&&"bottom";var s=null==this.affixed,l=s?i:o.top;return null!=n&&i<=n?"top":null!=r&&l+(s?a:t)>=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var s=this.getState(a,n,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)})})}(e)}).call(this,n("EVdn"))},SlkY:function(e,t,n){var r=n("m0Pp"),i=n("H6hf"),o=n("M6Qj"),a=n("y3w9"),s=n("ne8i"),l=n("J+6e"),u={},c={};(t=e.exports=function(e,t,n,f,d){var p,h,g,m,v=d?function(){return e}:l(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(p=s(e.length);p>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===u||m===c)return m}else for(g=v.call(e);!(h=g.next()).done;)if((m=i(g,y,h.value,t))===u||m===c)return m}).BREAK=u,t.RETURN=c},T39b:function(e,t,n){"use strict";var r=n("wmvG"),i=n("s5qY");e.exports=n("4LiD")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},Tdpu:function(e,t,n){n("7DDg")("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},U2t9:function(e,t,n){var r=n("XKFU"),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},U3M1:function(e,t){!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}()},UExd:function(e,t,n){var r=n("nh4g"),i=n("DVgA"),o=n("aCFj"),a=n("UqcF").f;e.exports=function(e){return function(t){for(var n,s=o(t),l=i(s),u=l.length,c=0,f=[];u>c;)n=l[c++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},URgk:function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("YBdB"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},UUeW:function(e,t,n){var r=n("K0xU")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},Ugos:function(e,t,n){"use strict";var r,i,o=n("C/va"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(l=function(e){var t,n,r,i,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(t=l.lastIndex),r=a.call(l,e),u&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=l},UqcF:function(e,t){t.f={}.propertyIsEnumerable},"V+/h":function(e,t){!function(e,t){"use strict";function n(){return["$animate",function(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(t,n,r,o,a){var s,l,u,c=n[0],f=r.ngMessage||r.when,d=function(e){s=e?i(e)?e:e.split(/[\s,]+/):null,o.reRender()};(r=r.ngMessageExp||r.whenExp)?(d(t.$eval(r)),t.$watchCollection(r,d)):d(f),o.register(c,u={test:function(e){var t=s;return e=t?i(t)?0<=t.indexOf(e):t.hasOwnProperty(e):void 0},attach:function(){l||a(function(t,r){e.enter(t,null,n);var i=(l=t).$$attachId=o.getAttachId();l.on("$destroy",function(){l&&l.$$attachId===i&&(o.deregister(c),u.detach()),r.$destroy()})})},detach:function(){if(l){var t=l;l=null,e.leave(t)}}})}}}]}var r,i,o,a;t.module("ngMessages",[],function(){r=t.forEach,i=t.isArray,o=t.isString,a=t.element}).directive("ngMessages",["$animate",function(e){function t(e,t){return o(t)&&0===t.length||n(e.$eval(t))}function n(e){return o(e)?e.length:!!e}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(i,o,a){function s(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return p[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}var l=this,u=0,c=0;this.getAttachId=function(){return c++};var f,d,p=this.messages={};this.render=function(s){f=!1,d=s=s||{};for(var u=t(o,a.ngMessagesMultiple)||t(o,a.multiple),c=[],p={},h=l.head,g=!1,m=0;null!=h;){m++;var v=h.message,y=!1;g||r(s,function(e,t){!y&&n(e)&&v.test(t)&&!p[t]&&(y=p[t]=!0,v.attach())}),y?g=!u:c.push(v),h=h.next}r(c,function(e){e.detach()}),c.length!==m?e.setClass(i,"ng-active","ng-inactive"):e.setClass(i,"ng-inactive","ng-active")},o.$watchCollection(a.ngMessages||a.for,l.render),i.on("$destroy",function(){r(p,function(e){e.message.detach()})}),this.reRender=function(){f||(f=!0,o.$evalAsync(function(){f&&d&&l.render(d)}))},this.register=function(e,t){var n=u.toString();p[n]={message:t};var r=i[0],o=p[n];l.head?(r=s(r,e))?(o.next=r.next,r.next=o):(o.next=l.head,l.head=o):l.head=o,e.$$ngMessageNode=n,u++,l.reRender()},this.deregister=function(e){var t=e.$$ngMessageNode;delete e.$$ngMessageNode;var n=p[t];(e=s(i[0],e))?e.next=n.next:l.head=n.next,delete p[t],l.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){function r(e,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):t[0].createComment(" ngMessagesInclude: "+r+" ");i=a(i);e.after(i),e.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(t,i,a){var s=a.ngMessagesInclude||a.src;e(s).then(function(e){t.$$destroyed||(o(e)&&!e.trim()?r(i,s):n(e)(t,function(e){i.after(e),r(i,s)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n())}(window,window.angular)},"V/DX":function(e,t,n){var r=n("0/R4");n("Xtr8")("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},VRzm:function(e,t,n){"use strict";var r,i,o,a,s=n("LQAc"),l=n("dyZX"),u=n("m0Pp"),c=n("I8a+"),f=n("XKFU"),d=n("0/R4"),p=n("2OiF"),h=n("9gX7"),g=n("SlkY"),m=n("69bn"),v=n("GZEu").set,y=n("gHnn")(),b=n("pbhE"),w=n("nICZ"),$=n("ol8x"),E=n("vKrd"),S=l.TypeError,x=l.process,C=x&&x.versions,T=C&&C.v8||"",k=l.Promise,_="process"==c(x),A=function(){},O=i=b.f,D=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n("K0xU")("species")]=function(e){e(A,A)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==T.indexOf("6.6")&&-1===$.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&R(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(o=M(n))?o.call(n,l,u):l(n)):u(r)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){v.call(l,function(){var t,n,r,i=e._v,o=F(e);if(o&&(t=w(function(){_?x.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=_||F(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){v.call(l,function(){var t;_?x.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=M(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,u(L,r,1),u(P,r,1))}catch(e){P.call(r,e)}}):(n._v=e,n._s=1,N(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};D||(k=function(e){h(this,k,"Promise","_h"),p(e),r.call(this);try{e(u(L,this,1),u(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("3Lyj")(k.prototype,{then:function(e,t){var n=O(m(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=_?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(L,e,1),this.reject=u(P,e,1)},b.f=O=function(e){return e===k||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:k}),n("fyDq")(k,"Promise"),n("elZq")("Promise"),a=n("g3g5").Promise,f(f.S+f.F*!D,"Promise",{reject:function(e){var t=O(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(e){return E(s&&this===a?k:this,e)}}),f(f.S+f.F*!(D&&n("XMVh")(function(e){k.all(e).catch(A)})),"Promise",{all:function(e){var t=this,n=O(t),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;g(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=w(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},VTer:function(e,t,n){var r=n("g3g5"),i=n("dyZX"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},VpUO:function(e,t,n){var r=n("XKFU"),i=n("d/Gc"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},WQBT:function(e,t,n){(function(t){!function(n){var r=setTimeout;function i(){}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,r)}else(1===e._state?s:l)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void c((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var r,i}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,l(t,e))})}catch(e){if(n)return;n=!0,l(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(i);return a(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){i(o,e)},n)}t[o]=a,0==--r&&e(t)}catch(e){n(e)}}for(var o=0;o<t.length;o++)i(o,t[o])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},o._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){r(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=o:n.Promise||(n.Promise=o)}(this)}).call(this,n("URgk").setImmediate)},WYAk:function(e,t,n){var r,i,o,a,s,l,u;e.exports=(r=n("Ib8C"),o=(i=r).lib,a=o.Base,s=i.enc,l=s.Utf8,u=i.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=l.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,u=0;u<n;u++)a[u]^=1549556828,s[u]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})))},Wbtx:function(e,t,n){},Wm4f:function(e,t){angular.module("angularPayments",[]),angular.module("angularPayments").factory("Common",[function(){var e={parseExpiry:function(e){var t,n,r;return t=(r=(e=(e=e||"").replace(/\s/g,"")).split("/",2))[0],(n=r[1])&&2===n.length&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}}};return e}]),angular.module("angularPayments").factory("Cards",[function(){var e=/(\d{1,4})/g,t=/(?:^|\s)(\d{4})$/,n=[{type:"maestro",pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,format:e,inputFormat:t,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:e,inputFormat:t,length:[14],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:e,inputFormat:t,length:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^35/,format:e,inputFormat:t,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:e,inputFormat:t,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:e,inputFormat:t,length:[16],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^5[1-5]/,format:e,inputFormat:t,length:[16],cvcLength:[3],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,inputFormat:/^(\d{4}|\d{4}\s\d{6})$/,length:[15],cvcLength:[3,4],luhn:!0},{type:"visa",pattern:/^4/,format:e,inputFormat:t,length:[13,14,15,16],cvcLength:[3],luhn:!0}];return{fromNumber:function(e){return function(e){var t,r,i;for(e=(e+"").replace(/\D/g,""),r=0,i=n.length;i>r;r++)if((t=n[r]).pattern.test(e))return t}(e)},fromType:function(e){return function(e){var t,r,i;for(r=0,i=n.length;i>r;r++)if((t=n[r]).type===e)return t}(e)},defaultFormat:function(){return e},defaultInputFormat:function(){return t}}}]),angular.module("angularPayments").factory("_Format",["Cards","Common","$filter",function(e,t,n){var r={},i=function(e){return null!==e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!!document.selection},o=function(e){var t=String.fromCharCode(e.which);return!/^\d+$/.test(t)&&!e.metaKey&&0!==e.charCode&&!e.ctrlKey},a=function(t){var n,r,i,a,s,l,u;if(i=String.fromCharCode(t.which),u=(n=angular.element(t.currentTarget)).val(),r=e.fromNumber(u+i),a=(u.replace(/\D/g,"")+i).length,l=16,8!==t.which&&0!==t.which){if(r&&(l=r.length[r.length.length-1]),o(t))return void t.preventDefault();if(!(null!==n.prop("selectionStart")&&n.prop("selectionStart")!==u.length||(s=e.defaultInputFormat(),r&&(s=r.inputFormat),a>=l)))return s.test(u)?(t.preventDefault(),n.val(u+" "+i)):s.test(u+i)?(t.preventDefault(),n.val(u+i+" ")):void 0}},s=function(t){var n,r,o,a;return n=angular.element(t.currentTarget),o=String.fromCharCode(t.which),8!==t.which&&0!==t.which?/^\d+$/.test(o)?void(i(n)||(a=(n.val()+o).replace(/\D/g,""),r=e.fromNumber(a),r?a.length>r.length[r.length.length-1]&&t.preventDefault():a.length>16&&t.preventDefault())):void t.preventDefault():void 0},l=function(e){var t,n;return n=(t=angular.element(e.currentTarget)).val(),e.metaKey||8!==e.which||null!==t.prop("selectionStart")&&t.prop("selectionStart")!==n.length?void 0:/\d\s$/.test(n)&&!e.metaKey&&e.keyCode>=46?(e.preventDefault(),t.val(n.replace(/\d\s$/,""))):/\s\d?$/.test(n)?(e.preventDefault(),t.val(n.replace(/\s\d?$/,""))):void 0},u=function(t){var n,r,i,o;return(n=e.fromNumber(t))?(i=n.length[n.length.length-1],t=(t=t.replace(/\D/g,"")).slice(0,+i+1||9e9),n.format.global?null!==(o=t.match(n.format))?o.join(" "):void 0:(null!==(r=n.format.exec(t))&&r.shift(),null!==r?r.join(" "):void 0)):t},c=function(e){return setTimeout(function(){var t,n;return n=(t=angular.element(e.target)).val(),n=u(n),t.val(n)})},f=function(e){return null!==e&&void 0!==e?e.replace(/\s/g,""):e};r.card=function(e,t){e.bind("keypress",s),e.bind("keypress",a),e.bind("keydown",l),e.bind("paste",c),t.$parsers.push(f),t.$formatters.push(u)};var d=function(e){var t,n;if(t=angular.element(e.currentTarget),n=String.fromCharCode(e.which),8!==e.which&&0!==e.which){if(o(e))return void e.preventDefault();if(!i(t))return(t.val()+n).length<=4?void 0:void e.preventDefault()}};r.cvc=function(e){e.bind("keypress",d)};var p=function(e){var t,n;return t=angular.element(e.currentTarget),n=String.fromCharCode(e.which),o(e)?void e.preventDefault():i(t)?void 0:(t.val()+n).replace(/\D/g,"").length>6?void e.preventDefault():void 0},h=function(e){var t,n,r;return n=String.fromCharCode(e.which),o(e)?void e.preventDefault():(r=(t=angular.element(e.currentTarget)).val()+n,/^\d$/.test(r)&&"0"!==r&&"1"!==r?(e.preventDefault(),t.val("0"+r+" / ")):/^\d\d$/.test(r)?(e.preventDefault(),t.val(r+" / ")):void 0)},g=function(e){var t,n;return String.fromCharCode(e.which),o(e)?void 0:(n=(t=angular.element(e.currentTarget)).val(),/^\d\d$/.test(n)?t.val(n+" / "):void 0)},m=function(e){var t,n;return"/"===String.fromCharCode(e.which)?(n=(t=angular.element(e.currentTarget)).val(),/^\d$/.test(n)&&"0"!==n?t.val("0"+n+" / "):void 0):void 0},v=function(e){var t,n;if(!(e.meta||e.metaKey||(t=angular.element(e.currentTarget),n=t.val(),8!==e.which||null!==t.prop("selectionStart")&&t.prop("selectionStart")!==n.length)))return/\d(\s|\/)+$/.test(n)?(e.preventDefault(),t.val(n.replace(/\d(\s|\/)*$/,""))):/\s\/\s?\d?$/.test(n)?(e.preventDefault(),t.val(n.replace(/\s\/\s?\d?$/,""))):void 0},y=function(e){if(null!==e){var r=t.parseExpiry(e),i=new Date(r.year,r.month-1);return n("date")(i,"MM/yyyy")}return null},b=function(e){if(null!==e){var r=t.parseExpiry(e),i=new Date(r.year,r.month-1);return n("date")(i,"MM / yyyy")}return null};return r.expiry=function(e,t){e.bind("keypress",p),e.bind("keypress",h),e.bind("keypress",m),e.bind("keypress",g),e.bind("keydown",v),t.$parsers.push(y),t.$formatters.push(b)},function(e,t,n){var i;if(!r[e])throw i=Object.keys(r),'Unknown type for formatting: "'+e+'". '+'Should be one of: "'+i.join('", "')+'"';return r[e](t,n)}}]).directive("paymentsFormat",["$window","_Format",function(e,t){return{restrict:"A",require:"ngModel",link:function(e,n,r,i){t(r.paymentsFormat,n,i)}}}]),angular.module("angularPayments").factory("_Validate",["Cards","Common","$parse",function(e,t,n){var r=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},i={cvc:function(t,i,o,a){var s,l,u;if(!t)return!0;if(!/^\d+$/.test(t))return!1;a.paymentsTypeModel&&(u=n(a.paymentsTypeModel)(o));return u?(s=t.length,r.call(null!==(l=e.fromType(u))?l.cvcLength:void 0,s)>=0):t.length>=3&&t.length<=4}};return i.card=function(t,i,o,a){var s,l,u;a.paymentsTypeModel&&(u=n(a.paymentsTypeModel));var c=function(){u&&u.assign(o,null),i.$card=null};if(!t)return c(),!0;if(t=(t+"").replace(/\s+|-/g,""),!/^\d+$/.test(t))return c(),!1;if(!(s=e.fromNumber(t)))return c(),!1;i.$card=angular.copy(s),u&&u.assign(o,s.type);var f=16;switch(s.type){case"amex":f=15}return l=t.length,r.call(s.length,l)>=0&&t.length===f&&(!1===s.luhn||function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;a>o;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0}(t))},i.expiry=function(e){var n,r,i,o,a;return!e||(n=(i=t.parseExpiry(e)).month,r=i.year,!!(n&&r&&/^\d+$/.test(n)&&/^\d+$/.test(r))&&(!(parseInt(n,10)>12)&&(2===r.length&&(r=(new Date).getFullYear().toString().slice(0,2)+r),a=new Date(r,n),o=new Date,a.setMonth(a.getMonth()-1),a.setMonth(a.getMonth()+1,1),a>o)))},function(e,t,n,r,o){var a;if(!i[e])throw a=Object.keys(i),'Unknown type for validation: "'+e+'". '+'Should be one of: "'+a.join('", "')+'"';return i[e](t,n,r,o)}}]).factory("_ValidateWatch",["_Validate",function(e){var t={cvc:function(t,n,r,i){i.paymentsTypeModel&&r.$watch(i.paymentsTypeModel,function(o,a){if(o!==a){var s=e(t,n.$modelValue,n,r,i);n.$setValidity(t,s)}})}};return function(e,n,r,i){return t[e]?t[e](e,n,r,i):void 0}}]).directive("paymentsValidate",["$window","_Validate","_ValidateWatch",function(e,t,n){return{restrict:"A",require:"ngModel",link:function(e,r,i,o){var a=i.paymentsValidate;n(a,o,e,i);var s=function(n){var r=t(a,n,o,e,i);return o.$setValidity(a,r),r?n:void 0};o.$formatters.push(s),o.$parsers.push(s)}}}]).directive("paymentsLength",[function(){return{require:"ngModel",link:function(e,t,n,r){r.$parsers.push(function(t){if("card"===n.paymentsLength){var i="",o="amex"===e.type?15:16;r.$viewValue&&(i=r.$viewValue.replace(/\s/g,"")),r.$setValidity("length",i.length>=o)}return t})}}}]),angular.module("angularPayments").directive("stripeForm",["$window","$parse","Common",function(e,t,n){return{restrict:"A",link:function(t,r,i){if(!e.Stripe)throw"stripeForm requires that you have stripe.js installed. Include https://js.stripe.com/v2/ into your html.";var o=angular.element(r);o.bind("submit",function(){var r=!!t.expMonth,a=!!t.expYear;if(!r||!a){var s=n.parseExpiry(t.expiry);t.expMonth=s.month,t.expYear=s.year}var l=o.find("button");l.prop("disabled",!0),o.hasClass("ng-valid")?e.Stripe.createToken(function(e){var t=["number","expMonth","expYear","cvc","name","addressLine1","addressLine2","addressCity","addressState","addressZip","addressCountry"],n=function(e){return e.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()})},r={};for(var i in t)e.hasOwnProperty(t[i])&&(r[n(t[i])]=angular.copy(e[t[i]]));return r.number=(r.number||"").replace(/ /g,""),r}(t),function(){var e=arguments;t.$apply(function(){t[i.stripeForm].apply(t,e)}),l.prop("disabled",!1)}):(t.$apply(function(){t[i.stripeForm].apply(t,[400,{error:"Invalid form submitted."}])}),l.prop("disabled",!1)),t.expMonth=null,t.expYear=null})}}}])},XKFU:function(e,t,n){var r=n("dyZX"),i=n("g3g5"),o=n("Mukb"),a=n("KroJ"),s=n("m0Pp"),l=function(e,t,n){var u,c,f,d,p=e&l.F,h=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,y=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),w=b.prototype||(b.prototype={});for(u in h&&(n=t),n)f=((c=!p&&y&&void 0!==y[u])?y:n)[u],d=v&&c?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,y&&a(y,u,f,e&l.U),b[u]!=f&&o(b,u,d),m&&w[u]!=f&&(w[u]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},XMVh:function(e,t,n){var r=n("K0xU")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},XZG1:function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","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/year.html","uib/template/datepickerPopup/popup.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(e,t,n,r){var i=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,o,a){var s=n(a.expanding),l=n(a.expanded),u=n(a.collapsing),c=n(a.collapsed),f=!1,d={},p={};function h(e){return f?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function g(){o.removeClass("collapsing").addClass("collapse").css(d),l(r)}function m(){o.css(p),o.removeClass("collapsing").addClass("collapse"),c(r)}!function(){(f=!!("horizontal"in a))?(d={width:""},p={width:"0"}):(d={height:""},p={height:"0"});r.$eval(a.uibCollapse)||o.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(d)}(),r.$watch(a.uibCollapse,function(n){n?function(){if(!o.hasClass("collapse")&&!o.hasClass("in"))return m();t.resolve(u(r)).then(function(){o.css(h(o[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),i?i(o,{removeClass:"in",to:p}).start().finally(m):e.removeClass(o,"in",{to:p}).then(m)},angular.noop)}():o.hasClass("collapse")&&o.hasClass("in")||t.resolve(s(r)).then(function(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(o,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:h(o[0])}).start().finally(g):e.addClass(o,"in",{css:{overflow:"hidden"},to:h(o[0])}).then(g)},angular.noop)})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,n){n.$observe("disabled",function(e){n.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,function(e){e!==r&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(n){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,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,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){t.addClass("panel"),r.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass||"panel-default",e.$watch("isOpen",function(n){t.toggleClass(e.openClass,!!n),n&&r.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var i="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=i+"-tab",e.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,t,n,r){e.$watch(function(){return r[n.uibAccordionTransclude]},function(e){if(e){var n=angular.element(t[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));n.html(""),n.append(e)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,n,r,i){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var o=angular.isDefined(n.dismissOnTimeout)?r(n.dismissOnTimeout)(e.$parent):null;o&&i(function(){e.close()},parseInt(o,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{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(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,r,i){var o=i[0],a=i[1],s=e(r.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(o.activeClass,angular.equals(a.$modelValue,t.$eval(r.uibBtnRadio)))},n.on(o.toggleEvent,function(){if(!r.disabled){var e=n.hasClass(o.activeClass);e&&!angular.isDefined(r.uncheckable)||t.$apply(function(){a.$setViewValue(e?null:t.$eval(r.uibBtnRadio)),a.$render()})}}),r.uibUncheckable&&t.$watch(s,function(e){r.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,r){var i=r[0],o=r[1];function a(){return s(n.btnCheckboxTrue,!0)}function s(t,n){return angular.isDefined(t)?e.$eval(t):n}t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(i.activeClass,angular.equals(o.$modelValue,a()))},t.on(i.toggleEvent,function(){n.disabled||e.$apply(function(){o.$setViewValue(t.hasClass(i.activeClass)?s(n.btnCheckboxFalse,!1):a()),o.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,r,i){var o,a,s=this,l=s.slides=e.slides=[],u="uib-slideDirection",c=e.active,f=!1;function d(e){for(var t=0;t<l.length;t++)l[t].slide.active=t===e}function p(e){for(var t=0;t<l.length;t++)if(l[t].slide===e)return t}function h(){o&&(n.cancel(o),o=null)}function g(){h();var t=+e.interval;!isNaN(t)&&t>0&&(o=n(m,t))}function m(){var t=+e.interval;a&&!isNaN(t)&&t>0&&l.length?e.next():e.pause()}t.addClass("carousel"),s.addSlide=function(t,n){l.push({slide:t,element:n}),l.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===l.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),c=t.index,e.active=t.index,d(c),s.select(l[p(t)]),1===l.length&&e.play())},s.getCurrentIndex=function(){for(var e=0;e<l.length;e++)if(l[e].slide.index===c)return e},s.next=e.next=function(){var t=(s.getCurrentIndex()+1)%l.length;if(0!==t||!e.noWrap())return s.select(l[t],"next");e.pause()},s.prev=e.prev=function(){var t=s.getCurrentIndex()-1<0?l.length-1:s.getCurrentIndex()-1;if(!e.noWrap()||t!==l.length-1)return s.select(l[t],"prev");e.pause()},s.removeSlide=function(t){var n=p(t);l.splice(n,1),l.length>0&&c===n?n>=l.length?(c=l.length-1,e.active=c,d(c),s.select(l[l.length-1])):(c=n,e.active=c,d(c),s.select(l[n])):c>n&&(c--,e.active=c),0===l.length&&(c=null,e.active=null)},s.select=e.select=function(n,r){var o=p(n.slide);void 0===r&&(r=o>s.getCurrentIndex()?"next":"prev"),n.slide.index===c||e.$currentTransition||function(n,r,o){if(f)return;if(angular.extend(n,{direction:o}),angular.extend(l[c].slide||{},{direction:o}),i.enabled(t)&&!e.$currentTransition&&l[r].element&&s.slides.length>1){l[r].element.data(u,n.direction);var a=s.getCurrentIndex();angular.isNumber(a)&&l[a].element&&l[a].element.data(u,n.direction),e.$currentTransition=!0,i.on("addClass",l[r].element,function(t,n){"close"===n&&(e.$currentTransition=null,i.off("addClass",t))})}e.active=n.index,c=n.index,d(r),g()}(n.slide,o,r)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===l.length-1&&e.noWrap()},e.pause=function(){e.noPause||(a=!1,h())},e.play=function(){a||(a=!0,g())},t.on("mouseenter",e.pause),t.on("mouseleave",e.play),e.$on("$destroy",function(){f=!0,h()}),e.$watch("noTransition",function(e){i.enabled(t,!e)}),e.$watch("interval",g),e.$watchCollection("slides",function(t){t.length||(e.$currentTransition=null)}),e.$watch("active",function(e){if(angular.isNumber(e)&&c!==e){for(var t=0;t<l.length;t++)if(l[t].slide.index===e){e=t;break}l[e]&&(d(e),s.select(l[e]),c=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(e){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,n,r,i){n.addClass("item"),i.addSlide(t,n),t.$on("$destroy",function(){i.removeSlide(t)}),t.$watch("active",function(t){e[t?"addClass":"removeClass"](n,"active")})}}}]).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(n,r,i){if("active"===r){var o=n.data("uib-slideDirection"),a="next"===o?"left":"right",s=t.bind(this,n,a+" "+o,i);return n.addClass(o),e(n,{addClass:a}).start().done(s),function(){!0}}i()},beforeRemoveClass:function(n,r,i){if("active"===r){var o="next"===n.data("uib-slideDirection")?"left":"right",a=t.bind(this,n,o,i);return e(n,{addClass:o}).start().done(a),function(){!0}}i()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(e,t,n,r,i){var o,a,s=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function l(e){return i(a,{key:e},!0)[0]}function u(e,t,n){return function(){return e.substr(t+1,n-t-1)}}function c(e,t){for(var n=e.substr(t),r=0;r<a.length;r++)if(new RegExp("^"+a[r].key).test(n)){var i=a[r];return{endIdx:t+i.key.length,parser:i.formatter}}return{endIdx:t+1,parser:function(){return n.charAt(0)}}}function f(e){return parseInt(e,10)}function d(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function p(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function h(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return p(e,n*(d(t,r)-r))}this.init=function(){o=t.id,this.parsers={},this.formatters={},a=[{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){e=+e,this.year=e<69?e+2e3:e+1900},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:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.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:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:t.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:t.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 t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],r=t[2],i=t[3];this.hours+=f(n+r),this.minutes+=f(n+i)},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:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}],angular.version.major>=1&&angular.version.minor>4&&a.push({key:"LLLL",regex:t.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.STANDALONEMONTH.indexOf(e)},formatter:function(e){return n(e,"LLLL")}})},this.init(),this.getParser=function(e){var t=l(e);return t&&t.apply||null},this.overrideParser=function(e,t){var n=l(e);n&&angular.isFunction(t)&&(this.parsers={},n.apply=t)}.bind(this),this.filter=function(e,n){return angular.isDate(e)&&!isNaN(e)&&n?(n=t.DATETIME_FORMATS[n]||n,t.id!==o&&this.init(),this.formatters[n]||(this.formatters[n]=function(e){for(var t,n,r=[],i=0;i<e.length;)if(angular.isNumber(n)){if("'"===e.charAt(i))(i+1>=e.length||"'"!==e.charAt(i+1))&&(r.push(u(e,n,i)),n=null);else if(i===e.length)for(;n<e.length;)t=c(e,n),r.push(t),n=t.endIdx;i++}else"'"!==e.charAt(i)?(t=c(e,i),r.push(t.parser),i=t.endIdx):(n=i,i++);return r}(n)),this.formatters[n].reduce(function(t,n){return t+n(e)},"")):""},this.parse=function(n,i,l){if(!angular.isString(n)||!i)return n;i=(i=t.DATETIME_FORMATS[i]||i).replace(s,"\\$&"),t.id!==o&&this.init(),this.parsers[i]||(this.parsers[i]=function(e){var t=[],n=e.split(""),i=e.indexOf("'");if(i>-1){var o=!1;e=e.split("");for(var s=i;s<e.length;s++)o?("'"===e[s]&&(s+1<e.length&&"'"===e[s+1]?(e[s+1]="$",n[s+1]=""):(n[s]="",o=!1)),e[s]="$"):"'"===e[s]&&(e[s]="$",n[s]="",o=!0);e=e.join("")}return angular.forEach(a,function(r){var i=e.indexOf(r.key);if(i>-1){e=e.split(""),n[i]="("+r.regex+")",e[i]="$";for(var o=i+1,a=i+r.key.length;o<a;o++)n[o]="",e[o]="$";e=e.join(""),t.push({index:i,key:r.key,apply:r.apply,matcher:r.regex})}}),{regex:new RegExp("^"+n.join("")+"$"),map:r(t,"index")}}(i));var u=this.parsers[i],c=u.regex,f=u.map,d=n.match(c),p=!1;if(d&&d.length){var h,g;angular.isDate(l)&&!isNaN(l.getTime())?h={year:l.getFullYear(),month:l.getMonth(),date:l.getDate(),hours:l.getHours(),minutes:l.getMinutes(),seconds:l.getSeconds(),milliseconds:l.getMilliseconds()}:(l&&e.warn("dateparser:","baseDate is not a valid date"),h={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var m=1,v=d.length;m<v;m++){var y=f[m-1];"Z"===y.matcher&&(p=!0),y.apply&&y.apply.call(h,d[m])}var b=p?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,w=p?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return!1;if(1===t&&n>28)return 29===n&&(e%4==0&&e%100!=0||e%400==0);if(3===t||5===t||8===t||10===t)return n<31;return!0}(h.year,h.month,h.date)&&(!angular.isDate(l)||isNaN(l.getTime())||p?(g=new Date(0),b.call(g,h.year,h.month,h.date),w.call(g,h.hours||0,h.minutes||0,h.seconds||0,h.milliseconds||0)):(g=new Date(l),b.call(g,h.year,h.month,h.date),w.call(g,h.hours,h.minutes,h.seconds,h.milliseconds))),g}},this.toTimezone=function(e,t){return e&&t?h(e,t):e},this.fromTimezone=function(e,t){return e&&t?h(e,t,!0):e},this.timezoneToOffset=d,this.addDateMinutes=p,this.convertTimezoneToLocal=h}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,n=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,i){var o=[],a=[],s={},l=i.uibIsClass.match(t),u=l[2],c=l[1].split(",");return function(t,r,i){o.push(t),a.push({scope:t,element:r}),c.forEach(function(r,i){!function(t,r){var i=t.match(n),o=r.$eval(i[1]),l=i[2],c=s[t];if(!c){var f=function(t){var n=null;a.some(function(e){var r=e.scope.$eval(u);if(r===t)return n=e,!0}),c.lastActivated!==n&&(c.lastActivated&&e.removeClass(c.lastActivated.element,o),n&&e.addClass(n.element,o),c.lastActivated=n)};s[t]=c={lastActivated:null,scope:r,watchFn:f,compareWithExp:l,watcher:r.$watch(l,f)}}c.watchFn(r.$eval(l))}(r,t)}),t.$on("$destroy",f)};function f(e){var t=e.targetScope,n=o.indexOf(t);if(o.splice(n,1),a.splice(n,1),o.length){var r=o[0];angular.forEach(s,function(e){e.scope===t&&(e.watcher=r.$watch(e.compareWithExp,e.watchFn),e.scope=r)})}else s={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).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",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(e,t,n,r,i,o,a,s,l,u,c,f){var d=this,p={$setViewValue:angular.noop},h={},g=[];t.addClass("uib-datepicker"),n.$set("role","application"),e.datepickerOptions||(e.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":e[t]=e.datepickerOptions[t]||angular.noop;break;case"datepickerMode":e.datepickerMode=angular.isDefined(e.datepickerOptions.datepickerMode)?e.datepickerOptions.datepickerMode:l.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[t]=angular.isDefined(e.datepickerOptions[t])?i(e.datepickerOptions[t])(e.$parent):l[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:l[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?d.startingDay=e.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?d.startingDay=l.startingDay:d.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?d[t]=f.fromTimezone(new Date(e),h.getOption("timezone")):(u&&a.warn("Literal date support has been deprecated, please switch to date object usage"),d[t]=new Date(s(e,"medium"))):d[t]=l[t]?f.fromTimezone(new Date(l[t]),h.getOption("timezone")):null,d.refreshView()});break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch(function(){return e.datepickerOptions[t]},function(n){d[t]=e[t]=angular.isDefined(n)?n:e.datepickerOptions[t],("minMode"===t&&d.modes.indexOf(e.datepickerOptions.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(e.datepickerOptions.datepickerMode)>d.modes.indexOf(d[t]))&&(e.datepickerMode=d[t],e.datepickerOptions.datepickerMode=d[t])}):d[t]=e[t]=l[t]||null}}),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(n.disabled)||!1,angular.isDefined(n.ngDisabled)&&g.push(e.$parent.$watch(n.ngDisabled,function(t){e.disabled=t,d.refreshView()})),e.isActive=function(t){return 0===d.compare(t.date,d.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){h=function(t){var n;if(angular.version.minor<6)(n=t.$options||e.datepickerOptions.ngModelOptions||l.ngModelOptions||{}).getOption=function(e){return n[e]};else{var r=t.$options.getOption("timezone")||(e.datepickerOptions.ngModelOptions?e.datepickerOptions.ngModelOptions.timezone:null)||(l.ngModelOptions?l.ngModelOptions.timezone:null);n=t.$options.createChild(l.ngModelOptions).createChild(e.datepickerOptions.ngModelOptions).createChild(t.$options).createChild({timezone:r})}return n}(p=t),e.datepickerOptions.initDate?(d.activeDate=f.fromTimezone(e.datepickerOptions.initDate,h.getOption("timezone"))||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(p.$isEmpty(p.$modelValue)||p.$invalid)&&(d.activeDate=f.fromTimezone(e,h.getOption("timezone")),d.refreshView())})):d.activeDate=new Date;var n=p.$modelValue?new Date(p.$modelValue):new Date;this.activeDate=isNaN(n)?f.fromTimezone(new Date,h.getOption("timezone")):f.fromTimezone(n,h.getOption("timezone")),p.$render=function(){d.render()}},this.render=function(){if(p.$viewValue){var e=new Date(p.$viewValue);!isNaN(e)?this.activeDate=f.fromTimezone(e,h.getOption("timezone")):c||a.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=p.$viewValue?new Date(p.$viewValue):null;t=f.fromTimezone(t,h.getOption("timezone")),p.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var r=p.$viewValue?new Date(p.$viewValue):null;r=f.fromTimezone(r,h.getOption("timezone"));var i=new Date;i=f.fromTimezone(i,h.getOption("timezone"));var o=this.compare(t,i),a={date:t,label:f.filter(t,n),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:o<0,current:0===o,future:o>0,customClass:this.customClass(t)||null};return r&&0===this.compare(t,r)&&(e.selectedDt=a),d.activeDate&&0===this.compare(a.date,d.activeDate)&&(e.activeDt=a),a},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===d.minMode){var n=p.$viewValue?f.fromTimezone(new Date(p.$viewValue),h.getOption("timezone")):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=f.toTimezone(n,h.getOption("timezone")),p.$setViewValue(n),p.$render()}else d.activeDate=t,m(d.modes[d.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=d.activeDate.getFullYear()+e*(d.step.years||0),n=d.activeDate.getMonth()+e*(d.step.months||0);d.activeDate.setFullYear(t,n,1),d.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===d.maxMode&&1===t||e.datepickerMode===d.minMode&&-1===t||(m(d.modes[d.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function m(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}e.$on("uib:datepicker.focus",function(){d.element[0].focus()}),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),d.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(d.isDisabled(d.activeDate))return;e.select(d.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(d.handleKeyDown(n,t),d.refreshView()):e.toggleMode("up"===n?1:-1)},t.on("keydown",function(t){e.$apply(function(){e.keydown(t)})}),e.$on("$destroy",function(){for(;g.length;)g.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){var r=[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?r[t]:29}function o(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),o=0;o<t;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var t=this.activeDate.getFullYear(),r=this.activeDate.getMonth(),i=new Date(this.activeDate);i.setFullYear(t,r,1);var a=this.startingDay-i.getDay(),s=a>0?7-a:-a,l=new Date(i);s>0&&l.setDate(1-s);for(var u=this.getDates(l,42),c=0;c<42;c++)u[c]=angular.extend(this.createDateObject(u[c],this.formatDay),{secondary:u[c].getMonth()!==r,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var f=0;f<7;f++)e.labels[f]={abbr:n(u[f].date,this.formatDayHeader),full:n(u[f].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var d=(11-this.startingDay)%7,p=e.rows.length,h=0;h<p;h++)e.weekNumbers.push(o(e.rows[h][d].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(r,1),n=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=i(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,r=new Array(12),i=this.activeDate.getFullYear(),o=0;o<12;o++)(t=new Date(this.activeDate)).setFullYear(i,o,1),r[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(r,this.monthColumns),e.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=this.monthColumns;else if("right"===e)n+=1;else if("down"===e)n+=this.monthColumns;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){var r,i;function o(e){return parseInt((e-1)/i,10)*i+1}this.element=t,this.yearpickerInit=function(){r=this.yearColumns,i=this.yearRows*r,this.step={years:i}},this._refreshView=function(){for(var t,n=new Array(i),a=0,s=o(this.activeDate.getFullYear());a<i;a++)(t=new Date(this.activeDate)).setFullYear(s+a,0,1),n[a]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+a});e.title=[n[0].label,n[i-1].label].join(" - "),e.rows=this.split(n,r),e.columns=r},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-=r:"right"===e?n+=1:"down"===e?n+=r:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*i:"home"===e?n=o(this.activeDate.getFullYear()):"end"===e&&(n=o(this.activeDate.getFullYear())+i-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}).directive("uibDaypicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibYearpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,r,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},o={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){var r,i=(n=this.getRawNode(n)).offsetParent||e[0].documentElement;for(;i&&i!==e[0].documentElement&&(r=i,"static"===(t.getComputedStyle(r).position||"static"));)i=i.offsetParent;return i||e[0].documentElement},scrollbarWidth:function(i){if(i){if(angular.isUndefined(r)){var o=e.find("body");o.addClass("uib-position-body-scrollbar-measure"),r=t.innerWidth-o[0].clientWidth,r=isFinite(r)?r:0,o.removeClass("uib-position-body-scrollbar-measure")}return r}if(angular.isUndefined(n)){var a=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(a),n=a[0].offsetWidth-a[0].clientWidth,n=isFinite(n)?n:0,a.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),r=this.parseStyle(n.paddingRight),i=this.parseStyle(n.paddingBottom),o=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(a.test(o.tagName));return{scrollbarWidth:s,widthOverflow:o.scrollWidth>o.clientWidth,right:r+s,originalRight:r,heightOverflow:o.scrollHeight>o.clientHeight,bottom:i+s,originalBottom:i}},isScrollable:function(e,n){e=this.getRawNode(e);var r=n?i.hidden:i.normal,o=t.getComputedStyle(e);return r.test(o.overflow+o.overflowY+o.overflowX)},scrollParent:function(n,r,o){n=this.getRawNode(n);var a=r?i.hidden:i.normal,s=e[0].documentElement,l=t.getComputedStyle(n);if(o&&a.test(l.overflow+l.overflowY+l.overflowX))return n;var u="absolute"===l.position,c=n.parentElement||s;if(c===s||"fixed"===l.position)return s;for(;c.parentElement&&c!==s;){var f=t.getComputedStyle(c);if(u&&"static"!==f.position&&(u=!1),!u&&a.test(f.overflow+f.overflowY+f.overflowX))break;c=c.parentElement}return c},position:function(n,r){n=this.getRawNode(n);var i=this.offset(n);if(r){var o=t.getComputedStyle(n);i.top-=this.parseStyle(o.marginTop),i.left-=this.parseStyle(o.marginLeft)}var a=this.offsetParent(n),s={top:0,left:0};return a!==e[0].documentElement&&((s=this.offset(a)).top+=a.clientTop-a.scrollTop,s.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top-s.top),left:Math.round(i.left-s.left)}},offset:function(n){var r=(n=this.getRawNode(n)).getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:n.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:n.offsetHeight),top:Math.round(r.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,r,i){i=!1!==i;var o=(n=this.getRawNode(n)).getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},s=r?e[0].documentElement:this.scrollParent(n),l=s.getBoundingClientRect();if(a.top=l.top+s.clientTop,a.left=l.left+s.clientLeft,s===e[0].documentElement&&(a.top+=t.pageYOffset,a.left+=t.pageXOffset),a.bottom=a.top+s.clientHeight,a.right=a.left+s.clientWidth,i){var u=t.getComputedStyle(s);a.top+=this.parseStyle(u.paddingTop),a.bottom-=this.parseStyle(u.paddingBottom),a.left+=this.parseStyle(u.paddingLeft),a.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(o.top-a.top),bottom:Math.round(a.bottom-o.bottom),left:Math.round(o.left-a.left),right:Math.round(a.right-o.right)}},parsePlacement:function(e){var t=o.auto.test(e);return t&&(e=e.replace(o.auto,"")),(e=e.split("-"))[0]=e[0]||"top",o.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",o.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,n,r,i){e=this.getRawNode(e),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");r=this.parsePlacement(r);var l=i?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(r[2]){var c=this.viewportOffset(e,i),f=t.getComputedStyle(n),d={width:a+Math.round(Math.abs(this.parseStyle(f.marginLeft)+this.parseStyle(f.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(f.marginTop)+this.parseStyle(f.marginBottom)))};if(r[0]="top"===r[0]&&d.height>c.top&&d.height<=c.bottom?"bottom":"bottom"===r[0]&&d.height>c.bottom&&d.height<=c.top?"top":"left"===r[0]&&d.width>c.left&&d.width<=c.right?"right":"right"===r[0]&&d.width>c.right&&d.width<=c.left?"left":r[0],r[1]="top"===r[1]&&d.height-l.height>c.bottom&&d.height-l.height<=c.top?"bottom":"bottom"===r[1]&&d.height-l.height>c.top&&d.height-l.height<=c.bottom?"top":"left"===r[1]&&d.width-l.width>c.right&&d.width-l.width<=c.left?"right":"right"===r[1]&&d.width-l.width>c.left&&d.width-l.width<=c.right?"left":r[1],"center"===r[1])if(o.vertical.test(r[0])){var p=l.width/2-a/2;c.left+p<0&&d.width-l.width<=c.right?r[1]="left":c.right+p<0&&d.width-l.width<=c.left&&(r[1]="right")}else{var h=l.height/2-d.height/2;c.top+h<0&&d.height-l.height<=c.bottom?r[1]="top":c.bottom+h<0&&d.height-l.height<=c.top&&(r[1]="bottom")}}switch(r[0]){case"top":u.top=l.top-s;break;case"bottom":u.top=l.top+l.height;break;case"left":u.left=l.left-a;break;case"right":u.left=l.left+l.width}switch(r[1]){case"top":u.top=l.top;break;case"bottom":u.top=l.top+l.height-s;break;case"left":u.left=l.left;break;case"right":u.left=l.left+l.width-a;break;case"center":o.vertical.test(r[0])?u.left=l.left+l.width/2-a/2:u.top=l.top+l.height/2-s/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===r[1]?r[0]:r[0]+"-"+r[1],u},adjustTop:function(e,t,n,r){if(-1!==e.indexOf("top")&&n!==r)return{top:t.top-r+"px"}},positionArrow:function(e,n){var r=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(r){var i=angular.element(r).hasClass("tooltip-inner"),a=i?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(a){var s={top:"",bottom:"",left:"",right:""};if("center"!==(n=this.parsePlacement(n))[1]){var l="border-"+n[0]+"-width",u=t.getComputedStyle(a)[l],c="border-";o.vertical.test(n[0])?c+=n[0]+"-"+n[1]:c+=n[1]+"-"+n[0],c+="-radius";var f=t.getComputedStyle(i?r:e)[c];switch(n[0]){case"top":s.bottom=i?"0":"-"+u;break;case"bottom":s.top=i?"0":"-"+u;break;case"left":s.right=i?"0":"-"+u;break;case"right":s.left=i?"0":"-"+u}s[n[1]]=f,angular.element(a).css(s)}else angular.element(a).css(s)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/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,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,n,r,i,o,a,s,l,u,c,f,d,p,h,g){var m,v,y,b,w,$,E,S,x,C,T,k,_,A=!1,O=[];function D(t){var n=f.parse(t,m,e.date);if(isNaN(n))for(var r=0;r<_.length;r++)if(n=f.parse(t,_[r],e.date),!isNaN(n))return n;return n}function M(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=D(e);if(!isNaN(t))return f.toTimezone(t,T.getOption("timezone"))}return T.getOption("allowInvalid")?e:void 0}function N(e,t){var r=e||t;return!n.ngRequired&&!r||(angular.isNumber(r)&&(r=new Date(r)),!r||(!(!angular.isDate(r)||isNaN(r))||!!angular.isString(r)&&!isNaN(D(r))))}function I(n){if(e.isOpen||!e.disabled){var r=k[0],i=t[0].contains(n.target),o=void 0!==r.contains&&r.contains(n.target);!e.isOpen||i||o||e.$apply(function(){e.isOpen=!1})}}function F(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!1}),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!0}))}function R(){if(e.isOpen){var r=angular.element(k[0].querySelector(".uib-datepicker-popup")),i=n.popupPlacement?n.popupPlacement:d.placement,o=u.positionElements(t,r,i,y);r.css({top:o.top+"px",left:o.left+"px"}),r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}this.init=function(i){if(T=function(e){var t;angular.version.minor<6?(t=angular.isObject(e.$options)?e.$options:{timezone:null}).getOption=function(e){return t[e]}:t=e.$options;return t}(C=i),v=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,y=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,b=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):d.onOpenFocus,w=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,$=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:d.datepickerTemplateUrl,_=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):d.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(m=d.html5Types[n.type],A=!0):(m=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",function(e,t){var n=e||d.datepickerPopup;if(n!==m&&(m=n,C.$modelValue=null,!m))throw new Error("uibDatepickerPopup must have a date format specified.")})),!m)throw new Error("uibDatepickerPopup must have a date format specified.");if(A&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(E=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":w}),(S=angular.element(E.children()[0])).attr("template-url",$),e.datepickerOptions||(e.datepickerOptions={}),A&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),S.attr("datepicker-options","datepickerOptions"),A?C.$formatters.push(function(t){return e.date=f.fromTimezone(t,T.getOption("timezone")),t}):(C.$$parserName="date",C.$validators.date=N,C.$parsers.unshift(M),C.$formatters.push(function(t){return C.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=f.fromTimezone(t,T.getOption("timezone")),f.filter(e.date,m))})),C.$viewChangeListeners.push(function(){e.date=D(C.$viewValue)}),t.on("keydown",F),k=r(E)(e),E.remove(),y?s.find("body").append(k):t.after(k),e.$on("$destroy",function(){for(!0===e.isOpen&&(l.$$phase||e.$apply(function(){e.isOpen=!1})),k.remove(),t.off("keydown",F),s.off("click",I),x&&x.off("scroll",R),angular.element(a).off("resize",R);O.length;)O.shift()()})},e.getText=function(t){return e[t+"Text"]||d[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=f.fromTimezone(new Date,T.getOption("timezone")));var n={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=new Date(e.datepickerOptions[t]):(g&&i.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(c(e.datepickerOptions[t],"medium"))):n[t]=null}),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){e.date=n;var r=e.date?f.filter(e.date,m):null;t.val(r),C.$setViewValue(r),v&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(n.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,n){if(n.stopPropagation(),"today"===t){var r=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(r.getFullYear(),r.getMonth(),r.getDate()):(t=f.fromTimezone(r,T.getOption("timezone"))).setHours(0,0,0,0)}e.dateSelection(t)},e.close=function(n){n.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&O.push(e.$parent.$watch(o(n.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(r){r?e.disabled?e.isOpen=!1:p(function(){R(),b&&e.$broadcast("uib:datepicker.focus"),s.on("click",I);var r=n.popupPlacement?n.popupPlacement:d.placement;y||u.parsePlacement(r)[2]?(x=x||angular.element(u.scrollParent(t)))&&x.on("scroll",R):x=null,angular.element(a).on("resize",R)},0,!1):(s.off("click",I),x&&x.off("scroll",R),angular.element(a).off("resize",R))}),e.$on("uib:datepicker.mode",function(){p(R,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,o)},n)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var r=e[t];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete e[t]}}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(e,t,n){var r=null,i=n.createNew();this.isOnlyOpen=function(e,t){var n=i.get(t);if(n&&n.reduce(function(t,n){return n.scope===e?n:t},{}))return 1===n.length;return!1},this.open=function(t,n,a){if(r||e.on("click",o),r&&r!==t&&(r.isOpen=!1),r=t,a){var s=i.get(a);if(s)-1===s.map(function(e){return e.scope}).indexOf(t)&&i.put(a,{scope:t});else i.put(a,{scope:t})}},this.close=function(t,n,a){if(r===t&&(e.off("click",o),e.off("keydown",this.keybindFilter),r=null),a){var s=i.get(a);if(s){var l=s.reduce(function(e,n){return n.scope===t?n:e},{});l&&i.remove(a,l)}}};var o=function(e){if(r&&r.isOpen&&!(e&&"disabled"===r.getAutoClose()||e&&3===e.which)){var n=r.getToggleElement();if(!(e&&n&&n[0].contains(e.target))){var i=r.getDropdownElement();e&&"outsideClick"===r.getAutoClose()&&i&&i[0].contains(e.target)||(r.focusToggleElement(),r.isOpen=!1,t.$$phase||r.$apply())}}};this.keybindFilter=function(e){if(r){var t=r.getDropdownElement(),n=r.getToggleElement(),i=t&&t[0].contains(e.target),a=n&&n[0].contains(e.target);27===e.which?(e.stopPropagation(),r.focusToggleElement(),o()):r.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&r.isOpen&&(i||a)&&(e.preventDefault(),e.stopPropagation(),r.focusDropdownEntry(e.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,r,i,o,a,s,l,u,c){var f,d,p=this,h=e.$new(),g=i.appendToOpenClass,m=i.openClass,v=angular.noop,y=n.onToggle?r(n.onToggle):angular.noop,b=!1,w=l.find("body");function $(){t.append(p.dropdownMenu)}t.addClass("dropdown"),this.init=function(){n.isOpen&&(d=r(n.isOpen),v=d.assign,e.$watch(d,function(e){h.isOpen=!!e})),b=angular.isDefined(n.keyboardNav)},this.toggle=function(e){return h.isOpen=arguments.length?!!e:!h.isOpen,angular.isFunction(v)&&v(h,h.isOpen),h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return p.toggleElement},h.getAutoClose=function(){return n.autoClose||"always"},h.getElement=function(){return t},h.isKeynavEnabled=function(){return b},h.focusDropdownEntry=function(e){var n=p.dropdownMenu?angular.element(p.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(p.selectedOption)?p.selectedOption=p.selectedOption===n.length-1?p.selectedOption:p.selectedOption+1:p.selectedOption=0;break;case 38:angular.isNumber(p.selectedOption)?p.selectedOption=0===p.selectedOption?0:p.selectedOption-1:p.selectedOption=n.length-1}n[p.selectedOption].focus()},h.getDropdownElement=function(){return p.dropdownMenu},h.focusToggleElement=function(){p.toggleElement&&p.toggleElement[0].focus()},h.$watch("isOpen",function(i,d){var b=null,E=!1;if(angular.isDefined(n.dropdownAppendTo)){var S=r(n.dropdownAppendTo)(h);S&&(b=angular.element(S))}angular.isDefined(n.dropdownAppendToBody)&&(!1!==r(n.dropdownAppendToBody)(h)&&(E=!0));if(E&&!b&&(b=w),b&&p.dropdownMenu&&(i?(b.append(p.dropdownMenu),t.on("$destroy",$)):(t.off("$destroy",$),$())),b&&p.dropdownMenu){var x,C,T,k=s.positionElements(t,p.dropdownMenu,"bottom-left",!0),_=0;if(x={top:k.top+"px",display:i?"block":"none"},(C=p.dropdownMenu.hasClass("dropdown-menu-right"))?(x.left="auto",(T=s.scrollbarPadding(b)).heightOverflow&&T.scrollbarWidth&&(_=T.scrollbarWidth),x.right=window.innerWidth-_-(k.left+t.prop("offsetWidth"))+"px"):(x.left=k.left+"px",x.right="auto"),!E){var A=s.offset(b);x.top=k.top-A.top+"px",C?x.right=window.innerWidth-(k.left-A.left+t.prop("offsetWidth"))+"px":x.left=k.left-A.left+"px"}p.dropdownMenu.css(x)}var O=b||t,D=b?g:m,M=O.hasClass(D),N=o.isOnlyOpen(e,b);M===!i&&a[b?N?"removeClass":"addClass":i?"addClass":"removeClass"](O,D).then(function(){angular.isDefined(i)&&i!==d&&y(e,{open:!!i})});if(i)p.dropdownMenuTemplateUrl?c(p.dropdownMenuTemplateUrl).then(function(e){f=h.$new(),u(e.trim())(f,function(e){var t=e;p.dropdownMenu.replaceWith(t),p.dropdownMenu=t,l.on("keydown",o.keybindFilter)})}):l.on("keydown",o.keybindFilter),h.focusToggleElement(),o.open(h,t,b);else{if(o.close(h,t,b),p.dropdownMenuTemplateUrl){f&&f.$destroy();var I=angular.element('<ul class="dropdown-menu"></ul>');p.dropdownMenu.replaceWith(I),p.dropdownMenu=I}p.selectedOption=null}angular.isFunction(v)&&v(e,i)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){r.toggle()})};t.on("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.off("click",i)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t===e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.pop()},length:function(){return e.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(t,n){var r=e.resolver?t.get(e.resolver):null;return{resolve:function(e,i,o,a){if(r)return r.resolve(e,i,o,a);var s=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?s.push(n.resolve(t.invoke(e))):angular.isString(e)?s.push(n.resolve(t.get(e))):s.push(n.resolve(e))}),n.all(s).then(function(t){var n={},r=0;return angular.forEach(e,function(e,i){n[i]=t[r++]}),n})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){return{restrict:"A",compile:function(e,t){return e.addClass(t.backdropClass),r}};function r(t,r,i){i.modalInClass&&(e.addClass(r,i.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(n,o){var a=o();t.modalOptions.animation?e.removeClass(r,i.modalInClass).then(a):a()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,r){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(i,o,a){o.addClass(a.windowTopClass||""),i.size=a.size,i.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},o.on("click",i.close),i.$isRendered=!0;var s=t.defer();i.$$postDigest(function(){s.resolve()}),s.promise.then(function(){var s=null;a.modalInClass&&(s=n(o,{addClass:a.modalInClass}).start(),i.$on(e.NOW_CLOSING_EVENT,function(e,t){var r=t();n(o,{removeClass:a.modalInClass}).start().then(r)})),t.when(s).then(function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!r[0].activeElement||!o[0].contains(r[0].activeElement)){var n=o[0].querySelector("[autofocus]");n?n.focus():o[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(e){return{link:function(t,n,r,i,o){o(t.$parent,function(t){n.empty(),e.enter(t,n)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,r,i,o,a,s,l){var u,c,f,d="modal-open",p=s.createNew(),h=a.createNew(),g={NOW_CLOSING_EVENT:"modal.stack.now-closing"},m=0,v=null,y="data-bootstrap-modal-aria-hidden-count",b=/[A-Z]/g;function w(){for(var e=-1,t=p.keys(),n=0;n<t.length;n++)p.get(t[n]).value.backdrop&&(e=n);return e>-1&&e<m&&(e=m),e}function $(e,t){var n=p.get(e).value,r=n.appendTo;p.remove(e),(v=p.top())&&(m=parseInt(v.value.modalDomEl.attr("index"),10)),S(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||d;h.remove(t,e);var i=h.hasKey(t);r.toggleClass(t,i),!i&&f&&f.heightOverflow&&f.scrollbarWidth&&(f.originalRight?r.css({paddingRight:f.originalRight+"px"}):r.css({paddingRight:""}),f=null),E(!0)},n.closedDeferred),function(){if(u&&-1===w()){S(u,c,function(){null}),u=void 0,c=void 0}}(),t&&t.focus?t.focus():r.focus&&r.focus()}function E(e){var t;p.length()>0&&(t=p.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function S(t,n,r,i){var a,s=null;return n.$broadcast(g.NOW_CLOSING_EVENT,function(){return a||(a=o.defer(),s=a.promise),function(){a.resolve()}}),o.when(s).then(function o(){if(o.done)return;o.done=!0;e.leave(t).then(function(){r&&r(),t.remove(),i&&i.resolve()});n.$destroy()})}function x(e){if(e.isDefaultPrevented())return e;var t=p.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),i.$apply(function(){g.dismiss(t.key,"escape key press")}));break;case 9:var n=g.loadFocusElementList(t),r=!1;e.shiftKey?(g.isFocusInFirstItem(e,n)||g.isModalFocused(e,t))&&(r=g.focusLastFocusableElement(n)):g.isFocusInLastItem(e,n)&&(r=g.focusFirstFocusableElement(n)),r&&(e.preventDefault(),e.stopPropagation())}}function C(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}function T(){Array.prototype.forEach.call(document.querySelectorAll("["+y+"]"),function(e){var t=parseInt(e.getAttribute(y),10)-1;e.setAttribute(y,t),t||(e.removeAttribute(y),e.removeAttribute("aria-hidden"))})}return i.$watch(w,function(e){c&&(c.index=e)}),n.on("keydown",x),i.$on("$destroy",function(){n.off("keydown",x)}),g.open=function(t,o){var a=n[0].activeElement,s=o.openedClass||d;E(!1),v=p.top(),p.add(t,{deferred:o.deferred,renderDeferred:o.renderDeferred,closedDeferred:o.closedDeferred,modalScope:o.scope,backdrop:o.backdrop,keyboard:o.keyboard,openedClass:o.openedClass,windowTopClass:o.windowTopClass,animation:o.animation,appendTo:o.appendTo}),h.put(s,t);var g,$=o.appendTo,S=w();S>=0&&!u&&((c=i.$new(!0)).modalOptions=o,c.index=S,(u=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),o.backdropClass&&u.addClass(o.backdropClass),o.animation&&u.attr("modal-animation","true"),r(u)(c),e.enter(u,$),l.isScrollable($)&&(f=l.scrollbarPadding($)).heightOverflow&&f.scrollbarWidth&&$.css({paddingRight:f.right+"px"})),o.component?(g=document.createElement(o.component.name.replace(b,function(e,t){return(t?"-":"")+e.toLowerCase()})),(g=angular.element(g)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):g=o.content,m=v?parseInt(v.value.modalDomEl.attr("index"),10)+1:0;var x=angular.element('<div uib-modal-window="modal-window"></div>');x.attr({class:"modal","template-url":o.windowTemplateUrl,"window-top-class":o.windowTopClass,role:"dialog","aria-labelledby":o.ariaLabelledBy,"aria-describedby":o.ariaDescribedBy,size:o.size,index:m,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(g),o.windowClass&&x.addClass(o.windowClass),o.animation&&x.attr("modal-animation","true"),$.addClass(s),o.scope&&(o.scope.$$topModalIndex=m),e.enter(r(x)(o.scope),$),p.top().value.modalDomEl=x,p.top().value.modalOpener=a,function e(t){if(!t||"BODY"===t[0].tagName)return;(function(e){var t=e.parent()?e.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==e[0]})})(t).forEach(function(e){var t="true"===e.getAttribute("aria-hidden"),n=parseInt(e.getAttribute(y),10);n||(n=t?1:0),e.setAttribute(y,n+1),e.setAttribute("aria-hidden","true")});return e(t.parent())}(x)},g.close=function(e,t){var n=p.get(e);return T(),n&&C(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),$(e,n.value.modalOpener),!0):!n},g.dismiss=function(e,t){var n=p.get(e);return T(),n&&C(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),$(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 p.top()},g.modalRendered=function(e){var t=p.get(e);t&&t.value.renderDeferred.resolve()},g.focusFirstFocusableElement=function(e){return e.length>0&&(e[0].focus(),!0)},g.focusLastFocusableElement=function(e){return e.length>0&&(e[e.length-1].focus(),!0)},g.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},g.isFocusInFirstItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]},g.isFocusInLastItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]},g.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return n?Array.prototype.filter.call(n,function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}):n}}},g}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,r,i,o,a,s){var l={};var u=null;return l.getPromiseChain=function(){return u},l.open=function(l){var c,f,d,p=n.defer(),h=n.defer(),g=n.defer(),m=n.defer(),v={result:p.promise,opened:h.promise,closed:g.promise,rendered:m.promise,close:function(e){return s.close(v,e)},dismiss:function(e){return s.dismiss(v,e)}};if((l=angular.extend({},e.options,l)).resolve=l.resolve||{},l.appendTo=l.appendTo||r.find("body").eq(0),!l.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!l.component&&!l.template&&!l.templateUrl)throw new Error("One of component or template or templateUrl options is required.");function y(){return c}return c=l.component?n.when(a.resolve(l.resolve,{},null,null)):n.all([(f=l,f.template?n.when(f.template):i(angular.isFunction(f.templateUrl)?f.templateUrl():f.templateUrl)),a.resolve(l.resolve,{},null,null)]),d=u=n.all([u]).then(y,y).then(function(e){var n=l.scope||t,r=n.$new();r.$close=v.close,r.$dismiss=v.dismiss,r.$on("$destroy",function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")});var i,a,u={scope:r,deferred:p,renderDeferred:m,closedDeferred:g,animation:l.animation,backdrop:l.backdrop,keyboard:l.keyboard,backdropClass:l.backdropClass,windowTopClass:l.windowTopClass,windowClass:l.windowClass,windowTemplateUrl:l.windowTemplateUrl,ariaLabelledBy:l.ariaLabelledBy,ariaDescribedBy:l.ariaDescribedBy,size:l.size,openedClass:l.openedClass,appendTo:l.appendTo},c={},f={};function d(t,n,i,o){t.$scope=r,t.$scope.$resolve={},i?t.$scope.$uibModalInstance=v:t.$uibModalInstance=v;var a=n?e[1]:e;angular.forEach(a,function(e,n){o&&(t[n]=e),t.$scope.$resolve[n]=e})}l.component?(d(c,!1,!0,!1),c.name=l.component,u.component=c):l.controller&&(d(f,!0,!1,!0),a=o(l.controller,f,!0,l.controllerAs),l.controllerAs&&l.bindToController&&((i=a.instance).$close=r.$close,i.$dismiss=r.$dismiss,angular.extend(i,{$resolve:f.$scope.$resolve},n)),i=a(),angular.isFunction(i.$onInit)&&i.$onInit()),l.component||(u.content=e[0]),s.open(v,u),h.resolve(!0)},function(e){h.reject(e),p.reject(e)}).finally(function(){u===d&&(u=null)}),v},l}]};return e}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,r){t.setNumPages=r.numPages?e(r.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,i){t.ngModelCtrl=e,t.config=i,e.$render=function(){t.render()},r.itemsPerPage?t._watchers.push(n.$parent.$watch(r.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=i.itemsPerPage,n.$watch("totalItems",function(e,r){(angular.isDefined(e)||e!==r)&&(n.totalPages=t.calculateTotalPages(),t.updatePage())})},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(n.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){n.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(e,r){r&&r.preventDefault(),(!n.ngDisabled||!r)&&n.page!==e&&e>0&&e<=n.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},n.getText=function(e){return n[e+"Text"]||t.config[e+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},t.updatePage=function(){t.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):t.ngModelCtrl.$render()},n.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,r){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):r.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,n,r,i){n.addClass("pager");var o=i[0],a=i[1];a&&o.init(a,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,r,i){var o=this,a=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):i.maxSize,s=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):i.rotate,l=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):i.forceEllipses,u=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):i.boundaryLinkNumbers,c=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;function f(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,t.$set("role","menu"),r.create(this,e,t),t.maxSize&&o._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){a=parseInt(e,10),o.render()}));var d=this.render;this.render=function(){d(),e.page>0&&e.page<=e.totalPages&&(e.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(a)&&a<t;o&&(s?(i=(r=Math.max(e-Math.floor(a/2),1))+a-1)>t&&(r=(i=t)-a+1):(r=(Math.ceil(e/a)-1)*a+1,i=Math.min(r+a-1,t)));for(var d=r;d<=i;d++){var p=f(d,c(d),d===e);n.push(p)}if(o&&a>0&&(!s||l||u)){if(r>1){if(!u||r>3){var h=f(r-1,"...",!1);n.unshift(h)}if(u){if(3===r){var g=f(2,"2",!1);n.unshift(g)}var m=f(1,"1",!1);n.unshift(m)}}if(i<t){if(!u||i<t-2){var v=f(i+1,"...",!1);n.push(v)}if(u){if(i===t-2){var y=f(t-1,t-1,!1);n.push(y)}var b=f(t,t,!1);n.push(b)}}}return 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,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(e,n,r,i){n.addClass("pagination");var o=i[0],a=i[1];a&&o.init(a,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var e={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(r,i,o,a,s,l,u,c,f){var d=f.createNew();function p(e){if(27===e.which){var t=d.top();t&&(t.value.close(),t=null)}}return a.on("keyup",p),u.$on("$destroy",function(){a.off("keyup",p)}),function(r,u,f,p){function h(e){var n=(e||p.trigger||f).split(" ");return{show:n,hide:n.map(function(e){return t[e]||e})}}p=angular.extend({},e,n,p);var g=r.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()}),m=l.startSymbol(),v=l.endSymbol(),y="<div "+g+'-popup uib-title="'+m+"title"+v+'" '+(p.useContentExp?'content-exp="contentExp()" ':'content="'+m+"content"+v+'" ')+'origin-scope="origScope" class="uib-position-measure '+u+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(e,t){var n=i(y);return function(e,t,i,l){var f,g,m,v,y,b,w,$,E=!!angular.isDefined(p.appendToBody)&&p.appendToBody,S=h(void 0),x=angular.isDefined(i[u+"Enable"]),C=e.$new(!0),T=!1,k=!!angular.isDefined(i[u+"IsOpen"])&&c(i[u+"IsOpen"]),_=!!p.useContentExp&&c(i[r]),A=[],O=function(){f&&f.html()&&(b||(b=o(function(){var e=s.positionElements(t,f,C.placement,E),n=angular.isDefined(f.offsetHeight)?f.offsetHeight:f.prop("offsetHeight"),r=E?s.offset(t):s.position(t);f.css({top:e.top+"px",left:e.left+"px"});var i=e.placement.split("-");f.hasClass(i[0])||(f.removeClass($.split("-")[0]),f.addClass(i[0])),f.hasClass(p.placementClassPrefix+e.placement)||(f.removeClass(p.placementClassPrefix+$),f.addClass(p.placementClassPrefix+e.placement)),w=o(function(){var e=angular.isDefined(f.offsetHeight)?f.offsetHeight:f.prop("offsetHeight"),t=s.adjustTop(i,r,n,e);t&&f.css(t),w=null},0,!1),f.hasClass("uib-position-measure")?(s.positionArrow(f,e.placement),f.removeClass("uib-position-measure")):$!==e.placement&&s.positionArrow(f,e.placement),$=e.placement,b=null},0,!1)))};function D(){C.isOpen?N():M()}function M(){x&&!e.$eval(i[u+"Enable"])||(P(),function(){C.title=i[u+"Title"],C.content=_?_(e):i[r];C.popupClass=i[u+"Class"],C.placement=angular.isDefined(i[u+"Placement"])?i[u+"Placement"]:p.placement;var t=s.parsePlacement(C.placement);$=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(i[u+"PopupDelay"],10),o=parseInt(i[u+"PopupCloseDelay"],10);C.popupDelay=isNaN(n)?p.popupDelay:n,C.popupCloseDelay=isNaN(o)?p.popupCloseDelay:o}(),C.popupDelay?v||(v=o(I,C.popupDelay,!1)):I())}function N(){F(),C.popupCloseDelay?y||(y=o(R,C.popupCloseDelay,!1)):R()}function I(){if(F(),P(),!C.content)return angular.noop;!function(){if(f)return;g=C.$new(),f=n(g,function(e){E?a.find("body").append(e):t.after(e)}),d.add(C,{close:R}),function(){A.length=0,_?(A.push(e.$watch(_,function(e){C.content=e,!e&&C.isOpen&&R()})),A.push(g.$watch(function(){T||(T=!0,g.$$postDigest(function(){T=!1,C&&C.isOpen&&O()}))}))):A.push(i.$observe(r,function(e){C.content=e,!e&&C.isOpen?R():O()}));A.push(i.$observe(u+"Title",function(e){C.title=e,C.isOpen&&O()})),A.push(i.$observe(u+"Placement",function(e){C.placement=e||p.placement,C.isOpen&&O()}))}()}(),C.$evalAsync(function(){C.isOpen=!0,j(!0),O()})}function F(){v&&(o.cancel(v),v=null),b&&(o.cancel(b),b=null)}function R(){C&&C.$evalAsync(function(){C&&(C.isOpen=!1,j(!1),C.animation?m||(m=o(L,150,!1)):L())})}function P(){y&&(o.cancel(y),y=null),m&&(o.cancel(m),m=null)}function L(){F(),P(),A.length&&(angular.forEach(A,function(e){e()}),A.length=0),f&&(f.remove(),f=null,w&&o.cancel(w)),d.remove(C),g&&(g.$destroy(),g=null)}function j(t){k&&angular.isFunction(k.assign)&&k.assign(e,t)}function U(e){C&&C.isOpen&&f&&(t[0].contains(e.target)||f[0].contains(e.target)||N())}function B(e){27===e.which&&N()}C.origScope=e,C.isOpen=!1,C.contentExp=function(){return C.content},i.$observe("disabled",function(e){e&&F(),e&&C.isOpen&&R()}),k&&e.$watch(k,function(e){C&&!e===C.isOpen&&D()});var H,z,V,Y=function(){S.show.forEach(function(e){"outsideClick"===e?t.off("click",D):(t.off(e,M),t.off(e,D)),t.off("keypress",B)}),S.hide.forEach(function(e){"outsideClick"===e?a.off("click",U):t.off(e,N)})};H=[],z=[],V=e.$eval(i[u+"Trigger"]),Y(),angular.isObject(V)?(Object.keys(V).forEach(function(e){H.push(e),z.push(V[e])}),S={show:H,hide:z}):S=h(V),"none"!==S.show&&S.show.forEach(function(e,n){"outsideClick"===e?(t.on("click",D),a.on("click",U)):e===S.hide[n]?t.on(e,D):e&&(t.on(e,M),t.on(S.hide[n],N)),t.on("keypress",B)});var W,q=e.$eval(i[u+"Animation"]);C.animation=angular.isDefined(q)?!!q:p.animation;var K=u+"AppendToBody";W=K in i&&void 0===i[K]||e.$eval(i[K]),E=angular.isDefined(W)?W:E,e.$on("$destroy",function(){Y(),L(),C=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,a){var s,l,u,c=i.$eval(a.tooltipTemplateTranscludeScope),f=0,d=function(){l&&(l.remove(),l=null),s&&(s.$destroy(),s=null),u&&(e.leave(u).then(function(){l=null}),l=u,u=null)};i.$watch(t.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(t){var a=++f;t?(r(t,!0).then(function(r){if(a===f){var i=c.$new(),l=n(r)(i,function(t){d(),e.enter(t,o)});u=l,(s=i).$emit("$includeContentLoaded",t)}},function(){a===f&&(d(),i.$emit("$includeContentError",t))}),i.$emit("$includeContentRequested",t)):d()}),i.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,r){if(t.placement){var i=e.parsePlacement(t.placement);n.addClass(i[0])}t.popupClass&&n.addClass(t.popupClass),t.animation&&n.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",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{restrict:"A",scope:{contentExp:"&"},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{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},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(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function o(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=o(),this.addBar=function(e,t,n){i||t.css({transition:"none"}),this.bars.push(e),e.max=o(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=r.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,r.removeBar(e)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){r.bars.forEach(function(e){e.max=o(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?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,r){r.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var r={$setViewValue:angular.noop},i=this;this.init=function(i){(r=i).$render=this.render,r.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):n.enableReset;var o=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(o)&&o.length>0?o:n.titles;var a=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(a)},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]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var n=i.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(n),r.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue,e.title=i.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var t,n,r=this;function i(e){for(var t=0;t<r.tabs.length;t++)if(r.tabs[t].index===e)return t}r.tabs=[],r.select=function(e,o){if(!n){var a=i(t),s=r.tabs[a];if(s){if(s.tab.onDeselect({$event:o,$selectedIndex:e}),o&&o.isDefaultPrevented())return;s.tab.active=!1}var l=r.tabs[e];l?(l.tab.onSelect({$event:o}),l.tab.active=!0,r.active=l.index,t=l.index):!l&&angular.isDefined(t)&&(r.active=null,t=null)}},r.addTab=function(e){if(r.tabs.push({tab:e,index:e.index}),r.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index===r.active||!angular.isDefined(r.active)&&1===r.tabs.length){var t=i(e.index);r.select(t)}},r.removeTab=function(e){for(var t,n=0;n<r.tabs.length;n++)if(r.tabs[n].tab===e){t=n;break}if(r.tabs[t].index===r.active){var i=t===r.tabs.length-1?t-1:t+1%r.tabs.length;r.select(i)}r.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==t&&r.select(i(e))}),e.$on("$destroy",function(){n=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.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(e){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,n,r,i,o){t.disabled=!1,r.disable&&t.$parent.$watch(e(r.disable),function(e){t.disabled=!!e}),angular.isUndefined(r.index)&&(i.tabs&&i.tabs.length?t.index=Math.max.apply(null,i.tabs.map(function(e){return e.index}))+1:t.index=0),angular.isUndefined(r.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,r=0;r<i.tabs.length;r++)if(i.tabs[r].tab===t){n=r;break}i.select(n,e)}},i.addTab(t),t.$on("$destroy",function(){i.removeTab(t)}),t.$transcludeFn=o}}}]).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,t,n){var r=e.$eval(n.uibTabContentTransclude).tab;r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){!function(e){return e.tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):r.headingElement=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(e,t,n,r,i,o,a){var s,l,u,c=new Date,f=[],d={$setViewValue:angular.noop},p=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS,h=!angular.isDefined(n.padHours)||e.$parent.$eval(n.padHours);e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,r){(d=t).$render=this.render,d.$formatters.unshift(function(e){return e?new Date(e):null});var i=r.eq(0),o=r.eq(1),c=r.eq(2);s=i.controller("ngModel"),l=o.controller("ngModel"),u=c.controller("ngModel"),(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(i,o,c),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(i,o,c),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(i,o,c)};var g=a.hourStep;n.hourStep&&f.push(e.$parent.$watch(r(n.hourStep),function(e){g=+e}));var m,v,y=a.minuteStep;n.minuteStep&&f.push(e.$parent.$watch(r(n.minuteStep),function(e){y=+e})),f.push(e.$parent.$watch(r(n.min),function(e){var t=new Date(e);m=isNaN(t)?void 0:t})),f.push(e.$parent.$watch(r(n.max),function(e){var t=new Date(e);v=isNaN(t)?void 0:t}));var b=!1;n.ngDisabled&&f.push(e.$parent.$watch(r(n.ngDisabled),function(e){b=e})),e.noIncrementHours=function(){var e=_(c,60*g);return b||e>v||e<c&&e<m},e.noDecrementHours=function(){var e=_(c,60*-g);return b||e<m||e>c&&e>v},e.noIncrementMinutes=function(){var e=_(c,y);return b||e>v||e<c&&e<m},e.noDecrementMinutes=function(){var e=_(c,-y);return b||e<m||e>c&&e>v},e.noIncrementSeconds=function(){var e=A(c,w);return b||e>v||e<c&&e<m},e.noDecrementSeconds=function(){var e=A(c,-w);return b||e<m||e>c&&e>v},e.noToggleMeridian=function(){return c.getHours()<12?b||_(c,720)>v:b||_(c,-720)<m};var w=a.secondStep;function $(){var t=+e.hours;if((e.showMeridian?t>0&&t<13:t>=0&&t<24)&&""!==e.hours)return e.showMeridian&&(12===t&&(t=0),e.meridian===p[1]&&(t+=12)),t}function E(){var t=+e.minutes;if(t>=0&&t<60&&""!==e.minutes)return t}function S(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function x(e){C(),d.$setViewValue(new Date(c)),T(e)}function C(){s&&s.$setValidity("hours",!0),l&&l.$setValidity("minutes",!0),u&&u.$setValidity("seconds",!0),d.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function T(t){if(d.$modelValue){var n=c.getHours(),r=c.getMinutes(),i=c.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:S(n,!h),"m"!==t&&(e.minutes=S(r)),e.meridian=c.getHours()<12?p[0]:p[1],"s"!==t&&(e.seconds=S(i)),e.meridian=c.getHours()<12?p[0]:p[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=p[0]}function k(e){c=A(c,e),x()}function _(e,t){return A(e,60*t)}function A(e,t){var n=new Date(e.getTime()+1e3*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function O(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}n.secondStep&&f.push(e.$parent.$watch(r(n.secondStep),function(e){w=+e})),e.showSeconds=a.showSeconds,n.showSeconds&&f.push(e.$parent.$watch(r(n.showSeconds),function(t){e.showSeconds=!!t})),e.showMeridian=a.showMeridian,n.showMeridian&&f.push(e.$parent.$watch(r(n.showMeridian),function(t){if(e.showMeridian=!!t,d.$error.time){var n=$(),r=E();angular.isDefined(n)&&angular.isDefined(r)&&(c.setHours(n),x())}else T()})),this.setupMousewheelEvents=function(t,n,r){var i=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.on("mousewheel wheel",function(t){b||e.$apply(i(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.on("mousewheel wheel",function(t){b||e.$apply(i(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),r.on("mousewheel wheel",function(t){b||e.$apply(i(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,n,r){t.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),n.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),r.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,n,r){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var i=function(t,n,r){d.$setViewValue(null),d.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t,s&&s.$setValidity("hours",!1)),angular.isDefined(n)&&(e.invalidMinutes=n,l&&l.$setValidity("minutes",!1)),angular.isDefined(r)&&(e.invalidSeconds=r,u&&u.$setValidity("seconds",!1))};e.updateHours=function(){var e=$(),t=E();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(c.setHours(e),c.setMinutes(t),c<m||c>v?i(!0):x("h")):i(!0)},t.on("blur",function(t){d.$setTouched(),O()?C():null===e.hours||""===e.hours?i(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=S(e.hours,!h)})}),e.updateMinutes=function(){var e=E(),t=$();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(c.setHours(t),c.setMinutes(e),c<m||c>v?i(void 0,!0):x("m")):i(void 0,!0)},n.on("blur",function(t){d.$setTouched(),O()?C():null===e.minutes?i(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=S(e.minutes)})}),e.updateSeconds=function(){var t=function(){var t=+e.seconds;return t>=0&&t<60?t:void 0}();d.$setDirty(),angular.isDefined(t)?(c.setSeconds(t),x("s")):i(void 0,void 0,!0)},r.on("blur",function(t){O()?C():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=S(e.seconds)})})},this.render=function(){var t=d.$viewValue;isNaN(t)?(d.$setValidity("time",!1),i.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.')):(t&&(c=t),c<m||c>v?(d.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):C(),T())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):a.showSpinners,e.incrementHours=function(){e.noIncrementHours()||k(60*g*60)},e.decrementHours=function(){e.noDecrementHours()||k(60*-g*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||k(60*y)},e.decrementMinutes=function(){e.noDecrementMinutes()||k(60*-y)},e.incrementSeconds=function(){e.noIncrementSeconds()||k(w)},e.decrementSeconds=function(){e.noDecrementSeconds()||k(-w)},e.toggleMeridian=function(){var t=E(),n=$();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?k(720*(c.getHours()<12?60:-60)):e.meridian=e.meridian===p[0]?p[1]:p[0])},e.blur=function(){d.$setTouched()},e.$on("$destroy",function(){for(;f.length;)f.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,n){return n.templateUrl||e.templateUrl},link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,r,i,o,a,s,l,u,c,f,d){var p,h,g=[9,13,27,38,40],m=e.$eval(n.typeaheadMinLength);m||0===m||(m=1),e.$watch(n.typeaheadMinLength,function(e){m=e||0===e?e:1});var v=e.$eval(n.typeaheadWaitMs)||0,y=!1!==e.$eval(n.typeaheadEditable);e.$watch(n.typeaheadEditable,function(e){y=!1!==e});var b,w,$=i(n.typeaheadLoading).assign||angular.noop,E=n.typeaheadShouldSelect?i(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},S=i(n.typeaheadOnSelect),x=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),C=i(n.typeaheadNoResults).assign||angular.noop,T=n.typeaheadInputFormatter?i(n.typeaheadInputFormatter):void 0,k=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),_=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,A=!1!==e.$eval(n.typeaheadFocusFirst),O=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),D=i(n.typeaheadIsOpen).assign||angular.noop,M=e.$eval(n.typeaheadShowHint)||!1,N=i(n.ngModel),I=i(n.ngModel+"($$$p)"),F=d.parse(n.uibTypeahead),R=e.$new(),P=e.$on("$destroy",function(){R.$destroy()});R.$on("$destroy",P);var L,j,U="typeahead-"+R.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":U}),M&&((L=angular.element("<div></div>")).css("position","relative"),t.after(L),(j=t.clone()).attr("placeholder",""),j.attr("tabindex","-1"),j.val(""),j.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"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),j.attr("id")&&j.removeAttr("id"),L.append(j),j.after(t));var B=angular.element("<div uib-typeahead-popup></div>");B.attr({id:U,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(n.typeaheadTemplateUrl)&&B.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&B.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var H=function(){R.matches=[],R.activeIdx=-1,t.attr("aria-expanded",!1),M&&j.val("")},z=function(e){return U+"-option-"+e};R.$watch("activeIdx",function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",z(e))});var V=function(n,r){var i={$viewValue:n};$(e,!0),C(e,!1),o.when(F.source(e,i)).then(function(o){var a=n===p.$viewValue;if(a&&b)if(o&&o.length>0){R.activeIdx=A?0:-1,C(e,!1),R.matches.length=0;for(var s=0;s<o.length;s++)i[F.itemName]=o[s],R.matches.push({id:z(s),label:F.viewMapper(R,i),model:o[s]});if(R.query=n,K(),t.attr("aria-expanded",!0),O&&1===R.matches.length&&function(e,t){return!!(R.matches.length>t&&e)&&e.toUpperCase()===R.matches[t].label.toUpperCase()}(n,0)&&(angular.isNumber(R.debounceUpdate)||angular.isObject(R.debounceUpdate)?c(function(){R.select(0,r)},angular.isNumber(R.debounceUpdate)?R.debounceUpdate:R.debounceUpdate.default):R.select(0,r)),M){var l=R.matches[0].label;angular.isString(n)&&n.length>0&&l.slice(0,n.length).toUpperCase()===n.toUpperCase()?j.val(n+l.slice(n.length)):j.val("")}}else H(),C(e,!0);a&&$(e,!1)},function(){H(),$(e,!1),C(e,!0)})};k&&(angular.element(l).on("resize",q),s.find("body").on("scroll",q));var Y,W=c(function(){R.matches.length&&K(),R.moveInProgress=!1},200);function q(){R.moveInProgress||(R.moveInProgress=!0,R.$digest()),W()}function K(){R.position=k?f.offset(t):f.position(t),R.position.top+=t.prop("offsetHeight")}R.moveInProgress=!1,R.query=void 0;var G=function(){Y&&a.cancel(Y)};H(),R.assignIsOpen=function(t){D(e,t)},R.select=function(r,i){var o,s,l={};w=!0,l[F.itemName]=s=R.matches[r].model,o=F.modelMapper(e,l),function(t,n){angular.isFunction(N(e))&&h.getOption("getterSetter")?I(t,{$$$p:n}):N.assign(t,n)}(e,o),p.$setValidity("editable",!0),p.$setValidity("parse",!0),S(e,{$item:s,$model:o,$label:F.viewMapper(e,l),$event:i}),H(),!1!==R.$eval(n.typeaheadFocusOnSelect)&&a(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==R.matches.length&&-1!==g.indexOf(t.which)){var n,r=E(e,{$event:t});if(-1===R.activeIdx&&r||9===t.which&&t.shiftKey)return H(),void R.$digest();switch(t.preventDefault(),t.which){case 27:t.stopPropagation(),H(),e.$digest();break;case 38:R.activeIdx=(R.activeIdx>0?R.activeIdx:R.matches.length)-1,R.$digest(),(n=B[0].querySelectorAll(".uib-typeahead-match")[R.activeIdx]).parentNode.scrollTop=n.offsetTop;break;case 40:R.activeIdx=(R.activeIdx+1)%R.matches.length,R.$digest(),(n=B[0].querySelectorAll(".uib-typeahead-match")[R.activeIdx]).parentNode.scrollTop=n.offsetTop;break;default:r&&R.$apply(function(){angular.isNumber(R.debounceUpdate)||angular.isObject(R.debounceUpdate)?c(function(){R.select(R.activeIdx,t)},angular.isNumber(R.debounceUpdate)?R.debounceUpdate:R.debounceUpdate.default):R.select(R.activeIdx,t)})}}}),t.on("focus",function(e){b=!0,0!==m||p.$viewValue||a(function(){V(p.$viewValue,e)},0)}),t.on("blur",function(e){x&&R.matches.length&&-1!==R.activeIdx&&!w&&(w=!0,R.$apply(function(){angular.isObject(R.debounceUpdate)&&angular.isNumber(R.debounceUpdate.blur)?c(function(){R.select(R.activeIdx,e)},R.debounceUpdate.blur):R.select(R.activeIdx,e)})),!y&&p.$error.editable&&(p.$setViewValue(),R.$apply(function(){p.$setValidity("editable",!0),p.$setValidity("parse",!0)}),t.val("")),b=!1,w=!1});var X=function(n){t[0]!==n.target&&3!==n.which&&0!==R.matches.length&&(H(),u.$$phase||e.$digest())};s.on("click",X),e.$on("$destroy",function(){s.off("click",X),(k||_)&&Z.remove(),k&&(angular.element(l).off("resize",q),s.find("body").off("scroll",q)),B.remove(),M&&L.remove()});var Z=r(B)(R);k?s.find("body").append(Z):_?angular.element(_).eq(0).append(Z):t.after(Z),this.init=function(t){h=function(e){var t;angular.version.minor<6?(t=e.$options||{}).getOption=function(e){return t[e]}:t=e.$options;return t}(p=t),R.debounceUpdate=i(h.getOption("debounce"))(e),p.$parsers.unshift(function(t){return b=!0,0===m||t&&t.length>=m?v>0?(G(),function(e){Y=a(function(){V(e)},v)}(t)):V(t):($(e,!1),G(),H()),y?t:t?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)}),p.$formatters.push(function(t){var n,r={};return y||p.$setValidity("editable",!0),T?(r.$model=t,T(e,r)):(r[F.itemName]=t,n=F.viewMapper(e,r),r[F.itemName]=void 0,n!==F.viewMapper(e,r)?n:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(e,t,n,r){r[1].init(r[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(e){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(t,n,r){t.templateUrl=r.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(n,r){var i=t.debounce();angular.isNumber(i)||angular.isObject(i)?e(function(){t.select({activeIdx:n,evt:r})},angular.isNumber(i)?i:i.default):t.select({activeIdx:n,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var a=n(o.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";e(a).then(function(e){var n=angular.element(e.trim());i.replaceWith(n),t(n)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var r;return r=t.has("$sanitize"),function(t,i){return!r&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=i?(""+t).replace(new RegExp(i.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,r||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<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" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header 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')}]),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",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;</span>\n  <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" 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-class="{ disabled: isNextDisabled() }" 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')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div class="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 ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table 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 aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></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 aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></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" role="row">\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 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 aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::yearHeaderColspan}}"><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 aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\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 uib-position-measure" dropdown-nested ng-if="isOpen" 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\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n        <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n      </span>\n      <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ 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 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 aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></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 aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\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/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" 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\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n    </span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n  </li>\n</ul>\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 class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li role="menuitem" 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)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\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-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></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-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></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-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind-html="contentExp()"></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="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind="content"></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}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end 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}}"></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}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" 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-{{tabset.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 tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\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="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</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="-1"><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 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 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 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="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</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="-1"><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 class="uib-typeahead-match" 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.$$uibCarouselCss&&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.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&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-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0})},Xbzi:function(e,t,n){var r=n("0/R4"),i=n("i5dc").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},Xtr8:function(e,t,n){var r=n("XKFU"),i=n("g3g5"),o=n("eeVq");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},Xxuz:function(e,t,n){"use strict";var r=n("I8a+"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},Y9lz:function(e,t,n){n("7DDg")("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},YBdB:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,u={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[l]=i,r(l),l++},d.clearImmediate=p}function p(e){delete u[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("yLpj"),n("8oxB"))},YEcW:function(module,exports,__webpack_require__){"use strict";function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();angular.module("switeEditor",[]),function(){function e(e,t,n){this.id=n.getId(),this.showSourceButton=!0}e.$inject=["e","t","i"],e.$inject=["$scope","switeEditor","editable"],angular.module("switeEditor").controller("UiCtrl",e)}(),function(){angular.module("switeEditor").factory("Editable",function(){return function(){function e(t){if(_classCallCheck(this,e),!e.checkData(t))throw new Error("Missing data");_.assign(this,t),this.editable.element=angular.element(this.editable.element)}return _createClass(e,null,[{key:"checkData",value:function(e){return _.every(["template","options","editable.element","editable.type","editable.object","editable.object.id","editable.object.data","editable.object.isPlaceholder","editable.object.isCustomizable","scope","buttonsAmount"],function(t){return _.has(e,t)})}}]),_createClass(e,[{key:"getPlaceholderFieldText",value:function(e){return this.editable.object.placeholders[e]}},{key:"getPlaceholderText",value:function(){return this.editable.object.placeholderText}},{key:"getOptions",value:function(){return this.options}},{key:"getElement",value:function(){return this.editable.element}},{key:"getId",value:function(){return this.editable.object.id}},{key:"getEditableData",value:function(){return this.editable.object.data}},{key:"getScope",value:function(){return this.scope}},{key:"getEditables",value:function(){return this.scope.editables}},{key:"getButtonsAmount",value:function(){return this.buttonsAmount}},{key:"isPlaceholder",value:function(){return this.editable.object.isPlaceholder}},{key:"isCustomizable",value:function(){return this.editable.object.isCustomizable}},{key:"getType",value:function(){return this.editable.type}},{key:"getPlugin",value:function(){return this.options.plugin}}]),e}()})}(),function(){function e(e,t,n,r,i){var o={toolbarInline:!0,charCounterCount:!1,toolbarContainer:"#toolbar_"};return function(n){function r(e){if(_classCallCheck(this,r),!e)throw new Error("Missing data");return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))}return _inherits(r,n),_createClass(r,[{key:"getEditables",value:function(){var e={};return _.forEach(this.scope.editables,function(t,n){if(!t._isPlaceholder){delete t._isPlaceholder;var r=!1,i={},o=Object.keys(t);_.forEach(o,function(e){void 0!==t[e].text&&(i[e]=t[e],r=!0)}),r&&(e[n]=i)}}),e}},{key:"compile",value:function(){this.scope=this.data.getScope().$new(!0);var e=this.data.getOptions();this.trashElement='<span ng-click="removeItem()" title="'+e.messages.removeElement+'" class="sw-widget-array-trash">\n                                    <i class="fa fa-trash"></i>\n                                </span>',this.addElement='<li class="li" id="add-item" ng-click="addItem()" title="'+e.messages.addElement+'">\n                                    <span class="cursor-pointer" translate>Add an element</span>\n                                    <span><i class="fa fa-plus"></i></span>\n                                </li>',this.scope.compileFields=function(e,n){var r=""+n,i=this,a=this.scope,s=this.data.getOptions();return e.addClass("editable-field"),e.each(function(e){var n,l=angular.element(this),u=void 0,c=void 0;if(n=l.attr("sw-editable-field")){u='editables["'+r+'"].'+n+".text",l.data({fieldIdentifier:n,editableId:r}).attr("ng-model",u),(c=o).key=s.key,c.placeholderText=i.data.getPlaceholderFieldText(n),c.toolbarContainer+=r+"_"+n;var f=angular.element("<div id = '"+c.toolbarContainer+"'></div>").css("display","none");l.closest("li").append(f),t(l)(a),l.froalaEditor(c),l.on("froalaEditor.keyup",function(e,t,n){var r=angular.element(this),i="",o=r.froalaEditor("html.get");0!==o.length&&(i=(o=angular.element(o)).text()),void 0===a.editables[r.data("editableId")][r.data("fieldIdentifier")]&&(a.editables[r.data("editableId")][r.data("fieldIdentifier")]={}),a.editables[r.data("editableId")][r.data("fieldIdentifier")].text=i,a.editables[r.data("editableId")]._isPlaceholder=!1})}}),e}.bind(this),this.scope.removeAllItems=function(){var e=this;return new Promise(function(t){var n=Object.keys(e.scope.editables);_.forEach(n,function(t){e.scope.removeItem(t)}),i(function(){t()})})}.bind(this),this.scope.removeItem=function(e){delete this.scope.editables[e]}.bind(this),this.scope.addItem=function(e){var t=this;return new Promise(function(n){var r=t.data.getElement().find("[sw-editable-list] li").not("#add-item").length;t.generateItem(r,e),i(function(){var e=angular.element(t.data.getElement().find("[sw-editable-list] li")[r]);t.processEditable(e,r),n()})})}.bind(this)}},{key:"render",value:function(){return this.renderUi(),angular.element("body").addClass("sw-isFroalaActive"),this.data.isCustomizable()?(this.compile(),void 0===e.editingEditableArray&&(e.editingEditableArray={}),this.originalScope=this.data.getScope().$$childHead,this.mapEditable()):Promise.resolve()}},{key:"mapEditable",value:function(){var n=this;return new Promise(function(r){var o,a=n.scope,s={},l=n.data.getEditableData();a.editables={},e.editingEditableArray[n.data.editable.object.id]=!0;for(var u=0;u<l.length;u++)for(var c in a.editables[""+u]={},l[u])a.editables[""+u][c]={text:l[u][c]+""};l.length||n.generateItem(0,void 0,!0),(o=angular.element(n.data.arrayTemplate).find("[sw-editable-list-template]")).removeAttr("sw-editable-list-template").attr("sw-editable-list","").attr("id","tpl_copy"),t(angular.element(o))(a,function(e){n.data.getElement().find("[sw-editable-list]").parent().append(e),i(),i(function(){s.list=e,s.listItems=s.list.find("li").not("#add-item");var i=n;s.listItems.each(function(e){var t=angular.element(this);i.processEditable(t,e)});var o=angular.element(n.addElement);s.list.append(o),t(o)(a),r()})})})}},{key:"processEditable",value:function(e,t){var n=""+t,r=this.scope,i=e.find("[sw-editable-field]");e.attr("item-index",n),r.compileFields(i,t),this.addTrash(e,n)}},{key:"remove",value:function(){if(!this.data.isCustomizable())return this.removeUi();this.removeUi(),angular.element("body").removeClass("sw-isFroalaActive"),this.data.getElement().find("#tpl_copy").remove(),e.editingEditableArray[this.data.editable.object.id]=!1}},{key:"refresh",value:function(e){var t=this,n=e;return this.scope.removeAllItems().then(function(){return n?t.data.editable.object.data=n:e=t.data.getEditableData(),t.data.getElement().find("#tpl_copy").remove(),t.mapEditable()})}},{key:"addTrash",value:function(e,n){var r=angular.element(this.trashElement);r.attr("ng-click",'removeItem("'+n+'")'),e.append(r),t(r)(this.scope)}},{key:"generateItem",value:function(e,t,n){var r=this;this.scope.editables[""+e]={},n&&(this.scope.editables[""+e]._isPlaceholder=!0),_.forEach(this.data.editable.object.placeholders,function(n,i){r.scope.editables[""+e][i]={text:t&&t[i]?t[i]:""}})}}]),r}(r)}e.$inject=["e","t","i","a","n"],e.$inject=["$rootScope","$compile","deviceDetect","EditorUi","$timeout"],angular.module("switeEditor").factory("EditorArray",e)}(),function(){function e(e){return function(e){function t(e){if(_classCallCheck(this,t),!e)throw new Error("Missing data");return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return _inherits(t,e),_createClass(t,[{key:"setUiPosition",value:function(){var e=this.data.getElement()[0].getBoundingClientRect();this.page[0].getBoundingClientRect().left,angular.element(".content").scrollTop(),this.uiElement.removeAttr("style"),this.uiElement.css("position","absolute"),this.uiElement.css("left",0),this.uiElement.css("top",0),this.uiElement.css("min-height",e.height),this.uiElement.css("width",e.width)}},{key:"render",value:function(){this.renderUi(),this.data.isCustomizable()}},{key:"remove",value:function(){this.removeUi()}}]),t}(e)}e.$inject=["e"],e.$inject=["EditorUi"],angular.module("switeEditor").factory("EditorBrick",e)}(),function(){function e(e){return function(e){function t(e){if(_classCallCheck(this,t),!e)throw new Error("Missing data");return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.renderUi()}},{key:"remove",value:function(){this.removeUi()}}]),t}(e)}e.$inject=["e"],e.$inject=["EditorUi"],angular.module("switeEditor").factory("EditorGeneric",e)}(),function(){function e(e,t,n){return function(n){function r(e){if(_classCallCheck(this,r),!e)throw new Error("Missing data");return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))}return _inherits(r,n),_createClass(r,[{key:"selectText",value:function(e){setTimeout(function(){var t,n,r=document;r.body.createTextRange?((t=r.body.createTextRange()).moveToElementText(element),t.select()):window.getSelection&&(n=window.getSelection(),(t=r.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))})}},{key:"selectLastChar",value:function(e){if(e.focus(),void 0!==window.getSelection&&void 0!==document.createRange){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)}else if(void 0!==document.body.createTextRange){var r=document.body.createTextRange();r.moveToElementText(e),r.collapse(!1),r.select()}}},{key:"compile",value:function(){var t=this,n=this.data.getScope(),r=this.data.getElement(),i=this.data.getOptions();if(i.heightMin=r.height(),i.placeholderText=this.data.getPlaceholderText(),angular.element("body").addClass("sw-isFroalaActive"),n.TAModel=this.data.isPlaceholder()?"":this.data.getEditableData(),this.taChangeListener=n.$watch("TAModel",function(e,n){t.emit("TAModel.change",e)}),this.taOriginalEditable=r.find("[sw-editable]"),this.taOriginalEditable.attr("editable-options")){var o=this.taOriginalEditable.attr("editable-options");try{this.data.options=i=_.assign(i,JSON.parse(o))}catch(e){}}n.TAOptions=i,this.taEditableStyle=window.getComputedStyle(this.taOriginalEditable[0]),this.taEditable=this.taOriginalEditable.clone(),this.taOriginalEditable.replaceWith(this.taEditable),this.taEditable.attr("froala","TAOptions"),this.taEditable.attr("ng-model","TAModel");var a=e(this.taEditable);this.taElement=a(n)}},{key:"render",value:function(){var e=this;if(this.renderUi(),this.data.isCustomizable()){if(this.compile(),!this.taElement||!this.uiElement||!this.taEditable)throw new Error("Missing data");this.taToolbar=angular.element(".fr-toolbar"),this.taEditable.find(".fr-wrapper").css("overflow","hidden"),angular.element('[data-param1="background"]').remove();var n=this.taEditable.find(".fr-element"),r=this.taEditable.find(".fr-placeholder");n.css("text-align",this.taEditableStyle["text-align"]),n.css("min-width",this.data.getElement().width()),n.css("color",this.taEditableStyle.color),r.css("text-align",this.taEditableStyle["text-align"]),r.css("min-width",this.data.getElement().width()),n.attr("spellcheck","false"),n.attr("autocomplete","off"),this.taElement.find('[href="https://froala.com/wysiwyg-editor"]').remove(),setTimeout(function(){n.focus(),e.data.isPlaceholder()||t.isMobile()&&!t.isIpad()||(e.selectText(n[0]),e.taElement.froalaEditor("toolbar.showInline",null,!0))})}}},{key:"remove",value:function(){this.removeUi(),angular.element("body").removeClass("sw-isFroalaActive"),this.taToolbar&&this.taToolbar.remove(),this.taEditable&&this.taElement.replaceWith(this.taOriginalEditable),this.taChangeListener&&this.taChangeListener()}}]),r}(n)}e.$inject=["e","t","i"],e.$inject=["$compile","deviceDetect","EditorUi"],angular.module("switeEditor").factory("EditorTextArea",e)}(),function(){function e(e,t,n){var r;return function(t){function i(e){if(_classCallCheck(this,i),!(e instanceof n))throw new Error("Need Editable instance");var t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.data=e,t}return _inherits(i,EventEmitter),_createClass(i,null,[{key:"setUiTemplate",value:function(e){if(!e)throw new Error("Missing UI Template");r=e}}]),_createClass(i,[{key:"getScope",value:function(){return this.data.getScope()}},{key:"deleteScope",value:function(){this.data&&delete this.data}},{key:"compileUi",value:function(){var t;if(!r)throw new Error("Can't compile UI. Missing data.");t=r.clone();var n=e(t);this.uiElement=n(this.data.getScope())}},{key:"renderUi",value:function(){if(this.compileUi(),!this.uiElement)throw new Error("Missing UI Element");this.page=angular.element(this.data.getElement()[0]),this.page.prepend(this.uiElement),this.uiToolbarElement=this.uiElement.find("#toolbar"),this.setUiPosition()}},{key:"setUiPosition",value:function(){var e=this.data.getElement();e[0].getBoundingClientRect(),this.page[0].getBoundingClientRect().left,angular.element(".content").scrollTop(),this.uiElement.removeAttr("style"),this.uiElement.css("right",-10),this.uiElement.css("top",-9),this.uiToolbarElement.css("min-width",48*this.data.getButtonsAmount()+6),this.uiElement.css("z-index",3),e.css("z-index",2),e.addClass("edit-mode"),e.css("position","static"===e.css("position")?"relative":e.css("position"))}},{key:"removeUi",value:function(){var e='[ui-editable-id="'+this.data.getId()+'"]',t=angular.element(e);t&&0!==t.length&&(t.find("#toolbar").remove(),t.remove(),this.data.getElement().removeClass("edit-mode"),this.uiSidebarSync&&this.uiSidebarSync(),this.data.getElement().removeAttr("style"))}},{key:"uiCss",value:function(e,t){return this.uiElement.css(e,t)}}]),i}()}e.$inject=["e","t","i"],e.$inject=["$compile","$window","Editable"],angular.module("switeEditor").factory("EditorUi",e)}(),function(){function switeEditorFactory($templateRequest,_,EventEmitter,EditorUi,EditorTextArea,EditorArray,EditorBrick,EditorGeneric,Editable){function init(e){var t=[];return templates.text||t.push($templateRequest(e.text.templatePath)),templates.array||t.push($templateRequest(e.array.templatePath)),editorOptions=e||{},Promise.all(t).then(function(e){templates.text=angular.element(e[0]),templates.array=angular.element(e[1])})}function isOpen(){return _isOpen}function setOptions(e){editorOptions=e||{}}function loadUiTemplate(e,t){return $templateRequest(e).then(function(e){templates.ui[t]=e})}function onTaModelChange(e){emitter.emit("TAModel.change",e)}function render(data){isOpen()&&remove(),EditorUi.setUiTemplate(angular.element(templates.ui[data.uiTemplateType])),data=_.omit(data,["uiTemplateType"]);var extended=_.assign(data,{template:angular.element(templates[data.editable.type]),options:editorOptions[data.editable.type]});editable=new Editable(extended);var pluginName=editable.getPlugin(),editorClass=eval(pluginName);emitter.emit("opened"),editor=new editorClass(editable),editor.on("TAModel.change",onTaModelChange),editor.render(),_isOpen=!0}function remove(){isOpen()&&(editor.removeListener("TAModel.change",onTaModelChange),editor.remove(),_isOpen=!1,emitter.emit("closed"),emitter.emit("closed."+editable.getId()))}function getScope(){return editable.getScope()}function getEditables(){return editor.getEditables()}function uiCss(e,t){return editor.uiCss(e,t)}function refresh(e){if(editor instanceof EditorArray)return editor.refresh(e);throw new Error("Using editorArray.refresh method on "+editor.constructor.name+" instance")}function selectText(){if(editor instanceof editorTextArea)return editor.selectText();throw new Error("Using editorTextArea.selectText method on "+editor.constructor.name+" instance")}function selectLastChar(){if(editor instanceof editorTextArea)return editor.selectLastChar();throw new Error("Using editorTextArea.selectLastChar method on "+editor.constructor.name+" instance")}var editor,editable,templates={ui:{}},editorOptions,_isOpen=!1,emitter=new EventEmitter;return emitter.init=init,emitter.isOpen=isOpen,emitter.render=render,emitter.refresh=refresh,emitter.remove=remove,emitter.getScope=getScope,emitter.uiCss=uiCss,emitter.setOptions=setOptions,emitter.selectText=selectText,emitter.selectLastChar=selectLastChar,emitter.loadUiTemplate=loadUiTemplate,emitter.getEditables=getEditables,emitter}switeEditorFactory.$inject=["$templateRequest","_","EventEmitter","EditorUi","EditorTextArea","EditorArray","EditorBrick","EditorGeneric","Editable"],switeEditorFactory.$inject=["$templateRequest","_","EventEmitter","EditorUi","EditorTextArea","EditorArray","EditorBrick","EditorGeneric","Editable"],angular.module("switeEditor").factory("switeEditor",switeEditorFactory)}(),function(){angular.module("switeEditor").service("deviceDetect",function(){return{isMobile:function(){return null!==(navigator.userAgent.match("Android")||navigator.userAgent.match("BlackBerry")||navigator.userAgent.match("iPhone|iPad|iPod")||navigator.userAgent.match("Opera Mini")||navigator.userAgent.match("IEMobile"))},isIpad:function(){return navigator.userAgent.match("iPad")},isIOS:function(){return navigator.userAgent.match("iPhone|iPad|iPod")}}})}()},YTvA:function(e,t,n){var r=n("VTer")("keys"),i=n("ylqs");e.exports=function(e){return r[e]||(r[e]=i(e))}},Yeky:function(e,t,n){(function(e){!function(){"use strict";var t={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 t.COMMAND:case t.SHIFT:case t.CTRL:case t.ALT:return!0}return!!(e.metaKey||e.ctrlKey||e.altKey)},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123},isVerticalMovement:function(e){return~[t.UP,t.DOWN].indexOf(e)},isHorizontalMovement:function(e){return~[t.LEFT,t.RIGHT,t.BACKSPACE,t.DELETE].indexOf(e)},toSeparator:function(e){var n={ENTER:"\n",TAB:"\t",SPACE:" "}[e];return n||(t[e]?void 0: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],n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.bind(t)(e))return t;t=t.parentElement}return!1});var n=0,r=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",generateId:function(){return n++},appendToBody:!1}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments).message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(t)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,n,r,i){i(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(e,t){return function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);r.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,n,r,i){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-choices"),(t.parent().attr("theme")||e.theme)+"/choices.tpl.html"},compile:function(r,o){if(!o.repeat)throw n("repeat","Expected 'repeat' expression.");var a=o.groupBy,s=o.groupFilter;if(a){var l=r.querySelectorAll(".ui-select-choices-group");if(1!==l.length)throw n("rows","Expected 1 .ui-select-choices-group but got '{0}'.",l.length);l.attr("ng-repeat",t.getGroupNgRepeatExpression())}var u=t.parse(o.repeat),c=r.querySelectorAll(".ui-select-choices-row");if(1!==c.length)throw n("rows","Expected 1 .ui-select-choices-row but got '{0}'.",c.length);c.attr("ng-repeat",u.repeatExpression(a)).attr("ng-if","$select.open");var f=r.querySelectorAll(".ui-select-choices-row-inner");if(1!==f.length)throw n("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",f.length);return f.attr("uis-transclude-append",""),(i.document.addEventListener?c:f).attr("ng-click","$select.select("+u.itemName+",$select.skipFocusser,$event)"),function(t,n,r,i){i.parseRepeatAttr(r.repeat,a,s),i.disableChoiceExpression=r.uiDisableChoice,i.onHighlightCallback=r.onHighlight,i.dropdownPosition=r.position?r.position.toLowerCase():e.dropdownPosition,t.$on("$destroy",function(){c.remove()}),t.$watch("$select.search",function(e){e&&!i.open&&i.multiple&&i.activate(!1,!0),i.activeIndex=i.tagging.isActivated?-1:0,!r.minimumInputLength||i.search.length>=r.minimumInputLength?i.refresh(r.refresh):i.items=[]}),r.$observe("refreshDelay",function(){var n=t.$eval(r.refreshDelay);i.refreshDelay=void 0!==n?n:e.refreshDelay})}}}}]),r.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(e,n,r,i,o,a,s,l,u,c,f){var d,p=this,h="";if(p.placeholder=l.placeholder,p.searchEnabled=l.searchEnabled,p.sortable=l.sortable,p.refreshDelay=l.refreshDelay,p.paste=l.paste,p.removeSelected=!1,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.resetSearchInput=!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=i,p.$element=n,p.$animate=function(){try{return c.get("$animate")}catch(e){return null}}(),p.searchInput=n.querySelectorAll("input.ui-select-search"),1!==p.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",p.searchInput.length);function g(){(p.resetSearchInput||void 0===p.resetSearchInput&&l.resetSearchInput)&&(p.search=h,p.selected&&p.items.length&&!p.multiple&&(p.activeIndex=function(e,t,n){if(e.findIndex)return e.findIndex(t,n);for(var r,i=Object(e),o=i.length>>>0,a=0;a<o;a++)if(r=i[a],t.call(n,r,a,i))return a;return-1}(p.items,function(e){return angular.equals(this,e)},p.selected)))}p.isEmpty=function(){return angular.isUndefined(p.selected)||null===p.selected||""===p.selected||p.multiple&&0===p.selected.length},p.activate=function(t,i){if(!p.disabled&&!p.open){i||g(),e.$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 o=n.querySelectorAll(".ui-select-choices-content"),a=n.querySelectorAll(".ui-select-search");if(p.$animate&&p.$animate.enabled(o[0])){var s=function(e,n){"start"===n&&0===p.items.length?(p.$animate.off("removeClass",a[0],s),r(function(){p.focusSearchInput(t)})):"close"===n&&(p.$animate.off("enter",o[0],s),r(function(){p.focusSearchInput(t)}))};p.items.length>0?p.$animate.on("enter",o[0],s):p.$animate.on("removeClass",a[0],s)}else r(function(){p.focusSearchInput(t),!p.tagging.isActivated&&p.items.length>1&&y()})}},p.focusSearchInput=function(e){p.search=e||p.search,p.searchInput[0].focus()},p.findGroupByName=function(e){return p.groups&&p.groups.filter(function(t){return t.name===e})[0]},p.parseRepeatAttr=function(t,n,r){p.setItemsFn=n?function(t){var i=e.$eval(n);if(p.groups=[],angular.forEach(t,function(e){var t=angular.isFunction(i)?i(e):e[i],n=p.findGroupByName(t);n?n.items.push(e):p.groups.push({name:t,items:[e]})}),r){var o=e.$eval(r);angular.isFunction(o)?p.groups=o(p.groups):angular.isArray(o)&&(p.groups=function(e,t){var n,r,i=[];for(n=0;n<t.length;n++)for(r=0;r<e.length;r++)e[r].name==[t[n]]&&i.push(e[r]);return i}(p.groups,o))}p.items=[],p.groups.forEach(function(e){p.items=p.items.concat(e.items)})}:function(e){p.items=e},p.parserResult=a.parse(t),p.isGrouped=!!n,p.itemProperty=p.parserResult.itemName;var i=p.parserResult.source,o=function(){var t=i(e);e.$uisSource=Object.keys(t).map(function(e){var n={};return n[p.parserResult.keyName]=e,n.value=t[e],n})};p.parserResult.keyName&&(o(),p.parserResult.source=u("$uisSource"+p.parserResult.filters),e.$watch(i,function(e,t){e!==t&&o()},!0)),p.refreshItems=function(t){t=t||p.parserResult.source(e);var n=p.selected;if(p.isEmpty()||angular.isArray(n)&&!n.length||!p.removeSelected)p.setItemsFn(t);else if(void 0!==t){var r=t.filter(function(e){return n.every(function(t){return!angular.equals(e,t)})});p.setItemsFn(r)}"auto"!==p.dropdownPosition&&"up"!==p.dropdownPosition||e.calculateDropdownPos()},e.$watchCollection(p.parserResult.source,function(e){if(void 0===e||null===e)p.items=[];else{if(!angular.isArray(e))throw s("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(){e.$eval(t)},p.refreshDelay))},p.isActive=function(e){if(!p.open)return!1;var t=p.items.indexOf(e[p.itemProperty]),n=t==p.activeIndex;return!(!n||t<0)&&(n&&!angular.isUndefined(p.onHighlightCallback)&&e.$eval(p.onHighlightCallback),n)},p.isDisabled=function(e){if(p.open){var t,n=p.items.indexOf(e[p.itemProperty]),r=!1;return n>=0&&!angular.isUndefined(p.disableChoiceExpression)&&(t=p.items[n],r=!!e.$eval(p.disableChoiceExpression),t._uiSelectChoiceDisabled=r),r}},p.select=function(t,n,i){if(void 0===t||!t._uiSelectChoiceDisabled){if(!p.items&&!p.search&&!p.tagging.isActivated)return;if(!t||!t._uiSelectChoiceDisabled){if(p.tagging.isActivated){if(!1===p.taggingLabel)if(p.activeIndex<0){if(!(t=void 0!==p.tagging.fct?p.tagging.fct(p.search):p.search)||angular.equals(p.items[0],t))return}else t=p.items[p.activeIndex];else if(0===p.activeIndex){if(void 0===t)return;if(void 0!==p.tagging.fct&&"string"==typeof t){if(!(t=p.tagging.fct(t)))return}else"string"==typeof t&&(t=t.replace(p.taggingLabel,"").trim())}if(p.selected&&angular.isArray(p.selected)&&p.selected.filter(function(e){return angular.equals(e,t)}).length>0)return void p.close(n)}e.$broadcast("uis:select",t);var o={};o[p.parserResult.itemName]=t,r(function(){p.onSelectCallback(e,{$item:t,$model:p.parserResult.modelMapper(e,o)})}),p.closeOnSelect&&p.close(n),i&&"click"===i.type&&(p.clickTriggeredSelect=!0)}}},p.close=function(t){p.open&&(p.ngModel&&p.ngModel.$setTouched&&p.ngModel.$setTouched(),g(),p.open=!1,e.$broadcast("uis:close",t))},p.setFocus=function(){p.focus||p.focusInput[0].focus()},p.clear=function(e){p.select(void 0),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(e,t){var n,r=p.selected[t];return r&&!angular.isUndefined(p.lockChoiceExpression)&&(n=!!e.$eval(p.lockChoiceExpression),r._uiSelectChoiceLocked=n),n};var m=null,v=!1;function y(){var e=n.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(p.activeIndex<0)){var r=t[p.activeIndex],i=r.offsetTop+r.clientHeight-e[0].scrollTop,o=e[0].offsetHeight;i>o?e[0].scrollTop+=i-o:i<r.clientHeight&&(p.isGrouped&&0===p.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=r.clientHeight-i)}}p.sizeSearchInput=function(){var t=p.searchInput[0],n=p.searchInput.parent().parent()[0],i=function(){return n.clientWidth*!!t.offsetParent},o=function(e){if(0===e)return!1;var n=e-t.offsetLeft-10;return n<50&&(n=e),p.searchInput.css("width",n+"px"),!0};p.searchInput.css("width","10px"),r(function(){null!==m||o(i())||(m=e.$watch(angular.noop,function(){v||(v=!0,e.$$postDigest(function(){v=!1,o(i())&&(m(),m=null)}))}))})},p.searchInput.on("keydown",function(n){var i=n.which;~[t.ENTER,t.ESC].indexOf(i)&&(n.preventDefault(),n.stopPropagation()),e.$apply(function(){var e=!1;if((p.items.length>0||p.tagging.isActivated)&&(function(e){var n=!0;switch(e){case t.DOWN:!p.open&&p.multiple?p.activate(!1,!0):p.activeIndex<p.items.length-1&&p.activeIndex++;break;case t.UP:!p.open&&p.multiple?p.activate(!1,!0):(p.activeIndex>0||0===p.search.length&&p.tagging.isActivated&&p.activeIndex>-1)&&p.activeIndex--;break;case t.TAB:p.multiple&&!p.open||p.select(p.items[p.activeIndex],!0);break;case t.ENTER:p.open&&(p.tagging.isActivated||p.activeIndex>=0)?p.select(p.items[p.activeIndex],p.skipFocusser):p.activate(!1,!0);break;case t.ESC:p.close();break;default:n=!1}}(i),p.taggingTokens.isActivated)){for(var o=0;o<p.taggingTokens.tokens.length;o++)p.taggingTokens.tokens[o]===t.MAP[n.keyCode]&&p.search.length>0&&(e=!0);e&&r(function(){p.searchInput.triggerHandler("tagged");var e=p.search.replace(t.MAP[n.keyCode],"").trim();p.tagging.fct&&(e=p.tagging.fct(e)),e&&p.select(e,!0)})}}),t.isVerticalMovement(i)&&p.items.length>0&&y(),i!==t.ENTER&&i!==t.ESC||(n.preventDefault(),n.stopPropagation())}),p.searchInput.on("paste",function(e){var n;if(n=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(e.originalEvent||e).clipboardData.getData("text/plain"),(n=p.search+n)&&n.length>0)if(p.taggingTokens.isActivated){for(var r=[],i=0;i<p.taggingTokens.tokens.length;i++){var o=t.toSeparator(p.taggingTokens.tokens[i])||p.taggingTokens.tokens[i];if(n.indexOf(o)>-1){r=n.split(o);break}}if(0===r.length&&(r=[n]),r.length>0){var a=p.search;angular.forEach(r,function(e){var t=p.tagging.fct?p.tagging.fct(e):e;t&&p.select(t,!0)}),p.search=a||h,e.preventDefault(),e.stopPropagation()}}else p.paste&&(p.paste(n),p.search=h,e.preventDefault(),e.stopPropagation())}),p.searchInput.on("tagged",function(){r(function(){g()})});var b=o(function(){p.sizeSearchInput()},50);angular.element(f).bind("resize",b),e.$on("$destroy",function(){p.searchInput.off("keyup keydown tagged blur paste"),angular.element(f).off("resize",b)})}]),r.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(t,n,r,i,o,a,s){return{restrict:"EA",templateUrl:function(e,t){return(t.theme||n.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(o,l){var u=/{(.*)}\s*{(.*)}/.exec(l.ngClass);if(u){var c="{"+u[1]+", "+u[2]+"}";l.ngClass=c,o.attr("ng-class",c)}return angular.isDefined(l.multiple)?o.append("<ui-select-multiple/>").removeAttr("multiple"):o.append("<ui-select-single/>"),l.inputId&&(o.querySelectorAll("input.ui-select-search")[0].id=l.inputId),function(o,l,u,c,f){var d=c[0],p=c[1];function h(t){if(d.open){if(!(e?e.contains(l[0],t.target):l[0].contains(t.target))&&!d.clickTriggeredSelect){var n;if(d.skipFocusser)n=!0;else{var r=angular.element(t.target).controller("uiSelect");(n=r&&r!==d)||(n=~["input","button","textarea","select"].indexOf(t.target.tagName.toLowerCase()))}d.close(n),o.$digest()}d.clickTriggeredSelect=!1}}d.generatedId=n.generateId(),d.baseTitle=u.title||"Select box",d.focusserTitle=d.baseTitle+" focus",d.focusserId="focusser-"+d.generatedId,d.closeOnSelect=angular.isDefined(u.closeOnSelect)?a(u.closeOnSelect)():n.closeOnSelect,o.$watch("skipFocusser",function(){var e=o.$eval(u.skipFocusser);d.skipFocusser=void 0!==e?e:n.skipFocusser}),d.onSelectCallback=a(u.onSelect),d.onRemoveCallback=a(u.onRemove),d.limit=angular.isDefined(u.limit)?parseInt(u.limit,10):void 0,d.ngModel=p,d.choiceGrouped=function(e){return d.isGrouped&&e&&e.name},u.tabindex&&u.$observe("tabindex",function(e){d.focusInput.attr("tabindex",e),l.removeAttr("tabindex")}),o.$watch("searchEnabled",function(){var e=o.$eval(u.searchEnabled);d.searchEnabled=void 0!==e?e:n.searchEnabled}),o.$watch("sortable",function(){var e=o.$eval(u.sortable);d.sortable=void 0!==e?e:n.sortable}),u.$observe("disabled",function(){d.disabled=void 0!==u.disabled&&u.disabled}),u.$observe("resetSearchInput",function(){var e=o.$eval(u.resetSearchInput);d.resetSearchInput=void 0===e||e}),u.$observe("paste",function(){d.paste=o.$eval(u.paste)}),u.$observe("tagging",function(){if(void 0!==u.tagging){var e=o.$eval(u.tagging);d.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else d.tagging={isActivated:!1,fct:void 0}}),u.$observe("taggingLabel",function(){void 0!==u.tagging&&("false"===u.taggingLabel?d.taggingLabel=!1:d.taggingLabel=void 0!==u.taggingLabel?u.taggingLabel:"(new)")}),u.$observe("taggingTokens",function(){if(void 0!==u.tagging){var e=void 0!==u.taggingTokens?u.taggingTokens.split("|"):[",","ENTER"];d.taggingTokens={isActivated:!0,tokens:e}}}),angular.isDefined(u.autofocus)&&s(function(){d.setFocus()}),angular.isDefined(u.focusOn)&&o.$on(u.focusOn,function(){s(function(){d.setFocus()})}),t.on("click",h),o.$on("$destroy",function(){t.off("click",h)}),f(o,function(e){var t=angular.element("<div>").append(e),n=t.querySelectorAll(".ui-select-match");if(n.removeAttr("ui-select-match"),n.removeAttr("data-ui-select-match"),1!==n.length)throw r("transcluded","Expected 1 .ui-select-match but got '{0}'.",n.length);l.querySelectorAll(".ui-select-match").replaceWith(n);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw r("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);l.querySelectorAll(".ui-select-choices").replaceWith(i);var o=t.querySelectorAll(".ui-select-no-choice");o.removeAttr("ui-select-no-choice"),o.removeAttr("data-ui-select-no-choice"),1==o.length&&l.querySelectorAll(".ui-select-no-choice").replaceWith(o)});var g=o.$eval(u.appendToBody);(void 0!==g?g:n.appendToBody)&&(o.$watch("$select.open",function(e){var n;e?(n=i(l),(m=angular.element('<div class="ui-select-placeholder"></div>'))[0].style.width=n.width+"px",m[0].style.height=n.height+"px",l.after(m),v=l[0].style.width,t.find("body").append(l),l[0].style.position="absolute",l[0].style.left=n.left+"px",l[0].style.top=n.top+"px",l[0].style.width=n.width+"px"):y()}),o.$on("$destroy",function(){y()}));var m=null,v="";function y(){null!==m&&(m.replaceWith(l),m=null,l[0].style.position="",l[0].style.left="",l[0].style.top="",l[0].style.width=v,d.setFocus())}var b=null;o.$watch("$select.open",function(){"auto"!==d.dropdownPosition&&"up"!==d.dropdownPosition||o.calculateDropdownPos()});var w=function(e,t){e=e||i(l),t=t||i(b),b[0].style.position="absolute",b[0].style.top=-1*t.height+"px",l.addClass("direction-up")};o.calculateDropdownPos=function(){if(d.open){if(0===(b=angular.element(l).querySelectorAll(".ui-select-dropdown")).length)return;b[0].style.opacity=0,s(function(){if("up"===d.dropdownPosition)w();else{l.removeClass("direction-up");var e=i(l),n=i(b),r=t[0].documentElement.scrollTop||t[0].body.scrollTop;e.top+e.height+n.height>r+t[0].documentElement.clientHeight?w(e,n):function(e,t){l.removeClass("direction-up"),e=e||i(l),t=t||i(b),b[0].style.position="",b[0].style.top=""}(e,n)}b[0].style.opacity=1})}else{if(null===b||0===b.length)return;b[0].style.position="",b[0].style.top="",l.removeClass("direction-up")}}}}}}]),r.directive("uiSelectMatch",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(n){n.addClass("ui-select-match");var r=n.parent();return(t(r,"theme")||e.theme)+(angular.isDefined(t(r,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,n,r,i){function o(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=r.uiLockChoice,r.$observe("placeholder",function(t){i.placeholder=void 0!==t?t:e.placeholder}),r.$observe("allowClear",o),o(r.allowClear),i.multiple&&i.sizeSearchInput()}};function t(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}}]),r.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(e,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var n,r=this,i=e.$select;angular.isUndefined(i.selected)&&(i.selected=[]),e.$evalAsync(function(){n=e.ngModel}),r.activeMatchIndex=-1,r.updateModel=function(){n.$setViewValue(Date.now()),r.refreshComponent()},r.refreshComponent=function(){i.refreshItems(),i.sizeSearchInput()},r.removeChoice=function(n){var o=i.selected[n];if(!o._uiSelectChoiceLocked){var a={};a[i.parserResult.itemName]=o,i.selected.splice(n,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t(function(){i.onRemoveCallback(e,{$item:o,$model:i.parserResult.modelMapper(e,a)})}),r.updateModel()}},r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(r,i,o,a){var s=a[0],l=r.ngModel=a[1],u=r.$selectMultiple;function c(e){return void 0!==e&&void 0!==s.search&&e.filter(function(e){return void 0!==s.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===s.search.toUpperCase()}).length>0}function f(e,t){var n=-1;if(angular.isArray(e))for(var r=angular.copy(e),i=0;i<r.length;i++)if(void 0===s.tagging.fct)r[i]+" "+s.taggingLabel===t&&(n=i);else{var o=r[i];angular.isObject(o)&&(o.isTag=!0),angular.equals(o,t)&&(n=i)}return n}s.multiple=!0,s.removeSelected=!0,s.focusInput=s.searchInput,l.$isEmpty=function(e){return!e||0===e.length},l.$parsers.unshift(function(){for(var e,t={},n=[],i=s.selected.length-1;i>=0;i--)(t={})[s.parserResult.itemName]=s.selected[i],e=s.parserResult.modelMapper(r,t),n.unshift(e);return n}),l.$formatters.unshift(function(e){var t,n=s.parserResult&&s.parserResult.source(r,{$select:{search:""}}),i={};if(!n)return e;var o=[],a=function(e,n){if(e&&e.length){for(var a=e.length-1;a>=0;a--){if(i[s.parserResult.itemName]=e[a],t=s.parserResult.modelMapper(r,i),s.parserResult.trackByExp){var l=/(\w*)\./.exec(s.parserResult.trackByExp),u=/\.([^\s]+)/.exec(s.parserResult.trackByExp);if(l&&l.length>0&&l[1]==s.parserResult.itemName&&u&&u.length>0&&t[u[1]]==n[u[1]])return o.unshift(e[a]),!0}if(angular.equals(t,n))return o.unshift(e[a]),!0}return!1}};if(!e)return o;for(var l=e.length-1;l>=0;l--)a(s.selected,e[l])||a(n,e[l])||o.unshift(e[l]);return o}),r.$watchCollection(function(){return l.$modelValue},function(e,t){t!=e&&(angular.isDefined(l.$modelValue)&&(l.$modelValue=null),u.refreshComponent())}),l.$render=function(){if(!angular.isArray(l.$viewValue)){if(!angular.isUndefined(l.$viewValue)&&null!==l.$viewValue)throw e("multiarr","Expected model value to be array but got '{0}'",l.$viewValue);s.selected=[]}s.selected=l.$viewValue,u.refreshComponent(),r.$evalAsync()},r.$on("uis:select",function(e,t){s.selected.length>=s.limit||(s.selected.push(t),u.updateModel())}),r.$on("uis:activate",function(){u.activeMatchIndex=-1}),r.$watch("$select.disabled",function(e,t){t&&!e&&s.sizeSearchInput()}),s.searchInput.on("keydown",function(e){var n=e.which;r.$apply(function(){var r=!1;t.isHorizontalMovement(n)&&(r=function(e){var n=(c=s.searchInput[0],angular.isNumber(c.selectionStart)?c.selectionStart:c.value.length),r=s.selected.length-1,i=u.activeMatchIndex,o=u.activeMatchIndex+1,a=u.activeMatchIndex-1,l=i;var c;if(n>0||s.search.length&&e==t.RIGHT)return!1;s.close(),l=function(){switch(e){case t.LEFT:return~u.activeMatchIndex?a:r;case t.RIGHT:return~u.activeMatchIndex&&i!==r?o:(s.activate(),!1);case t.BACKSPACE:return~u.activeMatchIndex?(u.removeChoice(i),a):r;case t.DELETE:return!!~u.activeMatchIndex&&(u.removeChoice(u.activeMatchIndex),i)}}(),s.selected.length&&!1!==l?u.activeMatchIndex=Math.min(r,Math.max(0,l)):u.activeMatchIndex=-1;return!0}(n)),r&&n!=t.TAB&&(e.preventDefault(),e.stopPropagation())})}),s.searchInput.on("keyup",function(e){if(t.isVerticalMovement(e.which)||r.$evalAsync(function(){s.activeIndex=!1===s.taggingLabel?-1:0}),s.tagging.isActivated&&s.search.length>0){if(e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||t.isVerticalMovement(e.which))return;if(s.activeIndex=!1===s.taggingLabel?-1:0,!1===s.taggingLabel)return;var n,i,o,a=angular.copy(s.items),l=angular.copy(s.items),u=!1,d=-1;if(void 0!==s.tagging.fct){if((i=s.$filter("filter")(a,{isTag:!0})).length>0&&(o=i[0]),a.length>0&&o&&(u=!0,a=a.slice(1,a.length),l=l.slice(1,l.length)),n=s.tagging.fct(s.search),l.some(function(e){return angular.equals(e,n)})||s.selected.some(function(e){return angular.equals(e,n)}))return void r.$evalAsync(function(){s.activeIndex=0,s.items=a});n&&(n.isTag=!0)}else{if((i=s.$filter("filter")(a,function(e){return e.match(s.taggingLabel)})).length>0&&(o=i[0]),void 0!==a[0]&&a.length>0&&o&&(u=!0,a=a.slice(1,a.length),l=l.slice(1,l.length)),n=s.search+" "+s.taggingLabel,f(s.selected,s.search)>-1)return;if(c(l.concat(s.selected)))return void(u&&(a=l,r.$evalAsync(function(){s.activeIndex=0,s.items=a})));if(c(l))return void(u&&(s.items=l.slice(1,l.length)))}u&&(d=f(s.selected,n)),d>-1?a=a.slice(d+1,a.length-1):(a=[],n&&a.push(n),a=a.concat(l)),r.$evalAsync(function(){if(s.activeIndex=0,s.items=a,s.isGrouped){var e=n?a.slice(1):a;s.setItemsFn(e),n&&(s.items.unshift(n),s.groups.unshift({name:"",items:[n],tagging:!0}))}})}}),s.searchInput.on("blur",function(){n(function(){u.activeMatchIndex=-1})})}}}]),r.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return(t.parent().attr("theme")||e.theme)+"/no-choice.tpl.html"}}}]),r.directive("uiSelectSingle",["$timeout","$compile",function(e,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(r,i,o,a){var s=a[0],l=a[1];l.$parsers.unshift(function(e){var t={};return t[s.parserResult.itemName]=e,s.parserResult.modelMapper(r,t)}),l.$formatters.unshift(function(e){var t=s.parserResult&&s.parserResult.source(r,{$select:{search:""}}),n={};if(t){var i=function(t){return n[s.parserResult.itemName]=t,s.parserResult.modelMapper(r,n)===e};if(s.selected&&i(s.selected))return s.selected;for(var o=t.length-1;o>=0;o--)if(i(t[o]))return t[o]}return e}),r.$watch("$select.selected",function(e){l.$viewValue!==e&&l.$setViewValue(e)}),l.$render=function(){s.selected=l.$viewValue},r.$on("uis:select",function(e,t){s.selected=t}),r.$on("uis:close",function(t,n){e(function(){s.focusser.prop("disabled",!1),n||s.focusser[0].focus()},0,!1)}),r.$on("uis:activate",function(){u.prop("disabled",!0)});var u=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' />");n(u)(r),s.focusser=u,s.focusInput=u,i.parent().append(u),u.bind("focus",function(){r.$evalAsync(function(){s.focus=!0})}),u.bind("blur",function(){r.$evalAsync(function(){s.focus=!1})}),u.bind("keydown",function(e){if(e.which===t.BACKSPACE)return e.preventDefault(),e.stopPropagation(),s.select(void 0),void r.$apply();e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||(e.which!=t.DOWN&&e.which!=t.UP&&e.which!=t.ENTER&&e.which!=t.SPACE||(e.preventDefault(),e.stopPropagation(),s.activate()),r.$digest())}),u.bind("keyup input",function(e){e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||e.which==t.ENTER||e.which===t.BACKSPACE||(s.activate(u.val()),u.val(""),r.$digest())})}}}]),r.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,n){return{require:["^^uiSelect","^ngModel"],link:function(t,r,i,o){if(null===t[i.uiSelectSort])throw n("sort","Expected a list to sort");var a=o[0],s=o[1],l=angular.extend({axis:"horizontal"},t.$eval(i.uiSelectSortOptions)).axis;t.$watch(function(){return a.sortable},function(e){e?r.attr("draggable",!0):r.removeAttr("draggable")}),r.on("dragstart",function(e){r.addClass("dragging"),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),r.on("dragend",function(){c("dragging")});var u,c=function(e){angular.forEach(a.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},f=function(e){e.preventDefault(),("vertical"===l?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===l?"offsetHeight":"offsetWidth"]/2?(c("dropping-after"),r.addClass("dropping-before")):(c("dropping-before"),r.addClass("dropping-after"))},d=function(t){t.preventDefault();var n=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(u),u=e(function(){p(n)},20)},p=function(e){var n=t.$eval(i.uiSelectSort),o=n[e],a=null;a=r.hasClass("dropping-before")?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,function(e,t){this.splice(t,0,this.splice(e,1)[0])}.apply(n,[e,a]),s.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:n,item:o,from:e,to:a})}),c("dropping"),c("dropping-before"),c("dropping-after"),r.off("drop",d)};r.on("dragenter",function(){r.hasClass("dragging")||(r.addClass("dropping"),r.on("dragover",f),r.on("drop",d))}),r.on("dragleave",function(e){e.target==r&&(c("dropping"),c("dropping-before"),c("dropping-after"),r.off("dragover",f),r.off("drop",d))})}}}]),r.factory("$$uisDebounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,o)},n)}}}]),r.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){this.parse=function(n){var r;if(!(r=n.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 e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var i=r[5],o="";if(r[3]){i=r[5].replace(/(^\()|(\)$)/g,"");var a=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);a&&a[1].trim()&&(o=a[1],i=i.replace(o,""))}return{itemName:r[4]||r[2],keyName:r[3],source:t(i),filters:o,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[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"}}])}(),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" role="listbox" 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"><a href="" class="ui-select-choices-row-inner"></a></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected"><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-hide="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></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><input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.searchEnabled && $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 role="listbox" 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" 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/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="select2-search" ng-show="$select.searchEnabled"><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="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><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.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match" ng-transclude=""></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-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div></div>')}])}).call(this,n("EVdn"))},Ymqv:function(e,t,n){var r=n("LZWt");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},YuQr:function(e,t){!function(e){"use strict";e.module("vcRecaptcha",[])}(angular),function(e){"use strict";e.module("vcRecaptcha").provider("vcRecaptchaService",function(){var t=this,n={};t.onLoadFunctionName="vcRecaptchaApiLoaded",t.setDefaults=function(t){e.copy(t,n)},t.setSiteKey=function(e){n.key=e},t.setTheme=function(e){n.theme=e},t.setStoken=function(e){n.stoken=e},t.setSize=function(e){n.size=e},t.setType=function(e){n.type=e},t.setLang=function(e){n.lang=e},t.setBadge=function(e){n.badge=e},t.setOnLoadFunctionName=function(e){t.onLoadFunctionName=e},t.$get=["$rootScope","$window","$q","$document","$interval",function(r,i,o,a,s){function l(){if(!c)throw new Error("reCaptcha has not been loaded yet.")}function u(){return e.isFunction((i.grecaptcha||{}).render)}var c,f=o.defer(),d=f.promise,p={};i.vcRecaptchaApiLoadedCallback=i.vcRecaptchaApiLoadedCallback||[];var h=function(){c=i.grecaptcha,f.resolve(c)};if(i.vcRecaptchaApiLoadedCallback.push(h),i[t.onLoadFunctionName]=function(){i.vcRecaptchaApiLoadedCallback.forEach(function(e){e()})},u())h();else if(i.document.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]'))var g=s(function(){u()&&(s.cancel(g),h())},25);else{var m=i.document.createElement("script");m.async=!0,m.defer=!0,m.src="https://www.google.com/recaptcha/api.js?onload="+t.onLoadFunctionName+"&render=explicit",a.find("body")[0].appendChild(m)}return{create:function(e,t){return t.sitekey=t.key||n.key,t.theme=t.theme||n.theme,t.stoken=t.stoken||n.stoken,t.size=t.size||n.size,t.type=t.type||n.type,t.hl=t.lang||n.lang,t.badge=t.badge||n.badge,t.sitekey||function(){throw new Error('You need to set the "key" attribute to your public reCaptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create')}(),(c?o.when(c):d).then(function(n){var r=n.render(e,t);return p[r]=e,r})},reload:function(e){l(),c.reset(e),r.$broadcast("reCaptchaReset",e)},execute:function(e){l(),c.execute(e)},useLang:function(e,t){var n=p[e];if(!n)throw new Error("reCaptcha Widget ID not exists",e);var r=n.querySelector("iframe");if(!t)return r&&r.src&&/[?&]hl=\w+/.test(r.src)?r.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/,"$1"):null;if(r&&r.src){var i=r.src;/[?&]hl=/.test(i)?i=i.replace(/([?&]hl=)\w+/,"$1"+t):i+=(-1===i.indexOf("?")?"?":"&")+"hl="+t,r.src=i}},getResponse:function(e){return l(),c.getResponse(e)},getInstance:function(e){return p[e]},destroy:function(e){delete p[e]}}}]})}(angular),function(e){"use strict";e.module("vcRecaptcha").directive("vcRecaptcha",["$document","$timeout","vcRecaptchaService",function(t,n,r){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=?",stoken:"=?",theme:"=?",size:"=?",type:"=?",lang:"=?",badge:"=?",tabindex:"=?",required:"=?",onCreate:"&",onSuccess:"&",onExpire:"&"},link:function(i,o,a,s){function l(){s&&s.$setValidity("recaptcha",null),r.destroy(i.widgetId),e.element(t[0].querySelectorAll(".pls-container")).parent().remove()}function u(){n(function(){i.response="",c(),i.onExpire({widgetId:i.widgetId})})}function c(){s&&s.$setValidity("recaptcha",!1===i.required?null:Boolean(i.response))}i.widgetId=null,s&&e.isDefined(a.required)&&i.$watch("required",c);var f=i.$watch("key",function(t){r.create(o[0],{callback:function(e){n(function(){i.response=e,c(),i.onSuccess({response:e,widgetId:i.widgetId})})},key:t,stoken:i.stoken||a.stoken||null,theme:i.theme||a.theme||null,type:i.type||a.type||null,lang:i.lang||a.lang||null,tabindex:i.tabindex||a.tabindex||null,size:i.size||a.size||null,badge:i.badge||a.badge||null,"expired-callback":u}).then(function(t){c(),i.widgetId=t,i.onCreate({widgetId:t}),i.$on("$destroy",l),i.$on("reCaptchaReset",function(n,r){(e.isUndefined(r)||t===r)&&(i.response="",c())})}),f()})}}}])}(angular)},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z2Ku:function(e,t,n){"use strict";var r=n("XKFU"),i=n("w2a5")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")("includes")},Z6vF:function(e,t,n){var r=n("ylqs")("meta"),i=n("0/R4"),o=n("aagx"),a=n("hswa").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("eeVq")(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!o(e,r)&&c(e),e}}},ZD67:function(e,t,n){"use strict";var r=n("3Lyj"),i=n("Z6vF").getWeak,o=n("y3w9"),a=n("0/R4"),s=n("9gX7"),l=n("SlkY"),u=n("CkkT"),c=n("aagx"),f=n("s5qY"),d=u(5),p=u(6),h=0,g=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},v=function(e,t){return d(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e(function(e,r){s(e,u,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&l(r,n,e[o],e)});return r(u.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?g(f(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?g(f(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var r=i(o(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},ZRWH:function(e,t){void 0!==e&&void 0!==t&&e.exports===t&&(e.exports="ui.router"),function(e,t,n){"use strict";function r(e,t){return j(new(j(function(){},{prototype:e})),t)}function i(e){return L(arguments,function(t){t!==e&&L(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function o(e){if(Object.keys)return Object.keys(e);var t=[];return L(e,function(e,n){t.push(n)}),t}function a(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,r=Number(arguments[2])||0;for((r=r<0?Math.ceil(r):Math.floor(r))<0&&(r+=n);r<n;r++)if(r in e&&e[r]===t)return r;return-1}function s(e,t,n,r){var i,s=function(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}(n,r),l={},u=[];for(var c in s)if(s[c]&&s[c].params&&(i=o(s[c].params)).length)for(var f in i)a(u,i[f])>=0||(u.push(i[f]),l[i[f]]=e[i[f]]);return j({},l,t)}function l(e,t){var n={};return L(e,function(e){n[e]=t[e]}),n}function u(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return L(n,function(n){n in e&&(t[n]=e[n])}),t}function c(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in e)-1==a(n,r)&&(t[r]=e[r]);return t}function f(e,t){var n=P(e),r=n?[]:{};return L(e,function(e,i){t(e,i)&&(r[n?r.length:i]=e)}),r}function d(e,t){var n=P(e)?[]:{};return L(e,function(e,r){n[r]=t(e,r)}),n}function p(e){return e.then(n,function(){})&&e}function h(e,t){var r=1,s=2,l={},u=[],f=l,d=j(e.when(l),{$$promises:l,$$values:l});this.study=function(l){function h(e){return R(e)&&e.then&&e.$$promises}if(!R(l))throw new Error("'invocables' must be an object");var g=o(l||{}),m=[],v=[],y={};return L(l,function e(n,i){if(y[i]!==s){if(v.push(i),y[i]===r)throw v.splice(0,a(v,i)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[i]=r,F(n))m.push(i,[function(){return t.get(n)}],u);else{var o=t.annotate(n);L(o,function(t){t!==i&&l.hasOwnProperty(t)&&e(l[t],t)}),m.push(i,n,o)}v.pop(),y[i]=s}}),l=v=y=null,function(r,o,a){function s(){--$||(E||i(w,o.$$values),y.$$values=w,y.$$promises=y.$$promises||!0,delete y.$$inheritedValues,v.resolve(w))}function l(e){y.$$failure=e,v.reject(e)}function u(n,i,o){function u(e){f.reject(e),l(e)}function c(){if(!N(y.$$failure))try{f.resolve(t.invoke(i,a,w)),f.promise.then(function(e){w[n]=e,s()},u)}catch(e){u(e)}}var f=e.defer(),d=0;L(o,function(e){b.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(d++,b[e].then(function(t){w[e]=t,--d||c()},u))}),d||c(),b[n]=p(f.promise)}if(h(r)&&a===n&&(a=o,o=r,r=null),r){if(!R(r))throw new Error("'locals' must be an object")}else r=f;if(o){if(!h(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=d;var v=e.defer(),y=p(v.promise),b=y.$$promises={},w=j({},r),$=1+m.length/3,E=!1;if(p(y),N(o.$$failure))return l(o.$$failure),y;o.$$inheritedValues&&i(w,c(o.$$inheritedValues,g)),j(b,o.$$promises),o.$$values?(E=i(w,c(o.$$values,g)),y.$$inheritedValues=c(o.$$values,g),s()):(o.$$inheritedValues&&(y.$$inheritedValues=c(o.$$inheritedValues,g)),o.then(s,l));for(var S=0,x=m.length;S<x;S+=3)r.hasOwnProperty(m[S])?s():u(m[S],m[S+1],m[S+2]);return y}},this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function g(e,t,i){function o(t,n,r,i){if(b.push(t),v[t])return v[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(y[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");return y[t]=new M.Param(t,n,r,i),y[t]}function a(e,t,n,r){var i=["",""],o=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return o;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:o=o.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+n+"|",")?"]}return o+i[0]+t+i[1]}function s(i,o){var a,s,l,u,c;return a=i[2]||i[3],c=t.params[a],l=e.substring(g,i.index),(s=o?i[4]:i[4]||("*"==i[1]?".*":null))&&(u=M.type(s)||r(M.type("string"),{pattern:new RegExp(s,t.caseInsensitive?"i":n)})),{id:a,regexp:s,segment:l,type:u,cfg:c}}t=j({params:{}},R(t)?t:{});var l,u,c,f,d=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,p=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,h="^",g=0,m=this.segments=[],v=i?i.params:{},y=this.params=i?i.params.$$new():new M.ParamSet,b=[];for(this.source=e;(l=d.exec(e))&&!((u=s(l,!1)).segment.indexOf("?")>=0);)c=o(u.id,u.type,u.cfg,"path"),h+=a(u.segment,c.type.pattern.source,c.squash,c.isOptional),m.push(u.segment),g=d.lastIndex;var w=(f=e.substring(g)).indexOf("?");if(w>=0){var $=this.sourceSearch=f.substring(w);if(f=f.substring(0,w),this.sourcePath=e.substring(0,g+w),$.length>0)for(g=0;l=p.exec($);)c=o((u=s(l,!0)).id,u.type,u.cfg,"search"),g=d.lastIndex}else this.sourcePath=e,this.sourceSearch="";h+=a(f)+(!1===t.strict?"/?":"")+"$",m.push(f),this.regexp=new RegExp(h,t.caseInsensitive?"i":n),this.prefix=m[0],this.$$paramNames=b}function m(e){j(this,e)}function v(e,r){function i(e,t,n){if(!n)return!1;var r=e.invoke(t,t,{$match:n});return!N(r)||r}function o(r,i,o,c,f){function d(e){function t(e){var t=e(o,r);return!!t&&(F(t)&&r.replace().url(t),!0)}if(!e||!e.defaultPrevented){h&&r.url(),h=n;var i,a=s.length;for(i=0;i<a;i++)if(t(s[i]))return;l&&t(l)}}function p(){return a=a||i.$on("$locationChangeSuccess",d)}var h,g=c.baseHref(),m=r.url();return u||p(),{sync:function(){d()},listen:function(){return p()},update:function(e){e?m=r.url():r.url()!==m&&(r.url(m),r.replace())},push:function(e,t,i){var o=e.format(t||{});null!==o&&t&&t["#"]&&(o+="#"+t["#"]),r.url(o),h=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,o){if(!n.validates(i))return null;var a=e.html5Mode();t.isObject(a)&&(a=a.enabled),a=a&&f.history;var s=n.format(i);if(o=o||{},a||null===s||(s="#"+e.hashPrefix()+s),null!==s&&i&&i["#"]&&(s+="#"+i["#"]),s=function(e,t,n){return"/"===g?e:t?g.slice(0,-1)+e:n?g.slice(1)+e:e}(s,a,o.absolute),!o.absolute||!s)return s;var l=!a&&s?"/":"",u=r.port();return u=80===u||443===u?"":":"+u,[r.protocol(),"://",r.host(),u,l,s].join("")}}}var a,s=[],l=null,u=!1;this.rule=function(e){if(!I(e))throw new Error("'rule' must be a function");return s.push(e),this},this.otherwise=function(e){if(F(e)){var t=e;e=function(){return t}}else if(!I(e))throw new Error("'rule' must be a function");return l=e,this},this.when=function(e,t){var n,o=F(t);if(F(e)&&(e=r.compile(e)),!o&&!I(t)&&!P(t))throw new Error("invalid 'handler' in when()");var a={matcher:function(e,t){return o&&(n=r.compile(t),t=["$match",function(e){return n.format(e)}]),j(function(n,r){return i(n,t,e.exec(r.path(),r.search()))},{prefix:F(e.prefix)?e.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return o&&(n=t,t=["$match",function(e){return function(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}(n,e)}]),j(function(n,r){return i(n,t,e.exec(r.path()))},{prefix:function(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}(e)})}},s={matcher:r.isMatcher(e),regex:e instanceof RegExp};for(var l in s)if(s[l])return this.rule(a[l](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),u=e},this.$get=o,o.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function y(e,i){function c(e,t){if(!e)return n;var r=F(e),i=r?e:e.name;if(function(e){return 0===e.indexOf(".")||0===e.indexOf("^")}(i)){if(!t)throw new Error("No reference point given for path '"+i+"'");t=c(t);for(var o=i.split("."),a=0,s=o.length,l=t;a<s;a++)if(""!==o[a]||0!==a){if("^"!==o[a])break;if(!l.parent)throw new Error("Path '"+i+"' not valid for state '"+t.name+"'");l=l.parent}else l=t;o=o.slice(a).join("."),i=l.name+(l.name&&o?".":"")+o}var u=b[i];return!u||!r&&(r||u!==e&&u.self!==e)?n:u}function f(t){var n=(t=r(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}})).name;if(!F(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(b.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var i=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):F(t.parent)?t.parent:R(t.parent)&&F(t.parent.name)?t.parent.name:"";if(i&&!b[i])return function(e,t){w[e]||(w[e]=[]),w[e].push(t)}(i,t.self);for(var o in E)I(E[o])&&(t[o]=E[o](t,E.$delegates[o]));return b[n]=t,!t[$]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){y.$current.navigable==t&&function(e,t,n){if(!n)for(var r in n=[],e)n.push(r);for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!=t[o])return!1}return!0}(e,n)||y.transitionTo(t,e,{inherit:!0,location:!1})}]),function(e){for(var t=w[e]||[];t.length;)f(t.shift())}(n),t}function h(e){for(var t=e.split("."),n=y.$current.name.split("."),r=0,i=t.length;r<i;r++)"*"===t[r]&&(n[r]="*");return"**"===t[0]&&(n=n.slice(a(n,t[1]))).unshift("**"),"**"===t[t.length-1]&&(n.splice(a(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length==n.length&&n.join("")===t.join("")}function g(e,i,a,u,f,g,w,E,S){function x(t,n,r,o){var a=e.$broadcast("$stateNotFound",t,n,r);if(a.defaultPrevented)return w.update(),A;if(!a.retry)return null;if(o.$retry)return w.update(),O;var s=y.transition=i.when(a.retry);return s.then(function(){return s!==y.transition?(e.$broadcast("$stateChangeCancel",t.to,t.toParams,n,r),k):(t.options.$retry=!0,y.transitionTo(t.to,t.toParams,t.options))},function(){return A}),w.update(),s}function C(e,n,r,o,s,c){var d=r?n:l(e.params.$$keys(),n),p={$stateParams:d};s.resolve=f.resolve(e.resolve,p,s.resolve,e);var h=[s.resolve.then(function(e){s.globals=e})];return o&&h.push(o),i.all(h).then(function(){var n=[];return L(e.views,function(r,i){var o=r.resolve&&r.resolve!==e.resolve?r.resolve:{};o.$template=[function(){return a.load(i,{view:r,locals:s.globals,params:d,notify:c.notify})||""}],n.push(f.resolve(o,s.globals,s.resolve,e).then(function(n){if(I(r.controllerProvider)||P(r.controllerProvider)){var a=t.extend({},o,s.globals);n.$$controller=u.invoke(r.controllerProvider,null,a)}else n.$$controller=r.controller;n.$$state=e,n.$$controllerAs=r.controllerAs,n.$$resolveAs=r.resolveAs,s[i]=n}))}),i.all(n).then(function(){return s.globals})}).then(function(e){return s})}var T=new Error("transition superseded"),k=p(i.reject(T)),_=p(i.reject(new Error("transition prevented"))),A=p(i.reject(new Error("transition aborted"))),O=p(i.reject(new Error("transition failed")));return v.locals={resolve:null,globals:{$stateParams:{}}},(y={params:{},current:v.self,$current:v,transition:null}).reload=function(e){return y.transitionTo(y.current,g,{reload:e||!0,inherit:!1,notify:!0})},y.go=function(e,t,n){return y.transitionTo(e,t,j({inherit:!0,relative:y.$current},n))},y.transitionTo=function(t,n,o){n=n||{},o=j({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a=y.$current,f=y.params,d=a.path,h=c(t,o.relative),b=n["#"];if(!N(h)){var E={to:t,toParams:n,options:o},S=x(E,a.self,f,o);if(S)return S;if(n=E.toParams,h=c(t=E.to,(o=E.options).relative),!N(h)){if(!o.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+o.relative+"'")}}if(h[$])throw new Error("Cannot transition to abstract state '"+t+"'");if(o.inherit&&(n=s(g,n||{},y.$current,h)),!h.params.$$validates(n))return O;n=h.params.$$values(n);var A=(t=h).path,D=0,M=A[D],I=v.locals,P=[];if(o.reload){if(F(o.reload)||R(o.reload)){if(R(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var L=!0===o.reload?d[0]:c(o.reload);if(o.reload&&!L)throw new Error("No such reload state '"+(F(o.reload)?o.reload:o.reload.name)+"'");for(;M&&M===d[D]&&M!==L;)I=P[D]=M.locals,M=A[++D]}}else for(;M&&M===d[D]&&M.ownParams.$$equals(n,f);)I=P[D]=M.locals,M=A[++D];if(m(t,n,a,f,I,o))return b&&(n["#"]=b),y.params=n,U(y.params,g),U(l(t.params.$$keys(),g),t.locals.globals.$stateParams),o.location&&t.navigable&&t.navigable.url&&(w.push(t.navigable.url,n,{$$avoidResync:!0,replace:"replace"===o.location}),w.update(!0)),y.transition=null,i.when(y.current);if(n=l(t.params.$$keys(),n||{}),b&&(n["#"]=b),o.notify&&e.$broadcast("$stateChangeStart",t.self,n,a.self,f,o).defaultPrevented)return e.$broadcast("$stateChangeCancel",t.self,n,a.self,f),null==y.transition&&w.update(),_;for(var B=i.when(I),H=D;H<A.length;M=A[++H])I=P[H]=r(I),B=C(M,n,M===t,B,I,o);var z=y.transition=B.then(function(){var r,i,s;if(y.transition!==z)return e.$broadcast("$stateChangeCancel",t.self,n,a.self,f),k;for(r=d.length-1;r>=D;r--)(s=d[r]).self.onExit&&u.invoke(s.self.onExit,s.self,s.locals.globals),s.locals=null;for(r=D;r<A.length;r++)(i=A[r]).locals=P[r],i.self.onEnter&&u.invoke(i.self.onEnter,i.self,i.locals.globals);return y.transition!==z?(e.$broadcast("$stateChangeCancel",t.self,n,a.self,f),k):(y.$current=t,y.current=t.self,y.params=n,U(y.params,g),y.transition=null,o.location&&t.navigable&&w.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,a.self,f),w.update(!0),y.current)}).then(null,function(r){return r===T?k:y.transition!==z?(e.$broadcast("$stateChangeCancel",t.self,n,a.self,f),k):(y.transition=null,e.$broadcast("$stateChangeError",t.self,n,a.self,f,r).defaultPrevented||w.update(),i.reject(r))});return p(z),z},y.is=function(e,t,r){var i=c(e,(r=j({relative:y.$current},r||{})).relative);return N(i)?y.$current===i&&(!t||o(t).reduce(function(e,n){var r=i.params[n];return e&&(!r||r.type.equals(g[n],t[n]))},!0)):n},y.includes=function(e,t,r){if(r=j({relative:y.$current},r||{}),F(e)&&function(e){return e.indexOf("*")>-1}(e)){if(!h(e))return!1;e=y.$current.name}var i=c(e,r.relative);if(!N(i))return n;if(!N(y.$current.includes[i.name]))return!1;if(!t)return!0;for(var a=o(t),s=0;s<a.length;s++){var l=a[s],u=i.params[l];if(u&&!u.type.equals(g[l],t[l]))return!1}return o(t).reduce(function(e,n){var r=i.params[n];return e&&!r||r.type.equals(g[n],t[n])},!0)},y.href=function(e,t,r){var i=c(e,(r=j({lossy:!0,inherit:!0,absolute:!1,relative:y.$current},r||{})).relative);if(!N(i))return null;r.inherit&&(t=s(g,t||{},y.$current,i));var o=i&&r.lossy?i.navigable:i;return o&&o.url!==n&&null!==o.url?w.href(o.url,l(i.params.$$keys().concat("#"),t||{}),{absolute:r.absolute}):null},y.get=function(e,t){if(0===arguments.length)return d(o(b),function(e){return b[e].self});var n=c(e,t||y.$current);return n&&n.self?n.self:null},y}function m(e,t,n,r,i,o){if(!o.reload&&e===n&&(i===n.locals||!1===e.self.reloadOnSearch&&function(e,t,n){var r=e.params.$$keys().filter(function(t){return"search"!=e.params[t].location}),i=u.apply({},[e.params].concat(r));return new M.ParamSet(i).$$equals(t,n)}(n,r,t)))return!0}var v,y,b={},w={},$="abstract",E={parent:function(e){if(N(e.parent)&&e.parent)return c(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?c(t[1]):v},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=r(e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(F(t))return"^"==t.charAt(0)?i.compile(t.substring(1),n):(e.parent.navigable||v).url.concat(t,n);if(!t||i.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},ownParams:function(e){var t=e.url&&e.url.params||new M.ParamSet;return L(e.params||{},function(e,n){t[n]||(t[n]=new M.Param(n,null,e,"config"))}),t},params:function(e){var t=u(e.ownParams,e.ownParams.$$keys());return e.parent&&e.parent.params?j(e.parent.params.$$new(),t):new M.ParamSet},views:function(e){var t={};return L(N(e.views)?e.views:{"":e},function(n,r){r.indexOf("@")<0&&(r+="@"+e.parent.name),n.resolveAs=n.resolveAs||e.resolveAs||"$resolve",t[r]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?j({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};(v=f({name:"",url:"^",views:null,abstract:!0})).navigable=null,this.decorator=function(e,t){return F(e)&&!N(t)?E[e]:I(t)&&F(e)?(E[e]&&!E.$delegates[e]&&(E.$delegates[e]=E[e]),E[e]=t,this):this},this.state=function(e,t){return R(e)?t=e:t.name=e,f(t),this},this.$get=g,g.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function b(){function e(e,t){return{load:function(e,n){var r;return(n=j({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},n)).view&&(r=t.fromConfig(n.view,n.params,n.locals)),r}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function w(e,n,r,i,o){function a(e,n){if(u)return{enter:function(e,n,r){t.version.minor>2?u.enter(e,null,n).then(r):u.enter(e,null,n,r)},leave:function(e,n){t.version.minor>2?u.leave(e).then(n):u.leave(e,n)}};if(l){var r=l&&l(n,e);return{enter:function(e,t,n){r.enter(e,null,t),n()},leave:function(e,t){r.leave(e),t()}}}return{enter:function(e,t,n){t.after(e),n()},leave:function(e,t){e.remove(),t()}}}var s=n.has?function(e){return n.has(e)?n.get(e):null}:function(e){try{return n.get(e)}catch(e){return null}},l=s("$animator"),u=s("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,s,l){return function(n,s,u){function c(){if(d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),p){var e=p.data("$uiViewAnim");y.leave(p,function(){e.$$animLeave.resolve(),d=null}),d=p,p=null}}function f(a){var f,d=E(n,u,s,i),b=d&&e.$current&&e.$current.locals[d];if(a||b!==g){f=n.$new(),g=e.$current.locals[d],f.$emit("$viewContentLoading",d);var w=l(f,function(e){var i=o.defer(),a=o.defer(),l={$animEnter:i.promise,$animLeave:a.promise,$$animLeave:a};e.data("$uiViewAnim",l),y.enter(e,s,function(){i.resolve(),h&&h.$emit("$viewContentAnimationEnded"),(t.isDefined(v)&&!v||n.$eval(v))&&r(e)}),c()});p=w,(h=f).$emit("$viewContentLoaded",d),h.$eval(m)}}var d,p,h,g,m=u.onload||"",v=u.autoscroll,y=a(u,n);s.inheritedData("$uiView"),n.$on("$stateChangeSuccess",function(){f(!1)}),f(!0)}}}}function $(e,n,r,i){return{restrict:"ECA",priority:-400,compile:function(o){var a=o.html();return o.empty?o.empty():o[0].innerHTML=null,function(o,s,l){var u=r.$current,c=E(o,l,s,i),f=u&&u.locals[c];if(!f)return s.html(a),void e(s.contents())(o);s.data("$uiView",{name:c,state:f.$$state}),s.html(f.$template?f.$template:a);var d=t.extend({},f);o[f.$$resolveAs]=d;var p=e(s.contents());if(f.$$controller){f.$scope=o,f.$element=s;var h=n(f.$$controller,f);f.$$controllerAs&&(o[f.$$controllerAs]=h,o[f.$$controllerAs][f.$$resolveAs]=d),I(h.$onInit)&&h.$onInit(),s.data("$ngControllerController",h),s.children().data("$ngControllerController",h)}p(o)}}}}function E(e,t,n,r){var i=r(t.uiView||t.name||"")(e),o=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(o?o.state.name:"")}function S(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),!(n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function x(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function C(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function T(e,t,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||e.attr("target"))){var l=n(function(){t.go(s.state,s.params,s.options)});o.preventDefault();var u=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){u--<=0&&n.cancel(l)}}}}function k(e,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var s,l=S(o.uiSref,e.current.name),u={state:l.state,href:null,params:null},c=C(i),f=a[1]||a[0],d=null;u.options=j(function(e,t){return{relative:x(e)||t.$current,inherit:!0}}(i,e),o.uiSrefOpts?r.$eval(o.uiSrefOpts):{});var p=function(n){n&&(u.params=t.copy(n)),u.href=e.href(l.state,u.params,u.options),d&&d(),f&&(d=f.$$addStateInfo(l.state,u.params)),null!==u.href&&o.$set(c.attr,u.href)};l.paramExpr&&(r.$watch(l.paramExpr,function(e){e!==u.params&&p(e)},!0),u.params=t.copy(r.$eval(l.paramExpr))),p(),c.clickable&&(s=T(i,e,n,c,function(){return u}),i[i.on?"on":"bind"]("click",s),r.$on("$destroy",function(){i[i.off?"off":"unbind"]("click",s)}))}}}function _(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,o){function a(t){f.state=t[0],f.params=t[1],f.options=t[2],f.href=e.href(f.state,f.params,f.options),d&&d(),u&&(d=u.$$addStateInfo(f.state,f.params)),f.href&&i.$set(l.attr,f.href)}var s,l=C(r),u=o[1]||o[0],c="["+[i.uiState,i.uiStateParams||null,i.uiStateOpts||null].map(function(e){return e||"null"}).join(", ")+"]",f={state:null,params:null,options:null,href:null},d=null;n.$watch(c,a,!0),a(n.$eval(c)),l.clickable&&(s=T(r,e,t,l,function(){return f}),r[r.on?"on":"bind"]("click",s),n.$on("$destroy",function(){r[r.off?"off":"unbind"]("click",s)}))}}}function A(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,r,i,o){function a(t,n,i){var o=e.get(t,x(r)),a=s(t,n),l={state:o||{name:t},params:n,hash:a};return g.push(l),m[a]=i,function(){var e=g.indexOf(l);-1!==e&&g.splice(e,1)}}function s(e,n){if(!F(e))throw new Error("state should be a string");return R(n)?e+B(n):(n=t.$eval(n),R(n)?e+B(n):e)}function l(){for(var e=0;e<g.length;e++)f(g[e].state,g[e].params)?u(r,m[g[e].hash]):c(r,m[g[e].hash]),d(g[e].state,g[e].params)?u(r,p):c(r,p)}function u(e,t){o(function(){e.addClass(t)})}function c(e,t){e.removeClass(t)}function f(t,n){return e.includes(t.name,n)}function d(t,n){return e.is(t.name,n)}var p,h,g=[],m={};p=n(i.uiSrefActiveEq||"",!1)(t);try{h=t.$eval(i.uiSrefActive)}catch(e){}h=h||n(i.uiSrefActive||"",!1)(t),R(h)&&L(h,function(n,r){if(F(n)){var i=S(n,e.current.name);a(i.state,t.$eval(i.paramExpr),r)}}),this.$$addStateInfo=function(e,t){if(!(R(h)&&g.length>0)){var n=a(e,t,h);return l(),n}},t.$on("$stateChangeSuccess",l),l()}]}}function O(e){var t=function(t,n){return e.is(t,n)};return t.$stateful=!0,t}function D(e){var t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}var M,N=t.isDefined,I=t.isFunction,F=t.isString,R=t.isObject,P=t.isArray,L=t.forEach,j=t.extend,U=t.copy,B=t.toJson;t.module("ui.router.util",["ng"]),t.module("ui.router.router",["ui.router.util"]),t.module("ui.router.state",["ui.router.router","ui.router.util"]),t.module("ui.router",["ui.router.state"]),t.module("ui.router.compat",["ui.router"]),h.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",h),t.module("ui.router.util").provider("$templateFactory",function(){var e=t.version.minor<3;this.shouldUnsafelyUseHttp=function(t){e=!!t},this.$get=["$http","$templateCache","$injector",function(t,n,r){return new function(e,t,n,r){this.fromConfig=function(e,t,n){return N(e.template)?this.fromString(e.template,t):N(e.templateUrl)?this.fromUrl(e.templateUrl,t):N(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return I(e)?e(t):e},this.fromUrl=function(i,o){return I(i)&&(i=i(o)),null==i?null:r?e.get(i,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data}):n.get("$templateRequest")(i)},this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}(t,n,r,e)}]}),g.prototype.concat=function(e,t){var n={caseInsensitive:M.caseInsensitive(),strict:M.strictMode(),squash:M.defaultSquashPolicy()};return new g(this.sourcePath+e+this.sourceSearch,j(n,t),this)},g.prototype.toString=function(){return this.source},g.prototype.exec=function(e,t){function n(e){function t(e){return e.split("").reverse().join("")}return d(d(t(e).split(/-(?!\\)/),t),function(e){return e.replace(/\\-/g,"-")}).reverse()}var r=this.regexp.exec(e);if(!r)return null;t=t||{};var i,o,a,s,l,u=this.parameters(),c=u.length,f=this.segments.length-1,p={};if(f!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(i=0;i<f;i++){for(a=u[i],s=this.params[a],l=r[i+1],o=0;o<s.replace.length;o++)s.replace[o].from===l&&(l=s.replace[o].to);l&&!0===s.array&&(l=n(l)),N(l)&&(l=s.type.decode(l)),p[a]=s.value(l)}for(;i<c;i++){for(p[a=u[i]]=this.params[a].value(t[a]),s=this.params[a],l=t[a],o=0;o<s.replace.length;o++)s.replace[o].from===l&&(l=s.replace[o].to);N(l)&&(l=s.type.decode(l)),p[a]=s.value(l)}return p},g.prototype.parameters=function(e){return N(e)?this.params[e]||null:this.$$paramNames},g.prototype.validates=function(e){return this.params.$$validates(e)},g.prototype.format=function(e){function t(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})}e=e||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(e))return null;var o,a=!1,s=n.length-1,l=r.length,u=n[0];for(o=0;o<l;o++){var c=o<s,f=r[o],p=i[f],h=p.value(e[f]),g=p.isOptional&&p.type.equals(p.value(),h),m=!!g&&p.squash,v=p.type.encode(h);if(c){var y=n[o+1],b=o+1===s;if(!1===m)null!=v&&(P(v)?u+=d(v,t).join("-"):u+=encodeURIComponent(v)),u+=y;else if(!0===m){var w=u.match(/\/$/)?/\/?(.*)/:/(.*)/;u+=y.match(w)[1]}else F(m)&&(u+=m+y);b&&!0===p.squash&&"/"===u.slice(-1)&&(u=u.slice(0,-1))}else{if(null==v||g&&!1!==m)continue;if(P(v)||(v=[v]),0===v.length)continue;v=d(v,encodeURIComponent).join("&"+f+"="),u+=(a?"&":"?")+f+"="+v,a=!0}}return u},m.prototype.is=function(e,t){return!0},m.prototype.encode=function(e,t){return e},m.prototype.decode=function(e,t){return e},m.prototype.equals=function(e,t){return e==t},m.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},m.prototype.pattern=/.*/,m.prototype.toString=function(){return"{Type:"+this.name+"}"},m.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},m.prototype.$asArray=function(e,t){if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new function(e,t){function r(e,t){return function(){return e[t].apply(e,arguments)}}function i(e){return P(e)?e:N(e)?[e]:[]}function o(e){switch(e.length){case 0:return n;case 1:return"auto"===t?e[0]:e;default:return e}}function a(e){return!e}function s(e,t){return function(n){if(P(n)&&0===n.length)return n;var r=d(n=i(n),e);return!0===t?0===f(r,a).length:o(r)}}this.encode=s(r(e,"encode")),this.decode=s(r(e,"decode")),this.is=s(r(e,"is"),!0),this.equals=function(e){return function(t,n){var r=i(t),o=i(n);if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(!e(r[a],o[a]))return!1;return!0}}(r(e,"equals")),this.pattern=e.pattern,this.$normalize=s(r(e,"$normalize")),this.name=e.name,this.$arrayMode=t}(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",function e(){function i(e){return null!=e?e.toString().replace(/(~|\/)/g,function(e){return{"~":"~~","/":"~2F"}[e]}):e}function s(e){return I(e)||P(e)&&I(e[e.length-1])}function l(){for(;w.length;){var e=w.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(y[e.name],c.invoke(e.def))}}function u(e){j(this,e||{})}M=this;var c,p=!1,h=!0,v=!1,y={},b=!0,w=[],$={string:{encode:i,decode:function(e){return null!=e?e.toString().replace(/(~~|~2F)/g,function(e){return{"~~":"~","~2F":"/"}[e]}):e},is:function(e){return null==e||!N(e)||"string"==typeof e},pattern:/[^\/]*/},int:{encode:i,decode:function(e){return parseInt(e,10)},is:function(e){return e!==n&&null!==e&&this.decode(e.toString())===e},pattern:/-?\d+/},bool:{encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:function(e){return!0===e||!1===e},pattern:/0|1/},date:{encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):n},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):n},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return this.is(e)&&this.is(t)&&e.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};e.$$getDefaultValue=function(e){if(!s(e.value))return e.value;if(!c)throw new Error("Injectable functions cannot be called at configuration time");return c.invoke(e.value)},this.caseInsensitive=function(e){return N(e)&&(p=e),p},this.strictMode=function(e){return N(e)&&(h=e),h},this.defaultSquashPolicy=function(e){if(!N(e))return v;if(!0!==e&&!1!==e&&!F(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return v=e,e},this.compile=function(e,t){return new g(e,j({strict:h,caseInsensitive:p},t))},this.isMatcher=function(e){if(!R(e))return!1;var t=!0;return L(g.prototype,function(n,r){I(n)&&(t=t&&N(e[r])&&I(e[r]))}),t},this.type=function(e,t,n){if(!N(t))return y[e];if(y.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return y[e]=new m(j({name:e},t)),n&&(w.push({name:e,def:n}),b||l()),this},L($,function(e,t){y[t]=new m(j({name:t},e))}),y=r(y,{}),this.$get=["$injector",function(e){return c=e,b=!1,l(),L($,function(e,t){y[t]||(y[t]=new m(e))}),this}],this.Param=function(e,r,i,l){function u(){if(!c)throw new Error("Injectable functions cannot be called at configuration time");var e=c.invoke(i.$$fn);if(null!==e&&e!==n&&!p.type.is(e))throw new Error("Default value ("+e+") for parameter '"+p.id+"' is not an instance of Type ("+p.type.name+")");return e}var p=this;i=function(e){var t=R(e)?o(e):[];return-1===a(t,"value")&&-1===a(t,"type")&&-1===a(t,"squash")&&-1===a(t,"array")&&(e={value:e}),e.$$fn=s(e.value)?e.value:function(){return e.value},e}(i),r=function(n,r,i){if(n.type&&r)throw new Error("Param '"+e+"' has two type configurations.");return r||(n.type?t.isString(n.type)?y[n.type]:n.type instanceof m?n.type:new m(n.type):"config"===i?y.any:y.string)}(i,r,l);var h=function(){var t={array:"search"===l&&"auto"},n=e.match(/\[\]$/)?{array:!0}:{};return j(t,n,i).array}();"string"!==(r=h?r.$asArray(h,"search"===l):r).name||h||"path"!==l||i.value!==n||(i.value="");var g=i.value!==n,b=function(e,t){var n=e.squash;if(!t||!1===n)return!1;if(!N(n)||null==n)return v;if(!0===n||F(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(i,g),w=function(e,t,r,i){var o,s,l=[{from:"",to:r||t?n:""},{from:null,to:r||t?n:""}];return o=P(e.replace)?e.replace:[],F(i)&&o.push({from:i,to:n}),s=d(o,function(e){return e.from}),f(l,function(e){return-1===a(s,e.from)}).concat(o)}(i,h,g,b);j(this,{id:e,type:r,location:l,array:h,squash:b,replace:w,isOptional:g,value:function(e){return e=function(e){var t=d(f(p.replace,function(e){return function(t){return t.from===e}}(e)),function(e){return e.to});return t.length?t[0]:e}(e),N(e)?p.type.$normalize(e):u()},dynamic:n,config:i,toString:function(){return"{Param:"+e+" "+r+" squash: '"+b+"' optional: "+g+"}"}})},u.prototype={$$new:function(){return r(this,j(new u,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,r=o(u.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),L(t,function(t){L(o(t),function(t){-1===a(e,t)&&-1===a(r,t)&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return L(n.$$keys(),function(r){t[r]=n[r].value(e&&e[r])}),t},$$equals:function(e,t){var n=!0,r=this;return L(r.$$keys(),function(i){var o=e&&e[i],a=t&&t[i];r[i].type.equals(o,a)||(n=!1)}),n},$$validates:function(e){var r,i,o,a,s,l=this.$$keys();for(r=0;r<l.length&&(i=this[l[r]],(o=e[l[r]])!==n&&null!==o||!i.isOptional);r++){if(a=i.type.$normalize(o),!i.type.is(a))return!1;if(s=i.type.encode(a),t.isString(s)&&!i.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=u}),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),v.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",v),y.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").factory("$stateParams",function(){return{}}).constant("$state.runtime",{autoinject:!0}).provider("$state",y).run(["$injector",function(e){e.get("$state.runtime").autoinject&&e.get("$state")}]),b.$inject=[],t.module("ui.router.state").provider("$view",b),t.module("ui.router.state").provider("$uiViewScroll",function(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){return n(function(){e[0].scrollIntoView()},0,!1)}}]}),w.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"],$.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",w),t.module("ui.router.state").directive("uiView",$),k.$inject=["$state","$timeout"],_.$inject=["$state","$timeout"],A.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",k).directive("uiSrefActive",A).directive("uiSrefActiveEq",A).directive("uiState",_),O.$inject=["$state"],D.$inject=["$state"],t.module("ui.router.state").filter("isState",O).filter("includedByState",D)}(window,window.angular)},Zshi:function(e,t,n){var r=n("0/R4");n("Xtr8")("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},aCFj:function(e,t,n){var r=n("Ymqv"),i=n("vhPU");e.exports=function(e){return r(i(e))}},aWQN:function(e,t,n){},aagx:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},apmT:function(e,t,n){var r=n("0/R4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"aqI/":function(e,t,n){n("7DDg")("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},b0Xh:function(e,t,r){var i;(function(){var r=function(e){return e instanceof r?e:this instanceof r?void(this.EXIFwrapped=e):new r(e)};void 0!==e&&e.exports&&(t=e.exports=r),t.EXIF=r;var o=r.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},a=r.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=r.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=r.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},u=r.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function f(e,t){function n(n){var i=d(n);e.exifdata=i||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;var n=2,r=e.byteLength,i=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};for(;n<r;){if(i(t,n)){var o=t.getUint8(n+7);o%2!=0&&(o+=1),0===o&&(o=4);var a=n+8+o,s=t.getUint16(n+6+o);return h(e,a,s)}n++}}(n);if(e.iptcdata=o||{},r.isXmpEnabled){var a=function(e){if(!("DOMParser"in self))return;var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;var n=2,r=e.byteLength,i=new DOMParser;for(;n<r-4;){if("http"==v(t,n,4)){var o=n-1,a=t.getUint16(n-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,u=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;s=s.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(u);var c=i.parseFromString(s,"text/xml");return w(c)}n++}}(n);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a<r;a++)o[a]=n.charCodeAt(a);return i}(e.src));else if(/^blob\:/i.test(e.src)){(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||t(this.response)},n.send()}(e.src,function(e){o.readAsArrayBuffer(e)})}else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(i.response),i=null},i.open("GET",e.src,!0),i.responseType="arraybuffer",i.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,r=e.byteLength;n<r;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return y(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var p={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function h(e,t,n){for(var r,i,o,a,s=new DataView(e),l={},u=t;u<t+n;)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2))in p&&((o=s.getInt16(u+3))+5,i=p[a],r=v(s,u+5,o),l.hasOwnProperty(i)?l[i]instanceof Array?l[i].push(r):l[i]=[l[i],r]:l[i]=r),u++;return l}function g(e,t,n,r,i){var o,a,s=e.getUint16(n,!i),l={};for(a=0;a<s;a++)o=n+12*a+2,l[r[e.getUint16(o,!i)]]=m(e,o,t,n,i);return l}function m(e,t,n,r,i){var o,a,s,l,u,c,f=e.getUint16(t+2,!i),d=e.getUint32(t+4,!i),p=e.getUint32(t+8,!i)+n;switch(f){case 1:case 7:if(1==d)return e.getUint8(t+8,!i);for(o=d>4?p:t+8,a=[],l=0;l<d;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=d>4?p:t+8,d-1);case 3:if(1==d)return e.getUint16(t+8,!i);for(o=d>2?p:t+8,a=[],l=0;l<d;l++)a[l]=e.getUint16(o+2*l,!i);return a;case 4:if(1==d)return e.getUint32(t+8,!i);for(a=[],l=0;l<d;l++)a[l]=e.getUint32(p+4*l,!i);return a;case 5:if(1==d)return u=e.getUint32(p,!i),c=e.getUint32(p+4,!i),(s=new Number(u/c)).numerator=u,s.denominator=c,s;for(a=[],l=0;l<d;l++)u=e.getUint32(p+8*l,!i),c=e.getUint32(p+4+8*l,!i),a[l]=new Number(u/c),a[l].numerator=u,a[l].denominator=c;return a;case 9:if(1==d)return e.getInt32(t+8,!i);for(a=[],l=0;l<d;l++)a[l]=e.getInt32(p+4*l,!i);return a;case 10:if(1==d)return e.getInt32(p,!i)/e.getInt32(p+4,!i);for(a=[],l=0;l<d;l++)a[l]=e.getInt32(p+8*l,!i)/e.getInt32(p+4+8*l,!i);return a}}function v(e,t,r){var i="";for(n=t;n<t+r;n++)i+=String.fromCharCode(e.getUint8(n));return i}function y(e,t){if("Exif"!=v(e,t,4))return!1;var n,r,i,c,f,d=t+6;if(18761==e.getUint16(d))n=!1;else{if(19789!=e.getUint16(d))return!1;n=!0}if(42!=e.getUint16(d+2,!n))return!1;var p=e.getUint32(d+4,!n);if(p<8)return!1;if((r=g(e,d,d+p,a,n)).ExifIFDPointer)for(i in c=g(e,d,d+r.ExifIFDPointer,o,n)){switch(i){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":c[i]=u[i][c[i]];break;case"ExifVersion":case"FlashpixVersion":c[i]=String.fromCharCode(c[i][0],c[i][1],c[i][2],c[i][3]);break;case"ComponentsConfiguration":c[i]=u.Components[c[i][0]]+u.Components[c[i][1]]+u.Components[c[i][2]]+u.Components[c[i][3]]}r[i]=c[i]}if(r.GPSInfoIFDPointer)for(i in f=g(e,d,d+r.GPSInfoIFDPointer,s,n)){switch(i){case"GPSVersionID":f[i]=f[i][0]+"."+f[i][1]+"."+f[i][2]+"."+f[i][3]}r[i]=f[i]}return r.thumbnail=function(e,t,n,r){var i=function(e,t,n){var r=e.getUint16(t,!n);return e.getUint32(t+2+12*r,!n)}(e,t+n,r);if(!i)return{};if(i>e.byteLength)return{};var o=g(e,t,t+i,l,r);if(o.Compression)switch(o.Compression){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=t+o.JpegIFOffset,s=o.JpegIFByteCount;o.blob=new Blob([new Uint8Array(e.buffer,a,s)],{type:"image/jpeg"})}}else o.PhotometricInterpretation;return o}(e,d,p,n),r}function b(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);t["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes.item(i),a=o.nodeName;if(null==t[a])t[a]=b(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(b(o))}}return t}function w(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children.item(n),i=r.attributes;for(var o in i){var a=i[o],s=a.nodeName,l=a.nodeValue;void 0!==s&&(t[s]=l)}var u=r.nodeName;if(void 0===t[u])t[u]=b(r);else{if(void 0===t[u].push){var c=t[u];t[u]=[],t[u].push(c)}t[u].push(b(r))}}else t=e.textContent;return t}catch(e){}}r.enableXmp=function(){r.isXmpEnabled=!0},r.disableXmp=function(){r.isXmpEnabled=!1},r.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete)&&(c(e)?t&&t.call(e):f(e,t),!0)},r.getTag=function(e,t){if(c(e))return e.exifdata[t]},r.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},r.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r},r.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r},r.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,r="";for(t in n)n.hasOwnProperty(t)&&("object"==typeof n[t]?n[t]instanceof Number?r+=t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":r+=t+" : ["+n[t].length+" values]\r\n":r+=t+" : "+n[t]+"\r\n");return r},r.readFromBinaryFile=function(e){return d(e)},void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}).call(this)},b1Dy:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n("wd/R"))},bBoP:function(e,t,n){var r=n("XKFU"),i=n("LVwc"),o=Math.exp;r(r.S+r.F*n("eeVq")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},bHtr:function(e,t,n){var r=n("XKFU");r(r.P,"Array",{fill:n("Nr18")}),n("nGyu")("fill")},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("wd/R"))},chMm:function(e,t){!function(e,t){"use strict";function n(e,n,r){var i=r.baseHref(),o=e[0];return function(e,r,a){var s,l;l=(a=a||{}).expires,s=t.isDefined(a.path)?a.path:i,t.isUndefined(r)&&(l="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(l)&&(l=new Date(l)),r=(r=encodeURIComponent(e)+"="+encodeURIComponent(r))+(s?";path="+s:"")+(a.domain?";domain="+a.domain:""),r+=l?";expires="+l.toUTCString():"",4096<(a=(r+=a.secure?";secure":"").length+1)&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+a+" > 4096 bytes)!"),o.cookie=r}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){var e=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){return(e=this.get(e))?t.fromJson(e):e},getAll:function(){return n()},put:function(n,i,o){r(n,i,o?t.extend({},e,o):e)},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(n,i){r(n,void 0,i?t.extend({},e,i):e)}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular)},crwV:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof self&&self,factory=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){angular.module("imageCropper",[]);const r=n(1)();e.exports=r},function(module,exports,__webpack_require__){__webpack_require__(2);var Cropper=__webpack_require__(7);function imageCropperDirective(){angular.module("imageCropper").directive("imageCropper",function(){return{restrict:"E",scope:{centerOnInit:"@",checkCrossOrigin:"@",cropCallback:"&",api:"&",fitOnInit:"@",fitOnVertical:"=",height:"@",imageUrl:"@",showControls:"@",width:"@",zoomStep:"@",fitOnLongest:"=",actionLabels:"&"},bindToController:!0,controllerAs:"vm",controller:function(){var self=this;this.actionLabels=this.actionLabels(),this.apiCallback=this.api(),this.cropCallback=this.cropCallback(),this.fitOnInit=eval(this.fitOnInit),this.centerOnInit=eval(this.centerOnInit),this.checkCrossOrigin=eval(this.checkCrossOrigin),this.showControls=eval(this.showControls),this.init=function(){this.target=this.element,this.api=new Cropper(self)}},link:function(e,t,n,r){r.element=t[0],r.init()}}})}module.exports=imageCropperDirective},function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(5)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"body.imgCropper-dragging, body.imgCropper-dragging * {\n  cursor: move !important;\n  cursor: -webkit-grabbing !important;\n  cursor: -moz-grabbing !important;\n  cursor: grabbing !important;\n  cursor: grabbing, move;\n  /* IE hack */ }\n\n.imgCropper-wrapper {\n  display: block;\n  position: relative;\n  overflow: hidden;\n  cursor: move;\n  cursor: -webkit-grab;\n  cursor: -moz-grab;\n  cursor: grab;\n  cursor: grab, move;\n  /* IE hack */ }\n\n.imgCropper-container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  text-align: center;\n  margin: 0 !important;\n  padding: 0 !important;\n  border: none !important; }\n\n.imgCropper-container > * {\n  position: absolute;\n  top: 0;\n  left: 0;\n  max-width: none;\n  max-height: none;\n  width: 100%;\n  height: 100%;\n  margin: 0 !important;\n  padding: 0 !important;\n  border: none !important; }\n\n.imgCropper-sample {\n  position: absolute !important;\n  top: -100000px     !important;\n  left: -100000px    !important;\n  width: auto        !important;\n  height: auto       !important; }\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),l=null,u=0,c=[],f=n(6);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(y(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(y(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function h(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",v(t,e.attrs),h(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=l||(l=m(t)),r=$.bind(null,n,a,!1),i=$.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",v(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}e&&d(p(e,t),t);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function $(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t){function n(e){if(!e.imageUrl)throw new Error("Cropper: No image url given.");this.isReady=!1,this.originalUrl=e.imageUrl;var t={checkCrossOrigin:!1,apiCallback:void 0,cropCallback:void 0,width:400,height:300,imageUrl:void 0,target:void 0,showControls:!0,fitOnInit:!1,fitOnLongest:!1,centerOnInit:!1,zoomStep:.1,format:"image/jpeg",actionLabels:{rotateLeft:" < ",rotateRight:" > ",zoomIn:" + ",zoomOut:" - ",fit:"(fit)",crop:"[crop]"}};this.options=this.extend(t,e),this.gesture={},this.gesture.events={start:"touchstart mousedown",move:"touchmove mousemove",stop:"touchend mouseup"},this.pointerPosition=void 0,this.elements={target:e.target,body:document.getElementsByTagName("body")[0]},this.buildDOM(),this.useHardwareAccelerate(this.elements.image);var n={crop:this.cropImage.bind(this),fit:this.applyFit.bind(this),rotate:this.applyRotation.bind(this),zoomIn:this.applyZoomIn.bind(this),zoomOut:this.applyZoomOut.bind(this),remove:this.remove.bind(this),isMaxZoomedOut:this.isMaxZoomedOut.bind(this),refreshSize:this.refreshSize.bind(this)};this.events.on("ImageReady",this.initialize.bind(this)),this.options.cropCallback&&this.events.on("Cropped",function(e){this.options.cropCallback(e)}.bind(this)),this.options.apiCallback&&this.events.on("ImageReady",function(){this.options.apiCallback(n)}.bind(this))}e.exports=n,n.prototype.initialize=function(){this.setDimensions(),this.imageHasToFit()&&this.applyFit(),this.initializeGesture(),this.options.centerOnInit&&this.centerImage(),this.options.showControls&&this.bindControls()},n.prototype.refreshSize=function(e){this.options.height=e,this.imageRatio=this.options.height/this.options.width,this.angle%180==0?(this.width=this.elements.image.naturalWidth/this.options.width,this.height=this.elements.image.naturalHeight/this.options.height):(this.width=this.elements.image.naturalHeight/this.options.width,this.height=this.elements.image.naturalWidth/this.options.height),this.left=0,this.top=0;let t=this._getDefaultData();t.degrees=this.angle,this.data=t,this._initializeContainerStyle(),this._initializeWrapperStyle(),this.imageHasToFit()&&this.applyFit()},n.prototype.bindControls=function(){var e=this;this.elements.controls.rotateLeft.addEventListener("click",function(){e.applyRotation(-90)}),this.elements.controls.rotateRight.addEventListener("click",function(){e.applyRotation(90)}),this.elements.controls.zoomIn.addEventListener("click",function(){e.applyZoomIn(e.zoomInFactor)}),this.elements.controls.zoomOut.addEventListener("click",function(){e.applyZoomOut(e.zoomOutFactor)}),this.elements.controls.fit.addEventListener("click",this.applyFit.bind(this)),this.elements.controls.crop.addEventListener("click",this.cropImage.bind(this))},n.prototype.applyRotation=function(e){this.rotateImage(e)},n.prototype.applyZoomIn=function(e){this.zoomImage(1+parseFloat(e))},n.prototype.applyZoomOut=function(e){this.zoomImage(1/(1+parseFloat(e)))},n.prototype.applyFit=function(){this.fitImage(),this.centerImage()},n.prototype.imageHasToFit=function(){return this.elements.image.naturalWidth<this.options.width||this.elements.image.naturalHeight<this.options.height||this.width<1||this.height<1||this.options.fitOnInit},n.prototype.buildDOM=function(){var e;if((e=this.elements).wrapper=document.createElement("div"),e.wrapper.className="imgCropper-wrapper",e.container=document.createElement("div"),e.container.className="imgCropper-container",e.image=document.createElement("img"),e.image.className="imgCropper-image",e.container.appendChild(e.image),e.wrapper.appendChild(e.container),e.target.appendChild(e.wrapper),!this.options.showControls)return this.setImage();e.controls={},e.controls.wrapper=document.createElement("div"),e.controls.wrapper.className="imgCropper-controls",e.controls.rotateLeft=this._buildControl(this.options.actionLabels.rotateLeft),e.controls.rotateRight=this._buildControl(this.options.actionLabels.rotateRight),e.controls.zoomIn=this._buildControl(this.options.actionLabels.zoomIn),e.controls.zoomOut=this._buildControl(this.options.actionLabels.zoomOut),e.controls.fit=this._buildControl(this.options.actionLabels.fit),e.controls.crop=this._buildControl(this.options.actionLabels.crop),e.controls.wrapper.appendChild(e.controls.rotateLeft),e.controls.wrapper.appendChild(e.controls.zoomOut),e.controls.wrapper.appendChild(e.controls.fit),e.controls.wrapper.appendChild(e.controls.crop),e.controls.wrapper.appendChild(e.controls.zoomIn),e.controls.wrapper.appendChild(e.controls.rotateRight),e.target.appendChild(e.controls.wrapper),this.setImage()},n.prototype._buildControl=function(e){var t=document.createElement("button");return t.setAttribute("type","button"),t.innerHTML=e,t},n.prototype.remove=function(){var e=this.elements;e.target.removeChild(e.wrapper),this.options.showControls&&e.target.removeChild(e.controls.wrapper)},n.prototype.setImage=function(){this.options.format=-1!==this.originalUrl.indexOf("image/png")?"image/png":"image/jpeg",this.setupImageSRC()},n.prototype.recognizeImageFormat=function(){this.options.format=-1!==this.originalUrl.indexOf("image/png")?"image/png":"image/jpeg"},n.prototype.setupImageSRC=function(){var e=this.elements.image;this.options.checkCrossOrigin&&this.isCrossOrigin(this.originalUrl)&&(this.crossOrigin=e.crossOrigin,this.crossOrigin?this.crossOrigin=this.originalUrl:(this.crossOrigin="anonymous",this.crossOriginUrl=this.addTimestamp(this.originalUrl))),this.crossOrigin&&(this.elements.image.crossOrigin=this.crossOrigin),this.elements.image.src=this.crossOriginUrl||this.originalUrl,this.elements.image.onload=function(){this.events.triggerHandler("ImageReady")}.bind(this)},n.prototype.setDimensions=function(){this.zoomInFactor=1+parseFloat(this.options.zoomStep),this.zoomOutFactor=1/this.zoomInFactor,this.imageRatio=this.options.height/this.options.width,this.width=this.elements.image.naturalWidth/this.options.width,this.height=this.elements.image.naturalHeight/this.options.height,this.isVertical=this.height>this.width,this.left=0,this.top=0,this.angle=0,this.data={scale:1,degrees:0,x:0,y:0,w:this.options.width,h:this.options.height},this._initializeContainerStyle(),this._initializeWrapperStyle(),this.isReady=!0},n.prototype.initializeGesture=function(){var e=this;this.addEventListeners(this.elements.image,this.gesture.events.start,function(n){e.isReady&&e.isValidEvent(n)&&(n.preventDefault(),n.stopImmediatePropagation(),e.pointerPosition=e.getPointerPosition(n),t())});var t=function(){e.elements.body.classList.add("imgCropper-dragging"),e.addEventListeners(e.elements.body,e.gesture.events.move,r),e.addEventListeners(e.elements.body,e.gesture.events.stop,n)},n=function(){e.elements.body.classList.remove("imgCropper-dragging"),e.removeEventListeners(e.elements.body,e.gesture.events.move,r),e.removeEventListeners(e.elements.body,e.gesture.events.stop,n)},r=function(t){e.dragging.call(e,t)}},n.prototype.dragging=function(e){var t,n,r,i,o;if(e.preventDefault(),e.stopImmediatePropagation(),t=(i=this.getPointerPosition(e)).x-this.pointerPosition.x,n=i.y-this.pointerPosition.y,this.pointerPosition=i,r=0===t?null:this.left-t/this.elements.wrapper.clientWidth,o=0===n?null:this.top-n/this.elements.wrapper.clientHeight,this.options.fitOnLongest)if(this.isVertical){if(this.width-1>0&&r){var a=2*((this.width-1)/2);Math.abs(2*this.left)===a&&(r=Math.abs(r)),r<a&&r>0&&(this.elements.container.style.left=(100*-r).toFixed(2)+"%",this.left=r,this.data.x=Math.round(r*this.options.width))}this.setOffsetTop(o)}else{if(this.height-1>0&&o&&this.height-1>0&&o){var s=2*((this.height-1)/2);Math.abs(2*this.top)===s&&(o=Math.abs(o)),o<s&&o>0&&(this.elements.container.style.top=(100*-o).toFixed(2)+"%",this.top=o,this.data.y=Math.round(o*this.options.height))}this.setOffsetLeft(r)}else this.setOffset(r,o)},n.prototype.setOffsetTop=function(e){(e||0===e)&&(e<0&&(e=0),e>this.height-1&&(e=this.height-1),this.elements.container.style.top=(100*-e).toFixed(2)+"%",this.top=e,this.data.y=Math.round(e*this.options.height))},n.prototype.setOffsetLeft=function(e){(e||0===e)&&(e<0&&(e=0),e>this.width-1&&(e=this.width-1),this.elements.container.style.left=(100*-e).toFixed(2)+"%",this.left=e,this.data.x=Math.round(e*this.options.width))},n.prototype.setOffset=function(e,t){if(this.options.fitOnLongest){if(this.isVertical){if(e||0===e){var n=2*(i=(this.width-1)/2),r=Math.abs(2*this.left)===n;e<0&&(e=0),this.width-1<0&&(e=(this.width-1)/2,this.options.format="image/png"),this.width-1>0&&(i===e&&(e=(this.width-1)/2),e>this.width-1&&(e=this.width-1),this.recognizeImageFormat()),this.elements.container.style.left=(100*-e).toFixed(2)+"%",this.left=e,this.data.x=r?0:Math.round(e*this.options.width)}(t||0===t)&&(this.isVertical?(t<0&&(t=0),t>this.height-1&&(t=this.height-1)):t<0&&(t=(this.height-1)/2),this.elements.container.style.top=(100*-t).toFixed(2)+"%",this.top=t,this.data.y=Math.round(t*this.options.height))}else if((e||0===e)&&(e<0&&(e=0),e>this.width-1&&(e=this.width-1),this.elements.container.style.left=(100*-e).toFixed(2)+"%",this.left=e,this.data.x=Math.round(e*this.options.width)),t||0===t){var i,o=2*(i=(this.height-1)/2);r=Math.abs(2*this.top)===o;t<0&&(t=0),this.height-1<0&&(t=(this.height-1)/2,this.options.format="image/png"),this.height-1>0&&(i===t&&(t=(this.height-1)/2),t>this.height-1&&(t=this.height-1),this.recognizeImageFormat()),this.elements.container.style.top=(100*-t).toFixed(2)+"%",this.top=t,this.data.y=r?0:Math.round(t*this.options.height)}}else(e||0===e)&&(e<0&&(e=0),e>this.width-1&&(e=this.width-1),this.elements.container.style.left=(100*-e).toFixed(2)+"%",this.left=e,this.data.x=Math.round(e*this.options.width)),(t||0===t)&&(t<0&&(t=0),t>this.height-1&&(t=this.height-1),this.elements.container.style.top=(100*-t).toFixed(2)+"%",this.top=t,this.data.y=Math.round(t*this.options.height))},n.prototype.isMaxZoomedOut=function(){return this.options.fitOnLongest?this.isVertical?1===this.height:1===this.width:90===this.data.degrees||270===this.data.degrees?this.isVertical?1===this.width:this.initScaleRate===this.data.scale:this.isVertical?1===this.width:1===this.height},n.prototype.fitImage=function(){var e,t;e=this.width,t=this.height/this.width,this.options.fitOnLongest?this.isVertical?(this.width=1/t,this.height=1):(this.width=1,this.height=t):t>1?(this.width=1,this.height=t):(this.width=1/t,this.height=1),this.elements.container.style.width=(100*this.width).toFixed(2)+"%",this.elements.container.style.height=(100*this.height).toFixed(2)+"%",this.data.scale*=this.width/e,this.initScaleRate=this.data.scale},n.prototype.centerImage=function(){this.setOffset((this.width-1)/2,(this.height-1)/2)},n.prototype.rotateImage=function(e){if(0===e||e%90!=0)throw new Error("Cropper: Support only multiple of 90° for rotation.");if(this.angle=(this.angle+e)%360,this.angle<0&&(this.angle+=360),e%180!=0){var t=this.height*this.imageRatio,n=this.width/this.imageRatio;this.width=t,this.height=n,this.width>=1&&this.height>=1?(this.elements.container.style.width=100*this.width+"%",this.elements.container.style.height=100*this.height+"%"):this.fitImage()}var r=1,i=1;if(this.angle%180!=0){var o=this.height/this.width*this.imageRatio;r=o,i=1/o}this.elements.image.style.width=100*r+"%",this.elements.image.style.height=100*i+"%",this.elements.image.style.left=(1-r)/2*100+"%",this.elements.image.style.top=(1-i)/2*100+"%",this.elements.image.style.transform="rotate("+this.angle+"deg)",this.elements.image.style.webkitTransform="rotate("+this.angle+"deg)",this.elements.image.style.mozTransform="rotate("+this.angle+"deg)",this.elements.image.style.msTransform="rotate("+this.angle+"deg)",this.elements.image.style.oTransform="rotate("+this.angle+"deg)",this.centerImage(),this.data.degrees=this.angle},n.prototype.zoomImage=function(e){if(this.options.fitOnLongest&&this.isVertical||!this.options.fitOnLongest&&!this.isVertical){var t=this.height;this.height*e>1?(this.height*=e,this.width*=e,this.elements.container.style.height=(100*this.height).toFixed(2)+"%",this.elements.container.style.width=(100*this.width).toFixed(2)+"%",this.data.scale*=e):(this.fitImage(),e=this.height/t)}else{if(e<=0||1==e)return;var n=this.width;this.width*e>1?(this.height*=e,this.width*=e,this.elements.container.style.height=(100*this.height).toFixed(2)+"%",this.elements.container.style.width=(100*this.width).toFixed(2)+"%",this.data.scale*=e):(this.fitImage(),e=this.width/n)}var r=(this.left+.5)*e-.5,i=(this.top+.5)*e-.5;this.setOffset(r,i)},n.prototype.cropImage=function(){return this.cropHandler()},n.prototype.advancedCrop=function(e,t,n,r,i,o,a){for(var s,l,u=t,c=n,f=r,d=i,p=o,h=0;e.naturalWidth>2*d;)h++,d*=2,p*=2,u*=2,c*=2,f*=2;var g=-d/2,m=-p/2;0==a?(s=c/u,l=(m-f)/u):90==a?(s=(m-f)/u,l=-1*e.naturalHeight+-c/u):180==a?(s=-1*e.naturalWidth+-c/u,l=-1*e.naturalHeight+(-m+f)/u):270==a&&(s=-1*this.elements.image.naturalWidth+(-m+f)/u,l=c/u);let v=document.createElement("canvas");v.height=p,v.width=d;let y=v.getContext("2d");if(y.translate(-g,-m),y.rotate(a*Math.PI/180),y.scale(u,u),y.drawImage(e,s,l),0===h)return v;for(var b=[v],w=0;w<h;w++){var $=document.createElement("canvas");$.height=b[b.length-1].height/2,$.width=b[b.length-1].width/2,$.getContext("2d").drawImage(b[b.length-1],0,0,b[b.length-1].width/2,b[b.length-1].height/2),b.push($)}return b[b.length-1]},n.prototype.cropHandler=function(){var e,t=this.options.height,n=this.options.width,r=-this.options.width/2;this.options.fitOnLongest?this.isVertical&&this.width-1<0||!this.isVertical&&this.height-1<0?(this.data.x=this.isVertical?Math.abs(this.data.x):this.data.x,e=this.isVertical?this.data.x+r:r-Math.abs(this.data.x),this.options.format="image/png"):(e=r-Math.abs(this.data.x),this.recognizeImageFormat()):e=r-this.data.x;var i=this.advancedCrop(this.elements.image,this.data.scale,e,this.data.y,n,t,this.data.degrees).toDataURL(this.options.format);return this.events.triggerHandler("Cropped",i),i},n.prototype.useHardwareAccelerate=function(e){e.style.perspective="1000px",e.style.backfaceVisibility="hidden"},n.prototype.extend=function(e,t){var n=e;return Object.keys(e).forEach(function(e,r,i){void 0!==t[e]&&(n[e]=t[e])}),n},n.prototype.addEventListeners=function(e,t,n,r){t.split(" ").forEach(function(t){r?e.addEventListener(t,n.bind(r),!1):e.addEventListener(t,n,!1)})},n.prototype.removeEventListeners=function(e,t,n,r){t.split(" ").forEach(function(t){r?e.removeEventListener(t,n.bind(r),!1):e.removeEventListener(t,n,!1)})},n.prototype.getPointerPosition=function(e){return this.isTouchEvent(e)&&(e=e.touches[0]),{x:e.pageX,y:e.pageY}},n.prototype.isValidEvent=function(e){return this.isTouchEvent(e)?1===e.changedTouches.length:1===e.which},n.prototype.isTouchEvent=function(e){return/touch/i.test(e.type)},n.prototype.addTimestamp=function(e){var t="timestamp="+(new Date).getTime(),n="?";return-1!==e.indexOf("?")&&(n="&"),e.concat(n,t)},n.prototype.isCrossOrigin=function(e){var t=e.match();return Boolean(t&&(t[1]!==location.protocol||t[2]!==location.hostname||t[3]!==location.port))},n.prototype.base64ArrayBuffer=function(e){for(var t,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(e),o=i.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=r[(16515072&(t=i[l]<<16|i[l+1]<<8|i[l+2]))>>18]+r[(258048&t)>>12]+r[(4032&t)>>6]+r[63&t];return 1==a?n+=r[(252&(t=i[s]))>>2]+r[(3&t)<<4]+"==":2==a&&(n+=r[(64512&(t=i[s]<<8|i[s+1]))>>10]+r[(1008&t)>>4]+r[(15&t)<<2]+"="),n},n.prototype.events=new function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t].push(n)},this.off=function(t){e[t]=[]},this.triggerHandler=function(t,n){if(e[t])for(var r in e[t])e[t][r](n)}},n.prototype._initializeContainerStyle=function(){this.elements.container.style.width=100*this.width+"%",this.elements.container.style.height=100*this.height+"%",this.elements.container.style.top=0,this.elements.container.style.left=0},n.prototype._initializeWrapperStyle=function(){this.elements.wrapper.style.height="auto",this.elements.wrapper.style.width="100%",this.elements.wrapper.style.paddingTop=100*this.imageRatio+"%"},n.prototype._getDefaultData=function(){return{scale:1,degrees:0,x:0,y:0,w:this.options.width,h:this.options.height}}}])},module.exports=factory()},czMo:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n("wd/R"))},czNK:function(e,t,n){"use strict";var r=n("nh4g"),i=n("DVgA"),o=n("JiEa"),a=n("UqcF"),s=n("S/j/"),l=n("Ymqv"),u=Object.assign;e.exports=!u||n("eeVq")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;u>c;)for(var p,h=l(arguments[c++]),g=f?i(h).concat(f(h)):i(h),m=g.length,v=0;m>v;)p=g[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},"d/Gc":function(e,t,n){var r=n("RYi7"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},"dE+T":function(e,t,n){var r=n("XKFU");r(r.P,"Array",{copyWithin:n("upKx")}),n("nGyu")("copyWithin")},dRSK:function(e,t,n){"use strict";var r=n("XKFU"),i=n("CkkT")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")("find")},dTaA:function(e,t,n){},dyZX:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e7yV:function(e,t,n){var r=n("aCFj"),i=n("kJMx").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},eHKK:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},eI33:function(e,t,n){var r=n("XKFU"),i=n("aCFj"),o=n("ne8i");r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},ebRw:function(e,t,n){var r,i,o;i=[n("KHwQ")],void 0===(o="function"==typeof(r=function(e){return e.module("angular-clipboard",[]).factory("clipboard",["$document","$window",function(e,t){return{copyText:function(n,r){var i=t.pageXOffset||e[0].documentElement.scrollLeft,o=t.pageYOffset||e[0].documentElement.scrollTop,a=function(n,r){var i=e[0].createElement("textarea");return i.style.position="absolute",i.style.fontSize="12pt",i.style.border="0",i.style.padding="0",i.style.margin="0",i.style.left="-10000px",i.style.top=(t.pageYOffset||e[0].documentElement.scrollTop)+"px",i.textContent=n,i}(n);e[0].body.appendChild(a),function(t){try{e[0].body.style.webkitUserSelect="initial";var n=e[0].getSelection();n.removeAllRanges();var r=document.createRange();r.selectNodeContents(t),n.addRange(r),t.select(),t.setSelectionRange(0,999999);try{if(!e[0].execCommand("copy"))throw"failure copy"}finally{n.removeAllRanges()}}finally{e[0].body.style.webkitUserSelect=""}}(a),t.scrollTo(i,o),e[0].body.removeChild(a)},supported:"queryCommandSupported"in e[0]&&e[0].queryCommandSupported("copy")}}]).directive("clipboard",["clipboard",function(t){return{restrict:"A",scope:{onCopied:"&",onError:"&",text:"=",supported:"=?"},link:function(n,r){n.supported=t.supported,r.on("click",function(i){try{t.copyText(n.text,r[0]),e.isFunction(n.onCopied)&&n.$evalAsync(n.onCopied())}catch(t){e.isFunction(n.onError)&&n.$evalAsync(n.onError({err:t}))}})}}}])})?r.apply(t,i):r)||(e.exports=o)},eeVq:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},eehm:function(e,t,n){(function(e){(function(t){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function o(e){return"function"==typeof e}var a=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e)new Error;a=e},get useDeprecatedSynchronousErrorHandling(){return a}};function l(e){setTimeout(function(){throw e})}var u={closed:!0,next:function(e){},error:function(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;l(e)},complete:function(){}},c=Array.isArray||function(e){return e&&"number"==typeof e.length};function f(e){return null!=e&&"object"==typeof e}var d,p={e:{}};function h(){try{return d.apply(this,arguments)}catch(e){return p.e=e,p}}function g(e){return d=e,h}var m=function(e){function t(n){var r=e.call(this,n?n.length+" errors occurred during unsubscription:\n  "+n.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,t.prototype),r}return r(t,e),t}(Error),v=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,a=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,l=r?r.length:0;n;)n.remove(this),n=++s<l&&r[s]||null;if(o(i))g(i).call(this)===p&&(t=!0,e=e||(p.e instanceof m?y(p.e.errors):[p.e]));if(c(a))for(s=-1,l=a.length;++s<l;){var u=a[s];if(f(u))if(g(u.unsubscribe).call(u)===p){t=!0,e=e||[];var d=p.e;d instanceof m?e=e.concat(y(d.errors)):e.push(d)}}if(t)throw new m(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function y(e){return e.reduce(function(e,t){return e.concat(t instanceof m?t.errors:t)},[])}var b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",w=function(e){function t(t,n,r){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=u;break;case 1:if(!t){i.destination=u;break}if("object"==typeof t){if(E(t)){var o=t[b]();i.syncErrorThrowable=o.syncErrorThrowable,i.destination=o,o.add(i)}else i.syncErrorThrowable=!0,i.destination=new $(i,t);break}default:i.syncErrorThrowable=!0,i.destination=new $(i,t,n,r)}return i}return r(t,e),t.prototype[b]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(v),$=function(e){function t(t,n,r,i){var a,s=e.call(this)||this;s._parentSubscriber=t;var l=s;return o(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==u&&(o((l=Object.create(n)).unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(s))),s._context=l,s._next=a,s._error=r,s._complete=i,s}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):l(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;l(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw e;l(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(l(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(w);function E(e){return e instanceof w||"syncErrorThrowable"in e&&e[b]}var S="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(){}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return T(e)}function T(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:x}var k=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof w)return e;if(e[b])return e[b]()}return e||t||n?new w(e,t,n):new w(u)}(e,t,n);if(r?r.call(i,this.source):i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=_(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[S]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:T(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=_(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function _(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var A=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(Error),O=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(v),D=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r(t,e),t}(w),M=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r(t,e),t.prototype[b]=function(){return new D(this)},t.prototype.lift=function(e){var t=new N(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new A;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new A;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new A;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new A;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new A;return this.hasError?(e.error(this.thrownError),v.EMPTY):this.isStopped?(e.complete(),v.EMPTY):(this.observers.push(e),new O(this,e))},t.prototype.asObservable=function(){var e=new k;return e.source=this,e},t.create=function(e,t){return new N(e,t)},t}(k),N=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):v.EMPTY},t}(M);function I(){return function(e){return e.lift(new F(e))}}var F=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new R(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),R=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(w),P=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new v).add(this.source.subscribe(new U(this.getSubject(),this))),e.closed?(this._connection=null,e=v.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return I()(this)},t}(k),L=P.prototype,j={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:L._subscribe},_isComplete:{value:L._isComplete,writable:!0},getSubject:{value:L.getSubject},connect:{value:L.connect},refCount:{value:L.refCount}},U=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(D);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}r(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}(w);var B=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new H(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),H=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new M,n.set(t,i);var o=new V(t,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new V(t,i))}catch(e){return void this.error(e)}this.add(a.subscribe(new z(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(w),z=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(w),V=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r(t,e),t.prototype._subscribe=function(e){var t=new v,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new Y(n)),t.add(r.subscribe(e)),t},t}(k),Y=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(v),W=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new A;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(M),q=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(v)),K=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(q),G=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),X=function(e){function t(n,r){void 0===r&&(r=G.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(G),Z=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(X))(K),J=new k(function(e){return e.complete()});function Q(e){return e?function(e){return new k(function(t){return e.schedule(function(){return t.complete()})})}(e):J}function ee(e){return e&&"function"==typeof e.schedule}var te=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}};function ne(e,t){return new k(t?function(n){var r=new v,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:te(e))}function re(e){var t=new k(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(ee(n)?e.pop():n=void 0,e.length){case 0:return Q(n);case 1:return n?ne(e,n):re(e[0]);default:return ne(e,n)}}function oe(e,t){return new k(t?function(n){return t.schedule(ae,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function ae(e){var t=e.error;e.subscriber.error(t)}var se=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return ie(this.value);case"E":return oe(this.error);case"C":return Q()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();var le=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.scheduler,this.delay))},e}(),ue=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new ce(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(se.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(se.createError(e))},t.prototype._complete=function(){this.scheduleMessage(se.createComplete())},t}(w),ce=function(){return function(e,t){this.notification=e,this.destination=t}}(),fe=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new de(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new A;if(this.isStopped||this.hasError?t=v.EMPTY:(this.observers.push(e),t=new O(this,e)),i&&e.add(e=new ue(e,i)),n)for(var a=0;a<o&&!e.closed;a++)e.next(r[a]);else for(a=0;a<o&&!e.closed;a++)e.next(r[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||Z).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(M),de=function(){return function(e,t){this.time=e,this.value=t}}(),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),v.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),v.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(M),he=1,ge={};var me=function(e){var t=he++;return ge[t]=e,Promise.resolve().then(function(){return function(e){var t=ge[e];t&&t()}(t)}),t},ve=function(e){delete ge[e]},ye=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=me(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(ve(n),t.scheduled=void 0)},t}(q),be=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(X))(ye),we=new X(q),$e=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(q),Ee=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(X))($e),Se=function(e){function t(t,n){void 0===t&&(t=xe),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return r(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n.shift())&&(this.frame=t.delay)<=r&&!(e=t.execute(t.state,t.delay)););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(X),xe=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return r(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(q);function Ce(e){return e}var Te=function(e){function t(){var n=e.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(Error),ke=function(e){function t(){var n=e.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(Error),_e=function(e){function t(){var n=e.call(this,"Timeout has occurred")||this;return n.name="TimeoutError",Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(Error);function Ae(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Oe(e,t))}}var Oe=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new De(e,this.project,this.thisArg))},e}(),De=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(w);function Me(e){var t=this,n=e.args,r=e.subscriber,i=e.params,o=i.callbackFunc,a=i.context,s=i.scheduler,l=i.subject;if(!l){l=i.subject=new pe;try{o.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length<=1?e[0]:e;t.add(s.schedule(Ne,0,{value:r,subject:l}))}]))}catch(e){l.error(e)}}this.add(l.subscribe(r))}function Ne(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function Ie(e){var t=this,n=e.params,r=e.subscriber,i=e.context,o=n.callbackFunc,a=n.args,s=n.scheduler,l=n.subject;if(!l){l=n.subject=new pe;try{o.apply(i,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.shift();if(r)t.add(s.schedule(Re,0,{err:r,subject:l}));else{var i=e.length<=1?e[0]:e;t.add(s.schedule(Fe,0,{value:i,subject:l}))}}]))}catch(e){this.add(s.schedule(Re,0,{err:e,subject:l}))}}this.add(l.subscribe(r))}function Fe(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function Re(e){var t=e.err;e.subject.error(t)}var Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(w),Le=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(w),je=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,l),t}};var Ue="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Be=function(e){return function(t){for(var n=e[Ue]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},He=function(e){return function(t){var n=e[S]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},ze=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ve(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ye=function(e){if(e instanceof k)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[S])return He(e);if(ze(e))return te(e);if(Ve(e))return je(e);if(e&&"function"==typeof e[Ue])return Be(e);var t=f(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function We(e,t,n,r){var i=new Le(e,n,r);return Ye(t)(i)}var qe={};var Ke=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ge(e,this.resultSelector))},e}(),Ge=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r(t,e),t.prototype._next=function(e){this.values.push(qe),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(We(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===qe?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Pe);function Xe(e,t){if(!t)return e instanceof k?e:new k(Ye(e));if(null!=e){if(function(e){return e&&"function"==typeof e[S]}(e))return function(e,t){return new k(t?function(n){var r=new v;return r.add(t.schedule(function(){var i=e[S]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}:He(e))}(e,t);if(Ve(e))return function(e,t){return new k(t?function(n){var r=new v;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}:je(e))}(e,t);if(ze(e))return ne(e,t);if(function(e){return e&&"function"==typeof e[Ue]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new k(t?function(n){var r,i=new v;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[Ue](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}}))})),i}:Be(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Ze(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(Ze(function(n,r){return Xe(e(n,r)).pipe(Ae(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Je(e,n))})}var Je=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.project,this.concurrent))},e}(),Qe=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(We(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(Pe);function et(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Ze(Ce,e)}function tt(){return et(1)}function nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length||2===e.length&&ee(e[1])?Xe(e[0]):tt()(ie.apply(void 0,e))}function rt(e){return new k(function(t){var n;try{n=e()}catch(e){return void t.error(e)}return(n?Xe(n):Q()).subscribe(t)})}var it=function(e){function t(t,n){var r=e.call(this,t)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var a=We(r,n[o],null,o);a&&r.add(a)}return r}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.values,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()},t}(Pe);function ot(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(n){var r=void 0;try{r=n(e.state)}catch(e){return void t.error(e)}if(!r)return void t.complete();if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}function at(e){return!c(e)&&e-parseFloat(e)+1>=0}function st(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function lt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return ee(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof k?e[0]:et(n)(ne(e,r))}var ut=new k(x);function ct(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,o=e.obj;if(!r.closed)if(n<t.length){var a=t[n];r.next([a,o[a]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return ne(e,void 0).lift(new dt)}var dt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new pt(e))},e}(),pt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=e[n],i=We(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var a=this.subscriptions[o];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(Pe);function ht(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}function gt(e,t,n){void 0===e&&(e=0);var r=-1;return at(t)?r=Number(t)<1?1:Number(t):ee(t)&&(n=t),ee(n)||(n=we),new k(function(t){var i=at(e)?e:+e-n.now();return n.schedule(mt,i,{index:0,period:r,subscriber:t})})}function mt(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function vt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ne(e,void 0).lift(new yt(n))}var yt=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new bt(e,this.resultSelector))},e}(),bt=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null));var i=e.call(this,t)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return r(t,e),t.prototype._next=function(e){var t=this.iterators;c(e)?t.push(new $t(e)):"function"==typeof e[Ue]?t.push(new wt(e[Ue]())):t.push(new Et(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(0!==t){this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){if("function"==typeof(a=e[r]).hasValue&&!a.hasValue())return}var i=!1,o=[];for(r=0;r<t;r++){var a,s=(a=e[r]).next();if(a.hasCompleted()&&(i=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(w),wt=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),$t=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[Ue]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Et=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r(t,e),t.prototype[Ue]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return We(this,this.observable,this,t)},t}(Pe);function St(e){return function(t){return t.lift(new xt(e))}}var xt=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.durationSelector))},e}(),Ct=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=g(this.durationSelector)(e);if(t===p)this.destination.error(p.e);else{var n=We(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(Pe);var Tt=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new kt(e,this.closingNotifier))},e}(),kt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(We(r,n)),r}return r(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(Pe);var _t=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?Ot:At}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),At=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(w),Ot=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(w);var Dt=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new Nt(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),Mt=function(){return function(){this.buffer=[]}}(),Nt=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var l={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(It,n,l))}else{var u={subscriber:a,context:s},c={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(Rt,n,u)),a.add(o.schedule(Ft,r,c))}return a}return r(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(It,n,r))}},t.prototype.openContext=function(){var e=new Mt;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(w);function It(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function Ft(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(Rt,n,{subscriber:r,context:o})),this.schedule(e,t))}function Rt(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var Pt=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Lt(e,this.openings,this.closingSelector))},e}(),Lt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(We(i,n)),i}return r(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new v,r={buffer:[],subscription:n};t.push(r);var i=We(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(Pe);var jt=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ut(e,this.closingSelector))},e}(),Ut=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,r,i){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t=this.buffer;this.buffer&&this.destination.next(t),this.buffer=[];var n=g(this.closingSelector)();n===p?this.error(p.e):(e=new v,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(We(this,n)),this.subscribing=!1)},t}(Pe);var Bt=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ht(e,this.selector,this.caught))},e}(),Ht=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(We(this,n))}},t}(Pe);function zt(e,t){return Ze(e,t,1)}var Vt=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Yt(e,this.predicate,this.source))},e}(),Yt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(w);var Wt=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new qt(e,this.durationSelector))},e}(),qt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=We(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(Pe);var Kt=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Gt(e,this.dueTime,this.scheduler))},e}(),Gt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Xt,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(w);function Xt(e){e.debouncedNext()}function Zt(e){return void 0===e&&(e=null),function(t){return t.lift(new Jt(e))}}var Jt=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Qt(e,this.defaultValue))},e}(),Qt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(w);function en(e){return e instanceof Date&&!isNaN(+e)}var tn=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new nn(e,this.delay,this.scheduler))},e}(),nn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new rn(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(se.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(se.createComplete())},t}(w),rn=function(){return function(e,t){this.time=e,this.notification=t}}();var on=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new an(e,this.delayDurationSelector))},e}(),an=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){try{var t=this.delayDurationSelector(e);t&&this.tryDelay(t,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=We(this,e,t);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(Pe),sn=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new ln(e,this.source))},t}(k),ln=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(w);var un=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new cn(e))},e}(),cn=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(w);var fn=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new dn(e,this.keySelector,this.flushes))},e}(),dn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=n,i.values=new Set,r&&i.add(We(i,r)),i}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(Pe);function pn(e,t){return function(n){return n.lift(new hn(e,t))}}var hn=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new gn(e,this.compare,this.keySelector))},e}(),gn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=g(this.keySelector)(e))===p)return this.destination.error(p.e);var n=!1;if(this.hasKey){if((n=g(this.compare)(this.key,t))===p)return this.destination.error(p.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(w);function mn(e,t){return function(n){return n.lift(new vn(e,t))}}var vn=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new yn(e,this.predicate,this.thisArg))},e}(),yn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(w);function bn(e,t,n){return function(r){return r.lift(new wn(e,t,n))}}var wn=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new $n(e,this.nextOrObserver,this.error,this.complete))},e}(),$n=function(e){function t(t,n,r,i){var a=e.call(this,t)||this;return a._tapNext=x,a._tapError=x,a._tapComplete=x,a._tapError=r||x,a._tapComplete=i||x,o(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||x,a._tapError=n.error||x,a._tapComplete=n.complete||x),a}return r(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(w),En=function(e){return void 0===e&&(e=Sn),bn({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Sn(){return new ke}function xn(e){return function(t){return 0===e?Q():t.lift(new Cn(e))}}var Cn=function(){function e(e){if(this.total=e,this.total<0)throw new Te}return e.prototype.call=function(e,t){return t.subscribe(new Tn(e,this.total))},e}(),Tn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(w);var kn=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new _n(e,this.predicate,this.thisArg,this.source))},e}(),_n=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(w);var An=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new On(e))},e}(),On=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(We(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(Pe);var Dn=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Mn(e,this.project))},e}(),Mn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t=this.index++,n=this.destination;try{var r=this.project(e,t);this.hasSubscription=!0,this.add(We(this,r,e,t))}catch(e){n.error(e)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(Pe);var Nn=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new In(e,this.project,this.concurrent,this.scheduler))},e}(),In=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(e);var i=g(this.project)(e,r);if(i===p)n.error(p.e);else if(this.scheduler){var o={subscriber:this,result:i,value:e,index:r};this.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(i,e,r)}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.add(We(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(Pe);var Fn=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Rn(e,this.callback))},e}(),Rn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new v(n)),r}return r(t,e),t}(w);var Pn=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new Ln(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Ln=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(w);var jn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Un(e))},e}(),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._next=function(e){},t}(w);var Bn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Hn(e))},e}(),Hn=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(w);function zn(e){return function(t){return 0===e?Q():t.lift(new Vn(e))}}var Vn=function(){function e(e){if(this.total=e,this.total<0)throw new Te}return e.prototype.call=function(e,t){return t.subscribe(new Yn(e,this.total))},e}(),Yn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(w);var Wn=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new qn(e,this.value))},e}(),qn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(w);var Kn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Gn(e))},e}(),Gn=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype._next=function(e){this.destination.next(se.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(se.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(se.createComplete()),e.complete()},t}(w);function Xn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Zn(e,t,n))}}var Zn=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Jn(e,this.accumulator,this.seed,this.hasSeed))},e}(),Jn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(w);function Qn(e,t){return arguments.length>=2?function(n){return C(Xn(e,t),zn(1),Zt(t))(n)}:function(t){return C(Xn(function(t,n,r){return e(t,n,r+1)}),zn(1))(t)}}var er=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new tr(e,this.accumulator,this.seed,this.concurrent))},e}(),tr=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=g(this.accumulator)(this.acc,e),r=this.destination;n===p?r.error(p.e):(this.active++,this._innerSub(n,e,t))}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){this.add(We(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(Pe);function nr(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new rr(r,t));var i=Object.create(n,j);return i.source=n,i.subjectFactory=r,i}}var rr=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();var ir=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new or(e,this.nextSources))},e}(),or=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.nextSources=n,r}return r(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource()},t.prototype._complete=function(){this.subscribeToNextSource()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();e?this.add(We(this,e)):this.destination.complete()},t}(Pe);var ar=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new sr(e))},e}(),sr=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return r(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(w);var lr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ur(e,this.count,this.source))},e}(),ur=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(w);var cr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new fr(e,this.notifier,t))},e}(),fr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){this.notifications=new M;var t=g(this.notifier)(this.notifications);if(t===p)return e.prototype.complete.call(this);this.retries=t,this.retriesSubscription=We(this,t)},t}(Pe);var dr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new pr(e,this.count,this.source))},e}(),pr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(w);var hr=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new gr(e,this.notifier,this.source))},e}(),gr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new M,(r=g(this.notifier)(n))===p)return e.prototype.error.call(this,p.e);i=We(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(Pe);var mr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new vr(e),r=t.subscribe(n);return r.add(We(n,this.notifier)),r},e}(),vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(Pe);var yr=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new br(e,this.period,this.scheduler))},e}(),br=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(wr,n,{subscriber:i,period:n})),i}return r(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(w);function wr(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}var $r=function(){function e(e,t){this.compareTo=e,this.comparor=t}return e.prototype.call=function(e,t){return t.subscribe(new Er(e,this.compareTo,this.comparor))},e}(),Er=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.add(n.subscribe(new Sr(t,i))),i}return r(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparor;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;n?(o=g(n)(r,i))===p&&this.destination.error(p.e):o=r===i,o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t}(w),Sr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e)},t.prototype._complete=function(){this.parent._complete()},t}(w);function xr(){return new M}var Cr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Tr(e,this.predicate,this.source))},e}(),Tr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new ke)},t}(w);var kr=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new _r(e,this.total))},e}(),_r=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(w);var Ar=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Te}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new w(e)):t.subscribe(new Or(e,this._skipCount))},e}(),Or=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var r=n%t,i=this._ring,o=i[r];i[r]=e,this.destination.next(o)}},t}(w);var Dr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Mr(e,this.notifier))},e}(),Mr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.hasValue=!1,r.add(r.innerSubscription=We(r,n)),r}return r(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(Pe);var Nr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new Ir(e,this.predicate))},e}(),Ir=function(e){function t(t,n){var r=e.call(this,t)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(w);var Fr=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=be);var i=e.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=r,(!at(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=be),i}return r(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=be),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(k);var Rr=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new Fr(t,this.delay,this.scheduler).subscribe(e)},e}();function Pr(e,t){return"function"==typeof t?function(n){return n.pipe(Pr(function(n,r){return Xe(e(n,r)).pipe(Ae(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new Lr(e))}}var Lr=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new jr(e,this.project))},e}(),jr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=We(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(Pe);var Ur=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Br(e),r=We(n,this.notifier);return r&&!r.closed?(n.add(r),t.subscribe(n)):n},e}(),Br=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.complete()},t.prototype.notifyComplete=function(){},t}(Pe);var Hr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new zr(e,this.predicate))},e}(),zr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.predicate=n,r.index=0,r}return r(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(w),Vr={leading:!0,trailing:!1};var Yr=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Wr(e,this.durationSelector,this.leading,this.trailing))},e}(),Wr=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=We(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,i){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(Pe);var qr=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new Kr(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Kr=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=r,a.leading=i,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return r(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Gr,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(w);function Gr(e){e.subscriber.clearThrottle()}var Xr=function(){return function(e,t){this.value=e,this.interval=t}}();function Zr(e,t,n){return void 0===n&&(n=we),function(r){var i=en(e),o=i?+e-n.now():Math.abs(e);return r.lift(new Jr(o,i,t,n))}}var Jr=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new Qr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Qr=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=r,a.withObservable=i,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return r(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(We(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(Pe);var ei=function(){return function(e,t){this.value=e,this.timestamp=t}}();function ti(e,t,n){return 0===n?[t]:(e.push(t),e)}var ni=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new ri(e),r=t.subscribe(n);return r.closed||n.add(We(n,this.windowBoundaries)),r},e}(),ri=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new M,t.next(n.window),n}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new M;t.next(n)},t}(Pe);var ii=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new oi(e,this.windowSize,this.startWindowEvery))},e}(),oi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=r,i.windows=[new M],i.count=0,t.next(i.windows[0]),i}return r(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(e);var s=this.count-r+1;if(s>=0&&s%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var l=new M;i.push(l),n.next(l)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(w);var ai=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new li(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(M),li=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var l={subscriber:a,window:s,context:null},u={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(fi,n,l)),a.add(o.schedule(ci,r,u))}else{var c={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(ui,n,c))}return a}return r(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];i.closed||(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new si;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(w);function ui(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function ci(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o={action:this,subscription:null},a={subscriber:n,window:n.openWindow(),context:o};o.subscription=r.schedule(fi,t,a),this.add(o.subscription),this.schedule(e,i)}function fi(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}var di=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new pi(e,this.openings,this.closingSelector))},e}(),pi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=We(i,n,n)),i}return r(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,r=-1;++r<n;){var i=t[r];i.window.complete(),i.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,r,i){if(e===this.openings){var o=g(this.closingSelector)(t);if(o===p)return this.error(p.e);var a=new M,s=new v,l={window:a,subscription:s};this.contexts.push(l);var u=We(this,o,l);u.closed?this.closeWindow(this.contexts.length-1):(u.context=l,s.add(u)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}},t}(Pe);var hi=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new gi(e,this.closingSelector))},e}(),gi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.closingSelector=n,r.openWindow(),r}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow(i)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n=this.window=new M;this.destination.next(n);var r=g(this.closingSelector)();if(r===p){var i=p.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=We(this,r))},t}(Pe);var mi=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new vi(e,this.observables,this.project))},e}(),vi=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var a=0;a<o;a++)i.toRespond.push(a);for(a=0;a<o;a++){var s=n[a];i.add(We(i,s,s,a))}return i}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Pe);var yi=Object.freeze({audit:St,auditTime:function(e,t){return void 0===t&&(t=we),St(function(){return gt(e,t)})},buffer:function(e){return function(t){return t.lift(new Tt(e))}},bufferCount:function(e,t){return void 0===t&&(t=null),function(n){return n.lift(new _t(e,t))}},bufferTime:function(e){var t=arguments.length,n=we;ee(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new Dt(e,r,i,n))}},bufferToggle:function(e,t){return function(n){return n.lift(new Pt(e,t))}},bufferWhen:function(e){return function(t){return t.lift(new jt(e))}},catchError:function(e){return function(t){var n=new Bt(e),r=t.lift(n);return n.caught=r}},combineAll:function(e){return function(t){return t.lift(new Ke(e))}},combineLatest:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(Xe([t].concat(e)),new Ke(n))}},concat:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(nt.apply(void 0,[t].concat(e)))}},concatAll:tt,concatMap:zt,concatMapTo:function(e,t){return zt(function(){return e},t)},count:function(e){return function(t){return t.lift(new Vt(e,t))}},debounce:function(e){return function(t){return t.lift(new Wt(e))}},debounceTime:function(e,t){return void 0===t&&(t=we),function(n){return n.lift(new Kt(e,t))}},defaultIfEmpty:Zt,delay:function(e,t){void 0===t&&(t=we);var n=en(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new tn(n,t))}},delayWhen:function(e,t){return t?function(n){return new sn(n,t).lift(new on(e))}:function(t){return t.lift(new on(e))}},dematerialize:function(){return function(e){return e.lift(new un)}},distinct:function(e,t){return function(n){return n.lift(new fn(e,t))}},distinctUntilChanged:pn,distinctUntilKeyChanged:function(e,t){return pn(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})},elementAt:function(e,t){if(e<0)throw new Te;var n=arguments.length>=2;return function(r){return r.pipe(mn(function(t,n){return n===e}),xn(1),n?Zt(t):En(function(){return new Te}))}},endWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];ee(n)?e.pop():n=null;var r=e.length;return nt(t,1!==r||n?r>0?ne(e,n):Q(n):re(e[0]))}},every:function(e,t){return function(n){return n.lift(new kn(e,t,n))}},exhaust:function(){return function(e){return e.lift(new An)}},exhaustMap:function e(t,n){return n?function(r){return r.pipe(e(function(e,r){return Xe(t(e,r)).pipe(Ae(function(t,i){return n(e,t,r,i)}))}))}:function(e){return e.lift(new Dn(t))}},expand:function(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Nn(e,t,n))}},filter:mn,finalize:function(e){return function(t){return t.lift(new Fn(e))}},find:function(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Pn(e,n,!1,t))}},findIndex:function(e,t){return function(n){return n.lift(new Pn(e,n,!0,t))}},first:function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?mn(function(t,n){return e(t,n,r)}):Ce,xn(1),n?Zt(t):En(function(){return new ke}))}},groupBy:function(e,t,n,r){return function(i){return i.lift(new B(e,t,n,r))}},ignoreElements:function(){return function(e){return e.lift(new jn)}},isEmpty:function(){return function(e){return e.lift(new Bn)}},last:function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?mn(function(t,n){return e(t,n,r)}):Ce,zn(1),n?Zt(t):En(function(){return new ke}))}},map:Ae,mapTo:function(e){return function(t){return t.lift(new Wn(e))}},materialize:function(){return function(e){return e.lift(new Kn)}},max:function(e){return Qn("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})},merge:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(lt.apply(void 0,[t].concat(e)))}},mergeAll:et,mergeMap:Ze,flatMap:Ze,mergeMapTo:function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Ze(function(){return e},t,n):("number"==typeof t&&(n=t),Ze(function(){return e},n))},mergeScan:function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new er(e,t,n))}},min:function(e){return Qn("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})},multicast:nr,observeOn:function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new le(e,t))}},onErrorResumeNext:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&c(e[0])&&(e=e[0]),function(t){return t.lift(new ir(e))}},pairwise:function(){return function(e){return e.lift(new ar)}},partition:function(e,t){return function(n){return[mn(e,t)(n),mn(function(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}(e,t))(n)]}},pluck:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Ae(function(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=r[e[i]];if(void 0===o)return;r=o}return r}}(e,n))(t)}},publish:function(e){return e?nr(function(){return new M},e):nr(new M)},publishBehavior:function(e){return function(t){return nr(new W(e))(t)}},publishLast:function(){return function(e){return nr(new pe)(e)}},publishReplay:function(e,t,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new fe(e,t,r);return function(e){return nr(function(){return o},i)(e)}},race:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&c(e[0])&&(e=e[0]),t.lift.call(ft.apply(void 0,[t].concat(e)))}},reduce:Qn,repeat:function(e){return void 0===e&&(e=-1),function(t){return 0===e?Q():e<0?t.lift(new lr(-1,t)):t.lift(new lr(e-1,t))}},repeatWhen:function(e){return function(t){return t.lift(new cr(e))}},retry:function(e){return void 0===e&&(e=-1),function(t){return t.lift(new dr(e,t))}},retryWhen:function(e){return function(t){return t.lift(new hr(e,t))}},refCount:I,sample:function(e){return function(t){return t.lift(new mr(e))}},sampleTime:function(e,t){return void 0===t&&(t=we),function(n){return n.lift(new yr(e,t))}},scan:Xn,sequenceEqual:function(e,t){return function(n){return n.lift(new $r(e,t))}},share:function(){return function(e){return I()(nr(xr)(e))}},shareReplay:function(e,t,n){return function(r){return r.lift(function(e,t,n){var r,i,o=0,a=!1,s=!1;return function(l){o++,r&&!a||(a=!1,r=new fe(e,t,n),i=l.subscribe({next:function(e){r.next(e)},error:function(e){a=!0,r.error(e)},complete:function(){s=!0,r.complete()}}));var u=r.subscribe(this);return function(){o--,u.unsubscribe(),i&&0===o&&s&&i.unsubscribe()}}}(e,t,n))}},single:function(e){return function(t){return t.lift(new Cr(e,t))}},skip:function(e){return function(t){return t.lift(new kr(e))}},skipLast:function(e){return function(t){return t.lift(new Ar(e))}},skipUntil:function(e){return function(t){return t.lift(new Dr(e))}},skipWhile:function(e){return function(t){return t.lift(new Nr(e))}},startWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];ee(n)?e.pop():n=null;var r=e.length;return nt(1!==r||n?r>0?ne(e,n):Q(n):re(e[0]),t)}},subscribeOn:function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new Rr(e,t))}},switchAll:function(){return Pr(Ce)},switchMap:Pr,switchMapTo:function(e,t){return t?Pr(function(){return e},t):Pr(function(){return e})},take:xn,takeLast:zn,takeUntil:function(e){return function(t){return t.lift(new Ur(e))}},takeWhile:function(e){return function(t){return t.lift(new Hr(e))}},tap:bn,throttle:function(e,t){return void 0===t&&(t=Vr),function(n){return n.lift(new Yr(e,t.leading,t.trailing))}},throttleTime:function(e,t,n){return void 0===t&&(t=we),void 0===n&&(n=Vr),function(r){return r.lift(new qr(e,t,n.leading,n.trailing))}},throwIfEmpty:En,timeInterval:function(e){return void 0===e&&(e=we),function(t){return rt(function(){return t.pipe(Xn(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),Ae(function(e){var t=e.current,n=e.last,r=e.value;return new Xr(r,t-n)}))})}},timeout:function(e,t){return void 0===t&&(t=we),Zr(e,oe(new _e),t)},timeoutWith:Zr,timestamp:function(e){return void 0===e&&(e=we),Ae(function(t){return new ei(t,e.now())})},toArray:function(){return Qn(ti,[])},window:function(e){return function(t){return t.lift(new ni(e))}},windowCount:function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ii(e,t))}},windowTime:function(e){var t=we,n=null,r=Number.POSITIVE_INFINITY;return ee(arguments[3])&&(t=arguments[3]),ee(arguments[2])?t=arguments[2]:at(arguments[2])&&(r=arguments[2]),ee(arguments[1])?t=arguments[1]:at(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new ai(e,n,r,t))}},windowToggle:function(e,t){return function(n){return n.lift(new di(e,t))}},windowWhen:function(e){return function(t){return t.lift(new hi(e))}},withLatestFrom:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new mi(r,n))}},zip:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(vt.apply(void 0,[t].concat(e)))}},zipAll:function(e){return function(t){return t.lift(new yt(e))}}}),bi=function(){return function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.subscribedFrame=e,this.unsubscribedFrame=t}}(),wi=function(){function e(){this.subscriptions=[]}return e.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new bi(this.scheduler.now())),this.subscriptions.length-1},e.prototype.logUnsubscribedFrame=function(e){var t=this.subscriptions,n=t[e];t[e]=new bi(n.subscribedFrame,this.scheduler.now())},e}();function $i(e,t){for(var n=0,r=t.length;n<r;n++)for(var i=t[n],o=Object.getOwnPropertyNames(i.prototype),a=0,s=o.length;a<s;a++){var l=o[a];e.prototype[l]=i.prototype[l]}}var Ei=function(e){function t(t,n){var r=e.call(this,function(e){var t=this,n=t.logSubscribedFrame();return e.add(new v(function(){t.logUnsubscribedFrame(n)})),t.scheduleMessages(e),e})||this;return r.messages=t,r.subscriptions=[],r.scheduler=n,r}return r(t,e),t.prototype.scheduleMessages=function(e){for(var t=this.messages.length,n=0;n<t;n++){var r=this.messages[n];e.add(this.scheduler.schedule(function(e){var t=e.message,n=e.subscriber;t.notification.observe(n)},r.frame,{message:r,subscriber:e}))}},t}(k);$i(Ei,[wi]);var Si=function(e){function t(t,n){var r=e.call(this)||this;return r.messages=t,r.subscriptions=[],r.scheduler=n,r}return r(t,e),t.prototype._subscribe=function(t){var n=this,r=n.logSubscribedFrame();return t.add(new v(function(){n.logUnsubscribedFrame(r)})),e.prototype._subscribe.call(this,t)},t.prototype.setup=function(){for(var e=this,t=e.messages.length,n=0;n<t;n++)!function(){var t=e.messages[n];e.scheduler.schedule(function(){t.notification.observe(e)},t.frame)}()},t}(M);$i(Si,[wi]);var xi=750,Ci=function(e){function t(t){var n=e.call(this,xe,xi)||this;return n.assertDeepEqual=t,n.hotObservables=[],n.coldObservables=[],n.flushTests=[],n.runMode=!1,n}return r(t,e),t.prototype.createTime=function(e){var n=e.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*t.frameTimeFactor},t.prototype.createColdObservable=function(e,n,r){if(-1!==e.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==e.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var i=t.parseMarbles(e,n,r,void 0,this.runMode),o=new Ei(i,this);return this.coldObservables.push(o),o},t.prototype.createHotObservable=function(e,n,r){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=t.parseMarbles(e,n,r,void 0,this.runMode),o=new Si(i,this);return this.hotObservables.push(o),o},t.prototype.materializeInnerObservable=function(e,t){var n=this,r=[];return e.subscribe(function(e){r.push({frame:n.frame-t,notification:se.createNext(e)})},function(e){r.push({frame:n.frame-t,notification:se.createError(e)})},function(){r.push({frame:n.frame-t,notification:se.createComplete()})}),r},t.prototype.expectObservable=function(e,n){var r=this;void 0===n&&(n=null);var i,o=[],a={actual:o,ready:!1},s=t.parseMarblesAsSubscriptions(n,this.runMode).unsubscribedFrame;this.schedule(function(){i=e.subscribe(function(e){var t=e;e instanceof k&&(t=r.materializeInnerObservable(t,r.frame)),o.push({frame:r.frame,notification:se.createNext(t)})},function(e){o.push({frame:r.frame,notification:se.createError(e)})},function(){o.push({frame:r.frame,notification:se.createComplete()})})},0),s!==Number.POSITIVE_INFINITY&&this.schedule(function(){return i.unsubscribe()},s),this.flushTests.push(a);var l=this.runMode;return{toBe:function(e,n,r){a.ready=!0,a.expected=t.parseMarbles(e,n,r,!0,l)}}},t.prototype.expectSubscriptions=function(e){var n={actual:e,ready:!1};this.flushTests.push(n);var r=this.runMode;return{toBe:function(e){var i="string"==typeof e?[e]:e;n.ready=!0,n.expected=i.map(function(e){return t.parseMarblesAsSubscriptions(e,r)})}}},t.prototype.flush=function(){for(var t=this,n=this.hotObservables;n.length>0;)n.shift().setup();e.prototype.flush.call(this),this.flushTests=this.flushTests.filter(function(e){return!e.ready||(t.assertDeepEqual(e.actual,e.expected),!1)})},t.parseMarblesAsSubscriptions=function(e,t){var n=this;if(void 0===t&&(t=!1),"string"!=typeof e)return new bi(Number.POSITIVE_INFINITY);for(var r,i=e.length,o=-1,a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,l=0,u=function(i){var u=l,f=function(e){u+=e*n.frameTimeFactor},d=e[i];switch(d){case" ":t||f(1);break;case"-":f(1);break;case"(":o=l,f(1);break;case")":o=-1,f(1);break;case"^":if(a!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");a=o>-1?o:l,f(1);break;case"!":if(s!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");s=o>-1?o:l;break;default:if(t&&d.match(/^[0-9]$/)&&(0===i||" "===e[i-1])){var p=e.slice(i).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(p){i+=p[0].length-1;var h=parseFloat(p[1]),g=void 0;switch(p[2]){case"ms":g=h;break;case"s":g=1e3*h;break;case"m":g=1e3*h*60}f(g/c.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+d+"'.")}l=u,r=i},c=this,f=0;f<i;f++)u(f),f=r;return s<0?new bi(a):new bi(a,s)},t.parseMarbles=function(e,t,n,r,i){var o=this;if(void 0===r&&(r=!1),void 0===i&&(i=!1),-1!==e.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var a,s=e.length,l=[],u=i?e.replace(/^[ ]+/,"").indexOf("^"):e.indexOf("^"),c=-1===u?0:u*-this.frameTimeFactor,f="object"!=typeof t?function(e){return e}:function(e){return r&&t[e]instanceof Ei?t[e].messages:t[e]},d=-1,p=function(t){var r=c,s=function(e){r+=e*o.frameTimeFactor},u=void 0,p=e[t];switch(p){case" ":i||s(1);break;case"-":s(1);break;case"(":d=c,s(1);break;case")":d=-1,s(1);break;case"|":u=se.createComplete(),s(1);break;case"^":s(1);break;case"#":u=se.createError(n||"error"),s(1);break;default:if(i&&p.match(/^[0-9]$/)&&(0===t||" "===e[t-1])){var g=e.slice(t).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(g){t+=g[0].length-1;var m=parseFloat(g[1]),v=void 0;switch(g[2]){case"ms":v=m;break;case"s":v=1e3*m;break;case"m":v=1e3*m*60}s(v/h.frameTimeFactor);break}}u=se.createNext(f(p)),s(1)}u&&l.push({frame:d>-1?d:c,notification:u}),c=r,a=t},h=this,g=0;g<s;g++)p(g),g=a;return l},t.prototype.run=function(e){var n=t.frameTimeFactor,r=this.maxFrames;t.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,X.delegate=this;var i={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var o=e(i);return this.flush(),o}finally{t.frameTimeFactor=n,this.maxFrames=r,this.runMode=!1,X.delegate=void 0}},t}(Se),Ti=Object.freeze({TestScheduler:Ci}),ki="undefined"!=typeof window&&window,_i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ai=ki||void 0!==e&&e||_i;function Oi(e,t){return void 0===t&&(t=null),new Pi({method:"GET",url:e,headers:t})}function Di(e,t,n){return new Pi({method:"POST",url:e,body:t,headers:n})}function Mi(e,t){return new Pi({method:"DELETE",url:e,headers:t})}function Ni(e,t,n){return new Pi({method:"PUT",url:e,body:t,headers:n})}function Ii(e,t,n){return new Pi({method:"PATCH",url:e,body:t,headers:n})}!function(){if(!Ai)throw new Error("RxJS could not find any global context (window, self, global)")}();var Fi=Ae(function(e,t){return e.response});function Ri(e,t){return Fi(new Pi({method:"GET",url:e,responseType:"json",headers:t}))}var Pi=function(e){function t(t){var n=e.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(Ai.XMLHttpRequest)return new Ai.XMLHttpRequest;if(Ai.XDomainRequest)return new Ai.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(Ai.XMLHttpRequest)return new Ai.XMLHttpRequest;var e=void 0;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(e=t[n],new Ai.ActiveXObject(e))break}catch(e){}return new Ai.ActiveXObject(e)}catch(e){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)r.url=t;else for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return n.request=r,n}var n;return r(t,e),t.prototype._subscribe=function(e){return new Li(e,this.request)},t.create=((n=function(e){return new t(e)}).get=Oi,n.post=Di,n.delete=Mi,n.put=Ni,n.patch=Ii,n.getJSON=Ri,n),t}(k),Li=function(e){function t(t,n){var r=e.call(this,t)||this;r.request=n,r.done=!1;var i=n.headers=n.headers||{};return n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in i||Ai.FormData&&n.body instanceof Ai.FormData||void 0===n.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,n.headers["Content-Type"]),r.send(),r}return r(t,e),t.prototype.next=function(e){this.done=!0;var t=this.xhr,n=this.request,r=this.destination,i=new ji(e,t,n);r.next(i)},t.prototype.send=function(){var e=this.request,t=this.request,n=t.user,r=t.method,i=t.url,o=t.async,a=t.password,s=t.headers,l=t.body,u=g(e.createXHR).call(e);if(u===p)this.error(p.e);else{this.xhr=u,this.setupEvents(u,e);if((n?g(u.open).call(u,r,i,o,n,a):g(u.open).call(u,r,i,o))===p)return this.error(p.e),null;if(o&&(u.timeout=e.timeout,u.responseType=e.responseType),"withCredentials"in u&&(u.withCredentials=!!e.withCredentials),this.setHeaders(u,s),(l?g(u.send).call(u,l):g(u.send).call(u))===p)return this.error(p.e),null}return u},t.prototype.serializeBody=function(e,t){if(!e||"string"==typeof e)return e;if(Ai.FormData&&e instanceof Ai.FormData)return e;if(t){var n=t.indexOf(";");-1!==n&&(t=t.substring(0,n))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");case"application/json":return JSON.stringify(e);default:return e}},t.prototype.setHeaders=function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])},t.prototype.setupEvents=function(e,t){var n=t.progressSubscriber;function r(e){var t=r,n=t.subscriber,i=t.progressSubscriber,o=t.request;i&&i.error(e),n.error(new Hi(this,o))}if(e.ontimeout=r,r.request=t,r.subscriber=this,r.progressSubscriber=n,e.upload&&"withCredentials"in e){var i,o;if(n)i=function(e){i.progressSubscriber.next(e)},Ai.XDomainRequest?e.onprogress=i:e.upload.onprogress=i,i.progressSubscriber=n;o=function(e){var t=o,n=t.progressSubscriber,r=t.subscriber,i=t.request;n&&n.error(e),r.error(new Ui("ajax error",this,i))},e.onerror=o,o.request=t,o.subscriber=this,o.progressSubscriber=n}function a(e){}function s(e){var t=s,n=t.subscriber,r=t.progressSubscriber,i=t.request;if(4===this.readyState){var o=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===o&&(o=a?200:0),o<400?(r&&r.complete(),n.next(e),n.complete()):(r&&r.error(e),n.error(new Ui("ajax error "+o,this,i)))}}e.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=n,a.request=t,e.onload=s,s.subscriber=this,s.progressSubscriber=n,s.request=t},t.prototype.unsubscribe=function(){var t=this.done,n=this.xhr;!t&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),e.prototype.unsubscribe.call(this)},t}(w),ji=function(){return function(e,t,n){this.originalEvent=e,this.xhr=t,this.request=n,this.status=t.status,this.responseType=t.responseType||n.responseType,this.response=Bi(this.responseType,t)}}(),Ui=function(e){function t(n,r,i){var o=e.call(this,n)||this;return o.name="AjaxError",o.message=n,o.xhr=r,o.request=i,o.status=r.status,o.responseType=r.responseType||i.responseType,o.response=Bi(o.responseType,r),Object.setPrototypeOf(o,t.prototype),o}return r(t,e),t}(Error);function Bi(e,t){switch(e){case"json":return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null");case"xml":return t.responseXML;case"text":default:return"response"in t?t.response:t.responseText}}var Hi=function(e){function t(n,r){var i=e.call(this,"ajax timeout",n,r)||this;return i.name="AjaxTimeoutError",Object.setPrototypeOf(i,t.prototype),i}return r(t,e),t}(Ui),zi=Pi.create,Vi=Object.freeze({ajax:zi,AjaxResponse:ji,AjaxError:Ui,AjaxTimeoutError:Hi}),Yi={url:"",deserializer:function(e){return JSON.parse(e.data)},serializer:function(e){return JSON.stringify(e)}},Wi=function(e){function t(t,n){var r=e.call(this)||this;if(t instanceof k)r.destination=n,r.source=t;else{var o=r._config=i({},Yi);if(r._output=new M,"string"==typeof t)o.url=t;else for(var a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);if(!o.WebSocketCtor&&WebSocket)o.WebSocketCtor=WebSocket;else if(!o.WebSocketCtor)throw new Error("no WebSocket constructor can be found");r.destination=new fe}return r}return r(t,e),t.prototype.lift=function(e){var n=new t(this._config,this.destination);return n.operator=e,n.source=this,n},t.prototype._resetState=function(){this._socket=null,this.source||(this.destination=new fe),this._output=new M},t.prototype.multiplex=function(e,t,n){var r=this;return new k(function(i){var o=g(e)();o===p?i.error(p.e):r.next(o);var a=r.subscribe(function(e){var t=g(n)(e);t===p?i.error(p.e):t&&i.next(e)},function(e){return i.error(e)},function(){return i.complete()});return function(){var e=g(t)();e===p?i.error(p.e):r.next(e),a.unsubscribe()}})},t.prototype._connectSocket=function(){var e=this,t=this._config,n=t.WebSocketCtor,r=t.protocol,i=t.url,o=t.binaryType,a=this._output,s=null;try{s=r?new n(i,r):new n(i),this._socket=s,o&&(this._socket.binaryType=o)}catch(e){return void a.error(e)}var l=new v(function(){e._socket=null,s&&1===s.readyState&&s.close()});s.onopen=function(t){var n=e._config.openObserver;n&&n.next(t);var r=e.destination;e.destination=w.create(function(t){if(1===s.readyState){var n=g(e._config.serializer)(t);if(n===p)return void e.destination.error(p.e);s.send(n)}},function(t){var n=e._config.closingObserver;n&&n.next(void 0),t&&t.code?s.close(t.code,t.reason):a.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e._config.closingObserver;t&&t.next(void 0),s.close(),e._resetState()}),r&&r instanceof fe&&l.add(r.subscribe(e.destination))},s.onerror=function(t){e._resetState(),a.error(t)},s.onclose=function(t){e._resetState();var n=e._config.closeObserver;n&&n.next(t),t.wasClean?a.complete():a.error(t)},s.onmessage=function(t){var n=g(e._config.deserializer)(t);n===p?a.error(p.e):a.next(n)}},t.prototype._subscribe=function(e){var t=this,n=this.source;if(n)return n.subscribe(e);this._socket||this._connectSocket();var r=new v;return r.add(this._output.subscribe(e)),r.add(function(){var e=t._socket;0===t._output.observers.length&&(e&&1===e.readyState&&e.close(),t._resetState())}),r},t.prototype.unsubscribe=function(){var t=this.source,n=this._socket;n&&1===n.readyState&&(n.close(),this._resetState()),e.prototype.unsubscribe.call(this),t||(this.destination=new fe)},t}(N);var qi=yi,Ki=Ti,Gi=Vi,Xi=Object.freeze({webSocket:function(e){return new Wi(e)},WebSocketSubject:Wi});t.operators=qi,t.testing=Ki,t.ajax=Gi,t.webSocket=Xi,t.Observable=k,t.ConnectableObservable=P,t.GroupedObservable=V,t.observable=S,t.Subject=M,t.BehaviorSubject=W,t.ReplaySubject=fe,t.AsyncSubject=pe,t.asapScheduler=be,t.asyncScheduler=we,t.queueScheduler=Z,t.animationFrameScheduler=Ee,t.VirtualTimeScheduler=Se,t.VirtualAction=xe,t.Scheduler=G,t.Subscription=v,t.Subscriber=w,t.Notification=se,t.pipe=C,t.noop=x,t.identity=Ce,t.isObservable=function(e){return!!e&&(e instanceof k||"function"==typeof e.lift&&"function"==typeof e.subscribe)},t.ArgumentOutOfRangeError=Te,t.EmptyError=ke,t.ObjectUnsubscribedError=A,t.UnsubscriptionError=m,t.TimeoutError=_e,t.bindCallback=function e(t,n,r){if(n){if(!ee(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return e(t,r).apply(void 0,i).pipe(Ae(function(e){return c(e)?n.apply(void 0,e):n(e)}))};r=n}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,a={context:o,subject:i,callbackFunc:t,scheduler:r};return new k(function(n){if(r){var s={args:e,subscriber:n,params:a};return r.schedule(Me,0,s)}if(!i){i=new pe;try{t.apply(o,e.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.next(e.length<=1?e[0]:e),i.complete()}]))}catch(e){i.error(e)}}return i.subscribe(n)})}},t.bindNodeCallback=function e(t,n,r){if(n){if(!ee(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return e(t,r).apply(void 0,i).pipe(Ae(function(e){return c(e)?n.apply(void 0,e):n(e)}))};r=n}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new k(function(n){var o=i.context,a=i.subject;if(r)return r.schedule(Ie,0,{params:i,subscriber:n,context:o});if(!a){a=i.subject=new pe;try{t.apply(o,e.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();n?a.error(n):(a.next(e.length<=1?e[0]:e),a.complete())}]))}catch(e){a.error(e)}}return a.subscribe(n)})}},t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return ee(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),ne(e,r).lift(new Ke(n))},t.concat=nt,t.defer=rt,t.empty=Q,t.forkJoin=function e(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&c(n[0])&&(n=n[0]),0===n.length?J:t?e(n).pipe(Ae(function(e){return t.apply(void 0,e)})):new k(function(e){return new it(e,n)})},t.from=Xe,t.fromEvent=function e(t,n,r,i){return o(r)&&(i=r,r=void 0),i?e(t,n,r).pipe(Ae(function(e){return c(e)?i.apply(void 0,e):i(e)})):new k(function(e){!function e(t,n,r,i,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,r),a=function(){return l.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,f=t.length;c<f;c++)e(t[c],n,r,i,o)}i.add(a)}(t,n,function(t){arguments.length>1?e.next(Array.prototype.slice.call(arguments)):e.next(t)},e,r)})},t.fromEventPattern=function e(t,n,r){return r?e(t,n).pipe(Ae(function(e){return c(e)?r.apply(void 0,e):r(e)})):new k(function(e){var r,i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void e.error(t)}if(o(n))return function(){return n(i,r)}})},t.generate=function(e,t,n,r,i){var o,a;if(1==arguments.length){var s=e;a=s.initialState,t=s.condition,n=s.iterate,o=s.resultSelector||Ce,i=s.scheduler}else void 0===r||ee(r)?(a=e,o=Ce,i=r):(a=e,o=r);return new k(function(e){var r=a;if(i)return i.schedule(ot,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:r});for(;;){if(t){var s=void 0;try{s=t(r)}catch(t){return void e.error(t)}if(!s){e.complete();break}}var l=void 0;try{l=o(r)}catch(t){return void e.error(t)}if(e.next(l),e.closed)break;try{r=n(r)}catch(t){return void e.error(t)}}})},t.iif=function(e,t,n){return void 0===t&&(t=J),void 0===n&&(n=J),rt(function(){return e()?t:n})},t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),(!at(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=we),new k(function(n){return n.add(t.schedule(st,e,{subscriber:n,counter:0,period:e})),n})},t.merge=lt,t.never=function(){return ut},t.of=ie,t.onErrorResumeNext=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return J;var r=t[0],i=t.slice(1);return 1===t.length&&c(r)?e.apply(void 0,r):new k(function(t){var n=function(){return t.add(e.apply(void 0,i).subscribe(t))};return Xe(r).subscribe({next:function(e){t.next(e)},error:n,complete:n})})},t.pairs=function(e,t){return new k(t?function(n){var r=Object.keys(e),i=new v;return i.add(t.schedule(ct,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})},t.race=ft,t.range=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),new k(function(r){var i=0,o=e;if(n)return n.schedule(ht,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(o++),r.closed)break}})},t.throwError=oe,t.timer=gt,t.using=function(e,t){return new k(function(n){var r,i;try{r=e()}catch(e){return void n.error(e)}try{i=t(r)}catch(e){return void n.error(e)}var o=(i?Xe(i):J).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})},t.zip=vt,t.EMPTY=J,t.NEVER=ut,t.config=s,Object.defineProperty(t,"__esModule",{value:!0})})(t)}).call(this,n("yLpj"))},elZq:function(e,t,n){"use strict";var r=n("dyZX"),i=n("hswa"),o=n("nh4g"),a=n("K0xU")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"f3/d":function(e,t,n){var r=n("hswa").f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n("nh4g")&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},fN96:function(e,t,n){var r=n("XKFU");r(r.S,"Number",{isInteger:n("nBIS")})},"fix/":function(e,t){!function(e,t,n){"use strict";t.module("angulartics.google.analytics",["angulartics"]).config(["$analyticsProvider",function(n){function r(t){if(e.ga){for(var n={},r=1;r<=200;r++)void 0!==t["dimension"+r]&&(n["dimension"+r]=t["dimension"+r]),void 0!==t["metric"+r]&&(n["metric"+r]=t["metric"+r]);return n}}function i(i,o){if(!n.settings.ga.disableEventTracking){if(o&&o.category||((o=o||{}).category="Event"),o.value){var a=parseInt(o.value,10);o.value=isNaN(a)?0:a}if(o.hitCallback&&"function"!=typeof o.hitCallback&&(o.hitCallback=null),o.hasOwnProperty("nonInteraction")||(o.nonInteraction=o.noninteraction),e.ga){var s={eventCategory:o.category,eventAction:i,eventLabel:o.label,eventValue:o.value,nonInteraction:o.nonInteraction,page:o.page||e.location.hash.substring(1)||e.location.pathname,userId:n.settings.ga.userId,hitCallback:o.hitCallback},l=r(o);t.extend(s,l),n.settings.ga.transport&&t.extend(s,n.settings.ga.transport),ga("send","event",s),t.forEach(n.settings.ga.additionalAccountNames,function(e){ga(e+".send","event",s)})}else e._gaq&&_gaq.push(["_trackEvent",o.category,i,o.label,o.value,o.nonInteraction])}}n.settings.pageTracking.trackRelativePath=!0,n.settings.ga={additionalAccountNames:void 0,disableEventTracking:null,disablePageTracking:null,userId:null},n.registerPageTrack(function(r){n.settings.ga.disablePageTracking||(e._gaq&&(_gaq.push(["_trackPageview",r]),t.forEach(n.settings.ga.additionalAccountNames,function(e){_gaq.push([e+"._trackPageview",r])})),e.ga&&(n.settings.ga.userId&&ga("set","userId",n.settings.ga.userId),ga("send","pageview",r),t.forEach(n.settings.ga.additionalAccountNames,function(e){ga(e+".send","pageview",r)})))}),n.registerEventTrack(i),n.registerExceptionTrack(function(e,t){i(e.toString(),{category:"Exceptions",label:e.stack,nonInteraction:!0})}),n.registerSetUsername(function(e){n.settings.ga.userId=e}),n.registerSetUserProperties(function(e){if(e){var t=r(e);ga("set",t)}}),n.registerUserTimings(function(t){return t&&t.timingCategory&&t.timingVar&&void 0!==t.timingValue?void(e.ga&&ga("send","timing",t)):void 0})}])}(window,window.angular)},fyDq:function(e,t,n){var r=n("hswa").f,i=n("aagx"),o=n("K0xU")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},fyVe:function(e,t,n){var r=n("XKFU"),i=n("1sa7"),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},g3g5:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},g6HL:function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},gHnn:function(e,t,n){var r=n("dyZX"),i=n("GZEu").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("LZWt")(a);e.exports=function(){var e,t,n,u=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},"h+IE":function(e,t){!function(e,t){"use strict";function n(e){var t=[];return c(t,l).chars(e),t.join("")}var r,i,o,a,s,l,u,c,f=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",function(){function n(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?s(i[n]):i[n]]=!0;return r}function d(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function p(e){return e.replace(/&/g,"&amp;").replace(v,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+((e=e.charCodeAt(1))-56320)+65536)+";"}).replace(y,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}(n=t.firstChild)&&h(n),t=t.nextSibling}}var g=!1;this.$get=["$$sanitizeUri",function(e){return g&&i(C,S),function(t){var n=[];return u(t,c(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return a(e)?(g=e,this):g},r=t.bind,i=t.extend,o=t.forEach,a=t.isDefined,s=t.lowercase,l=t.noop,u=function(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),m.innerHTML=t;var r=5;do{if(0===r)throw f("uinput");r--,e.document.documentMode&&h(m),t=m.innerHTML,m.innerHTML=t}while(t!==m.innerHTML);for(r=m.firstChild;r;){switch(r.nodeType){case 1:n.start(r.nodeName.toLowerCase(),d(r.attributes));break;case 3:n.chars(r.textContent)}var i;if(!(i=r.firstChild)&&(1===r.nodeType&&n.end(r.nodeName.toLowerCase()),!(i=r.nextSibling)))for(;null==i&&(r=r.parentNode)!==m;)i=r.nextSibling,1===r.nodeType&&n.end(r.nodeName.toLowerCase());r=i}for(;r=m.firstChild;)m.removeChild(r)},c=function(e,t){var n=!1,i=r(e,e.push);return{start:function(e,r){e=s(e),!n&&x[e]&&(n=e),n||!0!==C[e]||(i("<"),i(e),o(r,function(n,r){var o=s(r),a="img"===e&&"src"===o||"background"===o;!0!==k[o]||!0===T[o]&&!t(n,a)||(i(" "),i(r),i('="'),i(p(n)),i('"'))}),i(">"))},end:function(e){e=s(e),n||!0!==C[e]||!0===b[e]||(i("</"),i(e),i(">")),e==n&&(n=!1)},chars:function(e){n||i(p(e))}}};var m,v=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y=/([^#-~ |!])/g,b=n("area,br,col,hr,img,wbr"),w=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=n("rp,rt"),E=i({},$,w),S=(w=i({},w,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),$=i({},$,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan")),x=n("script,style"),C=i({},b,w,$,E),T=n("background,cite,href,longdesc,src,xlink:href"),k=(E=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),$=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),i({},T,$,E));!function(e){if(!e.document||!e.document.implementation)throw f("noinert");var t=((e=e.document.implementation.createHTMLDocument("inert")).documentElement||e.getDocumentElement()).getElementsByTagName("body");1===t.length?m=t[0]:(t=e.createElement("html"),m=e.createElement("body"),t.appendChild(m),e.appendChild(t))}(e)}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var r=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,l=t.isObject,u=t.isString;return function(t,c,f){function d(e){e&&y.push(n(e))}function p(e,t){var n,r=m(e);for(n in y.push("<a "),r)y.push(n+'="'+r[n]+'" ');!a(c)||"target"in r||y.push('target="',c,'" '),y.push('href="',e.replace(/"/g,"&quot;"),'">'),d(t),y.push("</a>")}if(null==t||""===t)return t;if(!u(t))throw o("notstring",t);for(var h,g,m=s(f)?f:l(f)?function(){return f}:function(){return{}},v=t,y=[];t=v.match(r);)h=t[0],t[2]||t[4]||(h=(t[3]?"http://":"mailto:")+h),g=t.index,d(v.substr(0,g)),p(h,t[0].replace(i,"")),v=v.substring(g+t[0].length);return d(v),e(y.join(""))}}])}(window,window.angular)},"h/M4":function(e,t,n){var r=n("XKFU");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},h5Xq:function(e,t){!function(e,t){"use strict";function n(e,t,n){if(!e)throw H("areq",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(A(e)&&(e=e.join(" ")),A(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e,t,n){var r="";return e=A(e)?e:e&&I(e)&&e.length?e.split(/\s+/):[],_(e,function(e,i){e&&0<e.length&&(r+=0<i?" ":"",r+=n?t+e:e+t)}),r}function o(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}function a(e){return function(t,n){n.addClass&&(function(e,t,n){_(t,function(t){e.addClass(t,n)})}(e,t,n.addClass),n.addClass=null),n.removeClass&&(function(e,t,n){_(t,function(t){e.removeClass(t,n)})}(e,t,n.removeClass),n.removeClass=null)}}function s(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||P;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=P},e.$$prepared=!0}return e}function l(e,t){u(e,t),c(e,t)}function u(e,t){t.from&&(e.css(t.from),t.from=null)}function c(e,t){t.to&&(e.css(t.to),t.to=null)}function f(e,t,n){var r=t.options||{};n=n.options||{};var i=(r.addClass||"")+" "+(n.addClass||""),o=(r.removeClass||"")+" "+(n.removeClass||"");return e=function(e,t,n){function r(e){I(e)&&(e=e.split(" "));var t={};return _(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),_(t,function(e,t){i[t]=1}),n=r(n),_(n,function(e,t){i[t]=1===i[t]?null:-1});var o={addClass:"",removeClass:""};return _(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+"-remove"]):-1===t&&(r="removeClass",i=e[n]||e[n+"-add"]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}(e.attr("class"),i,o),n.preparationClasses&&(r.preparationClasses=m(n.preparationClasses,r.preparationClasses),delete n.preparationClasses),i=r.domOperation!==P?r.domOperation:null,k(r,n),i&&(r.domOperation=i),r.addClass=e.addClass?e.addClass:null,r.removeClass=e.removeClass?e.removeClass:null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function d(e){return e instanceof R?e[0]:e}function p(e,t){var n=t?"-"+t+"s":"";return g(e,[U,n]),[U,n]}function h(e,t){var n=t?"paused":"",r=x+"PlayState";return g(e,[r,n]),[r,n]}function g(e,t){e.style[t[0]]=t[1]}function m(e,t){return e?t?e+" "+t:e:t}function v(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return _(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||0<=o)&&(n=function(e){var t=0;return e=e.split(/\s*,\s*/),_(e,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}(n)),0===n&&(n=null),r[t]=n}}),r}function y(e){return 0===e||null!=e}function b(e,t){var n=E,r=e+"s";return t?n+="Duration":r+=" linear all",[n,r]}function w(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){return(t=e[t])?t.total:0},get:function(t){return(t=e[t])&&t.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function $(e,t,n){_(n,function(n){e[n]=O(e[n])?e[n]:t.style.getPropertyValue(n)})}var E,S,x,C;void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(E="WebkitTransition",S="webkitTransitionEnd transitionend"):(E="transition",S="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(x="WebkitAnimation",C="webkitAnimationEnd animationend"):(x="animation",C="animationend");var T,k,_,A,O,D,M,N,I,F,R,P,L=x+"Delay",j=x+"Duration",U=E+"Delay",B=E+"Duration",H=t.$$minErr("ng"),z={transitionDuration:B,transitionDelay:U,transitionProperty:E+"Property",animationDuration:j,animationDelay:L,animationIterationCount:x+"IterationCount"},V={transitionDuration:B,transitionDelay:U,animationDuration:j,animationDelay:L};t.module("ngAnimate",[],function(){P=t.noop,T=t.copy,k=t.extend,R=t.element,_=t.forEach,A=t.isArray,I=t.isString,N=t.isObject,F=t.isUndefined,O=t.isDefined,M=t.isFunction,D=t.isElement}).directive("ngAnimateSwap",["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}]).directive("ngAnimateChildren",["$interpolate",function(e){return{link:function(t,n,r){function i(e){n.data("$$ngAnimateChildren","on"===e||"true"===e)}var o=r.ngAnimateChildren;I(o)&&0===o.length?n.data("$$ngAnimateChildren",!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}]).factory("$$rAFScheduler",["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}]).provider("$$animateQueue",["$animateProvider",function(t){function r(e,t){if(e&&t){var n=function(e){if(!e)return null;e=e.split(" ");var t=Object.create(null);return _(e,function(e){t[e]=!0}),t}(t);return e.split(" ").some(function(e){return n[e]})}}function u(e,t,n,r){return p[e].some(function(e){return e(t,n,r)})}function c(e,t){var n=0<(e.addClass||"").length,r=0<(e.removeClass||"").length;return t?n&&r:n||r}var p=this.rules={skip:[],cancel:[],join:[]};p.join.push(function(e,t,n){return!t.structural&&c(t)}),p.skip.push(function(e,t,n){return!t.structural&&!c(t)}),p.skip.push(function(e,t,n){return"leave"===n.event&&t.structural}),p.skip.push(function(e,t,n){return n.structural&&2===n.state&&!t.structural}),p.cancel.push(function(e,t,n){return n.structural&&t.structural}),p.cancel.push(function(e,t,n){return 2===n.state&&t.structural}),p.cancel.push(function(e,t,n){if(n.structural)return!1;e=t.addClass,t=t.removeClass;var i=n.addClass;return n=n.removeClass,!(F(e)&&F(t)||F(i)&&F(n))&&(r(e,n)||r(t,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,p,h,g,v,y,b,w,$,E){function S(e,t,n){var r=d(t),i=d(e),o=[];return(e=V[n])&&_(e,function(e){K.call(e.node,r)?o.push(e.callback):"leave"===n&&K.call(e.node,i)&&o.push(e.callback)}),o}function x(e,t,n){var r=o(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function C(e,t,n){function a(t,n,i,o){x(function(){var t=S(w,e,n);t.length?r(function(){_(t,function(t){t(e,i,o)}),"close"!==i||e[0].parentNode||G.off(e)}):"close"!==i||e[0].parentNode||G.off(e)}),t.progress(n,i,o)}function h(t){var n=e,r=$;r.preparationClasses&&(n.removeClass(r.preparationClasses),r.preparationClasses=null),r.activeClasses&&(n.removeClass(r.activeClasses),r.activeClasses=null),q(e,$),l(e,$),$.domOperation(),E.complete(!t)}var v,w,$=T(n);(e=function(e){if(e instanceof R)switch(e.length){case 0:return e;case 1:if(1===e[0].nodeType)return e;break;default:return R(o(e))}if(1===e.nodeType)return R(e)}(e))&&(v=d(e),w=e.parent());$=s($);var E=new b,x=function(){var e=!1;return function(t){e?t():p.$$postDigest(function(){e=!0,t()})}}();if(A($.addClass)&&($.addClass=$.addClass.join(" ")),$.addClass&&!I($.addClass)&&($.addClass=null),A($.removeClass)&&($.removeClass=$.removeClass.join(" ")),$.removeClass&&!I($.removeClass)&&($.removeClass=null),$.from&&!N($.from)&&($.from=null),$.to&&!N($.to)&&($.to=null),!v)return h(),E;if(n=[v.className,$.addClass,$.removeClass].join(" "),!W(n))return h(),E;var C=0<=["enter","move","leave"].indexOf(t),k=g[0].hidden,O=!H||k||B.get(v),D=!!(n=!O&&U.get(v)||{}).state;if(O||D&&1===n.state||(O=!L(e,w,t)),O)return k&&a(E,t,"start"),h(),k&&a(E,t,"close"),E;if(C&&function(e){e=d(e).querySelectorAll("[data-ng-animate]"),_(e,function(e){var t=parseInt(e.getAttribute("data-ng-animate"),10),n=U.get(e);if(n)switch(t){case 2:n.runner.end();case 1:U.remove(e)}})}(e),k={structural:C,element:e,event:t,addClass:$.addClass,removeClass:$.removeClass,close:h,options:$,runner:E},D){if(u("skip",e,k,n))return 2===n.state?(h(),E):(f(e,n,k),n.runner);if(u("cancel",e,k,n))if(2===n.state)n.runner.end();else{if(!n.structural)return f(e,n,k),n.runner;n.close()}else if(u("join",e,k,n)){if(2!==n.state)return function(e,t,n){var r="";t&&(r=i(t,"ng-",!0)),n.addClass&&(r=m(r,i(n.addClass,"-add"))),n.removeClass&&(r=m(r,i(n.removeClass,"-remove"))),r.length&&(n.preparationClasses=r,e.addClass(r))}(e,C?t:null,$),t=k.event=n.event,$=f(e,n,k),n.runner;f(e,k,{})}}else f(e,k,{});if((D=k.structural)||(D="animate"===k.event&&0<Object.keys(k.options.to||{}).length||c(k)),!D)return h(),M(e),E;var F=(n.counter||0)+1;return k.counter=F,j(e,1,k),p.$$postDigest(function(){var n=!(r=U.get(v)),r=r||{},i=0<(e.parent()||[]).length&&("animate"===r.event||r.structural||c(r));n||r.counter!==F||!i?(n&&(q(e,$),l(e,$)),(n||C&&r.event!==t)&&($.domOperation(),E.end()),i||M(e)):(t=!r.structural&&c(r,!0)?"setClass":r.event,j(e,2),r=y(e,t,r.options),E.setHost(r),a(E,t,"start",{}),r.done(function(n){h(!n),(n=U.get(v))&&n.counter===F&&M(d(e)),a(E,t,"close",{})}))}),E}function M(e){(e=d(e)).removeAttribute("data-ng-animate"),U.remove(e)}function P(e,t){return d(e)===d(t)}function L(e,t,n){var r,i=P(e,n=R(g[0].body))||"HTML"===e[0].nodeName,o=P(e,h),a=!1,s=B.get(d(e));for((e=R.data(e[0],"$ngAnimatePin"))&&(t=e),t=d(t);t&&(o||(o=P(t,h)),1===t.nodeType);){if(e=U.get(t)||{},!a){var l=B.get(t);if(!0===l&&!1!==s){s=!0;break}!1===l&&(s=!1),a=e.structural}if((F(r)||!0===r)&&(e=R.data(t,"$$ngAnimateChildren"),O(e)&&(r=e)),a&&!1===r)break;if(i||(i=P(t,n)),i&&o)break;t=o||!(e=R.data(t,"$ngAnimatePin"))?t.parentNode:d(e)}return(!a||r)&&!0!==s&&o&&i}function j(e,t,n){(n=n||{}).state=t,(e=d(e)).setAttribute("data-ng-animate",t),n=(t=U.get(e))?k(t,n):n,U.put(e,n)}var U=new v,B=new v,H=null,z=p.$watch(function(){return 0===w.totalPendingRequests},function(e){e&&(z(),p.$$postDigest(function(){p.$$postDigest(function(){null===H&&(H=!0)})}))}),V=Object.create(null),Y=t.classNameFilter(),W=Y?function(e){return Y.test(e)}:function(){return!0},q=a($),K=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},G={on:function(e,t,n){var r=o(t);V[e]=V[e]||[],V[e].push({node:r,callback:n}),R(t).on("$destroy",function(){U.get(r)||G.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||I(arguments[0])){var r=V[e];r&&(V[e]=1===arguments.length?null:x(r,t,n))}else for(r in t=arguments[0],V)V[r]=x(V[r],t)},pin:function(e,t){n(D(e),"element","not an element"),n(D(t),"parentElement","not an element"),e.data("$ngAnimatePin",t)},push:function(e,t,n,r){return(n=n||{}).domOperation=r,C(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!H;else if(D(e)){var r=d(e);1===n?t=!B.get(r):B.put(r,!t)}else t=H=!!e;return t}};return G}]}]).provider("$$animation",["$animateProvider",function(e){var t=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,n,i,o,u,c){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var n,o=e.domNode,a=o.parentNode;for(i.put(o,e);a;){if(n=i.get(a)){n.processed||(n=t(n));break}a=a.parentNode}return(n||r).children.push(e),e}var n,r={children:[]},i=new u;for(n=0;n<e.length;n++){var o=e[n];i.put(o.domNode,e[n]={domNode:o.domNode,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);e=r.length;var i=0,o=[];for(t=0;t<r.length;t++){var a=r[t];0>=e&&(e=i,i=0,n.push(o),o=[]),o.push(a.fn),a.children.forEach(function(e){i++,r.push(e)}),e--}return o.length&&n.push(o),n}(r)}var p=[],h=a(e);return function(a,u,g){function m(e){var t=[],n={};_(e,function(e,r){var i=d(e.element),o=0<=["enter","move"].indexOf(e.event);if((i=e.structural?function(e){e=e.hasAttribute("ng-animate-ref")?[e]:e.querySelectorAll("[ng-animate-ref]");var t=[];return _(e,function(e){var n=e.getAttribute("ng-animate-ref");n&&n.length&&t.push(e)}),t}(i):[]).length){var a=o?"to":"from";_(i,function(e){var t=e.getAttribute("ng-animate-ref");n[t]=n[t]||{},n[t][a]={animationID:r,element:R(e)}})}else t.push(e)});var r={},i={};return _(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var l=e[a.animationID],u=e[s.animationID],c=a.animationID.toString();if(!i[c]){var f=i[c]={structural:!0,beforeStart:function(){l.beforeStart(),u.beforeStart()},close:function(){l.close(),u.close()},classes:function(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}(l.classes,u.classes),from:l,to:u,anchors:[]};f.classes.length?t.push(f):(t.push(l),t.push(u))}i[c].anchors.push({out:a.element,in:s.element})}else s=(a=a?a.animationID:s.animationID).toString(),r[s]||(r[s]=!0,t.push(e[a]))}),t}function v(e){for(var n=t.length-1;0<=n;n--){var r=i.get(t[n])(e);if(r)return r}}function y(){var e=a.data("$$animationRunner");!e||"leave"===u&&g.$$domOperationFired||e.end()}function b(t){a.off("$destroy",y),a.removeData("$$animationRunner"),h(a,g),l(a,g),g.domOperation(),x&&e.removeClass(a,x),a.removeClass("ng-animate"),$.complete(!t)}g=s(g);var w=0<=["enter","move","leave"].indexOf(u),$=new o({end:function(){b()},cancel:function(){b(!0)}});if(!t.length)return b(),$;a.data("$$animationRunner",$);var E,S=r(a.attr("class"),r(g.addClass,g.removeClass)),x=g.tempClasses;return x&&(S+=" "+x,g.tempClasses=null),w&&(E="ng-"+u+"-prepare",e.addClass(a,E)),p.push({element:a,classes:S,event:u,structural:w,options:g,beforeStart:function(){a.addClass("ng-animate"),x&&e.addClass(a,x),E&&(e.removeClass(a,E),E=null)},close:b}),a.on("$destroy",y),1<p.length?$:(n.$$postDigest(function(){var e=[];_(p,function(t){t.element.data("$$animationRunner")?e.push(t):t.close()}),p.length=0;var t=m(e),n=[];_(t,function(e){n.push({domNode:d(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if((e.anchors?e.from.element||e.to.element:e.element).data("$$animationRunner")){var r=v(e);r&&(t=r.start)}t?((t=t()).done(function(e){n(!e)}),function(e,t){function n(e){(e=e.data("$$animationRunner"))&&e.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}(e,t)):n()}})}),c(f(n))}),$)}}]}]).provider("$animateCss",["$animateProvider",function(e){var t=w(),n=w();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,o,f,m,w,k,O){function D(e,t){var n=e.parentNode;return(n.$$ngAnimateParentKey||(n.$$ngAnimateParentKey=++R))+"-"+e.getAttribute("class")+"-"+t}function M(o,a,s,l){var u;return 0<t.count(s)&&((u=n.get(s))||(a=i(a,"-stagger"),r.addClass(o,a),(u=v(e,o,l)).animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),r.removeClass(o,a),n.put(s,u))),u||{}}function N(e){B.push(e),k.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=m(),r=0;r<B.length;r++)B[r](e);B.length=0})}function I(n,r,i){return(r=t.get(i))||"infinite"===(r=v(e,n,z)).animationIterationCount&&(r.animationIterationCount=1),t.put(i,r),i=(n=r).animationDelay,r=n.transitionDelay,n.maxDelay=i&&r?Math.max(i,r):i||r,n.maxDuration=Math.max(n.animationDuration*n.animationIterationCount,n.transitionDuration),n}var F=a(r),R=0,B=[];return function(e,n){function a(){v()}function m(){v(!0)}function v(t){if(!(q||G&&K)){q=!0,K=!1,z.$$skipPreparationClasses||r.removeClass(e,de),r.removeClass(e,he),h(W,!1),p(W,!1),_(re,function(e){W.style[e[0]]=""}),F(e,z),l(e,z),Object.keys(Y).length&&_(Y,function(e,t){e?W.style.setProperty(t,e):W.style.removeProperty(t)}),z.onDone&&z.onDone(),ae&&ae.length&&e.off(ae.join(" "),B);var n=e.data("$$animateCss");n&&(f.cancel(n[0].timer),e.removeData("$$animateCss")),X&&X.complete(!t)}}function k(e){be.blockTransition&&p(W,e),be.blockKeyframeAnimation&&h(W,!!e)}function R(){return X=new o({end:a,cancel:m}),N(P),v(),{$$willAnimate:!1,start:function(){return X},end:a}}function B(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-ne,0)>=Q&&t>=ee&&(G=!0,v())}function H(){function t(){if(!q){if(k(!1),_(re,function(e){W.style[e[0]]=e[1]}),F(e,z),r.addClass(e,he),be.recalculateTimingStyles){if(pe=W.className+" "+de,ce=D(W,pe),me=I(W,pe,ce),ve=me.maxDelay,J=Math.max(ve,0),0===(ee=me.maxDuration))return void v();be.hasTransitions=0<me.transitionDuration,be.hasAnimations=0<me.animationDuration}if(be.applyAnimationDelay&&(ve="boolean"!=typeof z.delay&&y(z.delay)?parseFloat(z.delay):ve,J=Math.max(ve,0),me.animationDelay=ve,ye=[L,ve+"s"],re.push(ye),W.style[ye[0]]=ye[1]),Q=1e3*J,te=1e3*ee,z.easing){var t,i=z.easing;be.hasTransitions&&(t=E+"TimingFunction",re.push([t,i]),W.style[t]=i),be.hasAnimations&&(t=x+"TimingFunction",re.push([t,i]),W.style[t]=i)}me.transitionDuration&&ae.push(S),me.animationDuration&&ae.push(C),ne=Date.now();var o=Q+1.5*te;t=ne+o;var a=!0;if((i=e.data("$$animateCss")||[]).length){var s=i[0];(a=t>s.expectedEndTime)?f.cancel(s.timer):i.push(v)}a&&(o=f(n,o,!1),i[0]={timer:o,expectedEndTime:t},i.push(v),e.data("$$animateCss",i)),ae.length&&e.on(ae.join(" "),B),z.to&&(z.cleanupStyles&&$(Y,W,Object.keys(z.to)),c(e,z))}}function n(){var t=e.data("$$animateCss");if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData("$$animateCss")}}if(!q)if(W.parentNode){var i=function(e){if(G)K&&e&&(K=!1,v());else if(K=!e,me.animationDuration)if(e=h(W,K),K)re.push(e);else{var t=re,n=t.indexOf(e);0<=e&&t.splice(n,1)}},o=0<ge&&(me.transitionDuration&&0===fe.transitionDuration||me.animationDuration&&0===fe.animationDuration)&&Math.max(fe.animationDelay,fe.transitionDelay);o?f(t,Math.floor(o*ge*1e3),!1):t(),Z.resume=function(){i(!0)},Z.pause=function(){i(!1)}}else v()}var z=n||{};z.$$prepared||(z=s(T(z)));var Y={},W=d(e);if(!W||!W.parentNode||!O.enabled())return R();var q,K,G,X,Z,J,Q,ee,te,ne,re=[],ie=e.attr("class"),oe=function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(z),ae=[];if(0===z.duration||!w.animations&&!w.transitions)return R();var se=z.event&&A(z.event)?z.event.join(" "):z.event,le="",ue="";se&&z.structural?le=i(se,"ng-",!0):se&&(le=se),z.addClass&&(ue+=i(z.addClass,"-add")),z.removeClass&&(ue.length&&(ue+=" "),ue+=i(z.removeClass,"-remove")),z.applyClassesEarly&&ue.length&&F(e,z);var ce,fe,de=[le,ue].join(" ").trim(),pe=ie+" "+de,he=i(de,"-active");ie=oe.to&&0<Object.keys(oe.to).length;if(!(0<(z.keyframeStyle||"").length||ie||de))return R();0<z.stagger?(oe=parseFloat(z.stagger),fe={transitionDelay:oe,animationDelay:oe,transitionDuration:0,animationDuration:0}):(ce=D(W,pe),fe=M(W,de,ce,V)),z.$$skipPreparationClasses||r.addClass(e,de),z.transitionStyle&&(oe=[E,z.transitionStyle],g(W,oe),re.push(oe)),0<=z.duration&&(oe=0<W.style[E].length,oe=b(z.duration,oe),g(W,oe),re.push(oe)),z.keyframeStyle&&(oe=[x,z.keyframeStyle],g(W,oe),re.push(oe));var ge=fe?0<=z.staggerIndex?z.staggerIndex:t.count(ce):0;(se=0===ge)&&!z.skipBlocking&&p(W,9999);var me=I(W,pe,ce),ve=me.maxDelay;J=Math.max(ve,0),ee=me.maxDuration;var ye,be={};if(be.hasTransitions=0<me.transitionDuration,be.hasAnimations=0<me.animationDuration,be.hasTransitionAll=be.hasTransitions&&"all"===me.transitionProperty,be.applyTransitionDuration=ie&&(be.hasTransitions&&!be.hasTransitionAll||be.hasAnimations&&!be.hasTransitions),be.applyAnimationDuration=z.duration&&be.hasAnimations,be.applyTransitionDelay=y(z.delay)&&(be.applyTransitionDuration||be.hasTransitions),be.applyAnimationDelay=y(z.delay)&&be.hasAnimations,be.recalculateTimingStyles=0<ue.length,(be.applyTransitionDuration||be.applyAnimationDuration)&&(ee=z.duration?parseFloat(z.duration):ee,be.applyTransitionDuration&&(be.hasTransitions=!0,me.transitionDuration=ee,oe=0<W.style[E+"Property"].length,re.push(b(ee,oe))),be.applyAnimationDuration&&(be.hasAnimations=!0,me.animationDuration=ee,re.push([j,ee+"s"]))),0===ee&&!be.recalculateTimingStyles)return R();null!=z.delay&&("boolean"!=typeof z.delay&&(ye=parseFloat(z.delay),J=Math.max(ye,0)),be.applyTransitionDelay&&re.push([U,ye+"s"]),be.applyAnimationDelay&&re.push([L,ye+"s"]));return null==z.duration&&0<me.transitionDuration&&(be.recalculateTimingStyles=be.recalculateTimingStyles||se),Q=1e3*J,te=1e3*ee,z.skipBlocking||(be.blockTransition=0<me.transitionDuration,be.blockKeyframeAnimation=0<me.animationDuration&&0<fe.animationDelay&&0===fe.animationDuration),z.from&&(z.cleanupStyles&&$(Y,W,Object.keys(z.from)),u(e,z)),be.blockTransition||be.blockKeyframeAnimation?k(ee):z.skipBlocking||p(W,!1),{$$willAnimate:!0,end:a,start:function(){if(!q)return X=new o(Z={end:a,cancel:m,resume:null,pause:null}),N(H),X}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,t,n,r,i,o,a){function s(e){return e.replace(/\bng-\S+\b/g,"")}function l(e,t){return I(e)&&(e=e.split(" ")),I(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function u(t,r,i){function o(e){var t={},n=d(e).getBoundingClientRect();return _(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=f.scrollTop;break;case"left":r+=f.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function a(){var t=l(n=s(i.attr("class")||""),g),n=l(g,n);return(t=e(h,{to:o(i),addClass:"ng-anchor-in "+t,removeClass:"ng-anchor-out "+n,delay:!0})).$$willAnimate?t:null}function u(){h.remove(),r.removeClass("ng-animate-shim"),i.removeClass("ng-animate-shim")}var c,h=R(d(r).cloneNode(!0)),g=s(h.attr("class")||"");if(r.addClass("ng-animate-shim"),i.addClass("ng-animate-shim"),h.addClass("ng-anchor"),p.append(h),!(t=function(){var t=e(h,{addClass:"ng-anchor-out",delay:!0,from:o(r)});return t.$$willAnimate?t:null}())&&!(c=a()))return u();var m=t||c;return{start:function(){function e(){r&&r.end()}var t,r=m.start();return r.done(function(){if(r=null,!c&&(c=a()))return(r=c.start()).done(function(){r=null,u(),t.complete()}),r;u(),t.complete()}),t=new n({end:e,cancel:e})}}}function c(t){var n=t.element,r=t.options||{};return t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=m(r.event,r.preparationClasses)),(t=e(n,r)).$$willAnimate?t:null}if(!i.animations&&!i.transitions)return P;var f=a[0].body;t=d(r);var p=R(t.parentNode&&11===t.parentNode.nodeType||f.contains(t)?t:f);return function(e){return e.from&&e.to?function(e,t,r,i){var o=c(e),a=c(t),s=[];if(_(i,function(e){(e=u(r,e.out,e.in))&&s.push(e)}),o||a||0!==s.length)return{start:function(){function e(){_(t,function(e){e.end()})}var t=[];o&&t.push(o.start()),a&&t.push(a.start()),_(s,function(e){t.push(e.start())});var r=new n({end:e,cancel:e});return n.all(t,function(e){r.complete(e)}),r}}}(e.from,e.to,e.classes,e.anchors):c(e)}}]}]).provider("$$animateJs",["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=A(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=a(r);return function(e,t,r,a){function u(){a.domOperation(),o(e,a)}function c(e,t,r,i,o){var a=[];return _(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,l=function(e){a||(a=!0,(o||P)(e),i.complete(!e))};return i=new n({end:function(){l()},cancel:function(){l(!0)}}),o=function(e,t,r,i,o){switch(r){case"animate":t=[t,i.from,i.to,o];break;case"setClass":t=[t,y,b,o];break;case"addClass":t=[t,y,o];break;case"removeClass":t=[t,b,o];break;default:t=[t,o]}if(t.push(i),e=e.apply(e,t))if(M(e.start)&&(e=e.start()),e instanceof n)e.done(o);else if(M(e))return e;return P}(s,e,t,r,function(e){l(!1===e)}),i})}),a}function f(e,t,r,i,o){var a,s,l=c(e,t,r,i,o);0===l.length&&("beforeSetClass"===o?(a=c(e,"removeClass",r,i,"beforeRemoveClass"),s=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=c(e,"removeClass",r,i,"removeClass"),s=c(e,"addClass",r,i,"addClass")),a&&(l=l.concat(a)),s&&(l=l.concat(s)));if(0!==l.length)return function(e){var t=[];return l.length&&_(l,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){_(t,function(t){e?t.cancel():t.end()})}}}var d=!1;3===arguments.length&&N(r)&&(a=r,r=null),a=s(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var p,h,g,m,v,y=a.addClass,b=a.removeClass,w=i(r);w.length&&("leave"===t?(m="leave",g="afterLeave"):(m="before"+t.charAt(0).toUpperCase()+t.substr(1),g=t),"enter"!==t&&"move"!==t&&(p=f(e,t,a,w,m)),h=f(e,t,a,w,g));if(p||h)return{$$willAnimate:!0,end:function(){return v?v.end():(d=!0,u(),l(e,a),(v=new n).complete(!0)),v},start:function(){function t(t){d=!0,u(),l(e,a),v.complete(t)}if(v)return v;v=new n;var r,i=[];return p&&i.push(function(e){r=p(e)}),i.length?i.push(function(e){u(),e(!0)}):u(),h&&i.push(function(e){r=h(e)}),v.setHost({end:function(){d||((r||P)(void 0),t(void 0))},cancel:function(){d||((r||P)(!0),t(!0))}}),n.chain(i,t),v}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){return e(t.element,t.event,t.classes,t.options)}return function(e){if(!e.from||!e.to)return n(e);var r=n(e.from),i=n(e.to);return r||i?{start:function(){function e(){return function(){_(n,function(e){e.end()})}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),t.all(n,function(e){o.complete(e)});var o=new t({end:e(),cancel:e()});return o}}:void 0}}]}])}(window,window.angular)},hLT2:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},hPIQ:function(e,t){e.exports={}},hhXQ:function(e,t,n){var r=n("XKFU"),i=n("UExd")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},hswa:function(e,t,n){var r=n("y3w9"),i=n("xpql"),o=n("apmT"),a=Object.defineProperty;t.f=n("nh4g")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},i5dc:function(e,t,n){var r=n("0/R4"),i=n("y3w9"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},i7Dz:function(e,t,n){},iMoV:function(e,t,n){var r=n("hswa"),i=n("XKFU"),o=n("y3w9"),a=n("apmT");i(i.S+i.F*n("eeVq")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},ioFf:function(e,t,n){"use strict";var r=n("dyZX"),i=n("aagx"),o=n("nh4g"),a=n("XKFU"),s=n("KroJ"),l=n("Z6vF").KEY,u=n("eeVq"),c=n("VTer"),f=n("fyDq"),d=n("ylqs"),p=n("K0xU"),h=n("N8g3"),g=n("OnI7"),m=n("1MBn"),v=n("EWmC"),y=n("y3w9"),b=n("0/R4"),w=n("S/j/"),$=n("aCFj"),E=n("apmT"),S=n("RjD/"),x=n("Kuth"),C=n("e7yV"),T=n("EemH"),k=n("JiEa"),_=n("hswa"),A=n("DVgA"),O=T.f,D=_.f,M=C.f,N=r.Symbol,I=r.JSON,F=I&&I.stringify,R=p("_hidden"),P=p("toPrimitive"),L={}.propertyIsEnumerable,j=c("symbol-registry"),U=c("symbols"),B=c("op-symbols"),H=Object.prototype,z="function"==typeof N&&!!k.f,V=r.QObject,Y=!V||!V.prototype||!V.prototype.findChild,W=o&&u(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,q=function(e){var t=U[e]=x(N.prototype);return t._k=e,t},K=z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},G=function(e,t,n){return e===H&&G(B,t,n),y(e),t=E(t,!0),y(n),i(U,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=x(n,{enumerable:S(0,!1)})):(i(e,R)||D(e,R,S(1,{})),e[R][t]=!0),W(e,t,n)):D(e,t,n)},X=function(e,t){y(e);for(var n,r=m(t=$(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},Z=function(e){var t=L.call(this,e=E(e,!0));return!(this===H&&i(U,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,R)&&this[R][e])||t)},J=function(e,t){if(e=$(e),t=E(t,!0),e!==H||!i(U,t)||i(B,t)){var n=O(e,t);return!n||!i(U,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=M($(e)),r=[],o=0;n.length>o;)i(U,t=n[o++])||t==R||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=M(n?B:$(e)),o=[],a=0;r.length>a;)!i(U,t=r[a++])||n&&!i(H,t)||o.push(U[t]);return o};z||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(B,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),W(this,e,S(1,n))};return o&&Y&&W(H,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",function(){return this._k}),T.f=J,_.f=G,n("kJMx").f=C.f=Q,n("UqcF").f=Z,k.f=ee,o&&!n("LQAc")&&s(H,"propertyIsEnumerable",Z,!0),h.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!z,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=A(p.store),ie=0;re.length>ie;)g(re[ie++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):X(x(e),t)},defineProperty:G,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=u(function(){k.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return k.f(w(e))}}),I&&a(a.S+a.F*(!z||u(function(){var e=N();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,F.apply(I,r)}}),N.prototype[P]||n("Mukb")(N.prototype,P,N.prototype.valueOf),f(N,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},jh5v:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.FE.PLUGINS.fontSize=function(t){return{apply:function(e){t.format.applyStyle("font-size",e)},refreshOnShow:function(n,r){var i=e(t.selection.element()).css("font-size");"pt"===t.opts.fontSizeUnit&&(i=Math.round(72*parseFloat(i,10)/96)+"pt"),r.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),r.find('.fr-command[data-param1="'+i+'"]').addClass("fr-active").attr("aria-selected",!0);var o=r.find(".fr-dropdown-list"),a=r.find(".fr-active").parent();a.length?o.parent().scrollTop(a.offset().top-o.offset().top-(o.parent().outerHeight()/2-a.outerHeight()/2)):o.parent().scrollTop(0)},refresh:function(n){if(t.opts.fontSizeSelection){var r=t.helpers.getPX(e(t.selection.element()).css("font-size"));"pt"===t.opts.fontSizeUnit&&(r=Math.round(72*parseFloat(r,10)/96)+"pt"),n.find("> span").text(r)}}}},e.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontSize,n=0;n<t.length;n++){var r=t[n];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+r+this.opts.fontSizeUnit+'" title="'+r+'">'+r+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.FE.DefineIcon("fontSize",{NAME:"text-height"})})?r.apply(t,i):r)||(e.exports=o)},jm62:function(e,t,n){var r=n("XKFU"),i=n("mQtv"),o=n("aCFj"),a=n("EemH"),s=n("8a7r");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,u=i(r),c={},f=0;u.length>f;)void 0!==(n=l(r,t=u[f++]))&&s(c,t,n);return c}})},kJMx:function(e,t,n){var r=n("zhAb"),i=n("4R4u").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"kVK+":function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},kcoS:function(e,t,n){var r=n("lvtm"),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),u=r(e);return i<l?u*(i/l/a+1/o-1/o)*l*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?u*(1/0):u*n}},klPD:function(e,t,n){var r=n("hswa"),i=n("EemH"),o=n("OP3Y"),a=n("aagx"),s=n("XKFU"),l=n("RjD/"),u=n("y3w9"),c=n("0/R4");s(s.S,"Reflect",{set:function e(t,n,s){var f,d,p=arguments.length<4?t:arguments[3],h=i.f(u(t),n);if(!h){if(c(d=o(t)))return e(d,n,s,p);h=l(0)}if(a(h,"value")){if(!1===h.writable||!c(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,l(0,s));return!0}return void 0!==h.set&&(h.set.call(p,s),!0)}})},knU9:function(e,t,n){var r=n("XKFU"),i=n("i5dc");i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},knhD:function(e,t,n){var r=n("XKFU");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},l0Rn:function(e,t,n){"use strict";var r=n("RYi7"),i=n("vhPU");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},lPiR:function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=u[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+v+u[p-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+l[p]+u[p];d=f,f=c,c=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),r.SHA256)},lq9n:function(e,t){var n,r,i,o,a,s,l,u,c;window,n=window.angular,r=n.isDefined,i=n.isUndefined,o=n.isNumber,a=n.isObject,s=n.isArray,l=n.isString,u=n.extend,c=n.toJson,n.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(e,t,n,f,d){function p(n){if(n||(n=t.event),y.setItem&&l(n.key)&&E(n.key)){var r=$(n.key);d(function(){e.$broadcast("LocalStorageModule.notification.changed",{key:r,newvalue:n.newValue,storageType:g.storageType})})}}var h,g=this,m=g.prefix,v=g.cookie,y=g.notify,b=g.storageType;n?n[0]&&(n=n[0]):n=document,"."!==m.substr(-1)&&(m=m?m+".":"");var w=function(e){return m+e},$=function(e){return e.replace(new RegExp("^"+m,"g"),"")},E=function(e){return 0===e.indexOf(m)},S=function(){try{var n=b in t&&null!==t[b],r=w("__"+Math.round(1e7*Math.random()));return n&&((h=t[b]).setItem(r,""),h.removeItem(r)),n}catch(t){return g.defaultToCookie&&(b="cookie"),e.$broadcast("LocalStorageModule.notification.error",t.message),!1}},x=S(),C=function(t,n,r){var o=N();try{if(I(r),n=i(n)?null:c(n),!x&&g.defaultToCookie||"cookie"===g.storageType)return x||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),A(t,n);try{h&&h.setItem(w(t),n),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:g.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),A(t,n)}return!0}finally{I(o)}},T=function(t,n){var r=N();try{if(I(n),!x&&g.defaultToCookie||"cookie"===g.storageType)return x||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),O(t);var i=h?h.getItem(w(t)):null;if(!i||"null"===i)return null;try{return JSON.parse(i)}catch(e){return i}}finally{I(r)}},k=function(){var t=N();try{var n,r,i=0;for(arguments.length>=1&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(i=1,I(arguments[arguments.length-1])),n=0;n<arguments.length-i;n++)if(r=arguments[n],!x&&g.defaultToCookie||"cookie"===g.storageType)x||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:r,storageType:"cookie"}),D(r);else try{h.removeItem(w(r)),y.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:r,storageType:g.storageType})}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message),D(r)}}finally{I(t)}},_=function(){try{return t.navigator.cookieEnabled||"cookie"in n&&(n.cookie.length>0||(n.cookie="test").indexOf.call(n.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),A=function(t,r,l,u){if(i(r))return!1;if((s(r)||a(r))&&(r=c(r)),!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var f="",d=new Date,p="";if(null===r?(d.setTime(d.getTime()+-864e5),f="; expires="+d.toGMTString(),r=""):o(l)&&0!==l?(d.setTime(d.getTime()+24*l*60*60*1e3),f="; expires="+d.toGMTString()):0!==v.expiry&&(d.setTime(d.getTime()+24*v.expiry*60*60*1e3),f="; expires="+d.toGMTString()),t){var h="; path="+v.path;v.domain&&(p="; domain="+v.domain),"boolean"==typeof u?!0===u&&(p+="; secure"):!0===v.secure&&(p+="; secure"),n.cookie=w(t)+"="+encodeURIComponent(r)+f+h+p}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},O=function(t){if(!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var r=n.cookie&&n.cookie.split(";")||[],i=0;i<r.length;i++){for(var o=r[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(w(t)+"=")){var a=decodeURIComponent(o.substring(m.length+t.length+1,o.length));try{var s=JSON.parse(a);return"number"==typeof s?a:s}catch(e){return a}}}return null},D=function(e){A(e,null)},M=function(){for(var e=null,t=m.length,r=n.cookie.split(";"),i=0;i<r.length;i++){for(e=r[i];" "===e.charAt(0);)e=e.substring(1,e.length);var o=e.substring(t,e.indexOf("="));D(o)}},N=function(){return b},I=function(e){return e&&b!==e&&(b=e,x=S()),x};return x&&(t.addEventListener?(t.addEventListener("storage",p,!1),e.$on("$destroy",function(){t.removeEventListener("storage",p)})):t.attachEvent&&(t.attachEvent("onstorage",p),e.$on("$destroy",function(){t.detachEvent("onstorage",p)}))),{isSupported:x,getStorageType:N,setStorageType:I,setPrefix:function(e){m=e},set:C,add:C,get:T,keys:function(t){var n=N();try{if(I(t),!x)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),[];var r=m.length,i=[];for(var o in h)if(o.substr(0,r)===m)try{i.push(o.substr(r))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return i}finally{I(n)}},remove:k,clearAll:function(t,n){var r=N();try{I(n);var i=m?new RegExp("^"+m):new RegExp,o=t?new RegExp(t):new RegExp;if(!x&&g.defaultToCookie||"cookie"===g.storageType)return x||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),M();if(!x&&!g.defaultToCookie)return!1;var a=m.length;for(var s in h)if(i.test(s)&&o.test(s.substr(a)))try{k(s.substr(a))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),M()}return!0}finally{I(r)}},bind:function(e,t,n,i,o){var s=T(i=i||t,o);return null===s&&r(n)?s=n:a(s)&&a(n)&&(s=u(s,n)),f(t).assign(e,s),e.$watch(t,function(e){C(i,e,o)},a(e[t]))},deriveKey:w,underiveKey:$,length:function(e){var n=N();try{I(e);for(var r=0,i=t[b],o=0;o<i.length;o++)0===i.key(o).indexOf(m)&&r++;return r}finally{I(n)}},defaultToCookie:this.defaultToCookie,cookie:{isSupported:_,set:A,add:A,get:O,remove:D,clearAll:M}}}]})},ls82:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",g={},m={};m[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=x.prototype=E.prototype=Object.create(m);S.prototype=b.constructor=x,x.constructor=S,x[l]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},c.awrap=function(e){return{__await:e}},C(T.prototype),T.prototype[s]=function(){return this},c.AsyncIterator=T,c.async=function(e,t,n,r){var i=new T(w(e,t,n,r));return c.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=D,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function w(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=$(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function $(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function S(){}function x(){}function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function T(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=$(e[n],e,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=$(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},lvtm:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},m0Pp:function(e,t,n){var r=n("2OiF");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"mB/V":function(e,t,n){},mQtv:function(e,t,n){var r=n("kJMx"),i=n("JiEa"),o=n("y3w9"),a=n("dyZX").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},mYba:function(e,t,n){var r=n("aCFj"),i=n("EemH").f;n("Xtr8")("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},mura:function(e,t,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},nBIS:function(e,t,n){var r=n("0/R4"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},nCnK:function(e,t,n){n("7DDg")("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},nGyu:function(e,t,n){var r=n("K0xU")("unscopables"),i=Array.prototype;void 0==i[r]&&n("Mukb")(i,r,{}),e.exports=function(e){i[r][e]=!0}},nICZ:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},ne8i:function(e,t,n){var r=n("RYi7"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},nh4g:function(e,t,n){e.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},nzyx:function(e,t,n){var r=n("XKFU"),i=n("LVwc");r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},oDIu:function(e,t,n){"use strict";var r=n("XKFU"),i=n("AvRE")(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},oNDv:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),e.extend(e.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),e.FE.PLUGINS.link=function(t){function n(){var n=t.image?t.image.get():null;if(!n&&t.$wp){var r=t.selection.ranges(0).commonAncestorContainer;try{r&&(r.contains&&r.contains(t.el)||!t.el.contains(r)||t.el==r)&&(r=null)}catch(e){r=null}if(r&&"A"===r.tagName)return r;var i=t.selection.element(),o=t.selection.endElement();"A"==i.tagName||t.node.isElement(i)||(i=e(i).parentsUntil(t.$el,"a:first").get(0)),"A"==o.tagName||t.node.isElement(o)||(o=e(o).parentsUntil(t.$el,"a:first").get(0));try{o&&(o.contains&&o.contains(t.el)||!t.el.contains(o)||t.el==o)&&(o=null)}catch(e){o=null}try{i&&(i.contains&&i.contains(t.el)||!t.el.contains(i)||t.el==i)&&(i=null)}catch(e){i=null}return o&&o==i&&"A"==o.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(i).atEnd||t.selection.info(i).atStart)?null:i:null}return"A"==t.el.tagName?t.el:n&&n.get(0).parentNode&&"A"==n.get(0).parentNode.tagName?n.get(0).parentNode:void 0}function r(){var e,n,r,i,o=t.image?t.image.get():null,a=[];if(o)"A"==o.get(0).parentNode.tagName&&a.push(o.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){i=t.doc.createRange();for(var l=0;l<s.rangeCount;++l)if((n=(e=s.getRangeAt(l)).commonAncestorContainer)&&1!=n.nodeType&&(n=n.parentNode),n&&"a"==n.nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a");for(var u=0;u<r.length;++u)i.selectNodeContents(r[u]),i.compareBoundaryPoints(e.END_TO_START,e)<1&&-1<i.compareBoundaryPoints(e.START_TO_END,e)&&a.push(r[u])}}}else if(t.doc.selection&&"Control"!=t.doc.selection.type)if("a"==(n=(e=t.doc.selection.createRange()).parentElement()).nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a"),i=t.doc.body.createTextRange();for(var c=0;c<r.length;++c)i.moveToElementText(r[c]),-1<i.compareEndPoints("StartToEnd",e)&&i.compareEndPoints("EndToStart",e)<1&&a.push(r[c])}return a}function i(r){if(t.core.hasFocus()){if(o(),r&&"keyup"===r.type&&(r.altKey||r.which==e.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!r||r&&(1==r.which||"mouseup"!=r.type)){var i=n(),o=t.image?t.image.get():null;if(i&&!o){if(t.image){var a=t.node.contents(i);if(1==a.length&&"IMG"==a[0].tagName){var s=t.selection.ranges(0);return 0===s.startOffset&&0===s.endOffset?e(i).before(e.FE.MARKERS):e(i).after(e.FE.MARKERS),t.selection.restore(),!1}}r&&r.stopPropagation(),function r(i){var o=t.popups.get("link.edit");o||(o=function(){var e="";1<=t.opts.linkEditButtons.length&&("A"==t.el.tagName&&0<=t.opts.linkEditButtons.indexOf("linkRemove")&&t.opts.linkEditButtons.splice(t.opts.linkEditButtons.indexOf("linkRemove"),1),e='<div class="fr-buttons">'+t.button.buildList(t.opts.linkEditButtons)+"</div>");var i={buttons:e},o=t.popups.create("link.edit",i);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",function(){n()&&t.popups.isVisible("link.edit")&&r(n())}),o}());var a=e(i);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=a.offset().left+e(i).outerWidth()/2,l=a.offset().top+a.outerHeight();t.popups.show("link.edit",s,l,a.outerHeight())}(i)}}},t.helpers.isIOS()?100:0)}}function o(){t.popups.hide("link.edit")}function a(){}function s(){var r=t.popups.get("link.insert"),i=n();if(i){var o,a,s=e(i),l=r.find('input.fr-link-attr[type="text"]'),u=r.find('input.fr-link-attr[type="checkbox"]');for(o=0;o<l.length;o++)(a=e(l[o])).val(s.attr(a.attr("name")||""));for(u.prop("checked",!1),o=0;o<u.length;o++)a=e(u[o]),s.attr(a.attr("name"))==a.data("checked")&&a.prop("checked",!0);r.find('input.fr-link-attr[type="text"][name="text"]').val(s.text())}else r.find('input.fr-link-attr[type="text"]').val(""),r.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),r.find('input.fr-link-attr[type="text"][name="text"]').val(t.selection.text());r.find("input.fr-link-attr").trigger("change"),t.image&&t.image.get()?r.find('.fr-link-attr[name="text"]').parent().hide():r.find('.fr-link-attr[name="text"]').parent().show()}function l(e){if(e)return t.popups.onRefresh("link.insert",s),t.popups.onHide("link.insert",a),!0;var n="";1<=t.opts.linkInsertButtons.length&&(n='<div class="fr-buttons">'+t.button.buildList(t.opts.linkInsertButtons)+"</div>");var r="",i=0;for(var o in r='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+t.id+'">',r+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+t.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+t.language.translate("URL")+'" tabIndex="'+ ++i+'"></div>',t.opts.linkText&&(r+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+t.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+t.language.translate("Text")+'" tabIndex="'+ ++i+'"></div>'),t.opts.linkAttributes)if(t.opts.linkAttributes.hasOwnProperty(o)){var l=t.opts.linkAttributes[o];r+='<div class="fr-input-line"><input name="'+o+'" type="text" class="fr-link-attr" placeholder="'+t.language.translate(l)+'" tabIndex="'+ ++i+'"></div>'}t.opts.linkAlwaysBlank||(r+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+t.id+'" tabIndex="'+ ++i+'"><span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg></span></span><label for="fr-link-target-'+t.id+'">'+t.language.translate("Open in new tab")+"</label></div>");var u={buttons:n,input_layer:r+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++i+'" type="button">'+t.language.translate("Insert")+"</button></div></div>"},d=t.popups.create("link.insert",u);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&f(),t.popups.isVisible("link.insert")&&c()}),d}function u(o,a,s){if(void 0===s&&(s={}),!1===t.events.trigger("link.beforeInsert",[o,a,s]))return!1;var l=t.image?t.image.get():null;l||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var u=o;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(o)&&!/^mailto:.*/i.test(o)&&(o="mailto:"+o),""===t.opts.linkAutoPrefix||new RegExp("^("+e.FE.LinkProtocols.join("|")+"):.","i").test(o)||/^data:image.*/i.test(o)||/^(https?:|ftps?:|file:|)\/\//i.test(o)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(o)||["/","{","[","#","(","."].indexOf((o||"")[0])<0&&(o=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(o)),o=t.helpers.sanitizeURL(o),t.opts.linkAlwaysBlank&&(s.target="_blank"),t.opts.linkAlwaysNoFollow&&(s.rel="nofollow"),"_blank"==s.target?(t.opts.linkNoOpener&&(s.rel?s.rel+=" noopener":s.rel="noopener"),t.opts.linkNoReferrer&&(s.rel?s.rel+=" noreferrer":s.rel="noreferrer")):null==s.target&&(s.rel?s.rel=s.rel.replace(/noopener/,"").replace(/noreferrer/,""):s.rel=null),a=a||"",o===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[u]),!1;var c,f=n();if(f){if((c=e(f)).attr("href",o),0<a.length&&c.text()!=a&&!l){for(var d=c.get(0);1===d.childNodes.length&&d.childNodes[0].nodeType==Node.ELEMENT_NODE;)d=d.childNodes[0];e(d).text(a)}l||c.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),c.attr(s),l||t.selection.restore()}else{l?l.wrap('<a href="'+o+'"></a>'):(t.format.remove("a"),t.selection.isCollapsed()?(a=0===a.length?u:a,t.html.insert('<a href="'+o+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):0<a.length&&a!=t.selection.text().replace(/\n/g,"")?(t.selection.remove(),t.html.insert('<a href="'+o+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):(function(){if(!t.selection.isCollapsed()){t.selection.save();for(var n=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();n.length;){var r=e(n.pop());r.removeClass("fr-unprocessed");var i=t.node.deepestParent(r.get(0));if(i){for(var o=r.get(0),a="",s="";o=o.parentNode,t.node.isBlock(o)||(a+=t.node.closeTagString(o),s=t.node.openTagString(o)+s),o!=i;);var l=t.node.openTagString(r.get(0))+r.html()+t.node.closeTagString(r.get(0));r.replaceWith('<span id="fr-break"></span>');var u=i.outerHTML;u=u.replace(/<span id="fr-break"><\/span>/g,a+l+s),i.outerHTML=u}n=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:o})));for(var p=r(),h=0;h<p.length;h++)(c=e(p[h])).attr(s),c.removeAttr("_moz_dirty");1==p.length&&t.$wp&&!l&&(e(p[0]).prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),t.selection.restore())}if(l){var g=t.popups.get("link.insert");g&&g.find("input:focus").blur(),t.image.edit(l)}else i()}function c(){o();var r=n();if(r){var i=t.popups.get("link.insert");i||(i=l()),t.popups.isVisible("link.insert")||(t.popups.refresh("link.insert"),t.selection.save(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur())),t.popups.setContainer("link.insert",t.$sc);var a=(t.image?t.image.get():null)||e(r),s=a.offset().left+a.outerWidth()/2,u=a.offset().top+a.outerHeight();t.popups.show("link.insert",s,u,a.outerHeight())}}function f(){var e=t.image?t.image.getEl():null;if(e){var n=t.popups.get("link.insert");t.image.hasCaption()&&(e=e.find(".fr-img-wrap")),n||(n=l()),s(),t.popups.setContainer("link.insert",t.$sc);var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+e.outerHeight();t.popups.show("link.insert",r,i,e.outerHeight())}}return{_init:function(){t.events.on("keyup",function(t){t.which!=e.FE.KEYCODE.ESC&&i(t)}),t.events.on("window.mouseup",i),t.events.$on(t.$el,"click","a",function(e){t.edit.isDisabled()&&e.preventDefault()}),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",i),l(!0),"A"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.on("toolbar.esc",function(){if(t.popups.isVisible("link.edit"))return t.events.disableBlur(),t.events.focus(),!1},!0)},remove:function(){var r=n(),i=t.image?t.image.get():null;if(!1===t.events.trigger("link.beforeRemove",[r]))return!1;i&&r?(i.unwrap(),t.image.edit(i)):r&&(t.selection.save(),e(r).replaceWith(e(r).html()),t.selection.restore(),o())},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertLink"]'),n=t.popups.get("link.insert");if(n||(n=l()),!n.hasClass("fr-active"))if(t.popups.refresh("link.insert"),t.popups.setContainer("link.insert",t.$tb||t.$sc),e.is(":visible")){var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("link.insert",r,i,e.outerHeight())}else t.position.forSelection(n),t.popups.show("link.insert")},usePredefined:function(n){var r,i,o=t.opts.linkList[n],a=t.popups.get("link.insert"),s=a.find('input.fr-link-attr[type="text"]'),l=a.find('input.fr-link-attr[type="checkbox"]');for(i=0;i<s.length;i++)o[(r=e(s[i])).attr("name")]?r.val(o[r.attr("name")]):"text"!=r.attr("name")&&r.val("");for(i=0;i<l.length;i++)(r=e(l[i])).prop("checked",r.data("checked")==o[r.attr("name")]);t.accessibility.focusPopup(a)},insertCallback:function(){var n,r,i=t.popups.get("link.insert"),o=i.find('input.fr-link-attr[type="text"]'),a=i.find('input.fr-link-attr[type="checkbox"]'),s=(o.filter('[name="href"]').val()||"").trim(),l=o.filter('[name="text"]').val(),c={};for(r=0;r<o.length;r++)n=e(o[r]),["href","text"].indexOf(n.attr("name"))<0&&(c[n.attr("name")]=n.val());for(r=0;r<a.length;r++)(n=e(a[r])).is(":checked")?c[n.attr("name")]=n.data("checked"):c[n.attr("name")]=n.data("unchecked")||null;var f=t.helpers.scrollTop();u(s,l,c),e(t.o_win).scrollTop(f)},insert:u,update:c,get:n,allSelected:r,back:function(){t.image&&t.image.get()?t.image.back():(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),n()&&t.$wp?(t.selection.restore(),o(),i()):"A"==t.el.tagName?(t.$el.focus(),i()):(t.popups.hide("link.insert"),t.toolbar.showInline()))},imageLink:f,applyStyle:function(r,o,a){void 0===a&&(a=t.opts.linkMultipleStyles),void 0===o&&(o=t.opts.linkStyles);var s=n();if(!s)return!1;if(!a){var l=Object.keys(o);l.splice(l.indexOf(r),1),e(s).removeClass(l.join(" "))}e(s).toggleClass(r),i()}}},e.FE.DefineIcon("insertLink",{NAME:"link"}),e.FE.RegisterShortcut(e.FE.KEYCODE.K,"insertLink",null,"K"),e.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),e.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),e.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},callback:function(){var e=this.link.get();e&&(this.o_win.open(e.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),e.FE.DefineIcon("linkEdit",{NAME:"edit"}),e.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkRemove",{NAME:"unlink"}),e.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var t=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||t||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkList",{NAME:"search"}),e.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkList,n=0;n<t.length;n++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+n+'">'+(t[n].displayText||t[n].text)+"</a></li>";return e+="</ul>"},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),e.FE.DefineIcon("imageLink",{NAME:"link"}),e.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkStyle",{NAME:"magic"}),e.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+n+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(t,n){var r=this.link.get();if(r){var i=e(r);n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=i.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})})?r.apply(t,i):r)||(e.exports=o)},"oZ/O":function(e,t,n){var r=n("XKFU"),i=n("y3w9"),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},ol8x:function(e,t,n){var r=n("dyZX").navigator;e.exports=r&&r.userAgent||""},"otY/":function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.FE.PLUGINS.align=function(t){return{apply:function(n){var r=t.selection.element();if(e(r).parents(".fr-img-caption").length)e(r).css("text-align",n);else{t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();for(var i=t.selection.blocks(),o=0;o<i.length;o++)t.helpers.getAlignment(e(i[o].parentNode))==n?e(i[o]).css("text-align","").removeClass("fr-temp-div"):e(i[o]).css("text-align",n).removeClass("fr-temp-div"),""===e(i[o]).attr("class")&&e(i[o]).removeAttr("class"),""===e(i[o]).attr("style")&&e(i[o]).removeAttr("style");t.selection.save(),t.html.unwrap(),t.selection.restore()}},refresh:function(n){var r=t.selection.blocks();if(r.length){var i=t.helpers.getAlignment(e(r[0]));n.find("> *:first").replaceWith(t.icon.create("align-"+i))}},refreshOnShow:function(n,r){var i=t.selection.blocks();if(i.length){var o=t.helpers.getAlignment(e(i[0]));r.find('a.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0)}}}},e.FE.DefineIcon("align",{NAME:"align-left"}),e.FE.DefineIcon("align-left",{NAME:"align-left"}),e.FE.DefineIcon("align-right",{NAME:"align-right"}),e.FE.DefineIcon("align-center",{NAME:"align-center"}),e.FE.DefineIcon("align-justify",{NAME:"align-justify"}),e.FE.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.align.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.icon.create("align-"+r)+'<span class="fr-sr-only">'+this.language.translate(n[r])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.align.apply(t)},refresh:function(e){this.align.refresh(e)},refreshOnShow:function(e,t){this.align.refreshOnShow(e,t)},plugin:"align"})})?r.apply(t,i):r)||(e.exports=o)},pIFo:function(e,t,n){"use strict";var r=n("y3w9"),i=n("S/j/"),o=n("ne8i"),a=n("RYi7"),s=n("A5AN"),l=n("Xxuz"),u=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("IU+Z")("replace",2,function(e,t,n,h){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var m=f.global;if(m){var v=f.unicode;f.lastIndex=0}for(var y=[];;){var b=l(f,d);if(null===b)break;if(y.push(b),!m)break;""===String(b[0])&&(f.lastIndex=s(d,o(f.lastIndex),v))}for(var w,$="",E=0,S=0;S<y.length;S++){b=y[S];for(var x=String(b[0]),C=u(c(a(b.index),d.length),0),T=[],k=1;k<b.length;k++)T.push(void 0===(w=b[k])?w:String(w));var _=b.groups;if(p){var A=[x].concat(T,C,d);void 0!==_&&A.push(_);var O=String(t.apply(void 0,A))}else O=g(x,d,C,T,_,t);C>=E&&($+=d.slice(E,C)+O,E=C+x.length)}return $+d.slice(E)}];function g(e,t,r,o,a,s){var l=r+e.length,u=o.length,c=p;return void 0!==a&&(a=i(a),c=d),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=f(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s})}})},pbhE:function(e,t,n){"use strict";var r=n("2OiF");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},"pp/T":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},qkWt:function(e,t,n){(function(r){!function(i){function o(e,t,n){var r=e||"en";if(t)o.locale[r]=t;else{for(;r&&!o.locale.hasOwnProperty(r);)r=r.replace(/[-_]?[^-_]*$/,"");r||(r=e.replace(/[-_].*$/,""),o.loadLocale(r))}this.lc=r,this.globalName=n||"i18n"}"locale"in o||(o.locale={}),o.loadLocale=function(e){try{var t=n("33yf").join(r,"locale",e+".js"),i=(""+n("Po9p").readFileSync(t)).match(/{[^]*}/);if(!i)throw"no function found in file '"+t+"'";o.locale[e]="function(n)"+i}catch(t){if("en"!=e)throw t.message="Locale "+e+" could not be loaded: "+t.message,t;o.locale[e]='function(n){return n===1?"one":"other"}'}},o.prototype.functions=function(){var e=[];for(var t in o.locale)o.locale.hasOwnProperty(t)&&e.push(JSON.stringify(t)+":"+o.locale[t].toString().trim());return"{lc:{"+e.join(",")+'},\nc:function(d,k){if(!d)throw new Error("MessageFormat: Data required for \'"+k+"\'.")},\nn:function(d,k,o){if(isNaN(d[k]))throw new Error("MessageFormat: \'"+k+"\' isn\'t a number.");return d[k]-(o||0)},\nv:function(d,k){'+this.globalName+".c(d,k);return d[k]},\np:function(d,k,o,l,p){"+this.globalName+".c(d,k);return d[k] in p?p[d[k]]:(k="+this.globalName+".lc[l](d[k]-o),k in p?p[k]:p.other)},\ns:function(d,k,p){"+this.globalName+".c(d,k);return d[k] in p?p[d[k]]:p.other}}"};var a=function(){function e(e,t,n,r,i,o){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=i,this.column=o,this.name="SyntaxError"}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,r=arguments.length>1?arguments[1]:{},i={},o={start:Se},a=Se,s=function(e){return{type:"program",program:e}},l=i,u=function(e,t){var n=[];for(var r in e&&e.val&&n.push(e),t)t.hasOwnProperty(r)&&n.push(t[r]);return{type:"messageFormatPattern",statements:n}},c="{",f={type:"literal",value:"{",description:'"{"'},d="}",p={type:"literal",value:"}",description:'"}"'},h=function(e,t){var n=[];return e&&n.push(e),t&&t.val&&n.push(t),{type:"messageFormatPatternRight",statements:n}},g=null,m=",",v={type:"literal",value:",",description:'","'},y=function(e,t){var n={type:"messageFormatElement",argumentIndex:e};return t&&t.length?n.elementFormat=t[1]:n.output=!0,n},b="plural",w={type:"literal",value:"plural",description:'"plural"'},$=function(e,t){return{type:"elementFormat",key:e,val:t.val}},E="select",S={type:"literal",value:"select",description:'"select"'},x=function(e){return{type:"pluralStyle",val:e}},C=function(e){return{type:"selectStyle",val:e}},T=function(e,t){var n={type:"pluralFormatPattern",pluralForms:t};return n.offset=e||0,n},k="offset",_={type:"literal",value:"offset",description:'"offset"'},A=":",O={type:"literal",value:":",description:'":"'},D=function(e){return e},M=function(e){return{type:"selectFormatPattern",pluralForms:e}},N=function(e,t){return{type:"pluralForms",key:e,val:t}},I=function(e){return e},F="=",R={type:"literal",value:"=",description:'"="'},P=function(e,t){for(var n=[],r=0;r<t.length;++r)for(var i=0;i<t[r].length;++i)n.push(t[r][i]);return{type:"string",val:e+n.join("")}},L=/^[0-9a-zA-Z$_]/,j={type:"class",value:"[0-9a-zA-Z$_]",description:"[0-9a-zA-Z$_]"},U=/^[^ \t\n\r,.+={}]/,B={type:"class",value:"[^ \\t\\n\\r,.+={}]",description:"[^ \\t\\n\\r,.+={}]"},H=function(e,t){return e+(t?t.join(""):"")},z=function(e){return e.join("")},V=/^[^{}\\\0-\x1F \t\n\r]/,Y={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},W=function(e){return e},q="\\#",K={type:"literal",value:"\\#",description:'"\\\\#"'},G=function(){return"\\#"},X="\\{",Z={type:"literal",value:"\\{",description:'"\\\\{"'},J=function(){return"{"},Q="\\}",ee={type:"literal",value:"\\}",description:'"\\\\}"'},te=function(){return"}"},ne="\\u",re={type:"literal",value:"\\u",description:'"\\\\u"'},ie=function(e,t,n,r){return String.fromCharCode(parseInt("0x"+e+t+n+r))},oe=/^[0-9]/,ae={type:"class",value:"[0-9]",description:"[0-9]"},se=function(e){return parseInt(e.join(""),10)},le=/^[0-9a-fA-F]/,ue={type:"class",value:"[0-9a-fA-F]",description:"[0-9a-fA-F]"},ce={type:"other",description:"whitespace"},fe=function(e){return e.join("")},de=/^[ \t\n\r]/,pe={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},he=0,ge=0,me={line:1,column:1,seenCR:!1},ve=0,ye=[],be=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=o[r.startRule]}function we(e){return ge!==e&&(ge>e&&(ge=0,me={line:1,column:1,seenCR:!1}),function(e,n,r){var i,o;for(i=n;i<r;i++)"\n"===(o=t.charAt(i))?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}(me,ge,e),ge=e),me}function $e(e){he<ve||(he>ve&&(ve=he,ye=[]),ye.push(e))}function Ee(n,r,i){var o=we(i),a=i<t.length?t.charAt(i):null;return null!==r&&function(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(r),new e(null!==n?n:function(e,t){var n,r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=e[n].description;return"Expected "+(e.length>1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}(t)+'"':"end of input")+" found."}(r,a),r,a,i,o.line,o.column)}function Se(){var e;return he,(e=xe())!==i&&(e=s(e)),e}function xe(){var e,t,n,r;if(e=he,(t=ke())!==i){for(n=[],r=Ce();r!==i;)n.push(r),r=Ce();n!==i?e=t=u(t,n):(he=e,e=l)}else he=e,e=l;return e}function Ce(){var e,n,r,o,a;return e=he,123===t.charCodeAt(he)?(n=c,he++):(n=i,0===be&&$e(f)),n!==i&&Ne()!==i&&(r=function(){var e,n,r,o,a;return e=he,(n=_e())!==i?(r=he,44===t.charCodeAt(he)?(o=m,he++):(o=i,0===be&&$e(v)),o!==i&&(a=function(){var e,n,r,o,a;return e=he,(n=Ne())!==i?(t.substr(he,6)===b?(r=b,he+=6):(r=i,0===be&&$e(w)),r!==i&&Ne()!==i?(44===t.charCodeAt(he)?(o=m,he++):(o=i,0===be&&$e(v)),o!==i&&Ne()!==i&&(a=function(){var e;return he,(e=function(){var e,n,r,o;if(e=he,(n=function(){var e,n,r,o,a;return e=he,(n=Ne())!==i?(t.substr(he,6)===k?(r=k,he+=6):(r=i,0===be&&$e(_)),r!==i&&Ne()!==i?(58===t.charCodeAt(he)?(o=A,he++):(o=i,0===be&&$e(O)),o!==i&&Ne()!==i&&(a=De())!==i&&Ne()!==i?(n=D(a),e=n):(he=e,e=l)):(he=e,e=l)):(he=e,e=l),e}())===i&&(n=g),n!==i){for(r=[],o=Te();o!==i;)r.push(o),o=Te();r!==i?(n=T(n,r),e=n):(he=e,e=l)}else he=e,e=l;return e}())!==i&&(e=x(e)),e}())!==i&&Ne()!==i?(n=$(r,a),e=n):(he=e,e=l)):(he=e,e=l)):(he=e,e=l),e===i&&(e=he,(n=Ne())!==i?(t.substr(he,6)===E?(r=E,he+=6):(r=i,0===be&&$e(S)),r!==i&&Ne()!==i?(44===t.charCodeAt(he)?(o=m,he++):(o=i,0===be&&$e(v)),o!==i&&Ne()!==i&&(a=function(){var e;return he,(e=function(){var e,t;for(he,e=[],t=Te();t!==i;)e.push(t),t=Te();return e!==i&&(e=M(e)),e}())!==i&&(e=C(e)),e}())!==i&&Ne()!==i?(n=$(r,a),e=n):(he=e,e=l)):(he=e,e=l)):(he=e,e=l)),e}())!==i?r=o=[o,a]:(he=r,r=l),r===i&&(r=g),r!==i?(n=y(n,r),e=n):(he=e,e=l)):(he=e,e=l),e}())!==i&&Ne()!==i?(125===t.charCodeAt(he)?(o=d,he++):(o=i,0===be&&$e(p)),o!==i&&(a=ke())!==i?e=n=h(r,a):(he=e,e=l)):(he=e,e=l),e}function Te(){var e,n,r,o,a;return e=he,Ne()!==i&&(n=function(){var e,n,r;return e=he,(n=_e())!==i&&(n=I(n)),(e=n)===i&&(e=he,61===t.charCodeAt(he)?(n=F,he++):(n=i,0===be&&$e(R)),n!==i&&(r=De())!==i?(n=D(r),e=n):(he=e,e=l)),e}())!==i&&Ne()!==i?(123===t.charCodeAt(he)?(r=c,he++):(r=i,0===be&&$e(f)),r!==i&&Ne()!==i&&(o=xe())!==i&&Ne()!==i?(125===t.charCodeAt(he)?(a=d,he++):(a=i,0===be&&$e(p)),a!==i?e=N(n,o):(he=e,e=l)):(he=e,e=l)):(he=e,e=l),e}function ke(){var e,t,n,r,o,a,s;if(e=he,(t=Ne())!==i){for(n=[],r=he,(o=Ne())!==i&&(a=Ae())!==i&&(s=Ne())!==i?r=o=[o,a,s]:(he=r,r=l);r!==i;)n.push(r),r=he,(o=Ne())!==i&&(a=Ae())!==i&&(s=Ne())!==i?r=o=[o,a,s]:(he=r,r=l);n!==i?e=t=P(t,n):(he=e,e=l)}else he=e,e=l;return e}function _e(){var e,n,r,o;if(e=he,Ne()!==i)if(L.test(t.charAt(he))?(n=t.charAt(he),he++):(n=i,0===be&&$e(j)),n!==i){for(r=[],U.test(t.charAt(he))?(o=t.charAt(he),he++):(o=i,0===be&&$e(B));o!==i;)r.push(o),U.test(t.charAt(he))?(o=t.charAt(he),he++):(o=i,0===be&&$e(B));r!==i&&(o=Ne())!==i?e=H(n,r):(he=e,e=l)}else he=e,e=l;else he=e,e=l;return e}function Ae(){var e,t;if(he,e=[],(t=Oe())!==i)for(;t!==i;)e.push(t),t=Oe();else e=l;return e!==i&&(e=z(e)),e}function Oe(){var e,n,r,o,a,s;return e=he,V.test(t.charAt(he))?(n=t.charAt(he),he++):(n=i,0===be&&$e(Y)),n!==i&&(n=W(n)),(e=n)===i&&(e=he,t.substr(he,2)===q?(n=q,he+=2):(n=i,0===be&&$e(K)),n!==i&&(n=G()),(e=n)===i&&(e=he,t.substr(he,2)===X?(n=X,he+=2):(n=i,0===be&&$e(Z)),n!==i&&(n=J()),(e=n)===i&&(e=he,t.substr(he,2)===Q?(n=Q,he+=2):(n=i,0===be&&$e(ee)),n!==i&&(n=te()),(e=n)===i&&(e=he,t.substr(he,2)===ne?(n=ne,he+=2):(n=i,0===be&&$e(re)),n!==i&&(r=Me())!==i&&(o=Me())!==i&&(a=Me())!==i&&(s=Me())!==i?e=n=ie(r,o,a,s):(he=e,e=l))))),e}function De(){var e,n;if(he,e=[],oe.test(t.charAt(he))?(n=t.charAt(he),he++):(n=i,0===be&&$e(ae)),n!==i)for(;n!==i;)e.push(n),oe.test(t.charAt(he))?(n=t.charAt(he),he++):(n=i,0===be&&$e(ae));else e=l;return e!==i&&(e=se(e)),e}function Me(){var e;return le.test(t.charAt(he))?(e=t.charAt(he),he++):(e=i,0===be&&$e(ue)),e}function Ne(){var e,t,n;for(be++,e=he,t=[],n=Ie();n!==i;)t.push(n),n=Ie();return t!==i&&(t=fe(t)),be--,(e=t)===i&&(t=i,0===be&&$e(ce)),e}function Ie(){var e;return de.test(t.charAt(he))?(e=t.charAt(he),he++):(e=i,0===be&&$e(pe)),e}if((n=a())!==i&&he===t.length)return n;throw n!==i&&he<t.length&&$e({type:"end",description:"end of input"}),Ee(null,ye,ve)}}}();o.prototype.parse=function(){return a.parse.apply(a,arguments)},o.prototype.precompile=function(e){var t=this,n=!1;function r(e){var t=JSON.parse(JSON.stringify(e));return t.pf_count++,t}return function e(i,o){o=o||{keys:{},offset:{}};var a,s,l=[];switch(i.type){case"program":return e(i.program);case"messageFormatPattern":for(a=0;a<i.statements.length;++a)l.push(e(i.statements[a],o));return s=l.join("+")||'""',o.pf_count?s:"function(d){return "+s+"}";case"messageFormatPatternRight":for(a=0;a<i.statements.length;++a)l.push(e(i.statements[a],o));return l.join("+");case"messageFormatElement":return o.pf_count=o.pf_count||0,i.output?t.globalName+'.v(d,"'+i.argumentIndex+'")':(o.keys[o.pf_count]='"'+i.argumentIndex+'"',e(i.elementFormat,o));case"elementFormat":return"select"===i.key?t.globalName+".s(d,"+o.keys[o.pf_count]+","+e(i.val,o)+")":"plural"===i.key?(o.offset[o.pf_count||0]=i.val.offset||0,t.globalName+".p(d,"+o.keys[o.pf_count]+","+(o.offset[o.pf_count]||0)+',"'+t.lc+'",'+e(i.val,o)+")"):"";case"pluralFormatPattern":for(o.pf_count=o.pf_count||0,n=!0,a=0;a<i.pluralForms.length;++a)"other"===i.pluralForms[a].key&&(n=!1),l.push('"'+i.pluralForms[a].key+'":'+e(i.pluralForms[a].val,r(o)));if(n)throw new Error("No 'other' form found in pluralFormatPattern "+o.pf_count);return"{"+l.join(",")+"}";case"selectFormatPattern":for(o.pf_count=o.pf_count||0,o.offset[o.pf_count]=0,n=!0,a=0;a<i.pluralForms.length;++a)"other"===i.pluralForms[a].key&&(n=!1),l.push('"'+i.pluralForms[a].key+'":'+e(i.pluralForms[a].val,r(o)));if(n)throw new Error("No 'other' form found in selectFormatPattern "+o.pf_count);return"{"+l.join(",")+"}";case"string":if(s='"'+(i.val||"").replace(/\n/g,"\\n").replace(/"/g,'\\"')+'"',o.pf_count){var u=o.offset[o.pf_count-1];s=(s=s.replace(/(^|[^\\])#/g,'$1"+'+t.globalName+".n(d,"+o.keys[o.pf_count-1]+(u?","+u:"")+')+"')).replace(/^""\+/,"").replace(/\+""$/,"")}return s;default:throw new Error("Bad AST type: "+i.type)}}(e)},o.prototype.compile=function(e){return new Function("this['"+this.globalName+"']="+this.functions()+";return "+this.precompile(this.parse(e)))()},o.prototype.precompileObject=function(e){var t=[];for(var n in e)t.push(JSON.stringify(n)+":"+this.precompile(this.parse(e[n])));return"{\n"+t.join(",\n")+"}"},void 0!==e&&e.exports&&(t=e.exports=o),t.MessageFormat=o}()}).call(this,"/")},quPj:function(e,t,n){var r=n("0/R4"),i=n("LZWt"),o=n("K0xU")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},quh4:function(e,t,n){var r,i,o;!function(a){"use strict";i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){var t=e.scrollTo=function(t,n,r){return e(window).scrollTo(t,n,r)};function n(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function r(e){return"function"==typeof e}function i(t){return r(t)||e.isPlainObject(t)?t:{top:t,left:t}}return t.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(o,a,s){"object"==typeof a&&(s=a,a=0),"function"==typeof s&&(s={onAfter:s}),"max"===o&&(o=9e9),s=e.extend({},t.defaults,s),a=a||s.duration;var l=s.queue&&s.axis.length>1;return l&&(a/=2),s.offset=i(s.offset),s.over=i(s.over),this.each(function(){if(null!==o){var u,c=n(this),f=c?this.contentWindow||window:this,d=e(f),p=o,h={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=i(p);break}p=c?e(p):e(p,f);case"object":if(0===p.length)return;(p.is||p.style)&&(u=(p=e(p)).offset())}var g=r(s.offset)&&s.offset(f,p)||s.offset;e.each(s.axis.split(""),function(e,n){var r="x"===n?"Left":"Top",i=r.toLowerCase(),o="scroll"+r,a=d[o](),v=t.max(f,n);if(u)h[o]=u[i]+(c?0:a-d.offset()[i]),s.margin&&(h[o]-=parseInt(p.css("margin"+r),10)||0,h[o]-=parseInt(p.css("border"+r+"Width"),10)||0),h[o]+=g[i]||0,s.over[i]&&(h[o]+=p["x"===n?"width":"height"]()*s.over[i]);else{var y=p[i];h[o]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}s.limit&&/^\d+$/.test(h[o])&&(h[o]=h[o]<=0?0:Math.min(h[o],v)),!e&&s.axis.length>1&&(a===h[o]?h={}:l&&(m(s.onAfterFirst),h={}))}),m(s.onAfter)}function m(t){var n=e.extend({},s,{queue:!0,duration:a,complete:t&&function(){t.call(f,p,s)}});d.animate(h,n)}})},t.max=function(t,r){var i="x"===r?"Width":"Height",o="scroll"+i;if(!n(t))return t[o]-e(t)[i.toLowerCase()]();var a="client"+i,s=t.ownerDocument||t.document,l=s.documentElement,u=s.body;return Math.max(l[o],u[o])-Math.min(l[a],u[a])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var r=Math.round(t.now);n!==r&&(e(t.elem)[t.prop](r),t._last=this.get(t))}},t})?r.apply(t,i):r)||(e.exports=o)}()},r1bV:function(e,t,n){n("7DDg")("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},rGqo:function(e,t,n){for(var r=n("yt8O"),i=n("DVgA"),o=n("KroJ"),a=n("dyZX"),s=n("Mukb"),l=n("hPIQ"),u=n("K0xU"),c=u("iterator"),f=u("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),g=0;g<h.length;g++){var m,v=h[g],y=p[v],b=a[v],w=b&&b.prototype;if(w&&(w[c]||s(w,c,d),w[f]||s(w,f,v),l[v]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},riYO:function(e,t){!function(){"use strict";angular.module("ui.mask",[]).value("uiMaskConfig",{maskDefinitions:{9:/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},clearOnBlur:!0,clearOnBlurPlaceholder:!1,escChar:"\\",eventsToHandle:["input","keyup","click","focus"],addDefaultPlaceholder:!0,allowInvalidValue:!1}).provider("uiMask.Config",function(){var e={};this.maskDefinitions=function(t){return e.maskDefinitions=t},this.clearOnBlur=function(t){return e.clearOnBlur=t},this.clearOnBlurPlaceholder=function(t){return e.clearOnBlurPlaceholder=t},this.eventsToHandle=function(t){return e.eventsToHandle=t},this.addDefaultPlaceholder=function(t){return e.addDefaultPlaceholder=t},this.allowInvalidValue=function(t){return e.allowInvalidValue=t},this.$get=["uiMaskConfig",function(t){var n=t;for(var r in e)angular.isObject(e[r])&&!angular.isArray(e[r])?angular.extend(n[r],e[r]):n[r]=e[r];return n}]}).directive("uiMask",["uiMask.Config",function(e){function t(e){return e===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(e.type||e.href||~e.tabIndex)}return{priority:100,require:"ngModel",restrict:"A",compile:function(){var n=angular.copy(e);return function(e,r,i,o){function a(e){return angular.isDefined(e)?(function(e){var t=0;if(S=[],x=[],C="",angular.isString(e)){k=0;var n=!1,r=0,i=e.split(""),o=!1;angular.forEach(i,function(e,i){o?(o=!1,C+=e,t++):B.escChar===e?o=!0:B.maskDefinitions[e]?(S.push(t),C+=p(i-r),x.push(B.maskDefinitions[e]),t++,n||k++,n=!1):"?"===e?(n=!0,r++):(C+=e,t++)})}S.push(S.slice().pop()+1),T=function(){var e,t=C.split("");S&&!isNaN(S[0])&&angular.forEach(S,function(e){t[e]="_"}),e=t.join("");var n=0;return e.replace(/[_]+/g,"_").split("_").filter(function(e){return""!==e}).map(function(t){var r=e.indexOf(t,n);return n=r+1,{value:t,position:r}})}(),F=S.length>1}(e),F?(function(){_=D=f(o.$modelValue||""),O=d(_),A=c(_),i.maxlength&&r.attr("maxlength",2*S[S.length-1]),!P&&B.addDefaultPlaceholder&&r.attr("placeholder",C);for(var e=o.$modelValue,t=o.$formatters.length;t--;)e=o.$formatters[t](e);o.$viewValue=e||"",o.$render()}(),R||(r.bind("blur",h),r.bind("mousedown mouseup",g),r.bind("keydown",v),r.bind(B.eventsToHandle.join(" "),y),R=!0),!0):u()):u()}function s(e){e&&(C=e,!F||0===r.val().length&&angular.isDefined(i.placeholder)||r.val(d(f(r.val()))))}function l(e){return F?(_=f(e||""),A=c(_),o.$setValidity("mask",A),_.length&&(A||B.allowInvalidValue)?d(_):void 0):e}function u(){return F=!1,R&&(r.unbind("blur",h),r.unbind("mousedown",g),r.unbind("mouseup",g),r.unbind("keydown",v),r.unbind("input",y),r.unbind("keyup",y),r.unbind("click",y),r.unbind("focus",y),R=!1),angular.isDefined(P)?r.attr("placeholder",P):r.removeAttr("placeholder"),angular.isDefined(L)?r.attr("maxlength",L):r.removeAttr("maxlength"),r.val(o.$modelValue),o.$viewValue=o.$modelValue,!1}function c(e){return!e.length||e.length>=k}function f(e){var t,n,i="",o=r[0],a=x.slice(),s=M,l=s+E(o),u="";return e=e.toString(),t=0,n=e.length-C.length,angular.forEach(T,function(r){var i=r.position;i>=s&&l>i||(i>=s&&(i+=n),e.substring(i,i+r.value.length)===r.value&&(u+=e.slice(t,i),t=i+r.value.length))}),e=u+e.slice(t),angular.forEach(e.split(""),function(e){a.length&&a[0].test(e)&&(i+=e,a.shift())}),i}function d(e){var t="",n=S.slice();return angular.forEach(C.split(""),function(r,i){e.length&&i===n[0]?(t+=e.charAt(0)||"_",e=e.substr(1),n.shift()):t+=r}),t}function p(e){var t,n=angular.isDefined(i.uiMaskPlaceholder)?i.uiMaskPlaceholder:i.placeholder;return angular.isDefined(n)&&n[e]?n[e]:"space"===(t=angular.isDefined(i.uiMaskPlaceholderChar)&&i.uiMaskPlaceholderChar?i.uiMaskPlaceholderChar:"_").toLowerCase()?" ":t[0]}function h(){if((B.clearOnBlur||B.clearOnBlurPlaceholder&&0===_.length&&i.placeholder)&&(M=0,N=0,A&&0!==_.length||("",r.val(""),e.$apply(function(){o.$pristine||o.$setViewValue("")}))),_!==H){var t=r.val(),n=""===_&&t&&angular.isDefined(i.uiMaskPlaceholderChar)&&"space"===i.uiMaskPlaceholderChar;n&&r.val(""),function(e){var t;angular.isFunction(window.Event)&&!e.fireEvent?(t=new Event("change",{view:window,bubbles:!0,cancelable:!1}),e.dispatchEvent(t)):"createEvent"in document?((t=document.createEvent("HTMLEvents")).initEvent("change",!1,!0),e.dispatchEvent(t)):e.fireEvent&&e.fireEvent("onchange")}(r[0]),n&&r.val(t)}H=_}function g(e){"mousedown"===e.type?r.bind("mouseout",m):r.unbind("mouseout",m)}function m(){N=E(this),r.unbind("mouseout",m)}function v(e){var t=8===e.which,n=w(this)-1||0,i=90===e.which&&e.ctrlKey;if(t){for(;n>=0;){if(b(n)){$(this,n+1);break}n--}I=-1===n}i&&(r.val(""),e.preventDefault())}function y(t){var n=(t=t||{}).which,i=t.type;if(16!==n&&91!==n){var a,s=r.val(),l=O,u=!1,c=f(s),p=D,h=w(this)||0,g=M||0,m=h-g,v=S[0],y=S[c.length]||S.slice().shift(),x=N||0,T=E(this)>0,k=x>0,_=s.length>l.length||x&&s.length>l.length-x,A=s.length<l.length||x&&s.length===l.length-x,F=n>=37&&40>=n&&t.shiftKey,R=8===n||"keyup"!==i&&A&&-1===m,P=46===n||"keyup"!==i&&A&&0===m&&!k,L=(37===n||R||"click"===i)&&h>v;if(N=E(this),!F&&(!T||"click"!==i&&"keyup"!==i&&"focus"!==i)){if(R&&I)return r.val(C),e.$apply(function(){o.$setViewValue("")}),void $(this,g);if("input"===i&&A&&!k&&c===p){for(;R&&h>v&&!b(h);)h--;for(;P&&y>h&&-1===S.indexOf(h);)h++;var j=S.indexOf(h);(c=c.substring(0,j)+c.substring(j+1))!==p&&(u=!0)}for(a=d(c),O=a,D=c,!u&&s.length>a.length&&(u=!0),r.val(a),u&&e.$apply(function(){o.$setViewValue(a)}),_&&v>=h&&(h=v+1),L&&h--,h=h>y?y:v>h?v:h;!b(h)&&h>v&&y>h;)h+=L?-1:1;(L&&y>h||_&&!b(g))&&h++,M=h,$(this,h)}}}function b(e){return S.indexOf(e)>-1}function w(e){if(!e)return 0;if(void 0!==e.selectionStart)return e.selectionStart;if(document.selection&&t(r[0])){e.focus();var n=document.selection.createRange();return n.moveStart("character",e.value?-e.value.length:0),n.text.length}return 0}function $(e,n){if(!e)return 0;if(0!==e.offsetWidth&&0!==e.offsetHeight)if(e.setSelectionRange)t(r[0])&&(e.focus(),e.setSelectionRange(n,n));else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",n),i.select()}}function E(e){return e?void 0!==e.selectionStart?e.selectionEnd-e.selectionStart:window.getSelection?window.getSelection().toString().length:document.selection?document.selection.createRange().text.length:0:0}var S,x,C,T,k,_,A,O,D,M,N,I,F=!1,R=!1,P=i.placeholder,L=i.maxlength,j=o.$isEmpty;o.$isEmpty=function(e){return j(F?f(e||""):e)};var U=!1;i.$observe("modelViewValue",function(e){"true"===e&&(U=!0)}),i.$observe("allowInvalidValue",function(e){B.allowInvalidValue=""===e||!!e,l(o.$modelValue)});var B={};i.uiOptions?(B=e.$eval("["+i.uiOptions+"]"),B=angular.isObject(B[0])?function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===t[n]?t[n]=angular.copy(e[n]):angular.isObject(t[n])&&!angular.isArray(t[n])&&(t[n]=angular.extend({},e[n],t[n])));return t}(n,B[0]):n):B=n,i.$observe("uiMask",a),angular.isDefined(i.uiMaskPlaceholder)?i.$observe("uiMaskPlaceholder",s):i.$observe("placeholder",s),angular.isDefined(i.uiMaskPlaceholderChar)&&i.$observe("uiMaskPlaceholderChar",function(){return a(i.uiMask)}),o.$formatters.unshift(l),o.$parsers.unshift(function(e){return F?(_=f(e||""),A=c(_),o.$viewValue=_.length?d(_):"",o.$setValidity("mask",A),A||B.allowInvalidValue?U?o.$viewValue:_:void 0):e});var H=r.val();r.bind("mousedown mouseup",g),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=0;if(arguments.length>1&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var i=r>=0?r:Math.max(n-Math.abs(r),0);n>i;i++)if(i in t&&t[i]===e)return i;return-1})}}}}])}()},rvZc:function(e,t,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".endsWith;r(r.P+r.F*n("UUeW")("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),s=void 0===n?r:Math.min(i(n),r),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},ryX7:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"}),e.FE.PLUGINS.fontFamily=function(t){function n(t){var n=t.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return e.grep(n,function(e){return 0<e.length})}function r(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)if(e[n].toLowerCase()==t[r].toLowerCase())return[n,r];return null}function i(){var i=n(e(t.selection.element()).css("font-family")),o=[];for(var a in t.opts.fontFamily)if(t.opts.fontFamily.hasOwnProperty(a)){var s=r(i,n(a));s&&o.push([a,s])}return 0===o.length?null:(o.sort(function(e,t){var n=e[1][0]-t[1][0];return 0===n?e[1][1]-t[1][1]:n}),o[0][0])}return{apply:function(e){t.format.applyStyle("font-family",e)},refreshOnShow:function(e,t){t.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),t.find('.fr-command[data-param1="'+i()+'"]').addClass("fr-active").attr("aria-selected",!0);var n=t.find(".fr-dropdown-list"),r=t.find(".fr-active").parent();r.length?n.parent().scrollTop(r.offset().top-n.offset().top-(n.parent().outerHeight()/2-r.outerHeight()/2)):n.parent().scrollTop(0)},refresh:function(n){if(t.opts.fontFamilySelection){var r=e(t.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(",");n.find("> span").text(t.opts.fontFamily[i()]||r[0]||t.language.translate(t.opts.fontFamilyDefaultSelection))}}}},e.FE.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontFamily;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'+n+'" style="font-family: '+n+'" title="'+t[n]+'">'+t[n]+"</a></li>");return e+="</ul>"},title:"Font Family",callback:function(e,t){this.fontFamily.apply(t)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,t){this.fontFamily.refreshOnShow(e,t)},plugin:"fontFamily"}),e.FE.DefineIcon("fontFamily",{NAME:"font"})})?r.apply(t,i):r)||(e.exports=o)},s5qY:function(e,t,n){var r=n("0/R4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},sFw1:function(e,t,n){n("7DDg")("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},sMXx:function(e,t,n){"use strict";var r=n("Ugos");n("XKFU")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},sbF8:function(e,t,n){var r=n("XKFU"),i=n("nBIS"),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},sfw5:function(e,t,n){var r,i,o;i=[n("EVdn")],void 0===(o="function"==typeof(r=function(e){var t=function(n,r){this.id=++e.FE.ID,this.opts=e.extend(!0,{},e.extend({},t.DEFAULTS,"object"==typeof r&&r));var i=JSON.stringify(this.opts);e.FE.OPTS_MAPPING[i]=e.FE.OPTS_MAPPING[i]||this.id,this.sid=e.FE.OPTS_MAPPING[i],e.FE.SHARED[this.sid]=e.FE.SHARED[this.sid]||{},this.shared=e.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=e(n),this.$oel.data("froala.editor",this),this.o_doc=n.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var o=e(this.o_win).scrollTop();this.$oel.on("froala.doInit",e.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=e(this.doc),this.$win=e(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(e.FE.PLUGINS)),this.opts.initOnClick?(this.load(e.FE.MODULES),this.$el.on("touchstart.init",function(){e(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){e(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",e.proxy(function(t){if("touchend"==t.type&&!this.$el.data("touched"))return!0;if(1===t.which||!t.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(e.FE.MODULES),this.load(e.FE.PLUGINS);var n=t.originalEvent&&t.originalEvent.originalTarget;n&&"IMG"==n.tagName&&e(n).trigger("mousedown"),void 0===this.ul&&this.destroy(),"touchend"==t.type&&this.image&&t.originalEvent&&t.originalEvent.target&&e(t.originalEvent.target).is("img")&&setTimeout(e.proxy(function(){this.image.edit(e(t.originalEvent.target))},this),100),this.ready=!0,this.events.trigger("initialized")}},this)),this.events.trigger("initializationDelayed")):(this.load(e.FE.MODULES),this.load(e.FE.PLUGINS),e(this.o_win).scrollTop(o),void 0===this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))},this)),this._init()};t.DEFAULTS={initOnClick:!1,pluginsEnabled:null},t.MODULES={},t.PLUGINS={},t.VERSION="2.8.4",t.INSTANCES=[],t.OPTS_MAPPING={},t.SHARED={},t.ID=0,t.prototype._init=function(){var t=this.$oel.prop("tagName");this.$oel.closest("label").length;var n=e.proxy(function(){"TEXTAREA"!=t&&(this._original_html=this._original_html||this.$oel.html()),this.$box=this.$box||this.$oel,this.opts.fullPage&&(this.opts.iframe=!0),this.opts.iframe?(this.$iframe=e('<iframe src="about:blank" frameBorder="0">'),this.$wp=e("<div></div>"),this.$box.html(this.$wp),this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.$el=this.$iframe.contents().find("body"),this.el=this.$el.get(0),this.$head=this.$iframe.contents().find("head"),this.$html=this.$iframe.contents().find("html"),this.iframe_document=this.$iframe.get(0).contentWindow.document):(this.$el=e("<div></div>"),this.el=this.$el.get(0),this.$wp=e("<div></div>").append(this.$el),this.$box.html(this.$wp)),this.$oel.trigger("froala.doInit")},this),r=e.proxy(function(){this.$box=e("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val(),this.$oel.parents("form").on("submit."+this.id,e.proxy(function(){this.events.trigger("form.submit")},this)),this.$oel.parents("form").on("reset."+this.id,e.proxy(function(){this.events.trigger("form.reset")},this)),n()},this),i=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block"),this.opts.multiLine=!1,this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),o=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),a=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",function(e){e.preventDefault()}),this.$oel.trigger("froala.doInit")},this);this.opts.editInPopup?a():"TEXTAREA"==t?r():"A"==t?i():"IMG"==t?o():"BUTTON"==t||"INPUT"==t?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,a()):n()},t.prototype.load=function(t){for(var n in t)if(t.hasOwnProperty(n)){if(this[n])continue;if(e.FE.PLUGINS[n]&&this.opts.pluginsEnabled.indexOf(n)<0)continue;if(this[n]=new t[n](this),this[n]._init&&(this[n]._init(),this.opts.initOnClick&&"core"==n))return!1}},t.prototype.destroy=function(){this.shared.count--,this.events.$off();var t=this.html.get();if(this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur()),this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",void 0,!0),0===this.shared.count){for(var n in this.shared)this.shared.hasOwnProperty(n)&&(this.shared[n],e.FE.SHARED[this.sid][n]=null);delete e.FE.SHARED[this.sid]}this.$oel.parents("form").off("."+this.id),this.$oel.off("click.popup"),this.$oel.removeData("froala.editor"),this.$oel.off("froalaEditor"),this.core.destroy(t),e.FE.INSTANCES.splice(e.FE.INSTANCES.indexOf(this),1)},e.fn.froalaEditor=function(n){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);if("string"==typeof n){var o=[];return this.each(function(){var t=e(this).data("froala.editor");if(t){var i,a;if(0<n.indexOf(".")&&t[n.split(".")[0]]?(t[n.split(".")[0]]&&(i=t[n.split(".")[0]]),a=n.split(".")[1]):(i=t,a=n.split(".")[0]),!i[a])return e.error("Method "+n+" does not exist in Froala Editor.");var s=i[a].apply(t,r.slice(1));void 0===s?o.push(this):0===o.length&&o.push(s)}}),1==o.length?o[0]:o}if("object"==typeof n||!n)return this.each(function(){e(this).data("froala.editor")||new t(this,n)})},e.fn.froalaEditor.Constructor=t,e.FroalaEditor=t,e.FE=t,e.FE.XS=0,e.FE.SM=1,e.FE.MD=2,e.FE.LG=3,e.FE.LinkRegExCommon="[a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_.]{1,}",e.FE.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;/~+#-\\'*-_{}]*)|())",e.FE.LinkRegExTLD="(("+e.FE.LinkRegExCommon+")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))",e.FE.LinkRegExHTTP="((ftp|http|https):\\/\\/"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExWWW="(www\\."+e.FE.LinkRegExCommon+"\\.[a-z0-9-]{2,24})",e.FE.LinkRegEx="("+e.FE.LinkRegExTLD+"|"+e.FE.LinkRegExHTTP+"|"+e.FE.LinkRegExWWW+"|"+e.FE.LinkRegExAuth+")"+e.FE.LinkRegExEnd,e.FE.LinkProtocols=["mailto","tel","sms","notes","data"],e.FE.MAIL_REGEX=/.+@.+\..+/i,e.FE.MODULES.helpers=function(t){function n(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!o()}function r(){return/(Android)/g.test(navigator.userAgent)&&!o()}function i(){return/(Blackberry)/g.test(navigator.userAgent)}function o(){return/(Windows Phone)/gi.test(navigator.userAgent)}function a(e){return parseInt(e,10)||0}var s,l=null;return{_init:function(){t.browser=function(){var e,t,n={},r=(t=-1,"Microsoft Internet Explorer"==navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t);if(0<r)n.msie=!0;else{var i=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(i)||/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[],a=o[1]||"";o[2],o[1]&&(n[a]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0)}return n.msie&&(n.version=r),n}(),function(){function e(e,t){var i=e[t];e[t]=function(e){var t,o=!1,a=!1;if(e&&e.match(r)){e=e.replace(r,""),this.parentNode||(n.appendChild(this),a=!0);var s=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),o=!0),t=i.call(s,"#"+this.id+" "+e),o&&(this.id=""),a&&n.removeChild(this),t}return i.call(this,e)}}var n=t.o_doc.createElement("div");try{n.querySelectorAll(":scope *")}catch(t){var r=/^\s*:scope/gi;e(Element.prototype,"querySelector"),e(Element.prototype,"querySelectorAll"),e(HTMLElement.prototype,"querySelector"),e(HTMLElement.prototype,"querySelectorAll")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!t)return null;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},isIOS:n,isMac:function(){return null==l&&(l=0<=navigator.platform.toUpperCase().indexOf("MAC")),l},isAndroid:r,isBlackberry:i,isWindowsPhone:o,isMobile:function(){return r()||n()||i()},isEmail:function(t){return!/^(https?:|ftps?:|)\/\//i.test(t)&&e.FE.MAIL_REGEX.test(t)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:a,screenSize:function(){var t=e('<div class="fr-visibility-helper"></div>').appendTo("body:first");try{var n=a(t.css("margin-left"));return t.remove(),n}catch(t){return e.FE.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},sanitizeURL:function(t){return/^(https?:|ftps?:|)\/\//i.test(t)?t:/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(t)?t:new RegExp("^("+e.FE.LinkProtocols.join("|")+"):\\/\\/","i").test(t)?t:t=encodeURIComponent(t).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sms%3A/gi,"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}")},isArray:function(e){return e&&!e.propertyIsEnumerable("length")&&"object"==typeof e&&"number"==typeof e.length},RGBToHex:function(e){function t(e){return("0"+parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:("#"+t((e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(e[2])+t(e[3])).toUpperCase():""}catch(e){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16)+")":""},isURL:function(t){return!!/^(https?:|ftps?:|)\/\//i.test(t)&&(t=String(t).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^"+e.FE.LinkRegExHTTP+e.FE.LinkRegExEnd+"$","gi").test(t))},getAlignment:function(n){var r=(n.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(r)<0){if(!s){var i=e('<div dir="'+("rtl"==t.opts.direction?"rtl":"auto")+'" style="text-align: '+t.$el.css("text-align")+'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>');e("body:first").append(i);var o=i.find("#s1").get(0).getBoundingClientRect().left,a=i.find("#s2").get(0).getBoundingClientRect().left;i.remove(),s=o<a?"left":"right"}r=s}return r},scrollTop:function(){return t.o_win.pageYOffset?t.o_win.pageYOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollTop?t.o_doc.documentElement.scrollTop:t.o_doc.body.scrollTop?t.o_doc.body.scrollTop:0},scrollLeft:function(){return t.o_win.pageXOffset?t.o_win.pageXOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollLeft?t.o_doc.documentElement.scrollLeft:t.o_doc.body.scrollLeft?t.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=t.top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},e.FE.MODULES.events=function(t){var n,r={};function i(e,t,n){d(e,t,n)}function o(n){if(void 0===n&&(n=!0),!t.$wp)return!1;if(t.helpers.isIOS()&&t.$win.get(0).focus(),t.core.hasFocus())return!1;if(!t.core.hasFocus()&&n){var r=t.$win.scrollTop();if(t.browser.msie&&t.$box&&t.$box.css("position","fixed"),t.browser.msie&&t.$wp&&t.$wp.css("overflow","visible"),l(),t.$el.focus(),t.events.trigger("focus"),s(),t.browser.msie&&t.$box&&t.$box.css("position",""),t.browser.msie&&t.$wp&&t.$wp.css("overflow","auto"),r!=t.$win.scrollTop()&&t.$win.scrollTop(r),!t.selection.info(t.el).atStart)return!1}if(!t.core.hasFocus()||0<t.$el.find(".fr-marker").length)return!1;if(t.selection.info(t.el).atStart&&t.selection.isCollapsed()&&null!=t.html.defaultTag()){var i=t.markers.insert();if(i&&!t.node.blockParent(i)){e(i).remove();var o=t.$el.find(t.html.blockTagsQuery()).get(0);o&&(e(o).prepend(e.FE.MARKERS),t.selection.restore())}else i&&e(i).remove()}}var a=!1;function s(){n=!0}function l(){n=!1}function u(){return n}function c(e,n,i){var o,a=e.split(" ");if(1<a.length){for(var s=0;s<a.length;s++)c(a[s],n,i);return!0}void 0===i&&(i=!1),o=0!==e.indexOf("shared.")?r[e]=r[e]||[]:t.shared._events[e]=t.shared._events[e]||[],i?o.unshift(n):o.push(n)}var f=[];function d(e,n,r,i,o){"function"==typeof r&&(o=i,i=r,r=!1);var a=o?t.shared.$_events:f,s=o?t.sid:t.id;r?e.on(n.split(" ").join(".ed"+s+" ")+".ed"+s,r,i):e.on(n.split(" ").join(".ed"+s+" ")+".ed"+s,i),a.push([e,n.split(" ").join(".ed"+s+" ")+".ed"+s])}function p(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function h(n,i,o){if(!t.edit.isDisabled()||o){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)if(!1===(s=a[l].apply(t,i)))return!1;return!1!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],i||[])))&&s}}function g(){for(var e in r)r.hasOwnProperty(e)&&delete r[e]}function m(){for(var e in t.shared._events)t.shared._events.hasOwnProperty(e)&&delete t.shared._events[e]}return{_init:function(){t.shared.$_events=t.shared.$_events||[],t.shared._events={},t.helpers.isMobile()?(t._mousedown="touchstart",t._mouseup="touchend",t._move="touchmove",t._mousemove="touchmove"):(t._mousedown="mousedown",t._mouseup="mouseup",t._move="",t._mousemove="mousemove"),i(t.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(e){h(e.type,[e])}),c("mousedown",function(){for(var n=0;n<e.FE.INSTANCES.length;n++)e.FE.INSTANCES[n]!=t&&e.FE.INSTANCES[n].popups&&e.FE.INSTANCES[n].popups.areVisible()&&e.FE.INSTANCES[n].$el.find(".fr-marker").remove()}),i(t.$win,t._mousedown,function(e){h("window.mousedown",[e]),s()}),i(t.$win,t._mouseup,function(e){h("window.mouseup",[e])}),i(t.$win,"cut copy keydown keyup touchmove touchend",function(e){h("window."+e.type,[e])}),i(t.$doc,"dragend drop",function(e){h("document."+e.type,[e])}),i(t.$el,"keydown keypress keyup input",function(e){h(e.type,[e])}),i(t.$el,"focus",function(e){u()&&(o(!1),!1===a&&h(e.type,[e]))}),i(t.$el,"blur",function(e){u()&&!0===a&&(h(e.type,[e]),s())}),c("focus",function(){a=!0}),c("blur",function(){a=!1}),s(),i(t.$el,"cut copy paste beforepaste",function(e){h(e.type,[e])}),c("destroy",g),c("shared.destroy",m)},on:c,trigger:h,bindClick:function(n,r,i){d(n,t._mousedown,r,function(n){var r,i;t.edit.isDisabled()||(i=e((r=n).currentTarget),t.edit.isDisabled()||t.node.hasClass(i.get(0),"fr-disabled")?r.preventDefault():"mousedown"===r.type&&1!==r.which||(t.helpers.isMobile()||r.preventDefault(),(t.helpers.isAndroid()||t.helpers.isWindowsPhone())&&0===i.parents(".fr-dropdown-menu").length&&(r.preventDefault(),r.stopPropagation()),i.addClass("fr-selected"),t.events.trigger("commands.mousedown",[i])))},!0),d(n,t._mouseup+" "+t._move,r,function(n){t.edit.isDisabled()||function(n,r){var i=e(n.currentTarget);if(t.edit.isDisabled()||t.node.hasClass(i.get(0),"fr-disabled"))return n.preventDefault();if(("mouseup"!==n.type||1===n.which)&&t.node.hasClass(i.get(0),"fr-selected"))if("touchmove"!=n.type){if(n.stopPropagation(),n.stopImmediatePropagation(),n.preventDefault(),!t.node.hasClass(i.get(0),"fr-selected"))return t.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(t.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),i.data("dragging")||i.attr("disabled"))return i.removeData("dragging");var o=i.data("timeout");o&&(clearTimeout(o),i.removeData("timeout")),r.apply(t,[n])}else i.data("timeout")||i.data("timeout",setTimeout(function(){i.data("dragging",!0)},100))}(n,i)},!0),d(n,"mousedown click mouseup",r,function(e){t.edit.isDisabled()||e.stopPropagation()},!0),c("window.mouseup",function(){t.edit.isDisabled()||(n.find(r).removeClass("fr-selected"),s())})},disableBlur:l,enableBlur:s,blurActive:u,focus:o,chainTrigger:function(n,i,o){if(!t.edit.isDisabled()||o){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)void 0!==(s=a[l].apply(t,[i]))&&(i=s);return void 0!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],[i])))&&(i=s),i}},$on:d,$off:function(){p(f),f=[],0===t.shared.count&&(p(t.shared.$_events),t.shared.$_events=[])}}},e.FE.MODULES.node=function(t){function n(e){return e&&"IFRAME"!=e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function r(t){return!!t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.BLOCK_TAGS.indexOf(t.tagName.toLowerCase())}function i(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var i=n[r];t[i.nodeName]=i.value}return t}function o(e){for(var t="",n=i(e),r=Object.keys(n).sort(),o=0;o<r.length;o++){var a=r[o],s=n[a];s.indexOf("'")<0&&0<=s.indexOf('"')?t+=" "+a+"='"+s+"'":0<=s.indexOf('"')&&0<=s.indexOf("'")?t+=" "+a+'="'+(s=s.replace(/"/g,"&quot;"))+'"':t+=" "+a+'="'+s+'"'}return t}function a(e){return e===t.el}return{isBlock:r,isEmpty:function(i,o){if(!i)return!0;if(i.querySelector("table"))return!1;var a=n(i);1==a.length&&r(a[0])&&(a=n(a[0]));for(var s=!1,l=0;l<a.length;l++){var u=a[l];if(!(o&&t.node.hasClass(u,"fr-marker")||u.nodeType==Node.TEXT_NODE&&0===u.textContent.length)){if("BR"!=u.tagName&&0<(u.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(s)return!1;"BR"==u.tagName&&(s=!0)}}return!(i.querySelectorAll(e.FE.VOID_ELEMENTS.join(",")).length-i.querySelectorAll("br").length||i.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||1<i.querySelectorAll(e.FE.BLOCK_TAGS.join(",")).length||i.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)"))},blockParent:function(e){for(;e&&e.parentNode!==t.el&&(!e.parentNode||!t.node.hasClass(e.parentNode,"fr-inner"));)if(r(e=e.parentNode))return e;return null},deepestParent:function(n,i,o){if(void 0===i&&(i=[]),void 0===o&&(o=!0),i.push(t.el),0<=i.indexOf(n.parentNode)||n.parentNode&&t.node.hasClass(n.parentNode,"fr-inner")||n.parentNode&&0<=e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)&&o)return null;for(;i.indexOf(n.parentNode)<0&&n.parentNode&&!t.node.hasClass(n.parentNode,"fr-inner")&&(e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)<0||!o)&&(!r(n)||!r(n.parentNode)||!o);)n=n.parentNode;return n},rawAttributes:i,attributes:o,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<"+e.tagName.toLowerCase()+o(e)+">"},closeTagString:function(e){return"</"+e.tagName.toLowerCase()+">"},isFirstSibling:function e(n,r){void 0===r&&(r=!0);for(var i=n.previousSibling;i&&r&&t.node.hasClass(i,"fr-marker");)i=i.previousSibling;return!i||i.nodeType==Node.TEXT_NODE&&""===i.textContent&&e(i)},isLastSibling:function e(n,r){void 0===r&&(r=!0);for(var i=n.nextSibling;i&&r&&t.node.hasClass(i,"fr-marker");)i=i.nextSibling;return!i||i.nodeType==Node.TEXT_NODE&&""===i.textContent&&e(i)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&"a"==e.tagName.toLowerCase()},isElement:a,contents:n,isVoid:function(t){return t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.VOID_ELEMENTS.indexOf((t.tagName||"").toLowerCase())},hasFocus:function(e){return e===t.doc.activeElement&&(!t.doc.hasFocus||t.doc.hasFocus())&&!!(a(e)||e.type||e.href||~e.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!=e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(t,n){return t instanceof e&&(t=t.get(0)),t&&t.classList&&t.classList.contains(n)},filter:function(e){return t.browser.msie?e:{acceptNode:e}}}},e.FE.INVISIBLE_SPACE="&#8203;",e.FE.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.MARKERS=e.FE.START_MARKER+e.FE.END_MARKER,e.FE.MODULES.markers=function(t){function n(){if(!t.$wp)return null;try{var n=t.selection.ranges(0),r=n.commonAncestorContainer;if(r!=t.el&&0===t.$el.find(r).length)return null;var i=n.cloneRange(),o=n.cloneRange();i.collapse(!0);var a=e('<span class="fr-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0];if(i.insertNode(a),a=t.$el.find("span.fr-marker").get(0)){for(var s=a.nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=t.$el.find("span.fr-marker").get(0).nextSibling;return t.selection.clear(),t.selection.get().addRange(o),a}return null}catch(e){}}function r(){t.$el.find(".fr-marker").remove()}return{place:function(n,r,i){var o,a,s;try{var l=n.cloneRange();if(l.collapse(r),l.insertNode(e('<span class="fr-marker" data-id="'+i+'" data-type="'+r+'" style="display: '+(t.browser.safari?"none":"inline-block")+'; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0]),!0===r)for(s=(o=t.$el.find('span.fr-marker[data-type="true"][data-id="'+i+'"]').get(0)).nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=o.nextSibling;if(!0===r&&!n.collapsed){for(;!t.node.isElement(o.parentNode)&&!s;)e(o.parentNode).after(o),s=o.nextSibling;if(s&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[0],(a=t.node.contents(s))[0]&&t.node.isBlock(a[0]););e(s).prepend(e(o))}}if(!1===r&&!n.collapsed){if((s=(o=t.$el.find('span.fr-marker[data-type="false"][data-id="'+i+'"]').get(0)).previousSibling)&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[a.length-1],(a=t.node.contents(s))[a.length-1]&&t.node.isBlock(a[a.length-1]););e(s).append(e(o))}o.parentNode&&0<=["TD","TH"].indexOf(o.parentNode.tagName)&&o.parentNode.previousSibling&&!o.previousSibling&&e(o.parentNode.previousSibling).append(o)}var u=t.$el.find('span.fr-marker[data-type="'+r+'"][data-id="'+i+'"]').get(0);return u&&(u.style.display="none"),u}catch(e){return null}},insert:n,split:function(){t.selection.isCollapsed()||t.selection.remove();var r=t.$el.find(".fr-marker").get(0);if(null==r&&(r=n()),null==r)return null;var i=t.node.deepestParent(r);if(i||(i=t.node.blockParent(r))&&"LI"!=i.tagName&&(i=null),i)if(t.node.isBlock(i)&&t.node.isEmpty(i))"LI"!=i.tagName||i.parentNode.firstElementChild!=i||t.node.isEmpty(i.parentNode)?e(i).replaceWith('<span class="fr-marker"></span>'):e(i).append('<span class="fr-marker"></span>');else if(t.cursor.isAtStart(r,i))e(i).before('<span class="fr-marker"></span>'),e(r).remove();else if(t.cursor.isAtEnd(r,i))e(i).after('<span class="fr-marker"></span>'),e(r).remove();else{for(var o=r,a="",s="";o=o.parentNode,a+=t.node.closeTagString(o),s=t.node.openTagString(o)+s,o!=i;);e(r).replaceWith('<span id="fr-break"></span>');var l=t.node.openTagString(i)+e(i).html()+t.node.closeTagString(i);l=l.replace(/<span id="fr-break"><\/span>/g,a+'<span class="fr-marker"></span>'+s),e(i).replaceWith(l)}return t.$el.find(".fr-marker").get(0)},insertAtPoint:function(e){var i,o=e.clientX,a=e.clientY;r();var s=null;if(void 0!==t.doc.caretPositionFromPoint?(i=t.doc.caretPositionFromPoint(o,a),(s=t.doc.createRange()).setStart(i.offsetNode,i.offset),s.setEnd(i.offsetNode,i.offset)):void 0!==t.doc.caretRangeFromPoint&&(i=t.doc.caretRangeFromPoint(o,a),(s=t.doc.createRange()).setStart(i.startContainer,i.startOffset),s.setEnd(i.startContainer,i.startOffset)),null!==s&&void 0!==t.win.getSelection){var l=t.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if(void 0!==t.doc.body.createTextRange)try{(s=t.doc.body.createTextRange()).moveToPoint(o,a);var u=s.duplicate();u.moveToPoint(o,a),s.setEndPoint("EndToEnd",u),s.select()}catch(e){return!1}n()},remove:r}},e.FE.MODULES.selection=function(t){function n(){var e="";return t.win.getSelection?e=t.win.getSelection():t.doc.getSelection?e=t.doc.getSelection():t.doc.selection&&(e=t.doc.selection.createRange().text),e.toString()}function r(){return t.win.getSelection?t.win.getSelection():t.doc.getSelection?t.doc.getSelection():t.doc.selection.createRange()}function i(e){var n=r(),i=[];if(n&&n.getRangeAt&&n.rangeCount){i=[];for(var o=0;o<n.rangeCount;o++)i.push(n.getRangeAt(o))}else i=t.doc.createRange?[t.doc.createRange()]:[];return void 0!==e?i[e]:i}function o(){var e=r();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(e){}}function a(e,t){var n=e;return n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType==Node.TEXT_NODE&&(n=n.parentNode),n}function s(){if(t.$wp){t.markers.remove();var n,r,o=i(),a=[];for(r=0;r<o.length;r++)if(o[r].startContainer!==t.doc||t.browser.msie){var s=(n=o[r]).collapsed,l=t.markers.place(n,!0,r),u=t.markers.place(n,!1,r);if(void 0!==l&&l||!s||(e(".fr-marker").remove(),t.selection.setAtEnd(t.el)),t.el.normalize(),t.browser.safari&&!s)try{(n=t.doc.createRange()).setStartAfter(l),n.setEndBefore(u),a.push(n)}catch(e){}}if(t.browser.safari&&a.length)for(t.selection.clear(),r=0;r<a.length;r++)t.selection.get().addRange(a[r])}}function l(){var n,i=t.el.querySelectorAll('.fr-marker[data-type="true"]');if(!t.$wp)return t.markers.remove(),!1;if(0===i.length)return!1;if(t.browser.msie||t.browser.edge)for(n=0;n<i.length;n++)i[n].style.display="inline-block";t.core.hasFocus()||t.browser.msie||t.browser.webkit||t.$el.focus(),o();var a=r();for(n=0;n<i.length;n++){var s=e(i[n]).data("id"),l=i[n],c=t.doc.createRange(),f=t.$el.find('.fr-marker[data-type="false"][data-id="'+s+'"]');(t.browser.msie||t.browser.edge)&&f.css("display","inline-block");var d=null;if(0<f.length){f=f[0];try{for(var p,h=!1,g=l.nextSibling;g&&g.nodeType==Node.TEXT_NODE&&0===g.textContent.length;)g=(p=g).nextSibling,e(p).remove();for(var m,v,y=f.nextSibling;y&&y.nodeType==Node.TEXT_NODE&&0===y.textContent.length;)y=(p=y).nextSibling,e(p).remove();if(l.nextSibling==f||f.nextSibling==l){for(var b=l.nextSibling==f?l:f,w=b==l?f:l,$=b.previousSibling;$&&$.nodeType==Node.TEXT_NODE&&0===$.length;)$=(p=$).previousSibling,e(p).remove();if($&&$.nodeType==Node.TEXT_NODE)for(;$&&$.previousSibling&&$.previousSibling.nodeType==Node.TEXT_NODE;)$.previousSibling.textContent=$.previousSibling.textContent+$.textContent,$=$.previousSibling,e($.nextSibling).remove();for(var E=w.nextSibling;E&&E.nodeType==Node.TEXT_NODE&&0===E.length;)E=(p=E).nextSibling,e(p).remove();if(E&&E.nodeType==Node.TEXT_NODE)for(;E&&E.nextSibling&&E.nextSibling.nodeType==Node.TEXT_NODE;)E.nextSibling.textContent=E.textContent+E.nextSibling.textContent,E=E.nextSibling,e(E.previousSibling).remove();if($&&(t.node.isVoid($)||t.node.isBlock($))&&($=null),E&&(t.node.isVoid(E)||t.node.isBlock(E))&&(E=null),$&&E&&$.nodeType==Node.TEXT_NODE&&E.nodeType==Node.TEXT_NODE){e(l).remove(),e(f).remove();var S=$.textContent.length;$.textContent=$.textContent+E.textContent,e(E).remove(),t.opts.htmlUntouched||t.spaces.normalize($),c.setStart($,S),c.setEnd($,S),h=!0}else!$&&E&&E.nodeType==Node.TEXT_NODE?(e(l).remove(),e(f).remove(),t.opts.htmlUntouched||t.spaces.normalize(E),d=e(t.doc.createTextNode("​")),e(E).before(d),c.setStart(E,0),c.setEnd(E,0),h=!0):!E&&$&&$.nodeType==Node.TEXT_NODE&&(e(l).remove(),e(f).remove(),t.opts.htmlUntouched||t.spaces.normalize($),d=e(t.doc.createTextNode("​")),e($).after(d),c.setStart($,$.textContent.length),c.setEnd($,$.textContent.length),h=!0)}h||((t.browser.chrome||t.browser.edge)&&l.nextSibling==f?(m=u(f,c,!0)||c.setStartAfter(f),v=u(l,c,!1)||c.setEndBefore(l)):(l.previousSibling==f&&(f=(l=f).nextSibling),f.nextSibling&&"BR"===f.nextSibling.tagName||!f.nextSibling&&t.node.isBlock(l.previousSibling)||l.previousSibling&&"BR"==l.previousSibling.tagName||(l.style.display="inline",f.style.display="inline",d=e(t.doc.createTextNode("​"))),m=u(l,c,!0)||e(l).before(d)&&c.setStartBefore(l),v=u(f,c,!1)||e(f).after(d)&&c.setEndAfter(f)),"function"==typeof m&&m(),"function"==typeof v&&v())}catch(e){}}d&&d.remove();try{a.addRange(c)}catch(e){}}t.markers.remove()}function u(n,r,i){var o,a=n.previousSibling,s=n.nextSibling;return a&&s&&a.nodeType==Node.TEXT_NODE&&s.nodeType==Node.TEXT_NODE?(o=a.textContent.length,i?(s.textContent=a.textContent+s.textContent,e(a).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,o)}):(a.textContent=a.textContent+s.textContent,e(s).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,o)})):a&&!s&&a.nodeType==Node.TEXT_NODE?(o=a.textContent.length,i?(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setStart(a,o)}):(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,o)})):!(!s||a||s.nodeType!=Node.TEXT_NODE)&&(i?(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,0)}):(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setEnd(s,0)}))}function c(){for(var e=i(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function f(e){var n,r,i=!1,o=!1;if(t.win.getSelection){var a=t.win.getSelection();a.rangeCount&&((r=(n=a.getRangeAt(0)).cloneRange()).selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset),i=""===r.toString(),r.selectNodeContents(e),r.setStart(n.endContainer,n.endOffset),o=""===r.toString())}else t.doc.selection&&"Control"!=t.doc.selection.type&&((r=(n=t.doc.selection.createRange()).duplicate()).moveToElementText(e),r.setEndPoint("EndToStart",n),i=""===r.text,r.moveToElementText(e),r.setEndPoint("StartToEnd",n),o=""===r.text);return{atStart:i,atEnd:o}}function d(n,r){void 0===r&&(r=!0);var i=e(n).html();i&&i.replace(/\u200b/g,"").length!=i.length&&e(n).html(i.replace(/\u200b/g,""));for(var o=t.node.contents(n),a=0;a<o.length;a++)o[a].nodeType!=Node.ELEMENT_NODE?e(o[a]).remove():(d(o[a],0===a),0===a&&(r=!1));n.nodeType==Node.TEXT_NODE?e(n).replaceWith('<span data-first="true" data-text="true"></span>'):r&&e(n).attr("data-first",!0)}function p(){return 0===e(this).find("fr-inner").length}function h(){try{if(!t.$wp)return!1;for(var e=i(0).commonAncestorContainer;e&&!t.node.isElement(e);)e=e.parentNode;return!!t.node.isElement(e)}catch(e){return!1}}function g(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var i=n.firstChild;i&&(t.node.isBlock(i)||r&&!t.node.isVoid(i)&&i.nodeType==Node.ELEMENT_NODE);)i=(n=i).firstChild;n.innerHTML=e.FE.MARKERS+n.innerHTML}function m(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var i=n.lastChild;i&&(t.node.isBlock(i)||r&&!t.node.isVoid(i)&&i.nodeType==Node.ELEMENT_NODE);)i=(n=i).lastChild;var o=t.doc.createElement("SPAN");o.setAttribute("id","fr-sel-markers"),o.innerHTML=e.FE.MARKERS,n.appendChild(o);var a=n.querySelector("#fr-sel-markers");a.outerHTML=a.innerHTML}return{text:n,get:r,ranges:i,clear:o,element:function(){var o=r();try{if(o.rangeCount){var a,s=i(0),l=s.startContainer;if(l.nodeType==Node.TEXT_NODE&&s.startOffset==(l.textContent||"").length&&l.nextSibling&&(l=l.nextSibling),l.nodeType==Node.ELEMENT_NODE){var u=!1;if(0<l.childNodes.length&&l.childNodes[s.startOffset]){for(a=l.childNodes[s.startOffset];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;if(a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,u=!0),!u&&1<l.childNodes.length&&0<s.startOffset&&l.childNodes[s.startOffset-1]){for(a=l.childNodes[s.startOffset-1];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,u=!0)}}else!s.collapsed&&l.nextSibling&&l.nextSibling.nodeType==Node.ELEMENT_NODE&&(a=l.nextSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,u=!0);!u&&0<l.childNodes.length&&e(l.childNodes[0]).text().replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(l.childNodes[0].tagName)<0&&(l=l.childNodes[0])}for(;l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var c=l;c&&"HTML"!=c.tagName;){if(c==t.el)return l;c=e(c).parent()[0]}}}catch(e){}return t.el},endElement:function(){var o=r();try{if(o.rangeCount){var a,s=i(0),l=s.endContainer;if(l.nodeType==Node.ELEMENT_NODE){var u=!1;0<l.childNodes.length&&l.childNodes[s.endOffset]&&e(l.childNodes[s.endOffset]).text()===n()?(l=l.childNodes[s.endOffset],u=!0):!s.collapsed&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE?(a=l.previousSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,u=!0):!s.collapsed&&0<l.childNodes.length&&l.childNodes[s.endOffset]&&(a=l.childNodes[s.endOffset].previousSibling).nodeType==Node.ELEMENT_NODE&&a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,u=!0),!u&&0<l.childNodes.length&&e(l.childNodes[l.childNodes.length-1]).text()===n()&&["BR","IMG","HR"].indexOf(l.childNodes[l.childNodes.length-1].tagName)<0&&(l=l.childNodes[l.childNodes.length-1])}for(l.nodeType==Node.TEXT_NODE&&0===s.endOffset&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE&&(l=l.previousSibling);l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var c=l;c&&"HTML"!=c.tagName;){if(c==t.el)return l;c=e(c).parent()[0]}}}catch(e){}return t.el},save:s,restore:l,isCollapsed:c,isFull:function(){if(c())return!1;t.selection.save();var n,r=t.el.querySelectorAll("td, th, img, br");for(n=0;n<r.length;n++)r[n].nextSibling&&(r[n].innerHTML='<span class="fr-mk">'+e.FE.INVISIBLE_SPACE+"</span>"+r[n].innerHTML);var i=!1,o=f(t.el);for(o.atStart&&o.atEnd&&(i=!0),r=t.el.querySelectorAll(".fr-mk"),n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n]);return t.selection.restore(),i},inEditor:h,remove:function(){if(c())return!0;var n;s();var r=function(t){for(var n=t.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.previousSibling,e(r).remove()}return n},i=function(t){for(var n=t.nextSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.nextSibling,e(r).remove()}return n},o=t.$el.find('.fr-marker[data-type="true"]');for(n=0;n<o.length;n++)for(var a=o[n];!(r(a)||t.node.isBlock(a.parentNode)||t.$el.is(a.parentNode)||t.node.hasClass(a.parentNode,"fr-inner"));)e(a.parentNode).before(a);var u=t.$el.find('.fr-marker[data-type="false"]');for(n=0;n<u.length;n++){for(var f=u[n];!(i(f)||t.node.isBlock(f.parentNode)||t.$el.is(f.parentNode)||t.node.hasClass(f.parentNode,"fr-inner"));)e(f.parentNode).after(f);f.parentNode&&t.node.isBlock(f.parentNode)&&t.node.isEmpty(f.parentNode)&&!t.$el.is(f.parentNode)&&!t.node.hasClass(f.parentNode,"fr-inner")&&t.opts.keepFormatOnDelete&&e(f.parentNode).after(f)}if(function(){for(var n=t.$el.find(".fr-marker"),r=0;r<n.length;r++)if(e(n[r]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function n(r,i){var o=t.node.contents(r.get(0));0<=["TD","TH"].indexOf(r.get(0).tagName)&&1==r.find(".fr-marker").length&&t.node.hasClass(o[0],"fr-marker")&&r.attr("data-del-cell",!0);for(var a=0;a<o.length;a++){var s=o[a];t.node.hasClass(s,"fr-marker")?i=(i+1)%2:i?0<e(s).find(".fr-marker").length?i=n(e(s),i):["TD","TH"].indexOf(s.tagName)<0&&!t.node.hasClass(s,"fr-inner")?!t.opts.keepFormatOnDelete||0<t.$el.find("[data-first]").length||t.node.isVoid(s)?e(s).remove():d(s):t.node.hasClass(s,"fr-inner")?0===e(s).find(".fr-inner").length?e(s).html("<br>"):e(s).find(".fr-inner").filter(p).html("<br>"):(e(s).empty(),e(s).attr("data-del-cell",!0)):0<e(s).find(".fr-marker").length&&(i=n(e(s),i))}return i}(t.$el,0);var h=t.$el.find('[data-first="true"]');if(h.length)t.$el.find(".fr-marker").remove(),h.append(e.FE.INVISIBLE_SPACE+e.FE.MARKERS).removeAttr("data-first"),h.attr("data-text")&&h.replaceWith(h.html());else for(t.$el.find("table").filter(function(){return 0<e(this).find("[data-del-cell]").length&&e(this).find("[data-del-cell]").length==e(this).find("td, th").length}).remove(),t.$el.find("[data-del-cell]").removeAttr("data-del-cell"),o=t.$el.find('.fr-marker[data-type="true"]'),n=0;n<o.length;n++){var g=o[n],m=g.nextSibling,v=t.$el.find('.fr-marker[data-type="false"][data-id="'+e(g).data("id")+'"]').get(0);if(v){if(g&&(!m||m!=v)){var y=t.node.blockParent(g),b=t.node.blockParent(v),w=!1,$=!1;if(y&&0<=["UL","OL"].indexOf(y.tagName)&&(w=!(y=null)),b&&0<=["UL","OL"].indexOf(b.tagName)&&($=!(b=null)),e(g).after(v),y!=b)if(null!=y||w)if(null!=b||$||0!==e(y).parentsUntil(t.$el,"table").length)y&&b&&0===e(y).parentsUntil(t.$el,"table").length&&0===e(b).parentsUntil(t.$el,"table").length&&0===e(y).find(b).length&&0===e(b).find(y).length&&(e(y).append(e(b).html()),e(b).remove());else{for(m=y;!m.nextSibling&&m.parentNode!=t.el;)m=m.parentNode;for(m=m.nextSibling;m&&"BR"!=m.tagName;){var E=m.nextSibling;e(y).append(m),m=E}m&&"BR"==m.tagName&&e(m).remove()}else{var S=t.node.deepestParent(g);S?(e(S).after(e(b).html()),e(b).remove()):0===e(b).parentsUntil(t.$el,"table").length&&(e(g).next().after(e(b).html()),e(b).remove())}}}else v=e(g).clone().attr("data-type",!1),e(g).after(v)}}t.$el.find("li:empty").remove(),t.opts.keepFormatOnDelete||t.html.fillEmptyBlocks(),t.html.cleanEmptyTags(!0),t.opts.htmlUntouched||(t.clean.lists(),t.$el.find("li:empty").append("<br>"),t.spaces.normalize());var x=t.$el.find(".fr-marker:last").get(0),C=t.$el.find(".fr-marker:first").get(0);void 0!==x&&void 0!==C&&!x.nextSibling&&C.previousSibling&&"BR"==C.previousSibling.tagName&&t.node.isElement(x.parentNode)&&t.node.isElement(C.parentNode)&&t.$el.append("<br>"),l()},blocks:function(){var n,o=[],s=r();if(h()&&s.rangeCount){var l=i();for(n=0;n<l.length;n++){var u,c=l[n],f=a(c.startContainer,c.startOffset),d=a(c.endContainer,c.endOffset);(t.node.isBlock(f)||t.node.hasClass(f,"fr-inner"))&&o.indexOf(f)<0&&o.push(f),(u=t.node.blockParent(f))&&o.indexOf(u)<0&&o.push(u);for(var p=[],g=f;g!==d&&g!==t.el;)p.indexOf(g)<0&&g.children&&g.children.length?(p.push(g),g=g.children[0]):g.nextSibling?g=g.nextSibling:g.parentNode&&(g=g.parentNode,p.push(g)),t.node.isBlock(g)&&p.indexOf(g)<0&&o.indexOf(g)<0&&(g!==d||0<c.endOffset)&&o.push(g);t.node.isBlock(d)&&o.indexOf(d)<0&&0<c.endOffset&&o.push(d),(u=t.node.blockParent(d))&&o.indexOf(u)<0&&o.push(u)}}for(n=o.length-1;0<n;n--)e(o[n]).find(o).length&&o.splice(n,1);return o},info:f,setAtEnd:m,setAtStart:g,setBefore:function(n,r){void 0===r&&(r=!0);for(var i=n.previousSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.previousSibling;return i?(t.node.isBlock(i)?m(i):"BR"==i.tagName?e(i).before(e.FE.MARKERS):e(i).after(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?g(n):e(n).before(e.FE.MARKERS),!0)},setAfter:function(n,r){void 0===r&&(r=!0);for(var i=n.nextSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.nextSibling;return i?(t.node.isBlock(i)?g(i):e(i).before(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?m(n):e(n).after(e.FE.MARKERS),!0)},rangeElement:a}},e.extend(e.FE.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),e.FE.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},e.FE.MODULES.clean=function(t){var n,r,i,o;function a(e){if(e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=e.getAttribute("class").indexOf("fr-marker"))return!1;var n,r=t.node.contents(e),i=[];for(n=0;n<r.length;n++)r[n].nodeType!=Node.ELEMENT_NODE||t.node.isVoid(r[n])?r[n].nodeType==Node.TEXT_NODE&&(r[n].textContent=r[n].textContent.replace(/\u200b/g,"")):r[n].textContent.replace(/\u200b/g,"").length!=r[n].textContent.length&&a(r[n]);if(e.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(e)&&(e.normalize(),r=t.node.contents(e),i=e.querySelectorAll(".fr-marker"),r.length-i.length==0)){for(n=0;n<r.length;n++)if(r[n].nodeType==Node.ELEMENT_NODE&&(r[n].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(n=0;n<i.length;n++)e.parentNode.insertBefore(i[n].cloneNode(!0),e);return e.parentNode.removeChild(e),!1}}function s(e,n){if(e.nodeType==Node.COMMENT_NODE)return"\x3c!--"+e.nodeValue+"--\x3e";if(e.nodeType==Node.TEXT_NODE)return n?e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\u0009/g,"");if(e.nodeType!=Node.ELEMENT_NODE)return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(e.tagName))return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&"svg"==e.tagName){var r=document.createElement("div"),i=e.cloneNode(!0);return r.appendChild(i),r.innerHTML}if("IFRAME"==e.tagName)return e.outerHTML.replace(/\&lt;/g,"<").replace(/\&gt;/g,">");var o=e.childNodes;if(0===o.length)return e.outerHTML;for(var a="",l=0;l<o.length;l++)"PRE"==e.tagName&&(n=!0),a+=s(o[l],n);return t.node.openTagString(e)+a+t.node.closeTagString(e)}var l=[];function u(e){var t=e.replace(/;;/gi,";");return";"!=(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function c(e){var n;for(n in e)if(e.hasOwnProperty(n)){var r=n.match(i),a=null;"style"==n&&t.opts.htmlAllowedStyleProps.length&&(a=e[n].match(o)),r&&a?e[n]=u(a.join(";")):r&&("style"!=n||a)||delete e[n]}for(var s="",l=Object.keys(e).sort(),c=0;c<l.length;c++)e[n=l[c]].indexOf('"')<0?s+=" "+n+'="'+e[n]+'"':s+=" "+n+"='"+e[n]+"'";return s}function f(n,r){var i,o=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");e(o).append(n);var a="";if(o){var l=t.node.contents(o);for(i=0;i<l.length;i++)r(l[i]);for(l=t.node.contents(o),i=0;i<l.length;i++)a+=s(l[i])}return a}function d(e,n,r){l=[];var i=e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,function(e){return l.push(e),"[FROALA.EDITOR.SCRIPT "+(l.length-1)+"]"}).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(e){return l.push(e),"[FROALA.EDITOR.NOSCRIPT "+(l.length-1)+"]"}).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="').replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="'),o=null;t.opts.fullPage&&(i=t.html.extractNode(e,"body")||(0<=e.indexOf("<body")?"":e),r&&(o=t.html.extractNode(e,"head")||"")),i=f(i,n),o&&(o=f(o,n));var a=function(e,n,r){if(t.opts.fullPage){var i=t.html.extractDoctype(r),o=c(t.html.extractNodeAttrs(r,"html"));return n=null==n?t.html.extractNode(r,"head")||"<title></title>":n,i+"<html"+o+"><head"+c(t.html.extractNodeAttrs(r,"head"))+">"+n+"</head><body"+c(t.html.extractNodeAttrs(r,"body"))+">"+e+"</body></html>"}return e}(i,o,e);return a.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("script")?"":l[parseInt(n,10)]}).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("noscript")?"":l[parseInt(n,10)].replace(/\&lt;/g,"<").replace(/\&gt;/g,">")}).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function p(e){var n=t.doc.createElement("DIV");return n.innerText=e,n.textContent}function h(a){for(var s=t.node.contents(a),l=0;l<s.length;l++)s[l].nodeType!=Node.TEXT_NODE&&h(s[l]);!function(a){if(!("SPAN"==a.tagName&&0<=(a.getAttribute("class")||"").indexOf("fr-marker"))){var s,l;if("PRE"==a.tagName&&0<=(l=(s=a).innerHTML).indexOf("\n")&&(s.innerHTML=l.replace(/\n/g,"<br>")),a.nodeType==Node.ELEMENT_NODE&&(a.getAttribute("data-fr-src")&&0!==a.getAttribute("data-fr-src").indexOf("blob:")&&a.setAttribute("data-fr-src",t.helpers.sanitizeURL(p(a.getAttribute("data-fr-src")))),a.getAttribute("href")&&a.setAttribute("href",t.helpers.sanitizeURL(p(a.getAttribute("href")))),a.getAttribute("src")&&a.setAttribute("src",t.helpers.sanitizeURL(p(a.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(a.tagName)&&(a.innerHTML=a.innerHTML.trim())),!t.opts.pasteAllowLocalImages&&a.nodeType==Node.ELEMENT_NODE&&"IMG"==a.tagName&&a.getAttribute("data-fr-src")&&0===a.getAttribute("data-fr-src").indexOf("file://"))return a.parentNode.removeChild(a);if(a.nodeType==Node.ELEMENT_NODE&&e.FE.HTML5Map[a.tagName]&&""===t.node.attributes(a)){var c=e.FE.HTML5Map[a.tagName],f="<"+c+">"+a.innerHTML+"</"+c+">";a.insertAdjacentHTML("beforebegin",f),(a=a.previousSibling).parentNode.removeChild(a.nextSibling)}if(t.opts.htmlAllowComments||a.nodeType!=Node.COMMENT_NODE)if(a.tagName&&a.tagName.match(r))a.parentNode.removeChild(a);else if(a.tagName&&!a.tagName.match(n))"svg"===a.tagName?a.parentNode.removeChild(a):t.browser.safari&&"path"==a.tagName&&a.parentNode&&"svg"==a.parentNode.tagName||(a.outerHTML=a.innerHTML);else{var d=a.attributes;if(d)for(var h=d.length-1;0<=h;h--){var g=d[h],m=g.nodeName.match(i),v=null;"style"==g.nodeName&&t.opts.htmlAllowedStyleProps.length&&(v=g.value.match(o)),m&&v?g.value=u(v.join(";")):m&&("style"!=g.nodeName||v)||a.removeAttribute(g.nodeName)}}else 0!==a.data.indexOf("[FROALA.EDITOR")&&a.parentNode.removeChild(a)}}(a)}return{_init:function(){t.opts.fullPage&&e.merge(t.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(a,s,l,u){void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===u&&(u=!1);var c,f=e.merge([],t.opts.htmlAllowedTags);for(c=0;c<s.length;c++)0<=f.indexOf(s[c])&&f.splice(f.indexOf(s[c]),1);var p=e.merge([],t.opts.htmlAllowedAttrs);for(c=0;c<l.length;c++)0<=p.indexOf(l[c])&&p.splice(p.indexOf(l[c]),1);return p.push("data-fr-.*"),p.push("fr-.*"),n=new RegExp("^"+f.join("$|^")+"$","gi"),i=new RegExp("^"+p.join("$|^")+"$","gi"),r=new RegExp("^"+t.opts.htmlRemoveTags.join("$|^")+"$","gi"),o=t.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)"+t.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)")+":.+?(?=(;)|$))","gi"):null,a=d(a,h,!0)},toHTML5:function(){var n=t.el.querySelectorAll(Object.keys(e.FE.HTML5Map).join(","));if(n.length){var r=!1;t.el.querySelector(".fr-marker")||(t.selection.save(),r=!0);for(var i=0;i<n.length;i++)""===t.node.attributes(n[i])&&e(n[i]).replaceWith("<"+e.FE.HTML5Map[n[i].tagName]+">"+n[i].innerHTML+"</"+e.FE.HTML5Map[n[i].tagName]+">");r&&t.selection.restore()}},tables:function(){!function(){for(var e=t.el.querySelectorAll("tr"),n=0;n<e.length;n++){for(var r=e[n].children,i=!0,o=0;o<r.length;o++)if("TH"!=r[o].tagName){i=!1;break}if(!1!==i&&0!==r.length){for(var a=e[n];a&&"TABLE"!=a.tagName&&"THEAD"!=a.tagName;)a=a.parentNode;var s=a;"THEAD"!=s.tagName&&(s=t.doc.createElement("THEAD"),a.insertBefore(s,a.firstChild)),s.appendChild(e[n])}}}()},lists:function(){!function(){var e,n=[];do{if(n.length){var r=n[0],i=t.doc.createElement("ul");r.parentNode.insertBefore(i,r);do{var o=r;r=r.nextSibling,i.appendChild(o)}while(r&&"LI"==r.tagName)}n=[];for(var a=t.el.querySelectorAll("li"),s=0;s<a.length;s++)e=a[s],t.node.isList(e.parentNode)||n.push(a[s])}while(0<n.length)}(),function(){for(var e=t.el.querySelectorAll("ol + ol, ul + ul"),n=0;n<e.length;n++){var r=e[n];if(t.node.isList(r.previousSibling)&&t.node.openTagString(r)==t.node.openTagString(r.previousSibling)){for(var i=t.node.contents(r),o=0;o<i.length;o++)r.previousSibling.appendChild(i[o]);r.parentNode.removeChild(r)}}}(),function(){for(var n=t.el.querySelectorAll("ul, ol"),r=0;r<n.length;r++)for(var i=t.node.contents(n[r]),o=null,a=i.length-1;0<=a;a--)"LI"!=i[a].tagName?(o||(o=e("<li>")).insertBefore(i[a]),o.prepend(i[a])):o=null}(),function(){var e,n,r;do{n=!1;var i=t.el.querySelectorAll("li:empty");for(e=0;e<i.length;e++)i[e].parentNode.removeChild(i[e]);var o=t.el.querySelectorAll("ul, ol");for(e=0;e<o.length;e++)(r=o[e]).querySelector("LI")||(n=!0,r.parentNode.removeChild(r))}while(!0===n)}(),function(){for(var n=t.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),r=0;r<n.length;r++){var i=n[r],o=i.previousSibling;o&&("LI"==o.tagName?o.appendChild(i):e(i).wrap("<li></li>"))}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var i=n[r];if(i.nextSibling){var o=i.nextSibling,a=e("<li>");e(i.parentNode).after(a);do{var s=o;o=o.nextSibling,a.append(s)}while(o)}}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var i=n[r];if(t.node.isFirstSibling(i))e(i).before("<br/>");else if(i.previousSibling&&"BR"==i.previousSibling.tagName){for(var o=i.previousSibling.previousSibling;o&&t.node.hasClass(o,"fr-marker");)o=o.previousSibling;o&&"BR"!=o.tagName&&e(i.previousSibling).remove()}}}(),function(){for(var n=t.el.querySelectorAll("li:empty"),r=0;r<n.length;r++)e(n[r]).remove()}()},invisibleSpaces:function(e){return e.replace(/\u200b/g,"").length==e.length?e:t.clean.exec(e,a)},exec:d}},e.FE.MODULES.spaces=function(t){function n(n,r){var i=n.previousSibling,o=n.nextSibling,a=n.textContent,s=n.parentNode;if(!t.html.isPreformatted(s)){r&&(a=a.replace(/[\f\n\r\t\v ]{2,}/g," "),o&&"BR"!==o.tagName&&!t.node.isBlock(o)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.nextSibling||t.node.isElement(s))||(a=a.replace(/[\f\n\r\t\v ]{1,}$/g,"")),i&&"BR"!==i.tagName&&!t.node.isBlock(i)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.previousSibling||t.node.isElement(s))||(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===a&&(i&&t.node.isVoid(i)||o&&t.node.isVoid(o))&&(a="")),(!i&&t.node.isBlock(o)||!o&&t.node.isBlock(i))&&t.node.isBlock(s)&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),r||(a=a.replace(new RegExp(e.FE.UNICODE_NBSP,"g")," "));for(var l="",u=0;u<a.length;u++)32!=a.charCodeAt(u)||0!==u&&32!=l.charCodeAt(u-1)?l+=a[u]:l+=e.FE.UNICODE_NBSP;(!o||o&&t.node.isBlock(o)||o&&o.nodeType==Node.ELEMENT_NODE&&t.win.getComputedStyle(o)&&"block"==t.win.getComputedStyle(o).display)&&(l=l.replace(/ $/,e.FE.UNICODE_NBSP)),!i||t.node.isVoid(i)||t.node.isBlock(i)||1!==(l=l.replace(/^\u00A0([^ $])/," $1")).length||160!==l.charCodeAt(0)||!o||t.node.isVoid(o)||t.node.isBlock(o)||(l=" "),r||(l=l.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),n.textContent!=l&&(n.textContent=l)}}function r(e,r){if(void 0!==e&&e||(e=t.el),void 0===r&&(r=!1),!e.getAttribute||"false"!=e.getAttribute("contenteditable"))if(e.nodeType==Node.TEXT_NODE)n(e,r);else if(e.nodeType==Node.ELEMENT_NODE)for(var i=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){for(var n=e.parentNode;n&&n!==t.el;){if("STYLE"==n.tagName||"IFRAME"==n.tagName)return!1;if("PRE"===n.tagName)return!1;n=n.parentNode}return null!=e.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!t.node.hasClass(e.parentNode,"fr-marker")}),!1);i.nextNode();)n(i.currentNode,r)}return{normalize:r,normalizeAroundCursor:function(){for(var e=[],n=t.el.querySelectorAll(".fr-marker"),i=0;i<n.length;i++){for(var o=null,a=t.node.blockParent(n[i]),s=(o=a||n[i]).nextSibling,l=o.previousSibling;s&&"BR"==s.tagName;)s=s.nextSibling;for(;l&&"BR"==l.tagName;)l=l.previousSibling;o&&e.indexOf(o)<0&&e.push(o),l&&e.indexOf(l)<0&&e.push(l),s&&e.indexOf(s)<0&&e.push(s)}for(var u=0;u<e.length;u++)r(e[u])}}},e.FE.UNICODE_NBSP=String.fromCharCode(160),e.FE.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],e.FE.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],e.extend(e.FE.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),e.FE.MODULES.html=function(t){function n(){return t.opts.enter==e.FE.ENTER_P?"p":t.opts.enter==e.FE.ENTER_DIV?"div":t.opts.enter==e.FE.ENTER_BR?null:void 0}function r(e,n){return!(!e||e===t.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName)||r(e.parentNode,n):-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName))}function i(n){var r,i=[],a=[];if(n){var s=t.el.querySelectorAll(".fr-marker");for(r=0;r<s.length;r++){var l=t.node.blockParent(s[r])||s[r];if(l){var u=l.nextSibling,c=l.previousSibling;l&&a.indexOf(l)<0&&t.node.isBlock(l)&&a.push(l),c&&t.node.isBlock(c)&&a.indexOf(c)<0&&a.push(c),u&&t.node.isBlock(u)&&a.indexOf(u)<0&&a.push(u)}}}else a=t.el.querySelectorAll(o());var f=o();for(f+=","+e.FE.VOID_ELEMENTS.join(","),f+=", .fr-inner",f+=","+t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)",r=a.length-1;0<=r;r--)if(!(a[r].textContent&&0<a[r].textContent.replace(/\u200B|\n/g,"").length||0<a[r].querySelectorAll(f).length)){for(var d=t.node.contents(a[r]),p=!1,h=0;h<d.length;h++)if(d[h].nodeType!=Node.COMMENT_NODE&&d[h].textContent&&0<d[h].textContent.replace(/\u200B|\n/g,"").length){p=!0;break}p||i.push(a[r])}return i}function o(){return e.FE.BLOCK_TAGS.join(", ")}function a(n){var r,i,o=e.merge([],e.FE.VOID_ELEMENTS);o=e.merge(o,t.opts.htmlAllowedEmptyTags),o=void 0===n?e.merge(o,e.FE.BLOCK_TAGS):e.merge(o,e.FE.NO_DELETE_TAGS),r=t.el.querySelectorAll("*:empty:not("+o.join("):not(")+"):not(.fr-marker)");do{i=!1;for(var a=0;a<r.length;a++)0!==r[a].attributes.length&&void 0===r[a].getAttribute("href")||(r[a].parentNode.removeChild(r[a]),i=!0);r=t.el.querySelectorAll("*:empty:not("+o.join("):not(")+"):not(.fr-marker)")}while(r.length&&i)}function s(e,r){var i=n();if(r&&(i="div"),i){for(var o=t.doc.createDocumentFragment(),a=null,s=!1,l=e.firstChild,u=!1;l;){var c=l.nextSibling;if(l.nodeType==Node.ELEMENT_NODE&&(t.node.isBlock(l)||0<=t.opts.htmlDoNotWrapTags.indexOf(l.tagName.toLowerCase())&&!t.node.hasClass(l,"fr-marker")))a=null,o.appendChild(l.cloneNode(!0));else if(l.nodeType!=Node.ELEMENT_NODE&&l.nodeType!=Node.TEXT_NODE)a=null,o.appendChild(l.cloneNode(!0));else if("BR"==l.tagName)null==a?(a=t.doc.createElement(i),u=!0,r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0)),a.appendChild(l.cloneNode(!0)),o.appendChild(a)):!1===s&&(a.appendChild(t.doc.createElement("br")),r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0))),a=null;else{var f=l.textContent;(l.nodeType!==Node.TEXT_NODE||0<f.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||f.length&&f.indexOf("\n")<0)&&(null==a&&(a=t.doc.createElement(i),u=!0,r&&a.setAttribute("class","fr-temp-div"),o.appendChild(a),s=!1),a.appendChild(l.cloneNode(!0)),s||t.node.hasClass(l,"fr-marker")||l.nodeType==Node.TEXT_NODE&&0===f.replace(/ /g,"").length||(s=!0))}l=c}u&&(e.innerHTML="",e.appendChild(o))}}function l(e,t){for(var n=e.length-1;0<=n;n--)s(e[n],t)}function u(e,n,r,i,o){if(!t.$wp)return!1;void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===o&&(o=!1);var a=t.$wp.scrollTop();s(t.el,e),i&&l(t.el.querySelectorAll(".fr-inner"),e),n&&l(t.el.querySelectorAll("td, th"),e),r&&l(t.el.querySelectorAll("blockquote"),e),o&&l(t.el.querySelectorAll("li"),e),a!=t.$wp.scrollTop()&&t.$wp.scrollTop(a)}function c(e){if(void 0===e&&(e=t.el),e&&0<=["SCRIPT","STYLE","PRE"].indexOf(e.tagName))return!1;for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return null!=e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),!1);n.nextNode();){var i=n.currentNode;if(!r(i.parentNode,!0)){var o=t.node.isBlock(i.parentNode)||t.node.isElement(i.parentNode),a=i.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(o){var s=i.previousSibling,l=i.nextSibling;s&&l&&" "==a?a=t.node.isBlock(s)&&t.node.isBlock(l)?"":" ":(s||(a=a.replace(/^ */,"")),l||(a=a.replace(/ *$/,"")))}i.textContent=a}}}function f(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function d(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"),n}function p(n){var r=n.parentNode;if(r&&(t.node.isBlock(r)||t.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var i=n.previousSibling,o=n.nextSibling;i&&(i.nodeType==Node.TEXT_NODE&&0===i.textContent.replace(/\n|\r/g,"").length||t.node.hasClass(i,"fr-tmp"));)i=i.previousSibling;if(o)return!1;i&&r&&"BR"!=i.tagName&&!t.node.isBlock(i)&&!o&&0<r.textContent.replace(/\u200B/g,"").length&&0<i.textContent.length&&!t.node.hasClass(i,"fr-marker")&&(t.el==r&&!o&&t.opts.enter==e.FE.ENTER_BR&&t.browser.msie||n.parentNode.removeChild(n))}else!r||t.node.isBlock(r)||t.node.isElement(r)||n.previousSibling||n.nextSibling||!t.node.isDeletable(n.parentNode)||p(n.parentNode)}function h(){t.opts.htmlUntouched||(a(),u(),c(),t.spaces.normalize(null,!0),t.html.fillEmptyBlocks(),t.clean.lists(),t.clean.tables(),t.clean.toHTML5(),t.html.cleanBRs()),t.selection.restore(),g(),t.placeholder.refresh()}function g(){t.node.isEmpty(t.el)&&(null!=n()?t.el.querySelector(o())||t.el.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)")||(t.core.hasFocus()?(t.$el.html("<"+n()+">"+e.FE.MARKERS+"<br/></"+n()+">"),t.selection.restore()):t.$el.html("<"+n()+"><br/></"+n()+">")):t.el.querySelector("*:not(.fr-marker):not(br)")||(t.core.hasFocus()?(t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()):t.$el.html("<br/>")))}function m(e,t){return f(e,"<"+t+"[^>]*?>([\\w\\W]*)</"+t+">",1)}function v(n,r){var i=e("<div "+(f(n,"<"+r+"([^>]*?)>",1)||"")+">");return t.node.rawAttributes(i.get(0))}function y(e){return(f(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function b(e,n){t.opts.htmlExecuteScripts?e.html(n):e.get(0).innerHTML=n}function w(e){var t;(t=/:not\(([^\)]*)\)/g).test(e)&&(e=e.replace(t,"     $1 "));var n=100*(e.match(/(#[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(\[[^\]]+\])/g)||[]).length+10*(e.match(/(\.[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^\)]*\))/gi)||[]).length+10*(e.match(/(:[^\s\+>~\.\[:]+)/g)||[]).length+(e.match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;return n+=((e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).match(/([^\s\+>~\.\[:]+)/g)||[]).length}function $(e){if(t.events.trigger("html.processGet",[e]),e&&e.getAttribute&&""===e.getAttribute("class")&&e.removeAttribute("class"),e&&e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style"),e&&e.nodeType==Node.ELEMENT_NODE){var n,r=e.querySelectorAll('[class=""],[style=""]');for(n=0;n<r.length;n++){var i=r[n];""===i.getAttribute("class")&&i.removeAttribute("class"),""===i.getAttribute("style")&&i.removeAttribute("style")}if("BR"===e.tagName)p(e);else{var o=e.querySelectorAll("br");for(n=0;n<o.length;n++)p(o[n])}}}function E(e,t){return e[3]-t[3]}function S(e){var n=t.doc.createElement("div");return n.innerHTML=e,null!==n.querySelector(o())}function x(n){var r=null;if(void 0===n&&(r=t.selection.element()),t.opts.keepFormatOnDelete)return!1;var i,o,a=r?(r.textContent.match(/\u200B/g)||[]).length-r.querySelectorAll(".fr-marker").length:0;if((t.el.textContent.match(/\u200B/g)||[]).length-t.el.querySelectorAll(".fr-marker").length==a)return!1;do{o=!1,i=t.el.querySelectorAll("*:not(.fr-marker)");for(var s=0;s<i.length;s++){var l=i[s];if(r!=l){var u=l.textContent;0===l.children.length&&1===u.length&&8203==u.charCodeAt(0)&&"TD"!==l.tagName&&(e(l).remove(),o=!0)}}}while(o)}return{defaultTag:n,isPreformatted:r,emptyBlocks:i,emptyBlockTagsQuery:function(){return e.FE.BLOCK_TAGS.join(":empty, ")+":empty"},blockTagsQuery:o,fillEmptyBlocks:function(n){for(var r=i(n),o=0;o<r.length;o++){var a=r[o];"false"===a.getAttribute("contenteditable")||a.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||t.node.isVoid(a)||"TABLE"!=a.tagName&&"TBODY"!=a.tagName&&"TR"!=a.tagName&&"UL"!=a.tagName&&"OL"!=a.tagName&&a.appendChild(t.doc.createElement("br"))}if(t.browser.msie&&t.opts.enter==e.FE.ENTER_BR){var s=t.node.contents(t.el);s.length&&s[s.length-1].nodeType==Node.TEXT_NODE&&t.$el.append("<br>")}},cleanEmptyTags:a,cleanWhiteTags:x,cleanBlankSpaces:c,blocks:function(){return t.$el.get(0).querySelectorAll(o())},getDoctype:d,set:function(n){var r,i,o,a=t.clean.html((n||"").trim(),[],[],t.opts.fullPage);if(t.opts.fullPage){var s=m(a,"body")||(0<=a.indexOf("<body")?"":a),l=v(a,"body"),u=m(a,"head")||"<title></title>",c=v(a,"head"),f=e("<div>").append(u).contents().each(function(){(this.nodeType==Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}).end().html().trim();u=e("<div>").append(u).contents().map(function(){return this.nodeType==Node.COMMENT_NODE?"\x3c!--"+this.nodeValue+"--\x3e":0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var d=y(a),p=v(a,"html");b(t.$el,f+"\n"+s),t.node.clearAttributes(t.el),t.$el.attr(l),t.$el.addClass("fr-view"),t.$el.attr("spellcheck",t.opts.spellcheck),t.$el.attr("dir",t.opts.direction),b(t.$head,u),t.node.clearAttributes(t.$head.get(0)),t.$head.attr(c),t.node.clearAttributes(t.$html.get(0)),t.$html.attr(p),t.iframe_document.doctype.parentNode.replaceChild((r=d,i=t.iframe_document,(o=r.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?i.implementation.createDocumentType(o[1],o[3],o[4]):i.implementation.createDocumentType("html")),t.iframe_document.doctype)}else b(t.$el,a);var g=t.edit.isDisabled();t.edit.on(),t.core.injectStyle(t.opts.iframeDefaultStyle+t.opts.iframeStyle),h(),t.opts.useClasses||(t.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),t.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),g&&t.edit.off(),t.events.trigger("html.set")},get:function(e,n){if(!t.$wp)return t.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";t.events.trigger("html.beforeGet");var i,o,a=[],s={},l=[],u=t.el.querySelectorAll("input, textarea");for(i=0;i<u.length;i++)u[i].setAttribute("value",u[i].value);if(!t.opts.useClasses&&!n){var c=new RegExp("^"+t.opts.htmlIgnoreCSSProperties.join("$|^")+"$","gi");for(i=0;i<t.doc.styleSheets.length;i++){var f,p=0;try{f=t.doc.styleSheets[i].cssRules,t.doc.styleSheets[i].ownerNode&&"STYLE"==t.doc.styleSheets[i].ownerNode.nodeType&&(p=1)}catch(e){}if(f)for(var h=0,g=f.length;h<g;h++)if(f[h].selectorText&&0<f[h].style.cssText.length){var m,v=f[h].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":");try{m=t.el.querySelectorAll(v)}catch(e){m=[]}for(o=0;o<m.length;o++){!m[o].getAttribute("fr-original-style")&&m[o].getAttribute("style")?(m[o].setAttribute("fr-original-style",m[o].getAttribute("style")),a.push(m[o])):m[o].getAttribute("fr-original-style")||(m[o].setAttribute("fr-original-style",""),a.push(m[o])),s[m[o]]||(s[m[o]]={});for(var y=1e3*p+w(f[h].selectorText),b=f[h].style.cssText.split(";"),S=0;S<b.length;S++){var x=b[S].trim().split(":")[0];if(x&&!x.match(c)&&(s[m[o]][x]||(s[m[o]][x]=0)<=(m[o].getAttribute("fr-original-style")||"").indexOf(x+":")&&(s[m[o]][x]=1e4),y>=s[m[o]][x]&&(s[m[o]][x]=y,b[S].trim().length))){var C=b[S].trim().split(":");C.splice(0,1),l.push([m[o],x.trim(),C.join(":").trim(),y])}}}}}for(l.sort(E),i=0;i<l.length;i++){var T=l[i];T[0].style[T[1]]=T[2]}for(i=0;i<a.length;i++)if(a[i].getAttribute("class")&&(a[i].setAttribute("fr-original-class",a[i].getAttribute("class")),a[i].removeAttribute("class")),0<(a[i].getAttribute("fr-original-style")||"").trim().length){var k=a[i].getAttribute("fr-original-style").split(";");for(o=0;o<k.length;o++)if(0<k[o].indexOf(":")){var _=k[o].split(":"),A=_[0];_.splice(0,1),a[i].style[A.trim()]=_.join(":").trim()}}}if(t.node.isEmpty(t.el))t.opts.fullPage&&(r=d(t.iframe_document),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.find("head").get(0).outerHTML+"<body></body></html>");else if(void 0===e&&(e=!1),t.opts.fullPage){r=d(t.iframe_document),t.$el.removeClass("fr-view");var O=t.opts.heightMin;t.opts.heightMin=null,t.size.refresh(),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.html()+"</html>",t.opts.heightMin=O,t.size.refresh(),t.$el.addClass("fr-view")}else r=t.$el.html();if(!t.opts.useClasses&&!n)for(i=0;i<a.length;i++)a[i].getAttribute("fr-original-class")&&(a[i].setAttribute("class",a[i].getAttribute("fr-original-class")),a[i].removeAttribute("fr-original-class")),null!=a[i].getAttribute("fr-original-style")&&void 0!==a[i].getAttribute("fr-original-style")?(0!==a[i].getAttribute("fr-original-style").length?a[i].setAttribute("style",a[i].getAttribute("fr-original-style")):a[i].removeAttribute("style"),a[i].removeAttribute("fr-original-style")):a[i].removeAttribute("style");t.opts.fullPage&&(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),t.opts.htmlSimpleAmpersand&&(r=r.replace(/\&amp;/gi,"&")),t.events.trigger("html.afterGet"),e||(r=r.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=t.clean.invisibleSpaces(r),r=t.clean.exec(r,$);var D=t.events.chainTrigger("html.get",r);return"string"==typeof D&&(r=D),r=(r=r.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(e){return e.replace(/<br>/g,"\n")})).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){var n,r,i=function(n,r){for(;r&&(r.nodeType==Node.TEXT_NODE||!t.node.isBlock(r))&&!t.node.isElement(r)&&!t.node.hasClass(r,"fr-inner");)r&&r.nodeType!=Node.TEXT_NODE&&e(n).wrapInner(t.node.openTagString(r)+t.node.closeTagString(r)),r=r.parentNode;r&&n.innerHTML==r.innerHTML&&(n.innerHTML=r.outerHTML)},o="";if(void 0!==t.win.getSelection){t.browser.mozilla&&(t.selection.save(),1<t.$el.find('.fr-marker[data-type="false"]').length&&(t.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),t.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),t.$el.find(".fr-marker").not('[data-id="0"]').remove()),t.selection.restore());for(var a=t.selection.ranges(),s=0;s<a.length;s++){var l=document.createElement("div");l.appendChild(a[s].cloneContents()),i(l,(r=n=void 0,r=null,t.win.getSelection?(n=t.win.getSelection())&&n.rangeCount&&(r=n.getRangeAt(0).commonAncestorContainer).nodeType!=Node.ELEMENT_NODE&&(r=r.parentNode):(n=t.doc.selection)&&"Control"!=n.type&&(r=n.createRange().parentElement()),null!=r&&(0<=e.inArray(t.el,e(r).parents())||r==t.el)?r:null)),0<e(l).find(".fr-element").length&&(l=t.el),o+=l.innerHTML}}else void 0!==t.doc.selection&&"Text"==t.doc.selection.type&&(o=t.doc.selection.createRange().htmlText);return o},insert:function(n,r,i){var o,a,s;if(t.selection.isCollapsed()||t.selection.remove(),o=r?n:t.clean.html(n),n.indexOf('class="fr-marker"')<0&&(a=o,(s=t.doc.createElement("div")).innerHTML=a,t.selection.setAtEnd(s),o=s.innerHTML),t.node.isEmpty(t.el)&&!t.opts.keepFormatOnDelete&&S(o))t.el.innerHTML=o;else{var l=t.markers.insert();if(l){t.node.isLastSibling(l)&&e(l).parent().hasClass("fr-deletable")&&e(l).insertAfter(e(l).parent());var u=t.node.blockParent(l);if((S(o)||i)&&(t.node.deepestParent(l)||u&&"LI"==u.tagName)){if(u&&"LI"==u.tagName&&(o=function(n){if(!t.html.defaultTag())return n;var r=t.doc.createElement("div");r.innerHTML=n;for(var i=r.querySelectorAll(":scope > "+t.html.defaultTag()),o=i.length-1;0<=o;o--){var a=i[o];t.node.isBlock(a.previousSibling)||(a.previousSibling&&!t.node.isEmpty(a)&&e("<br>").insertAfter(a.previousSibling),a.outerHTML=a.innerHTML)}return r.innerHTML}(o)),!(l=t.markers.split()))return!1;l.outerHTML=o}else l.outerHTML=o}else t.el.innerHTML=t.el.innerHTML+o}h(),t.keys.positionCaret(),t.events.trigger("html.inserted")},wrap:u,unwrap:function(){t.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&e(this).before("<br>"),e(this).attr("data-empty")||!this.nextSibling||t.node.isBlock(this.nextSibling)&&!e(this.nextSibling).hasClass("fr-temp-div")?e(this).replaceWith(e(this).html()):e(this).replaceWith(e(this).html()+"<br>")}),t.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===e(this).attr("class")}).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:g,extractNode:m,extractNodeAttrs:v,extractDoctype:y,cleanBRs:function(){for(var e=t.el.getElementsByTagName("br"),n=0;n<e.length;n++)p(e[n])},_init:function(){if(t.$wp){var e=function(){x(),t.placeholder&&setTimeout(t.placeholder.refresh,0)};t.events.on("mouseup",e),t.events.on("keydown",e),t.events.on("contentChanged",g)}}}},e.extend(e.FE.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),e.FE.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.height(e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){if(!e.$wp)return!1;n(),e.$iframe&&(e.events.on("keyup keydown",function(){setTimeout(t,0)},!0),e.events.on("commands.after html.set init initialized paste.after",t))},syncIframe:t,refresh:n}},e.extend(e.FE.DEFAULTS,{language:null}),e.FE.LANGUAGE={},e.FE.MODULES.language=function(t){var n;return{_init:function(){e.FE.LANGUAGE&&(n=e.FE.LANGUAGE[t.opts.language]),n&&n.direction&&(t.opts.direction=n.direction)},translate:function(e){return n&&n.translation[e]&&n.translation[e].length?n.translation[e]:e}}},e.extend(e.FE.DEFAULTS,{placeholderText:"Type something"}),e.FE.MODULES.placeholder=function(t){function n(){t.$placeholder||(t.$placeholder=e('<span class="fr-placeholder"></span>'),t.$wp.append(t.$placeholder));var n=t.opts.iframe?t.$iframe.prev().outerHeight(!0):t.$el.prev().outerHeight(!0),r=0,i=0,o=0,a=0,s=0,l=0,u=t.node.contents(t.el),c=e(t.selection.element()).css("text-align");if(u.length&&u[0].nodeType==Node.ELEMENT_NODE){var f=e(u[0]);(!t.opts.toolbarInline||0<t.$el.prev().length)&&t.ready&&(r=t.helpers.getPX(f.css("margin-top")),a=t.helpers.getPX(f.css("padding-top")),i=t.helpers.getPX(f.css("margin-left")),o=t.helpers.getPX(f.css("margin-right")),s=t.helpers.getPX(f.css("padding-left")),l=t.helpers.getPX(f.css("padding-right"))),t.$placeholder.css("font-size",f.css("font-size")),t.$placeholder.css("line-height",f.css("line-height"))}else t.$placeholder.css("font-size",t.$el.css("font-size")),t.$placeholder.css("line-height",t.$el.css("line-height"));t.$wp.addClass("show-placeholder"),t.$placeholder.css({marginTop:Math.max(t.helpers.getPX(t.$el.css("margin-top")),r)+(n||0),paddingTop:Math.max(t.helpers.getPX(t.$el.css("padding-top")),a),paddingLeft:Math.max(t.helpers.getPX(t.$el.css("padding-left")),s),marginLeft:Math.max(t.helpers.getPX(t.$el.css("margin-left")),i),paddingRight:Math.max(t.helpers.getPX(t.$el.css("padding-right")),l),marginRight:Math.max(t.helpers.getPX(t.$el.css("margin-right")),o),textAlign:c}).text(t.language.translate(t.opts.placeholderText||t.$oel.attr("placeholder")||"")),t.$placeholder.html(t.$placeholder.text().replace(/\n/g,"<br>"))}function r(){t.$wp.removeClass("show-placeholder")}function i(){if(!t.$wp)return!1;t.core.isEmpty()?n():r()}return{_init:function(){if(!t.$wp)return!1;t.events.on("init input keydown keyup contentChanged initialized",i)},show:n,hide:r,refresh:i,isVisible:function(){return!t.$wp||t.node.hasClass(t.$wp.get(0),"show-placeholder")}}},e.FE.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",function(e){return e.preventDefault(),!1})}catch(e){}}var n=!1;function r(){return n}return{_init:function(){e.events.on("focus",function(){r()?e.edit.off():e.edit.on()})},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),e.$tb&&e.$tb.removeClass("fr-disabled").removeAttr("aria-disabled"),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),n=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0),e.$tb&&e.$tb.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.enableBlur(),n=!0},disableDesign:t,isDisabled:r}},e.extend(e.FE.DEFAULTS,{editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:10px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null}),e.FE.MODULES.core=function(t){return{_init:function(){if(e.FE.INSTANCES.push(t),t.drag_support={filereader:"undefined"!=typeof FileReader,formdata:!!t.win.FormData,progress:"upload"in new XMLHttpRequest},t.$wp){(function(){if(t.$box.addClass("fr-box"+(t.opts.editorClass?" "+t.opts.editorClass:"")),t.$box.attr("role","application"),t.$wp.addClass("fr-wrapper"),t.opts.iframe||t.$el.addClass("fr-element fr-view"),t.opts.iframe){t.$iframe.addClass("fr-iframe"),t.$el.addClass("fr-view");for(var e=0;e<t.o_doc.styleSheets.length;e++){var n;try{n=t.o_doc.styleSheets[e].cssRules}catch(e){}if(n)for(var r=0,i=n.length;r<i;r++)!n[r].selectorText||0!==n[r].selectorText.indexOf(".fr-view")&&0!==n[r].selectorText.indexOf(".fr-element")||0<n[r].style.cssText.length&&(0===n[r].selectorText.indexOf(".fr-view")?t.opts.iframeStyle+=n[r].selectorText.replace(/\.fr-view/g,"body")+"{"+n[r].style.cssText+"}":t.opts.iframeStyle+=n[r].selectorText.replace(/\.fr-element/g,"body")+"{"+n[r].style.cssText+"}")}}"auto"!=t.opts.direction&&t.$box.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.$el.attr("dir",t.opts.direction),t.$wp.attr("dir",t.opts.direction),1<t.opts.zIndex&&t.$box.css("z-index",t.opts.zIndex),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"),t.opts.tabIndex=t.opts.tabIndex||t.$oel.attr("tabIndex"),t.opts.tabIndex&&t.$el.attr("tabIndex",t.opts.tabIndex)})(),t.html.set(t._original_html),t.$el.attr("spellcheck",t.opts.spellcheck),t.helpers.isMobile()&&(t.$el.attr("autocomplete",t.opts.spellcheck?"on":"off"),t.$el.attr("autocorrect",t.opts.spellcheck?"on":"off"),t.$el.attr("autocapitalize",t.opts.spellcheck?"on":"off")),t.opts.disableRightClick&&t.events.$on(t.$el,"contextmenu",function(e){if(2==e.button)return!1});try{t.doc.execCommand("styleWithCSS",!1,!1)}catch(e){}}"TEXTAREA"==t.$oel.get(0).tagName&&(t.events.on("contentChanged",function(){t.$oel.val(t.html.get())}),t.events.on("form.submit",function(){t.$oel.val(t.html.get())}),t.events.on("form.reset",function(){t.html.set(t._original_html)}),t.$oel.val(t.html.get())),t.helpers.isIOS()&&t.events.$on(t.$doc,"selectionchange",function(){t.$doc.get(0).hasFocus()||t.$win.get(0).focus()}),t.events.trigger("init"),t.opts.autofocus&&!t.opts.initOnClick&&t.$wp&&t.events.on("initialized",function(){t.events.focus(!0)})},destroy:function(e){"TEXTAREA"==t.$oel.get(0).tagName&&t.$oel.val(e),t.$box&&t.$box.removeAttr("role"),t.$wp&&("TEXTAREA"==t.$oel.get(0).tagName?(t.$el.html(""),t.$wp.html(""),t.$box.replaceWith(t.$oel),t.$oel.show()):(t.$wp.replaceWith(e),t.$el.html(""),t.$box.removeClass("fr-view fr-ltr fr-box "+(t.opts.editorClass||"")),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return t.node.isEmpty(t.el)},getXHR:function(e,n){var r=new XMLHttpRequest;for(var i in r.open(n,e,!0),t.opts.requestWithCredentials&&(r.withCredentials=!0),t.opts.requestHeaders)t.opts.requestHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,t.opts.requestHeaders[i]);return r},injectStyle:function(n){if(t.opts.iframe){t.$head.find("style[data-fr-style], link[data-fr-style]").remove(),t.$head.append('<style data-fr-style="true">'+n+"</style>");for(var r=0;r<t.opts.iframeStyleFiles.length;r++){var i=e('<link data-fr-style="true" rel="stylesheet" href="'+t.opts.iframeStyleFiles[r]+'">');i.get(0).addEventListener("load",t.size.syncIframe),t.$head.append(i)}}},hasFocus:function(){return t.browser.mozilla&&t.helpers.isMobile()?t.selection.inEditor():t.node.hasFocus(t.el)||0<t.$el.find("*:focus").length},sameInstance:function(e){if(!e)return!1;var n=e.data("instance");return!!n&&n.id==t.id}}},e.FE.MODULES.cursorLists=function(t){function n(e){for(var t=e;"LI"!=t.tagName;)t=t.parentNode;return t}function r(e){for(var n=e;!t.node.isList(n);)n=n.parentNode;return n}return{_startEnter:function(i){var o,a=n(i),s=a.nextSibling,l=a.previousSibling,u=t.html.defaultTag();if(t.node.isEmpty(a,!0)&&s){for(var c="",f="",d=i.parentNode;!t.node.isList(d)&&d.parentNode&&("LI"!==d.parentNode.tagName||d.parentNode===a);)c=t.node.openTagString(d)+c,f+=t.node.closeTagString(d),d=d.parentNode;c=t.node.openTagString(d)+c,f+=t.node.closeTagString(d);var p="";for(p=d.parentNode&&"LI"==d.parentNode.tagName?f+"<li>"+e.FE.MARKERS+"<br>"+c:u?f+"<"+u+">"+e.FE.MARKERS+"<br></"+u+">"+c:f+e.FE.MARKERS+"<br>"+c;["UL","OL"].indexOf(d.tagName)<0||d.parentNode&&"LI"===d.parentNode.tagName;)d=d.parentNode;e(a).replaceWith('<span id="fr-break"></span>');var h=t.node.openTagString(d)+e(d).html()+t.node.closeTagString(d);h=h.replace(/<span id="fr-break"><\/span>/g,p),e(d).replaceWith(h),t.$el.find("li:empty").remove()}else if(l&&s||!t.node.isEmpty(a,!0)){for(var g="<br>",m=i.parentNode;m&&"LI"!=m.tagName;)g=t.node.openTagString(m)+g+t.node.closeTagString(m),m=m.parentNode;e(a).before("<li>"+g+"</li>"),e(i).remove()}else if(l){o=r(a);for(var v=e.FE.MARKERS+"<br>",y=i.parentNode;y&&"LI"!=y.tagName;)v=t.node.openTagString(y)+v+t.node.closeTagString(y),y=y.parentNode;o.parentNode&&"LI"==o.parentNode.tagName?e(o.parentNode).after("<li>"+v+"</li>"):u?e(o).after("<"+u+">"+v+"</"+u+">"):e(o).after(v),e(a).remove()}else(o=r(a)).parentNode&&"LI"==o.parentNode.tagName?s?e(o.parentNode).before(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):e(o.parentNode).after(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):u?e(o).before("<"+u+">"+e.FE.MARKERS+"<br></"+u+">"):e(o).before(e.FE.MARKERS+"<br>"),e(a).remove()},_middleEnter:function(r){for(var i=n(r),o="",a=r,s="",l="";a!=i;){var u="A"==(a=a.parentNode).tagName&&t.cursor.isAtEnd(r,a)?"fr-to-remove":"";s=t.node.openTagString(e(a).clone().addClass(u).get(0))+s,l=t.node.closeTagString(a)+l}o=l+o+s+e.FE.MARKERS+e.FE.INVISIBLE_SPACE,e(r).replaceWith('<span id="fr-break"></span>');var c=t.node.openTagString(i)+e(i).html()+t.node.closeTagString(i);c=c.replace(/<span id="fr-break"><\/span>/g,o),e(i).replaceWith(c)},_endEnter:function(r){for(var i=n(r),o=e.FE.MARKERS,a="",s=r,l=!1;s!=i;){var u="A"==(s=s.parentNode).tagName&&t.cursor.isAtEnd(r,s)?"fr-to-remove":"";l||s==i||t.node.isBlock(s)||(l=!0,a+=e.FE.INVISIBLE_SPACE),a=t.node.openTagString(e(s).clone().addClass(u).get(0))+a,o+=t.node.closeTagString(s)}var c=a+o;e(r).remove(),e(i).after(c)},_backspace:function(i){var o=n(i),a=o.previousSibling;if(a){a=e(a).find(t.html.blockTagsQuery()).get(-1)||a,e(i).replaceWith(e.FE.MARKERS);var s=t.node.contents(a);s.length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(o).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==o&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var l,u=t.node.contents(o)[0];u&&!t.node.isList(u);)l=u.nextSibling,e(a).append(u),u=l;for(a=o.previousSibling;u;)l=u.nextSibling,e(a).append(u),u=l;e(o).remove()}else{var c=r(o);if(e(i).replaceWith(e.FE.MARKERS),c.parentNode&&"LI"==c.parentNode.tagName){var f=c.previousSibling;t.node.isBlock(f)?(e(o).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==o&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(f).append(e(o).html())):e(c).before(e(o).html())}else{var d=t.html.defaultTag();d&&0===e(o).find(t.html.blockTagsQuery()).length?e(c).before("<"+d+">"+e(o).html()+"</"+d+">"):e(c).before(e(o).html())}e(o).remove(),t.html.wrap(),0===e(c).find("li").length&&e(c).remove()}},_del:function(r){var i,o=n(r),a=o.nextSibling;if(a){(i=t.node.contents(a)).length&&"BR"==i[0].tagName&&e(i[0]).remove(),e(a).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==a&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var s,l=r,u=t.node.contents(a)[0];u&&!t.node.isList(u);)s=u.nextSibling,e(l).after(u),l=u,u=s;for(;u;)s=u.nextSibling,e(o).append(u),u=s;e(r).replaceWith(e.FE.MARKERS),e(a).remove()}else{for(var c=o;!c.nextSibling&&c!=t.el;)c=c.parentNode;if(c==t.el)return!1;if(c=c.nextSibling,t.node.isBlock(c))e.FE.NO_DELETE_TAGS.indexOf(c.tagName)<0&&(e(r).replaceWith(e.FE.MARKERS),(i=t.node.contents(o)).length&&"BR"==i[i.length-1].tagName&&e(i[i.length-1]).remove(),e(o).append(e(c).html()),e(c).remove());else for((i=t.node.contents(o)).length&&"BR"==i[i.length-1].tagName&&e(i[i.length-1]).remove(),e(r).replaceWith(e.FE.MARKERS);c&&!t.node.isBlock(c)&&"BR"!=c.tagName;)e(o).append(e(c)),c=c.nextSibling}}}},e.FE.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],e.FE.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],e.FE.MODULES.cursor=function(t){function n(e){return!!e&&(!!t.node.isBlock(e)||(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?n(e.nextSibling):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&n(e.parentNode)))}function r(e){return!!e&&(!!t.node.isBlock(e)||(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?r(e.previousSibling):!e.previousSibling&&(!(e.previousSibling||!t.node.hasClass(e.parentNode,"fr-inner"))||r(e.parentNode))))}function i(e,n){return!!e&&e!=t.$wp.get(0)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?i(e.previousSibling,n):!e.previousSibling&&(e.parentNode==n||i(e.parentNode,n)))}function o(e,n){return!!e&&e!=t.$wp.get(0)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?o(e.nextSibling,n):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&(e.parentNode==n||o(e.parentNode,n)))}function a(n){return 0<e(n).parentsUntil(t.$el,"LI").length&&0===e(n).parentsUntil("LI","TABLE").length}function s(e,t){var n=new RegExp((t?"^":"")+"(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})"+(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function l(n){for(var r,i=n;!i.previousSibling;)if(i=i.parentNode,t.node.isElement(i))return!1;if(i=i.previousSibling,!t.node.isBlock(i)&&t.node.isEditable(i)){for(r=t.node.contents(i);i.nodeType!=Node.TEXT_NODE&&!t.node.isDeletable(i)&&r.length&&t.node.isEditable(i);)i=r[r.length-1],r=t.node.contents(i);if(i.nodeType==Node.TEXT_NODE){var o=i.textContent,a=o.length;if(o.length&&"\n"===o[o.length-1])return i.textContent=o.substring(0,a-2),0===i.textContent.length&&i.parentNode.removeChild(i),l(n);t.opts.tabSpaces&&o.length>=t.opts.tabSpaces&&0===o.substr(o.length-t.opts.tabSpaces,o.length-1).replace(/ /g,"").replace(new RegExp(e.FE.UNICODE_NBSP,"g"),"").length&&(a=o.length-t.opts.tabSpaces+1),i.textContent=o.substring(0,a-s(o));var u=o.length!=i.textContent.length;if(0===i.textContent.length)if(u&&t.opts.keepFormatOnDelete)e(i).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS);else if((2!=i.parentNode.childNodes.length||i.parentNode!=n.parentNode)&&1!=i.parentNode.childNodes.length||t.node.isBlock(i.parentNode)||t.node.isElement(i.parentNode)||!t.node.isDeletable(i.parentNode)){for(;!t.node.isElement(i.parentNode)&&t.node.isEmpty(i.parentNode)&&t.node.isDeletable(i.parentNode);){var c=i;i=i.parentNode,c.parentNode.removeChild(c)}e(i).after(e.FE.MARKERS),t.node.isElement(i.parentNode)&&!n.nextSibling&&i.previousSibling&&"BR"==i.previousSibling.tagName&&e(n).after("<br>"),i.parentNode.removeChild(i)}else e(i.parentNode).after(e.FE.MARKERS),e(i.parentNode).remove();else e(i).after(e.FE.MARKERS)}else t.node.isDeletable(i)?(e(i).after(e.FE.MARKERS),e(i).remove()):n.nextSibling&&"BR"==n.nextSibling.tagName&&t.node.isVoid(i)&&"BR"!=i.tagName?(e(n.nextSibling).remove(),e(n).replaceWith(e.FE.MARKERS)):!1!==t.events.trigger("node.remove",[e(i)])&&(e(i).after(e.FE.MARKERS),e(i).remove())}else if(e.FE.NO_DELETE_TAGS.indexOf(i.tagName)<0&&(t.node.isEditable(i)||t.node.isDeletable(i)))if(t.node.isDeletable(i))e(n).replaceWith(e.FE.MARKERS),e(i).remove();else if(t.node.isEmpty(i)&&!t.node.isList(i))e(i).remove(),e(n).replaceWith(e.FE.MARKERS);else{for(t.node.isList(i)&&(i=e(i).find("li:last").get(0)),(r=t.node.contents(i))&&"BR"==r[r.length-1].tagName&&e(r[r.length-1]).remove(),r=t.node.contents(i);r&&t.node.isBlock(r[r.length-1]);)i=r[r.length-1],r=t.node.contents(i);e(i).append(e.FE.MARKERS);for(var f=n;!f.previousSibling;)f=f.parentNode;for(;f&&"BR"!==f.tagName&&!t.node.isBlock(f);){var d=f;f=f.nextSibling,e(i).append(d)}f&&"BR"==f.tagName&&e(f).remove(),e(n).remove()}else n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove()}function u(n){var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,i=t.node.deepestParent(n,[],!r);if(i&&"BLOCKQUOTE"==i.tagName){var o=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);o&&o.nextSibling&&(i=o)}if(null!==i){var a,s=i.nextSibling;if(t.node.isBlock(i)&&(t.node.isEditable(i)||t.node.isDeletable(i))&&s&&e.FE.NO_DELETE_TAGS.indexOf(s.tagName)<0)if(t.node.isDeletable(s))e(s).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isBlock(s)&&t.node.isEditable(s))if(t.node.isList(s))if(t.node.isEmpty(i,!0))e(i).remove(),e(s).find("li:first").prepend(e.FE.MARKERS);else{var l=e(s).find("li:first");"BLOCKQUOTE"==i.tagName&&(a=t.node.contents(i)).length&&t.node.isBlock(a[a.length-1])&&(i=a[a.length-1]),0===l.find("ul, ol").length&&(e(n).replaceWith(e.FE.MARKERS),l.find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==l.get(0)&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(i).append(t.node.contents(l.get(0))),l.remove(),0===e(s).find("li").length&&e(s).remove())}else{if((a=t.node.contents(s)).length&&"BR"==a[0].tagName&&e(a[0]).remove(),"BLOCKQUOTE"!=s.tagName&&"BLOCKQUOTE"==i.tagName)for(a=t.node.contents(i);a.length&&t.node.isBlock(a[a.length-1]);)i=a[a.length-1],a=t.node.contents(i);else if("BLOCKQUOTE"==s.tagName&&"BLOCKQUOTE"!=i.tagName)for(a=t.node.contents(s);a.length&&t.node.isBlock(a[0]);)s=a[0],a=t.node.contents(s);e(n).replaceWith(e.FE.MARKERS),e(i).append(s.innerHTML),e(s).remove()}else{for(e(n).replaceWith(e.FE.MARKERS);s&&"BR"!==s.tagName&&!t.node.isBlock(s)&&t.node.isEditable(s);){var u=s;s=s.nextSibling,e(i).append(u)}s&&"BR"==s.tagName&&t.node.isEditable(s)&&e(s).remove()}}}function c(){for(var e=t.el.querySelectorAll("blockquote:empty"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])}function f(n,r,i){var a,s=t.node.deepestParent(n,[],!i);if(s&&"BLOCKQUOTE"==s.tagName)return o(n,s)?((a=t.html.defaultTag())?e(s).after("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):e(s).after(e.FE.MARKERS+"<br>"),e(n).remove()):d(n,r,i),!1;if(null==s)(a=t.html.defaultTag())&&t.node.isElement(n.parentNode)?e(n).replaceWith("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):!n.previousSibling||e(n.previousSibling).is("br")||n.nextSibling?e(n).replaceWith("<br>"+e.FE.MARKERS):e(n).replaceWith("<br>"+e.FE.MARKERS+"<br>");else{var l=n,u="";t.node.isBlock(s)&&!r||(u="<br/>");var c,f="",p="",h="",g="";(a=t.html.defaultTag())&&t.node.isBlock(s)&&(h="<"+a+">",g="</"+a+">",s.tagName==a.toUpperCase()&&(h=t.node.openTagString(e(s).clone().removeAttr("id").get(0))));do{if(l=l.parentNode,!r||l!=s||r&&!t.node.isBlock(s))if(f+=t.node.closeTagString(l),l==s&&t.node.isBlock(s))p=h+p;else{var m="A"==l.tagName&&o(n,l)?"fr-to-remove":"";p=t.node.openTagString(e(l).clone().addClass(m).get(0))+p}}while(l!=s);u=f+u+p+(n.parentNode==s&&t.node.isBlock(s)?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS,t.node.isBlock(s)&&!e(s).find("*:last").is("br")&&e(s).append("<br/>"),e(n).after('<span id="fr-break"></span>'),e(n).remove(),s.nextSibling&&!t.node.isBlock(s.nextSibling)||t.node.isBlock(s)||e(s).after("<br>"),c=(c=!r&&t.node.isBlock(s)?t.node.openTagString(s)+e(s).html()+g:t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s)).replace(/<span id="fr-break"><\/span>/g,u),e(s).replaceWith(c)}}function d(n,r,a){var s=t.node.deepestParent(n,[],!a);if(null==s)t.html.defaultTag()&&n.parentNode===t.el?e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">"):(n.nextSibling&&!t.node.isBlock(n.nextSibling)||e(n).after("<br>"),e(n).replaceWith("<br>"+e.FE.MARKERS));else{var l=n,u="";"PRE"==s.tagName&&(r=!0),t.node.isBlock(s)&&!r||(u="<br>");var c="",f="";do{var d=l;if(l=l.parentNode,"BLOCKQUOTE"==s.tagName&&t.node.isEmpty(d)&&!t.node.hasClass(d,"fr-marker")&&0<e(d).find(n).length&&e(d).after(n),("BLOCKQUOTE"!=s.tagName||!o(n,l)&&!i(n,l))&&(!r||l!=s||r&&!t.node.isBlock(s))){c+=t.node.closeTagString(l);var p="A"==l.tagName&&o(n,l)?"fr-to-remove":"";f=t.node.openTagString(e(l).clone().addClass(p).removeAttr("id").get(0))+f}}while(l!=s);var h=s==n.parentNode&&t.node.isBlock(s)||n.nextSibling;if("BLOCKQUOTE"==s.tagName){n.previousSibling&&t.node.isBlock(n.previousSibling)&&n.nextSibling&&"BR"==n.nextSibling.tagName&&(e(n.nextSibling).after(n),n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove());var g=t.html.defaultTag();u=c+u+(g?"<"+g+">":"")+e.FE.MARKERS+"<br>"+(g?"</"+g+">":"")+f}else u=c+u+f+(h?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS;e(n).replaceWith('<span id="fr-break"></span>');var m=t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s);m=m.replace(/<span id="fr-break"><\/span>/g,u),e(s).replaceWith(m)}}return{enter:function(s){var l=t.markers.insert();if(!l)return!0;t.el.normalize();var u=!1;0<e(l).parentsUntil(t.$el,"BLOCKQUOTE").length&&(u=!(s=!1)),e(l).parentsUntil(t.$el,"TD, TH").length&&(u=!1),n(l)?!a(l)||s||u?f(l,s,u):t.cursorLists._endEnter(l):r(l)?!a(l)||s||u?function n(r,a,s){var l,u=t.node.deepestParent(r,[],!s);if(u&&"TABLE"==u.tagName)return e(u).find("td:first, th:first").prepend(r),n(r,a,s);if(u&&"BLOCKQUOTE"==u.tagName){if(i(r,u))return(l=t.html.defaultTag())?e(u).before("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(u).before(e.FE.MARKERS+"<br>"),e(r).remove(),!1;o(r,u)?f(r,a,!0):d(r,a,!0)}if(null==u)(l=t.html.defaultTag())&&t.node.isElement(r.parentNode)?e(r).replaceWith("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(r).replaceWith("<br>"+e.FE.MARKERS);else{if(t.node.isBlock(u))if("PRE"==u.tagName&&(a=!0),a)e(r).remove(),e(u).prepend("<br>"+e.FE.MARKERS);else{if(t.node.isEmpty(u,!0))return f(r,a,s);if(t.opts.keepFormatOnDelete){for(var c=r,p=e.FE.INVISIBLE_SPACE;c!=u&&!t.node.isElement(c);)c=c.parentNode,p=t.node.openTagString(c)+p+t.node.closeTagString(c);e(u).before(p)}else e(u).before(t.node.openTagString(e(u).clone().removeAttr("id").get(0))+"<br>"+t.node.closeTagString(u))}else e(u).before("<br>");e(r).remove()}}(l,s,u):t.cursorLists._startEnter(l):!a(l)||s||u?d(l,s,u):t.cursorLists._middleEnter(l),t.$el.find(".fr-to-remove").each(function(){for(var n=t.node.contents(this),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE&&(n[r].textContent=n[r].textContent.replace(/\u200B/g,""));e(this).replaceWith(this.innerHTML)}),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists()),t.spaces.normalizeAroundCursor(),t.selection.restore()},backspace:function(){var o=!1,u=t.markers.insert();if(!u)return!0;for(var f=u.parentNode;f&&!t.node.isElement(f);){if("false"===f.getAttribute("contenteditable"))return e(u).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===f.getAttribute("contenteditable"))break;f=f.parentNode}t.el.normalize();var d=u.previousSibling;if(d){var p=d.textContent;p&&p.length&&8203==p.charCodeAt(p.length-1)&&(1==p.length?e(d).remove():d.textContent=d.textContent.substr(0,p.length-s(p)))}return n(u)?o=l(u):r(u)?a(u)&&i(u,e(u).parents("li:first").get(0))?t.cursorLists._backspace(u):function(n){for(var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,i=t.node.deepestParent(n,[],!r),o=i;i&&!i.previousSibling&&"BLOCKQUOTE"!=i.tagName&&i.parentElement!=t.el&&!t.node.hasClass(i.parentElement,"fr-inner")&&e.FE.SIMPLE_ENTER_TAGS.indexOf(i.parentElement.tagName)<0;)i=i.parentElement;if(i&&"BLOCKQUOTE"==i.tagName){var a=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);a&&a.previousSibling&&(o=i=a)}if(null!==i){var s,l=i.previousSibling;if(t.node.isBlock(i)&&t.node.isEditable(i)&&l&&e.FE.NO_DELETE_TAGS.indexOf(l.tagName)<0)if(t.node.isDeletable(l))e(l).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isEditable(l))if(t.node.isBlock(l))if(t.node.isEmpty(l)&&!t.node.isList(l))e(l).remove(),e(n).after(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:"");else{if(t.node.isList(l)&&(l=e(l).find("li:last").get(0)),(s=t.node.contents(l)).length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),"BLOCKQUOTE"==l.tagName&&"BLOCKQUOTE"!=i.tagName)for(s=t.node.contents(l);s.length&&t.node.isBlock(s[s.length-1]);)l=s[s.length-1],s=t.node.contents(l);else if("BLOCKQUOTE"!=l.tagName&&"BLOCKQUOTE"==i.tagName)for(s=t.node.contents(i);s.length&&t.node.isBlock(s[0]);)i=s[0],s=t.node.contents(i);if(t.node.isEmpty(i))e(n).remove(),t.selection.setAtEnd(l,!0);else{e(n).replaceWith(e.FE.MARKERS);var u=l.childNodes;t.node.isBlock(u[u.length-1])?e(u[u.length-1]).append(o.innerHTML):e(l).append(o.innerHTML)}e(o).remove(),t.node.isEmpty(i)&&e(i).remove()}else e(n).replaceWith(e.FE.MARKERS),"BLOCKQUOTE"==i.tagName&&l.nodeType==Node.ELEMENT_NODE?e(l).remove():(e(l).after(t.node.isEmpty(i)?"":e(i).html()),e(i).remove(),"BR"==l.tagName&&e(l).remove())}}(u):o=l(u),e(u).remove(),c(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore(),o},del:function(){var i=t.markers.insert();if(!i)return!1;if(t.el.normalize(),n(i))if(a(i))if(0===e(i).parents("li:first").find("ul, ol").length)t.cursorLists._del(i);else{var o=e(i).parents("li:first").find("ul:first, ol:first").find("li:first");(o=o.find(t.html.blockTagsQuery()).get(-1)||o).prepend(i),t.cursorLists._backspace(i)}else u(i);else r(i),function(r){for(var i,o=r;!o.nextSibling;)if(o=o.parentNode,t.node.isElement(o))return!1;if("BR"==(o=o.nextSibling).tagName&&t.node.isEditable(o))if(o.nextSibling){if(t.node.isBlock(o.nextSibling)&&t.node.isEditable(o.nextSibling)){if(!(e.FE.NO_DELETE_TAGS.indexOf(o.nextSibling.tagName)<0))return void e(o).remove();o=o.nextSibling,e(o.previousSibling).remove()}}else if(n(o))return void(a(r)?t.cursorLists._del(r):t.node.deepestParent(o)&&((!t.node.isEmpty(t.node.blockParent(o))||(t.node.blockParent(o).nextSibling&&e.FE.NO_DELETE_TAGS.indexOf(t.node.blockParent(o).nextSibling.tagName))<0)&&e(o).remove(),u(r)));if(!t.node.isBlock(o)&&t.node.isEditable(o)){for(i=t.node.contents(o);o.nodeType!=Node.TEXT_NODE&&i.length&&!t.node.isDeletable(o)&&t.node.isEditable(o);)o=i[0],i=t.node.contents(o);o.nodeType==Node.TEXT_NODE?(e(o).before(e.FE.MARKERS),o.textContent.length&&(o.textContent=o.textContent.substring(s(o.textContent,!0),o.textContent.length))):t.node.isDeletable(o)?(e(o).before(e.FE.MARKERS),e(o).remove()):!1!==t.events.trigger("node.remove",[e(o)])&&(e(o).before(e.FE.MARKERS),e(o).remove()),e(r).remove()}else if(e.FE.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(t.node.isEditable(o)||t.node.isDeletable(o)))if(t.node.isDeletable(o))e(r).replaceWith(e.FE.MARKERS),e(o).remove();else if(t.node.isList(o))r.previousSibling?(e(o).find("li:first").prepend(r),t.cursorLists._backspace(r)):(e(o).find("li:first").prepend(e.FE.MARKERS),e(r).remove());else if((i=t.node.contents(o))&&"BR"==i[0].tagName&&e(i[0]).remove(),i&&"BLOCKQUOTE"==o.tagName){var l=i[0];for(e(r).before(e.FE.MARKERS);l&&"BR"!=l.tagName;){var c=l;l=l.nextSibling,e(r).before(c)}l&&"BR"==l.tagName&&e(l).remove()}else e(r).after(e(o).html()).after(e.FE.MARKERS),e(o).remove()}(i);e(i).remove(),c(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists()),t.spaces.normalizeAroundCursor(),t.selection.restore()},isAtEnd:o,isAtStart:i}},e.FE.ENTER_P=0,e.FE.ENTER_DIV=1,e.FE.ENTER_BR=2,e.FE.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},e.extend(e.FE.DEFAULTS,{enter:e.FE.ENTER_P,multiLine:!0,tabSpaces:0}),e.FE.MODULES.keys=function(t){var n,r,i,o=!1;function a(){if(t.browser.mozilla&&t.selection.isCollapsed()&&!o){var e=t.selection.ranges(0),n=e.startContainer,r=e.startOffset;n&&n.nodeType==Node.TEXT_NODE&&r<=n.textContent.length&&0<r&&32==n.textContent.charCodeAt(r-1)&&(t.selection.save(),t.spaces.normalize(),t.selection.restore())}}function s(){t.selection.isFull()&&setTimeout(function(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore(),t.placeholder.refresh(),t.button.bulkRefresh(),t.undo.saveStep()},0)}function l(){o=!1}function u(){o=!1}function c(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()}function f(r){var i=t.selection.element();if(i&&0<=["INPUT","TEXTAREA"].indexOf(i.tagName))return!0;if(r&&g(r.which))return!0;t.events.disableBlur();var a=r.which;if(16===a)return!0;if((n=a)===e.FE.KEYCODE.IME)return o=!0;o=!1;var s,l,u,f=m(a)&&!h(r)&&!r.altKey,d=a==e.FE.KEYCODE.BACKSPACE||a==e.FE.KEYCODE.DELETE;if((t.selection.isFull()&&!t.opts.keepFormatOnDelete&&!t.placeholder.isVisible()||d&&t.placeholder.isVisible()&&t.opts.keepFormatOnDelete)&&(f||d)&&(c(),!m(a)))return r.preventDefault(),!0;a==e.FE.KEYCODE.ENTER?r.shiftKey?((u=r).preventDefault(),u.stopPropagation(),t.opts.multiLine&&(t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter(!0))):(l=r,t.opts.multiLine?(t.helpers.isIOS()||(l.preventDefault(),l.stopPropagation()),t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter()):(l.preventDefault(),l.stopPropagation())):a===e.FE.KEYCODE.BACKSPACE&&(r.metaKey||r.ctrlKey)?setTimeout(function(){t.events.disableBlur(),t.events.focus()},0):a!=e.FE.KEYCODE.BACKSPACE||h(r)||r.altKey?a!=e.FE.KEYCODE.DELETE||h(r)||r.altKey||r.shiftKey?a==e.FE.KEYCODE.SPACE?function(n){var r=t.selection.element();if(!t.helpers.isMobile()&&r&&"A"==r.tagName){n.preventDefault(),n.stopPropagation(),t.selection.isCollapsed()||t.selection.remove();var i=t.markers.insert();if(i){var o=i.previousSibling;!i.nextSibling&&i.parentNode&&"A"==i.parentNode.tagName?(i.parentNode.insertAdjacentHTML("afterend","&nbsp;"+e.FE.MARKERS),i.parentNode.removeChild(i)):(o&&o.nodeType==Node.TEXT_NODE&&1==o.textContent.length&&160==o.textContent.charCodeAt(0)?o.textContent=o.textContent+" ":i.insertAdjacentHTML("beforebegin","&nbsp;"),i.outerHTML=e.FE.MARKERS),t.selection.restore()}}}(r):a==e.FE.KEYCODE.TAB?function(e){if(0<t.opts.tabSpaces)if(t.selection.isCollapsed()){t.undo.saveStep(),e.preventDefault(),e.stopPropagation();for(var n="",r=0;r<t.opts.tabSpaces;r++)n+="&nbsp;";t.html.insert(n),t.placeholder.refresh(),t.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?t.commands.outdent():t.commands.indent()}(r):h(r)||!m(r.which)||t.selection.isCollapsed()||r.ctrlKey||r.altKey||t.selection.remove():t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||c(),r.preventDefault(),r.stopPropagation()):((s=r).preventDefault(),s.stopPropagation(),""===t.selection.text()?t.cursor.del():t.selection.remove(),t.placeholder.refresh()):t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||c(),r.preventDefault(),r.stopPropagation()):function(e){if(t.selection.isCollapsed())if(t.cursor.backspace(),t.helpers.isIOS()){var n=t.selection.ranges(0);n.deleteContents(),n.insertNode(document.createTextNode("​")),t.selection.get().modify("move","forward","character")}else e.preventDefault(),e.stopPropagation();else e.preventDefault(),e.stopPropagation(),t.selection.remove();t.placeholder.refresh()}(r),t.events.enableBlur()}function d(){if(!t.$wp)return!0;var n;t.opts.height||t.opts.heightMax?(n=t.position.getBoundingRect().top,(t.helpers.isIOS()||t.helpers.isAndroid())&&(n-=t.helpers.scrollTop()),t.opts.iframe&&(n+=t.$iframe.offset().top),n>t.$wp.offset().top-t.helpers.scrollTop()+t.$wp.height()-20&&t.$wp.scrollTop(n+t.$wp.scrollTop()-(t.$wp.height()+t.$wp.offset().top)+t.helpers.scrollTop()+20)):(n=t.position.getBoundingRect().top,t.opts.toolbarBottom&&(n+=t.opts.toolbarStickyOffset),(t.helpers.isIOS()||t.helpers.isAndroid())&&(n-=t.helpers.scrollTop()),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),(n+=t.opts.toolbarStickyOffset)>t.o_win.innerHeight-20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.o_win.innerHeight+20),n=t.position.getBoundingRect().top,t.opts.toolbarBottom||(n-=t.opts.toolbarStickyOffset),(t.helpers.isIOS()||t.helpers.isAndroid())&&(n-=t.helpers.scrollTop()),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n<t.$tb.height()+20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.$tb.height()-20))}function p(r){var i=t.selection.element();if(i&&0<=["INPUT","TEXTAREA"].indexOf(i.tagName))return!0;if(r&&0===r.which&&n&&(r.which=n),t.helpers.isAndroid()&&t.browser.mozilla)return!0;if(o)return!1;if(r&&t.helpers.isIOS()&&r.which==e.FE.KEYCODE.ENTER&&t.doc.execCommand("undo"),!t.selection.isCollapsed())return!0;if(r&&(r.which===e.FE.KEYCODE.META||r.which==e.FE.KEYCODE.CTRL))return!0;if(r&&g(r.which))return!0;if(r&&!t.helpers.isIOS()&&(r.which==e.FE.KEYCODE.ENTER||r.which==e.FE.KEYCODE.BACKSPACE||37<=r.which&&r.which<=40&&!t.browser.msie))try{d()}catch(e){}var a,s=t.selection.element();!function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0<t.replace(/\u200B/gi,"").length)}(s)||t.node.hasClass(s,"fr-marker")||"IFRAME"==s.tagName||(a=s,t.helpers.isIOS()&&0!==((a.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length)||(t.selection.save(),function(e){for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return/\u200B/gi.test(e.textContent)}),!1);n.nextNode();){var r=n.currentNode;r.textContent=r.textContent.replace(/\u200B/gi,"")}}(s),t.selection.restore())}function h(e){if(-1!=navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function g(t){if(t>=e.FE.KEYCODE.ARROW_LEFT&&t<=e.FE.KEYCODE.ARROW_DOWN)return!0}function m(n){if(n>=e.FE.KEYCODE.ZERO&&n<=e.FE.KEYCODE.NINE)return!0;if(n>=e.FE.KEYCODE.NUM_ZERO&&n<=e.FE.KEYCODE.NUM_MULTIPLY)return!0;if(n>=e.FE.KEYCODE.A&&n<=e.FE.KEYCODE.Z)return!0;if(t.browser.webkit&&0===n)return!0;switch(n){case e.FE.KEYCODE.SPACE:case e.FE.KEYCODE.QUESTION_MARK:case e.FE.KEYCODE.NUM_PLUS:case e.FE.KEYCODE.NUM_MINUS:case e.FE.KEYCODE.NUM_PERIOD:case e.FE.KEYCODE.NUM_DIVISION:case e.FE.KEYCODE.SEMICOLON:case e.FE.KEYCODE.FF_SEMICOLON:case e.FE.KEYCODE.DASH:case e.FE.KEYCODE.EQUALS:case e.FE.KEYCODE.FF_EQUALS:case e.FE.KEYCODE.COMMA:case e.FE.KEYCODE.PERIOD:case e.FE.KEYCODE.SLASH:case e.FE.KEYCODE.APOSTROPHE:case e.FE.KEYCODE.SINGLE_QUOTE:case e.FE.KEYCODE.OPEN_SQUARE_BRACKET:case e.FE.KEYCODE.BACKSLASH:case e.FE.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function v(n){var o=n.which;if(h(n)||37<=o&&o<=40||!m(o)&&o!=e.FE.KEYCODE.DELETE&&o!=e.FE.KEYCODE.BACKSPACE&&o!=e.FE.KEYCODE.ENTER&&o!=e.FE.KEYCODE.IME)return!0;r||(i=t.snapshot.get(),t.undo.canDo()||t.undo.saveStep()),clearTimeout(r),r=setTimeout(function(){r=null,t.undo.saveStep()},Math.max(250,t.opts.typingTimer))}function y(e){var n=e.which;if(h(e)||37<=n&&n<=40)return!0;i&&r?(t.undo.saveStep(i),i=null):void 0!==n&&0!==n||i||r||t.undo.saveStep()}function b(e){if(e&&"BR"==e.tagName)return!1;try{return 0===(e.textContent||"").length&&e.querySelector&&!e.querySelector(":scope > br")||e.childNodes&&1==e.childNodes.length&&e.childNodes[0].getAttribute&&("false"==e.childNodes[0].getAttribute("contenteditable")||t.node.hasClass(e.childNodes[0],"fr-img-caption"))}catch(e){return!1}}function w(n){var r=t.el.childNodes,i=t.html.defaultTag();return!(!n.target||n.target===t.el)||0===r.length||void(t.$el.outerHeight()-n.offsetY<=10?b(r[r.length-1])&&(i?t.$el.append("<"+i+">"+e.FE.MARKERS+"<br></"+i+">"):t.$el.append(e.FE.MARKERS+"<br>"),t.selection.restore(),d()):n.offsetY<=10&&b(r[0])&&(i?t.$el.prepend("<"+i+">"+e.FE.MARKERS+"<br></"+i+">"):t.$el.prepend(e.FE.MARKERS+"<br>"),t.selection.restore(),d()))}function $(){r&&clearTimeout(r)}return{_init:function(){t.events.on("keydown",v),t.events.on("input",a),t.events.on("mousedown",u),t.events.on("keyup input",y),t.events.on("keypress",l),t.events.on("keydown",f),t.events.on("keyup",p),t.events.on("destroy",$),t.events.on("html.inserted",p),t.events.on("cut",s),t.events.on("click",w)},ctrlKey:h,isCharacter:m,isArrow:g,forceUndo:function(){r&&(clearTimeout(r),t.undo.saveStep(),i=null)},isIME:function(){return o},isBrowserAction:function(t){var n=t.which;return h(t)||n==e.FE.KEYCODE.F5},positionCaret:d}},e.FE.MODULES.accessibility=function(t){var n=!0;function r(e){e&&e.length&&!t.$el.find('[contenteditable="true"]').is(":focus")&&(e.data("blur-event-set")||e.parents(".fr-popup").length||(t.events.$on(e,"blur",function(){var n=e.parents(".fr-toolbar, .fr-popup").data("instance")||t;n.events.blurActive()&&n.events.trigger("blur"),setTimeout(function(){n.events.enableBlur()},100)},!0),e.data("blur-event-set",!0)),(e.parents(".fr-toolbar, .fr-popup").data("instance")||t).events.disableBlur(),e.focus(),t.shared.$f_el=e)}function i(e,t){var n=t?"last":"first",i=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible")[n]();if(i.length)return r(i),!0}function o(e){return e.is("input, textarea, select")&&s(),t.events.disableBlur(),e.focus(),!0}function a(e,n){var r=e.find("input, textarea, button, select").filter(":visible").not(":disabled").filter(n?":last":":first");if(r.length)return o(r);if(t.shared.with_kb){var i=e.find(".fr-active-item:visible:first");if(i.length)return o(i);var a=e.find("[tabIndex]:visible:first");if(a.length)return o(a)}}function s(){0===t.$el.find(".fr-marker").length&&t.core.hasFocus()&&t.selection.save()}function l(){var e=t.popups.areVisible();if(e){var n=e.find(".fr-buttons");return n.find("button:focus, .fr-group span:focus").length?!i(e.data("instance").$tb):!i(n)}return!i(t.$tb)}function u(){var e=null;return t.shared.$f_el.is(".fr-dropdown.fr-active")?e=t.shared.$f_el:t.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(e=t.shared.$f_el.closest(".fr-dropdown-menu").prev()),e}function c(n,o,s){if(t.shared.$f_el){var l=u();l&&(t.button.click(l),t.shared.$f_el=l);var c,f=n.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible"),d=f.index(t.shared.$f_el);return 0===d&&!s||d==f.length-1&&s?(o&&(n.parent().is(".fr-popup")&&(c=!a(n.parent().children().not(".fr-buttons"),!s)),!1===c&&(t.shared.$f_el=null)),o&&!1===c||i(n,!s)):r(e(f.get(d+(s?1:-1)))),!1}}function f(e,t){return c(e,t,!0)}function d(e,t){return c(e,t)}function p(e){if(t.shared.$f_el){var n;if(t.shared.$f_el.is(".fr-dropdown.fr-active"))return r(n=e?t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(t.shared.$f_el.is("a.fr-command"))return(n=e?t.shared.$f_el.closest("li").nextAll(":visible:first").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest("li").prevAll(":visible:first").find(".fr-command:not(.fr-disabled)").first()).length||(n=e?t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),r(n),!1}}function h(){if(t.shared.$f_el){if(t.shared.$f_el.hasClass("fr-dropdown"))t.button.click(t.shared.$f_el);else if(t.shared.$f_el.is("button.fr-back")){t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus());var e=t.popups.areVisible(t);e&&(t.shared.with_kb=!1),t.button.click(t.shared.$f_el),v(e)}else{if(t.events.disableBlur(),t.button.click(t.shared.$f_el),t.shared.$f_el.attr("data-popup")){var n=t.popups.areVisible(t);n&&n.data("popup-button",t.shared.$f_el)}else if(t.shared.$f_el.attr("data-modal")){var r=t.modals.areVisible(t);r&&r.data("modal-button",t.shared.$f_el)}t.shared.$f_el=null}return!1}}function g(){t.shared.$f_el&&(t.events.disableBlur(),t.shared.$f_el.blur(),t.shared.$f_el=null),!1!==t.events.trigger("toolbar.focusEditor")&&(t.events.disableBlur(),t.$el.focus(),t.events.focus())}function m(r){r&&r.length&&(t.events.$on(r,"keydown",function(n){if(!e(n.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var i=r.parents(".fr-popup").data("instance")||r.data("instance")||t;t.shared.with_kb=!0;var o=i.accessibility.exec(n,r);return t.shared.with_kb=!1,o},!0),t.events.$on(r,"mouseenter","[tabIndex]",function(i){var o=r.parents(".fr-popup").data("instance")||r.data("instance")||t;if(!n)return i.stopPropagation(),void i.preventDefault();var a=e(i.currentTarget);o.shared.$f_el&&o.shared.$f_el.not(a)&&o.accessibility.focusEditor()},!0))}function v(e){var t=e.data("popup-button");t&&setTimeout(function(){r(t),e.data("popup-button",null)},0)}function y(e){var n=t.popups.areVisible(e);n&&n.data("popup-button",null)}function b(n){var r=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if(n.which==e.FE.KEYCODE.F10&&!r&&!n.shiftKey&&n.altKey){t.shared.with_kb=!0;var i=t.popups.areVisible(t),o=!1;return i&&(o=a(i.children().not(".fr-buttons"))),o||l(),t.shared.with_kb=!1,n.preventDefault(),n.stopPropagation(),!1}return!0}return{_init:function(){t.$wp?t.events.on("keydown",b,!0):t.events.$on(t.$win,"keydown",b,!0),t.events.on("mousedown",function(e){y(t),t.shared.$f_el&&(t.accessibility.restoreSelection(),e.stopPropagation(),t.events.disableBlur(),t.shared.$f_el=null)},!0),t.events.on("blur",function(){t.shared.$f_el=null,y(t)},!0)},registerPopup:function(r){var o,s,l=t.popups.get(r),u=(o=r,s=t.popups.get(o),{_tiKeydown:function(n){var r=s.data("instance")||t;if(!1===r.events.trigger("popup.tab",[n]))return!1;var l=n.which,u=s.find(":focus:first");if(e.FE.KEYCODE.TAB==l){n.preventDefault();var c=s.children().not(".fr-buttons"),f=c.find("input, textarea, button, select").filter(":visible").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),d=f.indexOf(this)+(n.shiftKey?-1:1);if(0<=d&&d<f.length)return r.events.disableBlur(),e(f[d]).focus(),n.stopPropagation(),!1;var p=s.find(".fr-buttons");if(p.length&&i(p,!!n.shiftKey))return n.stopPropagation(),!1;if(a(c))return n.stopPropagation(),!1}else{if(e.FE.KEYCODE.ENTER!=l||!n.target||"TEXTAREA"===n.target.tagName)return e.FE.KEYCODE.ESC==l?(n.preventDefault(),n.stopPropagation(),r.accessibility.restoreSelection(),r.popups.isVisible(o)&&s.find(".fr-back:visible").length?(r.opts.toolbarInline&&(r.events.disableBlur(),r.events.focus()),r.button.exec(s.find(".fr-back:visible:first")),v(s)):r.popups.isVisible(o)&&s.find(".fr-dismiss:visible").length?r.button.exec(s.find(".fr-dismiss:visible:first")):(r.popups.hide(o),r.opts.toolbarInline&&r.toolbar.showInline(null,!0),v(s)),!1):e.FE.KEYCODE.SPACE==l&&(u.is(".fr-submit")||u.is(".fr-dismiss"))?(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(u),!0):r.keys.isBrowserAction(n)?void n.stopPropagation():u.is("input[type=text], textarea")?void n.stopPropagation():e.FE.KEYCODE.SPACE==l&&(u.is(".fr-link-attr")||u.is("input[type=file]"))?void n.stopPropagation():(n.stopPropagation(),n.preventDefault(),!1);var h=null;0<s.find(".fr-submit:visible").length?h=s.find(".fr-submit:visible:first"):s.find(".fr-dismiss:visible").length&&(h=s.find(".fr-dismiss:visible:first")),h&&(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(h))}},_tiMouseenter:function(){var e=s.data("instance")||t;y(e)}});m(l.find(".fr-buttons")),t.events.$on(l,"mouseenter","tabIndex",u._tiMouseenter,!0),t.events.$on(l.children().not(".fr-buttons"),"keydown","[tabIndex]",u._tiKeydown,!0),t.popups.onHide(r,function(){(l.data("instance")||t).accessibility.restoreSelection()}),t.popups.onShow(r,function(){n=!1,setTimeout(function(){n=!0},0)})},registerToolbar:m,focusToolbarElement:r,focusToolbar:i,focusContent:a,focusPopup:function(e){var r=e.children().not(".fr-buttons");r.data("mouseenter-event-set")||(t.events.$on(r,"mouseenter","[tabIndex]",function(i){var o=e.data("instance")||t;if(!n)return i.stopPropagation(),void i.preventDefault();var a=r.find(":focus:first");a.length&&!a.is("input, button, textarea, select")&&(o.events.disableBlur(),a.blur(),o.events.disableBlur(),o.events.focus())}),r.data("mouseenter-event-set",!0)),!a(r)&&t.shared.with_kb&&i(e.find(".fr-buttons"))},focusModal:function(e){t.core.hasFocus()||(t.events.disableBlur(),t.events.focus()),t.accessibility.saveSelection(),t.events.disableBlur(),t.$el.blur(),t.selection.clear(),t.events.disableBlur(),t.shared.with_kb?e.find(".fr-command[tabIndex], [tabIndex]").first().focus():e.find("[tabIndex]:first").focus()},focusEditor:g,focusPopupButton:v,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout(function(){r(t),e.data("modal-button",null)},0)},hasFocus:function(){return null!=t.shared.$f_el},exec:function(n,i){var o=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey,a=n.which,s=!1;return a!=e.FE.KEYCODE.TAB||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_RIGHT||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.TAB||o||!n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_LEFT||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_UP||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_DOWN||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ENTER&&a!=e.FE.KEYCODE.SPACE||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ESC||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.F10||o||n.shiftKey||!n.altKey||(s=l()):s=function(e){if(t.shared.$f_el){var n=u();return n?(t.button.click(n),r(n)):e.parent().find(".fr-back:visible").length?(t.shared.with_kb=!1,t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus()),t.button.exec(e.parent().find(".fr-back:visible:first")),v(e.parent())):t.shared.$f_el.is("button, .fr-group span")&&(e.parent().is(".fr-popup")?(t.accessibility.restoreSelection(),t.shared.$f_el=null,!1!==t.events.trigger("toolbar.esc")&&(t.popups.hide(e.parent()),t.opts.toolbarInline&&t.toolbar.showInline(null,!0),v(e.parent()))):g()),!1}}(i):s=h():s=t.shared.$f_el&&t.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?h():p(!0):s=p():s=d(i):s=d(i,!0):s=f(i):s=f(i,!0),t.shared.$f_el||void 0!==s||(s=!0),!s&&t.keys.isBrowserAction(n)&&(s=!0),!!s||(n.preventDefault(),n.stopPropagation(),!1)},saveSelection:s,restoreSelection:function(){t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur())}}},e.FE.MODULES.format=function(t){function n(e,t){var n="<"+e;for(var r in t)t.hasOwnProperty(r)&&(n+=" "+r+'="'+t[r]+'"');return n+=">"}function r(e,t){var n=e;for(var r in t)t.hasOwnProperty(r)&&(n+="id"==r?"#"+t[r]:"class"==r?"."+t[r]:"["+r+'="'+t[r]+'"]');return n}function i(e,t){return!(!e||e.nodeType!=Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function o(r,i,a){if(r){for(;r.nodeType===Node.COMMENT_NODE;)r=r.nextSibling;if(r){if(t.node.isBlock(r)&&"HR"!==r.tagName)return o(r.firstChild,i,a),!1;for(var s=e(n(i,a)).insertBefore(r),l=r;l&&!e(l).is(".fr-marker")&&0===e(l).find(".fr-marker").length&&"UL"!=l.tagName&&"OL"!=l.tagName;){var u=l;l=l.nextSibling,s.append(u)}if(l)(e(l).find(".fr-marker").length||"UL"==l.tagName||"OL"==l.tagName)&&o(l.firstChild,i,a);else{for(var c=s.get(0).parentNode;c&&!c.nextSibling&&!t.node.isElement(c);)c=c.parentNode;if(c){var f=c.nextSibling;f&&(t.node.isBlock(f)?"HR"===f.tagName?o(f.nextSibling,i,a):o(f.firstChild,i,a):o(f,i,a))}}s.is(":empty")&&s.remove()}}}function a(a,s){var l;if(void 0===s&&(s={}),s.style&&delete s.style,t.selection.isCollapsed())t.markers.insert(),t.$el.find(".fr-marker").replaceWith(n(a,s)+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</"+a+">"),t.selection.restore();else{var u;t.selection.save(),o(t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,a,s);do{for(u=t.$el.find(r(a,s)+" > "+r(a,s)),l=0;l<u.length;l++)u[l].outerHTML=u[l].innerHTML}while(u.length);t.el.normalize();var c=t.el.querySelectorAll(".fr-marker");for(l=0;l<c.length;l++){var f=e(c[l]);!0===f.data("type")?i(f.get(0).nextSibling,r(a,s))&&f.next().prepend(f):i(f.get(0).previousSibling,r(a,s))&&f.prev().append(f)}t.selection.restore()}}function s(e,n,o,a){if(!a){var s=!1;if(!0===e.data("type"))for(;t.node.isFirstSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().before(e),s=!0;else if(!1===e.data("type"))for(;t.node.isLastSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().after(e),s=!0;if(s)return!0}if(e.parents(n).length||void 0===n){var l="",u="",c=e.parent();if(c.is(t.$el)||t.node.isBlock(c.get(0)))return!1;for(;!t.node.isBlock(c.parent().get(0))&&(void 0===n||void 0!==n&&!i(c.get(0),r(n,o)));)l+=t.node.closeTagString(c.get(0)),u=t.node.openTagString(c.get(0))+u,c=c.parent();var f=e.get(0).outerHTML;e.replaceWith('<span id="mark"></span>');var d=c.html().replace(/<span id="mark"><\/span>/,l+t.node.closeTagString(c.get(0))+u+f+l+t.node.openTagString(c.get(0))+u);return c.replaceWith(t.node.openTagString(c.get(0))+d+t.node.closeTagString(c.get(0))),!0}return!1}function l(n,o){void 0===o&&(o={}),o.style&&delete o.style;var a=t.selection.isCollapsed();t.selection.save();for(var l=!0;l;){l=!1;for(var u=t.$el.find(".fr-marker"),c=0;c<u.length;c++){var f=e(u[c]),d=null;if(f.attr("data-cloned")||a||(d=f.clone().removeClass("fr-marker").addClass("fr-clone"),!0===f.data("type")?f.attr("data-cloned",!0).after(d):f.attr("data-cloned",!0).before(d)),s(f,n,o,a)){l=!0;break}}}!function n(o,a,s,l){for(var u=t.node.contents(o.get(0)),c=0;c<u.length;c++){var f=u[c];if(t.node.hasClass(f,"fr-marker"))a=(a+1)%2;else if(a)if(0<e(f).find(".fr-marker").length)a=n(e(f),a,s,l);else{for(var d=e(f).find(s||"*:not(a):not(br)"),p=d.length-1;0<=p;p--){var h=d[p];t.node.isBlock(h)||t.node.isVoid(h)||void 0!==s&&!i(h,r(s,l))?t.node.isBlock(h)&&void 0===s&&"TABLE"!=f.tagName&&t.node.clearAttributes(h):t.node.hasClass(h,"fr-clone")||(h.outerHTML=h.innerHTML)}void 0===s&&f.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(f)||i(f,r(s,l))?e(f).replaceWith(f.innerHTML):void 0===s&&f.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(f)&&"TABLE"!=f.tagName&&t.node.clearAttributes(f)}else 0<e(f).find(".fr-marker").length&&(a=n(e(f),a,s,l))}return a}(t.$el,0,n,o),a||(t.$el.find(".fr-marker").remove(),t.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),a&&t.$el.find(".fr-marker").before(e.FE.INVISIBLE_SPACE).after(e.FE.INVISIBLE_SPACE),t.html.cleanEmptyTags(),t.el.normalize(),t.selection.restore()}function u(n,r){var i,a,l,u,f,d=null;if(t.selection.isCollapsed()){t.markers.insert();var p=(a=t.$el.find(".fr-marker")).parent();if(t.node.openTagString(p.get(0))=='<span style="'+n+": "+p.css(n)+';">'){if(t.node.isEmpty(p.get(0)))d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),p.replaceWith(d);else{var h={};h["style*"]=n+":",s(a,"span",h,!0),a=t.$el.find(".fr-marker"),r?(d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(d)):a.replaceWith(e.FE.INVISIBLE_SPACE+e.FE.MARKERS)}t.html.cleanEmptyTags()}else t.node.isEmpty(p.get(0))&&p.is("span")?(a.replaceWith(e.FE.MARKERS),p.css(n,r)):(d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(d));d&&c(d,n,r)}else{if(t.selection.save(),null==r||"color"==n&&0<t.$el.find(".fr-marker").parents("u, a").length){var g=t.$el.find(".fr-marker");for(i=0;i<g.length;i++)if(!0===(a=e(g[i])).data("type"))for(;t.node.isFirstSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().before(a);else for(;t.node.isLastSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().after(a)}var m=t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,v={class:"fr-unprocessed"};for(r&&(v.style=n+": "+r+";"),o(m,"span",v),t.$el.find(".fr-marker + .fr-unprocessed").each(function(){e(this).prepend(e(this).prev())}),t.$el.find(".fr-unprocessed + .fr-marker").each(function(){e(this).prev().append(this)}),(r||"").match(/\dem$/)&&t.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<t.$el.find("span.fr-unprocessed").length;){if((d=t.$el.find("span.fr-unprocessed:first").removeClass("fr-unprocessed")).parent().get(0).normalize(),d.parent().is("span")&&1==d.parent().get(0).childNodes.length){d.parent().css(n,r);var y=d;d=d.parent(),y.replaceWith(y.html())}var b=d.find("span");for(i=b.length-1;0<=i;i--)l=b[i],u=n,f=void 0,(f=e(l)).css(u,""),""===f.attr("style")&&f.replaceWith(f.html());c(d,n,r)}}!function(){for(var n;0<t.$el.find(".fr-split:empty").length;)t.$el.find(".fr-split:empty").remove();t.$el.find(".fr-split").removeClass("fr-split"),t.$el.find('[style=""]').removeAttr("style"),t.$el.find('[class=""]').removeAttr("class"),t.html.cleanEmptyTags(),e(t.$el.find("span").get().reverse()).each(function(){this.attributes&&0!==this.attributes.length||e(this).replaceWith(this.innerHTML)}),t.el.normalize();var r=t.$el.find("span[style] + span[style]");for(n=0;n<r.length;n++){var i=e(r[n]),o=e(r[n]).prev();i.get(0).previousSibling==o.get(0)&&t.node.openTagString(i.get(0))==t.node.openTagString(o.get(0))&&(i.prepend(o.html()),o.remove())}t.$el.find("span[style] span[style]").each(function(){if(0<=e(this).attr("style").indexOf("font-size")){var t=e(this).parents("span[style]");0<=t.attr("style").indexOf("background-color")&&(e(this).attr("style",e(this).attr("style")+";"+t.attr("style")),s(e(this),"span[style]",{},!1))}}),t.el.normalize(),t.selection.restore()}()}function c(n,r,i){var o,a,s,l=n.parentsUntil(t.$el,"span[style]"),u=[];for(o=l.length-1;0<=o;o--)a=l[o],s=r,0===e(a).attr("style").indexOf(s+":")||0<=e(a).attr("style").indexOf(";"+s+":")||0<=e(a).attr("style").indexOf("; "+s+":")||u.push(l[o]);if((l=l.not(u)).length){for(var c="",f="",d="",p="",h=n.get(0);h=h.parentNode,e(h).addClass("fr-split"),c+=t.node.closeTagString(h),f=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+f,l.get(0)!=h&&(d+=t.node.closeTagString(h),p=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+p),l.get(0)!=h;);var g=c+t.node.openTagString(e(l.get(0)).clone().css(r,i||"").get(0))+p+n.css(r,"").get(0).outerHTML+d+"</span>"+f;n.replaceWith('<span id="fr-break"></span>');var m=l.get(0).outerHTML;e(l.get(0)).replaceWith(m.replace(/<span id="fr-break"><\/span>/g,g))}}function f(e,n){void 0===n&&(n={}),n.style&&delete n.style;var o=t.selection.ranges(0),a=o.startContainer;if(a.nodeType==Node.ELEMENT_NODE&&0<a.childNodes.length&&a.childNodes[o.startOffset]&&(a=a.childNodes[o.startOffset]),!o.collapsed&&a.nodeType==Node.TEXT_NODE&&o.startOffset==(a.textContent||"").length){for(;!t.node.isBlock(a.parentNode)&&!a.nextSibling;)a=a.parentNode;a.nextSibling&&(a=a.nextSibling)}for(var s=a;s&&s.nodeType==Node.ELEMENT_NODE&&!i(s,r(e,n));)s=s.firstChild;if(s&&s.nodeType==Node.ELEMENT_NODE&&i(s,r(e,n)))return!0;var l=a;for(l&&l.nodeType!=Node.ELEMENT_NODE&&(l=l.parentNode);l&&l.nodeType==Node.ELEMENT_NODE&&l!=t.el&&!i(l,r(e,n));)l=l.parentNode;return!(!l||l.nodeType!=Node.ELEMENT_NODE||l==t.el||!i(l,r(e,n)))}return{is:f,toggle:function(e,t){f(e,t)?l(e,t):a(e,t)},apply:a,remove:l,applyStyle:u,removeStyle:function(e){u(e,null)}}},e.extend(e.FE.DEFAULTS,{indentMargin:20}),e.FE.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1}},e.FE.RegisterCommand=function(t,n){e.FE.COMMANDS[t]=n},e.FE.MODULES.commands=function(t){function n(e){return t.html.defaultTag()&&(e="<"+t.html.defaultTag()+">"+e+"</"+t.html.defaultTag()+">"),e}var r={bold:function(){o(0,"strong")},subscript:function(){t.format.is("sup")&&t.format.remove("sup"),o(0,"sub")},superscript:function(){t.format.is("sub")&&t.format.remove("sub"),o(0,"sup")},italic:function(){o(0,"em")},strikeThrough:function(){o(0,"s")},underline:function(){o(0,"u")},undo:function(){t.undo.run()},redo:function(){t.undo.redo()},indent:function(){a(1)},outdent:function(){a(-1)},show:function(){t.opts.toolbarInline&&t.toolbar.showInline(null,!0)},insertHR:function(){t.selection.remove();var r="";t.core.isEmpty()&&(r=n(r="<br>")),t.html.insert('<hr id="fr-just">'+r);var i,o=t.$el.find("hr#fr-just");if(o.removeAttr("id"),0===o.next().length){var a=t.html.defaultTag();a?o.after(e("<"+a+">").append("<br>")):o.after("<br>")}o.prev().is("hr")?i=t.selection.setAfter(o.get(0),!1):o.next().is("hr")?i=t.selection.setBefore(o.get(0),!1):t.selection.setAfter(o.get(0),!1)||t.selection.setBefore(o.get(0),!1),i||void 0===i||(r=n(r=e.FE.MARKERS+"<br>"),o.after(r)),t.selection.restore()},clearFormatting:function(){t.format.remove()},selectAll:function(){t.doc.execCommand("selectAll",!1,!1)}};function i(n,i){if(!1!==t.events.trigger("commands.before",e.merge([n],i||[]))){var o=e.FE.COMMANDS[n]&&e.FE.COMMANDS[n].callback||r[n],a=!0,s=!1;e.FE.COMMANDS[n]&&(void 0!==e.FE.COMMANDS[n].focus&&(a=e.FE.COMMANDS[n].focus),void 0!==e.FE.COMMANDS[n].accessibilityFocus&&(s=e.FE.COMMANDS[n].accessibilityFocus)),(!t.core.hasFocus()&&a&&!t.popups.areVisible()||!t.core.hasFocus()&&s&&t.accessibility.hasFocus())&&t.events.focus(!0),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&(t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore()),t.undo.saveStep()),o&&o.apply(t,e.merge([n],i||[])),t.events.trigger("commands.after",e.merge([n],i||[])),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&t.undo.saveStep()}}function o(e,n){t.format.toggle(n)}function a(n){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();for(var r=t.selection.blocks(),i=0;i<r.length;i++)if("LI"!=r[i].tagName&&"LI"!=r[i].parentNode.tagName){var o=e(r[i]),a="rtl"==t.opts.direction||"rtl"==o.css("direction")?"margin-right":"margin-left",s=t.helpers.getPX(o.css(a));if(o.width()<2*t.opts.indentMargin&&0<n)continue;o.css(a,Math.max(s+n*t.opts.indentMargin,0)||""),o.removeClass("fr-temp-div")}t.selection.save(),t.html.unwrap(),t.selection.restore()}function s(e){return function(){i(e)}}var l={};for(var u in r)r.hasOwnProperty(u)&&(l[u]=s(u));return e.extend(l,{exec:i,_init:function(){t.events.on("keydown",function(e){var n=t.selection.element();if(n&&"HR"==n.tagName&&!t.keys.isArrow(e.which))return e.preventDefault(),!1}),t.events.on("keyup",function(n){var r=t.selection.element();if(r&&"HR"==r.tagName)if(n.which==e.FE.KEYCODE.ARROW_LEFT||n.which==e.FE.KEYCODE.ARROW_UP){if(r.previousSibling)return t.node.isBlock(r.previousSibling)?t.selection.setAtEnd(r.previousSibling):e(r).before(e.FE.MARKERS),t.selection.restore(),!1}else if((n.which==e.FE.KEYCODE.ARROW_RIGHT||n.which==e.FE.KEYCODE.ARROW_DOWN)&&r.nextSibling)return t.node.isBlock(r.nextSibling)?t.selection.setAtStart(r.nextSibling):e(r).after(e.FE.MARKERS),t.selection.restore(),!1}),t.events.on("mousedown",function(e){if(e.target&&"HR"==e.target.tagName)return e.preventDefault(),e.stopPropagation(),!1}),t.events.on("mouseup",function(){var n=t.selection.element();n==t.selection.endElement()&&n&&"HR"==n.tagName&&(n.nextSibling&&(t.node.isBlock(n.nextSibling)?t.selection.setAtStart(n.nextSibling):e(n).after(e.FE.MARKERS)),t.selection.restore())})}})},e.FE.MODULES.data=function(t){var n="NCKB1zwtPA9tqzajXC2c2A7B-16VD3spzJ1C9C3D5oOF2OB1NB1LD7VA5QF4TE3gytXB2A4C-8VA2AC4E1D3GB2EB2KC3KD1MF1juuSB1A8C6yfbmd1B2a1A5qdsdB2tivbC3CB1KC1CH1eLA2sTF1B4I4H-7B-21UB6b1F5bzzzyAB4JC3MG2hjdKC1JE6C1E1cj1pD-16pUE5B4prra2B5ZB3D3C3pxj1EA6A3rnJA2C-7I-7JD9D1E1wYH1F3sTB5TA2G4H4ZA22qZA5BB3mjcvcCC3JB1xillavC-21VE6PC5SI4YC5C8mb1A3WC3BD2B5aoDA2qqAE3A5D-17fOD1D5RD4WC10tE6OAZC3nF-7b1C4A4D3qCF2fgmapcromlHA2QA6a1E1D3e1A6C2bie2F4iddnIA7B2mvnwcIB5OA1DB2OLQA3PB10WC7WC5d1E3uI-7b1D5D6b1E4D2arlAA4EA1F-11srxI-7MB1D7PF1E5B4adB-21YD5vrZH3D3xAC4E1A2GF2CF2J-7yNC2JE1MI2hH-7QB1C6B5B-9bA-7XB13a1B5VievwpKB4LA3NF-10H-9I-8hhaC-16nqPG4wsleTD5zqYF3h1G2B7B4yvGE2Pi1H-7C-21OE6B1uLD1kI4WC1E7C5g1D-8fue1C8C6c1D4D3Hpi1CC4kvGC2E1legallyXB4axVA11rsA4A-9nkdtlmzBA2GD3A13A6CB1dabE1lezrUE6RD5TB4A-7f1C8c1B5d1D4D3tyfCD5C2D2==",r=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(r+"="+r);)t=n.slice(-1-++e).join("."),document.cookie=r+"="+r+";domain="+t+";";return document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",(t||"").replace(/(^\.*)|(\.*$)/g,"")}();function i(e){return e}var o,a,s=i(function(e){if(!e)return e;for(var t="",n=i("charCodeAt"),r=i("fromCharCode"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),a=1;a<e.length-2;a++){for(var s=l(++o),c=e[n](a),f="";/[0-9-]/.test(e[a+1]);)f+=e[++a];c=u(c,s,f=parseInt(f,10)||0),c^=o-1&31,t+=String[r](c)}return t});function l(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return 10<n?n%9+1:n}function u(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return n<0&&(e+=123),e}function c(e){return!(!e||"block"===e.css("display")||(e.remove(),0))}function f(e){return e&&0===t.$box.find(e).length}var d=0;function p(){if(10<d&&(t[i(s("0ppecjvc=="))](),setTimeout(function(){e.FE=null},10)),!t.$box)return!1;t.$wp.prepend(s(i(s(n)))),o=t.$wp.find("> div:first"),a=o.find("> a"),"rtl"==t.opts.direction&&o.css("left","auto").css("right",0).attr("direction","rtl"),d++}function h(e){for(var t=[s("9qqG-7amjlwq=="),s("KA3B3C2A6D1D5H5H1A3=="),s("3B9B3B5F3C4G3E3=="),s("QzbzvxyB2yA-9m=="),s("ji1kacwmgG5bc=="),s("nmA-13aogi1A3c1jd==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}return{_init:function(){var e=t.o_win.FEK;try{e=e||localStorage&&localStorage.FEK}catch(e){}e=t.opts.key||e||[""];var l=s(i("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9=="));"string"==typeof e&&(e=[e]);for(var u,d,g,m=!(t.ul=!0),v=0,y=0;y<e.length;y++){var b=(d=e[y],3===(g=(s(d)||"").split("|")).length?g:[null,null,s(d)||""]),w=b[2];if(w===s(i(s("mcVRDoB1BGILD7YFe1BTXBA7B6==")))||0<=w.indexOf(r,w.length-r.length)||h(r)){if(!((null===(u=b[1])||new Date(u)<new Date(s("lC4B3B3D4B5A1E1E4I1A1==")))&&0<(r||"").length)||h(r)){t.ul=!1;break}m=!0,n="RCZB17botVG4A-8yzia1C4A5DG3CD2cFB4qflmCE4I2FB1SC7F6PE4WE3RD6e2A4c1D3d1E2E3ehxdGE3CE2IB2LC1HG2LE1QA3QC7B-13cC-9epmkjc1B4e1C4pgjgvkOC5E1eNE1HB2LD2B-13WD5tvabUA5a1A4f1A2G3C2A-21cihKE3FE2DB2cccJE1iC-7G-7tD-17tVD6A-9qC-7QC7a1E4B4je1E3E2G2ecmsAA1xH-8HB11C1D1lgzQA3dTB8od1D4XE3ohb1B4E4D3mbLA10NA7C-21d1genodKC11PD9PE5tA-8UI3ZC5XB5B-11qXF2F-7wtwjAG3NA1IB1OD1HC1RD4QJ4evUF2D5XG2G4XA8pqocH1F3G2J2hcpHC4D1MD4C1MB8PD5klcQD1A8A6e2A3ed1E2A24A7HC5C3qA-9tiA-61dcC3MD1LE1D4SA3A9ZZXSE4g1C3Pa2C5ufbcGI3I2B4skLF2CA1vxB-22wgUC4kdH-8cVB5iwe1A2D3H3G-7DD5JC2ED2OH2JB10D3C2xHE1KA29PB11wdC-11C4cixb2C7a1C4YYE3B2A15uB-21wpCA1MF1NuC-21dyzD6pPG4I-7pmjc1A4yte1F3B-22yvCC3VbC-7qC-22qNE2hC1vH-8zad1RF6WF3DpI-7C8A-16hpf1F3D2ylalB-13BB2lpA-63IB3uOF6D5G4gabC-21UD2A3PH4ZA20B11b2C6ED4A2H3I1A15DB4KD2laC-8LA5B8B7==",v=b[0]||-1}}var $=new Image;!0===t.ul&&(p(),$.src=m?i(s(l))+"e="+v:i(s(l))+"u"),!0===t.ul&&t.events.on("contentChanged",function(){(c(o)||c(a)||f(o)||f(a))&&p()}),t.events.on("destroy",function(){o&&o.length&&o.remove()},!0)}}},e.extend(e.FE.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id","style"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),e.FE.MODULES.paste=function(t){var n,r,i,o;function a(e,n){try{t.win.localStorage.setItem("fr-copied-html",e),t.win.localStorage.setItem("fr-copied-text",n)}catch(e){}}function s(n){var r=t.html.getSelected();a(r,e("<div>").html(r).text()),"cut"==n.type&&(t.undo.saveStep(),setTimeout(function(){t.selection.save(),t.html.wrap(),t.selection.restore(),t.events.focus(),t.undo.saveStep()},0))}var l=!1;function u(o){if(l)return!1;if(o.originalEvent&&(o=o.originalEvent),!1===t.events.trigger("paste.before",[o]))return o.preventDefault(),!1;if(t.$win.scrollTop(),o&&o.clipboardData&&o.clipboardData.getData){var a="",s=o.clipboardData.types;if(t.helpers.isArray(s))for(var u=0;u<s.length;u++)a+=s[u]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=o.clipboardData.getData("text/rtf")),/text\/html/.test(a)&&!t.browser.safari?n=o.clipboardData.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/public.rtf/.test(a)&&t.browser.safari&&(n=o.clipboardData.getData("text/rtf")),""!==n)return f(),o.preventDefault&&(o.stopPropagation(),o.preventDefault()),!1;n=null}return t.selection.save(),t.events.disableBlur(),n=null,i?(i.html(""),t.browser.edge&&t.opts.iframe&&t.$el.append(i)):(i=e('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>'),t.browser.webkit?(i.css("top",t.$sc.scrollTop()),t.$el.after(i)):t.browser.edge&&t.opts.iframe?t.$el.append(i):t.$box.after(i),t.events.on("destroy",function(){i.remove()})),i.focus(),t.win.setTimeout(f,1),!1}function c(i){if(i.originalEvent&&(i=i.originalEvent),i&&i.dataTransfer&&i.dataTransfer.getData){var a="",s=i.dataTransfer.types;if(t.helpers.isArray(s))for(var l=0;l<s.length;l++)a+=s[l]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=i.dataTransfer.getData("text/rtf")),/text\/html/.test(a)?n=i.dataTransfer.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/text\/plain/.test(a)&&!this.browser.mozilla&&(n=t.html.escapeEntities(i.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==n){t.keys.forceUndo(),o=t.snapshot.get(),t.selection.save(),t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var u=t.markers.insertAtPoint(i);if(t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),t.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),t.selection.restore(),t.selection.remove(),t.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==u){var c=t.el.querySelector(".fr-marker");return e(c).replaceWith(e.FE.MARKERS),t.selection.restore(),f(),i.preventDefault&&(i.stopPropagation(),i.preventDefault()),!1}}else n=null}}function f(){t.browser.edge&&t.opts.iframe&&t.$box.after(i),o||(t.keys.forceUndo(),o=t.snapshot.get()),n||(n=i.get(0).innerHTML,t.selection.restore(),t.events.enableBlur());var e=n.match(/(class=\"?Mso|class=\'?Mso|class="?Xl|class='?Xl|class=Xl|style=\"[^\"]*\bmso\-|style=\'[^\']*\bmso\-|w:WordDocument)/gi),r=t.events.chainTrigger("paste.beforeCleanup",n);r&&"string"==typeof r&&(n=r),(!e||e&&!1!==t.events.trigger("paste.wordPaste",[n]))&&p(n,e)}function d(e){for(var t="",n=0;n++<e;)t+="&nbsp;";return t}function p(n,r,i){var a,s=null,l=null;if(0<=n.toLowerCase().indexOf("<body")){var u="";0<=n.indexOf("<style")&&(u=n.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),n=(n=u+n.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var c=!1;0<=n.indexOf('id="docs-internal-guid')&&(n=n.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),c=!0),0<=n.indexOf('content="Sheets"')&&(n=n.replace(/width:0px;/g,""));var f=!1;if(!r&&((f=function(n){var r=null;try{r=t.win.localStorage.getItem("fr-copied-text")}catch(e){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(n))&&(n=t.win.localStorage.getItem("fr-copied-html")),!f)){var p=t.opts.htmlAllowedStyleProps;t.opts.htmlAllowedStyleProps=t.opts.pasteAllowedStyleProps,t.opts.htmlAllowComments=!1,n=(n=(n=n.replace(/<span class="Apple-tab-span">\s*<\/span>/g,d(t.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(e,n){return d(n.length*(t.opts.tabSpaces||4))})).replace(/\t/g,d(t.opts.tabSpaces||4)),n=t.clean.html(n,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs),t.opts.htmlAllowedStyleProps=p,t.opts.htmlAllowComments=!0,n=(n=(n=g(n)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!r||t.wordPaste&&i||(0===(n=n.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(n="<table>"+n+"</table>"),n=g(n=function(e){var n;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if \!supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if \!supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,i=["style","script","applet","embed","noframes","noscript"];for(n=0;n<i.length;n++){var o=new RegExp("<"+i[n]+".*?"+i[n]+"(.*?)>","gi");e=e.replace(o,"")}for(e=(e=(e=e.replace(/&nbsp;/gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(e=(r=e).replace(/<[^\/>][^>]*><\/[^>]+>/gi,""))!=r;);e=(e=e.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),e=(e=(e=t.clean.html(e,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var a=t.o_doc.createElement("div");a.innerHTML=e;var s=a.querySelectorAll("li[data-indent]");for(n=0;n<s.length;n++){var l=s[n],u=l.previousElementSibling;if(u&&"LI"==u.tagName){var c=u.querySelector(":scope > ul, :scope > ol");c||(c=document.createElement("ul"),u.appendChild(c)),c.appendChild(l)}else l.removeAttribute("data-indent")}return t.html.cleanBlankSpaces(a),e=a.innerHTML}(n))),t.opts.pastePlain&&!f&&(n=function(e){var n,r=null,i=t.doc.createElement("div");i.innerHTML=e;var o=i.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n<o.length;n++)(r=o[n]).outerHTML="<"+(t.html.defaultTag()||"DIV")+">"+r.innerHTML+"</"+(t.html.defaultTag()||"DIV")+">";for(n=(o=i.querySelectorAll("*:not("+"p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not(")+")")).length-1;0<=n;n--)(r=o[n]).outerHTML=r.innerHTML;var a=function(e){for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType!=Node.TEXT_NODE&&n[r].nodeType!=Node.ELEMENT_NODE?n[r].parentNode.removeChild(n[r]):a(n[r])};return a(i),i.innerHTML}(n));var h=t.events.chainTrigger("paste.afterCleanup",n);if("string"==typeof h&&(n=h),""!==n){var m=t.o_doc.createElement("div");0<=(m.innerHTML=n).indexOf("<body>")?(t.html.cleanBlankSpaces(m),t.spaces.normalize(m,!0)):t.spaces.normalize(m);var v=m.getElementsByTagName("span");for(a=v.length-1;0<=a;a--){var y=v[a];0===y.attributes.length&&(y.outerHTML=y.innerHTML)}var b=t.selection.element(),w=!1;if(b&&e(b).parentsUntil(t.el,"ul, ol").length&&(w=!0),w){var $=m.children;1==$.length&&0<=["OL","UL"].indexOf($[0].tagName)&&($[0].outerHTML=$[0].innerHTML)}if(!c){var E=m.getElementsByTagName("br");for(a=E.length-1;0<=a;a--){var S=E[a];t.node.isBlock(S.previousSibling)&&S.parentNode.removeChild(S)}}if(t.opts.enter==e.FE.ENTER_BR)for(a=(s=m.querySelectorAll("p, div")).length-1;0<=a;a--)0===(l=s[a]).attributes.length&&(l.outerHTML=l.innerHTML+(l.nextSibling&&!t.node.isEmpty(l)?"<br>":""));else if(t.opts.enter==e.FE.ENTER_DIV)for(a=(s=m.getElementsByTagName("p")).length-1;0<=a;a--)0===(l=s[a]).attributes.length&&(l.outerHTML="<div>"+l.innerHTML+"</div>");else t.opts.enter==e.FE.ENTER_P&&1==m.childNodes.length&&"P"==m.childNodes[0].tagName&&0===m.childNodes[0].attributes.length&&(m.childNodes[0].outerHTML=m.childNodes[0].innerHTML);n=m.innerHTML,f&&(n=function(n){var r,i=t.o_doc.createElement("div");i.innerHTML=n;for(var o=i.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")");o.length;){for(r=0;r<o.length;r++)o[r].parentNode.removeChild(o[r]);o=i.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")")}return i.innerHTML}(n)),t.html.insert(n,!0)}t.events.trigger("paste.after"),t.undo.saveStep(o),o=null,t.undo.saveStep()}function h(e){for(var t=e.length-1;0<=t;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function g(e){var n,r=t.o_doc.createElement("div");r.innerHTML=e;for(var i=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));i.length;){var o=i[i.length-1];if(t.html.defaultTag()&&"div"!=t.html.defaultTag())o.querySelector(t.html.blockTagsQuery())?o.outerHTML=o.innerHTML:o.outerHTML="<"+t.html.defaultTag()+">"+o.innerHTML+"</"+t.html.defaultTag()+">";else{var a=o.querySelectorAll("*");!a.length||"BR"!==a[a.length-1].tagName&&0===o.innerText.length?o.outerHTML=o.innerHTML+"<br>":o.outerHTML=o.innerHTML}i=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(i=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));i.length;){for(n=0;n<i.length;n++){var s=i[n],l=s.innerHTML.replace(/\u0009/gi,"").trim();s.outerHTML=l}i=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")))}return r.innerHTML}function m(){t.el.removeEventListener("copy",s),t.el.removeEventListener("cut",s),t.el.removeEventListener("paste",u)}return{_init:function(){t.el.addEventListener("copy",s),t.el.addEventListener("cut",s),t.el.addEventListener("paste",u,{capture:!0}),t.events.on("drop",c),t.browser.msie&&t.browser.version<11&&(t.events.on("mouseup",function(e){2==e.button&&(setTimeout(function(){l=!1},50),l=!0)},!0),t.events.on("beforepaste",u)),t.events.on("destroy",m)},cleanEmptyTagsAndDivs:g,getRtfClipboard:function(){return r},saveCopiedText:a,clean:p}},e.extend(e.FE.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),e.FE.SHORTCUTS_MAP={},e.FE.RegisterShortcut=function(t,n,r,i,o,a){e.FE.SHORTCUTS_MAP[(o?"^":"")+(a?"@":"")+t]={cmd:n,val:r,letter:i,shift:o,option:a},e.FE.DEFAULTS.shortcutsEnabled.push(n)},e.FE.RegisterShortcut(e.FE.KEYCODE.E,"show",null,"E",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.B,"bold",null,"B",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.I,"italic",null,"I",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.U,"underline",null,"U",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.S,"strikeThrough",null,"S",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"undo",null,"Z",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"redo",null,"Z",!0,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Y,"redo",null,"Y",!1,!1),e.FE.MODULES.shortcuts=function(t){var n=null,r=!1;function i(n){if(!t.core.hasFocus())return!0;var i=n.which,o=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if("keyup"==n.type&&r&&i!=e.FE.KEYCODE.META)return r=!1;"keydown"==n.type&&(r=!1);var a=(n.shiftKey?"^":"")+(n.altKey?"@":"")+i;if(o&&e.FE.SHORTCUTS_MAP[a]){var s=e.FE.SHORTCUTS_MAP[a].cmd;if(s&&0<=t.opts.shortcutsEnabled.indexOf(s)){var l,u=e.FE.SHORTCUTS_MAP[a].val;if(s&&!u?l=t.$tb.find('.fr-command[data-cmd="'+s+'"]'):s&&u&&(l=t.$tb.find('.fr-command[data-cmd="'+s+'"][data-param1="'+u+'"]')),l.length)return n.preventDefault(),n.stopPropagation(),l.parents(".fr-toolbar").data("instance",t),"keydown"==n.type&&(t.button.exec(l),r=!0),!1;if(s&&(t.commands[s]||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].callback))return n.preventDefault(),n.stopPropagation(),"keydown"==n.type&&((t.commands[s]||e.FE.COMMANDS[s].callback)(),r=!0),!1}}}return{_init:function(){t.events.on("keydown",i,!0),t.events.on("keyup",i,!0)},get:function(r){if(!t.opts.shortcutsHint)return null;if(!n)for(var i in n={},e.FE.SHORTCUTS_MAP)e.FE.SHORTCUTS_MAP.hasOwnProperty(i)&&0<=t.opts.shortcutsEnabled.indexOf(e.FE.SHORTCUTS_MAP[i].cmd)&&(n[e.FE.SHORTCUTS_MAP[i].cmd+"."+(e.FE.SHORTCUTS_MAP[i].val||"")]={shift:e.FE.SHORTCUTS_MAP[i].shift,option:e.FE.SHORTCUTS_MAP[i].option,letter:e.FE.SHORTCUTS_MAP[i].letter});var o=n[r];return o?(t.helpers.isMac()?String.fromCharCode(8984):t.language.translate("Ctrl")+"+")+(o.shift?t.helpers.isMac()?String.fromCharCode(8679):t.language.translate("Shift")+"+":"")+(o.option?t.helpers.isMac()?String.fromCharCode(8997):t.language.translate("Alt")+"+":"")+o.letter:null}}},e.FE.MODULES.snapshot=function(e){function t(e){for(var t=e.parentNode.childNodes,n=0,r=null,i=0;i<t.length;i++){if(r){var o=t[i].nodeType===Node.TEXT_NODE&&""===t[i].textContent,a=r.nodeType===Node.TEXT_NODE&&t[i].nodeType===Node.TEXT_NODE;o||a||n++}if(t[i]==e)return n;r=t[i]}}function n(n){var r=[];if(!n.parentNode)return[];for(;!e.node.isElement(n);)r.push(t(n)),n=n.parentNode;return r.reverse()}function r(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function i(t){for(var n=e.el,r=0;r<t.length;r++)n=n.childNodes[t[r]];return n}function o(t,n){try{var r=i(n.scLoc),o=n.scOffset,a=i(n.ecLoc),s=n.ecOffset,l=e.doc.createRange();l.setStart(r,o),l.setEnd(a,s),t.addRange(l)}catch(e){}}return{get:function(){var t,i={};if(e.events.trigger("snapshot.before"),i.html=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),i.ranges=[],e.$wp&&e.selection.inEditor()&&e.core.hasFocus())for(var o=e.selection.ranges(),a=0;a<o.length;a++)i.ranges.push({scLoc:n((t=o[a]).startContainer),scOffset:r(t.startContainer,t.startOffset),ecLoc:n(t.endContainer),ecOffset:r(t.endContainer,t.endOffset)});return e.events.trigger("snapshot.after",[i]),i},restore:function(t){e.$el.html()!=t.html&&(e.opts.htmlExecuteScripts?e.$el.html(t.html):e.el.innerHTML=t.html);var n=e.selection.get();e.selection.clear(),e.events.focus(!0);for(var r=0;r<t.ranges.length;r++)o(n,t.ranges[r])},equal:function(t,n){return t.html==n.html&&(!e.core.hasFocus()||JSON.stringify(t.ranges)==JSON.stringify(n.ranges))}}},e.FE.MODULES.undo=function(e){function t(t){var n=t.which;e.keys.ctrlKey(t)&&(90==n&&t.shiftKey&&t.preventDefault(),90==n&&t.preventDefault())}var n=null;function r(){if(!e.undo_stack||e.undoing)return!1;for(;e.undo_stack.length>e.undo_index;)e.undo_stack.pop()}function i(){e.undo_index=0,e.undo_stack=[]}function o(){e.undo_stack=[]}return{_init:function(){i(),e.events.on("initialized",function(){n=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",t),e.events.on("destroy",o)},run:function(){if(1<e.undo_index){e.undoing=!0;var t=e.undo_stack[--e.undo_index-1];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.undo"),e.undoing=!1}},redo:function(){if(e.undo_index<e.undo_stack.length){e.undoing=!0;var t=e.undo_stack[e.undo_index++];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.redo"),e.undoing=!1}},canDo:function(){return!(0===e.undo_stack.length||e.undo_index<=1)},canRedo:function(){return e.undo_index!=e.undo_stack.length},dropRedo:r,reset:i,saveStep:function(t){if(!e.undo_stack||e.undoing||e.el.querySelector(".fr-marker"))return!1;void 0===t?(t=e.snapshot.get(),e.undo_stack[e.undo_index-1]&&e.snapshot.equal(e.undo_stack[e.undo_index-1],t)||(r(),e.undo_stack.push(t),e.undo_index++,t.html!=n&&(e.events.trigger("contentChanged"),n=t.html))):(r(),0<e.undo_index?e.undo_stack[e.undo_index-1]=t:(e.undo_stack.push(t),e.undo_index++))}}},e.FE.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">[PATH]</svg>'},e.FE.ICONS={bold:{NAME:"bold"},italic:{NAME:"italic"},underline:{NAME:"underline"},strikeThrough:{NAME:"strikethrough"},subscript:{NAME:"subscript"},superscript:{NAME:"superscript"},color:{NAME:"tint"},outdent:{NAME:"outdent"},indent:{NAME:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo"},insertHR:{NAME:"minus"},clearFormatting:{NAME:"eraser"},selectAll:{NAME:"mouse-pointer"}},e.FE.DefineIconTemplate=function(t,n){e.FE.ICON_TEMPLATES[t]=n},e.FE.DefineIcon=function(t,n){e.FE.ICONS[t]=n},e.extend(e.FE.DEFAULTS,{iconsTemplate:"font_awesome"}),e.FE.MODULES.icon=function(t){return{create:function(n){var r=null,i=e.FE.ICONS[n];if(void 0!==i){var o=i.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate;i.FA5NAME||(i.FA5NAME=i.NAME),o&&(o=e.FE.ICON_TEMPLATES[o])&&(r=o.replace(/\[([a-zA-Z0-9]*)\]/g,function(e,t){return"NAME"==t?i[t]||n:i[t]}))}return r||n},getTemplate:function(n){var r=e.FE.ICONS[n],i=t.opts.iconsTemplate;return void 0!==r?i=r.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate:i}}},e.extend(e.FE.DEFAULTS,{tooltips:!0}),e.FE.MODULES.tooltip=function(t){function n(){if(t.helpers.isMobile())return!1;t.$tooltip&&t.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function r(n,r){if(t.helpers.isMobile())return!1;if(n.data("title")||n.data("title",n.attr("title")),!n.data("title"))return!1;t.$tooltip||t.opts.tooltips&&!t.helpers.isMobile()&&(t.shared.$tooltip?t.$tooltip=t.shared.$tooltip:(t.shared.$tooltip=e('<div class="fr-tooltip"></div>'),t.$tooltip=t.shared.$tooltip,t.opts.theme&&t.$tooltip.addClass(t.opts.theme+"-theme"),e(t.o_doc).find("body:first").append(t.$tooltip)),t.events.on("shared.destroy",function(){t.$tooltip.html("").removeData().remove(),t.$tooltip=null},!0)),n.removeAttr("title"),t.$tooltip.text(t.language.translate(n.data("title"))),t.$tooltip.addClass("fr-visible");var i=n.offset().left+(n.outerWidth()-t.$tooltip.outerWidth())/2;i<0&&(i=0),i+t.$tooltip.outerWidth()>e(t.o_win).width()&&(i=e(t.o_win).width()-t.$tooltip.outerWidth()),void 0===r&&(r=t.opts.toolbarBottom);var o=r?n.offset().top-t.$tooltip.height():n.offset().top+n.outerHeight();t.$tooltip.css("position",""),t.$tooltip.css("left",i),t.$tooltip.css("top",Math.ceil(o)),"static"!=e(t.o_doc).find("body:first").css("position")?(t.$tooltip.css("margin-left",-e(t.o_doc).find("body:first").offset().left),t.$tooltip.css("margin-top",-e(t.o_doc).find("body:first").offset().top)):(t.$tooltip.css("margin-left",""),t.$tooltip.css("margin-top",""))}return{hide:n,to:r,bind:function(i,o,a){t.opts.tooltips&&!t.helpers.isMobile()&&(t.events.$on(i,"mouseenter",o,function(n){t.node.hasClass(n.currentTarget,"fr-disabled")||t.edit.isDisabled()||r(e(n.currentTarget),a)},!0),t.events.$on(i,"mouseleave "+t._mousedown+" "+t._mouseup,o,function(){n()},!0))}}},e.FE.MODULES.button=function(t){var n=[];(t.opts.toolbarInline||t.opts.toolbarContainer)&&(t.shared.buttons||(t.shared.buttons=[]),n=t.shared.buttons);var r=[];function i(t,n,r){for(var i=e(),o=0;o<t.length;o++){var a=e(t[o]);if(a.is(n)&&(i=i.add(a)),r&&a.is(".fr-dropdown")){var s=a.next().find(n);i=i.add(s)}}return i}function o(o,a){var s,l=e();if(!o)return l;for(s in l=(l=l.add(i(n,o,a))).add(i(r,o,a)),t.shared.popups)if(t.shared.popups.hasOwnProperty(s)){var u=t.shared.popups[s].children().find(o);l=l.add(u)}for(s in t.shared.modals)if(t.shared.modals.hasOwnProperty(s)){var c=t.shared.modals[s].$modal.find(o);l=l.add(c)}return l}function a(e){e.addClass("fr-blink"),setTimeout(function(){e.removeClass("fr-blink")},500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param"+(n.length+1));)n.push(e.data("param"+(n.length+1)));var r=o(".fr-dropdown.fr-active");r.length&&(r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),r.parent(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function s(n){var r=n.parents(".fr-popup, .fr-toolbar").data("instance");if(0!==n.parents(".fr-popup").length||n.data("popup")||r.popups.hideAll(),r.popups.areVisible()&&!r.popups.areVisible(r)){for(var i=0;i<e.FE.INSTANCES.length;i++)e.FE.INSTANCES[i]!=r&&e.FE.INSTANCES[i].popups&&e.FE.INSTANCES[i].popups.areVisible()&&e.FE.INSTANCES[i].$el.find(".fr-marker").remove();r.popups.hideAll()}t.node.hasClass(n.get(0),"fr-dropdown")?function(n){var r=n.next(),i=t.node.hasClass(n.get(0),"fr-active"),a=o(".fr-dropdown.fr-active").not(n),s=n.parents(".fr-toolbar, .fr-popup").data("instance")||t;if(s.helpers.isIOS()&&!s.el.querySelector(".fr-marker")&&(s.selection.save(),s.selection.clear(),s.selection.restore()),!i){var l=n.data("cmd");r.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),e.FE.COMMANDS[l]&&e.FE.COMMANDS[l].refreshOnShow&&e.FE.COMMANDS[l].refreshOnShow.apply(s,[n,r]),r.css("left",n.offset().left-n.parent().offset().left-("rtl"==t.opts.direction?r.width()-n.outerWidth():0)),r.addClass("test-height");var u=r.outerHeight();r.removeClass("test-height"),r.css("top","").css("bottom",""),!t.opts.toolbarBottom&&r.offset().top+n.outerHeight()+u<e(t.o_doc).height()?r.css("top",n.position().top+n.outerHeight()):r.css("bottom",n.parents(".fr-popup, .fr-toolbar").first().height()-n.position().top)}n.addClass("fr-blink").toggleClass("fr-active"),n.hasClass("fr-active")?(r.attr("aria-hidden",!1),n.attr("aria-expanded",!0)):(r.attr("aria-hidden",!0),n.attr("aria-expanded",!1)),setTimeout(function(){n.removeClass("fr-blink")},300),r.css("margin-left",""),r.offset().left+r.outerWidth()>t.$sc.offset().left+t.$sc.width()&&r.css("margin-left",-(r.offset().left+r.outerWidth()-t.$sc.offset().left-t.$sc.width())),r.offset().left<t.$sc.offset().left&&"rtl"==t.opts.direction&&r.css("margin-left",t.$sc.offset().left),a.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),a.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==n.parents(".fr-popup").length||t.opts.toolbarInline||(t.node.hasClass(n.get(0),"fr-active")?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):t.$tb.css("zIndex",""));var c=r.find("a.fr-command.fr-active:first");t.helpers.isMobile()||(c.length?t.accessibility.focusToolbarElement(c):t.accessibility.focusToolbarElement(n))}(n):(a(n),e.FE.COMMANDS[n.data("cmd")]&&!1!==e.FE.COMMANDS[n.data("cmd")].refreshAfterCallback&&r.button.bulkRefresh())}function l(t){s(e(t.currentTarget))}function u(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),t.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""))}function c(e){e.preventDefault(),e.stopPropagation()}function f(e){if(e.stopPropagation(),!t.helpers.isMobile())return!1}function d(e,n,r){if(t.helpers.isMobile()&&!1===n.showOnMobile)return"";var i,o=n.displaySelection;if("function"==typeof o&&(o=o(t)),o){var a="function"==typeof n.defaultSelection?n.defaultSelection(t):n.defaultSelection;i='<span style="width:'+(n.displaySelectionWidth||100)+'px">'+t.language.translate(a||n.title)+"</span>"}else i=t.icon.create(n.icon||e),i+='<span class="fr-sr-only">'+(t.language.translate(n.title)||"")+"</span>";var s=n.popup?' data-popup="true"':"",l=n.modal?' data-modal="true"':"",u=t.shortcuts.get(e+".");u=u?" ("+u+")":"";var c=e+"-"+t.id,f="dropdown-menu-"+c,d='<button id="'+c+'"type="button" tabIndex="-1" role="button"'+(n.toggle?' aria-pressed="false"':"")+("dropdown"==n.type?' aria-controls="'+f+'" aria-expanded="false" aria-haspopup="true"':"")+(n.disabled?' aria-disabled="true"':"")+' title="'+(t.language.translate(n.title)||"")+u+'" class="fr-command fr-btn'+("dropdown"==n.type?" fr-dropdown":"")+" fr-btn-"+t.icon.getTemplate(n.icon)+(n.displaySelection?" fr-selection":"")+(n.back?" fr-back":"")+(n.disabled?" fr-disabled":"")+(r?"":" fr-hidden")+'" data-cmd="'+e+'"'+s+l+">"+i+"</button>";if("dropdown"==n.type){var p='<div id="'+f+'" class="fr-dropdown-menu" role="listbox" aria-labelledby="'+c+'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">';p+=function(e,n){var r="";if(n.html)"function"==typeof n.html?r+=n.html.call(t):r+=n.html;else{var i=n.options;for(var o in"function"==typeof i&&(i=i()),r+='<ul class="fr-dropdown-list" role="presentation">',i)if(i.hasOwnProperty(o)){var a=t.shortcuts.get(e+"."+o);a=a?'<span class="fr-shortcut">'+a+"</span>":"",r+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'+e+'" data-param1="'+o+'" title="'+i[o]+'">'+t.language.translate(i[o])+"</a></li>"}r+="</ul>"}return r}(e,n),d+=p+="</div></div></div>"}return d}function p(n){var r=t.$tb&&t.$tb.data("instance")||t;if(!1===t.events.trigger("buttons.refresh"))return!0;setTimeout(function(){for(var i=r.selection.inEditor()&&r.core.hasFocus(),o=0;o<n.length;o++){var a=e(n[o]),s=a.data("cmd");0===a.parents(".fr-popup").length?i||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].forcedRefresh?r.button.refresh(a):t.node.hasClass(a.get(0),"fr-dropdown")||(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)):a.parents(".fr-popup").is(":visible")&&r.button.refresh(a)}},0)}function h(){p(n),p(r)}function g(){n=[],r=[]}t.shared.popup_buttons||(t.shared.popup_buttons=[]),r=t.shared.popup_buttons;var m=null;function v(){clearTimeout(m),m=setTimeout(h,50)}return{_init:function(){t.opts.toolbarInline?t.events.on("toolbar.show",h):(t.events.on("mouseup",v),t.events.on("keyup",v),t.events.on("blur",v),t.events.on("focus",v),t.events.on("contentChanged",v),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",h)),t.events.on("shared.destroy",g)},buildList:function(n,r){for(var i="",o=0;o<n.length;o++){var a=n[o],s=e.FE.COMMANDS[a];s&&void 0!==s.plugin&&t.opts.pluginsEnabled.indexOf(s.plugin)<0||(s?i+=d(a,s,void 0===r||0<=r.indexOf(a)):"|"==a?i+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==a&&(i+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return i},bindCommands:function(i,o){t.events.bindClick(i,".fr-command:not(.fr-disabled)",l),t.events.$on(i,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu",c,!0),t.events.$on(i,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu .fr-dropdown-wrapper",f,!0);var a=i.get(0).ownerDocument,s="defaultView"in a?a.defaultView:a.parentWindow,d=function(n){(!n||n.type==t._mouseup&&n.target!=e("html").get(0)||"keydown"==n.type&&(t.keys.isCharacter(n.which)&&!t.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ESC))&&u(i)};t.events.$on(e(s),t._mouseup+" resize keydown",d,!0),t.opts.iframe&&t.events.$on(t.$win,t._mouseup,d,!0),t.node.hasClass(i.get(0),"fr-popup")?e.merge(r,i.find(".fr-btn").toArray()):e.merge(n,i.find(".fr-btn").toArray()),t.tooltip.bind(i,".fr-btn, .fr-title",o)},refresh:function(n){var r,i=n.parents(".fr-popup, .fr-toolbar").data("instance")||t,o=n.data("cmd");t.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),e.FE.COMMANDS[o]&&e.FE.COMMANDS[o].refresh?e.FE.COMMANDS[o].refresh.apply(i,[n,r]):t.refresh[o]&&i.refresh[o](n,r)},bulkRefresh:h,exec:a,click:s,hideActiveDropdowns:u,getButtons:o}},e.FE.MODULES.modals=function(t){t.shared.modals||(t.shared.modals={});var n,r=t.shared.modals;function i(){for(var e in r){var t=r[e];t&&t.$modal&&t.$modal.removeData().remove()}n&&n.removeData().remove(),r={}}function o(i,o){if(r[i]){var a=r[i].$modal,s=a.data("instance")||t;s.events.enableBlur(),a.hide(),n.hide(),e(s.o_doc).find("body:first").removeClass("prevent-scroll fr-mobile"),a.removeClass("fr-active"),o||(s.accessibility.restoreSelection(),s.events.trigger("modals.hide"))}}function a(e){var n;if("string"==typeof e){if(!r[e])return;n=r[e].$modal}else n=e;return n&&t.node.hasClass(n,"fr-active")&&t.core.sameInstance(n)||!1}return{_init:function(){t.events.on("shared.destroy",i,!0)},get:function(e){return r[e]},create:function(i,a,s){if(t.shared.$overlay||(t.shared.$overlay=e('<div class="fr-overlay">').appendTo("body:first")),n=t.shared.$overlay,t.opts.theme&&n.addClass(t.opts.theme+"-theme"),!r[i]){var l=(u=a,c=s,f='<div tabIndex="-1" class="fr-modal'+(t.opts.theme?" "+t.opts.theme+"-theme":"")+'"><div class="fr-modal-wrapper">',f+='<div class="fr-modal-head">'+u+'<i title="'+t.language.translate("Cancel")+'" class="fa fa-times fr-modal-close"></i></div>',f+='<div tabIndex="-1" class="fr-modal-body">'+c+"</div>",e(f+="</div></div>"));r[i]={$modal:l,$head:l.find(".fr-modal-head"),$body:l.find(".fr-modal-body")},t.helpers.isMobile()||l.addClass("fr-desktop"),l.appendTo("body:first"),t.events.$on(l,"click",".fr-modal-close",function(){o(i)},!0),r[i].$body.css("margin-top",r[i].$head.outerHeight()),t.events.$on(l,"keydown",function(n){var r=n.which;return r==e.FE.KEYCODE.ESC?(o(i),t.accessibility.focusModalButton(l),!1):!(!e(n.currentTarget).is("input[type=text], textarea")&&r!=e.FE.KEYCODE.ARROW_UP&&r!=e.FE.KEYCODE.ARROW_DOWN&&!t.keys.isBrowserAction(n)&&(n.preventDefault(),n.stopPropagation(),1))},!0),o(i,!0)}var u,c,f;return r[i]},show:function(i){if(r[i]){var o=r[i].$modal;o.data("instance",t),o.show(),n.show(),e(t.o_doc).find("body:first").addClass("prevent-scroll"),t.helpers.isMobile()&&e(t.o_doc).find("body:first").addClass("fr-mobile"),o.addClass("fr-active"),t.accessibility.focusModal(o)}},hide:o,resize:function(n){if(r[n]){var i=r[n],o=i.$modal,a=i.$body,s=e(t.o_win).height(),l=o.find(".fr-modal-wrapper"),u=s-l.outerHeight(!0)+(l.height()-(a.outerHeight(!0)-a.height())),c="auto";u<a.get(0).scrollHeight&&(c=u),a.height(c)}},isVisible:a,areVisible:function(e){for(var t in r)if(r.hasOwnProperty(t)&&a(t)&&(void 0===e||r[t].$modal.data("instance")==e))return r[t].$modal;return!1}}},e.FE.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},e.FE.RegisterTemplate=function(t,n){e.FE.POPUP_TEMPLATES[t]=n},e.FE.MODULES.popups=function(t){t.shared.popups||(t.shared.popups={});var n=t.shared.popups;function r(e,r){r.is(":visible")||(r=t.$sc),r.is(n[e].data("container"))||(n[e].data("container",r),r.append(n[e]))}function i(e){return n[e]&&t.node.hasClass(n[e],"fr-active")&&t.core.sameInstance(n[e])||!1}function o(e){for(var t in n)if(n.hasOwnProperty(t)&&i(t)&&(void 0===e||n[t].data("instance")==e))return n[t];return!1}function a(e){var r=null;(r="string"!=typeof e?e:n[e])&&t.node.hasClass(r,"fr-active")&&(r.removeClass("fr-active fr-above"),t.events.trigger("popups.hide."+e),t.$tb&&(1<t.opts.zIndex?t.$tb.css("zIndex",t.opts.zIndex+1):t.$tb.css("zIndex","")),t.events.disableBlur(),r.find("input, textarea, button").filter(":focus").blur(),r.find("input, textarea").attr("disabled","disabled"))}function s(e){for(var t in void 0===e&&(e=[]),n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&a(t)}function l(){t.shared.exit_flag=!0}function u(){t.shared.exit_flag=!1}function c(){return t.shared.exit_flag}function f(r){var o=n[r];return{_windowResize:function(){var e=o.data("instance")||t;!e.helpers.isMobile()&&o.is(":visible")&&(e.events.disableBlur(),e.popups.hide(r),e.events.enableBlur())},_inputFocus:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);if(i.is("input:file")&&i.closest(".fr-layer").addClass("fr-input-focus"),n.preventDefault(),n.stopPropagation(),setTimeout(function(){r.events.enableBlur()},100),r.helpers.isMobile()){var a=e(r.o_win).scrollTop();setTimeout(function(){e(r.o_win).scrollTop(a)},0)}},_inputBlur:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);i.is("input:file")&&i.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!=this&&e(this).is(":visible")&&(r.events.blurActive()&&r.events.trigger("blur"),r.events.enableBlur())},_editorKeydown:function(n){var a=o.data("instance")||t;a.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ALT||n.which==e.FE.KEYCODE.ESC||(i(r)&&o.find(".fr-back:visible").length?a.button.exec(o.find(".fr-back:visible:first")):n.which!=e.FE.KEYCODE.ALT&&a.popups.hide(r))},_preventFocus:function(n){var r=o.data("instance")||t,i=n.originalEvent?n.originalEvent.target||n.originalEvent.originalTarget:null;"mouseup"==n.type||e(i).is(":focus")||r.events.disableBlur(),"mouseup"!=n.type||e(i).hasClass("fr-command")||0<e(i).parents(".fr-command").length||e(i).hasClass("fr-dropdown-content")||t.button.hideActiveDropdowns(o),(t.browser.safari||t.browser.mozilla)&&"mousedown"==n.type&&e(i).is("input[type=file]")&&r.events.disableBlur();var a="input, textarea, button, select, label, .fr-command";if(i&&!e(i).is(a)&&0===e(i).parents(a).length)return n.stopPropagation(),!1;i&&e(i).is(a)&&n.stopPropagation(),u()},_editorMouseup:function(){o.is(":visible")&&c()&&0<o.find("input:focus, textarea:focus, button:focus, select:focus").filter(":visible").length&&t.events.disableBlur()},_windowMouseup:function(e){if(!t.core.sameInstance(o))return!0;var n=o.data("instance")||t;o.is(":visible")&&c()&&(e.stopPropagation(),n.markers.remove(),n.popups.hide(r),u())},_windowKeydown:function(n){if(!t.core.sameInstance(o))return!0;var i=o.data("instance")||t,a=n.which;if(e.FE.KEYCODE.ESC==a){if(i.popups.isVisible(r)&&i.opts.toolbarInline)return n.stopPropagation(),i.popups.isVisible(r)&&(o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(r),i.toolbar.showInline(null,!0),i.accessibility.FocusPopupButton(o))),!1;if(i.popups.isVisible(r))return o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(r),i.accessibility.focusPopupButton(o)),!1}},_doPlaceholder:function(){0===e(this).next().length&&e(this).attr("placeholder")&&e(this).after('<label for="'+e(this).attr("id")+'">'+e(this).attr("placeholder")+"</label>"),e(this).toggleClass("fr-not-empty",""!==e(this).val())},_repositionPopup:function(){if(!t.opts.height&&!t.opts.heightMax||t.opts.toolbarInline)return!0;if(t.$wp&&i(r)&&o.parent().get(0)==t.$sc.get(0)){var e=o.offset().top-t.$wp.offset().top,n=t.$wp.outerHeight();t.node.hasClass(o.get(0),"fr-above")&&(e+=o.outerHeight()),n<e||e<0?o.addClass("fr-hidden"):o.removeClass("fr-hidden")}}}}function d(e,r){t.events.on("mouseup",e._editorMouseup,!0),t.$wp&&t.events.on("keydown",e._editorKeydown),t.events.on("blur",function(){o()&&t.markers.remove(),s()}),t.$wp&&!t.helpers.isMobile()&&t.events.$on(t.$wp,"scroll.popup"+r,e._repositionPopup),t.events.on("window.mouseup",e._windowMouseup,!0),t.events.on("window.keydown",e._windowKeydown,!0),n[r].data("inst"+t.id,!0),t.events.on("destroy",function(){t.core.sameInstance(n[r])&&n[r].removeClass("fr-active").appendTo("body:first")},!0)}function p(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];t&&(t.html("").removeData().remove(),n[e]=null)}n=[]}return t.shared.exit_flag=!1,{_init:function(){t.events.on("shared.destroy",p,!0),t.events.on("window.mousedown",l),t.events.on("window.touchmove",u),t.events.$on(e(t.o_win),"scroll",u),t.events.on("mousedown",function(e){o()&&(e.stopPropagation(),t.$el.find(".fr-marker").remove(),l(),t.events.disableBlur())})},create:function(r,i){var o=function(r,i){var o,a,s=function(n,r){var i=e.FE.POPUP_TEMPLATES[n];if(!i)return null;for(var o in"function"==typeof i&&(i=i.apply(t)),r)r.hasOwnProperty(o)&&(i=i.replace("[_"+o.toUpperCase()+"_]",r[o]));return i}(r,i);return s?(o=e('<div class="fr-popup'+(t.helpers.isMobile()?" fr-mobile":" fr-desktop")+(t.opts.toolbarInline?" fr-inline":"")+'"><span class="fr-arrow"></span>'+s+"</div>"),t.opts.theme&&o.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&(t.opts.editInPopup?o.css("z-index",t.opts.zIndex+2):t.$tb.css("z-index",t.opts.zIndex+2)),"auto"!=t.opts.direction&&o.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),o.find("input, textarea").attr("dir",t.opts.direction).attr("disabled","disabled"),(a=e("body:first")).append(o),o.data("container",a),n[r]=o,t.button.bindCommands(o,!1),o):(o=e('<div class="fr-popup fr-empty"></div>'),(a=e("body:first")).append(o),o.data("container",a),n[r]=o)}(r,i),a=f(r);return d(a,r),t.events.$on(o,"mousedown mouseup touchstart touchend touch","*",a._preventFocus,!0),t.events.$on(o,"focus","input, textarea, button, select",a._inputFocus,!0),t.events.$on(o,"blur","input, textarea, button, select",a._inputBlur,!0),t.accessibility.registerPopup(r),t.events.$on(o,"keydown keyup change input","input, textarea",a._doPlaceholder,!0),t.helpers.isIOS()&&t.events.$on(o,"touchend","label",function(){e("#"+e(this).attr("for")).prop("checked",function(e,t){return!t})},!0),t.events.$on(e(t.o_win),"resize",a._windowResize,!0),o},get:function(e){var r=n[e];return r&&!r.data("inst"+t.id)&&d(f(e),e),r},show:function(e,a,l,c){if(i(e)||(o()&&0<t.$el.find(".fr-marker").length?(t.events.disableBlur(),t.selection.restore()):o()||(t.events.disableBlur(),t.events.focus(),t.events.enableBlur())),s([e]),!n[e])return!1;var d=t.button.getButtons(".fr-dropdown.fr-active");d.removeClass("fr-active").attr("aria-expanded",!1).parent(".fr-toolbar").css("zIndex",""),d.next().attr("aria-hidden",!0),n[e].data("instance",t),t.$tb&&t.$tb.data("instance",t);var p=n[e].outerWidth(),h=i(e);n[e].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var g,m,v=n[e].data("container");g=e,(m=v).is(":visible")||(m=t.$sc),0===m.find([n[g]]).length&&m.append(n[g]),t.opts.toolbarInline&&v&&t.$tb&&v.get(0)==t.$tb.get(0)&&(r(e,t.$sc),l=t.$tb.offset().top-t.helpers.getPX(t.$tb.css("margin-top")),a=t.$tb.offset().left+t.$tb.outerWidth()/2+(parseFloat(t.$tb.find(".fr-arrow").css("margin-left"))||0)+t.$tb.find(".fr-arrow").outerWidth()/2,t.node.hasClass(t.$tb.get(0),"fr-above")&&l&&(l+=t.$tb.outerHeight()),c=0),v=n[e].data("container"),!t.opts.iframe||c||h||(a&&(a-=t.$iframe.offset().left),l&&(l-=t.$iframe.offset().top)),v.is(t.$tb)?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):n[e].css("zIndex",(t.opts.zIndex||1)+4),a&&(a-=p/2),t.opts.toolbarBottom&&v&&t.$tb&&v.get(0)==t.$tb.get(0)&&(n[e].addClass("fr-above"),l&&(l-=n[e].outerHeight())),n[e].removeClass("fr-active"),t.position.at(a,l,n[e],c||0),n[e].addClass("fr-active"),h||t.accessibility.focusPopup(n[e]),t.opts.toolbarInline&&t.toolbar.hide(),t.events.trigger("popups.show."+e),f(e)._repositionPopup(),u()},hide:a,onHide:function(e,n){t.events.on("popups.hide."+e,n)},hideAll:s,setContainer:r,refresh:function(r){n[r].data("instance",t),t.events.trigger("popups.refresh."+r);for(var i=n[r].find(".fr-command"),o=0;o<i.length;o++){var a=e(i[o]);0===a.parents(".fr-dropdown-menu").length&&t.button.refresh(a)}},onRefresh:function(e,n){t.events.on("popups.refresh."+e,n)},onShow:function(e,n){t.events.on("popups.show."+e,n)},isVisible:i,areVisible:o}},e.FE.MODULES.position=function(t){function n(){var e=t.selection.ranges(0).getBoundingClientRect();if(0===e.top&&0===e.left&&0===e.width||0===e.height){var n=!1;0===t.$el.find(".fr-marker").length&&(t.selection.save(),n=!0);var r=t.$el.find(".fr-marker:first");r.css("display","inline"),r.css("line-height","");var i=r.offset(),o=r.outerHeight();r.css("display","none"),r.css("line-height",0),(e={}).left=i.left,e.width=0,e.height=o,e.top=i.top-(t.helpers.isMobile()&&!t.helpers.isIOS()||t.opts.iframe?0:t.helpers.scrollTop()),e.right=1,e.bottom=1,e.ok=!0,n&&t.selection.restore()}return e}function r(e,n,r,i){var o=r.data("container");!o||"BODY"===o.get(0).tagName&&"static"==o.css("position")||(e&&(e-=o.offset().left),n&&(n-=o.offset().top),"BODY"!=o.get(0).tagName?(e&&(e+=o.get(0).scrollLeft),n&&(n+=o.get(0).scrollTop)):"absolute"==o.css("position")&&(e&&(e+=o.position().left),n&&(n+=o.position().top))),t.opts.iframe&&o&&t.$tb&&o.get(0)!=t.$tb.get(0)&&(e&&(e+=t.$iframe.offset().left),n&&(n+=t.$iframe.offset().top));var a,s,l=(a=e,s=r.outerWidth(!0),a+s>t.$sc.get(0).clientWidth-10&&(a=t.$sc.get(0).clientWidth-s-10),a<0&&(a=10),a);if(e){r.css("left",l);var u=r.data("fr-arrow");u||(u=r.find(".fr-arrow"),r.data("fr-arrow",u)),u.data("margin-left")||u.data("margin-left",t.helpers.getPX(u.css("margin-left"))),u.css("margin-left",e-l+u.data("margin-left"))}n&&r.css("top",function(e,n,r){var i=e.outerHeight(!0);if(!t.helpers.isMobile()&&t.$tb&&e.parent().get(0)!=t.$tb.get(0)){var o=e.parent().offset().top,a=n-i-(r||0);e.parent().get(0)==t.$sc.get(0)&&(o-=e.parent().position().top);var s=t.$sc.get(0).clientHeight;o+n+i>t.$sc.offset().top+s&&0<e.parent().offset().top+a&&0<a?a>t.$wp.scrollTop()&&(n=a,e.addClass("fr-above")):e.removeClass("fr-above")}return n}(r,n,i))}function i(n){var r=e(n),i=r.is(".fr-sticky-on"),o=r.data("sticky-top"),a=r.data("sticky-scheduled");if(void 0===o){r.data("sticky-top",0);var s=e('<div class="fr-sticky-dummy" style="height: '+r.outerHeight()+'px;"></div>');t.$box.prepend(s)}else t.$box.find(".fr-sticky-dummy").css("height",r.outerHeight());if(t.core.hasFocus()||0<t.$tb.find("input:visible:focus").length){var l=t.helpers.scrollTop(),u=Math.min(Math.max(l-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());u!=o&&u!=a&&(clearTimeout(r.data("sticky-timeout")),r.data("sticky-scheduled",u),r.outerHeight()<l-t.$tb.parent().offset().top&&r.addClass("fr-opacity-0"),r.data("sticky-timeout",setTimeout(function(){var e=t.helpers.scrollTop(),n=Math.min(Math.max(e-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());0<n&&"BODY"==t.$tb.parent().get(0).tagName&&(n+=t.$tb.parent().position().top),n!=o&&(r.css("top",Math.max(n,0)),r.data("sticky-top",n),r.data("sticky-scheduled",n)),r.removeClass("fr-opacity-0")},100))),i||(r.css("top","0"),r.width(t.$tb.parent().width()),r.addClass("fr-sticky-on"),t.$box.addClass("fr-sticky-box"))}else clearTimeout(e(n).css("sticky-timeout")),r.css("top","0"),r.css("position",""),r.width(""),r.data("sticky-top",0),r.removeClass("fr-sticky-on"),t.$box.removeClass("fr-sticky-box")}function o(n){if(n.offsetWidth){var r,i,o=e(n),a=o.outerHeight(),s=o.data("sticky-position"),l=e("body"==t.opts.scrollableContainer?t.o_win:t.opts.scrollableContainer).outerHeight(),u=0,c=0;"body"!==t.opts.scrollableContainer&&(u=t.$sc.offset().top,c=e(t.o_win).outerHeight()-u-l);var f="body"==t.opts.scrollableContainer?t.helpers.scrollTop():u,d=o.is(".fr-sticky-on");o.data("sticky-parent")||o.data("sticky-parent",o.parent());var p=o.data("sticky-parent"),h=p.offset().top,g=p.outerHeight();if(o.data("sticky-offset")?t.$box.find(".fr-sticky-dummy").css("height",a+"px"):(o.data("sticky-offset",!0),o.after('<div class="fr-sticky-dummy" style="height: '+a+'px;"></div>')),!s){var m="auto"!==o.css("top")||"auto"!==o.css("bottom");m||o.css("position","fixed"),s={top:t.node.hasClass(o.get(0),"fr-top"),bottom:t.node.hasClass(o.get(0),"fr-bottom")},m||o.css("position",""),o.data("sticky-position",s),o.data("top",t.node.hasClass(o.get(0),"fr-top")?o.css("top"):"auto"),o.data("bottom",t.node.hasClass(o.get(0),"fr-bottom")?o.css("bottom"):"auto")}r=t.helpers.getPX(o.data("top")),i=t.helpers.getPX(o.data("bottom"));var v=s.top&&h<f+r&&f+r<=h+g-a&&(t.helpers.isInViewPort(t.$sc.get(0))||"body"==t.opts.scrollableContainer),y=s.bottom&&h+a<f+l-i&&f+l-i<h+g;v||y?(o.css("width",p.get(0).getBoundingClientRect().width+"px"),d||(o.addClass("fr-sticky-on"),o.removeClass("fr-sticky-off"),o.css("top")&&("auto"!=o.data("top")?o.css("top",t.helpers.getPX(o.data("top"))+u):o.data("top","auto")),o.css("bottom")&&("auto"!=o.data("bottom")?o.css("bottom",t.helpers.getPX(o.data("bottom"))+c):o.css("bottom","auto")))):t.node.hasClass(o.get(0),"fr-sticky-off")||(o.width(""),o.removeClass("fr-sticky-on"),o.addClass("fr-sticky-off"),o.css("top")&&"auto"!=o.data("top")&&s.top&&o.css("top",0),o.css("bottom")&&"auto"!=o.data("bottom")&&s.bottom&&o.css("bottom",0))}}function a(){if(t._stickyElements)for(var e=0;e<t._stickyElements.length;e++)o(t._stickyElements[e])}return{_init:function(){!function(){if(t._stickyElements=[],t.helpers.isIOS()){var n=function(){if(t.helpers.requestAnimationFrame()(n),!1!==t.events.trigger("position.refresh"))for(var e=0;e<t._stickyElements.length;e++)i(t._stickyElements[e])};n(),t.events.$on(e(t.o_win),"scroll",function(){if(t.core.hasFocus())for(var n=0;n<t._stickyElements.length;n++){var r=e(t._stickyElements[n]),i=r.parent(),o=t.helpers.scrollTop();r.outerHeight()<o-i.offset().top&&(r.addClass("fr-opacity-0"),r.data("sticky-top",-1),r.data("sticky-scheduled",-1))}},!0)}else"body"!==t.opts.scrollableContainer&&t.events.$on(e(t.opts.scrollableContainer),"scroll",a,!0),t.events.$on(e(t.o_win),"scroll",a,!0),t.events.$on(e(t.o_win),"resize",a,!0),t.events.on("initialized",a),t.events.on("focus",a),t.events.$on(e(t.o_win),"resize","textarea",a,!0);t.events.on("destroy",function(){t._stickyElements=[]})}()},forSelection:function(e){var i=n();e.css({top:0,left:0});var o=i.top+i.height,a=i.left+i.width/2-e.get(0).offsetWidth/2+t.helpers.scrollLeft();t.opts.iframe||(o+=t.helpers.scrollTop()),r(a,o,e,i.height)},addSticky:function(e){e.addClass("fr-sticky"),t.helpers.isIOS()&&e.addClass("fr-sticky-ios"),e.removeClass("fr-sticky"),t._stickyElements.push(e.get(0))},refresh:a,at:r,getBoundingRect:n}},e.FE.MODULES.refresh=function(t){function n(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}return{undo:function(e){n(e,!t.undo.canDo())},redo:function(e){n(e,!t.undo.canRedo())},outdent:function(r){if(t.node.hasClass(r.get(0),"fr-no-refresh"))return!1;for(var i=t.selection.blocks(),o=0;o<i.length;o++){var a="rtl"==t.opts.direction||"rtl"==e(i[o]).css("direction")?"margin-right":"margin-left";if("LI"==i[o].tagName||"LI"==i[o].parentNode.tagName)return n(r,!1),!0;if(0<t.helpers.getPX(e(i[o]).css(a)))return n(r,!1),!0}n(r,!0)},indent:function(e){if(t.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var r=t.selection.blocks(),i=0;i<r.length;i++){for(var o=r[i].previousSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;if("LI"!=r[i].tagName||o)return n(e,!1),!0;n(e,!0)}}}},e.extend(e.FE.DEFAULTS,{editInPopup:!1}),e.FE.MODULES.textEdit=function(e){return{_init:function(){var t;e.opts.editInPopup&&(t={edit:'<div id="fr-text-edit-'+e.id+'" class="fr-layer fr-text-edit-layer"><div class="fr-input-line"><input type="text" placeholder="'+e.language.translate("Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="updateText" tabIndex="2">'+e.language.translate("Update")+"</button></div></div>"},e.popups.create("text.edit",t),e.events.$on(e.$el,e._mouseup,function(){setTimeout(function(){var t,n;n=e.popups.get("text.edit"),t="INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder"):e.$el.text(),n.find("input").val(t).trigger("change"),e.popups.setContainer("text.edit",e.$sc),e.popups.show("text.edit",e.$el.offset().left+e.$el.outerWidth()/2,e.$el.offset().top+e.$el.outerHeight(),e.$el.outerHeight())},10)}))},update:function(){var t=e.popups.get("text.edit").find("input").val();0===t.length&&(t=e.opts.placeholderText),"INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder",t):e.$el.text(t),e.events.trigger("contentChanged"),e.popups.hide("text.edit")}}},e.FE.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.textEdit.update()}}),e.extend(e.FE.DEFAULTS,{toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),e.FE.TOOLBAR_BUTTONS=["fullscreen","bold","italic","underline","strikeThrough","subscript","superscript","|","fontFamily","fontSize","color","inlineStyle","paragraphStyle","|","paragraphFormat","align","formatOL","formatUL","outdent","indent","quote","-","insertLink","insertImage","insertVideo","embedly","insertFile","insertTable","|","emoticons","specialCharacters","insertHR","selectAll","clearFormatting","|","print","spellChecker","help","html","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_MD=null,e.FE.TOOLBAR_BUTTONS_SM=["bold","italic","underline","|","fontFamily","fontSize","insertLink","insertImage","table","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_XS=["bold","italic","fontFamily","fontSize","|","undo","redo"],e.FE.MODULES.toolbar=function(t){var n=[];function r(e,t){for(var n=0;n<t.length;n++)"-"!=t[n]&&"|"!=t[n]&&e.indexOf(t[n])<0&&e.push(t[n])}function i(){var e=t.helpers.screenSize();return n[e]}function o(){var e=i();t.$tb.find(".fr-separator").remove(),t.$tb.find("> .fr-command").addClass("fr-hidden");for(var n=0;n<e.length;n++)if("|"==e[n]||"-"==e[n])t.$tb.append(t.button.buildList([e[n]]));else{var r=t.$tb.find('> .fr-command[data-cmd="'+e[n]+'"]'),o=null;t.node.hasClass(r.next().get(0),"fr-dropdown-menu")&&(o=r.next()),r.removeClass("fr-hidden").appendTo(t.$tb),o&&o.appendTo(t.$tb)}}function a(n,r){setTimeout(function(){if((!n||n.which!=e.FE.KEYCODE.ESC)&&t.selection.inEditor()&&t.core.hasFocus()&&!t.popups.areVisible()&&(t.opts.toolbarVisibleWithoutSelection||!t.selection.isCollapsed()&&!t.keys.isIME()||r)){if(t.$tb.data("instance",t),!1===t.events.trigger("toolbar.show",[n]))return!1;t.$tb.show(),t.opts.toolbarContainer||t.position.forSelection(t.$tb),1<t.opts.zIndex?t.$tb.css("z-index",t.opts.zIndex+1):t.$tb.css("z-index",null)}},0)}function s(e){return(!e||"blur"!==e.type||document.activeElement!==t.el)&&(!(!e||"keydown"!==e.type||!t.keys.ctrlKey(e))||!!t.button.getButtons(".fr-dropdown.fr-active").next().find(t.o_doc.activeElement).length||void(!1!==t.events.trigger("toolbar.hide")&&t.$tb.hide()))}n[e.FE.XS]=t.opts.toolbarButtonsXS||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_XS||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.SM]=t.opts.toolbarButtonsSM||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_SM||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.MD]=t.opts.toolbarButtonsMD||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_MD||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.LG]=t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS||[];var l=null;function u(n){clearTimeout(l),n&&n.which==e.FE.KEYCODE.ESC||(l=setTimeout(a,t.opts.typingTimer))}function c(){t.events.on("window.mousedown",s),t.events.on("keydown",s),t.events.on("blur",s),t.helpers.isMobile()||t.events.on("window.mouseup",a),t.helpers.isMobile()?t.helpers.isIOS()||(t.events.on("window.touchend",a),t.browser.mozilla&&setInterval(a,200)):t.events.on("window.keyup",u),t.events.on("keydown",function(t){t&&t.which==e.FE.KEYCODE.ESC&&s()}),t.events.on("keydown",function(t){if(t.which==e.FE.KEYCODE.ALT)return t.stopPropagation(),!1},!0),t.events.$on(t.$wp,"scroll.toolbar",a),t.events.on("commands.after",a),t.helpers.isMobile()&&(t.events.$on(t.$doc,"selectionchange",u),t.events.$on(t.$doc,"orientationchange",a))}function f(){t.$tb.html("").removeData().remove(),t.$tb=null}function d(){t.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),t.$box.find(".fr-sticky-dummy").remove()}function p(){t.opts.theme&&t.$tb.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&t.$tb.css("z-index",t.opts.zIndex+1),"auto"!=t.opts.direction&&t.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.helpers.isMobile()?t.$tb.addClass("fr-mobile"):t.$tb.addClass("fr-desktop"),t.opts.toolbarContainer?(t.opts.toolbarInline&&(c(),s()),t.opts.toolbarBottom?t.$tb.addClass("fr-bottom"):t.$tb.addClass("fr-top")):t.opts.toolbarInline?(t.$sc.append(t.$tb),t.$tb.data("container",t.$sc),t.$tb.addClass("fr-inline"),t.$tb.prepend('<span class="fr-arrow"></span>'),c(),t.opts.toolbarBottom=!1):(t.opts.toolbarBottom&&!t.helpers.isIOS()?(t.$box.append(t.$tb),t.$tb.addClass("fr-bottom"),t.$box.addClass("fr-bottom")):(t.opts.toolbarBottom=!1,t.$box.prepend(t.$tb),t.$tb.addClass("fr-top"),t.$box.addClass("fr-top")),t.$tb.addClass("fr-basic"),t.opts.toolbarSticky&&(t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset)),t.position.addSticky(t.$tb))),function(){var o=e.merge([],i());r(o,n[e.FE.XS]),r(o,n[e.FE.SM]),r(o,n[e.FE.MD]),r(o,n[e.FE.LG]);for(var a=o.length-1;0<=a;a--)"-"!=o[a]&&"|"!=o[a]&&o.indexOf(o[a])<a&&o.splice(a,1);var s=t.button.buildList(o,i());t.$tb.append(s),t.button.bindCommands(t.$tb)}(),t.events.$on(e(t.o_win),"resize",o),t.events.$on(e(t.o_win),"orientationchange",o),t.accessibility.registerToolbar(t.$tb),t.events.$on(t.$tb,t._mousedown+" "+t._mouseup,function(e){var n=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;if(n&&"INPUT"!=n.tagName&&!t.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1},!0)}var h=!1;return{_init:function(){if(t.$sc=e(t.opts.scrollableContainer).first(),!t.$wp)return!1;t.opts.toolbarContainer?(t.shared.$tb?(t.$tb=t.shared.$tb,t.opts.toolbarInline&&c()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,e(t.opts.toolbarContainer).append(t.$tb),p(),t.$tb.data("instance",t)),t.opts.toolbarInline?t.$box.addClass("fr-inline"):t.$box.addClass("fr-basic"),t.events.on("focus",function(){t.$tb.data("instance",t)},!0),t.opts.toolbarInline=!1):t.opts.toolbarInline?(t.$box.addClass("fr-inline"),t.shared.$tb?(t.$tb=t.shared.$tb,c()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,p())):(t.$box.addClass("fr-basic"),t.$tb=e('<div class="fr-toolbar"></div>'),p(),t.$tb.data("instance",t)),t.events.on("destroy",d,!0),t.events.on(t.opts.toolbarInline||t.opts.toolbarContainer?"shared.destroy":"destroy",f,!0)},hide:s,show:function(){if(!1===t.events.trigger("toolbar.show"))return!1;t.$tb.show()},showInline:a,disable:function(){!h&&t.$tb&&(t.$tb.find("> .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),h=!0)},enable:function(){h&&t.$tb&&(t.$tb.find("> .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),h=!1),t.button.bulkRefresh()}}}})?r.apply(t,i):r)||(e.exports=o)},tjlA:function(e,t,n){"use strict";(function(e){var r=n("H7XF"),i=n("kVK+"),o=n("IzUq");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function $(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return H(B(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return $(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=j(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function F(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:U(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("yLpj"))},tuSo:function(e,t,n){n("7DDg")("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},uhBA:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="function"!=typeof Object.create&&"~";function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){}a.prototype._events=void 0,a.prototype.eventNames=function(){var e,t=this._events,n=[];if(!t)return n;for(e in t)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},a.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events&&this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,s=new Array(a);o<a;o++)s[o]=r[o].fn;return s},a.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events||!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if("function"==typeof c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var r=new o(t,n||this),a=i?i+e:e;return this._events||(this._events=i?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):this._events[a]=r,this},a.prototype.once=function(e,t,n){var r=new o(t,n||this,!0),a=i?i+e:e;return this._events||(this._events=i?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):this._events[a]=r,this},a.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events||!this._events[o])return this;var a=this._events[o],s=[];if(t)if(a.fn)(a.fn!==t||r&&!a.once||n&&a.context!==n)&&s.push(a);else for(var l=0,u=a.length;l<u;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&s.push(a[l]);return s.length?this._events[o]=1===s.length?s[0]:s:delete this._events[o],this},a.prototype.removeAllListeners=function(e){return this._events?(e?delete this._events[i?i+e:e]:this._events=i?{}:Object.create(null),this):this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=i,e.exports=a},uhZd:function(e,t,n){var r=n("XKFU"),i=n("EemH").f,o=n("y3w9");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},upKx:function(e,t,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),o=n("ne8i");e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:i(u,a))-l,a-s),f=1;for(l<s&&s<l+c&&(f=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},"v+Os":function(e,t,n){var r;void 0===(r=function(){return function(){function e(e,t){"use strict";var n,r={get:function(t){return n||(n=e.localStorage.getItem(t)),n},set:function(t,r){n=r,e.localStorage.setItem(t,r)},put:function(t,r){n=r,e.localStorage.setItem(t,r)}},i="localStorage"in e;if(i){var o="pascalprecht.translate.storageTest";try{i=null!==e.localStorage&&(e.localStorage.setItem(o,"foo"),e.localStorage.removeItem(o),!0)}catch(t){i=!1}}return i?r:t}return e.$inject=["a","t"],e.$inject=["$window","$translateCookieStorage"],angular.module("pascalprecht.translate").factory("$translateLocalStorage",e),e.displayName="$translateLocalStorageFactory","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},vKrd:function(e,t,n){var r=n("y3w9"),i=n("0/R4"),o=n("pbhE");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},vhPU:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},vs8Z:function(e,t,n){},w2a5:function(e,t,n){var r=n("aCFj"),i=n("ne8i"),o=n("d/Gc");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},wCsR:function(e,t,n){"use strict";var r=n("ZD67"),i=n("s5qY");n("4LiD")("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return At(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var v=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)r=v[n],s(i=t[r])||(e[r]=i);return e}var b=!1;function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function $(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&a++;return a+o}function C(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function T(e,t){var n=!0;return d(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}C((Array.prototype.slice.call(o).join(""),(new Error).stack)),n=!1}return t.apply(this,arguments)},t)}var k,_={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),_[e]||(C(),_[e]=!0)}function O(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function M(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var N={};function I(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function F(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)f(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}var P={};function L(e,t){P[e]=t}function j(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},z={};function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=W(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(U);for(t=0,n=i.length;t<n;t++)z[i[t]]?i[t]=z[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=O(i[r])?i[r].call(t,e):i[r];return o}}(t),H[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;n>=0&&B.test(e);)e=e.replace(B,r),B.lastIndex=0,n-=1;return e}var q=/\d/,K=/\d\d/,G=/\d{3}/,X=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=O(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(ue,e)?ue[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function ge(e,t){he(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function me(e,t,n){null!=t&&f(pe,e)&&pe[e](t,n._a,n,e)}var ve=0,ye=1,be=2,we=3,$e=4,Ee=5,Se=6,xe=7,Ce=8;function Te(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}V("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),I("year","y"),L("year",1),ce("Y",oe),ce("YY",J,K),ce("YYYY",ne,X),ce("YYYYY",re,Z),ce("YYYYYY",re,Z),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):S(e)}),he("YY",function(e,t){t[ve]=i.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var _e,Ae=Oe("FullYear",!0);function Oe(e,t){return function(n){return null!=n?(Me(this,e,n),i.updateOffset(this,t),this):De(this,e)}}function De(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ke(e)?29:28:31-r%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),V("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),L("month",8),ce("M",J),ce("MM",J,K),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=S(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:h(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(Pe(this,e),i.updateOffset(this,!0),this):De(this,"Month")}var je=le,Ue=le;function Be(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=de(r[t]),i[t]=de(i[t]);for(t=0;t<24;t++)o[t]=de(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function He(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ze(e,t,n){var r=7+t-n,i=(7+He(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ve(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=ze(e,r,i),u=1+7*(t-1)+s+l;return u<=0?a=Te(o=e-1)+u:u>Te(e)?(o=e+1,a=u-Te(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Ye(e,t,n){var r,i,o=ze(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+We(i,t,n)):a>We(e.year(),t,n)?(r=a-We(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function We(e,t,n){var r=ze(e,t,n),i=ze(e+1,t,n);return(Te(e)-r+i)/7}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),L("week",5),L("isoWeek",5),ce("w",J),ce("ww",J,K),ce("W",J),ce("WW",J,K),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=S(e)}),V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=S(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=le,Ze=le,Je=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,et),V("k",["kk",2],0,function(){return this.hours()||24}),V("hmm",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)}),V("hmmss",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),tt("a",!0),tt("A",!1),I("hour","h"),L("hour",13),ce("a",nt),ce("A",nt),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,K),ce("hh",J,K),ce("kk",J,K),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],we),he(["k","kk"],function(e,t,n){var r=S(e);t[we]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[we]=S(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[we]=S(e.substr(0,r)),t[$e]=S(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=S(e.substr(0,r)),t[$e]=S(e.substr(r,2)),t[Ee]=S(e.substr(i)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[we]=S(e.substr(0,r)),t[$e]=S(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=S(e.substr(0,r)),t[$e]=S(e.substr(r,2)),t[Ee]=S(e.substr(i))});var rt,it=Oe("Hours",!0),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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fe,monthsShort:Re,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n("xyLh")("./"+t),ct(r)}catch(e){}return at[t]}function ct(e,t){var n;return e&&((n=s(t)?dt(e):ft(e,t))?rt=n:"undefined"!=typeof console&&console.warn),rt._abbr}function ft(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=at[e])A("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."),r=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new M(D(r,t)),st[e]&&st[e].forEach(function(e){ft(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!o(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(i=lt(e[o]).split("-"),t=i.length,n=(n=lt(e[o+1]))?n.split("-"):null;t>0;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ne(n[ve],n[ye])?be:n[we]<0||n[we]>24||24===n[we]&&(0!==n[$e]||0!==n[Ee]||0!==n[Se])?we:n[$e]<0||n[$e]>59?$e:n[Ee]<0||n[Ee]>59?Ee:n[Se]<0||n[Se]>999?Se:-1,h(e)._overflowDayOfYear&&(t<ve||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=xe),h(e)._overflowWeekday&&-1===t&&(t=Ce),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ht(t.GG,e._a[ve],Ye(Ot(),1,4).year),r=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Ye(Ot(),o,a);n=ht(t.gg,e._a[ve],u.year),r=ht(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>We(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ve(n,r,i,o,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[ve],r[ve]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=He(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[$e]&&0===e._a[Ee]&&0===e._a[Se]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?He:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var mt=/^\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)?)?$/,vt=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["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}/]],wt=[["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/]],$t=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,r,i,o,a,s=e._i,l=mt.exec(s)||vt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=wt.length;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!yt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),kt(e)}else e._isValid=!1}var St=/^(?:(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}))$/;function xt(e,t,n,r,i,o){var a=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}var Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t=St.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(t){var n=xt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return Ct[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(t[8],t[9],t[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,a,s=""+e._i,l=s.length,u=0;for(r=W(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(fe(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),z[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=(c=e._locale,f=e._a[we],null==(d=e._meridiem)?f:null!=c.meridiemHour?c.meridiemHour(f,d):null!=c.isPM?((p=c.isPM(d))&&f<12&&(f+=12),p||12!==f||(f=0),f):f),gt(e),pt(e)}else Tt(e);else Et(e);var c,f,d,p}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),$(t)?new w(pt(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),g(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));d(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=$t.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=c(t.slice(0),function(e){return parseInt(e,10)}),gt(e)):a(t)?function(e){if(!e._d){var t=R(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),gt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function At(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new w(pt(_t(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ot(e,t,n,r){return At(e,t,n,r,!1)}i.createFromInputFallback=T("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Dt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Mt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function Nt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===_e.call(It,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<It.length;++r)if(e[It[r]]){if(n)return!1;parseFloat(e[It[r]])!==S(e[It[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Rt(e){return e instanceof Ft}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){V(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),ce("Z",se),ce("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var jt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(jt)||["-",0,0],o=60*i[1]+S(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Bt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=($(e)||u(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Ot(e).local()}function Ht(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Vt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,i,o,a,s,u=e,c=null;return Rt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(u={},t?u[t]=e:u.milliseconds=e):(c=Vt.exec(e))?(n="-"===c[1]?-1:1,u={y:0,d:S(c[be])*n,h:S(c[we])*n,m:S(c[$e])*n,s:S(c[Ee])*n,ms:S(Pt(1e3*c[Se]))*n}):(c=Yt.exec(e))?(n="-"===c[1]?-1:(c[1],1),u={y:qt(c[2],n),M:qt(c[3],n),w:qt(c[4],n),d:qt(c[5],n),h:qt(c[6],n),m:qt(c[7],n),s:qt(c[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Ot(u.from),a=Ot(u.to),i=o.isValid()&&a.isValid()?(a=Bt(a,o),o.isBefore(a)?s=Kt(o,a):((s=Kt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),r=new Ft(u),Rt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};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 Gt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Xt(this,Wt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var o=t._milliseconds,a=Pt(t._days),s=Pt(t._months);e.isValid()&&(r=null==r||r,s&&Pe(e,De(e,"Month")+s*n),a&&Me(e,"Date",De(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Wt.fn=Ft.prototype,Wt.invalid=function(){return Wt(NaN)};var Zt=Gt(1,"add"),Jt=Gt(-1,"subtract");function Qt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("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 nn(){return this._locale}function rn(e,t){V(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?Ye(this,r,i).year:(o=We(e,r,i),t>o&&(t=o),function(e,t,n,r,i){var o=Ve(e,t,n,r,i),a=He(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",J,K),ce("gg",J,K),ce("GGGG",ne,X),ce("gggg",ne,X),ce("GGGGG",re,Z),ce("ggggg",re,Z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=S(e)}),ge(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),I("quarter","Q"),L("quarter",7),ce("Q",q),he("Q",function(e,t){t[ye]=3*(S(e)-1)}),V("D",["DD",2],"Do","date"),I("date","D"),L("date",9),ce("D",J),ce("DD",J,K),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=S(e.match(J)[0])});var an=Oe("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),L("dayOfYear",4),ce("DDD",te),ce("DDDD",G),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),V("m",["mm",2],0,"minute"),I("minute","m"),L("minute",14),ce("m",J),ce("mm",J,K),he(["m","mm"],$e);var sn=Oe("Minutes",!1);V("s",["ss",2],0,"second"),I("second","s"),L("second",15),ce("s",J),ce("ss",J,K),he(["s","ss"],Ee);var ln,un=Oe("Seconds",!1);for(V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),L("millisecond",16),ce("S",te,q),ce("SS",te,K),ce("SSS",te,G),ln="SSSS";ln.length<=9;ln+="S")ce(ln,ie);function cn(e,t){t[Se]=S(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,cn);var fn=Oe("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var dn=w.prototype;function pn(e){return e}dn.add=Zt,dn.calendar=function(e,t){var n=e||Ot(),r=Bt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Ot(n)))},dn.clone=function(){return new w(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Bt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=Qt(this,r)/12;break;case"month":o=Qt(this,r);break;case"quarter":o=Qt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:E(o)},dn.endOf=function(e){return void 0===(e=F(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&($(e)&&e.isValid()||Ot(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Ot(),e)},dn.to=function(e,t){return this.isValid()&&($(e)&&e.isValid()||Ot(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Ot(),e)},dn.get=function(e){return O(this[e=F(e)])?this[e]():this},dn.invalidAt=function(){return h(this).overflow},dn.isAfter=function(e,t){var n=$(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=$(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,r=$(e)?e:Ot(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=F(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return g(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Mt,dn.min=Dt,dn.parsingFlags=function(){return d({},h(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:P[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=R(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(O(this[e=F(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=F(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Jt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.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()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=Ae,dn.isLeapYear=function(){return ke(this.year())},dn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Le,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return We(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.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")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.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")},dn.hour=dn.hours=it,dn.minute=dn.minutes=sn,dn.second=dn.seconds=un,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,Wt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ht(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=zt,dn.isUTC=zt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",an),dn.months=T("months accessor is deprecated. Use month instead",Le),dn.years=T("years accessor is deprecated. Use year instead",Ae),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=_t(e))._a){var t=e._isUTC?p(e._a):Ot(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function gn(e,t,n,r){var i=dt(),o=p().set(r,t);return i[n](o,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=dt(),a=e?o._week.dow:0;if(null!=n)return gn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=gn(t,(i+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)O(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)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,a))?i:null:-1!==(i=_e.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,a))?i:-1!==(i=_e.call(this._longMonthsParse,a))?i:null:-1!==(i=_e.call(this._longMonthsParse,a))?i:-1!==(i=_e.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=je),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,a))?i:-1!==(i=_e.call(this._shortWeekdaysParse,a))?i:-1!==(i=_e.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,a))?i:-1!==(i=_e.call(this._weekdaysParse,a))?i:-1!==(i=_e.call(this._minWeekdaysParse,a))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,a))?i:-1!==(i=_e.call(this._weekdaysParse,a))?i:-1!==(i=_e.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ct),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yn=Math.abs;function bn(e,t,n,r){var i=Wt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function $n(e){return 4800*e/146097}function En(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var xn=Sn("ms"),Cn=Sn("s"),Tn=Sn("m"),kn=Sn("h"),_n=Sn("d"),An=Sn("w"),On=Sn("M"),Dn=Sn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Mn("milliseconds"),In=Mn("seconds"),Fn=Mn("minutes"),Rn=Mn("hours"),Pn=Mn("days"),Ln=Mn("months"),jn=Mn("years"),Un=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,M:11},Hn=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Hn(this._milliseconds)/1e3,r=Hn(this._days),i=Hn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var o=E(i/12),a=i%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",p=zn(this._months)!==zn(f)?"-":"",h=zn(this._days)!==zn(f)?"-":"",g=zn(this._milliseconds)!==zn(f)?"-":"";return d+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Yn=Ft.prototype;return Yn.isValid=function(){return this._isValid},Yn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Yn.add=function(e,t){return bn(this,e,t,1)},Yn.subtract=function(e,t){return bn(this,e,t,-1)},Yn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+r/864e5,n=this._months+$n(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Yn.asMilliseconds=xn,Yn.asSeconds=Cn,Yn.asMinutes=Tn,Yn.asHours=kn,Yn.asDays=_n,Yn.asWeeks=An,Yn.asMonths=On,Yn.asYears=Dn,Yn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Yn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*wn(En(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=E(o/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=E(n/24),i=E($n(a)),s+=i,a-=wn(En(i)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Yn.clone=function(){return Wt(this)},Yn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Yn.milliseconds=Nn,Yn.seconds=In,Yn.minutes=Fn,Yn.hours=Rn,Yn.days=Pn,Yn.weeks=function(){return E(this.days()/7)},Yn.months=Ln,Yn.years=jn,Yn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Wt(e).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),u=Un(r.as("y")),c=i<=Bn.ss&&["s",i]||i<Bn.s&&["ss",i]||o<=1&&["m"]||o<Bn.m&&["mm",o]||a<=1&&["h"]||a<Bn.h&&["hh",a]||s<=1&&["d"]||s<Bn.d&&["dd",s]||l<=1&&["M"]||l<Bn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Yn.toISOString=Vn,Yn.toString=Vn,Yn.toJSON=Vn,Yn.locale=en,Yn.localeData=nn,Yn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Yn.lang=tn,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(S(e))}),i.version="2.22.2",t=Ot,i.fn=dn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Ot(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=u,i.locale=ct,i.invalid=m,i.duration=Wt,i.isMoment=$,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Ot.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=Rt,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=ft,i.updateLocale=function(e,t){if(null!=t){var n,r,i=ot;null!=(r=ut(e))&&(i=r._config),t=D(i,t),(n=new M(t)).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return k(at)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Bn[e]&&(void 0===t?Bn[e]:(Bn[e]=t,"s"===e&&(Bn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.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:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n("YuTi")(e))},wmvG:function(e,t,n){"use strict";var r=n("hswa").f,i=n("Kuth"),o=n("3Lyj"),a=n("m0Pp"),s=n("9gX7"),l=n("SlkY"),u=n("Afnz"),c=n("1TsA"),f=n("elZq"),d=n("nh4g"),p=n("Z6vF").fastKey,h=n("s5qY"),g=d?"_s":"size",m=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&l(r,n,e[u],e)});return o(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=h(this,t),r=m(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(h(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return h(this,t)[g]}}),c},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),f(t)}}},x8Yj:function(e,t,n){var r=n("XKFU"),i=n("LVwc"),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},x8ZO:function(e,t,n){var r=n("XKFU"),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,l=0;a<s;)l<(n=i(arguments[a++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(o)}})},xi9X:function(e,t,n){e.exports=function(){"use strict";var t=function(){function e(){this.baseUrl="/",this.loginUrl="/auth/login",this.signupUrl="/auth/signup",this.unlinkUrl="/auth/unlink/",this.tokenName="token",this.tokenPrefix="satellizer",this.tokenHeader="Authorization",this.tokenType="Bearer",this.storageType="localStorage",this.tokenRoot=null,this.withCredentials=!1,this.providers={facebook:{name:"facebook",url:"/auth/facebook",authorizationEndpoint:"https://www.facebook.com/v2.5/dialog/oauth",redirectUri:window.location.origin+"/",requiredUrlParams:["display","scope"],scope:["email"],scopeDelimiter:",",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:400}},google:{name:"google",url:"/auth/google",authorizationEndpoint:"https://accounts.google.com/o/oauth2/auth",redirectUri:window.location.origin,requiredUrlParams:["scope"],optionalUrlParams:["display","state"],scope:["profile","email"],scopePrefix:"openid",scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:452,height:633},state:function(){return encodeURIComponent(Math.random().toString(36).substr(2))}},github:{name:"github",url:"/auth/github",authorizationEndpoint:"https://github.com/login/oauth/authorize",redirectUri:window.location.origin,optionalUrlParams:["scope"],scope:["user:email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:1020,height:618}},instagram:{name:"instagram",url:"/auth/instagram",authorizationEndpoint:"https://api.instagram.com/oauth/authorize",redirectUri:window.location.origin,requiredUrlParams:["scope"],scope:["basic"],scopeDelimiter:"+",oauthType:"2.0"},linkedin:{name:"linkedin",url:"/auth/linkedin",authorizationEndpoint:"https://www.linkedin.com/uas/oauth2/authorization",redirectUri:window.location.origin,requiredUrlParams:["state"],scope:["r_emailaddress"],scopeDelimiter:" ",state:"STATE",oauthType:"2.0",popupOptions:{width:527,height:582}},twitter:{name:"twitter",url:"/auth/twitter",authorizationEndpoint:"https://api.twitter.com/oauth/authenticate",redirectUri:window.location.origin,oauthType:"1.0",popupOptions:{width:495,height:645}},twitch:{name:"twitch",url:"/auth/twitch",authorizationEndpoint:"https://api.twitch.tv/kraken/oauth2/authorize",redirectUri:window.location.origin,requiredUrlParams:["scope"],scope:["user_read"],scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:500,height:560}},live:{name:"live",url:"/auth/live",authorizationEndpoint:"https://login.live.com/oauth20_authorize.srf",redirectUri:window.location.origin,requiredUrlParams:["display","scope"],scope:["wl.emails"],scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:500,height:560}},yahoo:{name:"yahoo",url:"/auth/yahoo",authorizationEndpoint:"https://api.login.yahoo.com/oauth2/request_auth",redirectUri:window.location.origin,scope:[],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:559,height:519}},bitbucket:{name:"bitbucket",url:"/auth/bitbucket",authorizationEndpoint:"https://bitbucket.org/site/oauth2/authorize",redirectUri:window.location.origin+"/",requiredUrlParams:["scope"],scope:["email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:1028,height:529}},spotify:{name:"spotify",url:"/auth/spotify",authorizationEndpoint:"https://accounts.spotify.com/authorize",redirectUri:window.location.origin,optionalUrlParams:["state"],requiredUrlParams:["scope"],scope:["user-read-email"],scopePrefix:"",scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:500,height:530},state:function(){return encodeURIComponent(Math.random().toString(36).substr(2))}}},this.httpInterceptor=function(){return!0}}return Object.defineProperty(e,"getConstant",{get:function(){return new e},enumerable:!0,configurable:!0}),e}(),r=function(){function e(e){this.SatellizerConfig=e}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.SatellizerConfig.baseUrl},set:function(e){this.SatellizerConfig.baseUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loginUrl",{get:function(){return this.SatellizerConfig.loginUrl},set:function(e){this.SatellizerConfig.loginUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"signupUrl",{get:function(){return this.SatellizerConfig.signupUrl},set:function(e){this.SatellizerConfig.signupUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unlinkUrl",{get:function(){return this.SatellizerConfig.unlinkUrl},set:function(e){this.SatellizerConfig.unlinkUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenRoot",{get:function(){return this.SatellizerConfig.tokenRoot},set:function(e){this.SatellizerConfig.tokenRoot=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenName",{get:function(){return this.SatellizerConfig.tokenName},set:function(e){this.SatellizerConfig.tokenName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenPrefix",{get:function(){return this.SatellizerConfig.tokenPrefix},set:function(e){this.SatellizerConfig.tokenPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenHeader",{get:function(){return this.SatellizerConfig.tokenHeader},set:function(e){this.SatellizerConfig.tokenHeader=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenType",{get:function(){return this.SatellizerConfig.tokenType},set:function(e){this.SatellizerConfig.tokenType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"withCredentials",{get:function(){return this.SatellizerConfig.withCredentials},set:function(e){this.SatellizerConfig.withCredentials=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storageType",{get:function(){return this.SatellizerConfig.storageType},set:function(e){this.SatellizerConfig.storageType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"httpInterceptor",{get:function(){return this.SatellizerConfig.httpInterceptor},set:function(e){this.SatellizerConfig.httpInterceptor="function"==typeof e?e:function(){return e}},enumerable:!0,configurable:!0}),e.prototype.facebook=function(e){angular.extend(this.SatellizerConfig.providers.facebook,e)},e.prototype.google=function(e){angular.extend(this.SatellizerConfig.providers.google,e)},e.prototype.github=function(e){angular.extend(this.SatellizerConfig.providers.github,e)},e.prototype.instagram=function(e){angular.extend(this.SatellizerConfig.providers.instagram,e)},e.prototype.linkedin=function(e){angular.extend(this.SatellizerConfig.providers.linkedin,e)},e.prototype.twitter=function(e){angular.extend(this.SatellizerConfig.providers.twitter,e)},e.prototype.twitch=function(e){angular.extend(this.SatellizerConfig.providers.twitch,e)},e.prototype.live=function(e){angular.extend(this.SatellizerConfig.providers.live,e)},e.prototype.yahoo=function(e){angular.extend(this.SatellizerConfig.providers.yahoo,e)},e.prototype.bitbucket=function(e){angular.extend(this.SatellizerConfig.providers.bitbucket,e)},e.prototype.spotify=function(e){angular.extend(this.SatellizerConfig.providers.spotify,e)},e.prototype.oauth1=function(e){this.SatellizerConfig.providers[e.name]=angular.extend(e,{oauthType:"1.0"})},e.prototype.oauth2=function(e){this.SatellizerConfig.providers[e.name]=angular.extend(e,{oauthType:"2.0"})},e.prototype.$get=function(e,t,n){return{login:function(e,n){return t.login(e,n)},signup:function(e,n){return t.signup(e,n)},logout:function(){return e.logout()},authenticate:function(e,t){return n.authenticate(e,t)},link:function(e,t){return n.authenticate(e,t)},unlink:function(e,t){return n.unlink(e,t)},isAuthenticated:function(){return e.isAuthenticated()},getPayload:function(){return e.getPayload()},getToken:function(){return e.getToken()},setToken:function(t){return e.setToken({access_token:t})},removeToken:function(){return e.removeToken()},setStorageType:function(t){return e.setStorageType(t)}}},e.$inject=["SatellizerConfig"],e}();function i(e,t){if(/^(?:[a-z]+:)?\/\//i.test(t))return t;var n=[e,t].join("/");return n.replace(/[\/]+/g,"/").replace(/\/\?/g,"?").replace(/\/\#/g,"#").replace(/\:\//g,"://")}function o(e){var t="https:"===e.protocol;return e.protocol+"//"+e.hostname+":"+(e.port||(t?"443":"80"))+(/^\//.test(e.pathname)?e.pathname:"/"+e.pathname)}function a(e){var t,n,r={};return angular.forEach((e||"").split("&"),function(e){e&&(n=e.split("="),t=decodeURIComponent(n[0]),r[t]=!angular.isDefined(n[1])||decodeURIComponent(n[1]))}),r}function s(t){var r;if(void 0!==e&&e.exports)try{r=n("tjlA").Buffer}catch(e){}var i=String.fromCharCode,o=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),a=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return i(55296+(n>>>10))+i(56320+(1023&n));case 3:return i((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return i((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},s=r?function(e){return(e.constructor===r.constructor?e:new r(e,"base64")).toString()}:function(e){return atob(e).replace(o,a)};return s(String(t).replace(/[-_]/g,function(e){return"-"===e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))}r.prototype.$get.$inject=["SatellizerShared","SatellizerLocal","SatellizerOAuth"];var l=function(){function e(e,t,n,r){this.$q=e,this.$window=t,this.SatellizerConfig=n,this.SatellizerStorage=r;var i=this.SatellizerConfig,o=i.tokenName,a=i.tokenPrefix;this.prefixedTokenName=a?[a,o].join("_"):o}return e.prototype.getToken=function(){return this.SatellizerStorage.get(this.prefixedTokenName)},e.prototype.getPayload=function(){var e=this.SatellizerStorage.get(this.prefixedTokenName);if(e&&3===e.split(".").length)try{var t=e.split(".")[1],n=t.replace("-","+").replace("_","/");return JSON.parse(s(n))}catch(e){}},e.prototype.setToken=function(e){var t,n=this.SatellizerConfig.tokenRoot,r=this.SatellizerConfig.tokenName,i=e&&e.access_token;if(i&&(angular.isObject(i)&&angular.isObject(i.data)?e=i:angular.isString(i)&&(t=i)),!t&&e){var o=n&&n.split(".").reduce(function(e,t){return e[t]},e.data);t=o?o[r]:e.data&&e.data[r]}t&&this.SatellizerStorage.set(this.prefixedTokenName,t)},e.prototype.removeToken=function(){this.SatellizerStorage.remove(this.prefixedTokenName)},e.prototype.isAuthenticated=function(){var e=this.SatellizerStorage.get(this.prefixedTokenName);if(e){if(3===e.split(".").length)try{var t=e.split(".")[1],n=t.replace("-","+").replace("_","/"),r=JSON.parse(this.$window.atob(n)).exp;if("number"==typeof r)return Math.round((new Date).getTime()/1e3)<r}catch(e){return!0}return!0}return!1},e.prototype.logout=function(){return this.SatellizerStorage.remove(this.prefixedTokenName),this.$q.when()},e.prototype.setStorageType=function(e){this.SatellizerConfig.storageType=e},e.$inject=["$q","$window","SatellizerConfig","SatellizerStorage"],e}(),u=function(){function e(e,t,n){this.$http=e,this.SatellizerConfig=t,this.SatellizerShared=n}return e.prototype.login=function(e,t){var n=this;return void 0===t&&(t={}),t.url=t.url?t.url:i(this.SatellizerConfig.baseUrl,this.SatellizerConfig.loginUrl),t.data=e||t.data,t.method=t.method||"POST",t.withCredentials=t.withCredentials||this.SatellizerConfig.withCredentials,this.$http(t).then(function(e){return n.SatellizerShared.setToken(e),e})},e.prototype.signup=function(e,t){return void 0===t&&(t={}),t.url=t.url?t.url:i(this.SatellizerConfig.baseUrl,this.SatellizerConfig.signupUrl),t.data=e||t.data,t.method=t.method||"POST",t.withCredentials=t.withCredentials||this.SatellizerConfig.withCredentials,this.$http(t)},e.$inject=["$http","SatellizerConfig","SatellizerShared"],e}(),c=function(){function e(e,t,n){this.$interval=e,this.$window=t,this.$q=n,this.popup=null,this.defaults={redirectUri:null}}return e.prototype.stringifyOptions=function(e){var t=[];return angular.forEach(e,function(e,n){t.push(n+"="+e)}),t.join(",")},e.prototype.open=function(e,t,n,r,i){var o=n.width||500,a=n.height||500,s=this.stringifyOptions({width:o,height:a,top:this.$window.screenY+(this.$window.outerHeight-a)/2.5,left:this.$window.screenX+(this.$window.outerWidth-o)/2}),l=this.$window.cordova||this.$window.navigator.userAgent.indexOf("CriOS")>-1?"_blank":t;if(this.popup=this.$window.open(e,l,s),this.popup&&this.popup.focus&&this.popup.focus(),!i)return this.$window.cordova?this.eventListener(r):("about:blank"===e&&(this.popup.location=e),this.polling(r))},e.prototype.polling=function(e){var t=this;return this.$q(function(n,r){var i=document.createElement("a");i.href=e,o(i);var s=t.$interval(function(){t.popup&&!t.popup.closed&&void 0!==t.popup.closed||(t.$interval.cancel(s),r(new Error("The popup window was closed")));try{if(o(t.popup.location),t.popup.location.search||t.popup.location.hash&&"#_=_"===window.location.hash){var e=a(t.popup.location.search.substring(1).replace(/\/$/,"")),i=a(t.popup.location.hash.substring(1).replace(/[\/$]/,"")),l=angular.extend({},e,i);l.error?r(new Error(l.error)):n(l),t.$interval.cancel(s),t.popup.close()}}catch(e){}},500)})},e.prototype.eventListener=function(e){var t=this;return this.$q(function(n,r){t.popup.addEventListener("loadstart",function(i){if(0===i.url.indexOf(e)){var o=document.createElement("a");if(o.href=i.url,o.search||o.hash){var s=a(o.search.substring(1).replace(/\/$/,"")),l=a(o.hash.substring(1).replace(/[\/$]/,"")),u=angular.extend({},s,l);u.error?r(new Error(u.error)):n(u),t.popup.close()}}}),t.popup.addEventListener("loaderror",function(){r(new Error("Authorization failed"))}),t.popup.addEventListener("exit",function(){r(new Error("The popup window was closed"))})})},e.$inject=["$interval","$window","$q"],e}(),f=function(){function e(e,t,n,r){this.$http=e,this.$window=t,this.SatellizerConfig=n,this.SatellizerPopup=r,this.defaults={name:null,url:null,authorizationEndpoint:null,scope:null,scopePrefix:null,scopeDelimiter:null,redirectUri:null,requiredUrlParams:null,defaultUrlParams:null,oauthType:"1.0",popupOptions:{width:null,height:null}}}return e.prototype.init=function(e,t){var n=this;angular.extend(this.defaults,e);var r=e.name,i=e.popupOptions,o=this.defaults.redirectUri;return this.$window.cordova||this.SatellizerPopup.open("about:blank",r,i,o,!0),this.getRequestToken().then(function(t){return n.openPopup(e,t).then(function(e){return e})})},e.prototype.openPopup=function(e,t){var n=[e.authorizationEndpoint,this.buildQueryString(t.data)].join("?"),r=this.defaults.redirectUri;return this.$window.cordova?this.SatellizerPopup.open(n,e.name,e.popupOptions,r):(this.SatellizerPopup.popup.location=n,this.SatellizerPopup.polling(r))},e.prototype.getRequestToken=function(){var e=this.SatellizerConfig.baseUrl?i(this.SatellizerConfig.baseUrl,this.defaults.url):this.defaults.url;return this.$http.post(e,this.defaults)},e.prototype.exchangeForToken=function(e,t){var n=angular.extend({},t,e),r=this.SatellizerConfig.baseUrl?i(this.SatellizerConfig.baseUrl,this.defaults.url):this.defaults.url;return this.$http.post(r,n,{withCredentials:this.SatellizerConfig.withCredentials})},e.prototype.buildQueryString=function(e){var t=[];return angular.forEach(e,function(e,n){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}),t.join("&")},e.$inject=["$http","$window","SatellizerConfig","SatellizerPopup"],e}(),d=function(){function e(e,t,n,r,i,o,a){this.$http=e,this.$window=t,this.$timeout=n,this.$q=r,this.SatellizerConfig=i,this.SatellizerPopup=o,this.SatellizerStorage=a,this.defaults={name:null,url:null,clientId:null,authorizationEndpoint:null,redirectUri:null,scope:null,scopePrefix:null,scopeDelimiter:null,state:null,requiredUrlParams:null,defaultUrlParams:["response_type","client_id","redirect_uri"],responseType:"code",responseParams:{code:"code",clientId:"clientId",redirectUri:"redirectUri"},oauthType:"2.0",popupOptions:{width:null,height:null}}}return e.camelCase=function(e){return e.replace(/([\:\-\_]+(.))/g,function(e,t,n,r){return r?n.toUpperCase():n})},e.prototype.init=function(e,t){var n=this;return this.$q(function(r,i){angular.extend(n.defaults,e);var o=n.defaults.name+"_state",a=n.defaults,s=a.name,l=a.state,u=a.popupOptions,c=a.redirectUri,f=a.responseType;"function"==typeof l?n.SatellizerStorage.set(o,l()):"string"==typeof l&&n.SatellizerStorage.set(o,l);var d=[n.defaults.authorizationEndpoint,n.buildQueryString()].join("?");n.SatellizerPopup.open(d,s,u,c).then(function(e){return"token"!==f&&n.defaults.url?e.state&&e.state!==n.SatellizerStorage.get(o)?i(new Error("The value returned in the state parameter does not match the state value from your original authorization code request.")):void r(n.exchangeForToken(e,t)):r(e)}).catch(function(e){return i(e)})})},e.prototype.exchangeForToken=function(e,t){var n=this,r=angular.extend({},t);return angular.forEach(this.defaults.responseParams,function(t,i){switch(i){case"code":r[t]=e.code;break;case"clientId":r[t]=n.defaults.clientId;break;case"redirectUri":r[t]=n.defaults.redirectUri;break;default:r[t]=e[i]}}),e.state&&(r.state=e.state),r},e.prototype.buildQueryString=function(){var t=this,n=[];return angular.forEach(["defaultUrlParams","requiredUrlParams","optionalUrlParams"],function(r){angular.forEach(t.defaults[r],function(r){var i=e.camelCase(r),o=angular.isFunction(t.defaults[r])?t.defaults[r]():t.defaults[i];if("redirect_uri"!==r||o){if("state"===r){var a=t.defaults.name+"_state";o=encodeURIComponent(t.SatellizerStorage.get(a))}"scope"===r&&Array.isArray(o)&&(o=o.join(t.defaults.scopeDelimiter),t.defaults.scopePrefix&&(o=[t.defaults.scopePrefix,o].join(t.defaults.scopeDelimiter))),n.push([r,o])}})}),n.map(function(e){return e.join("=")}).join("&")},e.$inject=["$http","$window","$timeout","$q","SatellizerConfig","SatellizerPopup","SatellizerStorage"],e}(),p=function(){function e(e,t,n,r,i,o,a,s,l,u){this.$http=e,this.$window=t,this.$timeout=n,this.$q=r,this.SatellizerConfig=i,this.SatellizerPopup=o,this.SatellizerStorage=a,this.SatellizerShared=s,this.SatellizerOAuth1=l,this.SatellizerOAuth2=u}return e.prototype.authenticate=function(e,t){var n=this;return this.$q(function(r,i){var o=n.SatellizerConfig.providers[e],a=null;switch(o.oauthType){case"1.0":a=new f(n.$http,n.$window,n.SatellizerConfig,n.SatellizerPopup);break;case"2.0":a=new d(n.$http,n.$window,n.$timeout,n.$q,n.SatellizerConfig,n.SatellizerPopup,n.SatellizerStorage);break;default:return i(new Error("Invalid OAuth Type"))}return a.init(o,t).then(function(e){o.url&&n.SatellizerShared.setToken(e),r(e)}).catch(function(e){i(e)})})},e.prototype.unlink=function(e,t){return void 0===t&&(t={}),t.url=t.url?t.url:i(this.SatellizerConfig.baseUrl,this.SatellizerConfig.unlinkUrl),t.data={provider:e}||t.data,t.method=t.method||"POST",t.withCredentials=t.withCredentials||this.SatellizerConfig.withCredentials,this.$http(t)},e.$inject=["$http","$window","$timeout","$q","SatellizerConfig","SatellizerPopup","SatellizerStorage","SatellizerShared","SatellizerOAuth1","SatellizerOAuth2"],e}(),h=function(){function e(e,t){this.$window=e,this.SatellizerConfig=t,this.memoryStore={}}return e.prototype.get=function(e){try{return this.$window[this.SatellizerConfig.storageType].getItem(e)}catch(t){return this.memoryStore[e]}},e.prototype.set=function(e,t){try{this.$window[this.SatellizerConfig.storageType].setItem(e,t)}catch(n){this.memoryStore[e]=t}},e.prototype.remove=function(e){try{this.$window[this.SatellizerConfig.storageType].removeItem(e)}catch(t){delete this.memoryStore[e]}},e.$inject=["$window","SatellizerConfig"],e}(),g=function(){function e(e,t,n){var r=this;this.SatellizerConfig=e,this.SatellizerShared=t,this.SatellizerStorage=n,this.request=function(e){if(e.skipAuthorization)return e;if(r.SatellizerShared.isAuthenticated()&&r.SatellizerConfig.httpInterceptor()){var t=r.SatellizerConfig.tokenPrefix?[r.SatellizerConfig.tokenPrefix,r.SatellizerConfig.tokenName].join("_"):r.SatellizerConfig.tokenName,n=r.SatellizerStorage.get(t);r.SatellizerConfig.tokenHeader&&r.SatellizerConfig.tokenType&&(n=r.SatellizerConfig.tokenType+" "+n),e.headers[r.SatellizerConfig.tokenHeader]=n}return e}}return e.Factory=function(t,n,r){return new e(t,n,r)},e.$inject=["SatellizerConfig","SatellizerShared","SatellizerStorage"],e}();g.Factory.$inject=["SatellizerConfig","SatellizerShared","SatellizerStorage"];var m=function(){function e(e){this.$httpProvider=e,e.interceptors.push(g.Factory)}return e.$inject=["$httpProvider"],e}();return angular.module("satellizer",[]).provider("$auth",["SatellizerConfig",function(e){return new r(e)}]).constant("SatellizerConfig",t.getConstant).service("SatellizerShared",l).service("SatellizerLocal",u).service("SatellizerPopup",c).service("SatellizerOAuth",p).service("SatellizerOAuth2",d).service("SatellizerOAuth1",f).service("SatellizerStorage",h).service("SatellizerInterceptor",g).config(["$httpProvider",function(e){return new m(e)}]),"satellizer"}()},xm80:function(e,t,n){"use strict";var r=n("XKFU"),i=n("D4iV"),o=n("7Qtz"),a=n("y3w9"),s=n("d/Gc"),l=n("ne8i"),u=n("0/R4"),c=n("dyZX").ArrayBuffer,f=n("69bn"),d=o.ArrayBuffer,p=o.DataView,h=i.ABV&&c.isView,g=d.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(c!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return h&&h(e)||u(e)&&m in e}}),r(r.P+r.U+r.F*n("eeVq")(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(l(i-r)),u=new p(this),c=new p(o),h=0;r<i;)c.setUint8(h++,u.getUint8(r++));return o}}),n("elZq")("ArrayBuffer")},xpiv:function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{ownKeys:n("mQtv")})},xpql:function(e,t,n){e.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(e,t,n){var r=n("0/R4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ylqs:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},yt8O:function(e,t,n){"use strict";var r=n("nGyu"),i=n("1TsA"),o=n("hPIQ"),a=n("aCFj");e.exports=n("Afnz")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},yxne:function(e,t,n){},z2o2:function(e,t,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},z41f:function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1),o=r(i),a=n(2),s=r(a),l=n(3),u=r(l),c=n(4),f=r(c),d=n(5),p=r(d),h=n(6),g=r(h),m=n(7),v=r(m),y=n(8),b=r(y),w=n(9),$=r(w),E=n(10),S=r(E),x=n(11),C=r(x),T=n(12),k=r(T),_=n(13),A=r(_);angular.module(o.default.name,[]).value("fileUploaderOptions",s.default).factory("FileUploader",u.default).factory("FileLikeObject",f.default).factory("FileItem",p.default).factory("FileDirective",g.default).factory("FileSelect",v.default).factory("FileDrop",$.default).factory("FileOver",S.default).factory("Pipeline",b.default).directive("nvFileSelect",C.default).directive("nvFileDrop",k.default).directive("nvFileOver",A.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,n,r,i,o,a,s){e.FileLikeObject=t,e.FileItem=n,e.FileDirective=r,e.FileSelect=i,e.FileDrop=o,e.FileOver=a,e.Pipeline=s}])},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,v,y){var b=r.File,w=r.FormData,$=function(){function r(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=l(e);u(this,n,t,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return r.prototype.addToQueue=function(e,t,n){var r=this,o=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],s=this._getFilters(n),l=this.queue.length,u=[],c=function(){r.queue.length!==l&&(r._onAfterAddingAll(u),r.progress=r._getTotalProgress()),r._render(),r.autoUpload&&r.uploadAll()};!function e(){var n=o.shift();if(g(n))return c();var l=r.isFile(n)?n:new a(n),f=r._convertFiltersToPipes(s),d=new y(f);d.onThrown=function(t){var n=t.pipe.originalFilter,o=i(t.args,2),a=o[0],s=o[1];r._onWhenAddingFileFailed(a,n,s),e()},d.onSuccessful=function(t,n){var i=new v(r,t,n);u.push(i),r.queue.push(i),r._onAfterAddingFile(i),e()},d.exec(l,t)}()},r.prototype.removeFromQueue=function(e){var t=this.getIndexOfItem(e),n=this.queue[t];n.isUploading&&n.cancel(),this.queue.splice(t,1),n._destroy(),this.progress=this._getTotalProgress()},r.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},r.prototype.uploadItem=function(e){var t=this.getIndexOfItem(e),n=this.queue[t],r=this.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(n),n.isCancel||(n.isUploading=!0,this.isUploading=!0,this[r](n),this._render()))},r.prototype.cancelItem=function(e){var t=this,n=this.getIndexOfItem(e),r=this.queue[n],i=this.isHTML5?"_xhr":"_form";r&&(r.isCancel=!0,r.isUploading?r[i].abort():function(){var e=[void 0,0,{}];o(function(){t._onCancelItem.apply(t,[r].concat(e)),t._onCompleteItem.apply(t,[r].concat(e))})}())},r.prototype.uploadAll=function(){var e=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(c(e,function(e){return e._prepareToUploading()}),e[0].upload())},r.prototype.cancelAll=function(){var e=this.getNotUploadedItems();c(e,function(e){return e.cancel()})},r.prototype.isFile=function(e){return this.constructor.isFile(e)},r.prototype.isFileLikeObject=function(e){return this.constructor.isFileLikeObject(e)},r.prototype.isArrayLikeObject=function(e){return this.constructor.isArrayLikeObject(e)},r.prototype.getIndexOfItem=function(e){return d(e)?e:this.queue.indexOf(e)},r.prototype.getNotUploadedItems=function(){return this.queue.filter(function(e){return!e.isUploaded})},r.prototype.getReadyItems=function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,t){return e.index-t.index})},r.prototype.destroy=function(){var e=this;c(this._directives,function(t){c(e._directives[t],function(e){e.destroy()})})},r.prototype.onAfterAddingAll=function(e){},r.prototype.onAfterAddingFile=function(e){},r.prototype.onWhenAddingFileFailed=function(e,t,n){},r.prototype.onBeforeUploadItem=function(e){},r.prototype.onProgressItem=function(e,t){},r.prototype.onProgressAll=function(e){},r.prototype.onSuccessItem=function(e,t,n,r){},r.prototype.onErrorItem=function(e,t,n,r){},r.prototype.onCancelItem=function(e,t,n,r){},r.prototype.onCompleteItem=function(e,t,n,r){},r.prototype.onCompleteAll=function(){},r.prototype._getTotalProgress=function(e){if(this.removeAfterUpload)return e||0;var t=this.getNotUploadedItems().length,n=t?this.queue.length-t:this.queue.length,r=100/this.queue.length,i=(e||0)*r/100;return Math.round(n*r+i)},r.prototype._getFilters=function(e){if(!e)return this.filters;if(h(e))return e;var t=e.match(/[^\s,]+/g);return this.filters.filter(function(e){return-1!==t.indexOf(e.name)})},r.prototype._convertFiltersToPipes=function(e){var t=this;return e.map(function(e){var n=s(t,e.fn);return n.isAsync=3===e.fn.length,n.originalFilter=e,n})},r.prototype._render=function(){t.$$phase||t.$apply()},r.prototype._folderFilter=function(e){return!(!e.size&&!e.type)},r.prototype._queueLimitFilter=function(){return this.queue.length<this.queueLimit},r.prototype._isSuccessCode=function(e){return e>=200&&300>e||304===e},r.prototype._transformResponse=function(e,t){var r=this._headersGetter(t);return c(n.defaults.transformResponse,function(t){e=t(e,r)}),e},r.prototype._parseHeaders=function(e){var t,n,r,i={};return e?(c(e.split("\n"),function(e){r=e.indexOf(":"),t=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim(),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i},r.prototype._headersGetter=function(e){return function(t){return t?e[t.toLowerCase()]||null:e}},r.prototype._xhrTransport=function(e){var t,n=this,r=e._xhr=new XMLHttpRequest;if(e.disableMultipart?t=e._file:(t=new w,c(e.formData,function(e){c(e,function(e,n){t.append(n,e)})}),t.append(e.alias,e._file,e.file.name)),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");r.upload.onprogress=function(t){var r=Math.round(t.lengthComputable?100*t.loaded/t.total:0);n._onProgressItem(e,r)},r.onload=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t),o=n._isSuccessCode(r.status)?"Success":"Error",a="_on"+o+"Item";n[a](e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onerror=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onErrorItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onabort=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onCancelItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.open(e.method,e.url,!0),r.withCredentials=e.withCredentials,c(e.headers,function(e,t){r.setRequestHeader(t,e)}),r.send(t)},r.prototype._iframeTransport=function(e){var t=this,n=m('<form style="display: none;" />'),r=m('<iframe name="iframeTransport'+Date.now()+'">'),i=e._input;e._form&&e._form.replaceWith(i),e._form=n,i.prop("name",e.alias),c(e.formData,function(e){c(e,function(e,t){var r=m('<input type="hidden" name="'+t+'" />');r.val(e),n.append(r)})}),n.prop({action:e.url,method:"POST",target:r.prop("name"),enctype:"multipart/form-data",encoding:"multipart/form-data"}),r.bind("load",function(){var n="",i=200;try{n=r[0].contentDocument.body.innerHTML}catch(e){i=500}var o={response:n,status:i,dummy:!0},a={},s=t._transformResponse(o.response,a);t._onSuccessItem(e,s,o.status,a),t._onCompleteItem(e,s,o.status,a)}),n.abort=function(){var o,a={status:0,dummy:!0},s={};r.unbind("load").prop("src","javascript:false;"),n.replaceWith(i),t._onCancelItem(e,o,a.status,s),t._onCompleteItem(e,o,a.status,s)},i.after(n),n.append(i).append(r),n[0].submit()},r.prototype._onWhenAddingFileFailed=function(e,t,n){this.onWhenAddingFileFailed(e,t,n)},r.prototype._onAfterAddingFile=function(e){this.onAfterAddingFile(e)},r.prototype._onAfterAddingAll=function(e){this.onAfterAddingAll(e)},r.prototype._onBeforeUploadItem=function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)},r.prototype._onProgressItem=function(e,t){var n=this._getTotalProgress(t);this.progress=n,e._onProgress(t),this.onProgressItem(e,t),this.onProgressAll(n),this._render()},r.prototype._onSuccessItem=function(e,t,n,r){e._onSuccess(t,n,r),this.onSuccessItem(e,t,n,r)},r.prototype._onErrorItem=function(e,t,n,r){e._onError(t,n,r),this.onErrorItem(e,t,n,r)},r.prototype._onCancelItem=function(e,t,n,r){e._onCancel(t,n,r),this.onCancelItem(e,t,n,r)},r.prototype._onCompleteItem=function(e,t,n,r){e._onComplete(t,n,r),this.onCompleteItem(e,t,n,r);var i=this.getReadyItems()[0];return this.isUploading=!1,p(i)?void i.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),void this._render())},r.isFile=function(e){return b&&e instanceof b},r.isFileLikeObject=function(e){return e instanceof a},r.isArrayLikeObject=function(e){return f(e)&&"length"in e},r.inherit=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.super_=t},r}();return $.prototype.isHTML5=!(!b||!w),$.isHTML5=$.prototype.isHTML5,$}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.default=r;var o=n(1),a=(function(e){e&&e.__esModule}(o),angular),s=a.bind,l=a.copy,u=a.extend,c=a.forEach,f=a.isObject,d=a.isNumber,p=a.isDefined,h=a.isArray,g=a.isUndefined,m=a.element;r.$inject=["fileUploaderOptions","$rootScope","$http","$window","$timeout","FileLikeObject","FileItem","Pipeline"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=a(t),r=n?t.value:t,i=s(r)?"FakePath":"Object",o="_createFrom"+i;this[o](r)}return e.prototype._createFromFakePath=function(e){this.lastModifiedDate=null,this.size=null,this.type="like/"+e.slice(e.lastIndexOf(".")+1).toLowerCase(),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)},e.prototype._createFromObject=function(e){this.lastModifiedDate=o(e.lastModifiedDate),this.size=e.size,this.type=e.type,this.name=e.name},e}()};var r=n(1),i=(function(e){e&&e.__esModule}(r),angular),o=i.copy,a=i.isElement,s=i.isString},function(e,t,n){"use strict";function r(e,t){return function(){function n(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=u(r),c=o?l(r):null,f=o?null:r;s(this,{url:e.url,alias:e.alias,headers:a(e.headers),formData:a(e.formData),removeAfterUpload:e.removeAfterUpload,withCredentials:e.withCredentials,disableMultipart:e.disableMultipart,method:e.method},i,{uploader:e,file:new t(r),isReady:!1,isUploading:!1,isUploaded:!1,isSuccess:!1,isCancel:!1,isError:!1,progress:0,index:null,_file:f,_input:c}),c&&this._replaceNode(c)}return n.prototype.upload=function(){try{this.uploader.uploadItem(this)}catch(t){var e=t.name+":"+t.message;this.uploader._onCompleteItem(this,e,t.code,[]),this.uploader._onErrorItem(this,e,t.code,[])}},n.prototype.cancel=function(){this.uploader.cancelItem(this)},n.prototype.remove=function(){this.uploader.removeFromQueue(this)},n.prototype.onBeforeUpload=function(){},n.prototype.onProgress=function(e){},n.prototype.onSuccess=function(e,t,n){},n.prototype.onError=function(e,t,n){},n.prototype.onCancel=function(e,t,n){},n.prototype.onComplete=function(e,t,n){},n.prototype._onBeforeUpload=function(){this.isReady=!0,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()},n.prototype._onProgress=function(e){this.progress=e,this.onProgress(e)},n.prototype._onSuccess=function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=null,this.onSuccess(e,t,n)},n.prototype._onError=function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=null,this.onError(e,t,n)},n.prototype._onCancel=function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=null,this.onCancel(e,t,n)},n.prototype._onComplete=function(e,t,n){this.onComplete(e,t,n),this.removeAfterUpload&&this.remove()},n.prototype._destroy=function(){this._input&&this._input.remove(),this._form&&this._form.remove(),delete this._form,delete this._input},n.prototype._prepareToUploading=function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0},n.prototype._replaceNode=function(t){var n=e(t.clone())(t.scope());n.prop("value",null),t.css("display","none"),t.after(n)},n}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),o=(function(e){e&&e.__esModule}(i),angular),a=o.copy,s=o.extend,l=o.element,u=o.isElement;r.$inject=["$compile","FileLikeObject"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),o(this,t),this.uploader._directives[this.prop].push(this),this._saveLinks(),this.bind()}return e.prototype.bind=function(){for(var e in this.events){var t=this.events[e];this.element.bind(e,this[t])}},e.prototype.unbind=function(){for(var e in this.events)this.element.unbind(e,this.events[e])},e.prototype.destroy=function(){var e=this.uploader._directives[this.prop].indexOf(this);this.uploader._directives[this.prop].splice(e,1),this.unbind()},e.prototype._saveLinks=function(){for(var e in this.events){var t=this.events[e];this[t]=this[t].bind(this)}},e}();return e.prototype.events={},e};var r=n(1),i=(function(e){e&&e.__esModule}(r),angular),o=i.extend},function(e,t,n){"use strict";function r(e,t){return function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=a(e,{events:{$destroy:"destroy",change:"onChange"},prop:"select"}),i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,r));return i.uploader.isHTML5||i.element.removeAttr("multiple"),i.element.prop("value",null),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.getOptions=function(){},n.prototype.getFilters=function(){},n.prototype.isEmptyAfterSelection=function(){return!!this.element.attr("multiple")},n.prototype.onChange=function(){var t=this.uploader.isHTML5?this.element[0].files:this.element[0],n=this.getOptions(),r=this.getFilters();this.uploader.isHTML5||this.destroy(),this.uploader.addToQueue(t,n,r),this.isEmptyAfterSelection()&&(this.element.prop("value",null),this.element.replaceWith(e(this.element.clone())(this.scope)))},n}(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),o=(function(e){e&&e.__esModule}(i),angular),a=o.extend;r.$inject=["$compile","FileDirective"]},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e){return function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.pipes=e}return t.prototype.next=function(t){var r=this.pipes.shift();if(a(r))this.onSuccessful.apply(this,n(t));else{var i=new Error("The filter has not passed");if(i.pipe=r,i.args=t,r.isAsync){var s=e.defer(),l=o(this,this.next,t),u=o(this,this.onThrown,i);s.promise.then(l,u),r.apply(void 0,n(t).concat([s]))}else{var c=Boolean(r.apply(void 0,n(t)));c?this.next(t):this.onThrown(i)}}},t.prototype.exec=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.next(t)},t.prototype.onThrown=function(e){},t.prototype.onSuccessful=function(){},t}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=angular,o=i.bind,a=i.isUndefined;r.$inject=["$q"]},function(e,t,n){"use strict";function r(e){return function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=a(n,{events:{$destroy:"destroy",drop:"onDrop",dragover:"onDragOver",dragleave:"onDragLeave"},prop:"drop"});return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getOptions=function(){},t.prototype.getFilters=function(){},t.prototype.onDrop=function(e){var t=this._getTransfer(e);if(t){var n=this.getOptions(),r=this.getFilters();this._preventAndStop(e),s(this.uploader._directives.over,this._removeOverClass,this),this.uploader.addToQueue(t.files,n,r)}},t.prototype.onDragOver=function(e){var t=this._getTransfer(e);this._haveFiles(t.types)&&(t.dropEffect="copy",this._preventAndStop(e),s(this.uploader._directives.over,this._addOverClass,this))},t.prototype.onDragLeave=function(e){e.currentTarget!==this.element[0]&&(this._preventAndStop(e),s(this.uploader._directives.over,this._removeOverClass,this))},t.prototype._getTransfer=function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer},t.prototype._preventAndStop=function(e){e.preventDefault(),e.stopPropagation()},t.prototype._haveFiles=function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))},t.prototype._addOverClass=function(e){e.addOverClass()},t.prototype._removeOverClass=function(e){e.removeOverClass()},t}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),o=(function(e){e&&e.__esModule}(i),angular),a=o.extend,s=o.forEach;r.$inject=["FileDirective"]},function(e,t,n){"use strict";function r(e){return function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=a(n,{events:{$destroy:"destroy"},prop:"over",overClass:"nv-file-over"});return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addOverClass=function(){this.element.addClass(this.getOverClass())},t.prototype.removeOverClass=function(){this.element.removeClass(this.getOverClass())},t.prototype.getOverClass=function(){return this.overClass},t}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),o=(function(e){e&&e.__esModule}(i),angular),a=o.extend;r.$inject=["FileDirective"]},function(e,t,n){"use strict";function r(e,t,n){return{link:function(r,i,o){var a=r.$eval(o.uploader);if(!(a instanceof t))throw new TypeError('"Uploader" must be an instance of FileUploader');var s=new n({uploader:a,element:i,scope:r});s.getOptions=e(o.options).bind(s,r),s.getFilters=function(){return o.filters}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1);!function(e){e&&e.__esModule}(i),r.$inject=["$parse","FileUploader","FileSelect"]},function(e,t,n){"use strict";function r(e,t,n){return{link:function(r,i,o){var a=r.$eval(o.uploader);if(!(a instanceof t))throw new TypeError('"Uploader" must be an instance of FileUploader');if(a.isHTML5){var s=new n({uploader:a,element:i});s.getOptions=e(o.options).bind(s,r),s.getFilters=function(){return o.filters}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1);!function(e){e&&e.__esModule}(i),r.$inject=["$parse","FileUploader","FileDrop"]},function(e,t,n){"use strict";function r(e,t){return{link:function(n,r,i){var o=n.$eval(i.uploader);if(!(o instanceof e))throw new TypeError('"Uploader" must be an instance of FileUploader');var a=new t({uploader:o,element:r});a.getOverClass=function(){return i.overClass||a.overClass}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1);!function(e){e&&e.__esModule}(i),r.$inject=["FileUploader","FileOver"]}])},zRwo:function(e,t,n){var r=n("6FMO");e.exports=function(e,t){return new(r(e))(t)}},zhAb:function(e,t,n){var r=n("aagx"),i=n("aCFj"),o=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},zyHs:function(e,t,n){"use strict";!function(e){var t=e.module("angularCSS",[]);e.module("door3.css",[]).run(function(){}),t.provider("$css",[function(){var t=this.defaults={element:"link",rel:"stylesheet",type:"text/css",container:"head",method:"append",weight:0},r=!1;this.debugMode=function(t){return e.isDefined(t)&&(r=t),r},this.$get=["$rootScope","$injector","$q","$window","$timeout","$compile","$http","$filter","$log","$interpolate",function(i,o,a,s,l,u,c,f,d,p){var h={},g='<link ng-repeat="stylesheet in stylesheets | orderBy: \'weight\' track by $index " rel="{{ stylesheet.rel }}" type="{{ stylesheet.type }}" ng-href="{{ stylesheet.href }}" ng-attr-media="{{ stylesheet.media }}">';g=g.replace(/{{/g,p.startSymbol()).replace(/}}/g,p.endSymbol());var m={},v={},y=["print"],b=e.extend({},t),w=e.element(document.querySelector?document.querySelector(b.container):document.getElementsByTagName(b.container)[0]),$=[];function E(t){var n;if(t)return e.isFunction(t)&&(t=e.copy(o.invoke(t))),e.isString(t)&&(t=e.extend({href:t},b)),e.isArray(t)&&e.isString(t[0])&&e.forEach(t,function(n){t=e.extend({href:n},b)}),e.isObject(t)&&!e.isArray(t)&&(t=e.extend({},b,t)),e.isArray(t)&&e.isObject(t[0])&&e.forEach(t,function(n){t=e.extend(n,b)}),n=t,e.isDefined(b.breakpoints)&&(n.breakpoint in b.breakpoints&&(n.media=b.breakpoints[n.breakpoint]),delete n.breakpoints),t}return e.forEach(n,function(e,t){e.hasOwnProperty("css")&&(n[t]=E(e.css))}),i.stylesheets=[],w[b.method](u(g)(i)),i.$on("$directiveAdd",function(e,t,n){n&&t.hasOwnProperty("css")&&h.bind(t.css,n)}),i.$on("$routeChangeSuccess",function(e,t,n){n&&(h.remove(h.getFromRoute(n).concat($)),$.length=0),t&&h.add(h.getFromRoute(t))}),i.$on("$stateChangeSuccess",function(e,t,n,r){r&&(h.remove(h.getFromState(r).concat($)),$.length=0),t&&h.add(h.getFromState(t))}),h.getFromRoute=function(t){if(t){var n=null,i=[];return t.$$route&&t.$$route.css?n=t.$$route.css:t.css&&(n=t.css),n&&(e.isArray(n)?e.forEach(n,function(t){e.isFunction(t)&&$.push(E(t)),i.push(E(t))}):(e.isFunction(n)&&$.push(E(n)),i.push(E(n)))),i}r&&d.error("Get From Route: No route provided")},h.getFromRoutes=function(t){if(t){var n=[];return e.forEach(t,function(e){var t=h.getFromRoute(e);t.length&&n.push(t[0])}),n}r&&d.error("Get From Routes: No routes provided")},h.getFromState=function(t){if(t){var n=[];if(e.isDefined(t.views)&&e.forEach(t.views,function(t){t.css&&(e.isFunction(t.css)&&$.push(E(t.css)),n.push(E(t.css)))}),e.isDefined(t.children)&&e.forEach(t.children,function(t){t.css&&(e.isFunction(t.css)&&$.push(E(t.css)),n.push(E(t.css))),e.isDefined(t.children)&&e.forEach(t.children,function(t){t.css&&(e.isFunction(t.css)&&$.push(E(t.css)),n.push(E(t.css)))})}),e.isDefined(t.css)||e.isDefined(t.data)&&e.isDefined(t.data.css)){var i=t.css||t.data.css;e.isArray(i)?e.forEach(i,function(t){e.isFunction(t)&&$.push(E(t)),n.push(E(t))}):(e.isFunction(i)&&$.push(E(i)),n.push(E(i)))}return n}r&&d.error("Get From State: No state provided")},h.getFromStates=function(t){if(t){var n=[];return e.forEach(t,function(t){var r=h.getFromState(t);e.isArray(r)?e.forEach(r,function(e){n.push(e)}):n.push(r)}),n}r&&d.error("Get From States: No states provided")},h.preload=function(t,i){t||(t=[],n.length&&Array.prototype.push.apply(t,n),o.has("$route")&&Array.prototype.push.apply(t,h.getFromRoutes(o.get("$route").routes)),o.has("$state")&&Array.prototype.push.apply(t,h.getFromStates(o.get("$state").get())),t=function(e,t){if(e&&t)return f("filter")(e,function(e){return e[t]});r&&d.error("filterBy: missing array or property")}(t,"preload")),e.isArray(t)||(t=[t]);var s=[];e.forEach(t,function(e,n){e=t[n]=E(e),s.push(c.get(e.href).error(function(t){r&&d.error("AngularCSS: Incorrect path for "+e.href)}))}),e.isFunction(i)&&a.all(s).then(function(){i(t)})},h.bind=function(t,n){if(t&&n){var i=[];e.isArray(t)?e.forEach(t,function(e){i.push(E(e))}):i.push(E(t)),h.add(i),r&&d.debug("$css.bind(): Added",i),n.$on("$destroy",function(){h.remove(i),r&&d.debug("$css.bind(): Removed",i)})}else r&&d.error("No scope or stylesheets provided")},h.add=function(t,n){t?(e.isArray(t)||(t=[t]),e.forEach(t,function(e){(e=E(e)).href&&!f("filter")(i.stylesheets,{href:e.href}).length&&(!function(e){e?-1===e.href.indexOf("?cache=")&&(e.href=e.href+(e.bustCache?"?cache="+(new Date).getTime():"")):r&&d.error("No stylesheets provided")}(e),function(e){if(e)return!(!e.media||-1!==y.indexOf(e.media)||!s.matchMedia);r&&d.error("No stylesheet provided")}(e)?function(e){e?(m[e.href]=s.matchMedia(e.media),v[e.href]=function(t){l(function(){if(t.matches)i.stylesheets.push(e);else{var n=i.stylesheets.indexOf(f("filter")(i.stylesheets,{href:e.href})[0]);-1!==n&&i.stylesheets.splice(n,1)}})},m[e.href].addListener(v[e.href]),v[e.href](m[e.href])):r&&d.error("No stylesheet provided")}(e):i.stylesheets.push(e),r&&d.debug("$css.add(): "+e.href))}),i.$broadcast("$cssAdd",t,i.stylesheets)):r&&d.error("No stylesheets provided")},h.remove=function(t,n){t?(e.isArray(t)||(t=[t]),t=f("filter")(t,function(e){return!e.persist}),e.forEach(t,function(t){t=E(t);var n=i.stylesheets.indexOf(f("filter")(i.stylesheets,{href:t.href})[0]);-1!==n&&i.stylesheets.splice(n,1),function(t){t?i&&e.isDefined(m)&&m[t.href]&&e.isDefined(v)&&m[t.href].removeListener(v[t.href]):r&&d.error("No stylesheet provided")}(t),r&&d.debug("$css.remove(): "+t.href)}),i.$broadcast("$cssRemove",t,i.stylesheets)):r&&d.error("No stylesheets provided")},h.removeAll=function(){i&&i.hasOwnProperty("stylesheets")&&(i.stylesheets.length=0),r&&d.debug("all stylesheets removed")},h.preload(),h}]}]),t.filter("$cssLinks",function(){return function(t){if(!t||!e.isArray(t))return t;var n="";return e.forEach(t,function(e){n+='<link rel="'+e.rel+'" type="'+e.type+'" href="'+e.href+'"',n+=e.media?' media="'+e.media+'"':"",n+=">\n\n"}),n}}),t.run(["$css",function(e){}]);var n=[],r=e.module,i=function(e,t){return e.reduce(function(e,n){return e.push(t(n)),e},[])},o=function(e,t){return e.indexOf(t)>-1};e.module=function(){var t=r.apply(this,arguments),a=t.directive;t.directive=function(t,r){var s=e.isFunction(r)?r:r[r?r.length-1:0];try{var l=e.copy(s)();l.directiveName=t,l.hasOwnProperty("css")&&!o(i(n,function(e){return e.ddo.directiveName}),t)&&n.push({ddo:l,handled:!1})}catch(e){}return a.apply(this,arguments)};var s=t.component;return t.component=function(e,t){return t.directiveName=e,t.hasOwnProperty("css")&&!o(i(n,function(e){return e.ddo.directiveName}),e)&&n.push({ddo:t,handled:!1}),s.apply(this,arguments)},t.config(["$provide","$injector",function(t,r){e.forEach(n,function(e){if(!e.handled){var n=e.ddo,i=n.directiveName+"Directive";r.has(i)&&(e.handled=!0,t.decorator(i,["$delegate","$rootScope","$timeout",function(e,t,r){var i=e[0],o=i.compile;return i.css||(i.css=n.css),i.compile=function(){var e=!!o&&o.apply(this,arguments);return function(n){var o=arguments;r(function(){e&&e.apply(this,o)}),t.$broadcast("$directiveAdd",i,n)}},e}]))}})}]),t}}(angular)}}]);
//# sourceMappingURL=npmVendors.371ecf12e89dd4f24705.js.map